]> git.ipfire.org Git - thirdparty/gcc.git/blame - fixincludes/fixincl.x
Fix nits
[thirdparty/gcc.git] / fixincludes / fixincl.x
CommitLineData
8882ac3a
BK
1/* -*- buffer-read-only: t -*- vi: set ro:
2 *
3 * DO NOT EDIT THIS FILE (fixincl.x)
4 *
d4289bdd 5 * It has been AutoGen-ed Friday July 3, 2009 at 10:27:01 PM CEST
8882ac3a
BK
6 * From the definitions inclhack.def
7 * and the template file fixincl
8 */
d4289bdd 9/* DO NOT SVN-MERGE THIS FILE, EITHER Fri Jul 3 22:27:01 CEST 2009
8882ac3a
BK
10 *
11 * You must regenerate it. Use the ./genfixes script.
06bbab1b 12 *
8882ac3a
BK
13 *
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.
06bbab1b 17 *
d4289bdd 18 * This file contains 196 fixup descriptions.
06bbab1b 19 *
8d8d5752 20 * See README for more information.
06bbab1b 21 *
0fc38aaa
BK
22 * inclhack copyright (c) 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
23 * 2006, 2007, 2008
3be1fb72 24 * The Free Software Foundation, Inc.
be02fa1a 25 *
0fc38aaa 26 * inclhack is free software: you can redistribute it and/or modify it
cd985f66
JM
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.
06bbab1b 30 *
cd985f66
JM
31 * inclhack is distributed in the hope that it will be useful, but
32 * WITHOUT ANY WARRANTY; without even the implied warranty of
06bbab1b
BK
33 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
34 * See the GNU General Public License for more details.
35 *
cd985f66
JM
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/>.
83644cd5 38 */
6aa1f8c1
BK
39#ifndef SED_PROGRAM
40#define SED_PROGRAM "/usr/bin/sed"
41#endif
42static char const sed_cmd_z[] = SED_PROGRAM;
83644cd5
PG
43
44/* * * * * * * * * * * * * * * * * * * * * * * * * *
45 *
46 * Description of Aab_Aix_Stdio fix
47 */
48tSCC zAab_Aix_StdioName[] =
49 "AAB_aix_stdio";
50
51/*
52 * File name selection pattern
53 */
54tSCC zAab_Aix_StdioList[] =
55 "stdio.h\0";
56/*
57 * Machine/OS name selection pattern
58 */
59tSCC* apzAab_Aix_StdioMachs[] = {
60 "*-*-aix*",
61 (const char*)NULL };
62
63/*
64 * content selection pattern - do fix if pattern found
3be1fb72 65 */
83644cd5
PG
66tSCC zAab_Aix_StdioSelect0[] =
67 "define fopen fopen64";
68
69#define AAB_AIX_STDIO_TEST_CT 1
70static tTestDesc aAab_Aix_StdioTests[] = {
71 { TT_EGREP, zAab_Aix_StdioSelect0, (regex_t*)NULL }, };
72
73/*
74 * Fix Command Arguments for Aab_Aix_Stdio
75 */
76static const char* apzAab_Aix_StdioPatch[] = {
77 "wrap",
78 "",
79 "\n\
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\
83#undef fseeko\n\
84#undef ftello\n\
85#undef fgetpos\n\
86#undef fsetpos\n\
87#undef fopen\n\
88#undef freopen\n\
89/* Alias the symbols using asm */\n\
90extern \"C\" {\n\
91extern int fgetpos(FILE *, fpos64_t *) __asm__(\"fgetpos64\");\n\
92extern FILE *fopen(const char *, const char *) __asm__(\"fopen64\");\n\
93extern FILE *freopen(const char *, const char *, FILE *) __asm__(\"freopen64\");\n\
94extern int fseeko(FILE *, off64_t, int) __asm__(\"fseeko64\");\n\
95extern int fsetpos(FILE *, const fpos64_t *) __asm__(\"fsetpos64\");\n\
96extern off64_t ftello(FILE *) __asm__(\"ftello64\");\n\
97}\n\
98#endif\n\
99#endif\n",
100 (char*)NULL };
3be1fb72 101
246e0bd8
GK
102/* * * * * * * * * * * * * * * * * * * * * * * * * *
103 *
104 * Description of Aab_Darwin7_9_Long_Double_Funcs fix
105 */
106tSCC zAab_Darwin7_9_Long_Double_FuncsName[] =
107 "AAB_darwin7_9_long_double_funcs";
108
109/*
110 * File name selection pattern
111 */
112tSCC zAab_Darwin7_9_Long_Double_FuncsList[] =
401be4b6 113 "architecture/ppc/math.h\0";
246e0bd8
GK
114/*
115 * Machine/OS name selection pattern
116 */
117tSCC* apzAab_Darwin7_9_Long_Double_FuncsMachs[] = {
118 "*-*-darwin7.9*",
119 (const char*)NULL };
120
121/*
122 * content bypass pattern - skip fix if pattern found
123 */
124tSCC zAab_Darwin7_9_Long_Double_FuncsBypass0[] =
125 "powl";
126
127#define AAB_DARWIN7_9_LONG_DOUBLE_FUNCS_TEST_CT 1
128static tTestDesc aAab_Darwin7_9_Long_Double_FuncsTests[] = {
129 { TT_NEGREP, zAab_Darwin7_9_Long_Double_FuncsBypass0, (regex_t*)NULL }, };
130
131/*
132 * Fix Command Arguments for Aab_Darwin7_9_Long_Double_Funcs
133 */
134static const char* apzAab_Darwin7_9_Long_Double_FuncsPatch[] = {
135"/* This file prototypes the long double functions available on Mac OS\n\
136 10.3.9. */\n\
137#ifndef __MATH__\n\
bf73f6d2
AP
138# undef __APPLE_CC__\n\
139# define __APPLE_CC__ 1345\n\
246e0bd8 140# include_next <architecture/ppc/math.h>\n\
bf73f6d2
AP
141# undef __APPLE_CC__\n\
142# define __APPLE_CC__ 1\n\
246e0bd8
GK
143# ifndef __LIBMLDBL_COMPAT\n\
144# ifdef __LONG_DOUBLE_128__\n\
145# define __LIBMLDBL_COMPAT(sym) __asm(\"_\" #sym \"$LDBL128\")\n\
146# else\n\
147# define __LIBMLDBL_COMPAT(sym)\n\
148# endif /* __LONG_DOUBLE_128__ */\n\
149# endif /* __LIBMLDBL_COMPAT */\n\
150# ifdef __cplusplus\n\
151 extern \"C\" {\n\
152# endif\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\
211 }\n\
212# endif\n\
213#endif /* __MATH__ */",
214 (char*)NULL };
215
216/* * * * * * * * * * * * * * * * * * * * * * * * * *
217 *
218 * Description of Aab_Darwin7_9_Long_Double_Funcs_2 fix
219 */
220tSCC zAab_Darwin7_9_Long_Double_Funcs_2Name[] =
221 "AAB_darwin7_9_long_double_funcs_2";
222
223/*
224 * File name selection pattern
225 */
226tSCC zAab_Darwin7_9_Long_Double_Funcs_2List[] =
401be4b6 227 "math.h\0";
246e0bd8
GK
228/*
229 * Machine/OS name selection pattern
230 */
231tSCC* apzAab_Darwin7_9_Long_Double_Funcs_2Machs[] = {
232 "*-*-darwin7.9*",
233 (const char*)NULL };
234
235/*
236 * content selection pattern - do fix if pattern found
237 */
238tSCC zAab_Darwin7_9_Long_Double_Funcs_2Select0[] =
239 "#include[ \\t]+\\\"";
240
241#define AAB_DARWIN7_9_LONG_DOUBLE_FUNCS_2_TEST_CT 1
242static tTestDesc aAab_Darwin7_9_Long_Double_Funcs_2Tests[] = {
243 { TT_EGREP, zAab_Darwin7_9_Long_Double_Funcs_2Select0, (regex_t*)NULL }, };
244
245/*
246 * Fix Command Arguments for Aab_Darwin7_9_Long_Double_Funcs_2
247 */
248static const char* apzAab_Darwin7_9_Long_Double_Funcs_2Patch[] = {
249 "format",
250 "%1<%2.h>",
251 "([ \\t]*#[ \\t]*include[ \\t]+)\"([a-z0-9/]+)\\.h\"",
252 (char*)NULL };
253
8aeb3b0e
BK
254/* * * * * * * * * * * * * * * * * * * * * * * * * *
255 *
d7eb5a45 256 * Description of Aab_Fd_Zero_Asm_Posix_Types_H fix
8aeb3b0e 257 */
d7eb5a45 258tSCC zAab_Fd_Zero_Asm_Posix_Types_HName[] =
3be1fb72
ZW
259 "AAB_fd_zero_asm_posix_types_h";
260
8aeb3b0e
BK
261/*
262 * File name selection pattern
263 */
d7eb5a45 264tSCC zAab_Fd_Zero_Asm_Posix_Types_HList[] =
401be4b6 265 "asm/posix_types.h\0";
8aeb3b0e
BK
266/*
267 * Machine/OS name selection pattern
268 */
d7eb5a45 269tSCC* apzAab_Fd_Zero_Asm_Posix_Types_HMachs[] = {
57119aa9 270 "i[34567]86-*-linux*",
c5984b7b 271 (const char*)NULL };
8aeb3b0e
BK
272
273/*
d7eb5a45 274 * content bypass pattern - skip fix if pattern found
8aeb3b0e 275 */
d7eb5a45
ZW
276tSCC zAab_Fd_Zero_Asm_Posix_Types_HBypass0[] =
277 "} while";
0f45f0f5
JM
278tSCC zAab_Fd_Zero_Asm_Posix_Types_HBypass1[] =
279 "x86_64";
2627042d
JM
280tSCC zAab_Fd_Zero_Asm_Posix_Types_HBypass2[] =
281 "posix_types_64";
d7eb5a45 282
2627042d 283#define AAB_FD_ZERO_ASM_POSIX_TYPES_H_TEST_CT 3
3af556f7 284static tTestDesc aAab_Fd_Zero_Asm_Posix_Types_HTests[] = {
0f45f0f5 285 { TT_NEGREP, zAab_Fd_Zero_Asm_Posix_Types_HBypass0, (regex_t*)NULL },
2627042d
JM
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 }, };
d7eb5a45
ZW
288
289/*
290 * Fix Command Arguments for Aab_Fd_Zero_Asm_Posix_Types_H
291 */
3af556f7 292static const char* apzAab_Fd_Zero_Asm_Posix_Types_HPatch[] = {
d7eb5a45
ZW
293"/* This file fixes a bug in the __FD_ZERO macro\n\
294 for older versions of the Linux kernel. */\n\
8aeb3b0e
BK
295#ifndef _POSIX_TYPES_H_WRAPPER\n\
296#include <features.h>\n\
dac32862 297 #include_next <asm/posix_types.h>\n\n\
8aeb3b0e
BK
298#if defined(__FD_ZERO) && !defined(__GLIBC__)\n\
299#undef __FD_ZERO\n\
d7eb5a45
ZW
300#define __FD_ZERO(fdsetp) \\\n\
301 do { \\\n\
302 int __d0, __d1; \\\n\
8f2e963b
LR
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\
d7eb5a45 307 } while (0)\n\
dac32862 308#endif\n\n\
8aeb3b0e 309#define _POSIX_TYPES_H_WRAPPER\n\
8f2e963b 310#endif /* _POSIX_TYPES_H_WRAPPER */",
8aeb3b0e
BK
311 (char*)NULL };
312
313/* * * * * * * * * * * * * * * * * * * * * * * * * *
314 *
d7eb5a45 315 * Description of Aab_Fd_Zero_Gnu_Types_H fix
8aeb3b0e 316 */
d7eb5a45 317tSCC zAab_Fd_Zero_Gnu_Types_HName[] =
3be1fb72
ZW
318 "AAB_fd_zero_gnu_types_h";
319
8aeb3b0e
BK
320/*
321 * File name selection pattern
322 */
d7eb5a45 323tSCC zAab_Fd_Zero_Gnu_Types_HList[] =
401be4b6 324 "gnu/types.h\0";
8aeb3b0e
BK
325/*
326 * Machine/OS name selection pattern
327 */
d7eb5a45 328tSCC* apzAab_Fd_Zero_Gnu_Types_HMachs[] = {
57119aa9 329 "i[34567]86-*-linux*",
c5984b7b 330 (const char*)NULL };
d7eb5a45 331#define AAB_FD_ZERO_GNU_TYPES_H_TEST_CT 0
d7eb5a45 332#define aAab_Fd_Zero_Gnu_Types_HTests (tTestDesc*)NULL
8aeb3b0e
BK
333
334/*
d7eb5a45 335 * Fix Command Arguments for Aab_Fd_Zero_Gnu_Types_H
8aeb3b0e 336 */
3af556f7 337static const char* apzAab_Fd_Zero_Gnu_Types_HPatch[] = {
d7eb5a45 338"/* This file fixes a bug in the __FD_ZERO macro present in glibc 1.x. */\n\
8aeb3b0e
BK
339#ifndef _TYPES_H_WRAPPER\n\
340#include <features.h>\n\
b0588013 341#include_next <gnu/types.h>\n\n\
8aeb3b0e
BK
342#if defined(__FD_ZERO) && !defined(__GLIBC__)\n\
343#undef __FD_ZERO\n\
7673b71c
BK
344# define __FD_ZERO(fdsetp) \\\n\
345 do { \\\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\
d7eb5a45 351 } while (0)\n\
dac32862 352#endif\n\n\
8aeb3b0e 353#define _TYPES_H_WRAPPER\n\
b0588013 354#endif /* _TYPES_H_WRAPPER */",
8aeb3b0e
BK
355 (char*)NULL };
356
357/* * * * * * * * * * * * * * * * * * * * * * * * * *
358 *
d7eb5a45 359 * Description of Aab_Fd_Zero_Selectbits_H fix
8aeb3b0e 360 */
d7eb5a45 361tSCC zAab_Fd_Zero_Selectbits_HName[] =
3be1fb72
ZW
362 "AAB_fd_zero_selectbits_h";
363
8aeb3b0e
BK
364/*
365 * File name selection pattern
366 */
d7eb5a45 367tSCC zAab_Fd_Zero_Selectbits_HList[] =
401be4b6 368 "selectbits.h\0";
8aeb3b0e
BK
369/*
370 * Machine/OS name selection pattern
371 */
d7eb5a45 372tSCC* apzAab_Fd_Zero_Selectbits_HMachs[] = {
57119aa9 373 "i[34567]86-*-linux*",
c5984b7b 374 (const char*)NULL };
d7eb5a45 375#define AAB_FD_ZERO_SELECTBITS_H_TEST_CT 0
d7eb5a45 376#define aAab_Fd_Zero_Selectbits_HTests (tTestDesc*)NULL
8aeb3b0e
BK
377
378/*
d7eb5a45 379 * Fix Command Arguments for Aab_Fd_Zero_Selectbits_H
8aeb3b0e 380 */
3af556f7 381static const char* apzAab_Fd_Zero_Selectbits_HPatch[] = {
d7eb5a45 382"/* This file fixes a bug in the __FD_ZERO macro present in glibc 2.0.x. */\n\
8aeb3b0e 383#ifndef _SELECTBITS_H_WRAPPER\n\
b0588013
BK
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\
389 #undef __FD_ZERO\n\
390 #define __FD_ZERO(fdsetp) \\\\\n\
391 do { \\\\\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\
399 } while (0)\n\
400 #endif\n\n\
401 #define _SELECTBITS_H_WRAPPER\n\
402#endif /* _SELECTBITS_H_WRAPPER */",
8aeb3b0e
BK
403 (char*)NULL };
404
0fca111b
SE
405/* * * * * * * * * * * * * * * * * * * * * * * * * *
406 *
407 * Description of Aab_Solaris_Sys_Varargs_H fix
408 */
409tSCC zAab_Solaris_Sys_Varargs_HName[] =
410 "AAB_solaris_sys_varargs_h";
411
412/*
413 * File name selection pattern
414 */
415tSCC zAab_Solaris_Sys_Varargs_HList[] =
401be4b6 416 "sys/varargs.h\0";
0fca111b
SE
417/*
418 * Machine/OS name selection pattern
419 */
420tSCC* apzAab_Solaris_Sys_Varargs_HMachs[] = {
421 "*-*-solaris*",
422 (const char*)NULL };
423#define AAB_SOLARIS_SYS_VARARGS_H_TEST_CT 0
424#define aAab_Solaris_Sys_Varargs_HTests (tTestDesc*)NULL
425
426/*
427 * Fix Command Arguments for Aab_Solaris_Sys_Varargs_H
428 */
429static const char* apzAab_Solaris_Sys_Varargs_HPatch[] = {
430"#ifdef __STDC__\n\
b0588013 431 #include <stdarg.h>\n\
0fca111b 432#else\n\
b0588013
BK
433 #include <varargs.h>\n\
434#endif",
0fca111b
SE
435 (char*)NULL };
436
b51207a4
ZW
437/* * * * * * * * * * * * * * * * * * * * * * * * * *
438 *
439 * Description of Aab_Sun_Memcpy fix
440 */
b51207a4 441tSCC zAab_Sun_MemcpyName[] =
3be1fb72
ZW
442 "AAB_sun_memcpy";
443
b51207a4
ZW
444/*
445 * File name selection pattern
446 */
447tSCC zAab_Sun_MemcpyList[] =
401be4b6 448 "memory.h\0";
b51207a4
ZW
449/*
450 * Machine/OS name selection pattern
451 */
452#define apzAab_Sun_MemcpyMachs (const char**)NULL
453
454/*
455 * content selection pattern - do fix if pattern found
456 */
457tSCC zAab_Sun_MemcpySelect0[] =
458 "/\\*\t@\\(#\\)(head/memory.h\t50.1\t |memory\\.h 1\\.[2-4] 8./../.. SMI; from S5R2 1\\.2\t)\\*/";
459
460#define AAB_SUN_MEMCPY_TEST_CT 1
3af556f7 461static tTestDesc aAab_Sun_MemcpyTests[] = {
b51207a4
ZW
462 { TT_EGREP, zAab_Sun_MemcpySelect0, (regex_t*)NULL }, };
463
464/*
465 * Fix Command Arguments for Aab_Sun_Memcpy
466 */
3af556f7 467static const char* apzAab_Sun_MemcpyPatch[] = {
b51207a4
ZW
468"/* This file was generated by fixincludes */\n\
469#ifndef __memory_h__\n\
b0588013
BK
470 #define __memory_h__\n\n\
471 #ifdef __STDC__\n\
472 extern void *memccpy();\n\
473 extern void *memchr();\n\
474 extern void *memcpy();\n\
475 extern void *memset();\n\
476 #else\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\
c8b38637 483#endif /* __memory_h__ */",
bde8e564
BK
484 (char*)NULL };
485
2c82e043
GK
486/* * * * * * * * * * * * * * * * * * * * * * * * * *
487 *
488 * Description of Aix_Pthread fix
489 */
2c82e043
GK
490tSCC zAix_PthreadName[] =
491 "aix_pthread";
492
493/*
494 * File name selection pattern
495 */
496tSCC zAix_PthreadList[] =
401be4b6 497 "pthread.h\0";
2c82e043
GK
498/*
499 * Machine/OS name selection pattern
500 */
501#define apzAix_PthreadMachs (const char**)NULL
502
503/*
504 * content selection pattern - do fix if pattern found
505 */
506tSCC zAix_PthreadSelect0[] =
507 "(#define [A-Za-z_0-9]+)(\\\\\n\
508[^A-Za-z_0-9 \t\n\
509(])";
510
511#define AIX_PTHREAD_TEST_CT 1
3af556f7 512static tTestDesc aAix_PthreadTests[] = {
2c82e043
GK
513 { TT_EGREP, zAix_PthreadSelect0, (regex_t*)NULL }, };
514
515/*
516 * Fix Command Arguments for Aix_Pthread
517 */
3af556f7 518static const char* apzAix_PthreadPatch[] = {
2c82e043
GK
519 "format",
520 "%1 %2",
521 (char*)NULL };
522
523/* * * * * * * * * * * * * * * * * * * * * * * * * *
524 *
525 * Description of Aix_Sysmachine fix
526 */
2c82e043
GK
527tSCC zAix_SysmachineName[] =
528 "aix_sysmachine";
529
530/*
531 * File name selection pattern
532 */
533tSCC zAix_SysmachineList[] =
401be4b6 534 "sys/machine.h\0";
2c82e043
GK
535/*
536 * Machine/OS name selection pattern
537 */
538#define apzAix_SysmachineMachs (const char**)NULL
539
540/*
541 * content selection pattern - do fix if pattern found
542 */
543tSCC zAix_SysmachineSelect0[] =
544 "\\\\ +\n";
545
546#define AIX_SYSMACHINE_TEST_CT 1
3af556f7 547static tTestDesc aAix_SysmachineTests[] = {
2c82e043
GK
548 { TT_EGREP, zAix_SysmachineSelect0, (regex_t*)NULL }, };
549
550/*
551 * Fix Command Arguments for Aix_Sysmachine
552 */
3af556f7 553static const char* apzAix_SysmachinePatch[] = {
2c82e043
GK
554 "format",
555 "\\\n",
556 (char*)NULL };
557
d3535e80
RS
558/* * * * * * * * * * * * * * * * * * * * * * * * * *
559 *
560 * Description of Aix_Syswait_2 fix
561 */
562tSCC zAix_Syswait_2Name[] =
563 "aix_syswait_2";
564
565/*
566 * File name selection pattern
567 */
568tSCC zAix_Syswait_2List[] =
401be4b6 569 "sys/wait.h\0";
d3535e80
RS
570/*
571 * Machine/OS name selection pattern
572 */
573#define apzAix_Syswait_2Machs (const char**)NULL
574
575/*
576 * content selection pattern - do fix if pattern found
577 */
578tSCC zAix_Syswait_2Select0[] =
579 "\\? (\\(\\(\\(\\(unsigned[^)]*\\)[^)]*\\) >> [^)]*\\) \\& 0xff\\) : -1)";
580
581#define AIX_SYSWAIT_2_TEST_CT 1
582static tTestDesc aAix_Syswait_2Tests[] = {
583 { TT_EGREP, zAix_Syswait_2Select0, (regex_t*)NULL }, };
584
585/*
586 * Fix Command Arguments for Aix_Syswait_2
587 */
588static const char* apzAix_Syswait_2Patch[] = {
589 "format",
590 "? (int)%1",
591 (char*)NULL };
592
06bbab1b
BK
593/* * * * * * * * * * * * * * * * * * * * * * * * * *
594 *
5abc1f74 595 * Description of Aix_Volatile fix
06bbab1b
BK
596 */
597tSCC zAix_VolatileName[] =
3be1fb72
ZW
598 "aix_volatile";
599
06bbab1b
BK
600/*
601 * File name selection pattern
602 */
603tSCC zAix_VolatileList[] =
401be4b6 604 "sys/signal.h\0";
06bbab1b
BK
605/*
606 * Machine/OS name selection pattern
607 */
608#define apzAix_VolatileMachs (const char**)NULL
609
610/*
be02fa1a 611 * content selection pattern - do fix if pattern found
06bbab1b
BK
612 */
613tSCC zAix_VolatileSelect0[] =
614 "typedef volatile int sig_atomic_t";
615
616#define AIX_VOLATILE_TEST_CT 1
3af556f7 617static tTestDesc aAix_VolatileTests[] = {
5abc1f74 618 { TT_EGREP, zAix_VolatileSelect0, (regex_t*)NULL }, };
06bbab1b
BK
619
620/*
621 * Fix Command Arguments for Aix_Volatile
622 */
3af556f7 623static const char* apzAix_VolatilePatch[] = {
99d05d99
BK
624 "format",
625 "typedef int sig_atomic_t",
06bbab1b
BK
626 (char*)NULL };
627
a88072eb
RO
628/* * * * * * * * * * * * * * * * * * * * * * * * * *
629 *
630 * Description of Alpha___Assert fix
631 */
a88072eb
RO
632tSCC zAlpha___AssertName[] =
633 "alpha___assert";
634
635/*
636 * File name selection pattern
637 */
638tSCC zAlpha___AssertList[] =
401be4b6 639 "assert.h\0";
a88072eb
RO
640/*
641 * Machine/OS name selection pattern
642 */
643#define apzAlpha___AssertMachs (const char**)NULL
644
645/*
646 * content selection pattern - do fix if pattern found
647 */
648tSCC zAlpha___AssertSelect0[] =
649 "__assert\\(char \\*, char \\*, int\\)";
650
651#define ALPHA___ASSERT_TEST_CT 1
652static tTestDesc aAlpha___AssertTests[] = {
653 { TT_EGREP, zAlpha___AssertSelect0, (regex_t*)NULL }, };
654
655/*
656 * Fix Command Arguments for Alpha___Assert
657 */
658static const char* apzAlpha___AssertPatch[] = {
659 "format",
660 "__assert(const char *, const char *, int)",
661 (char*)NULL };
662
f8dc212b
RO
663/* * * * * * * * * * * * * * * * * * * * * * * * * *
664 *
665 * Description of Alpha___Extern_Prefix fix
666 */
667tSCC zAlpha___Extern_PrefixName[] =
668 "alpha___extern_prefix";
669
670/*
671 * File name selection pattern
672 */
fb2c2608 673#define zAlpha___Extern_PrefixList (char*)NULL
f8dc212b
RO
674/*
675 * Machine/OS name selection pattern
676 */
677tSCC* apzAlpha___Extern_PrefixMachs[] = {
fb2c2608 678 "alpha*-dec-osf*",
f8dc212b
RO
679 (const char*)NULL };
680
681/*
682 * content selection pattern - do fix if pattern found
683 */
684tSCC zAlpha___Extern_PrefixSelect0[] =
fb2c2608
RO
685 "(.*)(defined\\(__DECC\\)|def[ \t]*__DECC)[ \t]*\n\
686(#[ \t]*pragma[ \t]*extern_prefix.*)";
f8dc212b
RO
687
688#define ALPHA___EXTERN_PREFIX_TEST_CT 1
689static tTestDesc aAlpha___Extern_PrefixTests[] = {
690 { TT_EGREP, zAlpha___Extern_PrefixSelect0, (regex_t*)NULL }, };
691
692/*
693 * Fix Command Arguments for Alpha___Extern_Prefix
694 */
695static const char* apzAlpha___Extern_PrefixPatch[] = {
fb2c2608
RO
696 "format",
697 "%1 (defined(__DECC) || defined(__PRAGMA_EXTERN_PREFIX))\n\
698%3",
699 (char*)NULL };
700
701/* * * * * * * * * * * * * * * * * * * * * * * * * *
702 *
703 * Description of Alpha___Extern_Prefix_Standards fix
704 */
705tSCC zAlpha___Extern_Prefix_StandardsName[] =
706 "alpha___extern_prefix_standards";
707
708/*
709 * File name selection pattern
710 */
711tSCC zAlpha___Extern_Prefix_StandardsList[] =
401be4b6 712 "standards.h\0";
fb2c2608
RO
713/*
714 * Machine/OS name selection pattern
715 */
716tSCC* apzAlpha___Extern_Prefix_StandardsMachs[] = {
717 "alpha*-dec-osf*",
718 (const char*)NULL };
719
720/*
721 * content selection pattern - do fix if pattern found
722 */
723tSCC zAlpha___Extern_Prefix_StandardsSelect0[] =
724 ".*!defined\\(_LIBC_POLLUTION_H_\\) && !defined\\(__DECC\\)";
725
726#define ALPHA___EXTERN_PREFIX_STANDARDS_TEST_CT 1
727static tTestDesc aAlpha___Extern_Prefix_StandardsTests[] = {
728 { TT_EGREP, zAlpha___Extern_Prefix_StandardsSelect0, (regex_t*)NULL }, };
729
730/*
731 * Fix Command Arguments for Alpha___Extern_Prefix_Standards
732 */
733static const char* apzAlpha___Extern_Prefix_StandardsPatch[] = {
734 "format",
735 "%0 && !defined(__PRAGMA_EXTERN_PREFIX)",
736 (char*)NULL };
737
738/* * * * * * * * * * * * * * * * * * * * * * * * * *
739 *
740 * Description of Alpha___Extern_Prefix_Sys_Stat fix
741 */
742tSCC zAlpha___Extern_Prefix_Sys_StatName[] =
743 "alpha___extern_prefix_sys_stat";
744
745/*
746 * File name selection pattern
747 */
748tSCC zAlpha___Extern_Prefix_Sys_StatList[] =
401be4b6 749 "sys/stat.h\0sys/mount.h\0";
fb2c2608
RO
750/*
751 * Machine/OS name selection pattern
752 */
753tSCC* apzAlpha___Extern_Prefix_Sys_StatMachs[] = {
754 "alpha*-dec-osf5*",
755 (const char*)NULL };
756
757/*
758 * content selection pattern - do fix if pattern found
759 */
760tSCC zAlpha___Extern_Prefix_Sys_StatSelect0[] =
761 "#[ \t]*if[ \t]*defined\\(__DECC\\)";
762
763#define ALPHA___EXTERN_PREFIX_SYS_STAT_TEST_CT 1
764static tTestDesc aAlpha___Extern_Prefix_Sys_StatTests[] = {
765 { TT_EGREP, zAlpha___Extern_Prefix_Sys_StatSelect0, (regex_t*)NULL }, };
766
767/*
768 * Fix Command Arguments for Alpha___Extern_Prefix_Sys_Stat
769 */
770static const char* apzAlpha___Extern_Prefix_Sys_StatPatch[] = {
f8dc212b
RO
771 "format",
772 "%0 || defined(__PRAGMA_EXTERN_PREFIX)",
773 (char*)NULL };
774
aaa4d130
RO
775/* * * * * * * * * * * * * * * * * * * * * * * * * *
776 *
777 * Description of Alpha_Assert fix
778 */
779tSCC zAlpha_AssertName[] =
780 "alpha_assert";
781
782/*
783 * File name selection pattern
784 */
785tSCC zAlpha_AssertList[] =
401be4b6 786 "assert.h\0";
aaa4d130
RO
787/*
788 * Machine/OS name selection pattern
789 */
790#define apzAlpha_AssertMachs (const char**)NULL
791
792/*
793 * content selection pattern - do fix if pattern found
794 */
795tSCC zAlpha_AssertSelect0[] =
796 "(#define assert\\(EX\\).*)\\(\\(int\\) \\(EX\\)\\)";
797
798#define ALPHA_ASSERT_TEST_CT 1
799static tTestDesc aAlpha_AssertTests[] = {
800 { TT_EGREP, zAlpha_AssertSelect0, (regex_t*)NULL }, };
801
802/*
803 * Fix Command Arguments for Alpha_Assert
804 */
805static const char* apzAlpha_AssertPatch[] = {
806 "format",
807 "%1(EX)",
808 (char*)NULL };
809
f6c930a3
RO
810/* * * * * * * * * * * * * * * * * * * * * * * * * *
811 *
812 * Description of Alpha_Bad_Lval fix
813 */
814tSCC zAlpha_Bad_LvalName[] =
815 "alpha_bad_lval";
816
817/*
818 * File name selection pattern
819 */
820#define zAlpha_Bad_LvalList (char*)NULL
821/*
822 * Machine/OS name selection pattern
823 */
824tSCC* apzAlpha_Bad_LvalMachs[] = {
825 "alpha*-dec-osf*",
826 (const char*)NULL };
827
828/*
829 * content selection pattern - do fix if pattern found
830 */
831tSCC zAlpha_Bad_LvalSelect0[] =
832 "^[ \t]*#[ \t]*pragma[ \t]+extern_prefix";
833
834#define ALPHA_BAD_LVAL_TEST_CT 1
835static tTestDesc aAlpha_Bad_LvalTests[] = {
836 { TT_EGREP, zAlpha_Bad_LvalSelect0, (regex_t*)NULL }, };
837
838/*
839 * Fix Command Arguments for Alpha_Bad_Lval
840 */
6aa1f8c1 841static const char* apzAlpha_Bad_LvalPatch[] = { sed_cmd_z,
f6c930a3
RO
842 "-e", "s/^[ \t]*#[ \t]*define[ \t][ \t]*\\([^(]*\\)\\(([^)]*)\\)[ \t]*\\(_.*\\)\\1\\2[ \t]*$/#define \\1 \\3\\1/",
843 (char*)NULL };
844
06bbab1b
BK
845/* * * * * * * * * * * * * * * * * * * * * * * * * *
846 *
5abc1f74 847 * Description of Alpha_Getopt fix
06bbab1b
BK
848 */
849tSCC zAlpha_GetoptName[] =
3be1fb72
ZW
850 "alpha_getopt";
851
06bbab1b
BK
852/*
853 * File name selection pattern
854 */
855tSCC zAlpha_GetoptList[] =
401be4b6 856 "stdio.h\0stdlib.h\0";
06bbab1b
BK
857/*
858 * Machine/OS name selection pattern
859 */
860#define apzAlpha_GetoptMachs (const char**)NULL
861
862/*
be02fa1a 863 * content selection pattern - do fix if pattern found
06bbab1b
BK
864 */
865tSCC zAlpha_GetoptSelect0[] =
87b6d63a 866 "getopt\\(int, char \\*\\[\\], *char \\*\\)";
06bbab1b
BK
867
868#define ALPHA_GETOPT_TEST_CT 1
3af556f7 869static tTestDesc aAlpha_GetoptTests[] = {
5abc1f74 870 { TT_EGREP, zAlpha_GetoptSelect0, (regex_t*)NULL }, };
06bbab1b
BK
871
872/*
873 * Fix Command Arguments for Alpha_Getopt
874 */
3af556f7 875static const char* apzAlpha_GetoptPatch[] = {
99d05d99
BK
876 "format",
877 "getopt(int, char *const[], const char *)",
06bbab1b
BK
878 (char*)NULL };
879
42ab9282
GB
880/* * * * * * * * * * * * * * * * * * * * * * * * * *
881 *
882 * Description of Alpha_If_Semicolon fix
883 */
884tSCC zAlpha_If_SemicolonName[] =
885 "alpha_if_semicolon";
886
887/*
888 * File name selection pattern
889 */
890tSCC zAlpha_If_SemicolonList[] =
891 "net/if.h\0";
892/*
893 * Machine/OS name selection pattern
894 */
895#define apzAlpha_If_SemicolonMachs (const char**)NULL
896
897/*
898 * content selection pattern - do fix if pattern found
899 */
900tSCC zAlpha_If_SemicolonSelect0[] =
901 "struct[ \t]+sockaddr[ \t]+vmif_paddr[ \t]+/\\*";
902
903#define ALPHA_IF_SEMICOLON_TEST_CT 1
904static tTestDesc aAlpha_If_SemicolonTests[] = {
905 { TT_EGREP, zAlpha_If_SemicolonSelect0, (regex_t*)NULL }, };
906
907/*
908 * Fix Command Arguments for Alpha_If_Semicolon
909 */
910static const char* apzAlpha_If_SemicolonPatch[] = {
911 "format",
912 "struct sockaddr vmif_paddr;\t/*",
913 (char*)NULL };
914
06bbab1b
BK
915/* * * * * * * * * * * * * * * * * * * * * * * * * *
916 *
5abc1f74 917 * Description of Alpha_Parens fix
06bbab1b
BK
918 */
919tSCC zAlpha_ParensName[] =
3be1fb72
ZW
920 "alpha_parens";
921
06bbab1b
BK
922/*
923 * File name selection pattern
924 */
925tSCC zAlpha_ParensList[] =
401be4b6 926 "sym.h\0";
06bbab1b
BK
927/*
928 * Machine/OS name selection pattern
929 */
930#define apzAlpha_ParensMachs (const char**)NULL
931
932/*
be02fa1a 933 * content selection pattern - do fix if pattern found
06bbab1b
BK
934 */
935tSCC zAlpha_ParensSelect0[] =
936 "#ifndef\\(__mips64\\)";
937
938#define ALPHA_PARENS_TEST_CT 1
3af556f7 939static tTestDesc aAlpha_ParensTests[] = {
5abc1f74 940 { TT_EGREP, zAlpha_ParensSelect0, (regex_t*)NULL }, };
06bbab1b
BK
941
942/*
943 * Fix Command Arguments for Alpha_Parens
944 */
3af556f7 945static const char* apzAlpha_ParensPatch[] = {
99d05d99
BK
946 "format",
947 "#ifndef __mips64",
06bbab1b
BK
948 (char*)NULL };
949
2a4e8ebc
RO
950/* * * * * * * * * * * * * * * * * * * * * * * * * *
951 *
952 * Description of Alpha_Pthread fix
953 */
954tSCC zAlpha_PthreadName[] =
955 "alpha_pthread";
956
957/*
958 * File name selection pattern
959 */
960tSCC zAlpha_PthreadList[] =
401be4b6 961 "pthread.h\0";
2a4e8ebc
RO
962/*
963 * Machine/OS name selection pattern
964 */
965tSCC* apzAlpha_PthreadMachs[] = {
966 "alpha*-dec-osf*",
967 (const char*)NULL };
968
969/*
970 * content selection pattern - do fix if pattern found
971 */
972tSCC zAlpha_PthreadSelect0[] =
fb2c2608 973 "((#[ \t]*if)([ \t]*defined[ \t]*\\(_PTHREAD_ENV_DECC\\)|def _PTHREAD_ENV_DECC)(.*))\n\
2a4e8ebc
RO
974(#[ \t]*define _PTHREAD_USE_PTDNAM_)";
975
976#define ALPHA_PTHREAD_TEST_CT 1
977static tTestDesc aAlpha_PthreadTests[] = {
978 { TT_EGREP, zAlpha_PthreadSelect0, (regex_t*)NULL }, };
979
980/*
981 * Fix Command Arguments for Alpha_Pthread
982 */
983static const char* apzAlpha_PthreadPatch[] = {
984 "format",
fb2c2608
RO
985 "%2 defined (_PTHREAD_ENV_DECC)%4 || defined (__PRAGMA_EXTERN_PREFIX)\n\
986%5",
2a4e8ebc
RO
987 (char*)NULL };
988
821281db
RO
989/* * * * * * * * * * * * * * * * * * * * * * * * * *
990 *
991 * Description of Alpha_Pthread_Gcc fix
992 */
993tSCC zAlpha_Pthread_GccName[] =
994 "alpha_pthread_gcc";
995
996/*
997 * File name selection pattern
998 */
999tSCC zAlpha_Pthread_GccList[] =
401be4b6 1000 "pthread.h\0";
821281db
RO
1001/*
1002 * Machine/OS name selection pattern
1003 */
1004tSCC* apzAlpha_Pthread_GccMachs[] = {
1005 "alpha*-dec-osf*",
1006 (const char*)NULL };
1007
1008/*
1009 * content selection pattern - do fix if pattern found
1010 */
1011tSCC zAlpha_Pthread_GccSelect0[] =
1012 "#else\n\
1013# error <pthread.h>: unrecognized compiler.";
1014
1015#define ALPHA_PTHREAD_GCC_TEST_CT 1
1016static tTestDesc aAlpha_Pthread_GccTests[] = {
1017 { TT_EGREP, zAlpha_Pthread_GccSelect0, (regex_t*)NULL }, };
1018
1019/*
1020 * Fix Command Arguments for Alpha_Pthread_Gcc
1021 */
1022static const char* apzAlpha_Pthread_GccPatch[] = {
1023 "format",
1024 "#elif defined (__GNUC__)\n\
1025# define _PTHREAD_ENV_GCC\n\
1026%0",
1027 (char*)NULL };
1028
1fda9d7b
RS
1029/* * * * * * * * * * * * * * * * * * * * * * * * * *
1030 *
1031 * Description of Alpha_Pthread_Init fix
1032 */
1033tSCC zAlpha_Pthread_InitName[] =
1034 "alpha_pthread_init";
1035
1036/*
1037 * File name selection pattern
1038 */
1039tSCC zAlpha_Pthread_InitList[] =
401be4b6 1040 "pthread.h\0";
1fda9d7b
RS
1041/*
1042 * Machine/OS name selection pattern
1043 */
1044tSCC* apzAlpha_Pthread_InitMachs[] = {
1045 "alpha*-dec-osf*",
1046 (const char*)NULL };
1047
1048/*
1049 * content selection pattern - do fix if pattern found
1050 */
1051tSCC zAlpha_Pthread_InitSelect0[] =
743348ea 1052 " \\* @\\(#\\).RCSfile: pthread\\.h,v \\$ .Revision: 1\\.1\\.33\\.21 \\$ \\(DEC\\) .Date: 2000/08/15 15:30:13 \\$";
1fda9d7b
RS
1053
1054#define ALPHA_PTHREAD_INIT_TEST_CT 1
1055static tTestDesc aAlpha_Pthread_InitTests[] = {
1056 { TT_EGREP, zAlpha_Pthread_InitSelect0, (regex_t*)NULL }, };
1057
1058/*
1059 * Fix Command Arguments for Alpha_Pthread_Init
1060 */
6aa1f8c1 1061static const char* apzAlpha_Pthread_InitPatch[] = { sed_cmd_z,
1fda9d7b
RS
1062 "-e", "s@MVALID\\(.*\\)A}@MVALID\\1A, 0, 0, 0, 0, 0, 0 }@\n\
1063s@MVALID\\(.*\\)_}@MVALID\\1_, 0, 0, 0, 0 }@\n\
1064s@CVALID\\(.*\\)A}@CVALID\\1A, 0, 0, 0, 0 }@\n\
1065s@CVALID\\(.*\\)_}@CVALID\\1_, 0, 0 }@\n\
1066s@WVALID\\(.*\\)A}@WVALID\\1A, 0, 0, 0, 0, 0, 0, 0, 0, 0 }@\n\
1067s@WVALID\\(.*\\)_}@WVALID\\1_, 0, 0, 0, 0, 0, 0, 0 }@\n",
1068 (char*)NULL };
1069
06bbab1b
BK
1070/* * * * * * * * * * * * * * * * * * * * * * * * * *
1071 *
5abc1f74 1072 * Description of Alpha_Sbrk fix
06bbab1b
BK
1073 */
1074tSCC zAlpha_SbrkName[] =
3be1fb72
ZW
1075 "alpha_sbrk";
1076
06bbab1b
BK
1077/*
1078 * File name selection pattern
1079 */
1080tSCC zAlpha_SbrkList[] =
401be4b6 1081 "unistd.h\0";
06bbab1b
BK
1082/*
1083 * Machine/OS name selection pattern
1084 */
1085#define apzAlpha_SbrkMachs (const char**)NULL
1086
1087/*
be02fa1a 1088 * content selection pattern - do fix if pattern found
06bbab1b
BK
1089 */
1090tSCC zAlpha_SbrkSelect0[] =
1091 "char[ \t]*\\*[\t ]*sbrk[ \t]*\\(";
1092
1093#define ALPHA_SBRK_TEST_CT 1
3af556f7 1094static tTestDesc aAlpha_SbrkTests[] = {
5abc1f74 1095 { TT_EGREP, zAlpha_SbrkSelect0, (regex_t*)NULL }, };
06bbab1b
BK
1096
1097/*
1098 * Fix Command Arguments for Alpha_Sbrk
1099 */
3af556f7 1100static const char* apzAlpha_SbrkPatch[] = {
99d05d99
BK
1101 "format",
1102 "void *sbrk(",
06bbab1b
BK
1103 (char*)NULL };
1104
f502cbff
RO
1105/* * * * * * * * * * * * * * * * * * * * * * * * * *
1106 *
1107 * Description of Alpha_Wchar fix
1108 */
1109tSCC zAlpha_WcharName[] =
1110 "alpha_wchar";
1111
1112/*
1113 * File name selection pattern
1114 */
1115tSCC zAlpha_WcharList[] =
401be4b6 1116 "wchar.h\0";
f502cbff
RO
1117/*
1118 * Machine/OS name selection pattern
1119 */
1120tSCC* apzAlpha_WcharMachs[] = {
1121 "alpha*-dec-osf4*",
1122 (const char*)NULL };
1123
1124/*
1125 * content selection pattern - do fix if pattern found
1126 */
1127tSCC zAlpha_WcharSelect0[] =
1128 "#define wcstok wcstok_r";
1129
1130#define ALPHA_WCHAR_TEST_CT 1
1131static tTestDesc aAlpha_WcharTests[] = {
1132 { TT_EGREP, zAlpha_WcharSelect0, (regex_t*)NULL }, };
1133
1134/*
1135 * Fix Command Arguments for Alpha_Wchar
1136 */
6aa1f8c1 1137static const char* apzAlpha_WcharPatch[] = { sed_cmd_z,
f502cbff
RO
1138 "-e", "s@#define wcstok wcstok_r@extern wchar_t *wcstok __((wchar_t *, const wchar_t *, wchar_t **)) __asm__(\"wcstok_r\");@",
1139 "-e", "s@#define wcsftime __wcsftime_isoc@extern size_t wcsftime __((wchar_t *, size_t, const wchar_t *, const struct tm *)) __asm__(\"__wcsftime_isoc\");@",
1140 (char*)NULL };
1141
06bbab1b
BK
1142/* * * * * * * * * * * * * * * * * * * * * * * * * *
1143 *
cd64831f 1144 * Description of Avoid_Bool_Define fix
06bbab1b 1145 */
cd64831f
BK
1146tSCC zAvoid_Bool_DefineName[] =
1147 "avoid_bool_define";
3be1fb72 1148
06bbab1b
BK
1149/*
1150 * File name selection pattern
1151 */
cd64831f 1152tSCC zAvoid_Bool_DefineList[] =
401be4b6 1153 "curses.h\0curses_colr/curses.h\0term.h\0tinfo.h\0";
06bbab1b
BK
1154/*
1155 * Machine/OS name selection pattern
1156 */
cd64831f 1157#define apzAvoid_Bool_DefineMachs (const char**)NULL
5c0d5b94
ZW
1158
1159/*
1160 * content selection pattern - do fix if pattern found
1161 */
cd64831f
BK
1162tSCC zAvoid_Bool_DefineSelect0[] =
1163 "#[ \t]*define[ \t]+bool[ \t]";
1164
a8228686
BK
1165/*
1166 * content bypass pattern - skip fix if pattern found
1167 */
1168tSCC zAvoid_Bool_DefineBypass0[] =
bf66f7b0 1169 "__cplusplus";
a8228686
BK
1170
1171#define AVOID_BOOL_DEFINE_TEST_CT 2
3af556f7 1172static tTestDesc aAvoid_Bool_DefineTests[] = {
a8228686 1173 { TT_NEGREP, zAvoid_Bool_DefineBypass0, (regex_t*)NULL },
cd64831f 1174 { TT_EGREP, zAvoid_Bool_DefineSelect0, (regex_t*)NULL }, };
5c0d5b94
ZW
1175
1176/*
cd64831f 1177 * Fix Command Arguments for Avoid_Bool_Define
5c0d5b94 1178 */
3af556f7 1179static const char* apzAvoid_Bool_DefinePatch[] = {
cd64831f
BK
1180 "format",
1181 "#ifndef __cplusplus\n\
1182%0\n\
1183#endif",
1184 "^[ \t]*#[ \t]*define[ \t]+bool[ \t].*",
1185 (char*)NULL };
5c0d5b94 1186
cd64831f
BK
1187/* * * * * * * * * * * * * * * * * * * * * * * * * *
1188 *
1189 * Description of Avoid_Bool_Type fix
1190 */
cd64831f
BK
1191tSCC zAvoid_Bool_TypeName[] =
1192 "avoid_bool_type";
06bbab1b
BK
1193
1194/*
cd64831f 1195 * File name selection pattern
06bbab1b 1196 */
cd64831f 1197tSCC zAvoid_Bool_TypeList[] =
401be4b6 1198 "curses.h\0curses_colr/curses.h\0term.h\0tinfo.h\0";
cd64831f
BK
1199/*
1200 * Machine/OS name selection pattern
1201 */
1202#define apzAvoid_Bool_TypeMachs (const char**)NULL
1203
1204/*
1205 * content selection pattern - do fix if pattern found
1206 */
1207tSCC zAvoid_Bool_TypeSelect0[] =
1208 "^[ \t]*typedef[ \t].*[ \t]bool[ \t]*;";
1209
a8228686
BK
1210/*
1211 * content bypass pattern - skip fix if pattern found
1212 */
1213tSCC zAvoid_Bool_TypeBypass0[] =
bf66f7b0 1214 "__cplusplus";
a8228686
BK
1215
1216#define AVOID_BOOL_TYPE_TEST_CT 2
3af556f7 1217static tTestDesc aAvoid_Bool_TypeTests[] = {
a8228686 1218 { TT_NEGREP, zAvoid_Bool_TypeBypass0, (regex_t*)NULL },
cd64831f
BK
1219 { TT_EGREP, zAvoid_Bool_TypeSelect0, (regex_t*)NULL }, };
1220
1221/*
1222 * Fix Command Arguments for Avoid_Bool_Type
1223 */
3af556f7 1224static const char* apzAvoid_Bool_TypePatch[] = {
cd64831f
BK
1225 "format",
1226 "#ifndef __cplusplus\n\
1227%0\n\
1228#endif",
06bbab1b
BK
1229 (char*)NULL };
1230
8b4c8a86
MM
1231/* * * * * * * * * * * * * * * * * * * * * * * * * *
1232 *
1233 * Description of Avoid_Wchar_T_Type fix
1234 */
8b4c8a86
MM
1235tSCC zAvoid_Wchar_T_TypeName[] =
1236 "avoid_wchar_t_type";
1237
1238/*
1239 * File name selection pattern
1240 */
1241#define zAvoid_Wchar_T_TypeList (char*)NULL
1242/*
1243 * Machine/OS name selection pattern
1244 */
1245#define apzAvoid_Wchar_T_TypeMachs (const char**)NULL
1246
1247/*
1248 * content selection pattern - do fix if pattern found
1249 */
1250tSCC zAvoid_Wchar_T_TypeSelect0[] =
1251 "^[ \t]*typedef[ \t].*[ \t]wchar_t[ \t]*;";
1252
5ded58d0
ZW
1253/*
1254 * content bypass pattern - skip fix if pattern found
1255 */
1256tSCC zAvoid_Wchar_T_TypeBypass0[] =
4146d8d0 1257 "__cplusplus";
5ded58d0
ZW
1258tSCC zAvoid_Wchar_T_TypeBypass1[] =
1259 "_LINUX_NLS_H";
1260tSCC zAvoid_Wchar_T_TypeBypass2[] =
1261 "XFree86: xc/lib/X11/Xlib\\.h";
1262
1263#define AVOID_WCHAR_T_TYPE_TEST_CT 4
8b4c8a86 1264static tTestDesc aAvoid_Wchar_T_TypeTests[] = {
5ded58d0
ZW
1265 { TT_NEGREP, zAvoid_Wchar_T_TypeBypass0, (regex_t*)NULL },
1266 { TT_NEGREP, zAvoid_Wchar_T_TypeBypass1, (regex_t*)NULL },
1267 { TT_NEGREP, zAvoid_Wchar_T_TypeBypass2, (regex_t*)NULL },
8b4c8a86
MM
1268 { TT_EGREP, zAvoid_Wchar_T_TypeSelect0, (regex_t*)NULL }, };
1269
1270/*
1271 * Fix Command Arguments for Avoid_Wchar_T_Type
1272 */
1273static const char* apzAvoid_Wchar_T_TypePatch[] = {
1274 "format",
1275 "#ifndef __cplusplus\n\
1276%0\n\
1277#endif",
8b4c8a86
MM
1278 (char*)NULL };
1279
06bbab1b
BK
1280/* * * * * * * * * * * * * * * * * * * * * * * * * *
1281 *
5abc1f74 1282 * Description of Bad_Struct_Term fix
06bbab1b
BK
1283 */
1284tSCC zBad_Struct_TermName[] =
3be1fb72
ZW
1285 "bad_struct_term";
1286
06bbab1b
BK
1287/*
1288 * File name selection pattern
1289 */
1290tSCC zBad_Struct_TermList[] =
401be4b6 1291 "curses.h\0";
06bbab1b
BK
1292/*
1293 * Machine/OS name selection pattern
1294 */
1295#define apzBad_Struct_TermMachs (const char**)NULL
1296
1297/*
be02fa1a 1298 * content selection pattern - do fix if pattern found
06bbab1b
BK
1299 */
1300tSCC zBad_Struct_TermSelect0[] =
1301 "^[ \t]*typedef[ \t]+struct[ \t]+term[ \t]*;";
1302
1303#define BAD_STRUCT_TERM_TEST_CT 1
3af556f7 1304static tTestDesc aBad_Struct_TermTests[] = {
5abc1f74 1305 { TT_EGREP, zBad_Struct_TermSelect0, (regex_t*)NULL }, };
06bbab1b
BK
1306
1307/*
1308 * Fix Command Arguments for Bad_Struct_Term
1309 */
3af556f7 1310static const char* apzBad_Struct_TermPatch[] = {
cd64831f
BK
1311 "format",
1312 "struct term;",
06bbab1b
BK
1313 (char*)NULL };
1314
1315/* * * * * * * * * * * * * * * * * * * * * * * * * *
1316 *
5abc1f74 1317 * Description of Badquote fix
06bbab1b
BK
1318 */
1319tSCC zBadquoteName[] =
3be1fb72
ZW
1320 "badquote";
1321
06bbab1b
BK
1322/*
1323 * File name selection pattern
1324 */
1325tSCC zBadquoteList[] =
401be4b6 1326 "sundev/vuid_event.h\0";
06bbab1b
BK
1327/*
1328 * Machine/OS name selection pattern
1329 */
1330#define apzBadquoteMachs (const char**)NULL
cd64831f
BK
1331
1332/*
1333 * content selection pattern - do fix if pattern found
1334 */
1335tSCC zBadquoteSelect0[] =
1336 "doesn't";
1337
1338#define BADQUOTE_TEST_CT 1
3af556f7 1339static tTestDesc aBadquoteTests[] = {
cd64831f 1340 { TT_EGREP, zBadquoteSelect0, (regex_t*)NULL }, };
06bbab1b
BK
1341
1342/*
1343 * Fix Command Arguments for Badquote
1344 */
3af556f7 1345static const char* apzBadquotePatch[] = {
cd64831f
BK
1346 "format",
1347 "does not",
06bbab1b
BK
1348 (char*)NULL };
1349
06bbab1b
BK
1350/* * * * * * * * * * * * * * * * * * * * * * * * * *
1351 *
5abc1f74 1352 * Description of Broken_Assert_Stdio fix
06bbab1b
BK
1353 */
1354tSCC zBroken_Assert_StdioName[] =
3be1fb72
ZW
1355 "broken_assert_stdio";
1356
06bbab1b
BK
1357/*
1358 * File name selection pattern
1359 */
1360tSCC zBroken_Assert_StdioList[] =
401be4b6 1361 "assert.h\0";
06bbab1b
BK
1362/*
1363 * Machine/OS name selection pattern
1364 */
1365#define apzBroken_Assert_StdioMachs (const char**)NULL
1366
1367/*
be02fa1a 1368 * content selection pattern - do fix if pattern found
06bbab1b
BK
1369 */
1370tSCC zBroken_Assert_StdioSelect0[] =
1371 "stderr";
1372
1373/*
be02fa1a 1374 * content bypass pattern - skip fix if pattern found
06bbab1b
BK
1375 */
1376tSCC zBroken_Assert_StdioBypass0[] =
87b6d63a 1377 "include.*stdio\\.h";
06bbab1b
BK
1378
1379#define BROKEN_ASSERT_STDIO_TEST_CT 2
3af556f7 1380static tTestDesc aBroken_Assert_StdioTests[] = {
5abc1f74
BK
1381 { TT_NEGREP, zBroken_Assert_StdioBypass0, (regex_t*)NULL },
1382 { TT_EGREP, zBroken_Assert_StdioSelect0, (regex_t*)NULL }, };
06bbab1b
BK
1383
1384/*
1385 * Fix Command Arguments for Broken_Assert_Stdio
1386 */
3af556f7 1387static const char* apzBroken_Assert_StdioPatch[] = {
ba8fcfc3
BK
1388 "wrap",
1389 "#include <stdio.h>\n",
06bbab1b
BK
1390 (char*)NULL };
1391
1392/* * * * * * * * * * * * * * * * * * * * * * * * * *
1393 *
5abc1f74 1394 * Description of Broken_Assert_Stdlib fix
06bbab1b
BK
1395 */
1396tSCC zBroken_Assert_StdlibName[] =
3be1fb72
ZW
1397 "broken_assert_stdlib";
1398
06bbab1b
BK
1399/*
1400 * File name selection pattern
1401 */
1402tSCC zBroken_Assert_StdlibList[] =
401be4b6 1403 "assert.h\0";
06bbab1b
BK
1404/*
1405 * Machine/OS name selection pattern
1406 */
1407#define apzBroken_Assert_StdlibMachs (const char**)NULL
1408
1409/*
be02fa1a 1410 * content selection pattern - do fix if pattern found
06bbab1b
BK
1411 */
1412tSCC zBroken_Assert_StdlibSelect0[] =
1413 "exit *\\(|abort *\\(";
1414
1415/*
be02fa1a 1416 * content bypass pattern - skip fix if pattern found
06bbab1b
BK
1417 */
1418tSCC zBroken_Assert_StdlibBypass0[] =
87b6d63a 1419 "include.*stdlib\\.h";
06bbab1b
BK
1420
1421#define BROKEN_ASSERT_STDLIB_TEST_CT 2
3af556f7 1422static tTestDesc aBroken_Assert_StdlibTests[] = {
5abc1f74
BK
1423 { TT_NEGREP, zBroken_Assert_StdlibBypass0, (regex_t*)NULL },
1424 { TT_EGREP, zBroken_Assert_StdlibSelect0, (regex_t*)NULL }, };
06bbab1b
BK
1425
1426/*
1427 * Fix Command Arguments for Broken_Assert_Stdlib
1428 */
3af556f7 1429static const char* apzBroken_Assert_StdlibPatch[] = {
ba8fcfc3
BK
1430 "wrap",
1431 "#ifdef __cplusplus\n\
1432#include <stdlib.h>\n\
1433#endif\n",
06bbab1b
BK
1434 (char*)NULL };
1435
72b9c7fb
BK
1436/* * * * * * * * * * * * * * * * * * * * * * * * * *
1437 *
1438 * Description of Broken_Cabs fix
1439 */
72b9c7fb
BK
1440tSCC zBroken_CabsName[] =
1441 "broken_cabs";
1442
1443/*
1444 * File name selection pattern
1445 */
1446tSCC zBroken_CabsList[] =
401be4b6 1447 "math.h\0architecture/*/math.h\0";
72b9c7fb
BK
1448/*
1449 * Machine/OS name selection pattern
1450 */
1451#define apzBroken_CabsMachs (const char**)NULL
1452
1453/*
1454 * content selection pattern - do fix if pattern found
1455 */
1456tSCC zBroken_CabsSelect0[] =
11f4453b 1457 "^extern[ \t]+double[ \t]+cabs";
72b9c7fb
BK
1458
1459#define BROKEN_CABS_TEST_CT 1
3af556f7 1460static tTestDesc aBroken_CabsTests[] = {
72b9c7fb
BK
1461 { TT_EGREP, zBroken_CabsSelect0, (regex_t*)NULL }, };
1462
1463/*
1464 * Fix Command Arguments for Broken_Cabs
1465 */
6aa1f8c1 1466static const char* apzBroken_CabsPatch[] = { sed_cmd_z,
a942e89f
DF
1467 "-e", "s/^extern[ \t]*double[ \t]*cabs[ \t]*([^\\)]*);//",
1468 "-e", "s/^extern[ \t]*long[ \t]*double[ \t]*cabsl[ \t]*([^\\)]*);//",
72b9c7fb
BK
1469 (char*)NULL };
1470
bf73f6d2
AP
1471/* * * * * * * * * * * * * * * * * * * * * * * * * *
1472 *
1473 * Description of Broken_Nan fix
1474 */
1475tSCC zBroken_NanName[] =
1476 "broken_nan";
1477
1478/*
1479 * File name selection pattern
1480 */
1481tSCC zBroken_NanList[] =
401be4b6 1482 "architecture/ppc/math.h\0architecture/*/math.h\0";
bf73f6d2
AP
1483/*
1484 * Machine/OS name selection pattern
1485 */
1486#define apzBroken_NanMachs (const char**)NULL
1487
1488/*
1489 * content selection pattern - do fix if pattern found
1490 */
1491tSCC zBroken_NanSelect0[] =
1492 "#if defined(__APPLE_CC__) && (__APPLE_CC__ >= 1345)";
1493
1494/*
1495 * content bypass pattern - skip fix if pattern found
1496 */
1497tSCC zBroken_NanBypass0[] =
1498 "powl";
1499
1500#define BROKEN_NAN_TEST_CT 2
1501static tTestDesc aBroken_NanTests[] = {
1502 { TT_NEGREP, zBroken_NanBypass0, (regex_t*)NULL },
1503 { TT_EGREP, zBroken_NanSelect0, (regex_t*)NULL }, };
1504
1505/*
1506 * Fix Command Arguments for Broken_Nan
1507 */
1508static const char* apzBroken_NanPatch[] = {
1509 "format",
1510 "#if 1",
1511 (char*)NULL };
1512
8882ac3a
BK
1513/* * * * * * * * * * * * * * * * * * * * * * * * * *
1514 *
1515 * Description of Bsd_Stdio_Attrs_Conflict fix
1516 */
1517tSCC zBsd_Stdio_Attrs_ConflictName[] =
1518 "bsd_stdio_attrs_conflict";
1519
1520/*
1521 * File name selection pattern
1522 */
1523tSCC zBsd_Stdio_Attrs_ConflictList[] =
401be4b6 1524 "stdio.h\0";
8882ac3a
BK
1525/*
1526 * Machine/OS name selection pattern
1527 */
1528tSCC* apzBsd_Stdio_Attrs_ConflictMachs[] = {
1529 "*-*-*bsd*",
1530 "*-*-*darwin*",
1531 (const char*)NULL };
1532
1533/*
1534 * content selection pattern - do fix if pattern found
1535 */
1536tSCC zBsd_Stdio_Attrs_ConflictSelect0[] =
1537 "^#define[ \t]*vfscanf[ \t]*__svfscanf[ \t]*$";
1538
1539#define BSD_STDIO_ATTRS_CONFLICT_TEST_CT 1
1540static tTestDesc aBsd_Stdio_Attrs_ConflictTests[] = {
1541 { TT_EGREP, zBsd_Stdio_Attrs_ConflictSelect0, (regex_t*)NULL }, };
1542
1543/*
1544 * Fix Command Arguments for Bsd_Stdio_Attrs_Conflict
1545 */
1546static const char* apzBsd_Stdio_Attrs_ConflictPatch[] = {
1547 "format",
1548 "#define _BSD_STRING(_BSD_X) _BSD_STRINGX(_BSD_X)\n\
1549#define _BSD_STRINGX(_BSD_X) #_BSD_X\n\
1550int vfscanf(FILE *, const char *, __builtin_va_list) __asm__ (_BSD_STRING(__USER_LABEL_PREFIX__) \"__svfscanf\");",
1551 (char*)NULL };
1552
48bd9529
BK
1553/* * * * * * * * * * * * * * * * * * * * * * * * * *
1554 *
79589c4d 1555 * Description of Ctrl_Quotes_Def fix
48bd9529 1556 */
79589c4d
BK
1557tSCC zCtrl_Quotes_DefName[] =
1558 "ctrl_quotes_def";
3be1fb72 1559
48bd9529
BK
1560/*
1561 * File name selection pattern
1562 */
79589c4d 1563#define zCtrl_Quotes_DefList (char*)NULL
48bd9529
BK
1564/*
1565 * Machine/OS name selection pattern
1566 */
79589c4d 1567#define apzCtrl_Quotes_DefMachs (const char**)NULL
48bd9529
BK
1568
1569/*
79589c4d 1570 * content selection pattern - do fix if pattern found
48bd9529 1571 */
79589c4d 1572tSCC zCtrl_Quotes_DefSelect0[] =
cf6d5133 1573 "define[ \t]+[A-Z0-9_]+CTRL\\([a-zA-Z][,)]";
79589c4d
BK
1574
1575#define CTRL_QUOTES_DEF_TEST_CT 1
3af556f7 1576static tTestDesc aCtrl_Quotes_DefTests[] = {
79589c4d
BK
1577 { TT_EGREP, zCtrl_Quotes_DefSelect0, (regex_t*)NULL }, };
1578
1579/*
1580 * Fix Command Arguments for Ctrl_Quotes_Def
1581 */
3af556f7 1582static const char* apzCtrl_Quotes_DefPatch[] = {
79589c4d
BK
1583 "char_macro_def",
1584 "CTRL",
48bd9529
BK
1585 (char*)NULL };
1586
06bbab1b
BK
1587/* * * * * * * * * * * * * * * * * * * * * * * * * *
1588 *
79589c4d 1589 * Description of Ctrl_Quotes_Use fix
06bbab1b 1590 */
79589c4d
BK
1591tSCC zCtrl_Quotes_UseName[] =
1592 "ctrl_quotes_use";
3be1fb72 1593
06bbab1b
BK
1594/*
1595 * File name selection pattern
1596 */
79589c4d 1597#define zCtrl_Quotes_UseList (char*)NULL
06bbab1b
BK
1598/*
1599 * Machine/OS name selection pattern
1600 */
79589c4d 1601#define apzCtrl_Quotes_UseMachs (const char**)NULL
06bbab1b
BK
1602
1603/*
79589c4d 1604 * content selection pattern - do fix if pattern found
06bbab1b 1605 */
79589c4d
BK
1606tSCC zCtrl_Quotes_UseSelect0[] =
1607 "define[ \t]+[A-Z0-9_]+[ \t]+[A-Z0-9_]+CTRL[ \t]*\\( *[^,']";
1608
1609#define CTRL_QUOTES_USE_TEST_CT 1
3af556f7 1610static tTestDesc aCtrl_Quotes_UseTests[] = {
79589c4d
BK
1611 { TT_EGREP, zCtrl_Quotes_UseSelect0, (regex_t*)NULL }, };
1612
1613/*
1614 * Fix Command Arguments for Ctrl_Quotes_Use
1615 */
3af556f7 1616static const char* apzCtrl_Quotes_UsePatch[] = {
79589c4d
BK
1617 "char_macro_use",
1618 "CTRL",
06bbab1b
BK
1619 (char*)NULL };
1620
06bbab1b
BK
1621/* * * * * * * * * * * * * * * * * * * * * * * * * *
1622 *
79589c4d 1623 * Description of Cxx_Unready fix
06bbab1b 1624 */
79589c4d
BK
1625tSCC zCxx_UnreadyName[] =
1626 "cxx_unready";
3be1fb72 1627
06bbab1b
BK
1628/*
1629 * File name selection pattern
1630 */
79589c4d 1631tSCC zCxx_UnreadyList[] =
401be4b6 1632 "sys/mman.h\0rpc/types.h\0";
06bbab1b
BK
1633/*
1634 * Machine/OS name selection pattern
1635 */
79589c4d 1636#define apzCxx_UnreadyMachs (const char**)NULL
06bbab1b
BK
1637
1638/*
be02fa1a 1639 * content selection pattern - do fix if pattern found
06bbab1b 1640 */
79589c4d
BK
1641tSCC zCxx_UnreadySelect0[] =
1642 "[^#]+malloc.*;";
06bbab1b 1643
79589c4d
BK
1644/*
1645 * content bypass pattern - skip fix if pattern found
1646 */
1647tSCC zCxx_UnreadyBypass0[] =
1648 "\"C\"|__BEGIN_DECLS";
1649
1650#define CXX_UNREADY_TEST_CT 2
3af556f7 1651static tTestDesc aCxx_UnreadyTests[] = {
79589c4d
BK
1652 { TT_NEGREP, zCxx_UnreadyBypass0, (regex_t*)NULL },
1653 { TT_EGREP, zCxx_UnreadySelect0, (regex_t*)NULL }, };
06bbab1b
BK
1654
1655/*
79589c4d 1656 * Fix Command Arguments for Cxx_Unready
06bbab1b 1657 */
3af556f7 1658static const char* apzCxx_UnreadyPatch[] = {
79589c4d
BK
1659 "wrap",
1660 "#ifdef __cplusplus\n\
1661extern \"C\" {\n\
1662#endif\n",
1663 "#ifdef __cplusplus\n\
1664}\n\
1665#endif\n",
06bbab1b
BK
1666 (char*)NULL };
1667
b6bbae95
GK
1668/* * * * * * * * * * * * * * * * * * * * * * * * * *
1669 *
1670 * Description of Darwin_Externc fix
1671 */
1672tSCC zDarwin_ExterncName[] =
1673 "darwin_externc";
1674
1675/*
1676 * File name selection pattern
1677 */
1678tSCC zDarwin_ExterncList[] =
1679 "mach-o/swap.h\0mach/mach_time.h\0mach/mach_traps.h\0mach/message.h\0mach/mig.h\0mach/semaphore.h\0";
1680/*
1681 * Machine/OS name selection pattern
1682 */
1683tSCC* apzDarwin_ExterncMachs[] = {
1684 "*-*-darwin*",
1685 (const char*)NULL };
1686
1687/*
1688 * content bypass pattern - skip fix if pattern found
1689 */
1690tSCC zDarwin_ExterncBypass0[] =
1691 "extern \"C\"";
1692tSCC zDarwin_ExterncBypass1[] =
1693 "__BEGIN_DECLS";
1694
1695#define DARWIN_EXTERNC_TEST_CT 2
1696static tTestDesc aDarwin_ExterncTests[] = {
1697 { TT_NEGREP, zDarwin_ExterncBypass0, (regex_t*)NULL },
1698 { TT_NEGREP, zDarwin_ExterncBypass1, (regex_t*)NULL }, };
1699
1700/*
1701 * Fix Command Arguments for Darwin_Externc
1702 */
1703static const char* apzDarwin_ExterncPatch[] = {
1704 "wrap",
1705 "#ifdef __cplusplus\n\
1706extern \"C\" {\n\
1707#endif\n",
1708 "#ifdef __cplusplus\n\
1709}\n\
1710#endif\n",
1711 (char*)NULL };
1712
005c1a13
GK
1713/* * * * * * * * * * * * * * * * * * * * * * * * * *
1714 *
1715 * Description of Darwin_Gcc4_Breakage fix
1716 */
1717tSCC zDarwin_Gcc4_BreakageName[] =
1718 "darwin_gcc4_breakage";
1719
1720/*
1721 * File name selection pattern
1722 */
1723tSCC zDarwin_Gcc4_BreakageList[] =
401be4b6 1724 "AvailabilityMacros.h\0";
005c1a13
GK
1725/*
1726 * Machine/OS name selection pattern
1727 */
1728tSCC* apzDarwin_Gcc4_BreakageMachs[] = {
1729 "*-*-darwin*",
1730 (const char*)NULL };
1731
1732/*
1733 * content selection pattern - do fix if pattern found
1734 */
1735tSCC zDarwin_Gcc4_BreakageSelect0[] =
1736 "\\(__GNUC__ >= 3\\) && \\(__GNUC_MINOR__ >= 1\\)";
1737
1738#define DARWIN_GCC4_BREAKAGE_TEST_CT 1
1739static tTestDesc aDarwin_Gcc4_BreakageTests[] = {
1740 { TT_EGREP, zDarwin_Gcc4_BreakageSelect0, (regex_t*)NULL }, };
1741
1742/*
1743 * Fix Command Arguments for Darwin_Gcc4_Breakage
1744 */
1745static const char* apzDarwin_Gcc4_BreakagePatch[] = {
1746 "format",
1747 "((__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 1))",
1748 (char*)NULL };
1749
3afbff37
GK
1750/* * * * * * * * * * * * * * * * * * * * * * * * * *
1751 *
1752 * Description of Darwin_Private_Extern fix
1753 */
1754tSCC zDarwin_Private_ExternName[] =
1755 "darwin_private_extern";
1756
1757/*
1758 * File name selection pattern
1759 */
1760tSCC zDarwin_Private_ExternList[] =
401be4b6 1761 "mach-o/dyld.h\0";
3afbff37
GK
1762/*
1763 * Machine/OS name selection pattern
1764 */
1765tSCC* apzDarwin_Private_ExternMachs[] = {
1766 "*-*-darwin*",
1767 (const char*)NULL };
1768
1769/*
1770 * content selection pattern - do fix if pattern found
1771 */
1772tSCC zDarwin_Private_ExternSelect0[] =
1773 "__private_extern__ [a-z_]+ _dyld_";
1774
1775#define DARWIN_PRIVATE_EXTERN_TEST_CT 1
1776static tTestDesc aDarwin_Private_ExternTests[] = {
1777 { TT_EGREP, zDarwin_Private_ExternSelect0, (regex_t*)NULL }, };
1778
1779/*
1780 * Fix Command Arguments for Darwin_Private_Extern
1781 */
1782static const char* apzDarwin_Private_ExternPatch[] = {
1783 "format",
1784 "extern",
1785 "__private_extern__",
1786 (char*)NULL };
1787
fdfbd469
FXC
1788/* * * * * * * * * * * * * * * * * * * * * * * * * *
1789 *
1790 * Description of Darwin_Stdint_1 fix
1791 */
1792tSCC zDarwin_Stdint_1Name[] =
1793 "darwin_stdint_1";
1794
1795/*
1796 * File name selection pattern
1797 */
1798tSCC zDarwin_Stdint_1List[] =
1799 "stdint.h\0";
1800/*
1801 * Machine/OS name selection pattern
1802 */
1803tSCC* apzDarwin_Stdint_1Machs[] = {
1804 "*-*-darwin*",
1805 (const char*)NULL };
1806
1807/*
1808 * content selection pattern - do fix if pattern found
1809 */
1810tSCC zDarwin_Stdint_1Select0[] =
1811 "#define UINT8_C\\(v\\)[ \t]+\\(v ## U\\)\n\
1812#define UINT16_C\\(v\\)[ \t]+\\(v ## U\\)";
1813
1814#define DARWIN_STDINT_1_TEST_CT 1
1815static tTestDesc aDarwin_Stdint_1Tests[] = {
1816 { TT_EGREP, zDarwin_Stdint_1Select0, (regex_t*)NULL }, };
1817
1818/*
1819 * Fix Command Arguments for Darwin_Stdint_1
1820 */
1821static const char* apzDarwin_Stdint_1Patch[] = {
1822 "format",
1823 "#define UINT8_C(v)\tv\n\
1824#define UINT16_C(v)\tv",
1825 (char*)NULL };
1826
1827/* * * * * * * * * * * * * * * * * * * * * * * * * *
1828 *
1829 * Description of Darwin_Stdint_2 fix
1830 */
1831tSCC zDarwin_Stdint_2Name[] =
1832 "darwin_stdint_2";
1833
1834/*
1835 * File name selection pattern
1836 */
1837tSCC zDarwin_Stdint_2List[] =
1838 "stdint.h\0";
1839/*
1840 * Machine/OS name selection pattern
1841 */
1842tSCC* apzDarwin_Stdint_2Machs[] = {
1843 "*-*-darwin*",
1844 (const char*)NULL };
1845
1846/*
1847 * content selection pattern - do fix if pattern found
1848 */
1849tSCC zDarwin_Stdint_2Select0[] =
1850 "#if __WORDSIZE == 64\n\
1851#define INTPTR_MIN[ \t]+INT64_MIN\n\
1852#define INTPTR_MAX[ \t]+INT64_MAX\n\
1853#else\n\
1854#define INTPTR_MIN[ \t]+INT32_MIN\n\
1855#define INTPTR_MAX[ \t]+INT32_MAX\n\
1856#endif";
1857
1858#define DARWIN_STDINT_2_TEST_CT 1
1859static tTestDesc aDarwin_Stdint_2Tests[] = {
1860 { TT_EGREP, zDarwin_Stdint_2Select0, (regex_t*)NULL }, };
1861
1862/*
1863 * Fix Command Arguments for Darwin_Stdint_2
1864 */
1865static const char* apzDarwin_Stdint_2Patch[] = {
1866 "format",
1867 "#if __WORDSIZE == 64\n\
1868#define INTPTR_MAX 9223372036854775807L\n\
1869#define INTPTR_MIN (-INTPTR_MAX-1)\n\
1870#else\n\
1871#define INTPTR_MAX 2147483647L\n\
1872#define INTPTR_MIN (-INTPTR_MAX-1)\n\
1873#endif",
1874 (char*)NULL };
1875
1876/* * * * * * * * * * * * * * * * * * * * * * * * * *
1877 *
1878 * Description of Darwin_Stdint_3 fix
1879 */
1880tSCC zDarwin_Stdint_3Name[] =
1881 "darwin_stdint_3";
1882
1883/*
1884 * File name selection pattern
1885 */
1886tSCC zDarwin_Stdint_3List[] =
1887 "stdint.h\0";
1888/*
1889 * Machine/OS name selection pattern
1890 */
1891tSCC* apzDarwin_Stdint_3Machs[] = {
1892 "*-*-darwin*",
1893 (const char*)NULL };
1894
1895/*
1896 * content selection pattern - do fix if pattern found
1897 */
1898tSCC zDarwin_Stdint_3Select0[] =
1899 "#if __WORDSIZE == 64\n\
1900#define UINTPTR_MAX[ \t]+UINT64_MAX\n\
1901#else\n\
1902#define UINTPTR_MAX[ \t]+UINT32_MAX\n\
1903#endif";
1904
1905#define DARWIN_STDINT_3_TEST_CT 1
1906static tTestDesc aDarwin_Stdint_3Tests[] = {
1907 { TT_EGREP, zDarwin_Stdint_3Select0, (regex_t*)NULL }, };
1908
1909/*
1910 * Fix Command Arguments for Darwin_Stdint_3
1911 */
1912static const char* apzDarwin_Stdint_3Patch[] = {
1913 "format",
1914 "#if __WORDSIZE == 64\n\
1915#define UINTPTR_MAX 18446744073709551615UL\n\
1916#else\n\
1917#define UINTPTR_MAX 4294967295UL\n\
1918#endif",
1919 (char*)NULL };
1920
1921/* * * * * * * * * * * * * * * * * * * * * * * * * *
1922 *
1923 * Description of Darwin_Stdint_4 fix
1924 */
1925tSCC zDarwin_Stdint_4Name[] =
1926 "darwin_stdint_4";
1927
1928/*
1929 * File name selection pattern
1930 */
1931tSCC zDarwin_Stdint_4List[] =
1932 "stdint.h\0";
1933/*
1934 * Machine/OS name selection pattern
1935 */
1936tSCC* apzDarwin_Stdint_4Machs[] = {
1937 "*-*-darwin*",
1938 (const char*)NULL };
1939
1940/*
1941 * content selection pattern - do fix if pattern found
1942 */
1943tSCC zDarwin_Stdint_4Select0[] =
1944 "#if __WORDSIZE == 64\n\
1945#define SIZE_MAX[ \t]+UINT64_MAX\n\
1946#else\n\
1947#define SIZE_MAX[ \t]+UINT32_MAX\n\
1948#endif";
1949
1950#define DARWIN_STDINT_4_TEST_CT 1
1951static tTestDesc aDarwin_Stdint_4Tests[] = {
1952 { TT_EGREP, zDarwin_Stdint_4Select0, (regex_t*)NULL }, };
1953
1954/*
1955 * Fix Command Arguments for Darwin_Stdint_4
1956 */
1957static const char* apzDarwin_Stdint_4Patch[] = {
1958 "format",
1959 "#if __WORDSIZE == 64\n\
1960#define SIZE_MAX 18446744073709551615UL\n\
1961#else\n\
1962#define SIZE_MAX 4294967295UL\n\
1963#endif",
1964 (char*)NULL };
1965
06bbab1b
BK
1966/* * * * * * * * * * * * * * * * * * * * * * * * * *
1967 *
79589c4d 1968 * Description of Dec_Intern_Asm fix
06bbab1b 1969 */
79589c4d
BK
1970tSCC zDec_Intern_AsmName[] =
1971 "dec_intern_asm";
3be1fb72 1972
06bbab1b
BK
1973/*
1974 * File name selection pattern
1975 */
79589c4d 1976tSCC zDec_Intern_AsmList[] =
401be4b6 1977 "c_asm.h\0";
06bbab1b
BK
1978/*
1979 * Machine/OS name selection pattern
1980 */
79589c4d
BK
1981#define apzDec_Intern_AsmMachs (const char**)NULL
1982#define DEC_INTERN_ASM_TEST_CT 0
1983#define aDec_Intern_AsmTests (tTestDesc*)NULL
06bbab1b
BK
1984
1985/*
79589c4d 1986 * Fix Command Arguments for Dec_Intern_Asm
06bbab1b 1987 */
6aa1f8c1 1988static const char* apzDec_Intern_AsmPatch[] = { sed_cmd_z,
79589c4d
BK
1989 "-e", "/^[ \t]*float[ \t]*fasm/i\\\n\
1990#ifdef __DECC\n",
1991 "-e", "/^[ \t]*#[ \t]*pragma[ \t]*intrinsic([ \t]*dasm/a\\\n\
1992#endif\n",
1993 (char*)NULL };
06bbab1b 1994
6822468a
LB
1995/* * * * * * * * * * * * * * * * * * * * * * * * * *
1996 *
1997 * Description of Djgpp_Wchar_H fix
1998 */
6822468a
LB
1999tSCC zDjgpp_Wchar_HName[] =
2000 "djgpp_wchar_h";
2001
2002/*
2003 * File name selection pattern
2004 */
2005#define zDjgpp_Wchar_HList (char*)NULL
2006/*
2007 * Machine/OS name selection pattern
2008 */
2009#define apzDjgpp_Wchar_HMachs (const char**)NULL
2010
2011/*
2012 * content selection pattern - do fix if pattern found
2013 */
2014tSCC zDjgpp_Wchar_HSelect0[] =
2015 "__DJ_wint_t";
2016
2017/*
2018 * content bypass pattern - skip fix if pattern found
2019 */
2020tSCC zDjgpp_Wchar_HBypass0[] =
2021 "sys/djtypes.h";
2022
2023#define DJGPP_WCHAR_H_TEST_CT 2
2024static tTestDesc aDjgpp_Wchar_HTests[] = {
2025 { TT_NEGREP, zDjgpp_Wchar_HBypass0, (regex_t*)NULL },
2026 { TT_EGREP, zDjgpp_Wchar_HSelect0, (regex_t*)NULL }, };
2027
2028/*
2029 * Fix Command Arguments for Djgpp_Wchar_H
2030 */
2031static const char* apzDjgpp_Wchar_HPatch[] = {
2032 "format",
2033 "%0\n\
2034#include <sys/djtypes.h>",
2035 "#include <stddef.h>",
2036 (char*)NULL };
2037
79589c4d
BK
2038/* * * * * * * * * * * * * * * * * * * * * * * * * *
2039 *
2040 * Description of Ecd_Cursor fix
2041 */
79589c4d
BK
2042tSCC zEcd_CursorName[] =
2043 "ecd_cursor";
06bbab1b
BK
2044
2045/*
79589c4d 2046 * File name selection pattern
06bbab1b 2047 */
79589c4d 2048tSCC zEcd_CursorList[] =
401be4b6 2049 "sunwindow/win_lock.h\0sunwindow/win_cursor.h\0";
79589c4d
BK
2050/*
2051 * Machine/OS name selection pattern
2052 */
2053#define apzEcd_CursorMachs (const char**)NULL
cd64831f
BK
2054
2055/*
2056 * content selection pattern - do fix if pattern found
2057 */
2058tSCC zEcd_CursorSelect0[] =
2059 "ecd\\.cursor";
2060
2061#define ECD_CURSOR_TEST_CT 1
3af556f7 2062static tTestDesc aEcd_CursorTests[] = {
cd64831f 2063 { TT_EGREP, zEcd_CursorSelect0, (regex_t*)NULL }, };
79589c4d
BK
2064
2065/*
2066 * Fix Command Arguments for Ecd_Cursor
2067 */
3af556f7 2068static const char* apzEcd_CursorPatch[] = {
cd64831f
BK
2069 "format",
2070 "ecd_cursor",
06bbab1b
BK
2071 (char*)NULL };
2072
89647e8a
LR
2073/* * * * * * * * * * * * * * * * * * * * * * * * * *
2074 *
2075 * Description of Freebsd_Gcc3_Breakage fix
2076 */
89647e8a
LR
2077tSCC zFreebsd_Gcc3_BreakageName[] =
2078 "freebsd_gcc3_breakage";
2079
2080/*
2081 * File name selection pattern
2082 */
2083tSCC zFreebsd_Gcc3_BreakageList[] =
401be4b6 2084 "sys/cdefs.h\0";
89647e8a
LR
2085/*
2086 * Machine/OS name selection pattern
2087 */
2088tSCC* apzFreebsd_Gcc3_BreakageMachs[] = {
2089 "*-*-freebsd*",
2090 (const char*)NULL };
2091
2092/*
2093 * content selection pattern - do fix if pattern found
2094 */
2095tSCC zFreebsd_Gcc3_BreakageSelect0[] =
2096 "^#if __GNUC__ == 2 && __GNUC_MINOR__ >= 7$";
2097
2098/*
2099 * content bypass pattern - skip fix if pattern found
2100 */
2101tSCC zFreebsd_Gcc3_BreakageBypass0[] =
2102 "__GNUC__[ \\t]*([>=]=[ \\t]*[3-9]|>[ \\t]*2)";
2103
2104#define FREEBSD_GCC3_BREAKAGE_TEST_CT 2
2105static tTestDesc aFreebsd_Gcc3_BreakageTests[] = {
2106 { TT_NEGREP, zFreebsd_Gcc3_BreakageBypass0, (regex_t*)NULL },
2107 { TT_EGREP, zFreebsd_Gcc3_BreakageSelect0, (regex_t*)NULL }, };
2108
2109/*
2110 * Fix Command Arguments for Freebsd_Gcc3_Breakage
2111 */
2112static const char* apzFreebsd_Gcc3_BreakagePatch[] = {
2113 "format",
2114 "%0 || __GNUC__ >= 3",
2115 (char*)NULL };
2116
28785dde
LR
2117/* * * * * * * * * * * * * * * * * * * * * * * * * *
2118 *
2119 * Description of Freebsd_Gcc4_Breakage fix
2120 */
2121tSCC zFreebsd_Gcc4_BreakageName[] =
2122 "freebsd_gcc4_breakage";
2123
2124/*
2125 * File name selection pattern
2126 */
2127tSCC zFreebsd_Gcc4_BreakageList[] =
401be4b6 2128 "sys/cdefs.h\0";
28785dde
LR
2129/*
2130 * Machine/OS name selection pattern
2131 */
2132tSCC* apzFreebsd_Gcc4_BreakageMachs[] = {
2133 "*-*-freebsd*",
2134 (const char*)NULL };
2135
2136/*
2137 * content selection pattern - do fix if pattern found
2138 */
2139tSCC zFreebsd_Gcc4_BreakageSelect0[] =
2140 "^#if __GNUC__ == 2 && __GNUC_MINOR__ >= 7 \\|\\| __GNUC__ == 3$";
2141
2142#define FREEBSD_GCC4_BREAKAGE_TEST_CT 1
2143static tTestDesc aFreebsd_Gcc4_BreakageTests[] = {
2144 { TT_EGREP, zFreebsd_Gcc4_BreakageSelect0, (regex_t*)NULL }, };
2145
2146/*
2147 * Fix Command Arguments for Freebsd_Gcc4_Breakage
2148 */
2149static const char* apzFreebsd_Gcc4_BreakagePatch[] = {
2150 "format",
2151 "#if __GNUC__ == 2 && __GNUC_MINOR__ >= 7 || __GNUC__ >= 3",
2152 (char*)NULL };
2153
502e2a2d
GK
2154/* * * * * * * * * * * * * * * * * * * * * * * * * *
2155 *
2156 * Description of Glibc_C99_Inline_1 fix
2157 */
2158tSCC zGlibc_C99_Inline_1Name[] =
2159 "glibc_c99_inline_1";
2160
2161/*
2162 * File name selection pattern
2163 */
2164tSCC zGlibc_C99_Inline_1List[] =
401be4b6 2165 "features.h\0*/features.h\0";
502e2a2d
GK
2166/*
2167 * Machine/OS name selection pattern
2168 */
2169#define apzGlibc_C99_Inline_1Machs (const char**)NULL
2170
2171/*
2172 * content selection pattern - do fix if pattern found
2173 */
2174tSCC zGlibc_C99_Inline_1Select0[] =
2175 "^ *&& !defined __OPTIMIZE_SIZE__ && !defined __NO_INLINE__$";
2176
2177#define GLIBC_C99_INLINE_1_TEST_CT 1
2178static tTestDesc aGlibc_C99_Inline_1Tests[] = {
2179 { TT_EGREP, zGlibc_C99_Inline_1Select0, (regex_t*)NULL }, };
2180
2181/*
2182 * Fix Command Arguments for Glibc_C99_Inline_1
2183 */
2184static const char* apzGlibc_C99_Inline_1Patch[] = {
2185 "format",
cb3790cb 2186 "%0 && (defined __extern_inline || defined __GNUC_GNU_INLINE__)",
502e2a2d
GK
2187 (char*)NULL };
2188
c91e2eae
HPN
2189/* * * * * * * * * * * * * * * * * * * * * * * * * *
2190 *
2191 * Description of Glibc_C99_Inline_1a fix
2192 */
2193tSCC zGlibc_C99_Inline_1aName[] =
2194 "glibc_c99_inline_1a";
2195
2196/*
2197 * File name selection pattern
2198 */
2199tSCC zGlibc_C99_Inline_1aList[] =
2200 "features.h\0*/features.h\0";
2201/*
2202 * Machine/OS name selection pattern
2203 */
2204#define apzGlibc_C99_Inline_1aMachs (const char**)NULL
2205
2206/*
2207 * content selection pattern - do fix if pattern found
2208 */
2209tSCC zGlibc_C99_Inline_1aSelect0[] =
2210 "(\\) && defined __OPTIMIZE__ && !defined __OPTIMIZE_SIZE__)\n\
2211(#[ \t]*define[ \t]*__USE_EXTERN_INLINES[ \t]*1)";
2212
2213#define GLIBC_C99_INLINE_1A_TEST_CT 1
2214static tTestDesc aGlibc_C99_Inline_1aTests[] = {
2215 { TT_EGREP, zGlibc_C99_Inline_1aSelect0, (regex_t*)NULL }, };
2216
2217/*
2218 * Fix Command Arguments for Glibc_C99_Inline_1a
2219 */
2220static const char* apzGlibc_C99_Inline_1aPatch[] = {
2221 "format",
2222 "%1 && (defined __extern_inline || defined __GNUC_GNU_INLINE__)\n\
2223%2",
2224 (char*)NULL };
2225
502e2a2d
GK
2226/* * * * * * * * * * * * * * * * * * * * * * * * * *
2227 *
2228 * Description of Glibc_C99_Inline_2 fix
2229 */
2230tSCC zGlibc_C99_Inline_2Name[] =
2231 "glibc_c99_inline_2";
2232
2233/*
2234 * File name selection pattern
2235 */
2236tSCC zGlibc_C99_Inline_2List[] =
401be4b6 2237 "sys/stat.h\0*/sys/stat.h\0";
502e2a2d
GK
2238/*
2239 * Machine/OS name selection pattern
2240 */
2241#define apzGlibc_C99_Inline_2Machs (const char**)NULL
2242
2243/*
2244 * content selection pattern - do fix if pattern found
2245 */
2246tSCC zGlibc_C99_Inline_2Select0[] =
2247 "extern __inline__ int";
2248
2249#define GLIBC_C99_INLINE_2_TEST_CT 1
2250static tTestDesc aGlibc_C99_Inline_2Tests[] = {
2251 { TT_EGREP, zGlibc_C99_Inline_2Select0, (regex_t*)NULL }, };
2252
2253/*
2254 * Fix Command Arguments for Glibc_C99_Inline_2
2255 */
6aa1f8c1 2256static const char* apzGlibc_C99_Inline_2Patch[] = { sed_cmd_z,
cb3790cb 2257 "-e", "s/extern int \\(stat\\|lstat\\|fstat\\|mknod\\)/#ifdef __GNUC_GNU_INLINE__\\\n\
502e2a2d
GK
2258extern\\\n\
2259#endif\\\n\
2260__inline__ int \\1/",
cb3790cb 2261 "-e", "s/extern int __REDIRECT\\(_NTH\\|\\) (\\(stat\\|lstat\\|fstat\\)/#ifdef __GNUC_GNU_INLINE__\\\n\
502e2a2d
GK
2262extern\\\n\
2263#endif\\\n\
98e06787 2264__inline__ int __REDIRECT\\1 (\\2/",
cb3790cb 2265 "-e", "s/^extern __inline__ int/#ifdef __GNUC_GNU_INLINE__\\\n\
502e2a2d
GK
2266extern\\\n\
2267#endif\\\n\
98e06787 2268__inline__ int/",
502e2a2d
GK
2269 (char*)NULL };
2270
2271/* * * * * * * * * * * * * * * * * * * * * * * * * *
2272 *
2273 * Description of Glibc_C99_Inline_3 fix
2274 */
2275tSCC zGlibc_C99_Inline_3Name[] =
2276 "glibc_c99_inline_3";
2277
2278/*
2279 * File name selection pattern
2280 */
2281tSCC zGlibc_C99_Inline_3List[] =
401be4b6 2282 "bits/string2.h\0*/bits/string2.h\0";
502e2a2d
GK
2283/*
2284 * Machine/OS name selection pattern
2285 */
2286#define apzGlibc_C99_Inline_3Machs (const char**)NULL
2287
cb3790cb
JJ
2288/*
2289 * content selection pattern - do fix if pattern found
2290 */
2291tSCC zGlibc_C99_Inline_3Select0[] =
2292 "extern __inline";
2293
502e2a2d
GK
2294/*
2295 * content bypass pattern - skip fix if pattern found
2296 */
2297tSCC zGlibc_C99_Inline_3Bypass0[] =
c91e2eae 2298 "__extern_inline|__GNU_STDC_INLINE__";
502e2a2d 2299
cb3790cb 2300#define GLIBC_C99_INLINE_3_TEST_CT 2
502e2a2d 2301static tTestDesc aGlibc_C99_Inline_3Tests[] = {
cb3790cb
JJ
2302 { TT_NEGREP, zGlibc_C99_Inline_3Bypass0, (regex_t*)NULL },
2303 { TT_EGREP, zGlibc_C99_Inline_3Select0, (regex_t*)NULL }, };
502e2a2d
GK
2304
2305/*
2306 * Fix Command Arguments for Glibc_C99_Inline_3
2307 */
2308static const char* apzGlibc_C99_Inline_3Patch[] = {
2309 "format",
cb3790cb 2310 "# if defined(__cplusplus) || defined(__GNUC_STDC_INLINE__)",
502e2a2d
GK
2311 "^# ifdef __cplusplus$",
2312 (char*)NULL };
2313
2314/* * * * * * * * * * * * * * * * * * * * * * * * * *
2315 *
2316 * Description of Glibc_C99_Inline_4 fix
2317 */
2318tSCC zGlibc_C99_Inline_4Name[] =
2319 "glibc_c99_inline_4";
2320
2321/*
2322 * File name selection pattern
2323 */
2324tSCC zGlibc_C99_Inline_4List[] =
c91e2eae 2325 "sys/sysmacros.h\0*/sys/sysmacros.h\0wchar.h\0*/wchar.h\0";
502e2a2d
GK
2326/*
2327 * Machine/OS name selection pattern
2328 */
2329#define apzGlibc_C99_Inline_4Machs (const char**)NULL
2330
5c4f0f47
BK
2331/*
2332 * content selection pattern - do fix if pattern found
2333 */
2334tSCC zGlibc_C99_Inline_4Select0[] =
c91e2eae 2335 "(^| )extern __inline";
5c4f0f47 2336
502e2a2d
GK
2337/*
2338 * content bypass pattern - skip fix if pattern found
2339 */
2340tSCC zGlibc_C99_Inline_4Bypass0[] =
c91e2eae 2341 "__extern_inline|__gnu_inline__";
502e2a2d 2342
5c4f0f47 2343#define GLIBC_C99_INLINE_4_TEST_CT 2
502e2a2d 2344static tTestDesc aGlibc_C99_Inline_4Tests[] = {
5c4f0f47
BK
2345 { TT_NEGREP, zGlibc_C99_Inline_4Bypass0, (regex_t*)NULL },
2346 { TT_EGREP, zGlibc_C99_Inline_4Select0, (regex_t*)NULL }, };
502e2a2d
GK
2347
2348/*
2349 * Fix Command Arguments for Glibc_C99_Inline_4
2350 */
2351static const char* apzGlibc_C99_Inline_4Patch[] = {
2352 "format",
c91e2eae 2353 "%0 __attribute__ ((__gnu_inline__))",
502e2a2d
GK
2354 (char*)NULL };
2355
f6f7aabc
UB
2356/* * * * * * * * * * * * * * * * * * * * * * * * * *
2357 *
2358 * Description of Glibc_Mutex_Init fix
2359 */
2360tSCC zGlibc_Mutex_InitName[] =
2361 "glibc_mutex_init";
2362
2363/*
2364 * File name selection pattern
2365 */
2366tSCC zGlibc_Mutex_InitList[] =
401be4b6 2367 "pthread.h\0";
f6f7aabc
UB
2368/*
2369 * Machine/OS name selection pattern
2370 */
2371#define apzGlibc_Mutex_InitMachs (const char**)NULL
2372
2373/*
2374 * content selection pattern - do fix if pattern found
2375 */
2376tSCC zGlibc_Mutex_InitSelect0[] =
2377 "\\{ *\\{ *0, *\\} *\\}";
2378
2379#define GLIBC_MUTEX_INIT_TEST_CT 1
2380static tTestDesc aGlibc_Mutex_InitTests[] = {
2381 { TT_EGREP, zGlibc_Mutex_InitSelect0, (regex_t*)NULL }, };
2382
2383/*
2384 * Fix Command Arguments for Glibc_Mutex_Init
2385 */
6aa1f8c1
BK
2386static const char* apzGlibc_Mutex_InitPatch[] = { sed_cmd_z,
2387 "-e", "/define[ \t]\\+PTHREAD_MUTEX_INITIALIZER[ \t]*\\\\/{\n\
2388N\n\
2389s/{ { 0, } }/{ { 0, 0, 0, 0, 0, 0 } }/\n\
2390}",
4d98def0
UB
2391 "-e", "s/{ \\(0, 0, 0, 0, PTHREAD_MUTEX_\\(RECURSIVE\\|ERRORCHECK\\|ADAPTIVE\\)_NP\\) }/{ \\1, 0 }/",
2392 "-e", "s/{ \\(0, 0, 0, PTHREAD_MUTEX_\\(RECURSIVE\\|ERRORCHECK\\|ADAPTIVE\\)_NP\\) }/{ \\1, 0, 0 }/",
f6f7aabc 2393 "-e", "/define[ \t]\\+PTHREAD_RWLOCK_INITIALIZER[ \t]*\\\\/N;s/^[ \t]*#[ \t]*\\(define[ \t]\\+PTHREAD_RWLOCK_INITIALIZER[ \t]*\\\\\\)\\n[ \t]*{ { 0, } }/# if __WORDSIZE == 64\\n# \\1\\n { { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 } }\\n# else\\n# \\1\\n { { 0, 0, 0, 0, 0, 0, 0, 0 } }\\n# endif/",
4d98def0 2394 "-e", "s/{ \\(0, 0, 0, 0, 0, 0, PTHREAD_RWLOCK_PREFER_WRITER_NONRECURSIVE_NP\\) }/{ \\1, 0 }/",
f6f7aabc
UB
2395 "-e", "/define[ \t]\\+PTHREAD_COND_INITIALIZER/s/{ { 0, } }/{ { 0, 0, 0, 0, 0, (void *) 0, 0, 0 } }/",
2396 (char*)NULL };
2397
e2556904
JM
2398/* * * * * * * * * * * * * * * * * * * * * * * * * *
2399 *
2400 * Description of Glibc_Stdint fix
2401 */
2402tSCC zGlibc_StdintName[] =
2403 "glibc_stdint";
2404
2405/*
2406 * File name selection pattern
2407 */
2408tSCC zGlibc_StdintList[] =
2409 "stdint.h\0";
2410/*
2411 * Machine/OS name selection pattern
2412 */
2413#define apzGlibc_StdintMachs (const char**)NULL
2414
2415/*
2416 * content selection pattern - do fix if pattern found
2417 */
2418tSCC zGlibc_StdintSelect0[] =
2419 "GNU C Library";
2420
2421#define GLIBC_STDINT_TEST_CT 1
2422static tTestDesc aGlibc_StdintTests[] = {
2423 { TT_EGREP, zGlibc_StdintSelect0, (regex_t*)NULL }, };
2424
2425/*
2426 * Fix Command Arguments for Glibc_Stdint
2427 */
2428static const char* apzGlibc_StdintPatch[] = {
2429 "format",
2430 "# define UINT8_C(c)\tc\n\
2431# define UINT16_C(c)\tc",
2432 "# define UINT8_C\\(c\\)\tc ## U\n\
2433# define UINT16_C\\(c\\)\tc ## U",
2434 (char*)NULL };
2435
928c19bb
JM
2436/* * * * * * * * * * * * * * * * * * * * * * * * * *
2437 *
2438 * Description of Glibc_Tgmath fix
2439 */
2440tSCC zGlibc_TgmathName[] =
2441 "glibc_tgmath";
2442
2443/*
2444 * File name selection pattern
2445 */
2446tSCC zGlibc_TgmathList[] =
2447 "tgmath.h\0";
2448/*
2449 * Machine/OS name selection pattern
2450 */
2451#define apzGlibc_TgmathMachs (const char**)NULL
2452
2453/*
2454 * content selection pattern - do fix if pattern found
2455 */
2456tSCC zGlibc_TgmathSelect0[] =
2457 "\\(\\(\\(type\\) 0.25\\) && \\(\\(type\\) 0.25 - 1\\)\\)";
2458
2459/*
2460 * content bypass pattern - skip fix if pattern found
2461 */
2462tSCC zGlibc_TgmathBypass0[] =
b51c6a2c 2463 "__floating_type\\(type\\) \\\\\n\
928c19bb
JM
2464.*__builtin_classify_type";
2465
2466#define GLIBC_TGMATH_TEST_CT 2
2467static tTestDesc aGlibc_TgmathTests[] = {
2468 { TT_NEGREP, zGlibc_TgmathBypass0, (regex_t*)NULL },
2469 { TT_EGREP, zGlibc_TgmathSelect0, (regex_t*)NULL }, };
2470
2471/*
2472 * Fix Command Arguments for Glibc_Tgmath
2473 */
2474static const char* apzGlibc_TgmathPatch[] = {
2475 "format",
2476 "(__builtin_classify_type ((type) 0) == 8 || (__builtin_classify_type ((type) 0) == 9 && __builtin_classify_type (__real__ ((type) 0)) == 8))",
2477 (char*)NULL };
2478
7b78a14a
BK
2479/* * * * * * * * * * * * * * * * * * * * * * * * * *
2480 *
2481 * Description of Gnu_Types fix
2482 */
2483tSCC zGnu_TypesName[] =
2484 "gnu_types";
2485
2486/*
2487 * File name selection pattern
2488 */
2489tSCC zGnu_TypesList[] =
401be4b6 2490 "sys/types.h\0stdlib.h\0sys/stdtypes.h\0stddef.h\0memory.h\0unistd.h\0";
7b78a14a
BK
2491/*
2492 * Machine/OS name selection pattern
2493 */
9fcc7481
MM
2494tSCC* apzGnu_TypesMachs[] = {
2495 "*-*-solaris2.1[0-9]*",
2496 (const char*)NULL };
7b78a14a
BK
2497
2498/*
2499 * content selection pattern - do fix if pattern found
2500 */
2501tSCC zGnu_TypesSelect0[] =
2502 "^[ \t]*typedef[ \t]+.*[ \t](ptrdiff|size|wchar)_t;";
2503
2504/*
2505 * content bypass pattern - skip fix if pattern found
2506 */
2507tSCC zGnu_TypesBypass0[] =
2508 "_GCC_(PTRDIFF|SIZE|WCHAR)_T";
2509
2510#define GNU_TYPES_TEST_CT 2
2511static tTestDesc aGnu_TypesTests[] = {
2512 { TT_NEGREP, zGnu_TypesBypass0, (regex_t*)NULL },
2513 { TT_EGREP, zGnu_TypesSelect0, (regex_t*)NULL }, };
2514
2515/*
2516 * Fix Command Arguments for Gnu_Types
2517 */
2518static const char* apzGnu_TypesPatch[] = {
2519 "gnu_type",
2520 (char*)NULL };
2521
06bbab1b
BK
2522/* * * * * * * * * * * * * * * * * * * * * * * * * *
2523 *
79589c4d 2524 * Description of Hp_Inline fix
06bbab1b 2525 */
79589c4d
BK
2526tSCC zHp_InlineName[] =
2527 "hp_inline";
3be1fb72 2528
06bbab1b
BK
2529/*
2530 * File name selection pattern
2531 */
79589c4d 2532tSCC zHp_InlineList[] =
401be4b6 2533 "sys/spinlock.h\0machine/machparam.h\0";
06bbab1b
BK
2534/*
2535 * Machine/OS name selection pattern
2536 */
79589c4d 2537#define apzHp_InlineMachs (const char**)NULL
87b6d63a
BK
2538
2539/*
2540 * content selection pattern - do fix if pattern found
2541 */
79589c4d 2542tSCC zHp_InlineSelect0[] =
cd64831f 2543 "[ \t]*#[ \t]*include[ \t]+\"\\.\\./machine/";
87b6d63a 2544
79589c4d 2545#define HP_INLINE_TEST_CT 1
3af556f7 2546static tTestDesc aHp_InlineTests[] = {
79589c4d 2547 { TT_EGREP, zHp_InlineSelect0, (regex_t*)NULL }, };
06bbab1b
BK
2548
2549/*
79589c4d 2550 * Fix Command Arguments for Hp_Inline
06bbab1b 2551 */
3af556f7 2552static const char* apzHp_InlinePatch[] = {
cd64831f
BK
2553 "format",
2554 "%1<machine/%2.h>",
2555 "([ \t]*#[ \t]*include[ \t]+)\"\\.\\./machine/([a-z]+)\\.h\"",
06bbab1b
BK
2556 (char*)NULL };
2557
2558/* * * * * * * * * * * * * * * * * * * * * * * * * *
2559 *
79589c4d 2560 * Description of Hp_Sysfile fix
06bbab1b 2561 */
79589c4d
BK
2562tSCC zHp_SysfileName[] =
2563 "hp_sysfile";
3be1fb72 2564
06bbab1b
BK
2565/*
2566 * File name selection pattern
2567 */
79589c4d 2568tSCC zHp_SysfileList[] =
401be4b6 2569 "sys/file.h\0";
06bbab1b
BK
2570/*
2571 * Machine/OS name selection pattern
2572 */
79589c4d 2573#define apzHp_SysfileMachs (const char**)NULL
06bbab1b
BK
2574
2575/*
be02fa1a 2576 * content selection pattern - do fix if pattern found
06bbab1b 2577 */
79589c4d
BK
2578tSCC zHp_SysfileSelect0[] =
2579 "HPUX_SOURCE";
06bbab1b 2580
79589c4d 2581#define HP_SYSFILE_TEST_CT 1
3af556f7 2582static tTestDesc aHp_SysfileTests[] = {
79589c4d 2583 { TT_EGREP, zHp_SysfileSelect0, (regex_t*)NULL }, };
06bbab1b
BK
2584
2585/*
79589c4d 2586 * Fix Command Arguments for Hp_Sysfile
06bbab1b 2587 */
3af556f7 2588static const char* apzHp_SysfilePatch[] = {
cd64831f
BK
2589 "format",
2590 "(struct file *, ...)",
2591 "\\(\\.\\.\\.\\)",
06bbab1b
BK
2592 (char*)NULL };
2593
6aa1f8c1
BK
2594/* * * * * * * * * * * * * * * * * * * * * * * * * *
2595 *
2596 * Description of Hppa_Hpux_Fp_Macros fix
2597 */
2598tSCC zHppa_Hpux_Fp_MacrosName[] =
2599 "hppa_hpux_fp_macros";
2600
2601/*
2602 * File name selection pattern
2603 */
2604tSCC zHppa_Hpux_Fp_MacrosList[] =
2605 "math.h\0";
2606/*
2607 * Machine/OS name selection pattern
2608 */
2609tSCC* apzHppa_Hpux_Fp_MacrosMachs[] = {
2610 "hppa*-hp-hpux11*",
2611 (const char*)NULL };
2612
2613/*
2614 * content selection pattern - do fix if pattern found
2615 */
2616tSCC zHppa_Hpux_Fp_MacrosSelect0[] =
2617 "#[ \t]*define[ \t]*FP_NORMAL.*\n\
2618#[ \t]*define[ \t]*FP_ZERO.*\n\
2619#[ \t]*define[ \t]*FP_INFINITE.*\n\
2620#[ \t]*define[ \t]*FP_SUBNORMAL.*\n\
2621#[ \t]*define[ \t]*FP_NAN.*\n";
2622
2623#define HPPA_HPUX_FP_MACROS_TEST_CT 1
2624static tTestDesc aHppa_Hpux_Fp_MacrosTests[] = {
2625 { TT_EGREP, zHppa_Hpux_Fp_MacrosSelect0, (regex_t*)NULL }, };
2626
2627/*
2628 * Fix Command Arguments for Hppa_Hpux_Fp_Macros
2629 */
2630static const char* apzHppa_Hpux_Fp_MacrosPatch[] = {
2631 "format",
2632 "#endif /* _INCLUDE_HPUX_SOURCE */\n\n\
2633#if defined(_INCLUDE_HPUX_SOURCE) || \\\n\
2634 (defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 199901L))\n\
2635%0#endif\n\n\
2636#ifdef _INCLUDE_HPUX_SOURCE\n",
2637 (char*)NULL };
2638
5ffd49b8
JDA
2639/* * * * * * * * * * * * * * * * * * * * * * * * * *
2640 *
2641 * Description of Hpux10_Cpp_Pow_Inline fix
2642 */
2643tSCC zHpux10_Cpp_Pow_InlineName[] =
2644 "hpux10_cpp_pow_inline";
2645
2646/*
2647 * File name selection pattern
2648 */
2649tSCC zHpux10_Cpp_Pow_InlineList[] =
401be4b6 2650 "fixinc-test-limits.h\0math.h\0";
5ffd49b8
JDA
2651/*
2652 * Machine/OS name selection pattern
2653 */
2654#define apzHpux10_Cpp_Pow_InlineMachs (const char**)NULL
2655
2656/*
2657 * content selection pattern - do fix if pattern found
2658 */
2659tSCC zHpux10_Cpp_Pow_InlineSelect0[] =
2660 "^# +ifdef +__cplusplus\n\
ab747408
ZW
2661 +\\}\n\
2662 +inline +double +pow\\(double +__d,int +__expon\\) +\\{\n\
5ffd49b8 2663[ \t]+return +pow\\(__d,\\(double\\)__expon\\);\n\
ab747408
ZW
2664 +\\}\n\
2665 +extern +\"C\" +\\{\n\
5ffd49b8
JDA
2666#else\n\
2667# +endif";
2668
2669#define HPUX10_CPP_POW_INLINE_TEST_CT 1
2670static tTestDesc aHpux10_Cpp_Pow_InlineTests[] = {
2671 { TT_EGREP, zHpux10_Cpp_Pow_InlineSelect0, (regex_t*)NULL }, };
2672
2673/*
2674 * Fix Command Arguments for Hpux10_Cpp_Pow_Inline
2675 */
2676static const char* apzHpux10_Cpp_Pow_InlinePatch[] = {
2677 "format",
2678 "",
2679 (char*)NULL };
2680
eb559363
BK
2681/* * * * * * * * * * * * * * * * * * * * * * * * * *
2682 *
2683 * Description of Hpux11_Cpp_Pow_Inline fix
2684 */
2685tSCC zHpux11_Cpp_Pow_InlineName[] =
2686 "hpux11_cpp_pow_inline";
2687
2688/*
2689 * File name selection pattern
2690 */
2691tSCC zHpux11_Cpp_Pow_InlineList[] =
401be4b6 2692 "math.h\0";
eb559363
BK
2693/*
2694 * Machine/OS name selection pattern
2695 */
2696#define apzHpux11_Cpp_Pow_InlineMachs (const char**)NULL
2697
2698/*
2699 * content selection pattern - do fix if pattern found
2700 */
2701tSCC zHpux11_Cpp_Pow_InlineSelect0[] =
ab747408 2702 " +inline double pow\\(double d,int expon\\) \\{\n\
eb559363 2703 +return pow\\(d, \\(double\\)expon\\);\n\
ab747408 2704 +\\}\n";
eb559363
BK
2705
2706#define HPUX11_CPP_POW_INLINE_TEST_CT 1
2707static tTestDesc aHpux11_Cpp_Pow_InlineTests[] = {
2708 { TT_EGREP, zHpux11_Cpp_Pow_InlineSelect0, (regex_t*)NULL }, };
2709
2710/*
2711 * Fix Command Arguments for Hpux11_Cpp_Pow_Inline
2712 */
2713static const char* apzHpux11_Cpp_Pow_InlinePatch[] = {
2714 "format",
2715 "",
2716 (char*)NULL };
2717
27eaa708
BK
2718/* * * * * * * * * * * * * * * * * * * * * * * * * *
2719 *
afc41460 2720 * Description of Hpux10_Ctype_Declarations1 fix
27eaa708 2721 */
afc41460
BK
2722tSCC zHpux10_Ctype_Declarations1Name[] =
2723 "hpux10_ctype_declarations1";
27eaa708
BK
2724
2725/*
2726 * File name selection pattern
2727 */
afc41460 2728tSCC zHpux10_Ctype_Declarations1List[] =
401be4b6 2729 "ctype.h\0";
27eaa708
BK
2730/*
2731 * Machine/OS name selection pattern
2732 */
afc41460 2733#define apzHpux10_Ctype_Declarations1Machs (const char**)NULL
27eaa708
BK
2734
2735/*
2736 * content selection pattern - do fix if pattern found
2737 */
afc41460
BK
2738tSCC zHpux10_Ctype_Declarations1Select0[] =
2739 "^#[ \t]*define _toupper\\(__c\\)[ \t]*__toupper\\(__c\\)";
27eaa708 2740
afc41460
BK
2741/*
2742 * content bypass pattern - skip fix if pattern found
2743 */
2744tSCC zHpux10_Ctype_Declarations1Bypass0[] =
2745 "^[ \t]*extern[ \t]*int[ \t]*__tolower[ \t]*\\(";
2746
2747#define HPUX10_CTYPE_DECLARATIONS1_TEST_CT 2
2748static tTestDesc aHpux10_Ctype_Declarations1Tests[] = {
2749 { TT_NEGREP, zHpux10_Ctype_Declarations1Bypass0, (regex_t*)NULL },
2750 { TT_EGREP, zHpux10_Ctype_Declarations1Select0, (regex_t*)NULL }, };
27eaa708
BK
2751
2752/*
afc41460 2753 * Fix Command Arguments for Hpux10_Ctype_Declarations1
27eaa708 2754 */
afc41460 2755static const char* apzHpux10_Ctype_Declarations1Patch[] = {
27eaa708 2756 "format",
afc41460
BK
2757 "#ifdef _PROTOTYPES\n\
2758extern int __tolower(int);\n\
2759extern int __toupper(int);\n\
2760#else /* NOT _PROTOTYPES */\n\
2761extern int __tolower();\n\
2762extern int __toupper();\n\
2763#endif /* _PROTOTYPES */\n\n\
2764%0\n",
27eaa708
BK
2765 (char*)NULL };
2766
2026dcf9
JDA
2767/* * * * * * * * * * * * * * * * * * * * * * * * * *
2768 *
afc41460 2769 * Description of Hpux10_Ctype_Declarations2 fix
2026dcf9 2770 */
afc41460
BK
2771tSCC zHpux10_Ctype_Declarations2Name[] =
2772 "hpux10_ctype_declarations2";
2026dcf9
JDA
2773
2774/*
2775 * File name selection pattern
2776 */
afc41460 2777tSCC zHpux10_Ctype_Declarations2List[] =
401be4b6 2778 "ctype.h\0";
2026dcf9
JDA
2779/*
2780 * Machine/OS name selection pattern
2781 */
afc41460 2782#define apzHpux10_Ctype_Declarations2Machs (const char**)NULL
2026dcf9
JDA
2783
2784/*
2785 * content selection pattern - do fix if pattern found
2786 */
afc41460
BK
2787tSCC zHpux10_Ctype_Declarations2Select0[] =
2788 "^# if defined\\(_SB_CTYPE_MACROS\\) && \\!defined\\(__lint\\)";
2026dcf9 2789
c20b55c0
JDA
2790/*
2791 * content bypass pattern - skip fix if pattern found
2792 */
afc41460
BK
2793tSCC zHpux10_Ctype_Declarations2Bypass0[] =
2794 "^[ \t]*extern[ \t]*int[ \t]*_isalnum[ \t]*\\(";
c20b55c0 2795
afc41460
BK
2796#define HPUX10_CTYPE_DECLARATIONS2_TEST_CT 2
2797static tTestDesc aHpux10_Ctype_Declarations2Tests[] = {
2798 { TT_NEGREP, zHpux10_Ctype_Declarations2Bypass0, (regex_t*)NULL },
2799 { TT_EGREP, zHpux10_Ctype_Declarations2Select0, (regex_t*)NULL }, };
2026dcf9
JDA
2800
2801/*
afc41460 2802 * Fix Command Arguments for Hpux10_Ctype_Declarations2
2026dcf9 2803 */
afc41460
BK
2804static const char* apzHpux10_Ctype_Declarations2Patch[] = {
2805 "format",
2806 "%0\n\n\
2807#ifdef _PROTOTYPES\n\
2808 extern int _isalnum(int);\n\
2809 extern int _isalpha(int);\n\
2810 extern int _iscntrl(int);\n\
2811 extern int _isdigit(int);\n\
2812 extern int _isgraph(int);\n\
2813 extern int _islower(int);\n\
2814 extern int _isprint(int);\n\
2815 extern int _ispunct(int);\n\
2816 extern int _isspace(int);\n\
2817 extern int _isupper(int);\n\
2818 extern int _isxdigit(int);\n\
2819# else /* not _PROTOTYPES */\n\
2820 extern int _isalnum();\n\
2821 extern int _isalpha();\n\
2822 extern int _iscntrl();\n\
2823 extern int _isdigit();\n\
2824 extern int _isgraph();\n\
2825 extern int _islower();\n\
2826 extern int _isprint();\n\
2827 extern int _ispunct();\n\
2828 extern int _isspace();\n\
2829 extern int _isupper();\n\
2830 extern int _isxdigit();\n\
2831#endif /* _PROTOTYPES */\n",
2832 (char*)NULL };
2833
4b60eb3b
JDA
2834/* * * * * * * * * * * * * * * * * * * * * * * * * *
2835 *
2836 * Description of Hpux10_Stdio_Declarations fix
2837 */
2838tSCC zHpux10_Stdio_DeclarationsName[] =
2839 "hpux10_stdio_declarations";
2840
2841/*
2842 * File name selection pattern
2843 */
2844tSCC zHpux10_Stdio_DeclarationsList[] =
401be4b6 2845 "stdio.h\0";
4b60eb3b
JDA
2846/*
2847 * Machine/OS name selection pattern
2848 */
2849#define apzHpux10_Stdio_DeclarationsMachs (const char**)NULL
2850
2851/*
2852 * content selection pattern - do fix if pattern found
2853 */
2854tSCC zHpux10_Stdio_DeclarationsSelect0[] =
2855 "^#[ \t]*define _iob[ \t]*__iob";
2856
2857/*
2858 * content bypass pattern - skip fix if pattern found
2859 */
2860tSCC zHpux10_Stdio_DeclarationsBypass0[] =
2861 "^[ \t]*extern[ \t]*int[ \t]*vsnprintf[ \t]*\\(";
2862
2863#define HPUX10_STDIO_DECLARATIONS_TEST_CT 2
2864static tTestDesc aHpux10_Stdio_DeclarationsTests[] = {
2865 { TT_NEGREP, zHpux10_Stdio_DeclarationsBypass0, (regex_t*)NULL },
2866 { TT_EGREP, zHpux10_Stdio_DeclarationsSelect0, (regex_t*)NULL }, };
2867
2868/*
2869 * Fix Command Arguments for Hpux10_Stdio_Declarations
2870 */
2871static const char* apzHpux10_Stdio_DeclarationsPatch[] = {
2872 "format",
2873 "%0\n\n\
2874# if defined(__STDC__) || defined(__cplusplus)\n\
2875 extern int snprintf(char *, size_t, const char *, ...);\n\
2876 extern int vsnprintf(char *, size_t, const char *, __va_list);\n\
2877# else /* not __STDC__) || __cplusplus */\n\
2878 extern int snprintf();\n\
2879 extern int vsnprintf();\n\
2880# endif /* __STDC__) || __cplusplus */\n",
2881 (char*)NULL };
2882
afc41460
BK
2883/* * * * * * * * * * * * * * * * * * * * * * * * * *
2884 *
2885 * Description of Hpux11_Abs fix
2886 */
2887tSCC zHpux11_AbsName[] =
2888 "hpux11_abs";
2889
2890/*
2891 * File name selection pattern
2892 */
2893tSCC zHpux11_AbsList[] =
401be4b6 2894 "stdlib.h\0";
afc41460
BK
2895/*
2896 * Machine/OS name selection pattern
2897 */
2898tSCC* apzHpux11_AbsMachs[] = {
2899 "ia64-hp-hpux11*",
2900 (const char*)NULL };
2901
2902/*
2903 * content selection pattern - do fix if pattern found
2904 */
2905tSCC zHpux11_AbsSelect0[] =
2906 "ifndef _MATH_INCLUDED";
2907
2908#define HPUX11_ABS_TEST_CT 1
2909static tTestDesc aHpux11_AbsTests[] = {
2910 { TT_EGREP, zHpux11_AbsSelect0, (regex_t*)NULL }, };
2911
2912/*
2913 * Fix Command Arguments for Hpux11_Abs
2914 */
2915static const char* apzHpux11_AbsPatch[] = {
2916 "format",
2917 "if !defined(_MATH_INCLUDED) || defined(__GNUG__)",
2026dcf9
JDA
2918 (char*)NULL };
2919
2dc693ee
BK
2920/* * * * * * * * * * * * * * * * * * * * * * * * * *
2921 *
2922 * Description of Hpux11_Fabsf fix
2923 */
2dc693ee
BK
2924tSCC zHpux11_FabsfName[] =
2925 "hpux11_fabsf";
2926
2927/*
2928 * File name selection pattern
2929 */
2930tSCC zHpux11_FabsfList[] =
401be4b6 2931 "math.h\0";
2dc693ee
BK
2932/*
2933 * Machine/OS name selection pattern
2934 */
2935#define apzHpux11_FabsfMachs (const char**)NULL
2936
2937/*
2938 * content selection pattern - do fix if pattern found
2939 */
2940tSCC zHpux11_FabsfSelect0[] =
2941 "^[ \t]*#[ \t]*define[ \t]+fabsf\\(.*";
2942
2943/*
2944 * content bypass pattern - skip fix if pattern found
2945 */
2946tSCC zHpux11_FabsfBypass0[] =
2947 "__cplusplus";
2948
2949#define HPUX11_FABSF_TEST_CT 2
3af556f7 2950static tTestDesc aHpux11_FabsfTests[] = {
2dc693ee
BK
2951 { TT_NEGREP, zHpux11_FabsfBypass0, (regex_t*)NULL },
2952 { TT_EGREP, zHpux11_FabsfSelect0, (regex_t*)NULL }, };
2953
2954/*
2955 * Fix Command Arguments for Hpux11_Fabsf
2956 */
3af556f7 2957static const char* apzHpux11_FabsfPatch[] = {
2dc693ee
BK
2958 "format",
2959 "#ifndef __cplusplus\n\
2960%0\n\
2961#endif",
2962 (char*)NULL };
2963
6aa1f8c1
BK
2964/* * * * * * * * * * * * * * * * * * * * * * * * * *
2965 *
2966 * Description of Hpux11_Pthread_Const fix
2967 */
2968tSCC zHpux11_Pthread_ConstName[] =
2969 "hpux11_pthread_const";
2970
2971/*
2972 * File name selection pattern
2973 */
2974tSCC zHpux11_Pthread_ConstList[] =
2975 "sys/pthread.h\0";
2976/*
2977 * Machine/OS name selection pattern
2978 */
2979tSCC* apzHpux11_Pthread_ConstMachs[] = {
2980 "*-hp-hpux11.[0-3]*",
2981 (const char*)NULL };
2982
2983/*
2984 * content selection pattern - do fix if pattern found
2985 */
2986tSCC zHpux11_Pthread_ConstSelect0[] =
2987 "^#define[ \t]*__POINTER_SET[ \t]*\\(\\(void \\*\\) 1LL\\)";
2988
2989#define HPUX11_PTHREAD_CONST_TEST_CT 1
2990static tTestDesc aHpux11_Pthread_ConstTests[] = {
2991 { TT_EGREP, zHpux11_Pthread_ConstSelect0, (regex_t*)NULL }, };
2992
2993/*
2994 * Fix Command Arguments for Hpux11_Pthread_Const
2995 */
2996static const char* apzHpux11_Pthread_ConstPatch[] = {
2997 "format",
2998 "#define __POINTER_SET\t\t((void *) 1L)",
2999 (char*)NULL };
3000
34b3b0f6
JM
3001/* * * * * * * * * * * * * * * * * * * * * * * * * *
3002 *
3003 * Description of Hpux11_Size_T fix
3004 */
3005tSCC zHpux11_Size_TName[] =
3006 "hpux11_size_t";
3007
3008/*
3009 * File name selection pattern
3010 */
3011#define zHpux11_Size_TList (char*)NULL
3012/*
3013 * Machine/OS name selection pattern
3014 */
3015tSCC* apzHpux11_Size_TMachs[] = {
b5639a49 3016 "*-hp-hpux11*",
34b3b0f6
JM
3017 (const char*)NULL };
3018
3019/*
3020 * content selection pattern - do fix if pattern found
3021 */
3022tSCC zHpux11_Size_TSelect0[] =
b5639a49 3023 "__size_t";
34b3b0f6
JM
3024
3025#define HPUX11_SIZE_T_TEST_CT 1
3026static tTestDesc aHpux11_Size_TTests[] = {
3027 { TT_EGREP, zHpux11_Size_TSelect0, (regex_t*)NULL }, };
3028
3029/*
3030 * Fix Command Arguments for Hpux11_Size_T
3031 */
3032static const char* apzHpux11_Size_TPatch[] = {
3033 "format",
3034 "_hpux_size_t",
34b3b0f6
JM
3035 (char*)NULL };
3036
11f9a0ed
BK
3037/* * * * * * * * * * * * * * * * * * * * * * * * * *
3038 *
3039 * Description of Hpux11_Snprintf fix
3040 */
3041tSCC zHpux11_SnprintfName[] =
3042 "hpux11_snprintf";
3043
3044/*
3045 * File name selection pattern
3046 */
3047tSCC zHpux11_SnprintfList[] =
401be4b6 3048 "stdio.h\0";
11f9a0ed
BK
3049/*
3050 * Machine/OS name selection pattern
3051 */
3052#define apzHpux11_SnprintfMachs (const char**)NULL
3053
3054/*
3055 * content selection pattern - do fix if pattern found
3056 */
3057tSCC zHpux11_SnprintfSelect0[] =
3058 "(extern int snprintf *\\(char *\\*, *(|__|_hpux_)size_t,) *(char *\\*, *\\.\\.\\.\\);)";
3059
3060#define HPUX11_SNPRINTF_TEST_CT 1
3061static tTestDesc aHpux11_SnprintfTests[] = {
3062 { TT_EGREP, zHpux11_SnprintfSelect0, (regex_t*)NULL }, };
3063
3064/*
3065 * Fix Command Arguments for Hpux11_Snprintf
3066 */
3067static const char* apzHpux11_SnprintfPatch[] = {
3068 "format",
3069 "%1 const %3",
3070 (char*)NULL };
3071
2026dcf9
JDA
3072/* * * * * * * * * * * * * * * * * * * * * * * * * *
3073 *
afc41460 3074 * Description of Hpux11_Vsnprintf fix
2026dcf9 3075 */
afc41460
BK
3076tSCC zHpux11_VsnprintfName[] =
3077 "hpux11_vsnprintf";
2026dcf9
JDA
3078
3079/*
3080 * File name selection pattern
3081 */
afc41460 3082tSCC zHpux11_VsnprintfList[] =
401be4b6 3083 "stdio.h\0";
2026dcf9
JDA
3084/*
3085 * Machine/OS name selection pattern
3086 */
afc41460 3087#define apzHpux11_VsnprintfMachs (const char**)NULL
2026dcf9
JDA
3088
3089/*
3090 * content selection pattern - do fix if pattern found
3091 */
afc41460
BK
3092tSCC zHpux11_VsnprintfSelect0[] =
3093 "(extern int vsnprintf\\(char \\*, _[hpux]*_size_t, const char \\*,) __va__list\\);";
2026dcf9 3094
afc41460
BK
3095#define HPUX11_VSNPRINTF_TEST_CT 1
3096static tTestDesc aHpux11_VsnprintfTests[] = {
3097 { TT_EGREP, zHpux11_VsnprintfSelect0, (regex_t*)NULL }, };
2026dcf9
JDA
3098
3099/*
afc41460 3100 * Fix Command Arguments for Hpux11_Vsnprintf
2026dcf9 3101 */
afc41460 3102static const char* apzHpux11_VsnprintfPatch[] = {
2026dcf9 3103 "format",
afc41460 3104 "%1 __va_list);",
2026dcf9
JDA
3105 (char*)NULL };
3106
3107/* * * * * * * * * * * * * * * * * * * * * * * * * *
3108 *
afc41460 3109 * Description of Hpux8_Bogus_Inlines fix
2026dcf9 3110 */
afc41460
BK
3111tSCC zHpux8_Bogus_InlinesName[] =
3112 "hpux8_bogus_inlines";
2026dcf9
JDA
3113
3114/*
3115 * File name selection pattern
3116 */
afc41460 3117tSCC zHpux8_Bogus_InlinesList[] =
401be4b6 3118 "math.h\0";
2026dcf9
JDA
3119/*
3120 * Machine/OS name selection pattern
3121 */
afc41460 3122#define apzHpux8_Bogus_InlinesMachs (const char**)NULL
2026dcf9
JDA
3123
3124/*
3125 * content selection pattern - do fix if pattern found
3126 */
afc41460
BK
3127tSCC zHpux8_Bogus_InlinesSelect0[] =
3128 "inline";
2026dcf9 3129
793387fa
JM
3130/*
3131 * content bypass pattern - skip fix if pattern found
3132 */
3133tSCC zHpux8_Bogus_InlinesBypass0[] =
3134 "__GNUG__";
3135
3136#define HPUX8_BOGUS_INLINES_TEST_CT 2
afc41460 3137static tTestDesc aHpux8_Bogus_InlinesTests[] = {
793387fa 3138 { TT_NEGREP, zHpux8_Bogus_InlinesBypass0, (regex_t*)NULL },
afc41460 3139 { TT_EGREP, zHpux8_Bogus_InlinesSelect0, (regex_t*)NULL }, };
2026dcf9
JDA
3140
3141/*
afc41460 3142 * Fix Command Arguments for Hpux8_Bogus_Inlines
2026dcf9 3143 */
6aa1f8c1 3144static const char* apzHpux8_Bogus_InlinesPatch[] = { sed_cmd_z,
afc41460
BK
3145 "-e", "s@inline int abs(int [a-z][a-z]*) {.*}@extern \"C\" int abs(int);@",
3146 "-e", "s@inline double abs(double [a-z][a-z]*) {.*}@@",
3147 "-e", "s@inline int sqr(int [a-z][a-z]*) {.*}@@",
3148 "-e", "s@inline double sqr(double [a-z][a-z]*) {.*}@@",
2026dcf9
JDA
3149 (char*)NULL };
3150
3151/* * * * * * * * * * * * * * * * * * * * * * * * * *
3152 *
3153 * Description of Hpux_Ctype_Macros fix
3154 */
3155tSCC zHpux_Ctype_MacrosName[] =
3156 "hpux_ctype_macros";
3157
3158/*
3159 * File name selection pattern
3160 */
3161tSCC zHpux_Ctype_MacrosList[] =
401be4b6 3162 "ctype.h\0";
2026dcf9
JDA
3163/*
3164 * Machine/OS name selection pattern
3165 */
3166#define apzHpux_Ctype_MacrosMachs (const char**)NULL
3167
3168/*
3169 * content selection pattern - do fix if pattern found
3170 */
3171tSCC zHpux_Ctype_MacrosSelect0[] =
3172 "((: |\\()__SB_masks \\? )(__SB_masks\\[__(alnum|c)\\] & _IS)";
3173
3174#define HPUX_CTYPE_MACROS_TEST_CT 1
3175static tTestDesc aHpux_Ctype_MacrosTests[] = {
3176 { TT_EGREP, zHpux_Ctype_MacrosSelect0, (regex_t*)NULL }, };
3177
3178/*
3179 * Fix Command Arguments for Hpux_Ctype_Macros
3180 */
3181static const char* apzHpux_Ctype_MacrosPatch[] = {
3182 "format",
3183 "%1(int)%3",
3184 (char*)NULL };
3185
7fbdc950
JM
3186/* * * * * * * * * * * * * * * * * * * * * * * * * *
3187 *
3188 * Description of Hpux_Htonl fix
3189 */
3190tSCC zHpux_HtonlName[] =
3191 "hpux_htonl";
3192
3193/*
3194 * File name selection pattern
3195 */
3196tSCC zHpux_HtonlList[] =
401be4b6 3197 "netinet/in.h\0";
7fbdc950
JM
3198/*
3199 * Machine/OS name selection pattern
3200 */
3201#define apzHpux_HtonlMachs (const char**)NULL
3202
3203/*
3204 * content selection pattern - do fix if pattern found
3205 */
3206tSCC zHpux_HtonlSelect0[] =
3207 "#ifndef _XOPEN_SOURCE_EXTENDED\n\
3208(/\\*\n\
3209 \\* Macros for number representation conversion\\.\n\
3210 \\*/\n\
3211#ifndef ntohl)";
3212
3213#define HPUX_HTONL_TEST_CT 1
3214static tTestDesc aHpux_HtonlTests[] = {
3215 { TT_EGREP, zHpux_HtonlSelect0, (regex_t*)NULL }, };
3216
3217/*
3218 * Fix Command Arguments for Hpux_Htonl
3219 */
3220static const char* apzHpux_HtonlPatch[] = {
3221 "format",
3222 "#if 1\n\
3223%1",
3224 (char*)NULL };
3225
b8d0bbf7
BK
3226/* * * * * * * * * * * * * * * * * * * * * * * * * *
3227 *
afc41460 3228 * Description of Hpux_Long_Double fix
b8d0bbf7 3229 */
afc41460
BK
3230tSCC zHpux_Long_DoubleName[] =
3231 "hpux_long_double";
b8d0bbf7
BK
3232
3233/*
3234 * File name selection pattern
3235 */
afc41460 3236tSCC zHpux_Long_DoubleList[] =
401be4b6 3237 "stdlib.h\0";
b8d0bbf7
BK
3238/*
3239 * Machine/OS name selection pattern
3240 */
6c907a45
SE
3241tSCC* apzHpux_Long_DoubleMachs[] = {
3242 "*-*-hpux10*",
3243 "*-*-hpux11.[012]*",
3244 (const char*)NULL };
b8d0bbf7
BK
3245
3246/*
3247 * content selection pattern - do fix if pattern found
3248 */
afc41460
BK
3249tSCC zHpux_Long_DoubleSelect0[] =
3250 "extern[ \t]long_double[ \t]strtold";
abf7cec7
GRK
3251
3252/*
afc41460 3253 * content bypass pattern - skip fix if pattern found
abf7cec7 3254 */
afc41460
BK
3255tSCC zHpux_Long_DoubleBypass0[] =
3256 "long_double_t";
abf7cec7 3257
afc41460
BK
3258#define HPUX_LONG_DOUBLE_TEST_CT 2
3259static tTestDesc aHpux_Long_DoubleTests[] = {
3260 { TT_NEGREP, zHpux_Long_DoubleBypass0, (regex_t*)NULL },
3261 { TT_EGREP, zHpux_Long_DoubleSelect0, (regex_t*)NULL }, };
abf7cec7
GRK
3262
3263/*
afc41460 3264 * Fix Command Arguments for Hpux_Long_Double
abf7cec7 3265 */
6aa1f8c1 3266static const char* apzHpux_Long_DoublePatch[] = { sed_cmd_z,
afc41460
BK
3267 "-e", "/^#[ \t]*ifndef _LONG_DOUBLE/,/\\/\\* _LONG_DOUBLE \\*\\//D",
3268 "-e", "s/long_double/long double/g",
abf7cec7
GRK
3269 (char*)NULL };
3270
6c907a45
SE
3271/* * * * * * * * * * * * * * * * * * * * * * * * * *
3272 *
3273 * Description of Hpux_Long_Double_2 fix
3274 */
3275tSCC zHpux_Long_Double_2Name[] =
3276 "hpux_long_double_2";
3277
3278/*
3279 * File name selection pattern
3280 */
3281tSCC zHpux_Long_Double_2List[] =
3282 "stdlib.h\0";
3283/*
3284 * Machine/OS name selection pattern
3285 */
3286tSCC* apzHpux_Long_Double_2Machs[] = {
3287 "hppa*-*-hpux11.3*",
3288 (const char*)NULL };
3289
3290/*
3291 * content selection pattern - do fix if pattern found
3292 */
3293tSCC zHpux_Long_Double_2Select0[] =
3294 "#[ \t]*if[ \t]*!defined\\(__ia64\\) \\|\\| defined\\(_PROTOTYPES\\) \\|\\| defined\\(_LONG_DOUBLE_STRUCT\\)";
3295
3296#define HPUX_LONG_DOUBLE_2_TEST_CT 1
3297static tTestDesc aHpux_Long_Double_2Tests[] = {
3298 { TT_EGREP, zHpux_Long_Double_2Select0, (regex_t*)NULL }, };
3299
3300/*
3301 * Fix Command Arguments for Hpux_Long_Double_2
3302 */
3303static const char* apzHpux_Long_Double_2Patch[] = {
3304 "format",
3305 "# if !defined(_PROTOTYPES) || defined(_LONG_DOUBLE_STRUCT)",
3306 (char*)NULL };
3307
06bbab1b
BK
3308/* * * * * * * * * * * * * * * * * * * * * * * * * *
3309 *
7b78a14a 3310 * Description of Hpux_Systime fix
06bbab1b 3311 */
7b78a14a
BK
3312tSCC zHpux_SystimeName[] =
3313 "hpux_systime";
3be1fb72 3314
06bbab1b
BK
3315/*
3316 * File name selection pattern
3317 */
7b78a14a 3318tSCC zHpux_SystimeList[] =
401be4b6 3319 "sys/time.h\0";
06bbab1b
BK
3320/*
3321 * Machine/OS name selection pattern
3322 */
7b78a14a 3323#define apzHpux_SystimeMachs (const char**)NULL
06bbab1b
BK
3324
3325/*
b51207a4 3326 * content selection pattern - do fix if pattern found
06bbab1b 3327 */
7b78a14a
BK
3328tSCC zHpux_SystimeSelect0[] =
3329 "^extern struct sigevent;";
06bbab1b 3330
7b78a14a
BK
3331#define HPUX_SYSTIME_TEST_CT 1
3332static tTestDesc aHpux_SystimeTests[] = {
3333 { TT_EGREP, zHpux_SystimeSelect0, (regex_t*)NULL }, };
06bbab1b
BK
3334
3335/*
7b78a14a 3336 * Fix Command Arguments for Hpux_Systime
06bbab1b 3337 */
7b78a14a 3338static const char* apzHpux_SystimePatch[] = {
79589c4d 3339 "format",
7b78a14a
BK
3340 "struct sigevent;",
3341 (char*)NULL };
3342
e084430d
SE
3343/* * * * * * * * * * * * * * * * * * * * * * * * * *
3344 *
3345 * Description of Hpux_Spu_Info fix
3346 */
3347tSCC zHpux_Spu_InfoName[] =
3348 "hpux_spu_info";
3349
3350/*
3351 * File name selection pattern
3352 */
3353tSCC zHpux_Spu_InfoList[] =
8ba59b08 3354 "ia64/sys/getppdp.h\0*/sys/getppdp.h\0";
e084430d
SE
3355/*
3356 * Machine/OS name selection pattern
3357 */
3358tSCC* apzHpux_Spu_InfoMachs[] = {
3359 "*-hp-hpux*",
3360 (const char*)NULL };
3361
3362/*
3363 * content selection pattern - do fix if pattern found
3364 */
3365tSCC zHpux_Spu_InfoSelect0[] =
3366 "^.*extern.*spu_info.*";
3367
3368#define HPUX_SPU_INFO_TEST_CT 1
3369static tTestDesc aHpux_Spu_InfoTests[] = {
3370 { TT_EGREP, zHpux_Spu_InfoSelect0, (regex_t*)NULL }, };
3371
3372/*
3373 * Fix Command Arguments for Hpux_Spu_Info
3374 */
3375static const char* apzHpux_Spu_InfoPatch[] = {
3376 "format",
3377 "#ifdef _KERNEL\n\
3378%0\n\
3379#endif",
3380 (char*)NULL };
3381
be645fd9
SE
3382/* * * * * * * * * * * * * * * * * * * * * * * * * *
3383 *
3384 * Description of Hpux11_Extern_Sendfile fix
3385 */
3386tSCC zHpux11_Extern_SendfileName[] =
3387 "hpux11_extern_sendfile";
3388
3389/*
3390 * File name selection pattern
3391 */
3392tSCC zHpux11_Extern_SendfileList[] =
401be4b6 3393 "sys/socket.h\0";
be645fd9
SE
3394/*
3395 * Machine/OS name selection pattern
3396 */
3397tSCC* apzHpux11_Extern_SendfileMachs[] = {
3398 "*-hp-hpux11.[12]*",
3399 (const char*)NULL };
3400
3401/*
3402 * content selection pattern - do fix if pattern found
3403 */
3404tSCC zHpux11_Extern_SendfileSelect0[] =
3405 "^[ \t]*extern sbsize_t sendfile.*\n\
3406.*, int\\)\\);\n";
3407
3408#define HPUX11_EXTERN_SENDFILE_TEST_CT 1
3409static tTestDesc aHpux11_Extern_SendfileTests[] = {
3410 { TT_EGREP, zHpux11_Extern_SendfileSelect0, (regex_t*)NULL }, };
3411
3412/*
3413 * Fix Command Arguments for Hpux11_Extern_Sendfile
3414 */
3415static const char* apzHpux11_Extern_SendfilePatch[] = {
3416 "format",
3417 "#ifndef _APP32_64BIT_OFF_T\n\
3418%0#endif\n",
3419 (char*)NULL };
3420
3421/* * * * * * * * * * * * * * * * * * * * * * * * * *
3422 *
3423 * Description of Hpux11_Extern_Sendpath fix
3424 */
3425tSCC zHpux11_Extern_SendpathName[] =
3426 "hpux11_extern_sendpath";
3427
3428/*
3429 * File name selection pattern
3430 */
3431tSCC zHpux11_Extern_SendpathList[] =
401be4b6 3432 "sys/socket.h\0";
be645fd9
SE
3433/*
3434 * Machine/OS name selection pattern
3435 */
3436tSCC* apzHpux11_Extern_SendpathMachs[] = {
3437 "*-hp-hpux11.[12]*",
3438 (const char*)NULL };
3439
3440/*
3441 * content selection pattern - do fix if pattern found
3442 */
3443tSCC zHpux11_Extern_SendpathSelect0[] =
3444 "^[ \t]*extern sbsize_t sendpath.*\n\
3445.*, int\\)\\);\n";
3446
3447#define HPUX11_EXTERN_SENDPATH_TEST_CT 1
3448static tTestDesc aHpux11_Extern_SendpathTests[] = {
3449 { TT_EGREP, zHpux11_Extern_SendpathSelect0, (regex_t*)NULL }, };
3450
3451/*
3452 * Fix Command Arguments for Hpux11_Extern_Sendpath
3453 */
3454static const char* apzHpux11_Extern_SendpathPatch[] = {
3455 "format",
3456 "#ifndef _APP32_64BIT_OFF_T\n\
3457%0#endif\n",
3458 (char*)NULL };
3459
e10e3ac8
SE
3460/* * * * * * * * * * * * * * * * * * * * * * * * * *
3461 *
3462 * Description of Hpux_Extern_Errno fix
3463 */
3464tSCC zHpux_Extern_ErrnoName[] =
3465 "hpux_extern_errno";
3466
3467/*
3468 * File name selection pattern
3469 */
3470tSCC zHpux_Extern_ErrnoList[] =
401be4b6 3471 "errno.h\0";
e10e3ac8
SE
3472/*
3473 * Machine/OS name selection pattern
3474 */
3475tSCC* apzHpux_Extern_ErrnoMachs[] = {
3476 "*-hp-hpux10.*",
3477 "*-hp-hpux11.[0-2]*",
3478 (const char*)NULL };
3479
3480/*
3481 * content selection pattern - do fix if pattern found
3482 */
3483tSCC zHpux_Extern_ErrnoSelect0[] =
3484 "^[ \t]*extern int errno;$";
3485
3486#define HPUX_EXTERN_ERRNO_TEST_CT 1
3487static tTestDesc aHpux_Extern_ErrnoTests[] = {
3488 { TT_EGREP, zHpux_Extern_ErrnoSelect0, (regex_t*)NULL }, };
3489
3490/*
3491 * Fix Command Arguments for Hpux_Extern_Errno
3492 */
3493static const char* apzHpux_Extern_ErrnoPatch[] = {
3494 "format",
3495 "#ifdef __cplusplus\n\
3496extern \"C\" {\n\
3497#endif\n\
3498%0\n\
3499#ifdef __cplusplus\n\
3500}\n\
3501#endif",
3502 (char*)NULL };
3503
6c65aa40
JDA
3504/* * * * * * * * * * * * * * * * * * * * * * * * * *
3505 *
3506 * Description of Hpux_Pthread_Initializers fix
3507 */
3508tSCC zHpux_Pthread_InitializersName[] =
3509 "hpux_pthread_initializers";
3510
3511/*
3512 * File name selection pattern
3513 */
3514tSCC zHpux_Pthread_InitializersList[] =
401be4b6 3515 "sys/pthread.h\0";
6c65aa40
JDA
3516/*
3517 * Machine/OS name selection pattern
3518 */
3519tSCC* apzHpux_Pthread_InitializersMachs[] = {
3520 "*-hp-hpux11.[0-3]*",
3521 (const char*)NULL };
3522#define HPUX_PTHREAD_INITIALIZERS_TEST_CT 0
3523#define aHpux_Pthread_InitializersTests (tTestDesc*)NULL
3524
3525/*
3526 * Fix Command Arguments for Hpux_Pthread_Initializers
3527 */
6aa1f8c1 3528static const char* apzHpux_Pthread_InitializersPatch[] = { sed_cmd_z,
6c65aa40
JDA
3529 "-e", "s@^[ \t]*1, 1, 1, 1,[ \t]*\\\\@\t{ 1, 1, 1, 1 },\t\t\t\t\t\t\t\\\\@",
3530 "-e", "s@^[ \t]*1,[ \t]*\\\\@\t{ 1, 0 }@",
3531 "-e", "/^[ \t]*0$/d",
3532 "-e", "s@__PTHREAD_MUTEX_VALID, 0@{ __PTHREAD_MUTEX_VALID, 0 }@",
3533 "-e", "s@^[ \t]*0, 0, -1, 0,[ \t]*\\\\@\t{ 0, 0, -1, 0 },\t\t\t\t\t\t\\\\@",
3534 "-e", "s@0, __LWP_MTX_VALID, 0, 1, 1, 1, 1,[ \t]*\\\\@{ 0, __LWP_MTX_VALID }, { 0, 1, 1, 1, 1 },\t\t\t\\\\@",
3535 "-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\\\\@",
3536 "-e", "s@^[ \t]*0, 0[ \t]*\\\\@\t{ 0, 0 }\t\t\t\t\t\t\t\\\\@",
3537 "-e", "s@__PTHREAD_COND_VALID, 0@{ __PTHREAD_COND_VALID, 0 }@",
3538 "-e", "s@__LWP_COND_VALID, 0,[ \t]*\\\\@{ __LWP_COND_VALID, 0 },\t\t\t\t\t\\\\@",
3539 "-e", "s@__PTHREAD_RWLOCK_VALID, 0@{ __PTHREAD_RWLOCK_VALID, 0 }@",
3540 "-e", "s@__LWP_RWLOCK_VALID, 0,[ \t]*\\\\@{ __LWP_RWLOCK_VALID, 0 },\t\t\t\t\t\\\\@",
3541 "-e", "s@^[ \t]*0, 0, 0, 0, 0, 0, 0[ \t]*\\\\@\t{ 0, 0, 0, 0, 0 }, { 0, 0}\t\t\t\t\t\\\\@",
3542 (char*)NULL };
3543
6c907a45
SE
3544/* * * * * * * * * * * * * * * * * * * * * * * * * *
3545 *
3546 * Description of Hpux_C99_Intptr fix
3547 */
3548tSCC zHpux_C99_IntptrName[] =
3549 "hpux_c99_intptr";
3550
3551/*
3552 * File name selection pattern
3553 */
3554tSCC zHpux_C99_IntptrList[] =
3555 "stdint.h\0";
3556/*
3557 * Machine/OS name selection pattern
3558 */
3559tSCC* apzHpux_C99_IntptrMachs[] = {
3560 "*-hp-hpux11.3*",
3561 (const char*)NULL };
3562#define HPUX_C99_INTPTR_TEST_CT 0
3563#define aHpux_C99_IntptrTests (tTestDesc*)NULL
3564
3565/*
3566 * Fix Command Arguments for Hpux_C99_Intptr
3567 */
3568static const char* apzHpux_C99_IntptrPatch[] = { sed_cmd_z,
3569 "-e", "s@^[ \t]*#[ \t]*define[ \t]*PTRDIFF_MAX[ \t]*INT32_MAX[ \t]*$@#define PTRDIFF_MAX (2147483647l)@",
3570 "-e", "s@^[ \t]*#[ \t]*define[ \t]*PTRDIFF_MIN[ \t]*INT32_MIN[ \t]*$@#define PTRDIFF_MIN (-PTRDIFF_MAX - 1)@",
3571 "-e", "s@^[ \t]*#[ \t]*define[ \t]*INTPTR_MAX[ \t]*INT32_MAX[ \t]*$@#define INTPTR_MAX (2147483647l)@",
3572 "-e", "s@^[ \t]*#[ \t]*define[ \t]*INTPTR_MIN[ \t]*INT32_MIN[ \t]*$@#define INTPTR_MIN (-INTPTR_MAX - 1)@",
3573 "-e", "s@^[ \t]*#[ \t]*define[ \t]*UINTPTR_MAX[ \t]*UINT32_MAX[ \t]*$@#define UINTPTR_MAX (4294967295ul)@",
3574 "-e", "s@^[ \t]*#[ \t]*define[ \t]*SIZE_MAX[ \t]*UINT32_MAX[ \t]*$@#define SIZE_MAX (4294967295ul)@",
3575 (char*)NULL };
3576
3577/* * * * * * * * * * * * * * * * * * * * * * * * * *
3578 *
3579 * Description of Hpux_C99_Inttypes fix
3580 */
3581tSCC zHpux_C99_InttypesName[] =
3582 "hpux_c99_inttypes";
3583
3584/*
3585 * File name selection pattern
3586 */
3587tSCC zHpux_C99_InttypesList[] =
3588 "inttypes.h\0stdint.h\0";
3589/*
3590 * Machine/OS name selection pattern
3591 */
3592tSCC* apzHpux_C99_InttypesMachs[] = {
3593 "*-hp-hpux11.[23]*",
3594 (const char*)NULL };
3595#define HPUX_C99_INTTYPES_TEST_CT 0
3596#define aHpux_C99_InttypesTests (tTestDesc*)NULL
3597
3598/*
3599 * Fix Command Arguments for Hpux_C99_Inttypes
3600 */
3601static const char* apzHpux_C99_InttypesPatch[] = { sed_cmd_z,
3602 "-e", "s@^[ \t]*#[ \t]*define[ \t]*UINT8_C(__c)[ \t]*__CONCAT_U__(__c)[ \t]*$@#define UINT8_C(__c) (__c)@",
3603 "-e", "s@^[ \t]*#[ \t]*define[ \t]*UINT16_C(__c)[ \t]*__CONCAT_U__(__c)[ \t]*$@#define UINT16_C(__c) (__c)@",
3604 "-e", "s@^[ \t]*#[ \t]*define[ \t]*INT32_C(__c)[ \t]*__CONCAT__(__c,l)[ \t]*$@#define INT32_C(__c) (__c)@",
3605 "-e", "s@^[ \t]*#[ \t]*define[ \t]*UINT32_C(__c)[ \t].*$@#define UINT32_C(__c) __CONCAT__(__c,u)@",
3606 (char*)NULL };
3607
3608/* * * * * * * * * * * * * * * * * * * * * * * * * *
3609 *
3610 * Description of Hpux_C99_Inttypes2 fix
3611 */
3612tSCC zHpux_C99_Inttypes2Name[] =
3613 "hpux_c99_inttypes2";
3614
3615/*
3616 * File name selection pattern
3617 */
3618tSCC zHpux_C99_Inttypes2List[] =
3619 "stdint.h\0";
3620/*
3621 * Machine/OS name selection pattern
3622 */
3623tSCC* apzHpux_C99_Inttypes2Machs[] = {
3624 "*-hp-hpux11.2*",
3625 (const char*)NULL };
3626#define HPUX_C99_INTTYPES2_TEST_CT 0
3627#define aHpux_C99_Inttypes2Tests (tTestDesc*)NULL
3628
3629/*
3630 * Fix Command Arguments for Hpux_C99_Inttypes2
3631 */
3632static const char* apzHpux_C99_Inttypes2Patch[] = { sed_cmd_z,
3633 "-e", "s@^[ \t]*#[ \t]*define[ \t]*INT8_C(__c)[ \t]*((signed char)(__c))[ \t]*$@#define INT8_C(__c) (__c)@",
3634 "-e", "s@^[ \t]*#[ \t]*define[ \t]*UINT8_C(__c)[ \t]*((unsigned char)(__c))[ \t]*$@#define UINT8_C(__c) (__c)@",
3635 "-e", "s@^[ \t]*#[ \t]*define[ \t]*INT16_C(__c)[ \t]*((short)(__c))[ \t]*$@#define INT16_C(__c) (__c)@",
3636 "-e", "s@^[ \t]*#[ \t]*define[ \t]*UINT16_C(__c)[ \t]*((unsigned short)(__c))[ \t]*$@#define UINT16_C(__c) (__c)@",
3637 (char*)NULL };
3638
3639/* * * * * * * * * * * * * * * * * * * * * * * * * *
3640 *
3641 * Description of Hpux_Stdint_Least fix
3642 */
3643tSCC zHpux_Stdint_LeastName[] =
3644 "hpux_stdint_least";
3645
3646/*
3647 * File name selection pattern
3648 */
3649tSCC zHpux_Stdint_LeastList[] =
3650 "stdint.h\0";
3651/*
3652 * Machine/OS name selection pattern
3653 */
3654tSCC* apzHpux_Stdint_LeastMachs[] = {
3655 "*-hp-hpux11.2*",
3656 (const char*)NULL };
3657
3658/*
3659 * content selection pattern - do fix if pattern found
3660 */
3661tSCC zHpux_Stdint_LeastSelect0[] =
3662 "^[ \t]*#[ \t]*define[ \t]*UINT_LEAST64_MAX[ \t]*ULLONG_MAX";
3663
3664#define HPUX_STDINT_LEAST_TEST_CT 1
3665static tTestDesc aHpux_Stdint_LeastTests[] = {
3666 { TT_EGREP, zHpux_Stdint_LeastSelect0, (regex_t*)NULL }, };
3667
3668/*
3669 * Fix Command Arguments for Hpux_Stdint_Least
3670 */
3671static const char* apzHpux_Stdint_LeastPatch[] = {
3672 "format",
3673 "#ifdef __LP64__\n\
3674# define\tUINT_LEAST64_MAX\tULONG_MAX\n\
3675#else\n\
3676%0\n\
3677#endif\n",
3678 (char*)NULL };
3679
3680/* * * * * * * * * * * * * * * * * * * * * * * * * *
3681 *
3682 * Description of Hpux_Stdint_Fast fix
3683 */
3684tSCC zHpux_Stdint_FastName[] =
3685 "hpux_stdint_fast";
3686
3687/*
3688 * File name selection pattern
3689 */
3690tSCC zHpux_Stdint_FastList[] =
3691 "stdint.h\0";
3692/*
3693 * Machine/OS name selection pattern
3694 */
3695tSCC* apzHpux_Stdint_FastMachs[] = {
3696 "*-hp-hpux11.2*",
3697 (const char*)NULL };
3698
3699/*
3700 * content selection pattern - do fix if pattern found
3701 */
3702tSCC zHpux_Stdint_FastSelect0[] =
3703 "^[ \t]*#[ \t]*define[ \t]*UINT_FAST64_MAX[ \t]*ULLONG_MAX";
3704
3705#define HPUX_STDINT_FAST_TEST_CT 1
3706static tTestDesc aHpux_Stdint_FastTests[] = {
3707 { TT_EGREP, zHpux_Stdint_FastSelect0, (regex_t*)NULL }, };
3708
3709/*
3710 * Fix Command Arguments for Hpux_Stdint_Fast
3711 */
3712static const char* apzHpux_Stdint_FastPatch[] = {
3713 "format",
3714 "#ifdef __LP64__\n\
3715# define\tUINT_FAST64_MAX\t\tULONG_MAX\n\
3716#else\n\
3717%0\n\
3718#endif\n",
3719 (char*)NULL };
3720
3721/* * * * * * * * * * * * * * * * * * * * * * * * * *
3722 *
3723 * Description of Hpux_Inttype_Int_Least8_T fix
3724 */
3725tSCC zHpux_Inttype_Int_Least8_TName[] =
3726 "hpux_inttype_int_least8_t";
3727
3728/*
3729 * File name selection pattern
3730 */
3731tSCC zHpux_Inttype_Int_Least8_TList[] =
3732 "sys/_inttypes.h\0";
3733/*
3734 * Machine/OS name selection pattern
3735 */
3736tSCC* apzHpux_Inttype_Int_Least8_TMachs[] = {
3737 "*-hp-hpux11.*",
3738 (const char*)NULL };
3739
3740/*
3741 * content selection pattern - do fix if pattern found
3742 */
3743tSCC zHpux_Inttype_Int_Least8_TSelect0[] =
3744 "^[ \t]*typedef[ \t]*char[ \t]*int_least8_t.*";
3745
3746#define HPUX_INTTYPE_INT_LEAST8_T_TEST_CT 1
3747static tTestDesc aHpux_Inttype_Int_Least8_TTests[] = {
3748 { TT_EGREP, zHpux_Inttype_Int_Least8_TSelect0, (regex_t*)NULL }, };
3749
3750/*
3751 * Fix Command Arguments for Hpux_Inttype_Int_Least8_T
3752 */
3753static const char* apzHpux_Inttype_Int_Least8_TPatch[] = {
3754 "format",
3755 "typedef signed char int_least8_t;",
3756 (char*)NULL };
3757
3758/* * * * * * * * * * * * * * * * * * * * * * * * * *
3759 *
3760 * Description of Hpux_Inttype_Int8_T fix
3761 */
3762tSCC zHpux_Inttype_Int8_TName[] =
3763 "hpux_inttype_int8_t";
3764
3765/*
3766 * File name selection pattern
3767 */
3768tSCC zHpux_Inttype_Int8_TList[] =
3769 "sys/_inttypes.h\0";
3770/*
3771 * Machine/OS name selection pattern
3772 */
3773tSCC* apzHpux_Inttype_Int8_TMachs[] = {
3774 "*-hp-hpux11.*",
3775 (const char*)NULL };
3776
3777/*
3778 * content selection pattern - do fix if pattern found
3779 */
3780tSCC zHpux_Inttype_Int8_TSelect0[] =
3781 "^[ \t]*typedef[ \t]*char[ \t]*int8_t.*";
3782
3783#define HPUX_INTTYPE_INT8_T_TEST_CT 1
3784static tTestDesc aHpux_Inttype_Int8_TTests[] = {
3785 { TT_EGREP, zHpux_Inttype_Int8_TSelect0, (regex_t*)NULL }, };
3786
3787/*
3788 * Fix Command Arguments for Hpux_Inttype_Int8_T
3789 */
3790static const char* apzHpux_Inttype_Int8_TPatch[] = {
3791 "format",
3792 "typedef signed char int8_t;",
3793 (char*)NULL };
3794
77923c29
JM
3795/* * * * * * * * * * * * * * * * * * * * * * * * * *
3796 *
3797 * Description of Huge_Val_Hex fix
3798 */
3799tSCC zHuge_Val_HexName[] =
3800 "huge_val_hex";
3801
3802/*
3803 * File name selection pattern
3804 */
3805tSCC zHuge_Val_HexList[] =
401be4b6 3806 "bits/huge_val.h\0";
77923c29
JM
3807/*
3808 * Machine/OS name selection pattern
3809 */
3810#define apzHuge_Val_HexMachs (const char**)NULL
3811
3812/*
3813 * content selection pattern - do fix if pattern found
3814 */
3815tSCC zHuge_Val_HexSelect0[] =
3816 "^#[ \t]*define[ \t]*HUGE_VAL[ \t].*0x1\\.0p.*";
3817
3818/*
3819 * content bypass pattern - skip fix if pattern found
3820 */
3821tSCC zHuge_Val_HexBypass0[] =
3822 "__builtin_huge_val";
3823
3824#define HUGE_VAL_HEX_TEST_CT 2
3825static tTestDesc aHuge_Val_HexTests[] = {
3826 { TT_NEGREP, zHuge_Val_HexBypass0, (regex_t*)NULL },
3827 { TT_EGREP, zHuge_Val_HexSelect0, (regex_t*)NULL }, };
3828
3829/*
3830 * Fix Command Arguments for Huge_Val_Hex
3831 */
3832static const char* apzHuge_Val_HexPatch[] = {
3833 "format",
3834 "#define HUGE_VAL (__builtin_huge_val())\n",
3835 (char*)NULL };
3836
3837/* * * * * * * * * * * * * * * * * * * * * * * * * *
3838 *
3839 * Description of Huge_Valf_Hex fix
3840 */
3841tSCC zHuge_Valf_HexName[] =
3842 "huge_valf_hex";
3843
3844/*
3845 * File name selection pattern
3846 */
3847tSCC zHuge_Valf_HexList[] =
401be4b6 3848 "bits/huge_val.h\0";
77923c29
JM
3849/*
3850 * Machine/OS name selection pattern
3851 */
3852#define apzHuge_Valf_HexMachs (const char**)NULL
3853
3854/*
3855 * content selection pattern - do fix if pattern found
3856 */
3857tSCC zHuge_Valf_HexSelect0[] =
3858 "^#[ \t]*define[ \t]*HUGE_VALF[ \t].*0x1\\.0p.*";
3859
3860/*
3861 * content bypass pattern - skip fix if pattern found
3862 */
3863tSCC zHuge_Valf_HexBypass0[] =
3864 "__builtin_huge_valf";
3865
3866#define HUGE_VALF_HEX_TEST_CT 2
3867static tTestDesc aHuge_Valf_HexTests[] = {
3868 { TT_NEGREP, zHuge_Valf_HexBypass0, (regex_t*)NULL },
3869 { TT_EGREP, zHuge_Valf_HexSelect0, (regex_t*)NULL }, };
3870
3871/*
3872 * Fix Command Arguments for Huge_Valf_Hex
3873 */
3874static const char* apzHuge_Valf_HexPatch[] = {
3875 "format",
3876 "#define HUGE_VALF (__builtin_huge_valf())\n",
3877 (char*)NULL };
3878
3879/* * * * * * * * * * * * * * * * * * * * * * * * * *
3880 *
3881 * Description of Huge_Vall_Hex fix
3882 */
3883tSCC zHuge_Vall_HexName[] =
3884 "huge_vall_hex";
3885
3886/*
3887 * File name selection pattern
3888 */
3889tSCC zHuge_Vall_HexList[] =
401be4b6 3890 "bits/huge_val.h\0";
77923c29
JM
3891/*
3892 * Machine/OS name selection pattern
3893 */
3894#define apzHuge_Vall_HexMachs (const char**)NULL
3895
3896/*
3897 * content selection pattern - do fix if pattern found
3898 */
3899tSCC zHuge_Vall_HexSelect0[] =
3900 "^#[ \t]*define[ \t]*HUGE_VALL[ \t].*0x1\\.0p.*";
3901
3902/*
3903 * content bypass pattern - skip fix if pattern found
3904 */
3905tSCC zHuge_Vall_HexBypass0[] =
3906 "__builtin_huge_vall";
3907
3908#define HUGE_VALL_HEX_TEST_CT 2
3909static tTestDesc aHuge_Vall_HexTests[] = {
3910 { TT_NEGREP, zHuge_Vall_HexBypass0, (regex_t*)NULL },
3911 { TT_EGREP, zHuge_Vall_HexSelect0, (regex_t*)NULL }, };
3912
3913/*
3914 * Fix Command Arguments for Huge_Vall_Hex
3915 */
3916static const char* apzHuge_Vall_HexPatch[] = {
3917 "format",
3918 "#define HUGE_VALL (__builtin_huge_vall())\n",
3919 (char*)NULL };
3920
7b78a14a
BK
3921/* * * * * * * * * * * * * * * * * * * * * * * * * *
3922 *
3923 * Description of Int_Abort_Free_And_Exit fix
3924 */
3925tSCC zInt_Abort_Free_And_ExitName[] =
3926 "int_abort_free_and_exit";
3927
3928/*
3929 * File name selection pattern
3930 */
3931tSCC zInt_Abort_Free_And_ExitList[] =
401be4b6 3932 "stdlib.h\0";
7b78a14a
BK
3933/*
3934 * Machine/OS name selection pattern
3935 */
3936#define apzInt_Abort_Free_And_ExitMachs (const char**)NULL
3937
3938/*
3939 * content selection pattern - do fix if pattern found
3940 */
3941tSCC zInt_Abort_Free_And_ExitSelect0[] =
3942 "int[ \t]+(abort|free|exit)[ \t]*\\(";
3943
793387fa
JM
3944/*
3945 * content bypass pattern - skip fix if pattern found
3946 */
3947tSCC zInt_Abort_Free_And_ExitBypass0[] =
3948 "_CLASSIC_ANSI_TYPES";
3949
3950#define INT_ABORT_FREE_AND_EXIT_TEST_CT 2
7b78a14a 3951static tTestDesc aInt_Abort_Free_And_ExitTests[] = {
793387fa 3952 { TT_NEGREP, zInt_Abort_Free_And_ExitBypass0, (regex_t*)NULL },
7b78a14a
BK
3953 { TT_EGREP, zInt_Abort_Free_And_ExitSelect0, (regex_t*)NULL }, };
3954
3955/*
3956 * Fix Command Arguments for Int_Abort_Free_And_Exit
3957 */
3958static const char* apzInt_Abort_Free_And_ExitPatch[] = {
3959 "format",
3960 "void\t%1(",
06bbab1b
BK
3961 (char*)NULL };
3962
06bbab1b
BK
3963/* * * * * * * * * * * * * * * * * * * * * * * * * *
3964 *
88acf854 3965 * Description of Io_Quotes_Def fix
06bbab1b 3966 */
88acf854
BK
3967tSCC zIo_Quotes_DefName[] =
3968 "io_quotes_def";
3be1fb72 3969
06bbab1b
BK
3970/*
3971 * File name selection pattern
3972 */
88acf854 3973#define zIo_Quotes_DefList (char*)NULL
06bbab1b
BK
3974/*
3975 * Machine/OS name selection pattern
3976 */
88acf854 3977#define apzIo_Quotes_DefMachs (const char**)NULL
06bbab1b
BK
3978
3979/*
be02fa1a 3980 * content selection pattern - do fix if pattern found
06bbab1b 3981 */
88acf854 3982tSCC zIo_Quotes_DefSelect0[] =
cf6d5133 3983 "define[ \t]+[A-Z0-9_]+IO[A-Z]*\\([a-zA-Z][,)]";
06bbab1b 3984
88acf854 3985#define IO_QUOTES_DEF_TEST_CT 1
3af556f7 3986static tTestDesc aIo_Quotes_DefTests[] = {
88acf854 3987 { TT_EGREP, zIo_Quotes_DefSelect0, (regex_t*)NULL }, };
06bbab1b
BK
3988
3989/*
88acf854 3990 * Fix Command Arguments for Io_Quotes_Def
06bbab1b 3991 */
3af556f7 3992static const char* apzIo_Quotes_DefPatch[] = {
4c6d912f
ZW
3993 "char_macro_def",
3994 "IO",
5c0d5b94
ZW
3995 (char*)NULL };
3996
3997/* * * * * * * * * * * * * * * * * * * * * * * * * *
3998 *
99d05d99 3999 * Description of Io_Quotes_Use fix
5c0d5b94 4000 */
99d05d99
BK
4001tSCC zIo_Quotes_UseName[] =
4002 "io_quotes_use";
3be1fb72 4003
5c0d5b94
ZW
4004/*
4005 * File name selection pattern
4006 */
99d05d99 4007#define zIo_Quotes_UseList (char*)NULL
5c0d5b94
ZW
4008/*
4009 * Machine/OS name selection pattern
4010 */
99d05d99 4011#define apzIo_Quotes_UseMachs (const char**)NULL
5c0d5b94
ZW
4012
4013/*
4014 * content selection pattern - do fix if pattern found
4015 */
99d05d99
BK
4016tSCC zIo_Quotes_UseSelect0[] =
4017 "define[ \t]+[A-Z0-9_]+[ \t]+[A-Z0-9_]+IO[A-Z]*[ \t]*\\( *[^,']";
5c0d5b94 4018
99d05d99 4019#define IO_QUOTES_USE_TEST_CT 1
3af556f7 4020static tTestDesc aIo_Quotes_UseTests[] = {
99d05d99 4021 { TT_EGREP, zIo_Quotes_UseSelect0, (regex_t*)NULL }, };
5c0d5b94
ZW
4022
4023/*
99d05d99 4024 * Fix Command Arguments for Io_Quotes_Use
5c0d5b94 4025 */
3af556f7 4026static const char* apzIo_Quotes_UsePatch[] = {
4c6d912f 4027 "char_macro_use",
99d05d99 4028 "IO",
06bbab1b
BK
4029 (char*)NULL };
4030
4031/* * * * * * * * * * * * * * * * * * * * * * * * * *
4032 *
7b78a14a 4033 * Description of Ip_Missing_Semi fix
06bbab1b 4034 */
7b78a14a
BK
4035tSCC zIp_Missing_SemiName[] =
4036 "ip_missing_semi";
3be1fb72 4037
06bbab1b
BK
4038/*
4039 * File name selection pattern
4040 */
7b78a14a 4041tSCC zIp_Missing_SemiList[] =
401be4b6 4042 "netinet/ip.h\0";
06bbab1b
BK
4043/*
4044 * Machine/OS name selection pattern
4045 */
7b78a14a 4046#define apzIp_Missing_SemiMachs (const char**)NULL
d7eb5a45
ZW
4047
4048/*
4049 * content selection pattern - do fix if pattern found
79589c4d 4050 */
7b78a14a
BK
4051tSCC zIp_Missing_SemiSelect0[] =
4052 "}$";
79589c4d 4053
7b78a14a
BK
4054#define IP_MISSING_SEMI_TEST_CT 1
4055static tTestDesc aIp_Missing_SemiTests[] = {
4056 { TT_EGREP, zIp_Missing_SemiSelect0, (regex_t*)NULL }, };
039df8c7
DA
4057
4058/*
7b78a14a 4059 * Fix Command Arguments for Ip_Missing_Semi
06bbab1b 4060 */
6aa1f8c1 4061static const char* apzIp_Missing_SemiPatch[] = { sed_cmd_z,
7b78a14a 4062 "-e", "/^struct/,/^};/s/}$/};/",
06bbab1b
BK
4063 (char*)NULL };
4064
7a9cdb10
DD
4065/* * * * * * * * * * * * * * * * * * * * * * * * * *
4066 *
4067 * Description of Irix___Restrict fix
4068 */
4069tSCC zIrix___RestrictName[] =
4070 "irix___restrict";
4071
4072/*
4073 * File name selection pattern
4074 */
4075tSCC zIrix___RestrictList[] =
401be4b6 4076 "internal/sgimacros.h\0";
7a9cdb10
DD
4077/*
4078 * Machine/OS name selection pattern
4079 */
4080tSCC* apzIrix___RestrictMachs[] = {
4081 "mips-sgi-irix6.5",
4082 (const char*)NULL };
4083
4084/*
4085 * content selection pattern - do fix if pattern found
4086 */
4087tSCC zIrix___RestrictSelect0[] =
4088 "(#ifdef __c99\n\
4089)(#[ \t]*define __restrict restrict)";
4090
4091#define IRIX___RESTRICT_TEST_CT 1
4092static tTestDesc aIrix___RestrictTests[] = {
4093 { TT_EGREP, zIrix___RestrictSelect0, (regex_t*)NULL }, };
4094
4095/*
4096 * Fix Command Arguments for Irix___Restrict
4097 */
4098static const char* apzIrix___RestrictPatch[] = {
4099 "format",
4100 "%1# ifndef __cplusplus\n\
4101%2\n\
4102# endif",
4103 (char*)NULL };
4104
e0704143
RS
4105/* * * * * * * * * * * * * * * * * * * * * * * * * *
4106 *
4107 * Description of Irix___Generic1 fix
4108 */
4109tSCC zIrix___Generic1Name[] =
4110 "irix___generic1";
4111
4112/*
4113 * File name selection pattern
4114 */
4115tSCC zIrix___Generic1List[] =
401be4b6 4116 "internal/math_core.h\0";
e0704143
RS
4117/*
4118 * Machine/OS name selection pattern
4119 */
4120tSCC* apzIrix___Generic1Machs[] = {
4121 "mips-sgi-irix6.5",
4122 (const char*)NULL };
4123
4124/*
4125 * content selection pattern - do fix if pattern found
4126 */
4127tSCC zIrix___Generic1Select0[] =
4128 "#define ([a-z]+)\\(x\\) *__generic.*";
4129
4130#define IRIX___GENERIC1_TEST_CT 1
4131static tTestDesc aIrix___Generic1Tests[] = {
4132 { TT_EGREP, zIrix___Generic1Select0, (regex_t*)NULL }, };
4133
4134/*
4135 * Fix Command Arguments for Irix___Generic1
4136 */
4137static const char* apzIrix___Generic1Patch[] = {
4138 "format",
4139 "extern int %1(double);\n\
4140extern int %1f(float);\n\
4141extern int %1l(long double);\n\
4142#define %1(x) (sizeof(x) == sizeof(double) ? _%1(x) \\\n\
4143 : sizeof(x) == sizeof(float) ? _%1f(x) \\\n\
4144 : _%1l(x))\n",
4145 (char*)NULL };
4146
4147/* * * * * * * * * * * * * * * * * * * * * * * * * *
4148 *
4149 * Description of Irix___Generic2 fix
4150 */
4151tSCC zIrix___Generic2Name[] =
4152 "irix___generic2";
4153
4154/*
4155 * File name selection pattern
4156 */
4157tSCC zIrix___Generic2List[] =
401be4b6 4158 "internal/math_core.h\0";
e0704143
RS
4159/*
4160 * Machine/OS name selection pattern
4161 */
4162tSCC* apzIrix___Generic2Machs[] = {
4163 "mips-sgi-irix6.5",
4164 (const char*)NULL };
4165
4166/*
4167 * content selection pattern - do fix if pattern found
4168 */
4169tSCC zIrix___Generic2Select0[] =
4170 "#define ([a-z]+)\\(x,y\\) *__generic.*";
4171
4172#define IRIX___GENERIC2_TEST_CT 1
4173static tTestDesc aIrix___Generic2Tests[] = {
4174 { TT_EGREP, zIrix___Generic2Select0, (regex_t*)NULL }, };
4175
4176/*
4177 * Fix Command Arguments for Irix___Generic2
4178 */
4179static const char* apzIrix___Generic2Patch[] = {
4180 "format",
4181 "#define %1(x,y) \\\n\
4182 ((sizeof(x)<=4 && sizeof(y)<=4) ? _%1f(x,y) \\\n\
4183 : (sizeof(x)<=8 && sizeof(y)<=8) ? _%1(x,y) \\\n\
4184 : _%1l(x,y))\n",
4185 (char*)NULL };
4186
06bbab1b
BK
4187/* * * * * * * * * * * * * * * * * * * * * * * * * *
4188 *
7b78a14a 4189 * Description of Irix_Asm_Apostrophe fix
06bbab1b 4190 */
7b78a14a
BK
4191tSCC zIrix_Asm_ApostropheName[] =
4192 "irix_asm_apostrophe";
3be1fb72 4193
06bbab1b
BK
4194/*
4195 * File name selection pattern
4196 */
7b78a14a 4197tSCC zIrix_Asm_ApostropheList[] =
401be4b6 4198 "sys/asm.h\0";
06bbab1b
BK
4199/*
4200 * Machine/OS name selection pattern
4201 */
7b78a14a 4202#define apzIrix_Asm_ApostropheMachs (const char**)NULL
06bbab1b
BK
4203
4204/*
be02fa1a 4205 * content selection pattern - do fix if pattern found
06bbab1b 4206 */
7b78a14a
BK
4207tSCC zIrix_Asm_ApostropheSelect0[] =
4208 "^[ \t]*#.*[Ww]e're";
3be1fb72 4209
7b78a14a
BK
4210#define IRIX_ASM_APOSTROPHE_TEST_CT 1
4211static tTestDesc aIrix_Asm_ApostropheTests[] = {
4212 { TT_EGREP, zIrix_Asm_ApostropheSelect0, (regex_t*)NULL }, };
06bbab1b
BK
4213
4214/*
7b78a14a 4215 * Fix Command Arguments for Irix_Asm_Apostrophe
06bbab1b 4216 */
7b78a14a 4217static const char* apzIrix_Asm_ApostrophePatch[] = {
a8228686 4218 "format",
7b78a14a
BK
4219 "%1 are",
4220 "^([ \t]*#.*[Ww]e)'re",
06bbab1b
BK
4221 (char*)NULL };
4222
4223/* * * * * * * * * * * * * * * * * * * * * * * * * *
4224 *
7b78a14a 4225 * Description of Irix_Limits_Const fix
94cc6036 4226 */
7b78a14a
BK
4227tSCC zIrix_Limits_ConstName[] =
4228 "irix_limits_const";
3be1fb72 4229
94cc6036
BK
4230/*
4231 * File name selection pattern
4232 */
7b78a14a 4233tSCC zIrix_Limits_ConstList[] =
401be4b6 4234 "fixinc-test-limits.h\0limits.h\0";
94cc6036
BK
4235/*
4236 * Machine/OS name selection pattern
4237 */
7b78a14a 4238#define apzIrix_Limits_ConstMachs (const char**)NULL
94cc6036
BK
4239
4240/*
4241 * content selection pattern - do fix if pattern found
4242 */
7b78a14a
BK
4243tSCC zIrix_Limits_ConstSelect0[] =
4244 "^extern const ";
94cc6036 4245
7b78a14a
BK
4246#define IRIX_LIMITS_CONST_TEST_CT 1
4247static tTestDesc aIrix_Limits_ConstTests[] = {
4248 { TT_EGREP, zIrix_Limits_ConstSelect0, (regex_t*)NULL }, };
94cc6036
BK
4249
4250/*
7b78a14a 4251 * Fix Command Arguments for Irix_Limits_Const
94cc6036 4252 */
7b78a14a 4253static const char* apzIrix_Limits_ConstPatch[] = {
79589c4d 4254 "format",
7b78a14a 4255 "extern __const ",
06bbab1b
BK
4256 (char*)NULL };
4257
f23147fe
RO
4258/* * * * * * * * * * * * * * * * * * * * * * * * * *
4259 *
4260 * Description of Irix_Socklen_T fix
4261 */
4262tSCC zIrix_Socklen_TName[] =
4263 "irix_socklen_t";
4264
4265/*
4266 * File name selection pattern
4267 */
4268tSCC zIrix_Socklen_TList[] =
401be4b6 4269 "sys/socket.h\0";
f23147fe
RO
4270/*
4271 * Machine/OS name selection pattern
4272 */
4273tSCC* apzIrix_Socklen_TMachs[] = {
4274 "mips-sgi-irix6.5",
4275 (const char*)NULL };
4276
4277/*
4278 * content selection pattern - do fix if pattern found
4279 */
4280tSCC zIrix_Socklen_TSelect0[] =
4281 "(#define _SOCKLEN_T\n\
4282)(typedef u_int32_t socklen_t;)";
4283
4284#define IRIX_SOCKLEN_T_TEST_CT 1
4285static tTestDesc aIrix_Socklen_TTests[] = {
4286 { TT_EGREP, zIrix_Socklen_TSelect0, (regex_t*)NULL }, };
4287
4288/*
4289 * Fix Command Arguments for Irix_Socklen_T
4290 */
4291static const char* apzIrix_Socklen_TPatch[] = {
4292 "format",
4293 "%1#if _NO_XOPEN4 && _NO_XOPEN5\n\
4294typedef int socklen_t;\n\
4295#else\n\
4296%2\n\
4297#endif /* _NO_XOPEN4 && _NO_XOPEN5 */",
4298 (char*)NULL };
4299
8919fa4a
RO
4300/* * * * * * * * * * * * * * * * * * * * * * * * * *
4301 *
4302 * Description of Irix_Stdint_C99 fix
4303 */
4304tSCC zIrix_Stdint_C99Name[] =
4305 "irix_stdint_c99";
4306
4307/*
4308 * File name selection pattern
4309 */
4310tSCC zIrix_Stdint_C99List[] =
4311 "stdint.h\0";
4312/*
4313 * Machine/OS name selection pattern
4314 */
4315tSCC* apzIrix_Stdint_C99Machs[] = {
4316 "mips-sgi-irix6.5",
4317 (const char*)NULL };
4318
4319/*
4320 * content selection pattern - do fix if pattern found
4321 */
4322tSCC zIrix_Stdint_C99Select0[] =
4323 "(#ifndef __c99\n\
4324)(#error This header file is to be used only for c99 mode compilations)";
4325
4326#define IRIX_STDINT_C99_TEST_CT 1
4327static tTestDesc aIrix_Stdint_C99Tests[] = {
4328 { TT_EGREP, zIrix_Stdint_C99Select0, (regex_t*)NULL }, };
4329
4330/*
4331 * Fix Command Arguments for Irix_Stdint_C99
4332 */
4333static const char* apzIrix_Stdint_C99Patch[] = {
4334 "format",
4335 "#if 0\n\
4336%2",
4337 (char*)NULL };
4338
3b3a1054
BK
4339/* * * * * * * * * * * * * * * * * * * * * * * * * *
4340 *
4341 * Description of Irix_Stdio_Va_List fix
4342 */
3b3a1054
BK
4343tSCC zIrix_Stdio_Va_ListName[] =
4344 "irix_stdio_va_list";
4345
4346/*
4347 * File name selection pattern
4348 */
4349tSCC zIrix_Stdio_Va_ListList[] =
401be4b6 4350 "stdio.h\0internal/stdio_core.h\0";
3b3a1054
BK
4351/*
4352 * Machine/OS name selection pattern
4353 */
4354#define apzIrix_Stdio_Va_ListMachs (const char**)NULL
4355
4356/*
4357 * content selection pattern - do fix if pattern found
4358 */
4359tSCC zIrix_Stdio_Va_ListSelect0[] =
9a557707 4360 "/\\* va_list \\*/ char \\*";
3b3a1054
BK
4361
4362#define IRIX_STDIO_VA_LIST_TEST_CT 1
4363static tTestDesc aIrix_Stdio_Va_ListTests[] = {
4364 { TT_EGREP, zIrix_Stdio_Va_ListSelect0, (regex_t*)NULL }, };
4365
4366/*
4367 * Fix Command Arguments for Irix_Stdio_Va_List
4368 */
4369static const char* apzIrix_Stdio_Va_ListPatch[] = {
4370 "format",
9a557707 4371 "__gnuc_va_list",
3b3a1054
BK
4372 (char*)NULL };
4373
f23147fe
RO
4374/* * * * * * * * * * * * * * * * * * * * * * * * * *
4375 *
4376 * Description of Irix_Wcsftime fix
4377 */
4378tSCC zIrix_WcsftimeName[] =
4379 "irix_wcsftime";
4380
4381/*
4382 * File name selection pattern
4383 */
4384tSCC zIrix_WcsftimeList[] =
401be4b6 4385 "internal/wchar_core.h\0";
f23147fe
RO
4386/*
4387 * Machine/OS name selection pattern
4388 */
4389tSCC* apzIrix_WcsftimeMachs[] = {
4390 "mips-sgi-irix6.5",
4391 (const char*)NULL };
4392
4393/*
4394 * content selection pattern - do fix if pattern found
4395 */
4396tSCC zIrix_WcsftimeSelect0[] =
4397 "#if _NO_XOPEN5\n\
4398(extern size_t[ \t]+wcsftime.*const char *.*)";
4399
4400#define IRIX_WCSFTIME_TEST_CT 1
4401static tTestDesc aIrix_WcsftimeTests[] = {
4402 { TT_EGREP, zIrix_WcsftimeSelect0, (regex_t*)NULL }, };
4403
4404/*
4405 * Fix Command Arguments for Irix_Wcsftime
4406 */
4407static const char* apzIrix_WcsftimePatch[] = {
4408 "format",
4409 "#if _NO_XOPEN5 && !defined(__c99)\n\
4410%1",
4411 (char*)NULL };
4412
8d8d5752
JO
4413/* * * * * * * * * * * * * * * * * * * * * * * * * *
4414 *
7b78a14a 4415 * Description of Isc_Fmod fix
8d8d5752 4416 */
7b78a14a
BK
4417tSCC zIsc_FmodName[] =
4418 "isc_fmod";
8d8d5752
JO
4419
4420/*
4421 * File name selection pattern
4422 */
7b78a14a 4423tSCC zIsc_FmodList[] =
401be4b6 4424 "math.h\0";
8d8d5752
JO
4425/*
4426 * Machine/OS name selection pattern
4427 */
7b78a14a 4428#define apzIsc_FmodMachs (const char**)NULL
8d8d5752
JO
4429
4430/*
4431 * content selection pattern - do fix if pattern found
4432 */
7b78a14a
BK
4433tSCC zIsc_FmodSelect0[] =
4434 "fmod\\(double\\)";
8d8d5752 4435
7b78a14a
BK
4436#define ISC_FMOD_TEST_CT 1
4437static tTestDesc aIsc_FmodTests[] = {
4438 { TT_EGREP, zIsc_FmodSelect0, (regex_t*)NULL }, };
8d8d5752
JO
4439
4440/*
7b78a14a 4441 * Fix Command Arguments for Isc_Fmod
8d8d5752 4442 */
7b78a14a 4443static const char* apzIsc_FmodPatch[] = {
8d8d5752 4444 "format",
7b78a14a 4445 "fmod(double, double)",
8d8d5752
JO
4446 (char*)NULL };
4447
06bbab1b
BK
4448/* * * * * * * * * * * * * * * * * * * * * * * * * *
4449 *
7b78a14a 4450 * Description of Isc_Omits_With_Stdc fix
06bbab1b 4451 */
7b78a14a
BK
4452tSCC zIsc_Omits_With_StdcName[] =
4453 "isc_omits_with_stdc";
3be1fb72 4454
06bbab1b
BK
4455/*
4456 * File name selection pattern
4457 */
7b78a14a 4458tSCC zIsc_Omits_With_StdcList[] =
401be4b6 4459 "stdio.h\0math.h\0ctype.h\0sys/limits.h\0sys/fcntl.h\0sys/dirent.h\0";
06bbab1b
BK
4460/*
4461 * Machine/OS name selection pattern
4462 */
7b78a14a 4463#define apzIsc_Omits_With_StdcMachs (const char**)NULL
06bbab1b
BK
4464
4465/*
be02fa1a 4466 * content selection pattern - do fix if pattern found
06bbab1b 4467 */
7b78a14a
BK
4468tSCC zIsc_Omits_With_StdcSelect0[] =
4469 "!defined\\(__STDC__\\) && !defined\\(_POSIX_SOURCE\\)";
06bbab1b 4470
7b78a14a
BK
4471#define ISC_OMITS_WITH_STDC_TEST_CT 1
4472static tTestDesc aIsc_Omits_With_StdcTests[] = {
4473 { TT_EGREP, zIsc_Omits_With_StdcSelect0, (regex_t*)NULL }, };
06bbab1b
BK
4474
4475/*
7b78a14a 4476 * Fix Command Arguments for Isc_Omits_With_Stdc
06bbab1b 4477 */
7b78a14a 4478static const char* apzIsc_Omits_With_StdcPatch[] = {
79589c4d 4479 "format",
7b78a14a 4480 "!defined(_POSIX_SOURCE)",
06bbab1b
BK
4481 (char*)NULL };
4482
4483/* * * * * * * * * * * * * * * * * * * * * * * * * *
4484 *
5abc1f74 4485 * Description of Kandr_Concat fix
06bbab1b
BK
4486 */
4487tSCC zKandr_ConcatName[] =
3be1fb72
ZW
4488 "kandr_concat";
4489
06bbab1b
BK
4490/*
4491 * File name selection pattern
4492 */
4493tSCC zKandr_ConcatList[] =
401be4b6 4494 "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";
06bbab1b
BK
4495/*
4496 * Machine/OS name selection pattern
4497 */
4498#define apzKandr_ConcatMachs (const char**)NULL
4499
4500/*
be02fa1a 4501 * content selection pattern - do fix if pattern found
06bbab1b
BK
4502 */
4503tSCC zKandr_ConcatSelect0[] =
4504 "/\\*\\*/";
4505
4506#define KANDR_CONCAT_TEST_CT 1
3af556f7 4507static tTestDesc aKandr_ConcatTests[] = {
5abc1f74 4508 { TT_EGREP, zKandr_ConcatSelect0, (regex_t*)NULL }, };
06bbab1b
BK
4509
4510/*
4511 * Fix Command Arguments for Kandr_Concat
4512 */
3af556f7 4513static const char* apzKandr_ConcatPatch[] = {
79589c4d
BK
4514 "format",
4515 "##",
06bbab1b
BK
4516 (char*)NULL };
4517
fa71a5c3
RS
4518/* * * * * * * * * * * * * * * * * * * * * * * * * *
4519 *
4520 * Description of Linux_Ia64_Ucontext fix
4521 */
4522tSCC zLinux_Ia64_UcontextName[] =
4523 "linux_ia64_ucontext";
4524
4525/*
4526 * File name selection pattern
4527 */
4528tSCC zLinux_Ia64_UcontextList[] =
401be4b6 4529 "sys/ucontext.h\0";
fa71a5c3
RS
4530/*
4531 * Machine/OS name selection pattern
4532 */
4533tSCC* apzLinux_Ia64_UcontextMachs[] = {
4534 "ia64-*-linux*",
4535 (const char*)NULL };
4536
4537/*
4538 * content selection pattern - do fix if pattern found
4539 */
4540tSCC zLinux_Ia64_UcontextSelect0[] =
4541 "\\(\\(\\(char \\*\\) &\\(\\(struct sigcontext \\*\\) 0\\)->sc_gr\\[0\\]\\) - \\(char \\*\\) 0\\)";
4542
4543#define LINUX_IA64_UCONTEXT_TEST_CT 1
4544static tTestDesc aLinux_Ia64_UcontextTests[] = {
4545 { TT_EGREP, zLinux_Ia64_UcontextSelect0, (regex_t*)NULL }, };
4546
4547/*
4548 * Fix Command Arguments for Linux_Ia64_Ucontext
4549 */
4550static const char* apzLinux_Ia64_UcontextPatch[] = {
4551 "format",
4552 "__builtin_offsetof (struct sigcontext, sc_gr[0])",
4553 (char*)NULL };
4554
06bbab1b
BK
4555/* * * * * * * * * * * * * * * * * * * * * * * * * *
4556 *
d635c707 4557 * Description of Lynxos_No_Warning_In_Sys_Time_H fix
06bbab1b 4558 */
d635c707
AN
4559tSCC zLynxos_No_Warning_In_Sys_Time_HName[] =
4560 "lynxos_no_warning_in_sys_time_h";
3be1fb72 4561
06bbab1b
BK
4562/*
4563 * File name selection pattern
4564 */
d635c707 4565tSCC zLynxos_No_Warning_In_Sys_Time_HList[] =
401be4b6 4566 "sys/time.h\0";
06bbab1b
BK
4567/*
4568 * Machine/OS name selection pattern
4569 */
d635c707 4570#define apzLynxos_No_Warning_In_Sys_Time_HMachs (const char**)NULL
06bbab1b
BK
4571
4572/*
be02fa1a 4573 * content selection pattern - do fix if pattern found
06bbab1b 4574 */
d635c707
AN
4575tSCC zLynxos_No_Warning_In_Sys_Time_HSelect0[] =
4576 "#warning[ \t]+Using <time.h> instead of <sys/time.h>";
06bbab1b 4577
d635c707
AN
4578#define LYNXOS_NO_WARNING_IN_SYS_TIME_H_TEST_CT 1
4579static tTestDesc aLynxos_No_Warning_In_Sys_Time_HTests[] = {
4580 { TT_EGREP, zLynxos_No_Warning_In_Sys_Time_HSelect0, (regex_t*)NULL }, };
06bbab1b
BK
4581
4582/*
d635c707 4583 * Fix Command Arguments for Lynxos_No_Warning_In_Sys_Time_H
06bbab1b 4584 */
d635c707 4585static const char* apzLynxos_No_Warning_In_Sys_Time_HPatch[] = {
79589c4d
BK
4586 "format",
4587 "",
06bbab1b
BK
4588 (char*)NULL };
4589
4590/* * * * * * * * * * * * * * * * * * * * * * * * * *
4591 *
d635c707 4592 * Description of Lynxos_Missing_Putenv fix
06bbab1b 4593 */
d635c707
AN
4594tSCC zLynxos_Missing_PutenvName[] =
4595 "lynxos_missing_putenv";
3be1fb72 4596
06bbab1b
BK
4597/*
4598 * File name selection pattern
4599 */
d635c707 4600tSCC zLynxos_Missing_PutenvList[] =
401be4b6 4601 "stdlib.h\0";
06bbab1b
BK
4602/*
4603 * Machine/OS name selection pattern
4604 */
d635c707
AN
4605tSCC* apzLynxos_Missing_PutenvMachs[] = {
4606 "*-*-lynxos*",
4607 (const char*)NULL };
48bd9529
BK
4608
4609/*
be02fa1a 4610 * content selection pattern - do fix if pattern found
48bd9529 4611 */
d635c707
AN
4612tSCC zLynxos_Missing_PutenvSelect0[] =
4613 "extern char \\*getenv[ \t]*_AP\\(\\(const char \\*\\)\\);";
48bd9529 4614
d635c707
AN
4615/*
4616 * content bypass pattern - skip fix if pattern found
4617 */
4618tSCC zLynxos_Missing_PutenvBypass0[] =
4619 "putenv[ \\t]*\\(";
4620
4621#define LYNXOS_MISSING_PUTENV_TEST_CT 2
4622static tTestDesc aLynxos_Missing_PutenvTests[] = {
4623 { TT_NEGREP, zLynxos_Missing_PutenvBypass0, (regex_t*)NULL },
4624 { TT_EGREP, zLynxos_Missing_PutenvSelect0, (regex_t*)NULL }, };
06bbab1b
BK
4625
4626/*
d635c707 4627 * Fix Command Arguments for Lynxos_Missing_Putenv
06bbab1b 4628 */
d635c707 4629static const char* apzLynxos_Missing_PutenvPatch[] = {
79589c4d 4630 "format",
d635c707
AN
4631 "%0\n\
4632extern int putenv\t\t\t\t_AP((char *));",
4633 "extern char \\*getenv[ \t]*_AP\\(\\(const char \\*\\)\\);",
06bbab1b
BK
4634 (char*)NULL };
4635
3be1fb72
ZW
4636/* * * * * * * * * * * * * * * * * * * * * * * * * *
4637 *
4638 * Description of Machine_Ansi_H_Va_List fix
4639 */
3be1fb72
ZW
4640tSCC zMachine_Ansi_H_Va_ListName[] =
4641 "machine_ansi_h_va_list";
4642
4643/*
4644 * File name selection pattern
4645 */
1435059e 4646#define zMachine_Ansi_H_Va_ListList (char*)NULL
3be1fb72
ZW
4647/*
4648 * Machine/OS name selection pattern
4649 */
4650#define apzMachine_Ansi_H_Va_ListMachs (const char**)NULL
4651
4652/*
4653 * content selection pattern - do fix if pattern found
4654 */
4655tSCC zMachine_Ansi_H_Va_ListSelect0[] =
a8228686 4656 "define[ \t]+_BSD_VA_LIST_[ \t]";
3be1fb72
ZW
4657
4658/*
4659 * content bypass pattern - skip fix if pattern found
4660 */
4661tSCC zMachine_Ansi_H_Va_ListBypass0[] =
4662 "__builtin_va_list";
4663
4664#define MACHINE_ANSI_H_VA_LIST_TEST_CT 2
3af556f7 4665static tTestDesc aMachine_Ansi_H_Va_ListTests[] = {
3be1fb72
ZW
4666 { TT_NEGREP, zMachine_Ansi_H_Va_ListBypass0, (regex_t*)NULL },
4667 { TT_EGREP, zMachine_Ansi_H_Va_ListSelect0, (regex_t*)NULL }, };
4668
4669/*
4670 * Fix Command Arguments for Machine_Ansi_H_Va_List
4671 */
3af556f7 4672static const char* apzMachine_Ansi_H_Va_ListPatch[] = {
a8228686
BK
4673 "format",
4674 "%1__builtin_va_list",
4675 "(define[ \t]+_BSD_VA_LIST_[ \t]+).*",
3be1fb72
ZW
4676 (char*)NULL };
4677
06bbab1b
BK
4678/* * * * * * * * * * * * * * * * * * * * * * * * * *
4679 *
5abc1f74 4680 * Description of Machine_Name fix
06bbab1b
BK
4681 */
4682tSCC zMachine_NameName[] =
3be1fb72
ZW
4683 "machine_name";
4684
06bbab1b
BK
4685/*
4686 * File name selection pattern
4687 */
4688#define zMachine_NameList (char*)NULL
4689/*
4690 * Machine/OS name selection pattern
4691 */
4692#define apzMachine_NameMachs (const char**)NULL
4693
4694/*
52c207e2 4695 * perform the C function call test
06bbab1b 4696 */
52c207e2 4697tSCC zMachine_NameFTst0[] = "machine_name";
06bbab1b
BK
4698
4699#define MACHINE_NAME_TEST_CT 1
3af556f7 4700static tTestDesc aMachine_NameTests[] = {
52c207e2 4701 { TT_FUNCTION, zMachine_NameFTst0, 0 /* unused */ }, };
06bbab1b
BK
4702
4703/*
4704 * Fix Command Arguments for Machine_Name
4705 */
3af556f7 4706static const char* apzMachine_NamePatch[] = {
f5b105ca 4707 "machine_name",
06bbab1b
BK
4708 (char*)NULL };
4709
4710/* * * * * * * * * * * * * * * * * * * * * * * * * *
4711 *
5abc1f74 4712 * Description of Math_Exception fix
06bbab1b
BK
4713 */
4714tSCC zMath_ExceptionName[] =
3be1fb72
ZW
4715 "math_exception";
4716
06bbab1b
BK
4717/*
4718 * File name selection pattern
4719 */
4720tSCC zMath_ExceptionList[] =
401be4b6 4721 "math.h\0";
06bbab1b
BK
4722/*
4723 * Machine/OS name selection pattern
4724 */
4725#define apzMath_ExceptionMachs (const char**)NULL
4726
4727/*
be02fa1a 4728 * content selection pattern - do fix if pattern found
06bbab1b
BK
4729 */
4730tSCC zMath_ExceptionSelect0[] =
4731 "struct exception";
4732
d7eb5a45
ZW
4733/*
4734 * content bypass pattern - skip fix if pattern found
4735 */
4736tSCC zMath_ExceptionBypass0[] =
61fec9ff 4737 "We have a problem when using C\\+\\+|for C\\+\\+, _[a-z0-9A-Z_]+_exception; for C, exception";
d7eb5a45
ZW
4738
4739#define MATH_EXCEPTION_TEST_CT 2
3af556f7 4740static tTestDesc aMath_ExceptionTests[] = {
d7eb5a45 4741 { TT_NEGREP, zMath_ExceptionBypass0, (regex_t*)NULL },
5abc1f74 4742 { TT_EGREP, zMath_ExceptionSelect0, (regex_t*)NULL }, };
06bbab1b
BK
4743
4744/*
4745 * Fix Command Arguments for Math_Exception
4746 */
3af556f7 4747static const char* apzMath_ExceptionPatch[] = {
ba8fcfc3
BK
4748 "wrap",
4749 "#ifdef __cplusplus\n\
4750#define exception __math_exception\n\
c329beb0 4751#endif\n",
ba8fcfc3
BK
4752 "#ifdef __cplusplus\n\
4753#undef exception\n\
c329beb0 4754#endif\n",
06bbab1b
BK
4755 (char*)NULL };
4756
4757/* * * * * * * * * * * * * * * * * * * * * * * * * *
4758 *
d7eb5a45 4759 * Description of Math_Huge_Val_From_Dbl_Max fix
06bbab1b 4760 */
d7eb5a45 4761tSCC zMath_Huge_Val_From_Dbl_MaxName[] =
3be1fb72
ZW
4762 "math_huge_val_from_dbl_max";
4763
06bbab1b
BK
4764/*
4765 * File name selection pattern
4766 */
d7eb5a45 4767tSCC zMath_Huge_Val_From_Dbl_MaxList[] =
401be4b6 4768 "math.h\0";
06bbab1b
BK
4769/*
4770 * Machine/OS name selection pattern
4771 */
d7eb5a45
ZW
4772#define apzMath_Huge_Val_From_Dbl_MaxMachs (const char**)NULL
4773
4774/*
4775 * content selection pattern - do fix if pattern found
4776 */
4777tSCC zMath_Huge_Val_From_Dbl_MaxSelect0[] =
b5e20633 4778 "define[ \t]+HUGE_VAL[ \t]+DBL_MAX";
06bbab1b
BK
4779
4780/*
d7eb5a45 4781 * content bypass pattern - skip fix if pattern found
06bbab1b 4782 */
d7eb5a45 4783tSCC zMath_Huge_Val_From_Dbl_MaxBypass0[] =
b5e20633 4784 "define[ \t]+DBL_MAX";
d7eb5a45
ZW
4785
4786#define MATH_HUGE_VAL_FROM_DBL_MAX_TEST_CT 2
3af556f7 4787static tTestDesc aMath_Huge_Val_From_Dbl_MaxTests[] = {
d7eb5a45
ZW
4788 { TT_NEGREP, zMath_Huge_Val_From_Dbl_MaxBypass0, (regex_t*)NULL },
4789 { TT_EGREP, zMath_Huge_Val_From_Dbl_MaxSelect0, (regex_t*)NULL }, };
4790
4791/*
4792 * Fix Command Arguments for Math_Huge_Val_From_Dbl_Max
4793 */
3af556f7 4794static const char* apzMath_Huge_Val_From_Dbl_MaxPatch[] = { "sh", "-c",
dac32862 4795 "\tdbl_max_def=`egrep 'define[ \t]+DBL_MAX[ \t]+.*' float.h | sed 's/.*DBL_MAX[ \t]*//' 2>/dev/null`\n\n\
d7eb5a45 4796\tif ( test -n \"${dbl_max_def}\" ) > /dev/null 2>&1\n\
b5e20633 4797\tthen sed -e '/define[ \t]*HUGE_VAL[ \t]*DBL_MAX/s@DBL_MAX@'\"$dbl_max_def@\"\n\
d7eb5a45
ZW
4798\telse cat\n\
4799\tfi",
4800 (char*)NULL };
4801
7b78a14a
BK
4802/* * * * * * * * * * * * * * * * * * * * * * * * * *
4803 *
4804 * Description of Nested_Auth_Des fix
4805 */
4806tSCC zNested_Auth_DesName[] =
4807 "nested_auth_des";
4808
4809/*
4810 * File name selection pattern
4811 */
4812tSCC zNested_Auth_DesList[] =
401be4b6 4813 "rpc/rpc.h\0";
7b78a14a
BK
4814/*
4815 * Machine/OS name selection pattern
4816 */
4817#define apzNested_Auth_DesMachs (const char**)NULL
4818
4819/*
4820 * content selection pattern - do fix if pattern found
4821 */
4822tSCC zNested_Auth_DesSelect0[] =
4823 "(/\\*.*rpc/auth_des\\.h>.*)/\\*";
4824
4825#define NESTED_AUTH_DES_TEST_CT 1
4826static tTestDesc aNested_Auth_DesTests[] = {
4827 { TT_EGREP, zNested_Auth_DesSelect0, (regex_t*)NULL }, };
4828
4829/*
4830 * Fix Command Arguments for Nested_Auth_Des
4831 */
4832static const char* apzNested_Auth_DesPatch[] = {
4833 "format",
4834 "%1*/ /*",
4835 (char*)NULL };
4836
79589c4d
BK
4837/* * * * * * * * * * * * * * * * * * * * * * * * * *
4838 *
4839 * Description of Nested_Sys_Limits fix
4840 */
79589c4d
BK
4841tSCC zNested_Sys_LimitsName[] =
4842 "nested_sys_limits";
4843
4844/*
4845 * File name selection pattern
4846 */
4847tSCC zNested_Sys_LimitsList[] =
401be4b6 4848 "sys/limits.h\0";
79589c4d
BK
4849/*
4850 * Machine/OS name selection pattern
4851 */
4852#define apzNested_Sys_LimitsMachs (const char**)NULL
4853
4854/*
4855 * content selection pattern - do fix if pattern found
4856 */
4857tSCC zNested_Sys_LimitsSelect0[] =
4858 "CHILD_MAX";
4859
4860#define NESTED_SYS_LIMITS_TEST_CT 1
3af556f7 4861static tTestDesc aNested_Sys_LimitsTests[] = {
79589c4d
BK
4862 { TT_EGREP, zNested_Sys_LimitsSelect0, (regex_t*)NULL }, };
4863
4864/*
4865 * Fix Command Arguments for Nested_Sys_Limits
4866 */
6aa1f8c1 4867static const char* apzNested_Sys_LimitsPatch[] = { sed_cmd_z,
27eaa708
BK
4868 "-e", "/CHILD_MAX/s,/\\* Max, Max,",
4869 "-e", "/OPEN_MAX/s,/\\* Max, Max,",
06bbab1b
BK
4870 (char*)NULL };
4871
7270dd8e
KW
4872/* * * * * * * * * * * * * * * * * * * * * * * * * *
4873 *
4874 * Description of Netbsd_C99_Inline_1 fix
4875 */
4876tSCC zNetbsd_C99_Inline_1Name[] =
4877 "netbsd_c99_inline_1";
4878
4879/*
4880 * File name selection pattern
4881 */
4882tSCC zNetbsd_C99_Inline_1List[] =
4883 "signal.h\0";
4884/*
4885 * Machine/OS name selection pattern
4886 */
4887tSCC* apzNetbsd_C99_Inline_1Machs[] = {
4888 "*-*-netbsd*",
4889 (const char*)NULL };
4890
4891/*
4892 * content selection pattern - do fix if pattern found
4893 */
4894tSCC zNetbsd_C99_Inline_1Select0[] =
4895 "extern __inline int";
4896
4897#define NETBSD_C99_INLINE_1_TEST_CT 1
4898static tTestDesc aNetbsd_C99_Inline_1Tests[] = {
4899 { TT_EGREP, zNetbsd_C99_Inline_1Select0, (regex_t*)NULL }, };
4900
4901/*
4902 * Fix Command Arguments for Netbsd_C99_Inline_1
4903 */
4904static const char* apzNetbsd_C99_Inline_1Patch[] = {
4905 "format",
4906 "extern\n\
4907#ifdef __GNUC_STDC_INLINE__\n\
4908__attribute__((__gnu_inline__))\n\
4909#endif\n\
4910__inline int",
4911 (char*)NULL };
4912
63729d84
KW
4913/* * * * * * * * * * * * * * * * * * * * * * * * * *
4914 *
4915 * Description of Netbsd_C99_Inline_2 fix
4916 */
4917tSCC zNetbsd_C99_Inline_2Name[] =
4918 "netbsd_c99_inline_2";
4919
4920/*
4921 * File name selection pattern
4922 */
4923tSCC zNetbsd_C99_Inline_2List[] =
4924 "signal.h\0";
4925/*
4926 * Machine/OS name selection pattern
4927 */
4928tSCC* apzNetbsd_C99_Inline_2Machs[] = {
4929 "*-*-netbsd*",
4930 (const char*)NULL };
4931
4932/*
4933 * content selection pattern - do fix if pattern found
4934 */
4935tSCC zNetbsd_C99_Inline_2Select0[] =
4936 "#define _SIGINLINE extern __inline";
4937
4938#define NETBSD_C99_INLINE_2_TEST_CT 1
4939static tTestDesc aNetbsd_C99_Inline_2Tests[] = {
4940 { TT_EGREP, zNetbsd_C99_Inline_2Select0, (regex_t*)NULL }, };
4941
4942/*
4943 * Fix Command Arguments for Netbsd_C99_Inline_2
4944 */
4945static const char* apzNetbsd_C99_Inline_2Patch[] = {
4946 "format",
4947 "#ifdef __GNUC_STDC_INLINE__\n\
4948#define _SIGINLINE extern __attribute__((__gnu_inline__)) __inline\n\
4949#else\n\
4950%0\n\
4951#endif",
4952 (char*)NULL };
4953
3edc4b23
KW
4954/* * * * * * * * * * * * * * * * * * * * * * * * * *
4955 *
4956 * Description of Netbsd_Extra_Semicolon fix
4957 */
4958tSCC zNetbsd_Extra_SemicolonName[] =
4959 "netbsd_extra_semicolon";
4960
4961/*
4962 * File name selection pattern
4963 */
4964tSCC zNetbsd_Extra_SemicolonList[] =
401be4b6 4965 "sys/cdefs.h\0";
3edc4b23
KW
4966/*
4967 * Machine/OS name selection pattern
4968 */
4969tSCC* apzNetbsd_Extra_SemicolonMachs[] = {
4970 "*-*-netbsd*",
4971 (const char*)NULL };
4972
4973/*
4974 * content selection pattern - do fix if pattern found
4975 */
4976tSCC zNetbsd_Extra_SemicolonSelect0[] =
4977 "#define[ \t]*__END_DECLS[ \t]*};";
4978
4979#define NETBSD_EXTRA_SEMICOLON_TEST_CT 1
4980static tTestDesc aNetbsd_Extra_SemicolonTests[] = {
4981 { TT_EGREP, zNetbsd_Extra_SemicolonSelect0, (regex_t*)NULL }, };
4982
4983/*
4984 * Fix Command Arguments for Netbsd_Extra_Semicolon
4985 */
4986static const char* apzNetbsd_Extra_SemicolonPatch[] = {
4987 "format",
4988 "#define __END_DECLS }",
4989 (char*)NULL };
4990
207bf79d
JM
4991/* * * * * * * * * * * * * * * * * * * * * * * * * *
4992 *
4993 * Description of Newlib_Stdint_1 fix
4994 */
4995tSCC zNewlib_Stdint_1Name[] =
4996 "newlib_stdint_1";
4997
4998/*
4999 * File name selection pattern
5000 */
5001tSCC zNewlib_Stdint_1List[] =
5002 "stdint.h\0";
5003/*
5004 * Machine/OS name selection pattern
5005 */
5006#define apzNewlib_Stdint_1Machs (const char**)NULL
5007
5008/*
5009 * content selection pattern - do fix if pattern found
5010 */
5011tSCC zNewlib_Stdint_1Select0[] =
5012 "@todo - Add support for wint_t types";
5013
5014#define NEWLIB_STDINT_1_TEST_CT 1
5015static tTestDesc aNewlib_Stdint_1Tests[] = {
5016 { TT_EGREP, zNewlib_Stdint_1Select0, (regex_t*)NULL }, };
5017
5018/*
5019 * Fix Command Arguments for Newlib_Stdint_1
5020 */
5021static const char* apzNewlib_Stdint_1Patch[] = { sed_cmd_z,
5022 "-e", "s@#define INT32_MIN.*@#define INT32_MIN (-INT32_MAX - 1)@",
5023 "-e", "s@#define INT32_MAX.*@#define INT32_MAX __INT32_MAX__@",
5024 "-e", "s@#define UINT32_MAX.*@#define UINT32_MAX __UINT32_MAX__@",
5025 "-e", "s@#define INT_LEAST32_MIN.*@#define INT_LEAST32_MIN (-INT_LEAST32_MAX - 1)@",
5026 "-e", "s@#define INT_LEAST32_MAX.*@#define INT_LEAST32_MAX __INT_LEAST32_MAX__@",
5027 "-e", "s@#define UINT_LEAST32_MAX.*@#define UINT_LEAST32_MAX __UINT_LEAST32_MAX__@",
5028 "-e", "s@#define INT_FAST\\([0-9]*\\)_MIN.*@#define INT_FAST\\1_MIN (-INT_FAST\\1_MAX - 1)@",
5029 "-e", "s@#define INT_FAST\\([0-9]*\\)_MAX.*@#define INT_FAST\\1_MAX __INT_FAST\\1_MAX__@",
5030 "-e", "s@#define UINT_FAST\\([0-9]*\\)_MAX.*@#define UINT_FAST\\1_MAX __UINT_FAST\\1_MAX__@",
5031 "-e", "s@#define SIZE_MAX.*@#define SIZE_MAX __SIZE_MAX__@",
5032 "-e", "s@#define PTRDIFF_MIN.*@#define PTRDIFF_MIN (-PTRDIFF_MAX - 1)@",
5033 "-e", "s@#define PTRDIFF_MAX.*@#define PTRDIFF_MAX __PTRDIFF_MAX__@",
5034 "-e", "s@#define UINT8_C.*@#define UINT8_C(c) __UINT8_C(c)@",
5035 "-e", "s@#define UINT16_C.*@#define UINT16_C(c) __UINT16_C(c)@",
5036 (char*)NULL };
5037
5038/* * * * * * * * * * * * * * * * * * * * * * * * * *
5039 *
5040 * Description of Newlib_Stdint_2 fix
5041 */
5042tSCC zNewlib_Stdint_2Name[] =
5043 "newlib_stdint_2";
5044
5045/*
5046 * File name selection pattern
5047 */
5048tSCC zNewlib_Stdint_2List[] =
5049 "stdint.h\0";
5050/*
5051 * Machine/OS name selection pattern
5052 */
5053#define apzNewlib_Stdint_2Machs (const char**)NULL
5054
5055/*
5056 * content selection pattern - do fix if pattern found
5057 */
5058tSCC zNewlib_Stdint_2Select0[] =
5059 "@todo - Add support for wint_t types";
5060
5061#define NEWLIB_STDINT_2_TEST_CT 1
5062static tTestDesc aNewlib_Stdint_2Tests[] = {
5063 { TT_EGREP, zNewlib_Stdint_2Select0, (regex_t*)NULL }, };
5064
5065/*
5066 * Fix Command Arguments for Newlib_Stdint_2
5067 */
5068static const char* apzNewlib_Stdint_2Patch[] = {
5069 "format",
5070 "#define INTMAX_MAX __INTMAX_MAX__\n\
5071#define INTMAX_MIN (-INTMAX_MAX - 1)\n\
5072#define UINTMAX_MAX __UINTMAX_MAX__\n\
5073#define WCHAR_MAX __WCHAR_MAX__\n\
5074#define WCHAR_MIN __WCHAR_MIN__\n\
5075#define WINT_MAX __WINT_MAX__\n\
5076#define WINT_MIN __WINT_MIN__\n\n\
5077%0",
5078 "/\\*\\* Macros for minimum-width integer constant expressions \\*/",
5079 (char*)NULL };
5080
06bbab1b
BK
5081/* * * * * * * * * * * * * * * * * * * * * * * * * *
5082 *
5abc1f74 5083 * Description of Next_Math_Prefix fix
06bbab1b
BK
5084 */
5085tSCC zNext_Math_PrefixName[] =
3be1fb72
ZW
5086 "next_math_prefix";
5087
06bbab1b
BK
5088/*
5089 * File name selection pattern
5090 */
5091tSCC zNext_Math_PrefixList[] =
401be4b6 5092 "ansi/math.h\0";
06bbab1b
BK
5093/*
5094 * Machine/OS name selection pattern
5095 */
5096#define apzNext_Math_PrefixMachs (const char**)NULL
5097
5098/*
be02fa1a 5099 * content selection pattern - do fix if pattern found
06bbab1b
BK
5100 */
5101tSCC zNext_Math_PrefixSelect0[] =
a8228686 5102 "^extern[ \t]+double[ \t]+__const__[ \t]";
06bbab1b
BK
5103
5104#define NEXT_MATH_PREFIX_TEST_CT 1
3af556f7 5105static tTestDesc aNext_Math_PrefixTests[] = {
5abc1f74 5106 { TT_EGREP, zNext_Math_PrefixSelect0, (regex_t*)NULL }, };
06bbab1b
BK
5107
5108/*
5109 * Fix Command Arguments for Next_Math_Prefix
5110 */
3af556f7 5111static const char* apzNext_Math_PrefixPatch[] = {
a8228686
BK
5112 "format",
5113 "extern double %1(",
5114 "^extern[ \t]+double[ \t]+__const__[ \t]+([a-z]+)\\(",
06bbab1b
BK
5115 (char*)NULL };
5116
5117/* * * * * * * * * * * * * * * * * * * * * * * * * *
5118 *
5abc1f74 5119 * Description of Next_Template fix
06bbab1b
BK
5120 */
5121tSCC zNext_TemplateName[] =
3be1fb72
ZW
5122 "next_template";
5123
06bbab1b
BK
5124/*
5125 * File name selection pattern
5126 */
5127tSCC zNext_TemplateList[] =
401be4b6 5128 "bsd/libc.h\0";
06bbab1b
BK
5129/*
5130 * Machine/OS name selection pattern
5131 */
5132#define apzNext_TemplateMachs (const char**)NULL
5133
5134/*
be02fa1a 5135 * content selection pattern - do fix if pattern found
06bbab1b
BK
5136 */
5137tSCC zNext_TemplateSelect0[] =
a8228686 5138 "[ \t]template\\)";
06bbab1b
BK
5139
5140#define NEXT_TEMPLATE_TEST_CT 1
3af556f7 5141static tTestDesc aNext_TemplateTests[] = {
5abc1f74 5142 { TT_EGREP, zNext_TemplateSelect0, (regex_t*)NULL }, };
06bbab1b
BK
5143
5144/*
5145 * Fix Command Arguments for Next_Template
5146 */
3af556f7 5147static const char* apzNext_TemplatePatch[] = {
a8228686
BK
5148 "format",
5149 "(%1)",
5150 "\\(([^)]*)[ \t]template\\)",
06bbab1b
BK
5151 (char*)NULL };
5152
5153/* * * * * * * * * * * * * * * * * * * * * * * * * *
5154 *
5abc1f74 5155 * Description of Next_Volitile fix
06bbab1b
BK
5156 */
5157tSCC zNext_VolitileName[] =
3be1fb72
ZW
5158 "next_volitile";
5159
06bbab1b
BK
5160/*
5161 * File name selection pattern
5162 */
5163tSCC zNext_VolitileList[] =
401be4b6 5164 "ansi/stdlib.h\0";
06bbab1b
BK
5165/*
5166 * Machine/OS name selection pattern
5167 */
5168#define apzNext_VolitileMachs (const char**)NULL
5169
5170/*
be02fa1a 5171 * content selection pattern - do fix if pattern found
06bbab1b
BK
5172 */
5173tSCC zNext_VolitileSelect0[] =
a8228686 5174 "^extern[ \t]+volatile[ \t]+void[ \t]";
06bbab1b
BK
5175
5176#define NEXT_VOLITILE_TEST_CT 1
3af556f7 5177static tTestDesc aNext_VolitileTests[] = {
5abc1f74 5178 { TT_EGREP, zNext_VolitileSelect0, (regex_t*)NULL }, };
06bbab1b
BK
5179
5180/*
5181 * Fix Command Arguments for Next_Volitile
5182 */
3af556f7 5183static const char* apzNext_VolitilePatch[] = {
a8228686
BK
5184 "format",
5185 "extern void %1(",
5186 "^extern[ \t]+volatile[ \t]+void[ \t]+(exit|abort)\\(",
06bbab1b
BK
5187 (char*)NULL };
5188
5189/* * * * * * * * * * * * * * * * * * * * * * * * * *
5190 *
5abc1f74 5191 * Description of Next_Wait_Union fix
06bbab1b
BK
5192 */
5193tSCC zNext_Wait_UnionName[] =
3be1fb72
ZW
5194 "next_wait_union";
5195
06bbab1b
BK
5196/*
5197 * File name selection pattern
5198 */
5199tSCC zNext_Wait_UnionList[] =
401be4b6 5200 "sys/wait.h\0";
06bbab1b
BK
5201/*
5202 * Machine/OS name selection pattern
5203 */
5204#define apzNext_Wait_UnionMachs (const char**)NULL
5205
5206/*
be02fa1a 5207 * content selection pattern - do fix if pattern found
06bbab1b
BK
5208 */
5209tSCC zNext_Wait_UnionSelect0[] =
5210 "wait\\(union wait";
5211
5212#define NEXT_WAIT_UNION_TEST_CT 1
3af556f7 5213static tTestDesc aNext_Wait_UnionTests[] = {
5abc1f74 5214 { TT_EGREP, zNext_Wait_UnionSelect0, (regex_t*)NULL }, };
06bbab1b
BK
5215
5216/*
5217 * Fix Command Arguments for Next_Wait_Union
5218 */
3af556f7 5219static const char* apzNext_Wait_UnionPatch[] = {
cb8d5168
BK
5220 "format",
5221 "wait(void",
06bbab1b
BK
5222 (char*)NULL };
5223
5224/* * * * * * * * * * * * * * * * * * * * * * * * * *
5225 *
5abc1f74 5226 * Description of Nodeent_Syntax fix
06bbab1b
BK
5227 */
5228tSCC zNodeent_SyntaxName[] =
3be1fb72
ZW
5229 "nodeent_syntax";
5230
06bbab1b
BK
5231/*
5232 * File name selection pattern
5233 */
5234tSCC zNodeent_SyntaxList[] =
401be4b6 5235 "netdnet/dnetdb.h\0";
06bbab1b
BK
5236/*
5237 * Machine/OS name selection pattern
5238 */
5239#define apzNodeent_SyntaxMachs (const char**)NULL
cb8d5168
BK
5240
5241/*
5242 * content selection pattern - do fix if pattern found
5243 */
5244tSCC zNodeent_SyntaxSelect0[] =
5245 "char[ \t]*\\*na_addr[ \t]*$";
5246
5247#define NODEENT_SYNTAX_TEST_CT 1
3af556f7 5248static tTestDesc aNodeent_SyntaxTests[] = {
cb8d5168 5249 { TT_EGREP, zNodeent_SyntaxSelect0, (regex_t*)NULL }, };
06bbab1b
BK
5250
5251/*
5252 * Fix Command Arguments for Nodeent_Syntax
5253 */
3af556f7 5254static const char* apzNodeent_SyntaxPatch[] = {
cb8d5168
BK
5255 "format",
5256 "%0;",
06bbab1b
BK
5257 (char*)NULL };
5258
9cb82550
AT
5259/* * * * * * * * * * * * * * * * * * * * * * * * * *
5260 *
5261 * Description of Openbsd_Null_Definition fix
5262 */
5263tSCC zOpenbsd_Null_DefinitionName[] =
5264 "openbsd_null_definition";
5265
5266/*
5267 * File name selection pattern
5268 */
5269tSCC zOpenbsd_Null_DefinitionList[] =
5270 "locale.h\0stddef.h\0stdio.h\0string.h\0time.h\0unistd.h\0wchar.h\0sys/param.h\0";
5271/*
5272 * Machine/OS name selection pattern
5273 */
5274tSCC* apzOpenbsd_Null_DefinitionMachs[] = {
5275 "*-*-openbsd*",
5276 (const char*)NULL };
5277
5278/*
5279 * content selection pattern - do fix if pattern found
5280 */
5281tSCC zOpenbsd_Null_DefinitionSelect0[] =
5282 "__GNUG__";
5283
5284#define OPENBSD_NULL_DEFINITION_TEST_CT 1
5285static tTestDesc aOpenbsd_Null_DefinitionTests[] = {
5286 { TT_EGREP, zOpenbsd_Null_DefinitionSelect0, (regex_t*)NULL }, };
5287
5288/*
5289 * Fix Command Arguments for Openbsd_Null_Definition
5290 */
5291static const char* apzOpenbsd_Null_DefinitionPatch[] = {
5292 "format",
5293 "#ifndef NULL\n\
5294#ifdef __cplusplus\n\
5295#ifdef __GNUG__\n\
5296#define NULL\t__null\n\
5297#else\t /* ! __GNUG__ */\n\
5298#define NULL\t0L\n\
5299#endif\t /* __GNUG__ */\n\
5300#else\t /* ! __cplusplus */\n\
5301#define NULL\t((void *)0)\n\
5302#endif\t /* __cplusplus */\n\
5303#endif\t /* !NULL */",
5304 "^#ifndef[ \t]*NULL\n\
5305^#ifdef[ \t]*__GNUG__\n\
5306^#define[ \t]*NULL[ \t]*__null\n\
5307^#else\n\
5308^#define[ \t]*NULL[ \t]*0L\n\
5309^#endif\n\
5310^#endif",
5311 (char*)NULL };
5312
dc70e81d
JM
5313/* * * * * * * * * * * * * * * * * * * * * * * * * *
5314 *
5315 * Description of Obstack_Lvalue_Cast fix
5316 */
5317tSCC zObstack_Lvalue_CastName[] =
5318 "obstack_lvalue_cast";
5319
5320/*
5321 * File name selection pattern
5322 */
5323tSCC zObstack_Lvalue_CastList[] =
401be4b6 5324 "obstack.h\0";
dc70e81d
JM
5325/*
5326 * Machine/OS name selection pattern
5327 */
5328#define apzObstack_Lvalue_CastMachs (const char**)NULL
5329
5330/*
5331 * content selection pattern - do fix if pattern found
5332 */
5333tSCC zObstack_Lvalue_CastSelect0[] =
5334 "\\*\\(\\(([^()]*)\\*\\)(.*)\\)\\+\\+ = \\(([^()]*)\\)";
5335
5336#define OBSTACK_LVALUE_CAST_TEST_CT 1
5337static tTestDesc aObstack_Lvalue_CastTests[] = {
5338 { TT_EGREP, zObstack_Lvalue_CastSelect0, (regex_t*)NULL }, };
5339
5340/*
5341 * Fix Command Arguments for Obstack_Lvalue_Cast
5342 */
5343static const char* apzObstack_Lvalue_CastPatch[] = {
5344 "format",
5345 "((*((%1*)%2) = (%3)), (%2 += sizeof (%1)))",
5346 (char*)NULL };
5347
261b8381
AT
5348/* * * * * * * * * * * * * * * * * * * * * * * * * *
5349 *
5350 * Description of Openbsd_Va_Start fix
5351 */
5352tSCC zOpenbsd_Va_StartName[] =
5353 "openbsd_va_start";
5354
5355/*
5356 * File name selection pattern
5357 */
5358tSCC zOpenbsd_Va_StartList[] =
5359 "stdarg.h\0";
5360/*
5361 * Machine/OS name selection pattern
5362 */
5363tSCC* apzOpenbsd_Va_StartMachs[] = {
5364 "*-*-openbsd*",
5365 (const char*)NULL };
5366
5367/*
5368 * content selection pattern - do fix if pattern found
5369 */
5370tSCC zOpenbsd_Va_StartSelect0[] =
5371 "__builtin_stdarg_start";
5372
5373#define OPENBSD_VA_START_TEST_CT 1
5374static tTestDesc aOpenbsd_Va_StartTests[] = {
5375 { TT_EGREP, zOpenbsd_Va_StartSelect0, (regex_t*)NULL }, };
5376
5377/*
5378 * Fix Command Arguments for Openbsd_Va_Start
5379 */
5380static const char* apzOpenbsd_Va_StartPatch[] = {
5381 "format",
5382 "__builtin_va_start",
5383 (char*)NULL };
5384
06bbab1b
BK
5385/* * * * * * * * * * * * * * * * * * * * * * * * * *
5386 *
5abc1f74 5387 * Description of Osf_Namespace_A fix
06bbab1b
BK
5388 */
5389tSCC zOsf_Namespace_AName[] =
3be1fb72
ZW
5390 "osf_namespace_a";
5391
06bbab1b
BK
5392/*
5393 * File name selection pattern
5394 */
5395tSCC zOsf_Namespace_AList[] =
401be4b6 5396 "reg_types.h\0sys/lc_core.h\0";
06bbab1b
BK
5397/*
5398 * Machine/OS name selection pattern
5399 */
5400#define apzOsf_Namespace_AMachs (const char**)NULL
5401
5402/*
be02fa1a 5403 * perform the 'test' shell command - do fix on success
06bbab1b
BK
5404 */
5405tSCC zOsf_Namespace_ATest0[] =
48bd9529
BK
5406 " -r reg_types.h";
5407tSCC zOsf_Namespace_ATest1[] =
5408 " -r sys/lc_core.h";
5409tSCC zOsf_Namespace_ATest2[] =
5410 " -n \"`grep '} regex_t;' reg_types.h`\"";
5411tSCC zOsf_Namespace_ATest3[] =
5412 " -z \"`grep __regex_t regex.h`\"";
5413
5414#define OSF_NAMESPACE_A_TEST_CT 4
3af556f7 5415static tTestDesc aOsf_Namespace_ATests[] = {
5abc1f74
BK
5416 { TT_TEST, zOsf_Namespace_ATest0, 0 /* unused */ },
5417 { TT_TEST, zOsf_Namespace_ATest1, 0 /* unused */ },
5418 { TT_TEST, zOsf_Namespace_ATest2, 0 /* unused */ },
5419 { TT_TEST, zOsf_Namespace_ATest3, 0 /* unused */ }, };
06bbab1b
BK
5420
5421/*
5422 * Fix Command Arguments for Osf_Namespace_A
5423 */
3af556f7 5424static const char* apzOsf_Namespace_APatch[] = {
cb8d5168
BK
5425 "format",
5426 "__%0",
ef6df611 5427 "reg(ex|off|match)_t",
06bbab1b
BK
5428 (char*)NULL };
5429
5430/* * * * * * * * * * * * * * * * * * * * * * * * * *
5431 *
cb8d5168 5432 * Description of Osf_Namespace_C fix
06bbab1b 5433 */
cb8d5168
BK
5434tSCC zOsf_Namespace_CName[] =
5435 "osf_namespace_c";
3be1fb72 5436
06bbab1b
BK
5437/*
5438 * File name selection pattern
5439 */
cb8d5168 5440tSCC zOsf_Namespace_CList[] =
401be4b6 5441 "regex.h\0";
06bbab1b
BK
5442/*
5443 * Machine/OS name selection pattern
5444 */
cb8d5168
BK
5445#define apzOsf_Namespace_CMachs (const char**)NULL
5446
5447/*
5448 * content selection pattern - do fix if pattern found
5449 */
5450tSCC zOsf_Namespace_CSelect0[] =
5451 "#include <reg_types.h>.*";
06bbab1b
BK
5452
5453/*
be02fa1a 5454 * perform the 'test' shell command - do fix on success
06bbab1b 5455 */
cb8d5168 5456tSCC zOsf_Namespace_CTest0[] =
48bd9529 5457 " -r reg_types.h";
cb8d5168 5458tSCC zOsf_Namespace_CTest1[] =
48bd9529 5459 " -r sys/lc_core.h";
cb8d5168 5460tSCC zOsf_Namespace_CTest2[] =
48bd9529 5461 " -n \"`grep '} regex_t;' reg_types.h`\"";
cb8d5168 5462tSCC zOsf_Namespace_CTest3[] =
48bd9529
BK
5463 " -z \"`grep __regex_t regex.h`\"";
5464
cb8d5168 5465#define OSF_NAMESPACE_C_TEST_CT 5
3af556f7 5466static tTestDesc aOsf_Namespace_CTests[] = {
cb8d5168
BK
5467 { TT_TEST, zOsf_Namespace_CTest0, 0 /* unused */ },
5468 { TT_TEST, zOsf_Namespace_CTest1, 0 /* unused */ },
5469 { TT_TEST, zOsf_Namespace_CTest2, 0 /* unused */ },
5470 { TT_TEST, zOsf_Namespace_CTest3, 0 /* unused */ },
5471 { TT_EGREP, zOsf_Namespace_CSelect0, (regex_t*)NULL }, };
06bbab1b
BK
5472
5473/*
cb8d5168 5474 * Fix Command Arguments for Osf_Namespace_C
06bbab1b 5475 */
3af556f7 5476static const char* apzOsf_Namespace_CPatch[] = {
cb8d5168
BK
5477 "format",
5478 "%0\n\
5479typedef __regex_t\tregex_t;\n\
5480typedef __regoff_t\tregoff_t;\n\
5481typedef __regmatch_t\tregmatch_t;",
06bbab1b
BK
5482 (char*)NULL };
5483
14bfd7c7
RG
5484/* * * * * * * * * * * * * * * * * * * * * * * * * *
5485 *
5486 * Description of Pthread_Incomplete_Struct_Argument fix
5487 */
5488tSCC zPthread_Incomplete_Struct_ArgumentName[] =
5489 "pthread_incomplete_struct_argument";
5490
5491/*
5492 * File name selection pattern
5493 */
5494tSCC zPthread_Incomplete_Struct_ArgumentList[] =
401be4b6 5495 "pthread.h\0";
14bfd7c7
RG
5496/*
5497 * Machine/OS name selection pattern
5498 */
5499#define apzPthread_Incomplete_Struct_ArgumentMachs (const char**)NULL
5500
5501/*
5502 * content selection pattern - do fix if pattern found
5503 */
5504tSCC zPthread_Incomplete_Struct_ArgumentSelect0[] =
5505 "struct __jmp_buf_tag";
5506
5507#define PTHREAD_INCOMPLETE_STRUCT_ARGUMENT_TEST_CT 1
5508static tTestDesc aPthread_Incomplete_Struct_ArgumentTests[] = {
5509 { TT_EGREP, zPthread_Incomplete_Struct_ArgumentSelect0, (regex_t*)NULL }, };
5510
5511/*
5512 * Fix Command Arguments for Pthread_Incomplete_Struct_Argument
5513 */
5514static const char* apzPthread_Incomplete_Struct_ArgumentPatch[] = {
5515 "format",
5516 "%1 *%2%3",
5517 "^(extern int __sigsetjmp \\(struct __jmp_buf_tag) (__env)\\[1\\](.*)$",
5518 (char*)NULL };
5519
06bbab1b
BK
5520/* * * * * * * * * * * * * * * * * * * * * * * * * *
5521 *
5abc1f74 5522 * Description of Read_Ret_Type fix
d71ef9d4
BK
5523 */
5524tSCC zRead_Ret_TypeName[] =
3be1fb72
ZW
5525 "read_ret_type";
5526
d71ef9d4
BK
5527/*
5528 * File name selection pattern
5529 */
5530tSCC zRead_Ret_TypeList[] =
401be4b6 5531 "stdio.h\0";
d71ef9d4
BK
5532/*
5533 * Machine/OS name selection pattern
5534 */
5535#define apzRead_Ret_TypeMachs (const char**)NULL
5536
5537/*
5538 * content selection pattern - do fix if pattern found
5539 */
5540tSCC zRead_Ret_TypeSelect0[] =
5541 "extern int\t.*, fread\\(\\), fwrite\\(\\)";
5542
5543#define READ_RET_TYPE_TEST_CT 1
3af556f7 5544static tTestDesc aRead_Ret_TypeTests[] = {
5abc1f74 5545 { TT_EGREP, zRead_Ret_TypeSelect0, (regex_t*)NULL }, };
d71ef9d4
BK
5546
5547/*
5548 * Fix Command Arguments for Read_Ret_Type
5549 */
3af556f7 5550static const char* apzRead_Ret_TypePatch[] = {
cb8d5168
BK
5551 "format",
5552 "extern unsigned int fread(), fwrite();\n\
5553%1%2",
5554 "(extern int\t.*), fread\\(\\), fwrite\\(\\)(.*)",
d71ef9d4
BK
5555 (char*)NULL };
5556
6ed6a1b9
JM
5557/* * * * * * * * * * * * * * * * * * * * * * * * * *
5558 *
5559 * Description of Rpc_Xdr_Lvalue_Cast_A fix
5560 */
5561tSCC zRpc_Xdr_Lvalue_Cast_AName[] =
5562 "rpc_xdr_lvalue_cast_a";
5563
5564/*
5565 * File name selection pattern
5566 */
5567tSCC zRpc_Xdr_Lvalue_Cast_AList[] =
401be4b6 5568 "rpc/xdr.h\0";
6ed6a1b9
JM
5569/*
5570 * Machine/OS name selection pattern
5571 */
5572#define apzRpc_Xdr_Lvalue_Cast_AMachs (const char**)NULL
5573
5574/*
5575 * content selection pattern - do fix if pattern found
5576 */
5577tSCC zRpc_Xdr_Lvalue_Cast_ASelect0[] =
5578 "#define[ \t]*IXDR_GET_LONG.*\\\\\n\
5579.*__extension__.*";
5580
5581#define RPC_XDR_LVALUE_CAST_A_TEST_CT 1
5582static tTestDesc aRpc_Xdr_Lvalue_Cast_ATests[] = {
5583 { TT_EGREP, zRpc_Xdr_Lvalue_Cast_ASelect0, (regex_t*)NULL }, };
5584
5585/*
5586 * Fix Command Arguments for Rpc_Xdr_Lvalue_Cast_A
5587 */
5588static const char* apzRpc_Xdr_Lvalue_Cast_APatch[] = {
5589 "format",
5590 "#define IXDR_GET_LONG(buf) ((long)IXDR_GET_U_INT32(buf))",
5591 (char*)NULL };
5592
5593/* * * * * * * * * * * * * * * * * * * * * * * * * *
5594 *
5595 * Description of Rpc_Xdr_Lvalue_Cast_B fix
5596 */
5597tSCC zRpc_Xdr_Lvalue_Cast_BName[] =
5598 "rpc_xdr_lvalue_cast_b";
5599
5600/*
5601 * File name selection pattern
5602 */
5603tSCC zRpc_Xdr_Lvalue_Cast_BList[] =
401be4b6 5604 "rpc/xdr.h\0";
6ed6a1b9
JM
5605/*
5606 * Machine/OS name selection pattern
5607 */
5608#define apzRpc_Xdr_Lvalue_Cast_BMachs (const char**)NULL
5609
5610/*
5611 * content selection pattern - do fix if pattern found
5612 */
5613tSCC zRpc_Xdr_Lvalue_Cast_BSelect0[] =
5614 "#define[ \t]*IXDR_PUT_LONG.*\\\\\n\
5615.*__extension__.*";
5616
5617#define RPC_XDR_LVALUE_CAST_B_TEST_CT 1
5618static tTestDesc aRpc_Xdr_Lvalue_Cast_BTests[] = {
5619 { TT_EGREP, zRpc_Xdr_Lvalue_Cast_BSelect0, (regex_t*)NULL }, };
5620
5621/*
5622 * Fix Command Arguments for Rpc_Xdr_Lvalue_Cast_B
5623 */
5624static const char* apzRpc_Xdr_Lvalue_Cast_BPatch[] = {
5625 "format",
5626 "#define IXDR_PUT_LONG(buf, v) ((long)IXDR_PUT_INT32(buf, (long)(v)))",
5627 (char*)NULL };
5628
d71ef9d4
BK
5629/* * * * * * * * * * * * * * * * * * * * * * * * * *
5630 *
5abc1f74 5631 * Description of Rs6000_Double fix
06bbab1b
BK
5632 */
5633tSCC zRs6000_DoubleName[] =
3be1fb72
ZW
5634 "rs6000_double";
5635
06bbab1b
BK
5636/*
5637 * File name selection pattern
5638 */
5639tSCC zRs6000_DoubleList[] =
401be4b6 5640 "math.h\0";
06bbab1b
BK
5641/*
5642 * Machine/OS name selection pattern
5643 */
5644#define apzRs6000_DoubleMachs (const char**)NULL
5645
5646/*
be02fa1a 5647 * content selection pattern - do fix if pattern found
06bbab1b
BK
5648 */
5649tSCC zRs6000_DoubleSelect0[] =
5650 "[^a-zA-Z_]class\\(";
5651
5652#define RS6000_DOUBLE_TEST_CT 1
3af556f7 5653static tTestDesc aRs6000_DoubleTests[] = {
5abc1f74 5654 { TT_EGREP, zRs6000_DoubleSelect0, (regex_t*)NULL }, };
06bbab1b
BK
5655
5656/*
5657 * Fix Command Arguments for Rs6000_Double
5658 */
3af556f7 5659static const char* apzRs6000_DoublePatch[] = {
cb8d5168
BK
5660 "format",
5661 "#ifndef __cplusplus\n\
5662%0\n\
5663#endif",
5664 "^.*[^a-zA-Z_]class\\(.*",
06bbab1b
BK
5665 (char*)NULL };
5666
5667/* * * * * * * * * * * * * * * * * * * * * * * * * *
5668 *
5abc1f74 5669 * Description of Rs6000_Fchmod fix
06bbab1b
BK
5670 */
5671tSCC zRs6000_FchmodName[] =
3be1fb72
ZW
5672 "rs6000_fchmod";
5673
06bbab1b
BK
5674/*
5675 * File name selection pattern
5676 */
5677tSCC zRs6000_FchmodList[] =
401be4b6 5678 "sys/stat.h\0";
06bbab1b
BK
5679/*
5680 * Machine/OS name selection pattern
5681 */
5682#define apzRs6000_FchmodMachs (const char**)NULL
5683
5684/*
be02fa1a 5685 * content selection pattern - do fix if pattern found
06bbab1b
BK
5686 */
5687tSCC zRs6000_FchmodSelect0[] =
cb8d5168 5688 "fchmod\\(char \\*";
06bbab1b
BK
5689
5690#define RS6000_FCHMOD_TEST_CT 1
3af556f7 5691static tTestDesc aRs6000_FchmodTests[] = {
5abc1f74 5692 { TT_EGREP, zRs6000_FchmodSelect0, (regex_t*)NULL }, };
06bbab1b
BK
5693
5694/*
5695 * Fix Command Arguments for Rs6000_Fchmod
5696 */
3af556f7 5697static const char* apzRs6000_FchmodPatch[] = {
cb8d5168
BK
5698 "format",
5699 "fchmod(int",
06bbab1b
BK
5700 (char*)NULL };
5701
5702/* * * * * * * * * * * * * * * * * * * * * * * * * *
5703 *
5abc1f74 5704 * Description of Rs6000_Param fix
06bbab1b
BK
5705 */
5706tSCC zRs6000_ParamName[] =
3be1fb72
ZW
5707 "rs6000_param";
5708
06bbab1b
BK
5709/*
5710 * File name selection pattern
5711 */
5712tSCC zRs6000_ParamList[] =
401be4b6 5713 "stdio.h\0unistd.h\0";
06bbab1b
BK
5714/*
5715 * Machine/OS name selection pattern
5716 */
5717#define apzRs6000_ParamMachs (const char**)NULL
d7eb5a45
ZW
5718
5719/*
5720 * content selection pattern - do fix if pattern found
5721 */
5722tSCC zRs6000_ParamSelect0[] =
cb8d5168 5723 "rename\\(const char \\*old, const char \\*new\\)";
d7eb5a45
ZW
5724
5725#define RS6000_PARAM_TEST_CT 1
3af556f7 5726static tTestDesc aRs6000_ParamTests[] = {
d7eb5a45 5727 { TT_EGREP, zRs6000_ParamSelect0, (regex_t*)NULL }, };
06bbab1b
BK
5728
5729/*
5730 * Fix Command Arguments for Rs6000_Param
5731 */
3af556f7 5732static const char* apzRs6000_ParamPatch[] = {
cb8d5168
BK
5733 "format",
5734 "rename(const char *_old, const char *_new)",
06bbab1b
BK
5735 (char*)NULL };
5736
de0656cf
KJ
5737/* * * * * * * * * * * * * * * * * * * * * * * * * *
5738 *
5739 * Description of Sco_Math fix
5740 */
5741tSCC zSco_MathName[] =
5742 "sco_math";
5743
5744/*
5745 * File name selection pattern
5746 */
5747tSCC zSco_MathList[] =
401be4b6 5748 "math.h\0*/math.h\0";
de0656cf
KJ
5749/*
5750 * Machine/OS name selection pattern
5751 */
5752#define apzSco_MathMachs (const char**)NULL
5753
5754/*
5755 * content selection pattern - do fix if pattern found
5756 */
5757tSCC zSco_MathSelect0[] =
5758 "inline double abs";
5759
492d5b4f
JM
5760/*
5761 * content bypass pattern - skip fix if pattern found
5762 */
5763tSCC zSco_MathBypass0[] =
5764 "__GNUG__";
5765
5766#define SCO_MATH_TEST_CT 2
de0656cf 5767static tTestDesc aSco_MathTests[] = {
492d5b4f 5768 { TT_NEGREP, zSco_MathBypass0, (regex_t*)NULL },
de0656cf
KJ
5769 { TT_EGREP, zSco_MathSelect0, (regex_t*)NULL }, };
5770
5771/*
5772 * Fix Command Arguments for Sco_Math
5773 */
6aa1f8c1 5774static const char* apzSco_MathPatch[] = { sed_cmd_z,
de0656cf
KJ
5775 "-e", "/#define.*__fp_class(a) \\\\/i\\\n\
5776#ifndef __GNUC__\n",
5777 "-e", "/.*__builtin_generic/a\\\n\
5778#else\\\n\
5779#define __fp_class(a) \\\\\\\n\
5780 __builtin_choose_expr(__builtin_types_compatible_p(typeof(a),long double),\\\\\\\n\
5781 __fpclassifyl(a), \\\\\\\n\
5782 __builtin_choose_expr(__builtin_types_compatible_p(typeof(a), float), \\\\\\\n\
5783 __fpclassifyf(a),__fpclassify(a)))\\\n\
5784#endif",
5785 "-e", "/extern \"C\\+\\+\"/N;/inline double abs/i\\\n\
5786#ifndef __GNUC__\n",
5787 "-e", "/inline long double trunc/N;/inline long double trunc.*}.*extern \"C\\+\\+\"/a\\\n\
5788#endif /* ! __GNUC__ */",
5789 (char*)NULL };
5790
925a4487
EB
5791/* * * * * * * * * * * * * * * * * * * * * * * * * *
5792 *
5793 * Description of Solaris_Math_1 fix
5794 */
5795tSCC zSolaris_Math_1Name[] =
5796 "solaris_math_1";
5797
5798/*
5799 * File name selection pattern
5800 */
5801tSCC zSolaris_Math_1List[] =
401be4b6 5802 "iso/math_c99.h\0";
925a4487
EB
5803/*
5804 * Machine/OS name selection pattern
5805 */
5806#define apzSolaris_Math_1Machs (const char**)NULL
5807
5808/*
5809 * content selection pattern - do fix if pattern found
5810 */
5811tSCC zSolaris_Math_1Select0[] =
5812 "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
5813
5814/*
5815 * content bypass pattern - skip fix if pattern found
5816 */
5817tSCC zSolaris_Math_1Bypass0[] =
5818 "__GNUC__";
5819
5820#define SOLARIS_MATH_1_TEST_CT 2
5821static tTestDesc aSolaris_Math_1Tests[] = {
5822 { TT_NEGREP, zSolaris_Math_1Bypass0, (regex_t*)NULL },
5823 { TT_EGREP, zSolaris_Math_1Select0, (regex_t*)NULL }, };
5824
5825/*
5826 * Fix Command Arguments for Solaris_Math_1
5827 */
5828static const char* apzSolaris_Math_1Patch[] = {
5829 "format",
5830 "#define\tHUGE_VA%1\t(__builtin_huge_va%2())",
5831 "^#define[ \t]+HUGE_VA([LF]+)[ \t]+__builtin_huge_va([lf]+)",
5832 (char*)NULL };
5833
5834/* * * * * * * * * * * * * * * * * * * * * * * * * *
5835 *
5836 * Description of Solaris_Math_2 fix
5837 */
5838tSCC zSolaris_Math_2Name[] =
5839 "solaris_math_2";
5840
5841/*
5842 * File name selection pattern
5843 */
5844tSCC zSolaris_Math_2List[] =
401be4b6 5845 "iso/math_c99.h\0";
925a4487
EB
5846/*
5847 * Machine/OS name selection pattern
5848 */
5849#define apzSolaris_Math_2Machs (const char**)NULL
5850
5851/*
5852 * content selection pattern - do fix if pattern found
5853 */
5854tSCC zSolaris_Math_2Select0[] =
5855 "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
5856
5857/*
5858 * content bypass pattern - skip fix if pattern found
5859 */
5860tSCC zSolaris_Math_2Bypass0[] =
5861 "__GNUC__";
5862
5863#define SOLARIS_MATH_2_TEST_CT 2
5864static tTestDesc aSolaris_Math_2Tests[] = {
5865 { TT_NEGREP, zSolaris_Math_2Bypass0, (regex_t*)NULL },
5866 { TT_EGREP, zSolaris_Math_2Select0, (regex_t*)NULL }, };
5867
5868/*
5869 * Fix Command Arguments for Solaris_Math_2
5870 */
5871static const char* apzSolaris_Math_2Patch[] = {
5872 "format",
5873 "#define\tINFINITY\t(__builtin_inff())",
5874 "^#define[ \t]+INFINITY[ \t]+__builtin_infinity",
5875 (char*)NULL };
5876
5877/* * * * * * * * * * * * * * * * * * * * * * * * * *
5878 *
5879 * Description of Solaris_Math_3 fix
5880 */
5881tSCC zSolaris_Math_3Name[] =
5882 "solaris_math_3";
5883
5884/*
5885 * File name selection pattern
5886 */
5887tSCC zSolaris_Math_3List[] =
401be4b6 5888 "iso/math_c99.h\0";
925a4487
EB
5889/*
5890 * Machine/OS name selection pattern
5891 */
5892#define apzSolaris_Math_3Machs (const char**)NULL
5893
5894/*
5895 * content selection pattern - do fix if pattern found
5896 */
5897tSCC zSolaris_Math_3Select0[] =
5898 "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
5899
5900/*
5901 * content bypass pattern - skip fix if pattern found
5902 */
5903tSCC zSolaris_Math_3Bypass0[] =
5904 "__GNUC__";
5905
5906#define SOLARIS_MATH_3_TEST_CT 2
5907static tTestDesc aSolaris_Math_3Tests[] = {
5908 { TT_NEGREP, zSolaris_Math_3Bypass0, (regex_t*)NULL },
5909 { TT_EGREP, zSolaris_Math_3Select0, (regex_t*)NULL }, };
5910
5911/*
5912 * Fix Command Arguments for Solaris_Math_3
5913 */
5914static const char* apzSolaris_Math_3Patch[] = {
5915 "format",
5916 "#define\tNAN\t\t(__builtin_nanf(\"\"))",
5917 "^#define[ \t]+NAN[ \t]+__builtin_nan",
5918 (char*)NULL };
5919
5920/* * * * * * * * * * * * * * * * * * * * * * * * * *
5921 *
5922 * Description of Solaris_Math_4 fix
5923 */
5924tSCC zSolaris_Math_4Name[] =
5925 "solaris_math_4";
5926
5927/*
5928 * File name selection pattern
5929 */
5930tSCC zSolaris_Math_4List[] =
401be4b6 5931 "iso/math_c99.h\0";
925a4487
EB
5932/*
5933 * Machine/OS name selection pattern
5934 */
5935#define apzSolaris_Math_4Machs (const char**)NULL
5936
5937/*
5938 * content selection pattern - do fix if pattern found
5939 */
5940tSCC zSolaris_Math_4Select0[] =
5941 "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
5942
5943/*
5944 * content bypass pattern - skip fix if pattern found
5945 */
5946tSCC zSolaris_Math_4Bypass0[] =
5947 "__GNUC__";
5948
5949#define SOLARIS_MATH_4_TEST_CT 2
5950static tTestDesc aSolaris_Math_4Tests[] = {
5951 { TT_NEGREP, zSolaris_Math_4Bypass0, (regex_t*)NULL },
5952 { TT_EGREP, zSolaris_Math_4Select0, (regex_t*)NULL }, };
5953
5954/*
5955 * Fix Command Arguments for Solaris_Math_4
5956 */
5957static const char* apzSolaris_Math_4Patch[] = {
5958 "format",
5959 "#define\tfpclassify(x) \\\n\
7de4b37e 5960 __builtin_fpclassify(FP_NAN, FP_INFINITE, FP_NORMAL, FP_SUBNORMAL, FP_ZERO, (x))",
925a4487
EB
5961 "^#define[ \t]+fpclassify\\(x\\)[ \t]+__builtin_fpclassify\\(x\\)",
5962 (char*)NULL };
5963
925a4487
EB
5964/* * * * * * * * * * * * * * * * * * * * * * * * * *
5965 *
5966 * Description of Solaris_Math_8 fix
5967 */
5968tSCC zSolaris_Math_8Name[] =
5969 "solaris_math_8";
5970
5971/*
5972 * File name selection pattern
5973 */
5974tSCC zSolaris_Math_8List[] =
401be4b6 5975 "iso/math_c99.h\0";
925a4487
EB
5976/*
5977 * Machine/OS name selection pattern
5978 */
5979#define apzSolaris_Math_8Machs (const char**)NULL
5980
5981/*
5982 * content selection pattern - do fix if pattern found
5983 */
5984tSCC zSolaris_Math_8Select0[] =
5985 "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
5986
5987/*
5988 * content bypass pattern - skip fix if pattern found
5989 */
5990tSCC zSolaris_Math_8Bypass0[] =
5991 "__GNUC__";
5992
5993#define SOLARIS_MATH_8_TEST_CT 2
5994static tTestDesc aSolaris_Math_8Tests[] = {
5995 { TT_NEGREP, zSolaris_Math_8Bypass0, (regex_t*)NULL },
5996 { TT_EGREP, zSolaris_Math_8Select0, (regex_t*)NULL }, };
5997
5998/*
5999 * Fix Command Arguments for Solaris_Math_8
6000 */
6001static const char* apzSolaris_Math_8Patch[] = {
6002 "format",
6003 "#define\tsignbit(x)\t(sizeof(x) == sizeof(float) \\\n\
6004\t\t\t ? __builtin_signbitf(x) \\\n\
6005\t\t\t : sizeof(x) == sizeof(long double) \\\n\
6006\t\t\t ? __builtin_signbitl(x) \\\n\
6007\t\t\t : __builtin_signbit(x))",
6008 "^#define[ \t]+signbit\\(x\\)[ \t]+__builtin_signbit\\(x\\)",
6009 (char*)NULL };
6010
6011/* * * * * * * * * * * * * * * * * * * * * * * * * *
6012 *
6013 * Description of Solaris_Math_9 fix
6014 */
6015tSCC zSolaris_Math_9Name[] =
6016 "solaris_math_9";
6017
6018/*
6019 * File name selection pattern
6020 */
6021tSCC zSolaris_Math_9List[] =
401be4b6 6022 "iso/math_c99.h\0";
925a4487
EB
6023/*
6024 * Machine/OS name selection pattern
6025 */
6026#define apzSolaris_Math_9Machs (const char**)NULL
6027
6028/*
6029 * content selection pattern - do fix if pattern found
6030 */
6031tSCC zSolaris_Math_9Select0[] =
6032 "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
6033
6034/*
6035 * content bypass pattern - skip fix if pattern found
6036 */
6037tSCC zSolaris_Math_9Bypass0[] =
6038 "__GNUC__";
6039
6040#define SOLARIS_MATH_9_TEST_CT 2
6041static tTestDesc aSolaris_Math_9Tests[] = {
6042 { TT_NEGREP, zSolaris_Math_9Bypass0, (regex_t*)NULL },
6043 { TT_EGREP, zSolaris_Math_9Select0, (regex_t*)NULL }, };
6044
6045/*
6046 * Fix Command Arguments for Solaris_Math_9
6047 */
6048static const char* apzSolaris_Math_9Patch[] = {
6049 "format",
6050 "#define\t%1(x, y)%2__builtin_%1(x, y)",
6051 "^#define[ \t]+([a-z]+)\\(x, y\\)([ \t]+)\\(\\(x\\) __builtin_[a-z]+\\(y\\)\\)",
6052 (char*)NULL };
6053
c951ae40
KG
6054/* * * * * * * * * * * * * * * * * * * * * * * * * *
6055 *
6056 * Description of Solaris_Math_10 fix
6057 */
6058tSCC zSolaris_Math_10Name[] =
6059 "solaris_math_10";
6060
6061/*
6062 * File name selection pattern
6063 */
6064tSCC zSolaris_Math_10List[] =
6065 "iso/math_c99.h\0";
6066/*
6067 * Machine/OS name selection pattern
6068 */
6069#define apzSolaris_Math_10Machs (const char**)NULL
6070
6071/*
6072 * content selection pattern - do fix if pattern found
6073 */
6074tSCC zSolaris_Math_10Select0[] =
6075 "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
6076
6077#define SOLARIS_MATH_10_TEST_CT 1
6078static tTestDesc aSolaris_Math_10Tests[] = {
6079 { TT_EGREP, zSolaris_Math_10Select0, (regex_t*)NULL }, };
6080
6081/*
6082 * Fix Command Arguments for Solaris_Math_10
6083 */
6084static const char* apzSolaris_Math_10Patch[] = {
6085 "format",
6086 "#define\tisinf(x) __builtin_isinf(x)",
6087 "^#define[ \t]+isinf\\(x\\)[ \t]+__extension__\\([ \t]*\\\\\n\
6088[ \t]*\\{[ \t]*__typeof\\(x\\)[ \t]*__x_i[ \t]*=[ \t]*\\(x\\);[ \t]*\\\\\n\
6089[ \t]*__x_i[ \t]*==[ \t]*\\(__typeof\\(__x_i\\)\\)[ \t]*INFINITY[ \t]*\\|\\|[ \t]*\\\\\n\
6090[ \t]*__x_i[ \t]*==[ \t]*\\(__typeof\\(__x_i\\)\\)[ \t]*\\(-INFINITY\\);[ \t]*\\}\\)",
6091 (char*)NULL };
6092
7a9cdb10
DD
6093/* * * * * * * * * * * * * * * * * * * * * * * * * *
6094 *
6095 * Description of Solaris_Mutex_Init_2 fix
6096 */
6097tSCC zSolaris_Mutex_Init_2Name[] =
6098 "solaris_mutex_init_2";
6099
6100/*
6101 * File name selection pattern
6102 */
6103tSCC zSolaris_Mutex_Init_2List[] =
401be4b6 6104 "pthread.h\0";
7a9cdb10
DD
6105/*
6106 * Machine/OS name selection pattern
6107 */
a77d42cf
KG
6108tSCC* apzSolaris_Mutex_Init_2Machs[] = {
6109 "*-*-solaris2.[0-9]",
6110 "*-*-solaris2.[0-9][!0-9]*",
6111 (const char*)NULL };
7a9cdb10
DD
6112
6113/*
6114 * content selection pattern - do fix if pattern found
6115 */
6116tSCC zSolaris_Mutex_Init_2Select0[] =
eb559363 6117 "@\\(#\\)pthread.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
a26c3bb5 6118
7a9cdb10
DD
6119#define SOLARIS_MUTEX_INIT_2_TEST_CT 1
6120static tTestDesc aSolaris_Mutex_Init_2Tests[] = {
6121 { TT_EGREP, zSolaris_Mutex_Init_2Select0, (regex_t*)NULL }, };
6ee71e49
BK
6122
6123/*
7a9cdb10 6124 * Fix Command Arguments for Solaris_Mutex_Init_2
6ee71e49 6125 */
7a9cdb10 6126static const char* apzSolaris_Mutex_Init_2Patch[] = {
6ee71e49 6127 "format",
eb559363
BK
6128 "#if __STDC__ - 0 == 0 && !defined(_NO_LONGLONG)\n\
6129%0\n\
6130#else\n\
a77d42cf 6131%1, {0}}%4\n\
eb559363 6132#endif",
a77d42cf
KG
6133 "(^#define[ \t]+PTHREAD_(MUTEX|COND)_INITIALIZER[ \t]+(|/*.**/[ \t]*\\\\\n\
6134[ \t]*)\\{.*),[ \t]*0\\}(|[ \t].*)$",
6ee71e49
BK
6135 (char*)NULL };
6136
2b655a0a
KG
6137/* * * * * * * * * * * * * * * * * * * * * * * * * *
6138 *
6139 * Description of Solaris_Rwlock_Init_1 fix
6140 */
6141tSCC zSolaris_Rwlock_Init_1Name[] =
6142 "solaris_rwlock_init_1";
6143
6144/*
6145 * File name selection pattern
6146 */
6147tSCC zSolaris_Rwlock_Init_1List[] =
401be4b6 6148 "pthread.h\0";
2b655a0a
KG
6149/*
6150 * Machine/OS name selection pattern
6151 */
6152tSCC* apzSolaris_Rwlock_Init_1Machs[] = {
6153 "*-*-solaris*",
6154 (const char*)NULL };
6155
6156/*
6157 * content selection pattern - do fix if pattern found
6158 */
6159tSCC zSolaris_Rwlock_Init_1Select0[] =
6160 "@\\(#\\)pthread.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
6161
6162#define SOLARIS_RWLOCK_INIT_1_TEST_CT 1
6163static tTestDesc aSolaris_Rwlock_Init_1Tests[] = {
6164 { TT_EGREP, zSolaris_Rwlock_Init_1Select0, (regex_t*)NULL }, };
6165
6166/*
6167 * Fix Command Arguments for Solaris_Rwlock_Init_1
6168 */
6169static const char* apzSolaris_Rwlock_Init_1Patch[] = {
6170 "format",
6171 "#if __STDC__ - 0 == 0 && !defined(_NO_LONGLONG)\n\
6172%0\n\
6173#else\n\
6174%1{0, 0, 0, {{0}, {0}, {0}}, {{0}, {0}}, {{0}, {0}}}\n\
6175#endif",
6176 "(^#define[ \t]+PTHREAD_RWLOCK_INITIALIZER[ \t]+)\\{0, 0, 0, \\{0, 0, 0\\}, \\{0, 0\\}, \\{0, 0\\}\\}[ \t]*$",
6177 (char*)NULL };
6178
6179/* * * * * * * * * * * * * * * * * * * * * * * * * *
6180 *
6181 * Description of Solaris_Once_Init_1 fix
6182 */
6183tSCC zSolaris_Once_Init_1Name[] =
6184 "solaris_once_init_1";
6185
6186/*
6187 * File name selection pattern
6188 */
6189tSCC zSolaris_Once_Init_1List[] =
401be4b6 6190 "pthread.h\0";
2b655a0a
KG
6191/*
6192 * Machine/OS name selection pattern
6193 */
6194tSCC* apzSolaris_Once_Init_1Machs[] = {
6195 "*-*-solaris*",
6196 (const char*)NULL };
6197
6198/*
6199 * content selection pattern - do fix if pattern found
6200 */
6201tSCC zSolaris_Once_Init_1Select0[] =
6202 "@\\(#\\)pthread.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
6203
6204#define SOLARIS_ONCE_INIT_1_TEST_CT 1
6205static tTestDesc aSolaris_Once_Init_1Tests[] = {
6206 { TT_EGREP, zSolaris_Once_Init_1Select0, (regex_t*)NULL }, };
6207
6208/*
6209 * Fix Command Arguments for Solaris_Once_Init_1
6210 */
6211static const char* apzSolaris_Once_Init_1Patch[] = {
6212 "format",
6213 "%1{%2}%3",
6214 "(^#define[ \t]+PTHREAD_ONCE_INIT[ \t]+\\{)([^}]+)(\\})[ \t]*$",
6215 (char*)NULL };
6216
0a1f02df
KG
6217/* * * * * * * * * * * * * * * * * * * * * * * * * *
6218 *
6219 * Description of Solaris_Once_Init_2 fix
6220 */
6221tSCC zSolaris_Once_Init_2Name[] =
6222 "solaris_once_init_2";
6223
6224/*
6225 * File name selection pattern
6226 */
6227tSCC zSolaris_Once_Init_2List[] =
401be4b6 6228 "pthread.h\0";
0a1f02df
KG
6229/*
6230 * Machine/OS name selection pattern
6231 */
6232tSCC* apzSolaris_Once_Init_2Machs[] = {
6233 "*-*-solaris2.[0-9]",
6234 "*-*-solaris2.[0-9][!0-9]*",
6235 (const char*)NULL };
6236
6237/*
6238 * content selection pattern - do fix if pattern found
6239 */
6240tSCC zSolaris_Once_Init_2Select0[] =
6241 "@\\(#\\)pthread.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
6242
6243#define SOLARIS_ONCE_INIT_2_TEST_CT 1
6244static tTestDesc aSolaris_Once_Init_2Tests[] = {
6245 { TT_EGREP, zSolaris_Once_Init_2Select0, (regex_t*)NULL }, };
6246
6247/*
6248 * Fix Command Arguments for Solaris_Once_Init_2
6249 */
6250static const char* apzSolaris_Once_Init_2Patch[] = {
6251 "format",
6252 "#if __STDC__ - 0 == 0 && !defined(_NO_LONGLONG)\n\
6253%0\n\
6254#else\n\
6255%1{0}, {0}, {0}, {%3}%4\n\
6256#endif",
6257 "(^#define[ \t]+PTHREAD_ONCE_INIT[ \t]+\\{\\{)(0, 0, 0, )(PTHREAD_[A-Z_]+)(\\}\\})[ \t]*$",
6258 (char*)NULL };
6259
b0999b01
EB
6260/* * * * * * * * * * * * * * * * * * * * * * * * * *
6261 *
6262 * Description of Solaris_Int_Const fix
6263 */
6264tSCC zSolaris_Int_ConstName[] =
6265 "solaris_int_const";
6266
6267/*
6268 * File name selection pattern
6269 */
6270tSCC zSolaris_Int_ConstList[] =
6271 "sys/int_const.h\0";
6272/*
6273 * Machine/OS name selection pattern
6274 */
6275#define apzSolaris_Int_ConstMachs (const char**)NULL
6276
6277/*
6278 * content selection pattern - do fix if pattern found
6279 */
6280tSCC zSolaris_Int_ConstSelect0[] =
6281 "@\\(#\\)int_const.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
6282
6283#define SOLARIS_INT_CONST_TEST_CT 1
6284static tTestDesc aSolaris_Int_ConstTests[] = {
6285 { TT_EGREP, zSolaris_Int_ConstSelect0, (regex_t*)NULL }, };
6286
6287/*
6288 * Fix Command Arguments for Solaris_Int_Const
6289 */
6290static const char* apzSolaris_Int_ConstPatch[] = {
6291 "format",
6292 "#define\tUINT8_C(c)\t(c)\n\
6293%1\n\
6294#define\tUINT16_C(c)\t(c)",
6295 "^#define[ \t]+UINT8_C\\(c\\)[ \t]+__CONCAT__.*\n\
6296(/*.**/)\n\
6297#define[ \t]+UINT16_C\\(c\\)[ \t]+__CONCAT__.*",
6298 (char*)NULL };
6299
6300/* * * * * * * * * * * * * * * * * * * * * * * * * *
6301 *
6302 * Description of Solaris_Int_Limits_1 fix
6303 */
6304tSCC zSolaris_Int_Limits_1Name[] =
6305 "solaris_int_limits_1";
6306
6307/*
6308 * File name selection pattern
6309 */
6310tSCC zSolaris_Int_Limits_1List[] =
6311 "sys/int_limits.h\0";
6312/*
6313 * Machine/OS name selection pattern
6314 */
6315#define apzSolaris_Int_Limits_1Machs (const char**)NULL
6316
6317/*
6318 * content selection pattern - do fix if pattern found
6319 */
6320tSCC zSolaris_Int_Limits_1Select0[] =
6321 "@\\(#\\)int_limits.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
6322
6323#define SOLARIS_INT_LIMITS_1_TEST_CT 1
6324static tTestDesc aSolaris_Int_Limits_1Tests[] = {
6325 { TT_EGREP, zSolaris_Int_Limits_1Select0, (regex_t*)NULL }, };
6326
6327/*
6328 * Fix Command Arguments for Solaris_Int_Limits_1
6329 */
6330static const char* apzSolaris_Int_Limits_1Patch[] = {
6331 "format",
6332 "#define\tUINT8_MAX\t(255)\n\
6333#define\tUINT16_MAX\t(65535)",
6334 "^#define[ \t]+UINT8_MAX[ \t]+\\(255U\\)\n\
6335#define[ \t]+UINT16_MAX[ \t]+\\(65535U\\)",
6336 (char*)NULL };
6337
6338/* * * * * * * * * * * * * * * * * * * * * * * * * *
6339 *
6340 * Description of Solaris_Int_Limits_2 fix
6341 */
6342tSCC zSolaris_Int_Limits_2Name[] =
6343 "solaris_int_limits_2";
6344
6345/*
6346 * File name selection pattern
6347 */
6348tSCC zSolaris_Int_Limits_2List[] =
6349 "sys/int_limits.h\0";
6350/*
6351 * Machine/OS name selection pattern
6352 */
6353#define apzSolaris_Int_Limits_2Machs (const char**)NULL
6354
6355/*
6356 * content selection pattern - do fix if pattern found
6357 */
6358tSCC zSolaris_Int_Limits_2Select0[] =
6359 "@\\(#\\)int_limits.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
6360
6361#define SOLARIS_INT_LIMITS_2_TEST_CT 1
6362static tTestDesc aSolaris_Int_Limits_2Tests[] = {
6363 { TT_EGREP, zSolaris_Int_Limits_2Select0, (regex_t*)NULL }, };
6364
6365/*
6366 * Fix Command Arguments for Solaris_Int_Limits_2
6367 */
6368static const char* apzSolaris_Int_Limits_2Patch[] = {
6369 "format",
6370 "#define\t%1_FAST16_%2 %132_%2",
6371 "^#define[ \t]+(INT|UINT)_FAST16_(MAX|MIN)[ \t](INT|UINT)16.*",
6372 (char*)NULL };
6373
d4289bdd
EB
6374/* * * * * * * * * * * * * * * * * * * * * * * * * *
6375 *
6376 * Description of Solaris_Int_Types fix
6377 */
6378tSCC zSolaris_Int_TypesName[] =
6379 "solaris_int_types";
6380
6381/*
6382 * File name selection pattern
6383 */
6384tSCC zSolaris_Int_TypesList[] =
6385 "sys/int_types.h\0";
6386/*
6387 * Machine/OS name selection pattern
6388 */
6389#define apzSolaris_Int_TypesMachs (const char**)NULL
6390
6391/*
6392 * content selection pattern - do fix if pattern found
6393 */
6394tSCC zSolaris_Int_TypesSelect0[] =
6395 "__STDC__ - 0 == 0";
6396
6397/*
6398 * content bypass pattern - skip fix if pattern found
6399 */
6400tSCC zSolaris_Int_TypesBypass0[] =
6401 "_LONGLONG_TYPE";
6402
6403#define SOLARIS_INT_TYPES_TEST_CT 2
6404static tTestDesc aSolaris_Int_TypesTests[] = {
6405 { TT_NEGREP, zSolaris_Int_TypesBypass0, (regex_t*)NULL },
6406 { TT_EGREP, zSolaris_Int_TypesSelect0, (regex_t*)NULL }, };
6407
6408/*
6409 * Fix Command Arguments for Solaris_Int_Types
6410 */
6411static const char* apzSolaris_Int_TypesPatch[] = {
6412 "format",
6413 "(defined(_STDC_C99) || !defined(_STRICT_STDC) || defined(__GNUC__))",
6414 (char*)NULL };
6415
6bf1ffe1
EB
6416/* * * * * * * * * * * * * * * * * * * * * * * * * *
6417 *
cd985f66 6418 * Description of Solaris_Stdio_Tag fix
6bf1ffe1 6419 */
cd985f66
JM
6420tSCC zSolaris_Stdio_TagName[] =
6421 "solaris_stdio_tag";
6bf1ffe1
EB
6422
6423/*
6424 * File name selection pattern
6425 */
cd985f66
JM
6426tSCC zSolaris_Stdio_TagList[] =
6427 "stdio_tag.h\0";
6bf1ffe1
EB
6428/*
6429 * Machine/OS name selection pattern
6430 */
cd985f66 6431#define apzSolaris_Stdio_TagMachs (const char**)NULL
6bf1ffe1
EB
6432
6433/*
6434 * content selection pattern - do fix if pattern found
6435 */
cd985f66
JM
6436tSCC zSolaris_Stdio_TagSelect0[] =
6437 "__cplusplus < 54321L";
6bf1ffe1
EB
6438
6439/*
cd985f66 6440 * content bypass pattern - skip fix if pattern found
6bf1ffe1 6441 */
cd985f66
JM
6442tSCC zSolaris_Stdio_TagBypass0[] =
6443 "__GNUC__";
9fcc7481
MM
6444
6445#define SOLARIS_STDIO_TAG_TEST_CT 2
fba39eaf 6446static tTestDesc aSolaris_Stdio_TagTests[] = {
9fcc7481 6447 { TT_NEGREP, zSolaris_Stdio_TagBypass0, (regex_t*)NULL },
fba39eaf
RH
6448 { TT_EGREP, zSolaris_Stdio_TagSelect0, (regex_t*)NULL }, };
6449
6450/*
6451 * Fix Command Arguments for Solaris_Stdio_Tag
6452 */
6aa1f8c1 6453static const char* apzSolaris_Stdio_TagPatch[] = { sed_cmd_z,
fba39eaf
RH
6454 "-e", "s/defined(__cplusplus) && (__cplusplus < 54321L)/0/",
6455 (char*)NULL };
6456
6ee71e49
BK
6457/* * * * * * * * * * * * * * * * * * * * * * * * * *
6458 *
7b78a14a 6459 * Description of Statsswtch fix
6ee71e49 6460 */
7b78a14a
BK
6461tSCC zStatsswtchName[] =
6462 "statsswtch";
6ee71e49
BK
6463
6464/*
6465 * File name selection pattern
6466 */
7b78a14a 6467tSCC zStatsswtchList[] =
401be4b6 6468 "rpcsvc/rstat.h\0";
6ee71e49
BK
6469/*
6470 * Machine/OS name selection pattern
6471 */
7b78a14a 6472#define apzStatsswtchMachs (const char**)NULL
6ee71e49
BK
6473
6474/*
6475 * content selection pattern - do fix if pattern found
6476 */
7b78a14a
BK
6477tSCC zStatsswtchSelect0[] =
6478 "boottime$";
a26c3bb5 6479
7b78a14a
BK
6480#define STATSSWTCH_TEST_CT 1
6481static tTestDesc aStatsswtchTests[] = {
6482 { TT_EGREP, zStatsswtchSelect0, (regex_t*)NULL }, };
6ee71e49
BK
6483
6484/*
7b78a14a 6485 * Fix Command Arguments for Statsswtch
6ee71e49 6486 */
7b78a14a 6487static const char* apzStatsswtchPatch[] = {
6ee71e49 6488 "format",
7b78a14a 6489 "boottime;",
6ee71e49
BK
6490 (char*)NULL };
6491
4c188026
BK
6492/* * * * * * * * * * * * * * * * * * * * * * * * * *
6493 *
7b78a14a 6494 * Description of Stdio_Stdarg_H fix
4c188026 6495 */
7b78a14a
BK
6496tSCC zStdio_Stdarg_HName[] =
6497 "stdio_stdarg_h";
4c188026
BK
6498
6499/*
6500 * File name selection pattern
6501 */
7b78a14a 6502tSCC zStdio_Stdarg_HList[] =
401be4b6 6503 "stdio.h\0";
4c188026
BK
6504/*
6505 * Machine/OS name selection pattern
6506 */
9fcc7481 6507tSCC* apzStdio_Stdarg_HMachs[] = {
5fabfd4c 6508 "*-*-solaris2.1[0-9]*",
9fcc7481 6509 (const char*)NULL };
4c188026
BK
6510
6511/*
7b78a14a 6512 * content bypass pattern - skip fix if pattern found
4c188026 6513 */
7b78a14a
BK
6514tSCC zStdio_Stdarg_HBypass0[] =
6515 "include.*(stdarg.h|machine/ansi.h)";
4c188026 6516
7b78a14a
BK
6517#define STDIO_STDARG_H_TEST_CT 1
6518static tTestDesc aStdio_Stdarg_HTests[] = {
6519 { TT_NEGREP, zStdio_Stdarg_HBypass0, (regex_t*)NULL }, };
4c188026
BK
6520
6521/*
7b78a14a 6522 * Fix Command Arguments for Stdio_Stdarg_H
4c188026 6523 */
7b78a14a
BK
6524static const char* apzStdio_Stdarg_HPatch[] = {
6525 "wrap",
6526 "#define __need___va_list\n\
6527#include <stdarg.h>\n",
4c188026
BK
6528 (char*)NULL };
6529
1f98d85e
WB
6530/* * * * * * * * * * * * * * * * * * * * * * * * * *
6531 *
7b78a14a 6532 * Description of Stdio_Va_List fix
1f98d85e 6533 */
7b78a14a
BK
6534tSCC zStdio_Va_ListName[] =
6535 "stdio_va_list";
1f98d85e
WB
6536
6537/*
6538 * File name selection pattern
6539 */
7b78a14a 6540tSCC zStdio_Va_ListList[] =
401be4b6 6541 "stdio.h\0internal/stdio_core.h\0internal/wchar_core.h\0";
1f98d85e
WB
6542/*
6543 * Machine/OS name selection pattern
6544 */
9fcc7481 6545tSCC* apzStdio_Va_ListMachs[] = {
5fabfd4c 6546 "*-*-solaris2.1[0-9]*",
9fcc7481 6547 (const char*)NULL };
1f98d85e
WB
6548
6549/*
7b78a14a 6550 * content bypass pattern - skip fix if pattern found
1f98d85e 6551 */
7b78a14a 6552tSCC zStdio_Va_ListBypass0[] =
5ded58d0 6553 "__gnuc_va_list|_BSD_VA_LIST_|__DJ_va_list|_G_va_list";
1f98d85e 6554
976c217a 6555#define STDIO_VA_LIST_TEST_CT 1
7b78a14a 6556static tTestDesc aStdio_Va_ListTests[] = {
976c217a 6557 { TT_NEGREP, zStdio_Va_ListBypass0, (regex_t*)NULL }, };
1f98d85e
WB
6558
6559/*
7b78a14a 6560 * Fix Command Arguments for Stdio_Va_List
1f98d85e 6561 */
6aa1f8c1 6562static const char* apzStdio_Va_ListPatch[] = { sed_cmd_z,
871a3122 6563 "-e", "s@[ \t]va_list\\([ \t)]\\)@ __gnuc_va_list\\1@\n\
1a78e5a7 6564s@(va_list)&@(__gnuc_va_list)\\&@\n\
7b78a14a 6565s@ _VA_LIST_));@ __gnuc_va_list));@\n\
6d638aac 6566s@ __VA_LIST__));@ __gnuc_va_list));@\n\
7b78a14a
BK
6567s@ va_list@ __not_va_list__@\n\
6568s@\\*va_list@*__not_va_list__@\n\
6569s@ __va_list)@ __gnuc_va_list)@\n\
6570s@typedef[ \t]\\(.*\\)[ \t]va_list[ \t]*;@typedef \\1 __not_va_list__;@\n\
0fca111b 6571s@typedef[ \t]*__va_list__@typedef __gnuc_va_list@\n\
7b78a14a 6572s@GNUC_VA_LIST@GNUC_Va_LIST@\n\
631099c9 6573s@_VA_LIST_DEFINED@_Va_LIST_DEFINED@\n\
7b78a14a
BK
6574s@_NEED___VA_LIST@_NEED___Va_LIST@\n\
6575s@VA_LIST@DUMMY_VA_LIST@\n\
6576s@_Va_LIST@_VA_LIST@",
1f98d85e
WB
6577 (char*)NULL };
6578
40d05429
MS
6579/* * * * * * * * * * * * * * * * * * * * * * * * * *
6580 *
6581 * Description of Stdio_Va_List_Clients fix
6582 */
6583tSCC zStdio_Va_List_ClientsName[] =
6584 "stdio_va_list_clients";
6585
6586/*
6587 * File name selection pattern
6588 */
6589tSCC zStdio_Va_List_ClientsList[] =
401be4b6 6590 "com_err.h\0cps.h\0curses.h\0krb5.h\0lc_core.h\0pfmt.h\0wchar.h\0curses_colr/curses.h\0";
40d05429
MS
6591/*
6592 * Machine/OS name selection pattern
6593 */
6594#define apzStdio_Va_List_ClientsMachs (const char**)NULL
6595
6596/*
6597 * content bypass pattern - skip fix if pattern found
6598 */
6599tSCC zStdio_Va_List_ClientsBypass0[] =
6600 "__gnuc_va_list|_BSD_VA_LIST_|__DJ_va_list|_G_va_list";
6601tSCC zStdio_Va_List_ClientsBypass1[] =
6602 "include <stdarg\\.h>|#ifdef va_start";
6603
6604#define STDIO_VA_LIST_CLIENTS_TEST_CT 2
6605static tTestDesc aStdio_Va_List_ClientsTests[] = {
6606 { TT_NEGREP, zStdio_Va_List_ClientsBypass0, (regex_t*)NULL },
6607 { TT_NEGREP, zStdio_Va_List_ClientsBypass1, (regex_t*)NULL }, };
6608
6609/*
6610 * Fix Command Arguments for Stdio_Va_List_Clients
6611 */
6aa1f8c1 6612static const char* apzStdio_Va_List_ClientsPatch[] = { sed_cmd_z,
40d05429
MS
6613 "-e", "s@[ \t]va_list\\([ \t)]\\)@ __gnuc_va_list\\1@\n\
6614s@(va_list)&@(__gnuc_va_list)\\&@\n\
6615s@ _VA_LIST_));@ __gnuc_va_list));@\n\
6616s@ __VA_LIST__));@ __gnuc_va_list));@\n\
6617s@ va_list@ __not_va_list__@\n\
6618s@\\*va_list@*__not_va_list__@\n\
6619s@ __va_list)@ __gnuc_va_list)@\n\
6620s@typedef[ \t]\\(.*\\)[ \t]va_list[ \t]*;@typedef \\1 __not_va_list__;@\n\
6621s@typedef[ \t]*__va_list__@typedef __gnuc_va_list@\n\
6622s@GNUC_VA_LIST@GNUC_Va_LIST@\n\
6623s@_VA_LIST_DEFINED@_Va_LIST_DEFINED@\n\
6624s@_NEED___VA_LIST@_NEED___Va_LIST@\n\
6625s@VA_LIST@DUMMY_VA_LIST@\n\
6626s@_Va_LIST@_VA_LIST@",
6627 (char*)NULL };
6628
06bbab1b
BK
6629/* * * * * * * * * * * * * * * * * * * * * * * * * *
6630 *
7b78a14a 6631 * Description of Strict_Ansi_Not fix
06bbab1b 6632 */
7b78a14a
BK
6633tSCC zStrict_Ansi_NotName[] =
6634 "strict_ansi_not";
3be1fb72 6635
06bbab1b
BK
6636/*
6637 * File name selection pattern
6638 */
7b78a14a 6639#define zStrict_Ansi_NotList (char*)NULL
06bbab1b
BK
6640/*
6641 * Machine/OS name selection pattern
6642 */
7b78a14a
BK
6643#define apzStrict_Ansi_NotMachs (const char**)NULL
6644
6645/*
6646 * content selection pattern - do fix if pattern found
6647 */
6648tSCC zStrict_Ansi_NotSelect0[] =
b5639a49 6649 "^([ \t]*#[ \t]*if.*)(!__STDC__|__STDC__[ \t]*==[ \t]*0|__STDC__[ \t]*!=[ \t]*1|__STDC__[ \t]*-[ \t]*0[ \t]*==[ \t]*0)";
06bbab1b 6650
8f2e963b
LR
6651/*
6652 * content bypass pattern - skip fix if pattern found
6653 */
6654tSCC zStrict_Ansi_NotBypass0[] =
6655 "GNU and MIPS C compilers define __STDC__ differently";
5ded58d0
ZW
6656tSCC zStrict_Ansi_NotBypass1[] =
6657 "__SCO_VERSION__.*__STDC__ != 1";
8f2e963b 6658
06bbab1b 6659/*
7b78a14a 6660 * perform the C function call test
06bbab1b 6661 */
7b78a14a 6662tSCC zStrict_Ansi_NotFTst0[] = "stdc_0_in_system_headers";
06bbab1b 6663
5ded58d0 6664#define STRICT_ANSI_NOT_TEST_CT 4
7b78a14a
BK
6665static tTestDesc aStrict_Ansi_NotTests[] = {
6666 { TT_FUNCTION, zStrict_Ansi_NotFTst0, 0 /* unused */ },
8f2e963b 6667 { TT_NEGREP, zStrict_Ansi_NotBypass0, (regex_t*)NULL },
5ded58d0 6668 { TT_NEGREP, zStrict_Ansi_NotBypass1, (regex_t*)NULL },
7b78a14a 6669 { TT_EGREP, zStrict_Ansi_NotSelect0, (regex_t*)NULL }, };
06bbab1b
BK
6670
6671/*
7b78a14a 6672 * Fix Command Arguments for Strict_Ansi_Not
06bbab1b 6673 */
7b78a14a 6674static const char* apzStrict_Ansi_NotPatch[] = {
cb8d5168 6675 "format",
b5639a49 6676 "%1 !defined(__STRICT_ANSI__)",
06bbab1b
BK
6677 (char*)NULL };
6678
3be1fb72
ZW
6679/* * * * * * * * * * * * * * * * * * * * * * * * * *
6680 *
7b78a14a 6681 * Description of Strict_Ansi_Not_Ctd fix
3be1fb72 6682 */
7b78a14a
BK
6683tSCC zStrict_Ansi_Not_CtdName[] =
6684 "strict_ansi_not_ctd";
3be1fb72
ZW
6685
6686/*
6687 * File name selection pattern
6688 */
7b78a14a 6689tSCC zStrict_Ansi_Not_CtdList[] =
401be4b6 6690 "math.h\0limits.h\0stdio.h\0signal.h\0stdlib.h\0sys/signal.h\0time.h\0";
3be1fb72
ZW
6691/*
6692 * Machine/OS name selection pattern
6693 */
7b78a14a 6694#define apzStrict_Ansi_Not_CtdMachs (const char**)NULL
3be1fb72
ZW
6695
6696/*
7b78a14a 6697 * content selection pattern - do fix if pattern found
3be1fb72 6698 */
7b78a14a 6699tSCC zStrict_Ansi_Not_CtdSelect0[] =
b5639a49 6700 "^([ \t]*(\\(|&&|\\|\\|)([ \t(]*!*[ \t]*defined\\([a-zA-Z_0-9]+\\)[ \t]*[|&][|&])*[ \t(]*)(__STDC__[ \t]*(|-[ \t]*0[ \t]*)==[ \t]*0)";
3be1fb72 6701
7b78a14a
BK
6702/*
6703 * perform the C function call test
6704 */
6705tSCC zStrict_Ansi_Not_CtdFTst0[] = "stdc_0_in_system_headers";
6706
6707#define STRICT_ANSI_NOT_CTD_TEST_CT 2
6708static tTestDesc aStrict_Ansi_Not_CtdTests[] = {
6709 { TT_FUNCTION, zStrict_Ansi_Not_CtdFTst0, 0 /* unused */ },
6710 { TT_EGREP, zStrict_Ansi_Not_CtdSelect0, (regex_t*)NULL }, };
3be1fb72
ZW
6711
6712/*
7b78a14a 6713 * Fix Command Arguments for Strict_Ansi_Not_Ctd
3be1fb72 6714 */
7b78a14a
BK
6715static const char* apzStrict_Ansi_Not_CtdPatch[] = {
6716 "format",
b5639a49 6717 "%1 !defined(__STRICT_ANSI__)",
3be1fb72
ZW
6718 (char*)NULL };
6719
06bbab1b
BK
6720/* * * * * * * * * * * * * * * * * * * * * * * * * *
6721 *
7b78a14a 6722 * Description of Strict_Ansi_Only fix
06bbab1b 6723 */
7b78a14a
BK
6724tSCC zStrict_Ansi_OnlyName[] =
6725 "strict_ansi_only";
3be1fb72 6726
06bbab1b
BK
6727/*
6728 * File name selection pattern
6729 */
7b78a14a 6730#define zStrict_Ansi_OnlyList (char*)NULL
06bbab1b
BK
6731/*
6732 * Machine/OS name selection pattern
6733 */
7b78a14a 6734#define apzStrict_Ansi_OnlyMachs (const char**)NULL
d7eb5a45
ZW
6735
6736/*
7b78a14a 6737 * content selection pattern - do fix if pattern found
d7eb5a45 6738 */
7b78a14a 6739tSCC zStrict_Ansi_OnlySelect0[] =
b5639a49 6740 "^([ \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)";
d7eb5a45 6741
7b78a14a
BK
6742/*
6743 * perform the C function call test
6744 */
6745tSCC zStrict_Ansi_OnlyFTst0[] = "stdc_0_in_system_headers";
6746
6747#define STRICT_ANSI_ONLY_TEST_CT 2
6748static tTestDesc aStrict_Ansi_OnlyTests[] = {
6749 { TT_FUNCTION, zStrict_Ansi_OnlyFTst0, 0 /* unused */ },
6750 { TT_EGREP, zStrict_Ansi_OnlySelect0, (regex_t*)NULL }, };
06bbab1b
BK
6751
6752/*
7b78a14a 6753 * Fix Command Arguments for Strict_Ansi_Only
06bbab1b 6754 */
7b78a14a
BK
6755static const char* apzStrict_Ansi_OnlyPatch[] = {
6756 "format",
b5639a49 6757 "%1 defined(__STRICT_ANSI__)",
06bbab1b
BK
6758 (char*)NULL };
6759
79589c4d
BK
6760/* * * * * * * * * * * * * * * * * * * * * * * * * *
6761 *
6762 * Description of Struct_File fix
6763 */
79589c4d
BK
6764tSCC zStruct_FileName[] =
6765 "struct_file";
6766
6767/*
6768 * File name selection pattern
6769 */
6770tSCC zStruct_FileList[] =
401be4b6 6771 "rpc/xdr.h\0";
79589c4d
BK
6772/*
6773 * Machine/OS name selection pattern
6774 */
6775#define apzStruct_FileMachs (const char**)NULL
6776
6777/*
6778 * content selection pattern - do fix if pattern found
6779 */
6780tSCC zStruct_FileSelect0[] =
6781 "^.*xdrstdio_create.*struct __file_s";
6782
6783#define STRUCT_FILE_TEST_CT 1
3af556f7 6784static tTestDesc aStruct_FileTests[] = {
79589c4d
BK
6785 { TT_EGREP, zStruct_FileSelect0, (regex_t*)NULL }, };
6786
6787/*
6788 * Fix Command Arguments for Struct_File
6789 */
3af556f7 6790static const char* apzStruct_FilePatch[] = {
79589c4d
BK
6791 "format",
6792 "struct __file_s;\n\
6793%0",
6794 (char*)NULL };
6795
6796/* * * * * * * * * * * * * * * * * * * * * * * * * *
6797 *
6798 * Description of Struct_Sockaddr fix
6799 */
79589c4d
BK
6800tSCC zStruct_SockaddrName[] =
6801 "struct_sockaddr";
6802
6803/*
6804 * File name selection pattern
6805 */
6806tSCC zStruct_SockaddrList[] =
401be4b6 6807 "rpc/auth.h\0";
79589c4d
BK
6808/*
6809 * Machine/OS name selection pattern
6810 */
6811#define apzStruct_SockaddrMachs (const char**)NULL
6812
6813/*
6814 * content selection pattern - do fix if pattern found
6815 */
6816tSCC zStruct_SockaddrSelect0[] =
3b57c563 6817 "^.*authdes_create.*struct sockaddr[^_]";
79589c4d
BK
6818
6819/*
6820 * content bypass pattern - skip fix if pattern found
6821 */
6822tSCC zStruct_SockaddrBypass0[] =
6823 "<sys/socket.h>";
3b57c563
NN
6824tSCC zStruct_SockaddrBypass1[] =
6825 "struct sockaddr;\n";
79589c4d 6826
3b57c563 6827#define STRUCT_SOCKADDR_TEST_CT 3
3af556f7 6828static tTestDesc aStruct_SockaddrTests[] = {
79589c4d 6829 { TT_NEGREP, zStruct_SockaddrBypass0, (regex_t*)NULL },
3b57c563 6830 { TT_NEGREP, zStruct_SockaddrBypass1, (regex_t*)NULL },
79589c4d
BK
6831 { TT_EGREP, zStruct_SockaddrSelect0, (regex_t*)NULL }, };
6832
6833/*
6834 * Fix Command Arguments for Struct_Sockaddr
6835 */
3af556f7 6836static const char* apzStruct_SockaddrPatch[] = {
79589c4d
BK
6837 "format",
6838 "struct sockaddr;\n\
6839%0",
6840 (char*)NULL };
6841
4c188026
BK
6842/* * * * * * * * * * * * * * * * * * * * * * * * * *
6843 *
6844 * Description of Sun_Auth_Proto fix
6845 */
4c188026
BK
6846tSCC zSun_Auth_ProtoName[] =
6847 "sun_auth_proto";
6848
6849/*
6850 * File name selection pattern
6851 */
6852tSCC zSun_Auth_ProtoList[] =
401be4b6 6853 "rpc/auth.h\0rpc/clnt.h\0rpc/svc.h\0rpc/xdr.h\0";
4c188026
BK
6854/*
6855 * Machine/OS name selection pattern
6856 */
6857#define apzSun_Auth_ProtoMachs (const char**)NULL
6858
6859/*
6860 * content selection pattern - do fix if pattern found
6861 */
6862tSCC zSun_Auth_ProtoSelect0[] =
6863 "\\(\\*[a-z][a-z_]*\\)\\(\\)";
6864
793387fa
JM
6865/*
6866 * content bypass pattern - skip fix if pattern found
6867 */
6868tSCC zSun_Auth_ProtoBypass0[] =
6869 "__cplusplus";
6870
6871#define SUN_AUTH_PROTO_TEST_CT 2
3af556f7 6872static tTestDesc aSun_Auth_ProtoTests[] = {
793387fa 6873 { TT_NEGREP, zSun_Auth_ProtoBypass0, (regex_t*)NULL },
4c188026
BK
6874 { TT_EGREP, zSun_Auth_ProtoSelect0, (regex_t*)NULL }, };
6875
6876/*
6877 * Fix Command Arguments for Sun_Auth_Proto
6878 */
3af556f7 6879static const char* apzSun_Auth_ProtoPatch[] = {
cb8d5168
BK
6880 "format",
6881 "#ifdef __cplusplus\n\
6882%1(...);%2\n\
6883#else\n\
6884%1();%2\n\
6885#endif",
6886 "(.*\\(\\*[a-z][a-z_]*\\))\\(\\);(.*)",
4c188026
BK
6887 (char*)NULL };
6888
06bbab1b
BK
6889/* * * * * * * * * * * * * * * * * * * * * * * * * *
6890 *
5abc1f74 6891 * Description of Sun_Bogus_Ifdef fix
06bbab1b
BK
6892 */
6893tSCC zSun_Bogus_IfdefName[] =
3be1fb72
ZW
6894 "sun_bogus_ifdef";
6895
06bbab1b
BK
6896/*
6897 * File name selection pattern
6898 */
6899tSCC zSun_Bogus_IfdefList[] =
401be4b6 6900 "hsfs/hsfs_spec.h\0hsfs/iso_spec.h\0";
06bbab1b
BK
6901/*
6902 * Machine/OS name selection pattern
6903 */
6904#define apzSun_Bogus_IfdefMachs (const char**)NULL
6905
6906/*
be02fa1a 6907 * content selection pattern - do fix if pattern found
06bbab1b
BK
6908 */
6909tSCC zSun_Bogus_IfdefSelect0[] =
cb8d5168 6910 "#ifdef(.*\\|\\|.*)";
06bbab1b
BK
6911
6912#define SUN_BOGUS_IFDEF_TEST_CT 1
3af556f7 6913static tTestDesc aSun_Bogus_IfdefTests[] = {
5abc1f74 6914 { TT_EGREP, zSun_Bogus_IfdefSelect0, (regex_t*)NULL }, };
06bbab1b
BK
6915
6916/*
6917 * Fix Command Arguments for Sun_Bogus_Ifdef
6918 */
3af556f7 6919static const char* apzSun_Bogus_IfdefPatch[] = {
cb8d5168
BK
6920 "format",
6921 "#if%1",
06bbab1b
BK
6922 (char*)NULL };
6923
6924/* * * * * * * * * * * * * * * * * * * * * * * * * *
6925 *
5abc1f74 6926 * Description of Sun_Catmacro fix
06bbab1b
BK
6927 */
6928tSCC zSun_CatmacroName[] =
3be1fb72
ZW
6929 "sun_catmacro";
6930
06bbab1b
BK
6931/*
6932 * File name selection pattern
6933 */
6934tSCC zSun_CatmacroList[] =
401be4b6 6935 "pixrect/memvar.h\0";
06bbab1b
BK
6936/*
6937 * Machine/OS name selection pattern
6938 */
6939#define apzSun_CatmacroMachs (const char**)NULL
6940
6941/*
be02fa1a 6942 * content selection pattern - do fix if pattern found
06bbab1b
BK
6943 */
6944tSCC zSun_CatmacroSelect0[] =
cb8d5168 6945 "^#define[ \t]+CAT\\(a,b\\).*";
06bbab1b
BK
6946
6947#define SUN_CATMACRO_TEST_CT 1
3af556f7 6948static tTestDesc aSun_CatmacroTests[] = {
5abc1f74 6949 { TT_EGREP, zSun_CatmacroSelect0, (regex_t*)NULL }, };
06bbab1b
BK
6950
6951/*
6952 * Fix Command Arguments for Sun_Catmacro
6953 */
3af556f7 6954static const char* apzSun_CatmacroPatch[] = {
cb8d5168
BK
6955 "format",
6956 "#ifdef __STDC__\n\
6957# define CAT(a,b) a##b\n\
6958#else\n\
6959%0\n\
6960#endif",
06bbab1b
BK
6961 (char*)NULL };
6962
6963/* * * * * * * * * * * * * * * * * * * * * * * * * *
6964 *
5abc1f74 6965 * Description of Sun_Malloc fix
06bbab1b
BK
6966 */
6967tSCC zSun_MallocName[] =
3be1fb72
ZW
6968 "sun_malloc";
6969
06bbab1b
BK
6970/*
6971 * File name selection pattern
6972 */
6973tSCC zSun_MallocList[] =
401be4b6 6974 "malloc.h\0";
06bbab1b
BK
6975/*
6976 * Machine/OS name selection pattern
6977 */
6978#define apzSun_MallocMachs (const char**)NULL
793387fa
JM
6979
6980/*
6981 * content bypass pattern - skip fix if pattern found
6982 */
6983tSCC zSun_MallocBypass0[] =
6984 "_CLASSIC_ANSI_TYPES";
6985
6986#define SUN_MALLOC_TEST_CT 1
6987static tTestDesc aSun_MallocTests[] = {
6988 { TT_NEGREP, zSun_MallocBypass0, (regex_t*)NULL }, };
06bbab1b
BK
6989
6990/*
6991 * Fix Command Arguments for Sun_Malloc
6992 */
6aa1f8c1 6993static const char* apzSun_MallocPatch[] = { sed_cmd_z,
be02fa1a
BK
6994 "-e", "s/typedef[ \t]char \\*\tmalloc_t/typedef void \\*\tmalloc_t/g",
6995 "-e", "s/int[ \t][ \t]*free/void\tfree/g",
6996 "-e", "s/char\\([ \t]*\\*[ \t]*malloc\\)/void\\1/g",
6997 "-e", "s/char\\([ \t]*\\*[ \t]*realloc\\)/void\\1/g",
93a718f6 6998 "-e", "s/char\\([ \t]*\\*[ \t]*calloc\\)/void\\1/g",
06bbab1b
BK
6999 (char*)NULL };
7000
06bbab1b
BK
7001/* * * * * * * * * * * * * * * * * * * * * * * * * *
7002 *
5abc1f74 7003 * Description of Sun_Rusers_Semi fix
06bbab1b
BK
7004 */
7005tSCC zSun_Rusers_SemiName[] =
3be1fb72
ZW
7006 "sun_rusers_semi";
7007
06bbab1b
BK
7008/*
7009 * File name selection pattern
7010 */
7011tSCC zSun_Rusers_SemiList[] =
401be4b6 7012 "rpcsvc/rusers.h\0";
06bbab1b
BK
7013/*
7014 * Machine/OS name selection pattern
7015 */
7016#define apzSun_Rusers_SemiMachs (const char**)NULL
7017
7018/*
be02fa1a 7019 * content selection pattern - do fix if pattern found
06bbab1b
BK
7020 */
7021tSCC zSun_Rusers_SemiSelect0[] =
7022 "_cnt$";
7023
7024#define SUN_RUSERS_SEMI_TEST_CT 1
3af556f7 7025static tTestDesc aSun_Rusers_SemiTests[] = {
5abc1f74 7026 { TT_EGREP, zSun_Rusers_SemiSelect0, (regex_t*)NULL }, };
06bbab1b
BK
7027
7028/*
7029 * Fix Command Arguments for Sun_Rusers_Semi
7030 */
6aa1f8c1 7031static const char* apzSun_Rusers_SemiPatch[] = { sed_cmd_z,
be02fa1a 7032 "-e", "/^struct/,/^};/s/_cnt$/_cnt;/",
06bbab1b
BK
7033 (char*)NULL };
7034
7035/* * * * * * * * * * * * * * * * * * * * * * * * * *
7036 *
5abc1f74 7037 * Description of Sun_Signal fix
06bbab1b
BK
7038 */
7039tSCC zSun_SignalName[] =
3be1fb72
ZW
7040 "sun_signal";
7041
06bbab1b
BK
7042/*
7043 * File name selection pattern
7044 */
7045tSCC zSun_SignalList[] =
401be4b6 7046 "sys/signal.h\0signal.h\0";
06bbab1b
BK
7047/*
7048 * Machine/OS name selection pattern
7049 */
7050#define apzSun_SignalMachs (const char**)NULL
7051
7052/*
be02fa1a 7053 * content selection pattern - do fix if pattern found
06bbab1b
BK
7054 */
7055tSCC zSun_SignalSelect0[] =
cb8d5168 7056 "^void\t\\(\\*signal\\(\\)\\)\\(\\);.*";
06bbab1b
BK
7057
7058#define SUN_SIGNAL_TEST_CT 1
3af556f7 7059static tTestDesc aSun_SignalTests[] = {
5abc1f74 7060 { TT_EGREP, zSun_SignalSelect0, (regex_t*)NULL }, };
06bbab1b
BK
7061
7062/*
7063 * Fix Command Arguments for Sun_Signal
7064 */
3af556f7 7065static const char* apzSun_SignalPatch[] = {
cb8d5168
BK
7066 "format",
7067 "#ifdef __cplusplus\n\
7068void\t(*signal(...))(...);\n\
7069#else\n\
7070%0\n\
7071#endif",
06bbab1b
BK
7072 (char*)NULL };
7073
06bbab1b
BK
7074/* * * * * * * * * * * * * * * * * * * * * * * * * *
7075 *
5abc1f74 7076 * Description of Sunos_Strlen fix
06bbab1b
BK
7077 */
7078tSCC zSunos_StrlenName[] =
3be1fb72
ZW
7079 "sunos_strlen";
7080
06bbab1b
BK
7081/*
7082 * File name selection pattern
7083 */
7084tSCC zSunos_StrlenList[] =
401be4b6 7085 "strings.h\0";
06bbab1b
BK
7086/*
7087 * Machine/OS name selection pattern
7088 */
7089#define apzSunos_StrlenMachs (const char**)NULL
d7eb5a45
ZW
7090
7091/*
7092 * content selection pattern - do fix if pattern found
7093 */
7094tSCC zSunos_StrlenSelect0[] =
cb8d5168 7095 "int[ \t]*strlen\\(\\);(.*)";
d7eb5a45
ZW
7096
7097#define SUNOS_STRLEN_TEST_CT 1
3af556f7 7098static tTestDesc aSunos_StrlenTests[] = {
d7eb5a45 7099 { TT_EGREP, zSunos_StrlenSelect0, (regex_t*)NULL }, };
06bbab1b
BK
7100
7101/*
7102 * Fix Command Arguments for Sunos_Strlen
7103 */
3af556f7 7104static const char* apzSunos_StrlenPatch[] = {
cb8d5168
BK
7105 "format",
7106 "__SIZE_TYPE__ strlen();%1",
7107 (char*)NULL };
7108
de0656cf
KJ
7109/* * * * * * * * * * * * * * * * * * * * * * * * * *
7110 *
7111 * Description of Svr4_Disable_Opt fix
7112 */
7113tSCC zSvr4_Disable_OptName[] =
7114 "svr4_disable_opt";
7115
7116/*
7117 * File name selection pattern
7118 */
7119tSCC zSvr4_Disable_OptList[] =
401be4b6 7120 "string.h\0";
de0656cf
KJ
7121/*
7122 * Machine/OS name selection pattern
7123 */
7124#define apzSvr4_Disable_OptMachs (const char**)NULL
7125
7126/*
7127 * content selection pattern - do fix if pattern found
7128 */
7129tSCC zSvr4_Disable_OptSelect0[] =
7130 "#define.*__std_hdr_";
7131
7132#define SVR4_DISABLE_OPT_TEST_CT 1
7133static tTestDesc aSvr4_Disable_OptTests[] = {
7134 { TT_EGREP, zSvr4_Disable_OptSelect0, (regex_t*)NULL }, };
7135
7136/*
7137 * Fix Command Arguments for Svr4_Disable_Opt
7138 */
6aa1f8c1 7139static const char* apzSvr4_Disable_OptPatch[] = { sed_cmd_z,
de0656cf
KJ
7140 "-e", "/#define.*__std_hdr_/d",
7141 (char*)NULL };
7142
4c188026
BK
7143/* * * * * * * * * * * * * * * * * * * * * * * * * *
7144 *
7145 * Description of Svr4_Getcwd fix
7146 */
4c188026
BK
7147tSCC zSvr4_GetcwdName[] =
7148 "svr4_getcwd";
7149
7150/*
7151 * File name selection pattern
7152 */
7153tSCC zSvr4_GetcwdList[] =
401be4b6 7154 "stdlib.h\0unistd.h\0prototypes.h\0";
4c188026
BK
7155/*
7156 * Machine/OS name selection pattern
7157 */
7158#define apzSvr4_GetcwdMachs (const char**)NULL
7159
7160/*
7161 * content selection pattern - do fix if pattern found
7162 */
7163tSCC zSvr4_GetcwdSelect0[] =
7164 "getcwd\\(char \\*, int\\)";
7165
7166#define SVR4_GETCWD_TEST_CT 1
3af556f7 7167static tTestDesc aSvr4_GetcwdTests[] = {
4c188026
BK
7168 { TT_EGREP, zSvr4_GetcwdSelect0, (regex_t*)NULL }, };
7169
7170/*
7171 * Fix Command Arguments for Svr4_Getcwd
7172 */
3af556f7 7173static const char* apzSvr4_GetcwdPatch[] = {
cb8d5168
BK
7174 "format",
7175 "getcwd(char *, size_t)",
4c188026
BK
7176 (char*)NULL };
7177
7178/* * * * * * * * * * * * * * * * * * * * * * * * * *
7179 *
7180 * Description of Svr4_Profil fix
7181 */
4c188026
BK
7182tSCC zSvr4_ProfilName[] =
7183 "svr4_profil";
7184
7185/*
7186 * File name selection pattern
7187 */
cd985f66
JM
7188tSCC zSvr4_ProfilList[] =
7189 "stdlib.h\0unistd.h\0";
165bfb59
BK
7190/*
7191 * Machine/OS name selection pattern
7192 */
cd985f66 7193#define apzSvr4_ProfilMachs (const char**)NULL
165bfb59
BK
7194
7195/*
7196 * content selection pattern - do fix if pattern found
7197 */
cd985f66
JM
7198tSCC zSvr4_ProfilSelect0[] =
7199 "profil\\(unsigned short \\*, unsigned int, unsigned int, unsigned int\\)";
7200
7201/*
7202 * content bypass pattern - skip fix if pattern found
7203 */
7204tSCC zSvr4_ProfilBypass0[] =
7205 "Silicon Graphics";
165bfb59 7206
cd985f66
JM
7207#define SVR4_PROFIL_TEST_CT 2
7208static tTestDesc aSvr4_ProfilTests[] = {
7209 { TT_NEGREP, zSvr4_ProfilBypass0, (regex_t*)NULL },
7210 { TT_EGREP, zSvr4_ProfilSelect0, (regex_t*)NULL }, };
165bfb59
BK
7211
7212/*
cd985f66 7213 * Fix Command Arguments for Svr4_Profil
165bfb59 7214 */
cd985f66
JM
7215static const char* apzSvr4_ProfilPatch[] = {
7216 "format",
7217 "profil(unsigned short *, size_t, int, unsigned int)",
165bfb59
BK
7218 (char*)NULL };
7219
7220/* * * * * * * * * * * * * * * * * * * * * * * * * *
7221 *
cd985f66 7222 * Description of Svr4_Sighandler_Type fix
165bfb59 7223 */
cd985f66
JM
7224tSCC zSvr4_Sighandler_TypeName[] =
7225 "svr4_sighandler_type";
165bfb59
BK
7226
7227/*
7228 * File name selection pattern
7229 */
cd985f66
JM
7230tSCC zSvr4_Sighandler_TypeList[] =
7231 "sys/signal.h\0";
165bfb59
BK
7232/*
7233 * Machine/OS name selection pattern
7234 */
cd985f66 7235#define apzSvr4_Sighandler_TypeMachs (const char**)NULL
165bfb59
BK
7236
7237/*
7238 * content selection pattern - do fix if pattern found
7239 */
cd985f66
JM
7240tSCC zSvr4_Sighandler_TypeSelect0[] =
7241 "void *\\(\\*\\)\\(\\)";
165bfb59 7242
cd985f66
JM
7243#define SVR4_SIGHANDLER_TYPE_TEST_CT 1
7244static tTestDesc aSvr4_Sighandler_TypeTests[] = {
7245 { TT_EGREP, zSvr4_Sighandler_TypeSelect0, (regex_t*)NULL }, };
165bfb59
BK
7246
7247/*
cd985f66 7248 * Fix Command Arguments for Svr4_Sighandler_Type
165bfb59 7249 */
cd985f66
JM
7250static const char* apzSvr4_Sighandler_TypePatch[] = {
7251 "format",
7252 "void (*)(int)",
165bfb59
BK
7253 (char*)NULL };
7254
4b60eb3b
JDA
7255/* * * * * * * * * * * * * * * * * * * * * * * * * *
7256 *
cd985f66 7257 * Description of Svr4_Undeclared_Getrnge fix
4b60eb3b 7258 */
cd985f66
JM
7259tSCC zSvr4_Undeclared_GetrngeName[] =
7260 "svr4_undeclared_getrnge";
4b60eb3b
JDA
7261
7262/*
7263 * File name selection pattern
7264 */
cd985f66
JM
7265tSCC zSvr4_Undeclared_GetrngeList[] =
7266 "regexp.h\0";
4b60eb3b
JDA
7267/*
7268 * Machine/OS name selection pattern
7269 */
cd985f66 7270#define apzSvr4_Undeclared_GetrngeMachs (const char**)NULL
4b60eb3b
JDA
7271
7272/*
7273 * content selection pattern - do fix if pattern found
7274 */
cd985f66
JM
7275tSCC zSvr4_Undeclared_GetrngeSelect0[] =
7276 "getrnge";
7277
7278/*
7279 * content bypass pattern - skip fix if pattern found
7280 */
7281tSCC zSvr4_Undeclared_GetrngeBypass0[] =
7282 "static void getrnge";
4b60eb3b 7283
cd985f66
JM
7284#define SVR4_UNDECLARED_GETRNGE_TEST_CT 2
7285static tTestDesc aSvr4_Undeclared_GetrngeTests[] = {
7286 { TT_NEGREP, zSvr4_Undeclared_GetrngeBypass0, (regex_t*)NULL },
7287 { TT_EGREP, zSvr4_Undeclared_GetrngeSelect0, (regex_t*)NULL }, };
4b60eb3b
JDA
7288
7289/*
cd985f66 7290 * Fix Command Arguments for Svr4_Undeclared_Getrnge
4b60eb3b 7291 */
cd985f66
JM
7292static const char* apzSvr4_Undeclared_GetrngePatch[] = {
7293 "format",
7294 "%0\n\
7295static int getrnge ();",
7296 "^static int[ \t]+size;",
4b60eb3b
JDA
7297 (char*)NULL };
7298
165bfb59
BK
7299/* * * * * * * * * * * * * * * * * * * * * * * * * *
7300 *
cd985f66 7301 * Description of Sysv68_String fix
165bfb59 7302 */
cd985f66
JM
7303tSCC zSysv68_StringName[] =
7304 "sysv68_string";
165bfb59
BK
7305
7306/*
7307 * File name selection pattern
7308 */
cd985f66
JM
7309tSCC zSysv68_StringList[] =
7310 "testing.h\0string.h\0";
165bfb59
BK
7311/*
7312 * Machine/OS name selection pattern
7313 */
cd985f66 7314#define apzSysv68_StringMachs (const char**)NULL
165bfb59
BK
7315
7316/*
cd985f66 7317 * content bypass pattern - skip fix if pattern found
165bfb59 7318 */
cd985f66
JM
7319tSCC zSysv68_StringBypass0[] =
7320 "_CLASSIC_ANSI_TYPES";
165bfb59 7321
cd985f66
JM
7322#define SYSV68_STRING_TEST_CT 1
7323static tTestDesc aSysv68_StringTests[] = {
7324 { TT_NEGREP, zSysv68_StringBypass0, (regex_t*)NULL }, };
165bfb59
BK
7325
7326/*
cd985f66 7327 * Fix Command Arguments for Sysv68_String
165bfb59 7328 */
6aa1f8c1 7329static const char* apzSysv68_StringPatch[] = { sed_cmd_z,
cd985f66
JM
7330 "-e", "s/extern[ \t]*int[ \t]*strlen();/extern unsigned int strlen();/",
7331 "-e", "s/extern[ \t]*int[ \t]*ffs[ \t]*(long);/extern int ffs(int);/",
7332 "-e", "s/strdup(char \\*s1);/strdup(const char *s1);/",
7333 "-e", "/^extern char$/N",
7334 "-e", "s/^extern char\\(\\n\t\\*memccpy(),\\)$/extern void\\1/",
7335 "-e", "/^extern int$/N",
7336 "-e", "s/^extern int\\(\\n\tstrlen(),\\)/extern size_t\\1/",
7337 "-e", "/^\tstrncmp(),$/N",
7338 "-e", "s/^\\(\tstrncmp()\\),\\n\\(\tstrlen(),\\)$/\\1;\\\n\
7339extern unsigned int\\\n\
7340\\2/",
165bfb59
BK
7341 (char*)NULL };
7342
4b60eb3b
JDA
7343/* * * * * * * * * * * * * * * * * * * * * * * * * *
7344 *
cd985f66 7345 * Description of Sysz_Stdlib_For_Sun fix
4b60eb3b 7346 */
cd985f66
JM
7347tSCC zSysz_Stdlib_For_SunName[] =
7348 "sysz_stdlib_for_sun";
4b60eb3b
JDA
7349
7350/*
7351 * File name selection pattern
7352 */
cd985f66
JM
7353tSCC zSysz_Stdlib_For_SunList[] =
7354 "stdlib.h\0";
4b60eb3b
JDA
7355/*
7356 * Machine/OS name selection pattern
7357 */
cd985f66 7358#define apzSysz_Stdlib_For_SunMachs (const char**)NULL
4b60eb3b
JDA
7359
7360/*
7361 * content selection pattern - do fix if pattern found
7362 */
cd985f66
JM
7363tSCC zSysz_Stdlib_For_SunSelect0[] =
7364 "char[ \t]*\\*[ \t]*(calloc|malloc|realloc|bsearch)[ \t]*\\(";
7365
7366/*
7367 * content bypass pattern - skip fix if pattern found
7368 */
7369tSCC zSysz_Stdlib_For_SunBypass0[] =
7370 "_CLASSIC_ANSI_TYPES";
4b60eb3b 7371
cd985f66
JM
7372#define SYSZ_STDLIB_FOR_SUN_TEST_CT 2
7373static tTestDesc aSysz_Stdlib_For_SunTests[] = {
7374 { TT_NEGREP, zSysz_Stdlib_For_SunBypass0, (regex_t*)NULL },
7375 { TT_EGREP, zSysz_Stdlib_For_SunSelect0, (regex_t*)NULL }, };
4b60eb3b
JDA
7376
7377/*
cd985f66 7378 * Fix Command Arguments for Sysz_Stdlib_For_Sun
4b60eb3b 7379 */
cd985f66
JM
7380static const char* apzSysz_Stdlib_For_SunPatch[] = {
7381 "format",
7382 "void *\t%1(",
4b60eb3b
JDA
7383 (char*)NULL };
7384
7385/* * * * * * * * * * * * * * * * * * * * * * * * * *
7386 *
cd985f66 7387 * Description of Thread_Keyword fix
4b60eb3b 7388 */
cd985f66
JM
7389tSCC zThread_KeywordName[] =
7390 "thread_keyword";
4b60eb3b
JDA
7391
7392/*
7393 * File name selection pattern
7394 */
cd985f66
JM
7395tSCC zThread_KeywordList[] =
7396 "pthread.h\0bits/sigthread.h\0";
4b60eb3b
JDA
7397/*
7398 * Machine/OS name selection pattern
7399 */
cd985f66 7400#define apzThread_KeywordMachs (const char**)NULL
4b60eb3b
JDA
7401
7402/*
7403 * content selection pattern - do fix if pattern found
7404 */
cd985f66
JM
7405tSCC zThread_KeywordSelect0[] =
7406 "([* ])__thread([,)])";
4b60eb3b 7407
cd985f66
JM
7408#define THREAD_KEYWORD_TEST_CT 1
7409static tTestDesc aThread_KeywordTests[] = {
7410 { TT_EGREP, zThread_KeywordSelect0, (regex_t*)NULL }, };
4b60eb3b
JDA
7411
7412/*
cd985f66 7413 * Fix Command Arguments for Thread_Keyword
4b60eb3b 7414 */
cd985f66
JM
7415static const char* apzThread_KeywordPatch[] = {
7416 "format",
7417 "%1__thr%2",
4b60eb3b
JDA
7418 (char*)NULL };
7419
7420/* * * * * * * * * * * * * * * * * * * * * * * * * *
7421 *
cd985f66 7422 * Description of Tinfo_Cplusplus fix
4b60eb3b 7423 */
cd985f66
JM
7424tSCC zTinfo_CplusplusName[] =
7425 "tinfo_cplusplus";
4b60eb3b
JDA
7426
7427/*
7428 * File name selection pattern
7429 */
cd985f66
JM
7430tSCC zTinfo_CplusplusList[] =
7431 "tinfo.h\0";
4b60eb3b
JDA
7432/*
7433 * Machine/OS name selection pattern
7434 */
cd985f66 7435#define apzTinfo_CplusplusMachs (const char**)NULL
4b60eb3b
JDA
7436
7437/*
7438 * content selection pattern - do fix if pattern found
7439 */
cd985f66
JM
7440tSCC zTinfo_CplusplusSelect0[] =
7441 "[ \t]_cplusplus";
4b60eb3b 7442
cd985f66
JM
7443#define TINFO_CPLUSPLUS_TEST_CT 1
7444static tTestDesc aTinfo_CplusplusTests[] = {
7445 { TT_EGREP, zTinfo_CplusplusSelect0, (regex_t*)NULL }, };
4b60eb3b
JDA
7446
7447/*
cd985f66 7448 * Fix Command Arguments for Tinfo_Cplusplus
4b60eb3b 7449 */
cd985f66
JM
7450static const char* apzTinfo_CplusplusPatch[] = {
7451 "format",
7452 " __cplusplus",
4b60eb3b
JDA
7453 (char*)NULL };
7454
30102605
RH
7455/* * * * * * * * * * * * * * * * * * * * * * * * * *
7456 *
cd985f66 7457 * Description of Ultrix_Const fix
30102605 7458 */
cd985f66
JM
7459tSCC zUltrix_ConstName[] =
7460 "ultrix_const";
30102605
RH
7461
7462/*
7463 * File name selection pattern
7464 */
cd985f66
JM
7465tSCC zUltrix_ConstList[] =
7466 "stdio.h\0";
30102605
RH
7467/*
7468 * Machine/OS name selection pattern
7469 */
cd985f66 7470#define apzUltrix_ConstMachs (const char**)NULL
30102605
RH
7471
7472/*
7473 * content selection pattern - do fix if pattern found
7474 */
cd985f66
JM
7475tSCC zUltrix_ConstSelect0[] =
7476 "perror\\( char \\*";
30102605 7477
cd985f66
JM
7478#define ULTRIX_CONST_TEST_CT 1
7479static tTestDesc aUltrix_ConstTests[] = {
7480 { TT_EGREP, zUltrix_ConstSelect0, (regex_t*)NULL }, };
30102605
RH
7481
7482/*
cd985f66 7483 * Fix Command Arguments for Ultrix_Const
30102605 7484 */
cd985f66 7485static const char* apzUltrix_ConstPatch[] = {
30102605 7486 "format",
cd985f66
JM
7487 "%1 const %3 *__",
7488 "([ \t*](perror|fputs|fwrite|scanf|fscanf)\\(.*)[ \t]+(char|void) \\*__",
30102605
RH
7489 (char*)NULL };
7490
86765ca0
RL
7491/* * * * * * * * * * * * * * * * * * * * * * * * * *
7492 *
cd985f66 7493 * Description of Ultrix_Const2 fix
86765ca0 7494 */
cd985f66
JM
7495tSCC zUltrix_Const2Name[] =
7496 "ultrix_const2";
3be1fb72 7497
86765ca0
RL
7498/*
7499 * File name selection pattern
7500 */
cd985f66
JM
7501tSCC zUltrix_Const2List[] =
7502 "stdio.h\0";
86765ca0
RL
7503/*
7504 * Machine/OS name selection pattern
7505 */
cd985f66 7506#define apzUltrix_Const2Machs (const char**)NULL
86765ca0
RL
7507
7508/*
7509 * content selection pattern - do fix if pattern found
7510 */
cd985f66
JM
7511tSCC zUltrix_Const2Select0[] =
7512 "\\*fopen\\( char \\*";
b5e20633 7513
cd985f66
JM
7514#define ULTRIX_CONST2_TEST_CT 1
7515static tTestDesc aUltrix_Const2Tests[] = {
7516 { TT_EGREP, zUltrix_Const2Select0, (regex_t*)NULL }, };
86765ca0
RL
7517
7518/*
cd985f66 7519 * Fix Command Arguments for Ultrix_Const2
86765ca0 7520 */
cd985f66 7521static const char* apzUltrix_Const2Patch[] = {
b5e20633 7522 "format",
cd985f66
JM
7523 "%1( const char *%3, const char *",
7524 "([ \t*](fopen|sscanf|popen|tempnam))\\([ \t]*char[ \t]*\\*([^,]*),[ \t]*char[ \t]*\\*[ \t]*",
86765ca0
RL
7525 (char*)NULL };
7526
06bbab1b
BK
7527/* * * * * * * * * * * * * * * * * * * * * * * * * *
7528 *
5abc1f74 7529 * Description of Va_I960_Macro fix
06bbab1b
BK
7530 */
7531tSCC zVa_I960_MacroName[] =
3be1fb72
ZW
7532 "va_i960_macro";
7533
06bbab1b
BK
7534/*
7535 * File name selection pattern
7536 */
7537tSCC zVa_I960_MacroList[] =
401be4b6 7538 "arch/i960/archI960.h\0";
06bbab1b
BK
7539/*
7540 * Machine/OS name selection pattern
7541 */
7542#define apzVa_I960_MacroMachs (const char**)NULL
7543
7544/*
be02fa1a 7545 * content selection pattern - do fix if pattern found
06bbab1b
BK
7546 */
7547tSCC zVa_I960_MacroSelect0[] =
7548 "__(vsiz|vali|vpad|alignof__)";
7549
7550#define VA_I960_MACRO_TEST_CT 1
3af556f7 7551static tTestDesc aVa_I960_MacroTests[] = {
5abc1f74 7552 { TT_EGREP, zVa_I960_MacroSelect0, (regex_t*)NULL }, };
06bbab1b
BK
7553
7554/*
7555 * Fix Command Arguments for Va_I960_Macro
7556 */
3af556f7 7557static const char* apzVa_I960_MacroPatch[] = {
5d7d28c2
BK
7558 "format",
7559 "__vx%1",
06bbab1b
BK
7560 (char*)NULL };
7561
7562/* * * * * * * * * * * * * * * * * * * * * * * * * *
7563 *
5abc1f74 7564 * Description of Void_Null fix
06bbab1b
BK
7565 */
7566tSCC zVoid_NullName[] =
3be1fb72
ZW
7567 "void_null";
7568
06bbab1b
BK
7569/*
7570 * File name selection pattern
7571 */
7572tSCC zVoid_NullList[] =
401be4b6 7573 "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";
06bbab1b
BK
7574/*
7575 * Machine/OS name selection pattern
7576 */
7577#define apzVoid_NullMachs (const char**)NULL
7578
7579/*
be02fa1a 7580 * content selection pattern - do fix if pattern found
06bbab1b
BK
7581 */
7582tSCC zVoid_NullSelect0[] =
5d7d28c2 7583 "^#[ \t]*define[ \t]+NULL[ \t]+\\(\\(void[ \t]*\\*\\)0\\)";
06bbab1b 7584
31eec874
MS
7585/*
7586 * content bypass pattern - skip fix if pattern found
7587 */
7588tSCC zVoid_NullBypass0[] =
7589 "__cplusplus";
7590
7591#define VOID_NULL_TEST_CT 2
3af556f7 7592static tTestDesc aVoid_NullTests[] = {
31eec874 7593 { TT_NEGREP, zVoid_NullBypass0, (regex_t*)NULL },
5abc1f74 7594 { TT_EGREP, zVoid_NullSelect0, (regex_t*)NULL }, };
06bbab1b
BK
7595
7596/*
7597 * Fix Command Arguments for Void_Null
7598 */
3af556f7 7599static const char* apzVoid_NullPatch[] = {
5d7d28c2
BK
7600 "format",
7601 "#define NULL 0",
06bbab1b
BK
7602 (char*)NULL };
7603
7604/* * * * * * * * * * * * * * * * * * * * * * * * * *
7605 *
5abc1f74 7606 * Description of Vxworks_Gcc_Problem fix
06bbab1b
BK
7607 */
7608tSCC zVxworks_Gcc_ProblemName[] =
3be1fb72
ZW
7609 "vxworks_gcc_problem";
7610
06bbab1b
BK
7611/*
7612 * File name selection pattern
7613 */
7614tSCC zVxworks_Gcc_ProblemList[] =
401be4b6 7615 "types/vxTypesBase.h\0";
06bbab1b
BK
7616/*
7617 * Machine/OS name selection pattern
7618 */
7619#define apzVxworks_Gcc_ProblemMachs (const char**)NULL
7620
7621/*
be02fa1a 7622 * content selection pattern - do fix if pattern found
06bbab1b
BK
7623 */
7624tSCC zVxworks_Gcc_ProblemSelect0[] =
7625 "__GNUC_TYPEOF_FEATURE_BROKEN_USE_DEFAULT_UNTIL_FIXED__";
7626
7627#define VXWORKS_GCC_PROBLEM_TEST_CT 1
3af556f7 7628static tTestDesc aVxworks_Gcc_ProblemTests[] = {
5abc1f74 7629 { TT_EGREP, zVxworks_Gcc_ProblemSelect0, (regex_t*)NULL }, };
06bbab1b
BK
7630
7631/*
7632 * Fix Command Arguments for Vxworks_Gcc_Problem
7633 */
6aa1f8c1 7634static const char* apzVxworks_Gcc_ProblemPatch[] = { sed_cmd_z,
be02fa1a 7635 "-e", "s/#ifdef __GNUC_TYPEOF_FEATURE_BROKEN_USE_DEFAULT_UNTIL_FIXED__/#if 1/",
c329beb0
BK
7636 "-e", "/[ \t]size_t/i\\\n\
7637#ifndef _GCC_SIZE_T\\\n\
7638#define _GCC_SIZE_T\n",
7639 "-e", "/[ \t]size_t/a\\\n\
7640#endif\n",
7641 "-e", "/[ \t]ptrdiff_t/i\\\n\
7642#ifndef _GCC_PTRDIFF_T\\\n\
7643#define _GCC_PTRDIFF_T\n",
7644 "-e", "/[ \t]ptrdiff_t/a\\\n\
7645#endif\n",
7646 "-e", "/[ \t]wchar_t/i\\\n\
7647#ifndef _GCC_WCHAR_T\\\n\
7648#define _GCC_WCHAR_T\n",
7649 "-e", "/[ \t]wchar_t/a\\\n\
7650#endif\n",
06bbab1b
BK
7651 (char*)NULL };
7652
7653/* * * * * * * * * * * * * * * * * * * * * * * * * *
7654 *
5abc1f74 7655 * Description of Vxworks_Needs_Vxtypes fix
06bbab1b
BK
7656 */
7657tSCC zVxworks_Needs_VxtypesName[] =
3be1fb72
ZW
7658 "vxworks_needs_vxtypes";
7659
06bbab1b
BK
7660/*
7661 * File name selection pattern
7662 */
7663tSCC zVxworks_Needs_VxtypesList[] =
401be4b6 7664 "time.h\0";
06bbab1b
BK
7665/*
7666 * Machine/OS name selection pattern
7667 */
7668#define apzVxworks_Needs_VxtypesMachs (const char**)NULL
7669
7670/*
be02fa1a 7671 * content selection pattern - do fix if pattern found
06bbab1b
BK
7672 */
7673tSCC zVxworks_Needs_VxtypesSelect0[] =
5d7d28c2 7674 "uint_t([ \t]+_clocks_per_sec)";
06bbab1b
BK
7675
7676#define VXWORKS_NEEDS_VXTYPES_TEST_CT 1
3af556f7 7677static tTestDesc aVxworks_Needs_VxtypesTests[] = {
5abc1f74 7678 { TT_EGREP, zVxworks_Needs_VxtypesSelect0, (regex_t*)NULL }, };
06bbab1b
BK
7679
7680/*
7681 * Fix Command Arguments for Vxworks_Needs_Vxtypes
7682 */
3af556f7 7683static const char* apzVxworks_Needs_VxtypesPatch[] = {
5d7d28c2
BK
7684 "format",
7685 "unsigned int%1",
06bbab1b
BK
7686 (char*)NULL };
7687
7688/* * * * * * * * * * * * * * * * * * * * * * * * * *
7689 *
5abc1f74 7690 * Description of Vxworks_Needs_Vxworks fix
06bbab1b
BK
7691 */
7692tSCC zVxworks_Needs_VxworksName[] =
3be1fb72
ZW
7693 "vxworks_needs_vxworks";
7694
06bbab1b
BK
7695/*
7696 * File name selection pattern
7697 */
7698tSCC zVxworks_Needs_VxworksList[] =
401be4b6 7699 "sys/stat.h\0";
06bbab1b
BK
7700/*
7701 * Machine/OS name selection pattern
7702 */
7703#define apzVxworks_Needs_VxworksMachs (const char**)NULL
7704
7705/*
be02fa1a 7706 * content selection pattern - do fix if pattern found
06bbab1b
BK
7707 */
7708tSCC zVxworks_Needs_VxworksSelect0[] =
5d7d28c2 7709 "#[ \t]define[ \t]+__INCstath";
06bbab1b
BK
7710
7711/*
be02fa1a 7712 * perform the 'test' shell command - do fix on success
06bbab1b
BK
7713 */
7714tSCC zVxworks_Needs_VxworksTest0[] =
48bd9529 7715 " -r types/vxTypesOld.h";
06bbab1b 7716tSCC zVxworks_Needs_VxworksTest1[] =
48bd9529 7717 " -n \"`egrep '#include' $file`\"";
06bbab1b 7718tSCC zVxworks_Needs_VxworksTest2[] =
48bd9529 7719 " -n \"`egrep ULONG $file`\"";
06bbab1b
BK
7720
7721#define VXWORKS_NEEDS_VXWORKS_TEST_CT 4
3af556f7 7722static tTestDesc aVxworks_Needs_VxworksTests[] = {
5abc1f74
BK
7723 { TT_TEST, zVxworks_Needs_VxworksTest0, 0 /* unused */ },
7724 { TT_TEST, zVxworks_Needs_VxworksTest1, 0 /* unused */ },
7725 { TT_TEST, zVxworks_Needs_VxworksTest2, 0 /* unused */ },
7726 { TT_EGREP, zVxworks_Needs_VxworksSelect0, (regex_t*)NULL }, };
06bbab1b
BK
7727
7728/*
7729 * Fix Command Arguments for Vxworks_Needs_Vxworks
7730 */
6aa1f8c1 7731static const char* apzVxworks_Needs_VxworksPatch[] = { sed_cmd_z,
c329beb0
BK
7732 "-e", "/#[ \t]define[ \t][ \t]*__INCstath/a\\\n\
7733#include <types/vxTypesOld.h>\n",
06bbab1b
BK
7734 (char*)NULL };
7735
7736/* * * * * * * * * * * * * * * * * * * * * * * * * *
7737 *
5abc1f74 7738 * Description of Vxworks_Time fix
06bbab1b
BK
7739 */
7740tSCC zVxworks_TimeName[] =
3be1fb72
ZW
7741 "vxworks_time";
7742
06bbab1b
BK
7743/*
7744 * File name selection pattern
7745 */
7746tSCC zVxworks_TimeList[] =
401be4b6 7747 "time.h\0";
06bbab1b
BK
7748/*
7749 * Machine/OS name selection pattern
7750 */
7751#define apzVxworks_TimeMachs (const char**)NULL
7752
7753/*
be02fa1a 7754 * content selection pattern - do fix if pattern found
06bbab1b
BK
7755 */
7756tSCC zVxworks_TimeSelect0[] =
5d7d28c2 7757 "#[ \t]*define[ \t]+VOIDFUNCPTR[ \t].*";
06bbab1b
BK
7758
7759/*
be02fa1a 7760 * perform the 'test' shell command - do fix on success
06bbab1b
BK
7761 */
7762tSCC zVxworks_TimeTest0[] =
48bd9529 7763 " -r vxWorks.h";
06bbab1b
BK
7764
7765#define VXWORKS_TIME_TEST_CT 2
3af556f7 7766static tTestDesc aVxworks_TimeTests[] = {
5abc1f74
BK
7767 { TT_TEST, zVxworks_TimeTest0, 0 /* unused */ },
7768 { TT_EGREP, zVxworks_TimeSelect0, (regex_t*)NULL }, };
06bbab1b
BK
7769
7770/*
7771 * Fix Command Arguments for Vxworks_Time
7772 */
3af556f7 7773static const char* apzVxworks_TimePatch[] = {
5d7d28c2
BK
7774 "format",
7775 "#ifndef __gcc_VOIDFUNCPTR_defined\n\
7776#ifdef __cplusplus\n\
7777typedef void (*__gcc_VOIDFUNCPTR) (...);\n\
7778#else\n\
7779typedef void (*__gcc_VOIDFUNCPTR) ();\n\
7780#endif\n\
7781#define __gcc_VOIDFUNCPTR_defined\n\
7782#endif\n\
7783#define VOIDFUNCPTR __gcc_VOIDFUNCPTR",
06bbab1b
BK
7784 (char*)NULL };
7785
7786/* * * * * * * * * * * * * * * * * * * * * * * * * *
7787 *
5abc1f74 7788 * Description of X11_Class fix
06bbab1b
BK
7789 */
7790tSCC zX11_ClassName[] =
3be1fb72
ZW
7791 "x11_class";
7792
06bbab1b
BK
7793/*
7794 * File name selection pattern
7795 */
7796tSCC zX11_ClassList[] =
401be4b6 7797 "X11/ShellP.h\0";
06bbab1b
BK
7798/*
7799 * Machine/OS name selection pattern
7800 */
7801#define apzX11_ClassMachs (const char**)NULL
7802
c1fd153e
BK
7803/*
7804 * content selection pattern - do fix if pattern found
7805 */
7806tSCC zX11_ClassSelect0[] =
7807 "^([ \t]*char \\*)class;(.*)";
7808
06bbab1b 7809/*
be02fa1a 7810 * content bypass pattern - skip fix if pattern found
06bbab1b
BK
7811 */
7812tSCC zX11_ClassBypass0[] =
7813 "__cplusplus";
7814
c1fd153e 7815#define X11_CLASS_TEST_CT 2
3af556f7 7816static tTestDesc aX11_ClassTests[] = {
c1fd153e
BK
7817 { TT_NEGREP, zX11_ClassBypass0, (regex_t*)NULL },
7818 { TT_EGREP, zX11_ClassSelect0, (regex_t*)NULL }, };
06bbab1b
BK
7819
7820/*
7821 * Fix Command Arguments for X11_Class
7822 */
3af556f7 7823static const char* apzX11_ClassPatch[] = {
c1fd153e
BK
7824 "format",
7825 "#ifdef __cplusplus\n\
7826%1c_class;%2\n\
7827#else\n\
7828%1class;%2\n\
7829#endif",
06bbab1b
BK
7830 (char*)NULL };
7831
7832/* * * * * * * * * * * * * * * * * * * * * * * * * *
7833 *
5abc1f74 7834 * Description of X11_Class_Usage fix
06bbab1b
BK
7835 */
7836tSCC zX11_Class_UsageName[] =
3be1fb72
ZW
7837 "x11_class_usage";
7838
06bbab1b
BK
7839/*
7840 * File name selection pattern
7841 */
7842tSCC zX11_Class_UsageList[] =
401be4b6 7843 "Xm/BaseClassI.h\0";
06bbab1b
BK
7844/*
7845 * Machine/OS name selection pattern
7846 */
7847#define apzX11_Class_UsageMachs (const char**)NULL
7848
5d7d28c2
BK
7849/*
7850 * content selection pattern - do fix if pattern found
7851 */
7852tSCC zX11_Class_UsageSelect0[] =
7853 " class\\)";
7854
06bbab1b 7855/*
be02fa1a 7856 * content bypass pattern - skip fix if pattern found
06bbab1b
BK
7857 */
7858tSCC zX11_Class_UsageBypass0[] =
7859 "__cplusplus";
7860
5d7d28c2 7861#define X11_CLASS_USAGE_TEST_CT 2
3af556f7 7862static tTestDesc aX11_Class_UsageTests[] = {
5d7d28c2
BK
7863 { TT_NEGREP, zX11_Class_UsageBypass0, (regex_t*)NULL },
7864 { TT_EGREP, zX11_Class_UsageSelect0, (regex_t*)NULL }, };
06bbab1b
BK
7865
7866/*
7867 * Fix Command Arguments for X11_Class_Usage
7868 */
3af556f7 7869static const char* apzX11_Class_UsagePatch[] = {
5d7d28c2
BK
7870 "format",
7871 " c_class)",
06bbab1b
BK
7872 (char*)NULL };
7873
7874/* * * * * * * * * * * * * * * * * * * * * * * * * *
7875 *
5abc1f74 7876 * Description of X11_New fix
06bbab1b
BK
7877 */
7878tSCC zX11_NewName[] =
3be1fb72
ZW
7879 "x11_new";
7880
06bbab1b
BK
7881/*
7882 * File name selection pattern
7883 */
7884tSCC zX11_NewList[] =
401be4b6 7885 "Xm/Traversal.h\0";
06bbab1b
BK
7886/*
7887 * Machine/OS name selection pattern
7888 */
7889#define apzX11_NewMachs (const char**)NULL
7890
7891/*
be02fa1a 7892 * content bypass pattern - skip fix if pattern found
06bbab1b
BK
7893 */
7894tSCC zX11_NewBypass0[] =
7895 "__cplusplus";
7896
7897#define X11_NEW_TEST_CT 1
3af556f7 7898static tTestDesc aX11_NewTests[] = {
5abc1f74 7899 { TT_NEGREP, zX11_NewBypass0, (regex_t*)NULL }, };
06bbab1b
BK
7900
7901/*
7902 * Fix Command Arguments for X11_New
7903 */
6aa1f8c1 7904static const char* apzX11_NewPatch[] = { sed_cmd_z,
c329beb0
BK
7905 "-e", "/Widget\told, new;/i\\\n\
7906#ifdef __cplusplus\\\n\
7907\tWidget\told, c_new;\\\n\
7908#else\n",
7909 "-e", "/Widget\told, new;/a\\\n\
7910#endif\n",
be02fa1a 7911 "-e", "s/Widget new,/Widget c_new,/g",
06bbab1b
BK
7912 (char*)NULL };
7913
7914/* * * * * * * * * * * * * * * * * * * * * * * * * *
7915 *
5abc1f74 7916 * Description of X11_Sprintf fix
06bbab1b
BK
7917 */
7918tSCC zX11_SprintfName[] =
3be1fb72
ZW
7919 "x11_sprintf";
7920
06bbab1b
BK
7921/*
7922 * File name selection pattern
7923 */
7924tSCC zX11_SprintfList[] =
401be4b6 7925 "X11/Xmu.h\0X11/Xmu/Xmu.h\0";
06bbab1b
BK
7926/*
7927 * Machine/OS name selection pattern
7928 */
7929#define apzX11_SprintfMachs (const char**)NULL
b51207a4
ZW
7930
7931/*
7932 * content selection pattern - do fix if pattern found
7933 */
7934tSCC zX11_SprintfSelect0[] =
5d7d28c2 7935 "^extern char \\*\tsprintf\\(\\);$";
b51207a4
ZW
7936
7937#define X11_SPRINTF_TEST_CT 1
3af556f7 7938static tTestDesc aX11_SprintfTests[] = {
b51207a4 7939 { TT_EGREP, zX11_SprintfSelect0, (regex_t*)NULL }, };
06bbab1b
BK
7940
7941/*
7942 * Fix Command Arguments for X11_Sprintf
7943 */
3af556f7 7944static const char* apzX11_SprintfPatch[] = {
5d7d28c2
BK
7945 "format",
7946 "#ifndef __STDC__\n\
7947%0\n\
7948#endif /* !defined __STDC__ */",
06bbab1b
BK
7949 (char*)NULL };
7950
3be1fb72 7951
06bbab1b
BK
7952/* * * * * * * * * * * * * * * * * * * * * * * * * *
7953 *
7954 * List of all fixes
7955 */
d4289bdd 7956#define REGEX_COUNT 239
cd985f66 7957#define MACH_LIST_SIZE_LIMIT 181
d4289bdd 7958#define FIX_COUNT 196
5abc1f74 7959
7b78a14a
BK
7960/*
7961 * Enumerate the fixes
7962 */
7963typedef enum {
83644cd5 7964 AAB_AIX_STDIO_FIXIDX,
246e0bd8
GK
7965 AAB_DARWIN7_9_LONG_DOUBLE_FUNCS_FIXIDX,
7966 AAB_DARWIN7_9_LONG_DOUBLE_FUNCS_2_FIXIDX,
7b78a14a
BK
7967 AAB_FD_ZERO_ASM_POSIX_TYPES_H_FIXIDX,
7968 AAB_FD_ZERO_GNU_TYPES_H_FIXIDX,
7969 AAB_FD_ZERO_SELECTBITS_H_FIXIDX,
eadc0202 7970 AAB_SOLARIS_SYS_VARARGS_H_FIXIDX,
0fca111b 7971 AAB_SUN_MEMCPY_FIXIDX,
7b78a14a
BK
7972 AIX_PTHREAD_FIXIDX,
7973 AIX_SYSMACHINE_FIXIDX,
d3535e80 7974 AIX_SYSWAIT_2_FIXIDX,
7b78a14a
BK
7975 AIX_VOLATILE_FIXIDX,
7976 ALPHA___ASSERT_FIXIDX,
f8dc212b 7977 ALPHA___EXTERN_PREFIX_FIXIDX,
fb2c2608
RO
7978 ALPHA___EXTERN_PREFIX_STANDARDS_FIXIDX,
7979 ALPHA___EXTERN_PREFIX_SYS_STAT_FIXIDX,
aaa4d130 7980 ALPHA_ASSERT_FIXIDX,
f6c930a3 7981 ALPHA_BAD_LVAL_FIXIDX,
7b78a14a 7982 ALPHA_GETOPT_FIXIDX,
42ab9282 7983 ALPHA_IF_SEMICOLON_FIXIDX,
7b78a14a 7984 ALPHA_PARENS_FIXIDX,
2a4e8ebc 7985 ALPHA_PTHREAD_FIXIDX,
821281db 7986 ALPHA_PTHREAD_GCC_FIXIDX,
1fda9d7b 7987 ALPHA_PTHREAD_INIT_FIXIDX,
7b78a14a 7988 ALPHA_SBRK_FIXIDX,
f502cbff 7989 ALPHA_WCHAR_FIXIDX,
7b78a14a
BK
7990 AVOID_BOOL_DEFINE_FIXIDX,
7991 AVOID_BOOL_TYPE_FIXIDX,
7992 AVOID_WCHAR_T_TYPE_FIXIDX,
7b78a14a
BK
7993 BAD_STRUCT_TERM_FIXIDX,
7994 BADQUOTE_FIXIDX,
7995 BROKEN_ASSERT_STDIO_FIXIDX,
7996 BROKEN_ASSERT_STDLIB_FIXIDX,
7997 BROKEN_CABS_FIXIDX,
bf73f6d2 7998 BROKEN_NAN_FIXIDX,
8882ac3a 7999 BSD_STDIO_ATTRS_CONFLICT_FIXIDX,
7b78a14a
BK
8000 CTRL_QUOTES_DEF_FIXIDX,
8001 CTRL_QUOTES_USE_FIXIDX,
8002 CXX_UNREADY_FIXIDX,
b6bbae95 8003 DARWIN_EXTERNC_FIXIDX,
005c1a13 8004 DARWIN_GCC4_BREAKAGE_FIXIDX,
3afbff37 8005 DARWIN_PRIVATE_EXTERN_FIXIDX,
fdfbd469
FXC
8006 DARWIN_STDINT_1_FIXIDX,
8007 DARWIN_STDINT_2_FIXIDX,
8008 DARWIN_STDINT_3_FIXIDX,
8009 DARWIN_STDINT_4_FIXIDX,
7b78a14a
BK
8010 DEC_INTERN_ASM_FIXIDX,
8011 DJGPP_WCHAR_H_FIXIDX,
8012 ECD_CURSOR_FIXIDX,
7b78a14a 8013 FREEBSD_GCC3_BREAKAGE_FIXIDX,
28785dde 8014 FREEBSD_GCC4_BREAKAGE_FIXIDX,
502e2a2d 8015 GLIBC_C99_INLINE_1_FIXIDX,
c91e2eae 8016 GLIBC_C99_INLINE_1A_FIXIDX,
502e2a2d
GK
8017 GLIBC_C99_INLINE_2_FIXIDX,
8018 GLIBC_C99_INLINE_3_FIXIDX,
8019 GLIBC_C99_INLINE_4_FIXIDX,
f6f7aabc 8020 GLIBC_MUTEX_INIT_FIXIDX,
e2556904 8021 GLIBC_STDINT_FIXIDX,
928c19bb 8022 GLIBC_TGMATH_FIXIDX,
7b78a14a
BK
8023 GNU_TYPES_FIXIDX,
8024 HP_INLINE_FIXIDX,
8025 HP_SYSFILE_FIXIDX,
6aa1f8c1 8026 HPPA_HPUX_FP_MACROS_FIXIDX,
5ffd49b8 8027 HPUX10_CPP_POW_INLINE_FIXIDX,
eb559363 8028 HPUX11_CPP_POW_INLINE_FIXIDX,
afc41460
BK
8029 HPUX10_CTYPE_DECLARATIONS1_FIXIDX,
8030 HPUX10_CTYPE_DECLARATIONS2_FIXIDX,
4b60eb3b 8031 HPUX10_STDIO_DECLARATIONS_FIXIDX,
0fca111b 8032 HPUX11_ABS_FIXIDX,
27eaa708 8033 HPUX11_FABSF_FIXIDX,
6aa1f8c1 8034 HPUX11_PTHREAD_CONST_FIXIDX,
34b3b0f6 8035 HPUX11_SIZE_T_FIXIDX,
11f9a0ed 8036 HPUX11_SNPRINTF_FIXIDX,
b8d0bbf7 8037 HPUX11_VSNPRINTF_FIXIDX,
7b78a14a 8038 HPUX8_BOGUS_INLINES_FIXIDX,
afc41460 8039 HPUX_CTYPE_MACROS_FIXIDX,
7fbdc950 8040 HPUX_HTONL_FIXIDX,
afc41460 8041 HPUX_LONG_DOUBLE_FIXIDX,
6c907a45 8042 HPUX_LONG_DOUBLE_2_FIXIDX,
7b78a14a 8043 HPUX_SYSTIME_FIXIDX,
e084430d 8044 HPUX_SPU_INFO_FIXIDX,
be645fd9
SE
8045 HPUX11_EXTERN_SENDFILE_FIXIDX,
8046 HPUX11_EXTERN_SENDPATH_FIXIDX,
e10e3ac8 8047 HPUX_EXTERN_ERRNO_FIXIDX,
6c65aa40 8048 HPUX_PTHREAD_INITIALIZERS_FIXIDX,
6c907a45
SE
8049 HPUX_C99_INTPTR_FIXIDX,
8050 HPUX_C99_INTTYPES_FIXIDX,
8051 HPUX_C99_INTTYPES2_FIXIDX,
8052 HPUX_STDINT_LEAST_FIXIDX,
8053 HPUX_STDINT_FAST_FIXIDX,
8054 HPUX_INTTYPE_INT_LEAST8_T_FIXIDX,
8055 HPUX_INTTYPE_INT8_T_FIXIDX,
77923c29
JM
8056 HUGE_VAL_HEX_FIXIDX,
8057 HUGE_VALF_HEX_FIXIDX,
8058 HUGE_VALL_HEX_FIXIDX,
7b78a14a
BK
8059 INT_ABORT_FREE_AND_EXIT_FIXIDX,
8060 IO_QUOTES_DEF_FIXIDX,
8061 IO_QUOTES_USE_FIXIDX,
8062 IP_MISSING_SEMI_FIXIDX,
7a9cdb10 8063 IRIX___RESTRICT_FIXIDX,
e0704143
RS
8064 IRIX___GENERIC1_FIXIDX,
8065 IRIX___GENERIC2_FIXIDX,
7b78a14a
BK
8066 IRIX_ASM_APOSTROPHE_FIXIDX,
8067 IRIX_LIMITS_CONST_FIXIDX,
f23147fe 8068 IRIX_SOCKLEN_T_FIXIDX,
8919fa4a 8069 IRIX_STDINT_C99_FIXIDX,
7b78a14a 8070 IRIX_STDIO_VA_LIST_FIXIDX,
f23147fe 8071 IRIX_WCSFTIME_FIXIDX,
7b78a14a
BK
8072 ISC_FMOD_FIXIDX,
8073 ISC_OMITS_WITH_STDC_FIXIDX,
8074 KANDR_CONCAT_FIXIDX,
fa71a5c3 8075 LINUX_IA64_UCONTEXT_FIXIDX,
d635c707
AN
8076 LYNXOS_NO_WARNING_IN_SYS_TIME_H_FIXIDX,
8077 LYNXOS_MISSING_PUTENV_FIXIDX,
7b78a14a
BK
8078 MACHINE_ANSI_H_VA_LIST_FIXIDX,
8079 MACHINE_NAME_FIXIDX,
8080 MATH_EXCEPTION_FIXIDX,
8081 MATH_HUGE_VAL_FROM_DBL_MAX_FIXIDX,
7b78a14a 8082 NESTED_AUTH_DES_FIXIDX,
7b78a14a 8083 NESTED_SYS_LIMITS_FIXIDX,
7270dd8e 8084 NETBSD_C99_INLINE_1_FIXIDX,
63729d84 8085 NETBSD_C99_INLINE_2_FIXIDX,
3edc4b23 8086 NETBSD_EXTRA_SEMICOLON_FIXIDX,
207bf79d
JM
8087 NEWLIB_STDINT_1_FIXIDX,
8088 NEWLIB_STDINT_2_FIXIDX,
7b78a14a
BK
8089 NEXT_MATH_PREFIX_FIXIDX,
8090 NEXT_TEMPLATE_FIXIDX,
8091 NEXT_VOLITILE_FIXIDX,
8092 NEXT_WAIT_UNION_FIXIDX,
8093 NODEENT_SYNTAX_FIXIDX,
9cb82550 8094 OPENBSD_NULL_DEFINITION_FIXIDX,
dc70e81d 8095 OBSTACK_LVALUE_CAST_FIXIDX,
261b8381 8096 OPENBSD_VA_START_FIXIDX,
7b78a14a
BK
8097 OSF_NAMESPACE_A_FIXIDX,
8098 OSF_NAMESPACE_C_FIXIDX,
14bfd7c7 8099 PTHREAD_INCOMPLETE_STRUCT_ARGUMENT_FIXIDX,
7b78a14a 8100 READ_RET_TYPE_FIXIDX,
6ed6a1b9
JM
8101 RPC_XDR_LVALUE_CAST_A_FIXIDX,
8102 RPC_XDR_LVALUE_CAST_B_FIXIDX,
7b78a14a
BK
8103 RS6000_DOUBLE_FIXIDX,
8104 RS6000_FCHMOD_FIXIDX,
8105 RS6000_PARAM_FIXIDX,
de0656cf 8106 SCO_MATH_FIXIDX,
925a4487
EB
8107 SOLARIS_MATH_1_FIXIDX,
8108 SOLARIS_MATH_2_FIXIDX,
8109 SOLARIS_MATH_3_FIXIDX,
8110 SOLARIS_MATH_4_FIXIDX,
925a4487
EB
8111 SOLARIS_MATH_8_FIXIDX,
8112 SOLARIS_MATH_9_FIXIDX,
c951ae40 8113 SOLARIS_MATH_10_FIXIDX,
7a9cdb10 8114 SOLARIS_MUTEX_INIT_2_FIXIDX,
2b655a0a
KG
8115 SOLARIS_RWLOCK_INIT_1_FIXIDX,
8116 SOLARIS_ONCE_INIT_1_FIXIDX,
0a1f02df 8117 SOLARIS_ONCE_INIT_2_FIXIDX,
b0999b01
EB
8118 SOLARIS_INT_CONST_FIXIDX,
8119 SOLARIS_INT_LIMITS_1_FIXIDX,
8120 SOLARIS_INT_LIMITS_2_FIXIDX,
d4289bdd 8121 SOLARIS_INT_TYPES_FIXIDX,
fba39eaf 8122 SOLARIS_STDIO_TAG_FIXIDX,
7b78a14a
BK
8123 STATSSWTCH_FIXIDX,
8124 STDIO_STDARG_H_FIXIDX,
8125 STDIO_VA_LIST_FIXIDX,
40d05429 8126 STDIO_VA_LIST_CLIENTS_FIXIDX,
7b78a14a
BK
8127 STRICT_ANSI_NOT_FIXIDX,
8128 STRICT_ANSI_NOT_CTD_FIXIDX,
8129 STRICT_ANSI_ONLY_FIXIDX,
8130 STRUCT_FILE_FIXIDX,
8131 STRUCT_SOCKADDR_FIXIDX,
8132 SUN_AUTH_PROTO_FIXIDX,
8133 SUN_BOGUS_IFDEF_FIXIDX,
8134 SUN_CATMACRO_FIXIDX,
8135 SUN_MALLOC_FIXIDX,
8136 SUN_RUSERS_SEMI_FIXIDX,
8137 SUN_SIGNAL_FIXIDX,
7b78a14a 8138 SUNOS_STRLEN_FIXIDX,
de0656cf 8139 SVR4_DISABLE_OPT_FIXIDX,
7b78a14a
BK
8140 SVR4_GETCWD_FIXIDX,
8141 SVR4_PROFIL_FIXIDX,
1d109416 8142 SVR4_SIGHANDLER_TYPE_FIXIDX,
76d2e2c5 8143 SVR4_UNDECLARED_GETRNGE_FIXIDX,
7b78a14a
BK
8144 SYSV68_STRING_FIXIDX,
8145 SYSZ_STDLIB_FOR_SUN_FIXIDX,
3d78f2e9 8146 THREAD_KEYWORD_FIXIDX,
7b78a14a 8147 TINFO_CPLUSPLUS_FIXIDX,
7b78a14a
BK
8148 ULTRIX_CONST_FIXIDX,
8149 ULTRIX_CONST2_FIXIDX,
7b78a14a
BK
8150 VA_I960_MACRO_FIXIDX,
8151 VOID_NULL_FIXIDX,
8152 VXWORKS_GCC_PROBLEM_FIXIDX,
8153 VXWORKS_NEEDS_VXTYPES_FIXIDX,
8154 VXWORKS_NEEDS_VXWORKS_FIXIDX,
8155 VXWORKS_TIME_FIXIDX,
8156 X11_CLASS_FIXIDX,
8157 X11_CLASS_USAGE_FIXIDX,
8158 X11_NEW_FIXIDX,
8159 X11_SPRINTF_FIXIDX
8160} t_fixinc_idx;
8161
be02fa1a 8162tFixDesc fixDescList[ FIX_COUNT ] = {
83644cd5
PG
8163 { zAab_Aix_StdioName, zAab_Aix_StdioList,
8164 apzAab_Aix_StdioMachs,
8165 AAB_AIX_STDIO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8166 aAab_Aix_StdioTests, apzAab_Aix_StdioPatch, 0 },
8167
246e0bd8
GK
8168 { zAab_Darwin7_9_Long_Double_FuncsName, zAab_Darwin7_9_Long_Double_FuncsList,
8169 apzAab_Darwin7_9_Long_Double_FuncsMachs,
8170 AAB_DARWIN7_9_LONG_DOUBLE_FUNCS_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
8171 aAab_Darwin7_9_Long_Double_FuncsTests, apzAab_Darwin7_9_Long_Double_FuncsPatch, 0 },
8172
8173 { zAab_Darwin7_9_Long_Double_Funcs_2Name, zAab_Darwin7_9_Long_Double_Funcs_2List,
8174 apzAab_Darwin7_9_Long_Double_Funcs_2Machs,
8175 AAB_DARWIN7_9_LONG_DOUBLE_FUNCS_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8176 aAab_Darwin7_9_Long_Double_Funcs_2Tests, apzAab_Darwin7_9_Long_Double_Funcs_2Patch, 0 },
8177
d7eb5a45 8178 { zAab_Fd_Zero_Asm_Posix_Types_HName, zAab_Fd_Zero_Asm_Posix_Types_HList,
f5b105ca 8179 apzAab_Fd_Zero_Asm_Posix_Types_HMachs,
d7eb5a45 8180 AAB_FD_ZERO_ASM_POSIX_TYPES_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
37082e6d 8181 aAab_Fd_Zero_Asm_Posix_Types_HTests, apzAab_Fd_Zero_Asm_Posix_Types_HPatch, 0 },
8aeb3b0e 8182
d7eb5a45 8183 { zAab_Fd_Zero_Gnu_Types_HName, zAab_Fd_Zero_Gnu_Types_HList,
f5b105ca 8184 apzAab_Fd_Zero_Gnu_Types_HMachs,
d7eb5a45 8185 AAB_FD_ZERO_GNU_TYPES_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
37082e6d 8186 aAab_Fd_Zero_Gnu_Types_HTests, apzAab_Fd_Zero_Gnu_Types_HPatch, 0 },
8aeb3b0e 8187
d7eb5a45 8188 { zAab_Fd_Zero_Selectbits_HName, zAab_Fd_Zero_Selectbits_HList,
f5b105ca 8189 apzAab_Fd_Zero_Selectbits_HMachs,
d7eb5a45 8190 AAB_FD_ZERO_SELECTBITS_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
37082e6d 8191 aAab_Fd_Zero_Selectbits_HTests, apzAab_Fd_Zero_Selectbits_HPatch, 0 },
8aeb3b0e 8192
eadc0202
RH
8193 { zAab_Solaris_Sys_Varargs_HName, zAab_Solaris_Sys_Varargs_HList,
8194 apzAab_Solaris_Sys_Varargs_HMachs,
8195 AAB_SOLARIS_SYS_VARARGS_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
8196 aAab_Solaris_Sys_Varargs_HTests, apzAab_Solaris_Sys_Varargs_HPatch, 0 },
8197
0fca111b
SE
8198 { zAab_Sun_MemcpyName, zAab_Sun_MemcpyList,
8199 apzAab_Sun_MemcpyMachs,
8200 AAB_SUN_MEMCPY_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
8201 aAab_Sun_MemcpyTests, apzAab_Sun_MemcpyPatch, 0 },
8202
2c82e043
GK
8203 { zAix_PthreadName, zAix_PthreadList,
8204 apzAix_PthreadMachs,
8205 AIX_PTHREAD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
37082e6d 8206 aAix_PthreadTests, apzAix_PthreadPatch, 0 },
2c82e043
GK
8207
8208 { zAix_SysmachineName, zAix_SysmachineList,
8209 apzAix_SysmachineMachs,
8210 AIX_SYSMACHINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
37082e6d 8211 aAix_SysmachineTests, apzAix_SysmachinePatch, 0 },
2c82e043 8212
d3535e80
RS
8213 { zAix_Syswait_2Name, zAix_Syswait_2List,
8214 apzAix_Syswait_2Machs,
8215 AIX_SYSWAIT_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8216 aAix_Syswait_2Tests, apzAix_Syswait_2Patch, 0 },
8217
06bbab1b 8218 { zAix_VolatileName, zAix_VolatileList,
f5b105ca 8219 apzAix_VolatileMachs,
99d05d99 8220 AIX_VOLATILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
37082e6d 8221 aAix_VolatileTests, apzAix_VolatilePatch, 0 },
06bbab1b 8222
a88072eb
RO
8223 { zAlpha___AssertName, zAlpha___AssertList,
8224 apzAlpha___AssertMachs,
8225 ALPHA___ASSERT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8226 aAlpha___AssertTests, apzAlpha___AssertPatch, 0 },
8227
f8dc212b
RO
8228 { zAlpha___Extern_PrefixName, zAlpha___Extern_PrefixList,
8229 apzAlpha___Extern_PrefixMachs,
8230 ALPHA___EXTERN_PREFIX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8231 aAlpha___Extern_PrefixTests, apzAlpha___Extern_PrefixPatch, 0 },
8232
fb2c2608
RO
8233 { zAlpha___Extern_Prefix_StandardsName, zAlpha___Extern_Prefix_StandardsList,
8234 apzAlpha___Extern_Prefix_StandardsMachs,
8235 ALPHA___EXTERN_PREFIX_STANDARDS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8236 aAlpha___Extern_Prefix_StandardsTests, apzAlpha___Extern_Prefix_StandardsPatch, 0 },
8237
8238 { zAlpha___Extern_Prefix_Sys_StatName, zAlpha___Extern_Prefix_Sys_StatList,
8239 apzAlpha___Extern_Prefix_Sys_StatMachs,
8240 ALPHA___EXTERN_PREFIX_SYS_STAT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8241 aAlpha___Extern_Prefix_Sys_StatTests, apzAlpha___Extern_Prefix_Sys_StatPatch, 0 },
8242
aaa4d130
RO
8243 { zAlpha_AssertName, zAlpha_AssertList,
8244 apzAlpha_AssertMachs,
8245 ALPHA_ASSERT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8246 aAlpha_AssertTests, apzAlpha_AssertPatch, 0 },
8247
f6c930a3
RO
8248 { zAlpha_Bad_LvalName, zAlpha_Bad_LvalList,
8249 apzAlpha_Bad_LvalMachs,
8250 ALPHA_BAD_LVAL_TEST_CT, FD_MACH_ONLY,
8251 aAlpha_Bad_LvalTests, apzAlpha_Bad_LvalPatch, 0 },
8252
06bbab1b 8253 { zAlpha_GetoptName, zAlpha_GetoptList,
f5b105ca 8254 apzAlpha_GetoptMachs,
99d05d99 8255 ALPHA_GETOPT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
37082e6d 8256 aAlpha_GetoptTests, apzAlpha_GetoptPatch, 0 },
06bbab1b 8257
42ab9282
GB
8258 { zAlpha_If_SemicolonName, zAlpha_If_SemicolonList,
8259 apzAlpha_If_SemicolonMachs,
8260 ALPHA_IF_SEMICOLON_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8261 aAlpha_If_SemicolonTests, apzAlpha_If_SemicolonPatch, 0 },
8262
06bbab1b 8263 { zAlpha_ParensName, zAlpha_ParensList,
f5b105ca 8264 apzAlpha_ParensMachs,
99d05d99 8265 ALPHA_PARENS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
37082e6d 8266 aAlpha_ParensTests, apzAlpha_ParensPatch, 0 },
06bbab1b 8267
2a4e8ebc
RO
8268 { zAlpha_PthreadName, zAlpha_PthreadList,
8269 apzAlpha_PthreadMachs,
8270 ALPHA_PTHREAD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8271 aAlpha_PthreadTests, apzAlpha_PthreadPatch, 0 },
8272
821281db
RO
8273 { zAlpha_Pthread_GccName, zAlpha_Pthread_GccList,
8274 apzAlpha_Pthread_GccMachs,
8275 ALPHA_PTHREAD_GCC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8276 aAlpha_Pthread_GccTests, apzAlpha_Pthread_GccPatch, 0 },
8277
1fda9d7b
RS
8278 { zAlpha_Pthread_InitName, zAlpha_Pthread_InitList,
8279 apzAlpha_Pthread_InitMachs,
8280 ALPHA_PTHREAD_INIT_TEST_CT, FD_MACH_ONLY,
8281 aAlpha_Pthread_InitTests, apzAlpha_Pthread_InitPatch, 0 },
8282
06bbab1b 8283 { zAlpha_SbrkName, zAlpha_SbrkList,
f5b105ca 8284 apzAlpha_SbrkMachs,
99d05d99 8285 ALPHA_SBRK_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
37082e6d 8286 aAlpha_SbrkTests, apzAlpha_SbrkPatch, 0 },
06bbab1b 8287
f502cbff
RO
8288 { zAlpha_WcharName, zAlpha_WcharList,
8289 apzAlpha_WcharMachs,
8290 ALPHA_WCHAR_TEST_CT, FD_MACH_ONLY,
8291 aAlpha_WcharTests, apzAlpha_WcharPatch, 0 },
8292
cd64831f
BK
8293 { zAvoid_Bool_DefineName, zAvoid_Bool_DefineList,
8294 apzAvoid_Bool_DefineMachs,
8295 AVOID_BOOL_DEFINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
37082e6d 8296 aAvoid_Bool_DefineTests, apzAvoid_Bool_DefinePatch, 0 },
cd64831f
BK
8297
8298 { zAvoid_Bool_TypeName, zAvoid_Bool_TypeList,
8299 apzAvoid_Bool_TypeMachs,
8300 AVOID_BOOL_TYPE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
37082e6d 8301 aAvoid_Bool_TypeTests, apzAvoid_Bool_TypePatch, 0 },
06bbab1b 8302
8b4c8a86
MM
8303 { zAvoid_Wchar_T_TypeName, zAvoid_Wchar_T_TypeList,
8304 apzAvoid_Wchar_T_TypeMachs,
8305 AVOID_WCHAR_T_TYPE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
37082e6d 8306 aAvoid_Wchar_T_TypeTests, apzAvoid_Wchar_T_TypePatch, 0 },
8b4c8a86 8307
06bbab1b 8308 { zBad_Struct_TermName, zBad_Struct_TermList,
f5b105ca 8309 apzBad_Struct_TermMachs,
cd64831f 8310 BAD_STRUCT_TERM_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
37082e6d 8311 aBad_Struct_TermTests, apzBad_Struct_TermPatch, 0 },
06bbab1b
BK
8312
8313 { zBadquoteName, zBadquoteList,
f5b105ca 8314 apzBadquoteMachs,
cd64831f 8315 BADQUOTE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
37082e6d 8316 aBadquoteTests, apzBadquotePatch, 0 },
06bbab1b 8317
06bbab1b 8318 { zBroken_Assert_StdioName, zBroken_Assert_StdioList,
f5b105ca 8319 apzBroken_Assert_StdioMachs,
ba8fcfc3 8320 BROKEN_ASSERT_STDIO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
37082e6d 8321 aBroken_Assert_StdioTests, apzBroken_Assert_StdioPatch, 0 },
06bbab1b
BK
8322
8323 { zBroken_Assert_StdlibName, zBroken_Assert_StdlibList,
f5b105ca 8324 apzBroken_Assert_StdlibMachs,
ba8fcfc3 8325 BROKEN_ASSERT_STDLIB_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
37082e6d 8326 aBroken_Assert_StdlibTests, apzBroken_Assert_StdlibPatch, 0 },
06bbab1b 8327
72b9c7fb 8328 { zBroken_CabsName, zBroken_CabsList,
f5b105ca 8329 apzBroken_CabsMachs,
a942e89f 8330 BROKEN_CABS_TEST_CT, FD_MACH_ONLY,
37082e6d 8331 aBroken_CabsTests, apzBroken_CabsPatch, 0 },
72b9c7fb 8332
bf73f6d2
AP
8333 { zBroken_NanName, zBroken_NanList,
8334 apzBroken_NanMachs,
8335 BROKEN_NAN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8336 aBroken_NanTests, apzBroken_NanPatch, 0 },
8337
8882ac3a
BK
8338 { zBsd_Stdio_Attrs_ConflictName, zBsd_Stdio_Attrs_ConflictList,
8339 apzBsd_Stdio_Attrs_ConflictMachs,
8340 BSD_STDIO_ATTRS_CONFLICT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8341 aBsd_Stdio_Attrs_ConflictTests, apzBsd_Stdio_Attrs_ConflictPatch, 0 },
8342
79589c4d
BK
8343 { zCtrl_Quotes_DefName, zCtrl_Quotes_DefList,
8344 apzCtrl_Quotes_DefMachs,
8345 CTRL_QUOTES_DEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
37082e6d 8346 aCtrl_Quotes_DefTests, apzCtrl_Quotes_DefPatch, 0 },
79589c4d
BK
8347
8348 { zCtrl_Quotes_UseName, zCtrl_Quotes_UseList,
8349 apzCtrl_Quotes_UseMachs,
8350 CTRL_QUOTES_USE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
37082e6d 8351 aCtrl_Quotes_UseTests, apzCtrl_Quotes_UsePatch, 0 },
79589c4d
BK
8352
8353 { zCxx_UnreadyName, zCxx_UnreadyList,
8354 apzCxx_UnreadyMachs,
8355 CXX_UNREADY_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
37082e6d 8356 aCxx_UnreadyTests, apzCxx_UnreadyPatch, 0 },
79589c4d 8357
b6bbae95
GK
8358 { zDarwin_ExterncName, zDarwin_ExterncList,
8359 apzDarwin_ExterncMachs,
8360 DARWIN_EXTERNC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8361 aDarwin_ExterncTests, apzDarwin_ExterncPatch, 0 },
8362
005c1a13
GK
8363 { zDarwin_Gcc4_BreakageName, zDarwin_Gcc4_BreakageList,
8364 apzDarwin_Gcc4_BreakageMachs,
8365 DARWIN_GCC4_BREAKAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8366 aDarwin_Gcc4_BreakageTests, apzDarwin_Gcc4_BreakagePatch, 0 },
8367
3afbff37
GK
8368 { zDarwin_Private_ExternName, zDarwin_Private_ExternList,
8369 apzDarwin_Private_ExternMachs,
8370 DARWIN_PRIVATE_EXTERN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8371 aDarwin_Private_ExternTests, apzDarwin_Private_ExternPatch, 0 },
8372
fdfbd469
FXC
8373 { zDarwin_Stdint_1Name, zDarwin_Stdint_1List,
8374 apzDarwin_Stdint_1Machs,
8375 DARWIN_STDINT_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8376 aDarwin_Stdint_1Tests, apzDarwin_Stdint_1Patch, 0 },
8377
8378 { zDarwin_Stdint_2Name, zDarwin_Stdint_2List,
8379 apzDarwin_Stdint_2Machs,
8380 DARWIN_STDINT_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8381 aDarwin_Stdint_2Tests, apzDarwin_Stdint_2Patch, 0 },
8382
8383 { zDarwin_Stdint_3Name, zDarwin_Stdint_3List,
8384 apzDarwin_Stdint_3Machs,
8385 DARWIN_STDINT_3_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8386 aDarwin_Stdint_3Tests, apzDarwin_Stdint_3Patch, 0 },
8387
8388 { zDarwin_Stdint_4Name, zDarwin_Stdint_4List,
8389 apzDarwin_Stdint_4Machs,
8390 DARWIN_STDINT_4_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8391 aDarwin_Stdint_4Tests, apzDarwin_Stdint_4Patch, 0 },
8392
48bd9529 8393 { zDec_Intern_AsmName, zDec_Intern_AsmList,
f5b105ca 8394 apzDec_Intern_AsmMachs,
48bd9529 8395 DEC_INTERN_ASM_TEST_CT, FD_MACH_ONLY,
37082e6d 8396 aDec_Intern_AsmTests, apzDec_Intern_AsmPatch, 0 },
48bd9529 8397
6822468a
LB
8398 { zDjgpp_Wchar_HName, zDjgpp_Wchar_HList,
8399 apzDjgpp_Wchar_HMachs,
8400 DJGPP_WCHAR_H_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8401 aDjgpp_Wchar_HTests, apzDjgpp_Wchar_HPatch, 0 },
8402
06bbab1b 8403 { zEcd_CursorName, zEcd_CursorList,
f5b105ca 8404 apzEcd_CursorMachs,
cd64831f 8405 ECD_CURSOR_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
37082e6d 8406 aEcd_CursorTests, apzEcd_CursorPatch, 0 },
06bbab1b 8407
89647e8a
LR
8408 { zFreebsd_Gcc3_BreakageName, zFreebsd_Gcc3_BreakageList,
8409 apzFreebsd_Gcc3_BreakageMachs,
8410 FREEBSD_GCC3_BREAKAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8411 aFreebsd_Gcc3_BreakageTests, apzFreebsd_Gcc3_BreakagePatch, 0 },
8412
28785dde
LR
8413 { zFreebsd_Gcc4_BreakageName, zFreebsd_Gcc4_BreakageList,
8414 apzFreebsd_Gcc4_BreakageMachs,
8415 FREEBSD_GCC4_BREAKAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8416 aFreebsd_Gcc4_BreakageTests, apzFreebsd_Gcc4_BreakagePatch, 0 },
8417
502e2a2d
GK
8418 { zGlibc_C99_Inline_1Name, zGlibc_C99_Inline_1List,
8419 apzGlibc_C99_Inline_1Machs,
8420 GLIBC_C99_INLINE_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8421 aGlibc_C99_Inline_1Tests, apzGlibc_C99_Inline_1Patch, 0 },
8422
c91e2eae
HPN
8423 { zGlibc_C99_Inline_1aName, zGlibc_C99_Inline_1aList,
8424 apzGlibc_C99_Inline_1aMachs,
8425 GLIBC_C99_INLINE_1A_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8426 aGlibc_C99_Inline_1aTests, apzGlibc_C99_Inline_1aPatch, 0 },
8427
502e2a2d
GK
8428 { zGlibc_C99_Inline_2Name, zGlibc_C99_Inline_2List,
8429 apzGlibc_C99_Inline_2Machs,
8430 GLIBC_C99_INLINE_2_TEST_CT, FD_MACH_ONLY,
8431 aGlibc_C99_Inline_2Tests, apzGlibc_C99_Inline_2Patch, 0 },
8432
8433 { zGlibc_C99_Inline_3Name, zGlibc_C99_Inline_3List,
8434 apzGlibc_C99_Inline_3Machs,
8435 GLIBC_C99_INLINE_3_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8436 aGlibc_C99_Inline_3Tests, apzGlibc_C99_Inline_3Patch, 0 },
8437
8438 { zGlibc_C99_Inline_4Name, zGlibc_C99_Inline_4List,
8439 apzGlibc_C99_Inline_4Machs,
8440 GLIBC_C99_INLINE_4_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8441 aGlibc_C99_Inline_4Tests, apzGlibc_C99_Inline_4Patch, 0 },
8442
f6f7aabc
UB
8443 { zGlibc_Mutex_InitName, zGlibc_Mutex_InitList,
8444 apzGlibc_Mutex_InitMachs,
8445 GLIBC_MUTEX_INIT_TEST_CT, FD_MACH_ONLY,
8446 aGlibc_Mutex_InitTests, apzGlibc_Mutex_InitPatch, 0 },
8447
e2556904
JM
8448 { zGlibc_StdintName, zGlibc_StdintList,
8449 apzGlibc_StdintMachs,
8450 GLIBC_STDINT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8451 aGlibc_StdintTests, apzGlibc_StdintPatch, 0 },
8452
928c19bb
JM
8453 { zGlibc_TgmathName, zGlibc_TgmathList,
8454 apzGlibc_TgmathMachs,
8455 GLIBC_TGMATH_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8456 aGlibc_TgmathTests, apzGlibc_TgmathPatch, 0 },
8457
7b78a14a
BK
8458 { zGnu_TypesName, zGnu_TypesList,
8459 apzGnu_TypesMachs,
9fcc7481 8460 GNU_TYPES_TEST_CT, FD_MACH_IFNOT | FD_SUBROUTINE,
7b78a14a
BK
8461 aGnu_TypesTests, apzGnu_TypesPatch, 0 },
8462
06bbab1b 8463 { zHp_InlineName, zHp_InlineList,
f5b105ca 8464 apzHp_InlineMachs,
cd64831f 8465 HP_INLINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
37082e6d 8466 aHp_InlineTests, apzHp_InlinePatch, 0 },
06bbab1b
BK
8467
8468 { zHp_SysfileName, zHp_SysfileList,
f5b105ca 8469 apzHp_SysfileMachs,
cd64831f 8470 HP_SYSFILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
37082e6d 8471 aHp_SysfileTests, apzHp_SysfilePatch, 0 },
06bbab1b 8472
6aa1f8c1
BK
8473 { zHppa_Hpux_Fp_MacrosName, zHppa_Hpux_Fp_MacrosList,
8474 apzHppa_Hpux_Fp_MacrosMachs,
8475 HPPA_HPUX_FP_MACROS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8476 aHppa_Hpux_Fp_MacrosTests, apzHppa_Hpux_Fp_MacrosPatch, 0 },
8477
5ffd49b8
JDA
8478 { zHpux10_Cpp_Pow_InlineName, zHpux10_Cpp_Pow_InlineList,
8479 apzHpux10_Cpp_Pow_InlineMachs,
8480 HPUX10_CPP_POW_INLINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8481 aHpux10_Cpp_Pow_InlineTests, apzHpux10_Cpp_Pow_InlinePatch, 0 },
8482
eb559363
BK
8483 { zHpux11_Cpp_Pow_InlineName, zHpux11_Cpp_Pow_InlineList,
8484 apzHpux11_Cpp_Pow_InlineMachs,
8485 HPUX11_CPP_POW_INLINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8486 aHpux11_Cpp_Pow_InlineTests, apzHpux11_Cpp_Pow_InlinePatch, 0 },
8487
afc41460
BK
8488 { zHpux10_Ctype_Declarations1Name, zHpux10_Ctype_Declarations1List,
8489 apzHpux10_Ctype_Declarations1Machs,
8490 HPUX10_CTYPE_DECLARATIONS1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8491 aHpux10_Ctype_Declarations1Tests, apzHpux10_Ctype_Declarations1Patch, 0 },
8492
8493 { zHpux10_Ctype_Declarations2Name, zHpux10_Ctype_Declarations2List,
8494 apzHpux10_Ctype_Declarations2Machs,
8495 HPUX10_CTYPE_DECLARATIONS2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8496 aHpux10_Ctype_Declarations2Tests, apzHpux10_Ctype_Declarations2Patch, 0 },
8497
4b60eb3b
JDA
8498 { zHpux10_Stdio_DeclarationsName, zHpux10_Stdio_DeclarationsList,
8499 apzHpux10_Stdio_DeclarationsMachs,
8500 HPUX10_STDIO_DECLARATIONS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8501 aHpux10_Stdio_DeclarationsTests, apzHpux10_Stdio_DeclarationsPatch, 0 },
8502
0fca111b
SE
8503 { zHpux11_AbsName, zHpux11_AbsList,
8504 apzHpux11_AbsMachs,
d758c1db 8505 HPUX11_ABS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
0fca111b
SE
8506 aHpux11_AbsTests, apzHpux11_AbsPatch, 0 },
8507
27eaa708
BK
8508 { zHpux11_FabsfName, zHpux11_FabsfList,
8509 apzHpux11_FabsfMachs,
8510 HPUX11_FABSF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8511 aHpux11_FabsfTests, apzHpux11_FabsfPatch, 0 },
8512
6aa1f8c1
BK
8513 { zHpux11_Pthread_ConstName, zHpux11_Pthread_ConstList,
8514 apzHpux11_Pthread_ConstMachs,
8515 HPUX11_PTHREAD_CONST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8516 aHpux11_Pthread_ConstTests, apzHpux11_Pthread_ConstPatch, 0 },
8517
34b3b0f6
JM
8518 { zHpux11_Size_TName, zHpux11_Size_TList,
8519 apzHpux11_Size_TMachs,
8520 HPUX11_SIZE_T_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8521 aHpux11_Size_TTests, apzHpux11_Size_TPatch, 0 },
8522
11f9a0ed
BK
8523 { zHpux11_SnprintfName, zHpux11_SnprintfList,
8524 apzHpux11_SnprintfMachs,
8525 HPUX11_SNPRINTF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8526 aHpux11_SnprintfTests, apzHpux11_SnprintfPatch, 0 },
8527
b8d0bbf7
BK
8528 { zHpux11_VsnprintfName, zHpux11_VsnprintfList,
8529 apzHpux11_VsnprintfMachs,
8530 HPUX11_VSNPRINTF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8531 aHpux11_VsnprintfTests, apzHpux11_VsnprintfPatch, 0 },
8532
cd64831f
BK
8533 { zHpux8_Bogus_InlinesName, zHpux8_Bogus_InlinesList,
8534 apzHpux8_Bogus_InlinesMachs,
8535 HPUX8_BOGUS_INLINES_TEST_CT, FD_MACH_ONLY,
37082e6d 8536 aHpux8_Bogus_InlinesTests, apzHpux8_Bogus_InlinesPatch, 0 },
cd64831f 8537
afc41460
BK
8538 { zHpux_Ctype_MacrosName, zHpux_Ctype_MacrosList,
8539 apzHpux_Ctype_MacrosMachs,
8540 HPUX_CTYPE_MACROS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8541 aHpux_Ctype_MacrosTests, apzHpux_Ctype_MacrosPatch, 0 },
8542
7fbdc950
JM
8543 { zHpux_HtonlName, zHpux_HtonlList,
8544 apzHpux_HtonlMachs,
8545 HPUX_HTONL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8546 aHpux_HtonlTests, apzHpux_HtonlPatch, 0 },
8547
afc41460
BK
8548 { zHpux_Long_DoubleName, zHpux_Long_DoubleList,
8549 apzHpux_Long_DoubleMachs,
8550 HPUX_LONG_DOUBLE_TEST_CT, FD_MACH_ONLY,
8551 aHpux_Long_DoubleTests, apzHpux_Long_DoublePatch, 0 },
8552
6c907a45
SE
8553 { zHpux_Long_Double_2Name, zHpux_Long_Double_2List,
8554 apzHpux_Long_Double_2Machs,
8555 HPUX_LONG_DOUBLE_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8556 aHpux_Long_Double_2Tests, apzHpux_Long_Double_2Patch, 0 },
8557
7b78a14a
BK
8558 { zHpux_SystimeName, zHpux_SystimeList,
8559 apzHpux_SystimeMachs,
8560 HPUX_SYSTIME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8561 aHpux_SystimeTests, apzHpux_SystimePatch, 0 },
8562
e084430d
SE
8563 { zHpux_Spu_InfoName, zHpux_Spu_InfoList,
8564 apzHpux_Spu_InfoMachs,
8565 HPUX_SPU_INFO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8566 aHpux_Spu_InfoTests, apzHpux_Spu_InfoPatch, 0 },
8567
be645fd9
SE
8568 { zHpux11_Extern_SendfileName, zHpux11_Extern_SendfileList,
8569 apzHpux11_Extern_SendfileMachs,
8570 HPUX11_EXTERN_SENDFILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8571 aHpux11_Extern_SendfileTests, apzHpux11_Extern_SendfilePatch, 0 },
8572
8573 { zHpux11_Extern_SendpathName, zHpux11_Extern_SendpathList,
8574 apzHpux11_Extern_SendpathMachs,
8575 HPUX11_EXTERN_SENDPATH_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8576 aHpux11_Extern_SendpathTests, apzHpux11_Extern_SendpathPatch, 0 },
8577
e10e3ac8
SE
8578 { zHpux_Extern_ErrnoName, zHpux_Extern_ErrnoList,
8579 apzHpux_Extern_ErrnoMachs,
8580 HPUX_EXTERN_ERRNO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8581 aHpux_Extern_ErrnoTests, apzHpux_Extern_ErrnoPatch, 0 },
8582
6c65aa40
JDA
8583 { zHpux_Pthread_InitializersName, zHpux_Pthread_InitializersList,
8584 apzHpux_Pthread_InitializersMachs,
8585 HPUX_PTHREAD_INITIALIZERS_TEST_CT, FD_MACH_ONLY,
8586 aHpux_Pthread_InitializersTests, apzHpux_Pthread_InitializersPatch, 0 },
8587
6c907a45
SE
8588 { zHpux_C99_IntptrName, zHpux_C99_IntptrList,
8589 apzHpux_C99_IntptrMachs,
8590 HPUX_C99_INTPTR_TEST_CT, FD_MACH_ONLY,
8591 aHpux_C99_IntptrTests, apzHpux_C99_IntptrPatch, 0 },
8592
8593 { zHpux_C99_InttypesName, zHpux_C99_InttypesList,
8594 apzHpux_C99_InttypesMachs,
8595 HPUX_C99_INTTYPES_TEST_CT, FD_MACH_ONLY,
8596 aHpux_C99_InttypesTests, apzHpux_C99_InttypesPatch, 0 },
8597
8598 { zHpux_C99_Inttypes2Name, zHpux_C99_Inttypes2List,
8599 apzHpux_C99_Inttypes2Machs,
8600 HPUX_C99_INTTYPES2_TEST_CT, FD_MACH_ONLY,
8601 aHpux_C99_Inttypes2Tests, apzHpux_C99_Inttypes2Patch, 0 },
8602
8603 { zHpux_Stdint_LeastName, zHpux_Stdint_LeastList,
8604 apzHpux_Stdint_LeastMachs,
8605 HPUX_STDINT_LEAST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8606 aHpux_Stdint_LeastTests, apzHpux_Stdint_LeastPatch, 0 },
8607
8608 { zHpux_Stdint_FastName, zHpux_Stdint_FastList,
8609 apzHpux_Stdint_FastMachs,
8610 HPUX_STDINT_FAST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8611 aHpux_Stdint_FastTests, apzHpux_Stdint_FastPatch, 0 },
8612
8613 { zHpux_Inttype_Int_Least8_TName, zHpux_Inttype_Int_Least8_TList,
8614 apzHpux_Inttype_Int_Least8_TMachs,
8615 HPUX_INTTYPE_INT_LEAST8_T_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8616 aHpux_Inttype_Int_Least8_TTests, apzHpux_Inttype_Int_Least8_TPatch, 0 },
8617
8618 { zHpux_Inttype_Int8_TName, zHpux_Inttype_Int8_TList,
8619 apzHpux_Inttype_Int8_TMachs,
8620 HPUX_INTTYPE_INT8_T_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8621 aHpux_Inttype_Int8_TTests, apzHpux_Inttype_Int8_TPatch, 0 },
8622
77923c29
JM
8623 { zHuge_Val_HexName, zHuge_Val_HexList,
8624 apzHuge_Val_HexMachs,
8625 HUGE_VAL_HEX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8626 aHuge_Val_HexTests, apzHuge_Val_HexPatch, 0 },
8627
8628 { zHuge_Valf_HexName, zHuge_Valf_HexList,
8629 apzHuge_Valf_HexMachs,
8630 HUGE_VALF_HEX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8631 aHuge_Valf_HexTests, apzHuge_Valf_HexPatch, 0 },
8632
8633 { zHuge_Vall_HexName, zHuge_Vall_HexList,
8634 apzHuge_Vall_HexMachs,
8635 HUGE_VALL_HEX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8636 aHuge_Vall_HexTests, apzHuge_Vall_HexPatch, 0 },
8637
cb8d5168
BK
8638 { zInt_Abort_Free_And_ExitName, zInt_Abort_Free_And_ExitList,
8639 apzInt_Abort_Free_And_ExitMachs,
8640 INT_ABORT_FREE_AND_EXIT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
37082e6d 8641 aInt_Abort_Free_And_ExitTests, apzInt_Abort_Free_And_ExitPatch, 0 },
cb8d5168 8642
88acf854
BK
8643 { zIo_Quotes_DefName, zIo_Quotes_DefList,
8644 apzIo_Quotes_DefMachs,
8645 IO_QUOTES_DEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
37082e6d 8646 aIo_Quotes_DefTests, apzIo_Quotes_DefPatch, 0 },
88acf854 8647
99d05d99
BK
8648 { zIo_Quotes_UseName, zIo_Quotes_UseList,
8649 apzIo_Quotes_UseMachs,
8650 IO_QUOTES_USE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
37082e6d 8651 aIo_Quotes_UseTests, apzIo_Quotes_UsePatch, 0 },
88acf854 8652
06bbab1b 8653 { zIp_Missing_SemiName, zIp_Missing_SemiList,
f5b105ca 8654 apzIp_Missing_SemiMachs,
06bbab1b 8655 IP_MISSING_SEMI_TEST_CT, FD_MACH_ONLY,
37082e6d 8656 aIp_Missing_SemiTests, apzIp_Missing_SemiPatch, 0 },
06bbab1b 8657
7a9cdb10
DD
8658 { zIrix___RestrictName, zIrix___RestrictList,
8659 apzIrix___RestrictMachs,
8660 IRIX___RESTRICT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8661 aIrix___RestrictTests, apzIrix___RestrictPatch, 0 },
8662
e0704143
RS
8663 { zIrix___Generic1Name, zIrix___Generic1List,
8664 apzIrix___Generic1Machs,
8665 IRIX___GENERIC1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8666 aIrix___Generic1Tests, apzIrix___Generic1Patch, 0 },
8667
8668 { zIrix___Generic2Name, zIrix___Generic2List,
8669 apzIrix___Generic2Machs,
8670 IRIX___GENERIC2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8671 aIrix___Generic2Tests, apzIrix___Generic2Patch, 0 },
8672
79589c4d
BK
8673 { zIrix_Asm_ApostropheName, zIrix_Asm_ApostropheList,
8674 apzIrix_Asm_ApostropheMachs,
8675 IRIX_ASM_APOSTROPHE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
37082e6d 8676 aIrix_Asm_ApostropheTests, apzIrix_Asm_ApostrophePatch, 0 },
79589c4d 8677
8d8d5752
JO
8678 { zIrix_Limits_ConstName, zIrix_Limits_ConstList,
8679 apzIrix_Limits_ConstMachs,
8680 IRIX_LIMITS_CONST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8681 aIrix_Limits_ConstTests, apzIrix_Limits_ConstPatch, 0 },
8682
f23147fe
RO
8683 { zIrix_Socklen_TName, zIrix_Socklen_TList,
8684 apzIrix_Socklen_TMachs,
8685 IRIX_SOCKLEN_T_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8686 aIrix_Socklen_TTests, apzIrix_Socklen_TPatch, 0 },
8687
8919fa4a
RO
8688 { zIrix_Stdint_C99Name, zIrix_Stdint_C99List,
8689 apzIrix_Stdint_C99Machs,
8690 IRIX_STDINT_C99_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8691 aIrix_Stdint_C99Tests, apzIrix_Stdint_C99Patch, 0 },
8692
7b78a14a
BK
8693 { zIrix_Stdio_Va_ListName, zIrix_Stdio_Va_ListList,
8694 apzIrix_Stdio_Va_ListMachs,
8695 IRIX_STDIO_VA_LIST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8696 aIrix_Stdio_Va_ListTests, apzIrix_Stdio_Va_ListPatch, 0 },
8697
f23147fe
RO
8698 { zIrix_WcsftimeName, zIrix_WcsftimeList,
8699 apzIrix_WcsftimeMachs,
8700 IRIX_WCSFTIME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8701 aIrix_WcsftimeTests, apzIrix_WcsftimePatch, 0 },
8702
06bbab1b 8703 { zIsc_FmodName, zIsc_FmodList,
f5b105ca 8704 apzIsc_FmodMachs,
79589c4d 8705 ISC_FMOD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
37082e6d 8706 aIsc_FmodTests, apzIsc_FmodPatch, 0 },
06bbab1b 8707
7b78a14a
BK
8708 { zIsc_Omits_With_StdcName, zIsc_Omits_With_StdcList,
8709 apzIsc_Omits_With_StdcMachs,
8710 ISC_OMITS_WITH_STDC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8711 aIsc_Omits_With_StdcTests, apzIsc_Omits_With_StdcPatch, 0 },
8712
06bbab1b 8713 { zKandr_ConcatName, zKandr_ConcatList,
f5b105ca 8714 apzKandr_ConcatMachs,
79589c4d 8715 KANDR_CONCAT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
37082e6d 8716 aKandr_ConcatTests, apzKandr_ConcatPatch, 0 },
06bbab1b 8717
fa71a5c3
RS
8718 { zLinux_Ia64_UcontextName, zLinux_Ia64_UcontextList,
8719 apzLinux_Ia64_UcontextMachs,
8720 LINUX_IA64_UCONTEXT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8721 aLinux_Ia64_UcontextTests, apzLinux_Ia64_UcontextPatch, 0 },
8722
d635c707
AN
8723 { zLynxos_No_Warning_In_Sys_Time_HName, zLynxos_No_Warning_In_Sys_Time_HList,
8724 apzLynxos_No_Warning_In_Sys_Time_HMachs,
8725 LYNXOS_NO_WARNING_IN_SYS_TIME_H_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8726 aLynxos_No_Warning_In_Sys_Time_HTests, apzLynxos_No_Warning_In_Sys_Time_HPatch, 0 },
06bbab1b 8727
d635c707
AN
8728 { zLynxos_Missing_PutenvName, zLynxos_Missing_PutenvList,
8729 apzLynxos_Missing_PutenvMachs,
8730 LYNXOS_MISSING_PUTENV_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8731 aLynxos_Missing_PutenvTests, apzLynxos_Missing_PutenvPatch, 0 },
06bbab1b 8732
3be1fb72 8733 { zMachine_Ansi_H_Va_ListName, zMachine_Ansi_H_Va_ListList,
f5b105ca 8734 apzMachine_Ansi_H_Va_ListMachs,
a8228686 8735 MACHINE_ANSI_H_VA_LIST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
37082e6d 8736 aMachine_Ansi_H_Va_ListTests, apzMachine_Ansi_H_Va_ListPatch, 0 },
3be1fb72 8737
06bbab1b 8738 { zMachine_NameName, zMachine_NameList,
f5b105ca 8739 apzMachine_NameMachs,
52c207e2 8740 MACHINE_NAME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
37082e6d 8741 aMachine_NameTests, apzMachine_NamePatch, 0 },
06bbab1b
BK
8742
8743 { zMath_ExceptionName, zMath_ExceptionList,
f5b105ca 8744 apzMath_ExceptionMachs,
ba8fcfc3 8745 MATH_EXCEPTION_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
37082e6d 8746 aMath_ExceptionTests, apzMath_ExceptionPatch, 0 },
06bbab1b 8747
d7eb5a45 8748 { zMath_Huge_Val_From_Dbl_MaxName, zMath_Huge_Val_From_Dbl_MaxList,
f5b105ca 8749 apzMath_Huge_Val_From_Dbl_MaxMachs,
d7eb5a45 8750 MATH_HUGE_VAL_FROM_DBL_MAX_TEST_CT, FD_MACH_ONLY | FD_SHELL_SCRIPT,
37082e6d 8751 aMath_Huge_Val_From_Dbl_MaxTests, apzMath_Huge_Val_From_Dbl_MaxPatch, 0 },
d7eb5a45 8752
7b78a14a
BK
8753 { zNested_Auth_DesName, zNested_Auth_DesList,
8754 apzNested_Auth_DesMachs,
8755 NESTED_AUTH_DES_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8756 aNested_Auth_DesTests, apzNested_Auth_DesPatch, 0 },
8757
79589c4d
BK
8758 { zNested_Sys_LimitsName, zNested_Sys_LimitsList,
8759 apzNested_Sys_LimitsMachs,
8760 NESTED_SYS_LIMITS_TEST_CT, FD_MACH_ONLY,
37082e6d 8761 aNested_Sys_LimitsTests, apzNested_Sys_LimitsPatch, 0 },
7270dd8e
KW
8762
8763 { zNetbsd_C99_Inline_1Name, zNetbsd_C99_Inline_1List,
8764 apzNetbsd_C99_Inline_1Machs,
8765 NETBSD_C99_INLINE_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8766 aNetbsd_C99_Inline_1Tests, apzNetbsd_C99_Inline_1Patch, 0 },
63729d84
KW
8767
8768 { zNetbsd_C99_Inline_2Name, zNetbsd_C99_Inline_2List,
8769 apzNetbsd_C99_Inline_2Machs,
8770 NETBSD_C99_INLINE_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8771 aNetbsd_C99_Inline_2Tests, apzNetbsd_C99_Inline_2Patch, 0 },
79589c4d 8772
3edc4b23
KW
8773 { zNetbsd_Extra_SemicolonName, zNetbsd_Extra_SemicolonList,
8774 apzNetbsd_Extra_SemicolonMachs,
8775 NETBSD_EXTRA_SEMICOLON_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8776 aNetbsd_Extra_SemicolonTests, apzNetbsd_Extra_SemicolonPatch, 0 },
8777
207bf79d
JM
8778 { zNewlib_Stdint_1Name, zNewlib_Stdint_1List,
8779 apzNewlib_Stdint_1Machs,
8780 NEWLIB_STDINT_1_TEST_CT, FD_MACH_ONLY,
8781 aNewlib_Stdint_1Tests, apzNewlib_Stdint_1Patch, 0 },
8782
8783 { zNewlib_Stdint_2Name, zNewlib_Stdint_2List,
8784 apzNewlib_Stdint_2Machs,
8785 NEWLIB_STDINT_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8786 aNewlib_Stdint_2Tests, apzNewlib_Stdint_2Patch, 0 },
8787
06bbab1b 8788 { zNext_Math_PrefixName, zNext_Math_PrefixList,
f5b105ca 8789 apzNext_Math_PrefixMachs,
a8228686 8790 NEXT_MATH_PREFIX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
37082e6d 8791 aNext_Math_PrefixTests, apzNext_Math_PrefixPatch, 0 },
06bbab1b
BK
8792
8793 { zNext_TemplateName, zNext_TemplateList,
f5b105ca 8794 apzNext_TemplateMachs,
a8228686 8795 NEXT_TEMPLATE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
37082e6d 8796 aNext_TemplateTests, apzNext_TemplatePatch, 0 },
06bbab1b
BK
8797
8798 { zNext_VolitileName, zNext_VolitileList,
f5b105ca 8799 apzNext_VolitileMachs,
a8228686 8800 NEXT_VOLITILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
37082e6d 8801 aNext_VolitileTests, apzNext_VolitilePatch, 0 },
06bbab1b
BK
8802
8803 { zNext_Wait_UnionName, zNext_Wait_UnionList,
f5b105ca 8804 apzNext_Wait_UnionMachs,
cb8d5168 8805 NEXT_WAIT_UNION_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
37082e6d 8806 aNext_Wait_UnionTests, apzNext_Wait_UnionPatch, 0 },
06bbab1b
BK
8807
8808 { zNodeent_SyntaxName, zNodeent_SyntaxList,
f5b105ca 8809 apzNodeent_SyntaxMachs,
cb8d5168 8810 NODEENT_SYNTAX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
37082e6d 8811 aNodeent_SyntaxTests, apzNodeent_SyntaxPatch, 0 },
06bbab1b 8812
9cb82550
AT
8813 { zOpenbsd_Null_DefinitionName, zOpenbsd_Null_DefinitionList,
8814 apzOpenbsd_Null_DefinitionMachs,
8815 OPENBSD_NULL_DEFINITION_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8816 aOpenbsd_Null_DefinitionTests, apzOpenbsd_Null_DefinitionPatch, 0 },
8817
dc70e81d
JM
8818 { zObstack_Lvalue_CastName, zObstack_Lvalue_CastList,
8819 apzObstack_Lvalue_CastMachs,
8820 OBSTACK_LVALUE_CAST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8821 aObstack_Lvalue_CastTests, apzObstack_Lvalue_CastPatch, 0 },
8822
261b8381
AT
8823 { zOpenbsd_Va_StartName, zOpenbsd_Va_StartList,
8824 apzOpenbsd_Va_StartMachs,
8825 OPENBSD_VA_START_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8826 aOpenbsd_Va_StartTests, apzOpenbsd_Va_StartPatch, 0 },
8827
06bbab1b 8828 { zOsf_Namespace_AName, zOsf_Namespace_AList,
f5b105ca 8829 apzOsf_Namespace_AMachs,
cb8d5168 8830 OSF_NAMESPACE_A_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
37082e6d 8831 aOsf_Namespace_ATests, apzOsf_Namespace_APatch, 0 },
06bbab1b 8832
cb8d5168
BK
8833 { zOsf_Namespace_CName, zOsf_Namespace_CList,
8834 apzOsf_Namespace_CMachs,
8835 OSF_NAMESPACE_C_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
37082e6d 8836 aOsf_Namespace_CTests, apzOsf_Namespace_CPatch, 0 },
06bbab1b 8837
14bfd7c7
RG
8838 { zPthread_Incomplete_Struct_ArgumentName, zPthread_Incomplete_Struct_ArgumentList,
8839 apzPthread_Incomplete_Struct_ArgumentMachs,
8840 PTHREAD_INCOMPLETE_STRUCT_ARGUMENT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8841 aPthread_Incomplete_Struct_ArgumentTests, apzPthread_Incomplete_Struct_ArgumentPatch, 0 },
8842
d71ef9d4 8843 { zRead_Ret_TypeName, zRead_Ret_TypeList,
f5b105ca 8844 apzRead_Ret_TypeMachs,
cb8d5168 8845 READ_RET_TYPE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
37082e6d 8846 aRead_Ret_TypeTests, apzRead_Ret_TypePatch, 0 },
d71ef9d4 8847
6ed6a1b9
JM
8848 { zRpc_Xdr_Lvalue_Cast_AName, zRpc_Xdr_Lvalue_Cast_AList,
8849 apzRpc_Xdr_Lvalue_Cast_AMachs,
8850 RPC_XDR_LVALUE_CAST_A_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8851 aRpc_Xdr_Lvalue_Cast_ATests, apzRpc_Xdr_Lvalue_Cast_APatch, 0 },
8852
8853 { zRpc_Xdr_Lvalue_Cast_BName, zRpc_Xdr_Lvalue_Cast_BList,
8854 apzRpc_Xdr_Lvalue_Cast_BMachs,
8855 RPC_XDR_LVALUE_CAST_B_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8856 aRpc_Xdr_Lvalue_Cast_BTests, apzRpc_Xdr_Lvalue_Cast_BPatch, 0 },
8857
06bbab1b 8858 { zRs6000_DoubleName, zRs6000_DoubleList,
f5b105ca 8859 apzRs6000_DoubleMachs,
cb8d5168 8860 RS6000_DOUBLE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
37082e6d 8861 aRs6000_DoubleTests, apzRs6000_DoublePatch, 0 },
06bbab1b
BK
8862
8863 { zRs6000_FchmodName, zRs6000_FchmodList,
f5b105ca 8864 apzRs6000_FchmodMachs,
cb8d5168 8865 RS6000_FCHMOD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
37082e6d 8866 aRs6000_FchmodTests, apzRs6000_FchmodPatch, 0 },
06bbab1b
BK
8867
8868 { zRs6000_ParamName, zRs6000_ParamList,
f5b105ca 8869 apzRs6000_ParamMachs,
cb8d5168 8870 RS6000_PARAM_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
37082e6d 8871 aRs6000_ParamTests, apzRs6000_ParamPatch, 0 },
06bbab1b 8872
de0656cf
KJ
8873 { zSco_MathName, zSco_MathList,
8874 apzSco_MathMachs,
8875 SCO_MATH_TEST_CT, FD_MACH_ONLY,
8876 aSco_MathTests, apzSco_MathPatch, 0 },
8877
925a4487
EB
8878 { zSolaris_Math_1Name, zSolaris_Math_1List,
8879 apzSolaris_Math_1Machs,
8880 SOLARIS_MATH_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8881 aSolaris_Math_1Tests, apzSolaris_Math_1Patch, 0 },
8882
8883 { zSolaris_Math_2Name, zSolaris_Math_2List,
8884 apzSolaris_Math_2Machs,
8885 SOLARIS_MATH_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8886 aSolaris_Math_2Tests, apzSolaris_Math_2Patch, 0 },
8887
8888 { zSolaris_Math_3Name, zSolaris_Math_3List,
8889 apzSolaris_Math_3Machs,
8890 SOLARIS_MATH_3_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8891 aSolaris_Math_3Tests, apzSolaris_Math_3Patch, 0 },
8892
8893 { zSolaris_Math_4Name, zSolaris_Math_4List,
8894 apzSolaris_Math_4Machs,
8895 SOLARIS_MATH_4_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8896 aSolaris_Math_4Tests, apzSolaris_Math_4Patch, 0 },
8897
925a4487
EB
8898 { zSolaris_Math_8Name, zSolaris_Math_8List,
8899 apzSolaris_Math_8Machs,
8900 SOLARIS_MATH_8_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8901 aSolaris_Math_8Tests, apzSolaris_Math_8Patch, 0 },
8902
8903 { zSolaris_Math_9Name, zSolaris_Math_9List,
8904 apzSolaris_Math_9Machs,
8905 SOLARIS_MATH_9_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8906 aSolaris_Math_9Tests, apzSolaris_Math_9Patch, 0 },
8907
c951ae40
KG
8908 { zSolaris_Math_10Name, zSolaris_Math_10List,
8909 apzSolaris_Math_10Machs,
8910 SOLARIS_MATH_10_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8911 aSolaris_Math_10Tests, apzSolaris_Math_10Patch, 0 },
8912
7a9cdb10
DD
8913 { zSolaris_Mutex_Init_2Name, zSolaris_Mutex_Init_2List,
8914 apzSolaris_Mutex_Init_2Machs,
8915 SOLARIS_MUTEX_INIT_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8916 aSolaris_Mutex_Init_2Tests, apzSolaris_Mutex_Init_2Patch, 0 },
1f98d85e 8917
2b655a0a
KG
8918 { zSolaris_Rwlock_Init_1Name, zSolaris_Rwlock_Init_1List,
8919 apzSolaris_Rwlock_Init_1Machs,
8920 SOLARIS_RWLOCK_INIT_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8921 aSolaris_Rwlock_Init_1Tests, apzSolaris_Rwlock_Init_1Patch, 0 },
8922
8923 { zSolaris_Once_Init_1Name, zSolaris_Once_Init_1List,
8924 apzSolaris_Once_Init_1Machs,
8925 SOLARIS_ONCE_INIT_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8926 aSolaris_Once_Init_1Tests, apzSolaris_Once_Init_1Patch, 0 },
8927
0a1f02df
KG
8928 { zSolaris_Once_Init_2Name, zSolaris_Once_Init_2List,
8929 apzSolaris_Once_Init_2Machs,
8930 SOLARIS_ONCE_INIT_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8931 aSolaris_Once_Init_2Tests, apzSolaris_Once_Init_2Patch, 0 },
8932
b0999b01
EB
8933 { zSolaris_Int_ConstName, zSolaris_Int_ConstList,
8934 apzSolaris_Int_ConstMachs,
8935 SOLARIS_INT_CONST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8936 aSolaris_Int_ConstTests, apzSolaris_Int_ConstPatch, 0 },
8937
8938 { zSolaris_Int_Limits_1Name, zSolaris_Int_Limits_1List,
8939 apzSolaris_Int_Limits_1Machs,
8940 SOLARIS_INT_LIMITS_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8941 aSolaris_Int_Limits_1Tests, apzSolaris_Int_Limits_1Patch, 0 },
8942
8943 { zSolaris_Int_Limits_2Name, zSolaris_Int_Limits_2List,
8944 apzSolaris_Int_Limits_2Machs,
8945 SOLARIS_INT_LIMITS_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8946 aSolaris_Int_Limits_2Tests, apzSolaris_Int_Limits_2Patch, 0 },
8947
d4289bdd
EB
8948 { zSolaris_Int_TypesName, zSolaris_Int_TypesList,
8949 apzSolaris_Int_TypesMachs,
8950 SOLARIS_INT_TYPES_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8951 aSolaris_Int_TypesTests, apzSolaris_Int_TypesPatch, 0 },
8952
fba39eaf
RH
8953 { zSolaris_Stdio_TagName, zSolaris_Stdio_TagList,
8954 apzSolaris_Stdio_TagMachs,
8955 SOLARIS_STDIO_TAG_TEST_CT, FD_MACH_ONLY,
8956 aSolaris_Stdio_TagTests, apzSolaris_Stdio_TagPatch, 0 },
8957
06bbab1b 8958 { zStatsswtchName, zStatsswtchList,
f5b105ca 8959 apzStatsswtchMachs,
cb8d5168 8960 STATSSWTCH_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
37082e6d 8961 aStatsswtchTests, apzStatsswtchPatch, 0 },
06bbab1b 8962
3be1fb72 8963 { zStdio_Stdarg_HName, zStdio_Stdarg_HList,
f5b105ca 8964 apzStdio_Stdarg_HMachs,
9fcc7481 8965 STDIO_STDARG_H_TEST_CT, FD_MACH_IFNOT | FD_SUBROUTINE,
37082e6d 8966 aStdio_Stdarg_HTests, apzStdio_Stdarg_HPatch, 0 },
3be1fb72 8967
06bbab1b 8968 { zStdio_Va_ListName, zStdio_Va_ListList,
f5b105ca 8969 apzStdio_Va_ListMachs,
9fcc7481 8970 STDIO_VA_LIST_TEST_CT, FD_MACH_IFNOT,
37082e6d 8971 aStdio_Va_ListTests, apzStdio_Va_ListPatch, 0 },
06bbab1b 8972
40d05429
MS
8973 { zStdio_Va_List_ClientsName, zStdio_Va_List_ClientsList,
8974 apzStdio_Va_List_ClientsMachs,
8975 STDIO_VA_LIST_CLIENTS_TEST_CT, FD_MACH_ONLY,
8976 aStdio_Va_List_ClientsTests, apzStdio_Va_List_ClientsPatch, 0 },
8977
7b78a14a
BK
8978 { zStrict_Ansi_NotName, zStrict_Ansi_NotList,
8979 apzStrict_Ansi_NotMachs,
8980 STRICT_ANSI_NOT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8981 aStrict_Ansi_NotTests, apzStrict_Ansi_NotPatch, 0 },
8982
8983 { zStrict_Ansi_Not_CtdName, zStrict_Ansi_Not_CtdList,
8984 apzStrict_Ansi_Not_CtdMachs,
8985 STRICT_ANSI_NOT_CTD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8986 aStrict_Ansi_Not_CtdTests, apzStrict_Ansi_Not_CtdPatch, 0 },
8987
8988 { zStrict_Ansi_OnlyName, zStrict_Ansi_OnlyList,
8989 apzStrict_Ansi_OnlyMachs,
8990 STRICT_ANSI_ONLY_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8991 aStrict_Ansi_OnlyTests, apzStrict_Ansi_OnlyPatch, 0 },
8992
79589c4d
BK
8993 { zStruct_FileName, zStruct_FileList,
8994 apzStruct_FileMachs,
8995 STRUCT_FILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
37082e6d 8996 aStruct_FileTests, apzStruct_FilePatch, 0 },
79589c4d
BK
8997
8998 { zStruct_SockaddrName, zStruct_SockaddrList,
8999 apzStruct_SockaddrMachs,
9000 STRUCT_SOCKADDR_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
37082e6d 9001 aStruct_SockaddrTests, apzStruct_SockaddrPatch, 0 },
79589c4d 9002
4c188026 9003 { zSun_Auth_ProtoName, zSun_Auth_ProtoList,
f5b105ca 9004 apzSun_Auth_ProtoMachs,
cb8d5168 9005 SUN_AUTH_PROTO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
37082e6d 9006 aSun_Auth_ProtoTests, apzSun_Auth_ProtoPatch, 0 },
4c188026 9007
06bbab1b 9008 { zSun_Bogus_IfdefName, zSun_Bogus_IfdefList,
f5b105ca 9009 apzSun_Bogus_IfdefMachs,
cb8d5168 9010 SUN_BOGUS_IFDEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
37082e6d 9011 aSun_Bogus_IfdefTests, apzSun_Bogus_IfdefPatch, 0 },
06bbab1b 9012
06bbab1b 9013 { zSun_CatmacroName, zSun_CatmacroList,
f5b105ca 9014 apzSun_CatmacroMachs,
cb8d5168 9015 SUN_CATMACRO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
37082e6d 9016 aSun_CatmacroTests, apzSun_CatmacroPatch, 0 },
06bbab1b
BK
9017
9018 { zSun_MallocName, zSun_MallocList,
f5b105ca 9019 apzSun_MallocMachs,
06bbab1b 9020 SUN_MALLOC_TEST_CT, FD_MACH_ONLY,
37082e6d 9021 aSun_MallocTests, apzSun_MallocPatch, 0 },
06bbab1b 9022
06bbab1b 9023 { zSun_Rusers_SemiName, zSun_Rusers_SemiList,
f5b105ca 9024 apzSun_Rusers_SemiMachs,
06bbab1b 9025 SUN_RUSERS_SEMI_TEST_CT, FD_MACH_ONLY,
37082e6d 9026 aSun_Rusers_SemiTests, apzSun_Rusers_SemiPatch, 0 },
06bbab1b
BK
9027
9028 { zSun_SignalName, zSun_SignalList,
f5b105ca 9029 apzSun_SignalMachs,
cb8d5168 9030 SUN_SIGNAL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
37082e6d 9031 aSun_SignalTests, apzSun_SignalPatch, 0 },
06bbab1b 9032
06bbab1b 9033 { zSunos_StrlenName, zSunos_StrlenList,
f5b105ca 9034 apzSunos_StrlenMachs,
cb8d5168 9035 SUNOS_STRLEN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
37082e6d 9036 aSunos_StrlenTests, apzSunos_StrlenPatch, 0 },
06bbab1b 9037
de0656cf
KJ
9038 { zSvr4_Disable_OptName, zSvr4_Disable_OptList,
9039 apzSvr4_Disable_OptMachs,
9040 SVR4_DISABLE_OPT_TEST_CT, FD_MACH_ONLY,
9041 aSvr4_Disable_OptTests, apzSvr4_Disable_OptPatch, 0 },
9042
4c188026 9043 { zSvr4_GetcwdName, zSvr4_GetcwdList,
f5b105ca 9044 apzSvr4_GetcwdMachs,
cb8d5168 9045 SVR4_GETCWD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
37082e6d 9046 aSvr4_GetcwdTests, apzSvr4_GetcwdPatch, 0 },
4c188026
BK
9047
9048 { zSvr4_ProfilName, zSvr4_ProfilList,
f5b105ca 9049 apzSvr4_ProfilMachs,
cb8d5168 9050 SVR4_PROFIL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
37082e6d 9051 aSvr4_ProfilTests, apzSvr4_ProfilPatch, 0 },
4c188026 9052
1d109416
NN
9053 { zSvr4_Sighandler_TypeName, zSvr4_Sighandler_TypeList,
9054 apzSvr4_Sighandler_TypeMachs,
9055 SVR4_SIGHANDLER_TYPE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9056 aSvr4_Sighandler_TypeTests, apzSvr4_Sighandler_TypePatch, 0 },
9057
76d2e2c5
NN
9058 { zSvr4_Undeclared_GetrngeName, zSvr4_Undeclared_GetrngeList,
9059 apzSvr4_Undeclared_GetrngeMachs,
9060 SVR4_UNDECLARED_GETRNGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9061 aSvr4_Undeclared_GetrngeTests, apzSvr4_Undeclared_GetrngePatch, 0 },
9062
06bbab1b 9063 { zSysv68_StringName, zSysv68_StringList,
f5b105ca 9064 apzSysv68_StringMachs,
06bbab1b 9065 SYSV68_STRING_TEST_CT, FD_MACH_ONLY,
37082e6d 9066 aSysv68_StringTests, apzSysv68_StringPatch, 0 },
06bbab1b
BK
9067
9068 { zSysz_Stdlib_For_SunName, zSysz_Stdlib_For_SunList,
f5b105ca 9069 apzSysz_Stdlib_For_SunMachs,
cb8d5168 9070 SYSZ_STDLIB_FOR_SUN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
37082e6d 9071 aSysz_Stdlib_For_SunTests, apzSysz_Stdlib_For_SunPatch, 0 },
06bbab1b 9072
3d78f2e9
RH
9073 { zThread_KeywordName, zThread_KeywordList,
9074 apzThread_KeywordMachs,
fd0a3915 9075 THREAD_KEYWORD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
3d78f2e9
RH
9076 aThread_KeywordTests, apzThread_KeywordPatch, 0 },
9077
06bbab1b 9078 { zTinfo_CplusplusName, zTinfo_CplusplusList,
f5b105ca 9079 apzTinfo_CplusplusMachs,
5d7d28c2 9080 TINFO_CPLUSPLUS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
37082e6d 9081 aTinfo_CplusplusTests, apzTinfo_CplusplusPatch, 0 },
06bbab1b 9082
06bbab1b 9083 { zUltrix_ConstName, zUltrix_ConstList,
f5b105ca 9084 apzUltrix_ConstMachs,
5d7d28c2 9085 ULTRIX_CONST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
37082e6d 9086 aUltrix_ConstTests, apzUltrix_ConstPatch, 0 },
06bbab1b 9087
5d7d28c2
BK
9088 { zUltrix_Const2Name, zUltrix_Const2List,
9089 apzUltrix_Const2Machs,
9090 ULTRIX_CONST2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
37082e6d 9091 aUltrix_Const2Tests, apzUltrix_Const2Patch, 0 },
5d7d28c2 9092
06bbab1b 9093 { zVa_I960_MacroName, zVa_I960_MacroList,
f5b105ca 9094 apzVa_I960_MacroMachs,
5d7d28c2 9095 VA_I960_MACRO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
37082e6d 9096 aVa_I960_MacroTests, apzVa_I960_MacroPatch, 0 },
06bbab1b
BK
9097
9098 { zVoid_NullName, zVoid_NullList,
f5b105ca 9099 apzVoid_NullMachs,
5d7d28c2 9100 VOID_NULL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
37082e6d 9101 aVoid_NullTests, apzVoid_NullPatch, 0 },
06bbab1b
BK
9102
9103 { zVxworks_Gcc_ProblemName, zVxworks_Gcc_ProblemList,
f5b105ca 9104 apzVxworks_Gcc_ProblemMachs,
06bbab1b 9105 VXWORKS_GCC_PROBLEM_TEST_CT, FD_MACH_ONLY,
37082e6d 9106 aVxworks_Gcc_ProblemTests, apzVxworks_Gcc_ProblemPatch, 0 },
06bbab1b
BK
9107
9108 { zVxworks_Needs_VxtypesName, zVxworks_Needs_VxtypesList,
f5b105ca 9109 apzVxworks_Needs_VxtypesMachs,
5d7d28c2 9110 VXWORKS_NEEDS_VXTYPES_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
37082e6d 9111 aVxworks_Needs_VxtypesTests, apzVxworks_Needs_VxtypesPatch, 0 },
06bbab1b
BK
9112
9113 { zVxworks_Needs_VxworksName, zVxworks_Needs_VxworksList,
f5b105ca 9114 apzVxworks_Needs_VxworksMachs,
06bbab1b 9115 VXWORKS_NEEDS_VXWORKS_TEST_CT, FD_MACH_ONLY,
37082e6d 9116 aVxworks_Needs_VxworksTests, apzVxworks_Needs_VxworksPatch, 0 },
06bbab1b
BK
9117
9118 { zVxworks_TimeName, zVxworks_TimeList,
f5b105ca 9119 apzVxworks_TimeMachs,
5d7d28c2 9120 VXWORKS_TIME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
37082e6d 9121 aVxworks_TimeTests, apzVxworks_TimePatch, 0 },
06bbab1b
BK
9122
9123 { zX11_ClassName, zX11_ClassList,
f5b105ca 9124 apzX11_ClassMachs,
c1fd153e 9125 X11_CLASS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
37082e6d 9126 aX11_ClassTests, apzX11_ClassPatch, 0 },
06bbab1b
BK
9127
9128 { zX11_Class_UsageName, zX11_Class_UsageList,
f5b105ca 9129 apzX11_Class_UsageMachs,
5d7d28c2 9130 X11_CLASS_USAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
37082e6d 9131 aX11_Class_UsageTests, apzX11_Class_UsagePatch, 0 },
06bbab1b
BK
9132
9133 { zX11_NewName, zX11_NewList,
f5b105ca 9134 apzX11_NewMachs,
06bbab1b 9135 X11_NEW_TEST_CT, FD_MACH_ONLY,
37082e6d 9136 aX11_NewTests, apzX11_NewPatch, 0 },
06bbab1b
BK
9137
9138 { zX11_SprintfName, zX11_SprintfList,
f5b105ca 9139 apzX11_SprintfMachs,
5d7d28c2 9140 X11_SPRINTF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
37082e6d 9141 aX11_SprintfTests, apzX11_SprintfPatch, 0 }
06bbab1b 9142};