]> git.ipfire.org Git - thirdparty/gcc.git/blame - fixincludes/fixincl.x
re PR middle-end/39937 (Revision 146831 failed SPEC CPU 2006)
[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 *
e2556904 5 * It has been AutoGen-ed Tuesday April 28, 2009 at 10:20:23 AM UTC
8882ac3a
BK
6 * From the definitions inclhack.def
7 * and the template file fixincl
8 */
e2556904 9/* DO NOT SVN-MERGE THIS FILE, EITHER Tue Apr 28 10:20:23 UTC 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 *
e2556904 18 * This file contains 181 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
06bbab1b
BK
1788/* * * * * * * * * * * * * * * * * * * * * * * * * *
1789 *
79589c4d 1790 * Description of Dec_Intern_Asm fix
06bbab1b 1791 */
79589c4d
BK
1792tSCC zDec_Intern_AsmName[] =
1793 "dec_intern_asm";
3be1fb72 1794
06bbab1b
BK
1795/*
1796 * File name selection pattern
1797 */
79589c4d 1798tSCC zDec_Intern_AsmList[] =
401be4b6 1799 "c_asm.h\0";
06bbab1b
BK
1800/*
1801 * Machine/OS name selection pattern
1802 */
79589c4d
BK
1803#define apzDec_Intern_AsmMachs (const char**)NULL
1804#define DEC_INTERN_ASM_TEST_CT 0
1805#define aDec_Intern_AsmTests (tTestDesc*)NULL
06bbab1b
BK
1806
1807/*
79589c4d 1808 * Fix Command Arguments for Dec_Intern_Asm
06bbab1b 1809 */
6aa1f8c1 1810static const char* apzDec_Intern_AsmPatch[] = { sed_cmd_z,
79589c4d
BK
1811 "-e", "/^[ \t]*float[ \t]*fasm/i\\\n\
1812#ifdef __DECC\n",
1813 "-e", "/^[ \t]*#[ \t]*pragma[ \t]*intrinsic([ \t]*dasm/a\\\n\
1814#endif\n",
1815 (char*)NULL };
06bbab1b 1816
6822468a
LB
1817/* * * * * * * * * * * * * * * * * * * * * * * * * *
1818 *
1819 * Description of Djgpp_Wchar_H fix
1820 */
6822468a
LB
1821tSCC zDjgpp_Wchar_HName[] =
1822 "djgpp_wchar_h";
1823
1824/*
1825 * File name selection pattern
1826 */
1827#define zDjgpp_Wchar_HList (char*)NULL
1828/*
1829 * Machine/OS name selection pattern
1830 */
1831#define apzDjgpp_Wchar_HMachs (const char**)NULL
1832
1833/*
1834 * content selection pattern - do fix if pattern found
1835 */
1836tSCC zDjgpp_Wchar_HSelect0[] =
1837 "__DJ_wint_t";
1838
1839/*
1840 * content bypass pattern - skip fix if pattern found
1841 */
1842tSCC zDjgpp_Wchar_HBypass0[] =
1843 "sys/djtypes.h";
1844
1845#define DJGPP_WCHAR_H_TEST_CT 2
1846static tTestDesc aDjgpp_Wchar_HTests[] = {
1847 { TT_NEGREP, zDjgpp_Wchar_HBypass0, (regex_t*)NULL },
1848 { TT_EGREP, zDjgpp_Wchar_HSelect0, (regex_t*)NULL }, };
1849
1850/*
1851 * Fix Command Arguments for Djgpp_Wchar_H
1852 */
1853static const char* apzDjgpp_Wchar_HPatch[] = {
1854 "format",
1855 "%0\n\
1856#include <sys/djtypes.h>",
1857 "#include <stddef.h>",
1858 (char*)NULL };
1859
79589c4d
BK
1860/* * * * * * * * * * * * * * * * * * * * * * * * * *
1861 *
1862 * Description of Ecd_Cursor fix
1863 */
79589c4d
BK
1864tSCC zEcd_CursorName[] =
1865 "ecd_cursor";
06bbab1b
BK
1866
1867/*
79589c4d 1868 * File name selection pattern
06bbab1b 1869 */
79589c4d 1870tSCC zEcd_CursorList[] =
401be4b6 1871 "sunwindow/win_lock.h\0sunwindow/win_cursor.h\0";
79589c4d
BK
1872/*
1873 * Machine/OS name selection pattern
1874 */
1875#define apzEcd_CursorMachs (const char**)NULL
cd64831f
BK
1876
1877/*
1878 * content selection pattern - do fix if pattern found
1879 */
1880tSCC zEcd_CursorSelect0[] =
1881 "ecd\\.cursor";
1882
1883#define ECD_CURSOR_TEST_CT 1
3af556f7 1884static tTestDesc aEcd_CursorTests[] = {
cd64831f 1885 { TT_EGREP, zEcd_CursorSelect0, (regex_t*)NULL }, };
79589c4d
BK
1886
1887/*
1888 * Fix Command Arguments for Ecd_Cursor
1889 */
3af556f7 1890static const char* apzEcd_CursorPatch[] = {
cd64831f
BK
1891 "format",
1892 "ecd_cursor",
06bbab1b
BK
1893 (char*)NULL };
1894
89647e8a
LR
1895/* * * * * * * * * * * * * * * * * * * * * * * * * *
1896 *
1897 * Description of Freebsd_Gcc3_Breakage fix
1898 */
89647e8a
LR
1899tSCC zFreebsd_Gcc3_BreakageName[] =
1900 "freebsd_gcc3_breakage";
1901
1902/*
1903 * File name selection pattern
1904 */
1905tSCC zFreebsd_Gcc3_BreakageList[] =
401be4b6 1906 "sys/cdefs.h\0";
89647e8a
LR
1907/*
1908 * Machine/OS name selection pattern
1909 */
1910tSCC* apzFreebsd_Gcc3_BreakageMachs[] = {
1911 "*-*-freebsd*",
1912 (const char*)NULL };
1913
1914/*
1915 * content selection pattern - do fix if pattern found
1916 */
1917tSCC zFreebsd_Gcc3_BreakageSelect0[] =
1918 "^#if __GNUC__ == 2 && __GNUC_MINOR__ >= 7$";
1919
1920/*
1921 * content bypass pattern - skip fix if pattern found
1922 */
1923tSCC zFreebsd_Gcc3_BreakageBypass0[] =
1924 "__GNUC__[ \\t]*([>=]=[ \\t]*[3-9]|>[ \\t]*2)";
1925
1926#define FREEBSD_GCC3_BREAKAGE_TEST_CT 2
1927static tTestDesc aFreebsd_Gcc3_BreakageTests[] = {
1928 { TT_NEGREP, zFreebsd_Gcc3_BreakageBypass0, (regex_t*)NULL },
1929 { TT_EGREP, zFreebsd_Gcc3_BreakageSelect0, (regex_t*)NULL }, };
1930
1931/*
1932 * Fix Command Arguments for Freebsd_Gcc3_Breakage
1933 */
1934static const char* apzFreebsd_Gcc3_BreakagePatch[] = {
1935 "format",
1936 "%0 || __GNUC__ >= 3",
1937 (char*)NULL };
1938
28785dde
LR
1939/* * * * * * * * * * * * * * * * * * * * * * * * * *
1940 *
1941 * Description of Freebsd_Gcc4_Breakage fix
1942 */
1943tSCC zFreebsd_Gcc4_BreakageName[] =
1944 "freebsd_gcc4_breakage";
1945
1946/*
1947 * File name selection pattern
1948 */
1949tSCC zFreebsd_Gcc4_BreakageList[] =
401be4b6 1950 "sys/cdefs.h\0";
28785dde
LR
1951/*
1952 * Machine/OS name selection pattern
1953 */
1954tSCC* apzFreebsd_Gcc4_BreakageMachs[] = {
1955 "*-*-freebsd*",
1956 (const char*)NULL };
1957
1958/*
1959 * content selection pattern - do fix if pattern found
1960 */
1961tSCC zFreebsd_Gcc4_BreakageSelect0[] =
1962 "^#if __GNUC__ == 2 && __GNUC_MINOR__ >= 7 \\|\\| __GNUC__ == 3$";
1963
1964#define FREEBSD_GCC4_BREAKAGE_TEST_CT 1
1965static tTestDesc aFreebsd_Gcc4_BreakageTests[] = {
1966 { TT_EGREP, zFreebsd_Gcc4_BreakageSelect0, (regex_t*)NULL }, };
1967
1968/*
1969 * Fix Command Arguments for Freebsd_Gcc4_Breakage
1970 */
1971static const char* apzFreebsd_Gcc4_BreakagePatch[] = {
1972 "format",
1973 "#if __GNUC__ == 2 && __GNUC_MINOR__ >= 7 || __GNUC__ >= 3",
1974 (char*)NULL };
1975
502e2a2d
GK
1976/* * * * * * * * * * * * * * * * * * * * * * * * * *
1977 *
1978 * Description of Glibc_C99_Inline_1 fix
1979 */
1980tSCC zGlibc_C99_Inline_1Name[] =
1981 "glibc_c99_inline_1";
1982
1983/*
1984 * File name selection pattern
1985 */
1986tSCC zGlibc_C99_Inline_1List[] =
401be4b6 1987 "features.h\0*/features.h\0";
502e2a2d
GK
1988/*
1989 * Machine/OS name selection pattern
1990 */
1991#define apzGlibc_C99_Inline_1Machs (const char**)NULL
1992
1993/*
1994 * content selection pattern - do fix if pattern found
1995 */
1996tSCC zGlibc_C99_Inline_1Select0[] =
1997 "^ *&& !defined __OPTIMIZE_SIZE__ && !defined __NO_INLINE__$";
1998
1999#define GLIBC_C99_INLINE_1_TEST_CT 1
2000static tTestDesc aGlibc_C99_Inline_1Tests[] = {
2001 { TT_EGREP, zGlibc_C99_Inline_1Select0, (regex_t*)NULL }, };
2002
2003/*
2004 * Fix Command Arguments for Glibc_C99_Inline_1
2005 */
2006static const char* apzGlibc_C99_Inline_1Patch[] = {
2007 "format",
cb3790cb 2008 "%0 && (defined __extern_inline || defined __GNUC_GNU_INLINE__)",
502e2a2d
GK
2009 (char*)NULL };
2010
c91e2eae
HPN
2011/* * * * * * * * * * * * * * * * * * * * * * * * * *
2012 *
2013 * Description of Glibc_C99_Inline_1a fix
2014 */
2015tSCC zGlibc_C99_Inline_1aName[] =
2016 "glibc_c99_inline_1a";
2017
2018/*
2019 * File name selection pattern
2020 */
2021tSCC zGlibc_C99_Inline_1aList[] =
2022 "features.h\0*/features.h\0";
2023/*
2024 * Machine/OS name selection pattern
2025 */
2026#define apzGlibc_C99_Inline_1aMachs (const char**)NULL
2027
2028/*
2029 * content selection pattern - do fix if pattern found
2030 */
2031tSCC zGlibc_C99_Inline_1aSelect0[] =
2032 "(\\) && defined __OPTIMIZE__ && !defined __OPTIMIZE_SIZE__)\n\
2033(#[ \t]*define[ \t]*__USE_EXTERN_INLINES[ \t]*1)";
2034
2035#define GLIBC_C99_INLINE_1A_TEST_CT 1
2036static tTestDesc aGlibc_C99_Inline_1aTests[] = {
2037 { TT_EGREP, zGlibc_C99_Inline_1aSelect0, (regex_t*)NULL }, };
2038
2039/*
2040 * Fix Command Arguments for Glibc_C99_Inline_1a
2041 */
2042static const char* apzGlibc_C99_Inline_1aPatch[] = {
2043 "format",
2044 "%1 && (defined __extern_inline || defined __GNUC_GNU_INLINE__)\n\
2045%2",
2046 (char*)NULL };
2047
502e2a2d
GK
2048/* * * * * * * * * * * * * * * * * * * * * * * * * *
2049 *
2050 * Description of Glibc_C99_Inline_2 fix
2051 */
2052tSCC zGlibc_C99_Inline_2Name[] =
2053 "glibc_c99_inline_2";
2054
2055/*
2056 * File name selection pattern
2057 */
2058tSCC zGlibc_C99_Inline_2List[] =
401be4b6 2059 "sys/stat.h\0*/sys/stat.h\0";
502e2a2d
GK
2060/*
2061 * Machine/OS name selection pattern
2062 */
2063#define apzGlibc_C99_Inline_2Machs (const char**)NULL
2064
2065/*
2066 * content selection pattern - do fix if pattern found
2067 */
2068tSCC zGlibc_C99_Inline_2Select0[] =
2069 "extern __inline__ int";
2070
2071#define GLIBC_C99_INLINE_2_TEST_CT 1
2072static tTestDesc aGlibc_C99_Inline_2Tests[] = {
2073 { TT_EGREP, zGlibc_C99_Inline_2Select0, (regex_t*)NULL }, };
2074
2075/*
2076 * Fix Command Arguments for Glibc_C99_Inline_2
2077 */
6aa1f8c1 2078static const char* apzGlibc_C99_Inline_2Patch[] = { sed_cmd_z,
cb3790cb 2079 "-e", "s/extern int \\(stat\\|lstat\\|fstat\\|mknod\\)/#ifdef __GNUC_GNU_INLINE__\\\n\
502e2a2d
GK
2080extern\\\n\
2081#endif\\\n\
2082__inline__ int \\1/",
cb3790cb 2083 "-e", "s/extern int __REDIRECT\\(_NTH\\|\\) (\\(stat\\|lstat\\|fstat\\)/#ifdef __GNUC_GNU_INLINE__\\\n\
502e2a2d
GK
2084extern\\\n\
2085#endif\\\n\
98e06787 2086__inline__ int __REDIRECT\\1 (\\2/",
cb3790cb 2087 "-e", "s/^extern __inline__ int/#ifdef __GNUC_GNU_INLINE__\\\n\
502e2a2d
GK
2088extern\\\n\
2089#endif\\\n\
98e06787 2090__inline__ int/",
502e2a2d
GK
2091 (char*)NULL };
2092
2093/* * * * * * * * * * * * * * * * * * * * * * * * * *
2094 *
2095 * Description of Glibc_C99_Inline_3 fix
2096 */
2097tSCC zGlibc_C99_Inline_3Name[] =
2098 "glibc_c99_inline_3";
2099
2100/*
2101 * File name selection pattern
2102 */
2103tSCC zGlibc_C99_Inline_3List[] =
401be4b6 2104 "bits/string2.h\0*/bits/string2.h\0";
502e2a2d
GK
2105/*
2106 * Machine/OS name selection pattern
2107 */
2108#define apzGlibc_C99_Inline_3Machs (const char**)NULL
2109
cb3790cb
JJ
2110/*
2111 * content selection pattern - do fix if pattern found
2112 */
2113tSCC zGlibc_C99_Inline_3Select0[] =
2114 "extern __inline";
2115
502e2a2d
GK
2116/*
2117 * content bypass pattern - skip fix if pattern found
2118 */
2119tSCC zGlibc_C99_Inline_3Bypass0[] =
c91e2eae 2120 "__extern_inline|__GNU_STDC_INLINE__";
502e2a2d 2121
cb3790cb 2122#define GLIBC_C99_INLINE_3_TEST_CT 2
502e2a2d 2123static tTestDesc aGlibc_C99_Inline_3Tests[] = {
cb3790cb
JJ
2124 { TT_NEGREP, zGlibc_C99_Inline_3Bypass0, (regex_t*)NULL },
2125 { TT_EGREP, zGlibc_C99_Inline_3Select0, (regex_t*)NULL }, };
502e2a2d
GK
2126
2127/*
2128 * Fix Command Arguments for Glibc_C99_Inline_3
2129 */
2130static const char* apzGlibc_C99_Inline_3Patch[] = {
2131 "format",
cb3790cb 2132 "# if defined(__cplusplus) || defined(__GNUC_STDC_INLINE__)",
502e2a2d
GK
2133 "^# ifdef __cplusplus$",
2134 (char*)NULL };
2135
2136/* * * * * * * * * * * * * * * * * * * * * * * * * *
2137 *
2138 * Description of Glibc_C99_Inline_4 fix
2139 */
2140tSCC zGlibc_C99_Inline_4Name[] =
2141 "glibc_c99_inline_4";
2142
2143/*
2144 * File name selection pattern
2145 */
2146tSCC zGlibc_C99_Inline_4List[] =
c91e2eae 2147 "sys/sysmacros.h\0*/sys/sysmacros.h\0wchar.h\0*/wchar.h\0";
502e2a2d
GK
2148/*
2149 * Machine/OS name selection pattern
2150 */
2151#define apzGlibc_C99_Inline_4Machs (const char**)NULL
2152
5c4f0f47
BK
2153/*
2154 * content selection pattern - do fix if pattern found
2155 */
2156tSCC zGlibc_C99_Inline_4Select0[] =
c91e2eae 2157 "(^| )extern __inline";
5c4f0f47 2158
502e2a2d
GK
2159/*
2160 * content bypass pattern - skip fix if pattern found
2161 */
2162tSCC zGlibc_C99_Inline_4Bypass0[] =
c91e2eae 2163 "__extern_inline|__gnu_inline__";
502e2a2d 2164
5c4f0f47 2165#define GLIBC_C99_INLINE_4_TEST_CT 2
502e2a2d 2166static tTestDesc aGlibc_C99_Inline_4Tests[] = {
5c4f0f47
BK
2167 { TT_NEGREP, zGlibc_C99_Inline_4Bypass0, (regex_t*)NULL },
2168 { TT_EGREP, zGlibc_C99_Inline_4Select0, (regex_t*)NULL }, };
502e2a2d
GK
2169
2170/*
2171 * Fix Command Arguments for Glibc_C99_Inline_4
2172 */
2173static const char* apzGlibc_C99_Inline_4Patch[] = {
2174 "format",
c91e2eae 2175 "%0 __attribute__ ((__gnu_inline__))",
502e2a2d
GK
2176 (char*)NULL };
2177
f6f7aabc
UB
2178/* * * * * * * * * * * * * * * * * * * * * * * * * *
2179 *
2180 * Description of Glibc_Mutex_Init fix
2181 */
2182tSCC zGlibc_Mutex_InitName[] =
2183 "glibc_mutex_init";
2184
2185/*
2186 * File name selection pattern
2187 */
2188tSCC zGlibc_Mutex_InitList[] =
401be4b6 2189 "pthread.h\0";
f6f7aabc
UB
2190/*
2191 * Machine/OS name selection pattern
2192 */
2193#define apzGlibc_Mutex_InitMachs (const char**)NULL
2194
2195/*
2196 * content selection pattern - do fix if pattern found
2197 */
2198tSCC zGlibc_Mutex_InitSelect0[] =
2199 "\\{ *\\{ *0, *\\} *\\}";
2200
2201#define GLIBC_MUTEX_INIT_TEST_CT 1
2202static tTestDesc aGlibc_Mutex_InitTests[] = {
2203 { TT_EGREP, zGlibc_Mutex_InitSelect0, (regex_t*)NULL }, };
2204
2205/*
2206 * Fix Command Arguments for Glibc_Mutex_Init
2207 */
6aa1f8c1
BK
2208static const char* apzGlibc_Mutex_InitPatch[] = { sed_cmd_z,
2209 "-e", "/define[ \t]\\+PTHREAD_MUTEX_INITIALIZER[ \t]*\\\\/{\n\
2210N\n\
2211s/{ { 0, } }/{ { 0, 0, 0, 0, 0, 0 } }/\n\
2212}",
4d98def0
UB
2213 "-e", "s/{ \\(0, 0, 0, 0, PTHREAD_MUTEX_\\(RECURSIVE\\|ERRORCHECK\\|ADAPTIVE\\)_NP\\) }/{ \\1, 0 }/",
2214 "-e", "s/{ \\(0, 0, 0, PTHREAD_MUTEX_\\(RECURSIVE\\|ERRORCHECK\\|ADAPTIVE\\)_NP\\) }/{ \\1, 0, 0 }/",
f6f7aabc 2215 "-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 2216 "-e", "s/{ \\(0, 0, 0, 0, 0, 0, PTHREAD_RWLOCK_PREFER_WRITER_NONRECURSIVE_NP\\) }/{ \\1, 0 }/",
f6f7aabc
UB
2217 "-e", "/define[ \t]\\+PTHREAD_COND_INITIALIZER/s/{ { 0, } }/{ { 0, 0, 0, 0, 0, (void *) 0, 0, 0 } }/",
2218 (char*)NULL };
2219
e2556904
JM
2220/* * * * * * * * * * * * * * * * * * * * * * * * * *
2221 *
2222 * Description of Glibc_Stdint fix
2223 */
2224tSCC zGlibc_StdintName[] =
2225 "glibc_stdint";
2226
2227/*
2228 * File name selection pattern
2229 */
2230tSCC zGlibc_StdintList[] =
2231 "stdint.h\0";
2232/*
2233 * Machine/OS name selection pattern
2234 */
2235#define apzGlibc_StdintMachs (const char**)NULL
2236
2237/*
2238 * content selection pattern - do fix if pattern found
2239 */
2240tSCC zGlibc_StdintSelect0[] =
2241 "GNU C Library";
2242
2243#define GLIBC_STDINT_TEST_CT 1
2244static tTestDesc aGlibc_StdintTests[] = {
2245 { TT_EGREP, zGlibc_StdintSelect0, (regex_t*)NULL }, };
2246
2247/*
2248 * Fix Command Arguments for Glibc_Stdint
2249 */
2250static const char* apzGlibc_StdintPatch[] = {
2251 "format",
2252 "# define UINT8_C(c)\tc\n\
2253# define UINT16_C(c)\tc",
2254 "# define UINT8_C\\(c\\)\tc ## U\n\
2255# define UINT16_C\\(c\\)\tc ## U",
2256 (char*)NULL };
2257
928c19bb
JM
2258/* * * * * * * * * * * * * * * * * * * * * * * * * *
2259 *
2260 * Description of Glibc_Tgmath fix
2261 */
2262tSCC zGlibc_TgmathName[] =
2263 "glibc_tgmath";
2264
2265/*
2266 * File name selection pattern
2267 */
2268tSCC zGlibc_TgmathList[] =
2269 "tgmath.h\0";
2270/*
2271 * Machine/OS name selection pattern
2272 */
2273#define apzGlibc_TgmathMachs (const char**)NULL
2274
2275/*
2276 * content selection pattern - do fix if pattern found
2277 */
2278tSCC zGlibc_TgmathSelect0[] =
2279 "\\(\\(\\(type\\) 0.25\\) && \\(\\(type\\) 0.25 - 1\\)\\)";
2280
2281/*
2282 * content bypass pattern - skip fix if pattern found
2283 */
2284tSCC zGlibc_TgmathBypass0[] =
2285 "__floating_type \\\\\n\
2286.*__builtin_classify_type";
2287
2288#define GLIBC_TGMATH_TEST_CT 2
2289static tTestDesc aGlibc_TgmathTests[] = {
2290 { TT_NEGREP, zGlibc_TgmathBypass0, (regex_t*)NULL },
2291 { TT_EGREP, zGlibc_TgmathSelect0, (regex_t*)NULL }, };
2292
2293/*
2294 * Fix Command Arguments for Glibc_Tgmath
2295 */
2296static const char* apzGlibc_TgmathPatch[] = {
2297 "format",
2298 "(__builtin_classify_type ((type) 0) == 8 || (__builtin_classify_type ((type) 0) == 9 && __builtin_classify_type (__real__ ((type) 0)) == 8))",
2299 (char*)NULL };
2300
7b78a14a
BK
2301/* * * * * * * * * * * * * * * * * * * * * * * * * *
2302 *
2303 * Description of Gnu_Types fix
2304 */
2305tSCC zGnu_TypesName[] =
2306 "gnu_types";
2307
2308/*
2309 * File name selection pattern
2310 */
2311tSCC zGnu_TypesList[] =
401be4b6 2312 "sys/types.h\0stdlib.h\0sys/stdtypes.h\0stddef.h\0memory.h\0unistd.h\0";
7b78a14a
BK
2313/*
2314 * Machine/OS name selection pattern
2315 */
9fcc7481
MM
2316tSCC* apzGnu_TypesMachs[] = {
2317 "*-*-solaris2.1[0-9]*",
2318 (const char*)NULL };
7b78a14a
BK
2319
2320/*
2321 * content selection pattern - do fix if pattern found
2322 */
2323tSCC zGnu_TypesSelect0[] =
2324 "^[ \t]*typedef[ \t]+.*[ \t](ptrdiff|size|wchar)_t;";
2325
2326/*
2327 * content bypass pattern - skip fix if pattern found
2328 */
2329tSCC zGnu_TypesBypass0[] =
2330 "_GCC_(PTRDIFF|SIZE|WCHAR)_T";
2331
2332#define GNU_TYPES_TEST_CT 2
2333static tTestDesc aGnu_TypesTests[] = {
2334 { TT_NEGREP, zGnu_TypesBypass0, (regex_t*)NULL },
2335 { TT_EGREP, zGnu_TypesSelect0, (regex_t*)NULL }, };
2336
2337/*
2338 * Fix Command Arguments for Gnu_Types
2339 */
2340static const char* apzGnu_TypesPatch[] = {
2341 "gnu_type",
2342 (char*)NULL };
2343
06bbab1b
BK
2344/* * * * * * * * * * * * * * * * * * * * * * * * * *
2345 *
79589c4d 2346 * Description of Hp_Inline fix
06bbab1b 2347 */
79589c4d
BK
2348tSCC zHp_InlineName[] =
2349 "hp_inline";
3be1fb72 2350
06bbab1b
BK
2351/*
2352 * File name selection pattern
2353 */
79589c4d 2354tSCC zHp_InlineList[] =
401be4b6 2355 "sys/spinlock.h\0machine/machparam.h\0";
06bbab1b
BK
2356/*
2357 * Machine/OS name selection pattern
2358 */
79589c4d 2359#define apzHp_InlineMachs (const char**)NULL
87b6d63a
BK
2360
2361/*
2362 * content selection pattern - do fix if pattern found
2363 */
79589c4d 2364tSCC zHp_InlineSelect0[] =
cd64831f 2365 "[ \t]*#[ \t]*include[ \t]+\"\\.\\./machine/";
87b6d63a 2366
79589c4d 2367#define HP_INLINE_TEST_CT 1
3af556f7 2368static tTestDesc aHp_InlineTests[] = {
79589c4d 2369 { TT_EGREP, zHp_InlineSelect0, (regex_t*)NULL }, };
06bbab1b
BK
2370
2371/*
79589c4d 2372 * Fix Command Arguments for Hp_Inline
06bbab1b 2373 */
3af556f7 2374static const char* apzHp_InlinePatch[] = {
cd64831f
BK
2375 "format",
2376 "%1<machine/%2.h>",
2377 "([ \t]*#[ \t]*include[ \t]+)\"\\.\\./machine/([a-z]+)\\.h\"",
06bbab1b
BK
2378 (char*)NULL };
2379
2380/* * * * * * * * * * * * * * * * * * * * * * * * * *
2381 *
79589c4d 2382 * Description of Hp_Sysfile fix
06bbab1b 2383 */
79589c4d
BK
2384tSCC zHp_SysfileName[] =
2385 "hp_sysfile";
3be1fb72 2386
06bbab1b
BK
2387/*
2388 * File name selection pattern
2389 */
79589c4d 2390tSCC zHp_SysfileList[] =
401be4b6 2391 "sys/file.h\0";
06bbab1b
BK
2392/*
2393 * Machine/OS name selection pattern
2394 */
79589c4d 2395#define apzHp_SysfileMachs (const char**)NULL
06bbab1b
BK
2396
2397/*
be02fa1a 2398 * content selection pattern - do fix if pattern found
06bbab1b 2399 */
79589c4d
BK
2400tSCC zHp_SysfileSelect0[] =
2401 "HPUX_SOURCE";
06bbab1b 2402
79589c4d 2403#define HP_SYSFILE_TEST_CT 1
3af556f7 2404static tTestDesc aHp_SysfileTests[] = {
79589c4d 2405 { TT_EGREP, zHp_SysfileSelect0, (regex_t*)NULL }, };
06bbab1b
BK
2406
2407/*
79589c4d 2408 * Fix Command Arguments for Hp_Sysfile
06bbab1b 2409 */
3af556f7 2410static const char* apzHp_SysfilePatch[] = {
cd64831f
BK
2411 "format",
2412 "(struct file *, ...)",
2413 "\\(\\.\\.\\.\\)",
06bbab1b
BK
2414 (char*)NULL };
2415
6aa1f8c1
BK
2416/* * * * * * * * * * * * * * * * * * * * * * * * * *
2417 *
2418 * Description of Hppa_Hpux_Fp_Macros fix
2419 */
2420tSCC zHppa_Hpux_Fp_MacrosName[] =
2421 "hppa_hpux_fp_macros";
2422
2423/*
2424 * File name selection pattern
2425 */
2426tSCC zHppa_Hpux_Fp_MacrosList[] =
2427 "math.h\0";
2428/*
2429 * Machine/OS name selection pattern
2430 */
2431tSCC* apzHppa_Hpux_Fp_MacrosMachs[] = {
2432 "hppa*-hp-hpux11*",
2433 (const char*)NULL };
2434
2435/*
2436 * content selection pattern - do fix if pattern found
2437 */
2438tSCC zHppa_Hpux_Fp_MacrosSelect0[] =
2439 "#[ \t]*define[ \t]*FP_NORMAL.*\n\
2440#[ \t]*define[ \t]*FP_ZERO.*\n\
2441#[ \t]*define[ \t]*FP_INFINITE.*\n\
2442#[ \t]*define[ \t]*FP_SUBNORMAL.*\n\
2443#[ \t]*define[ \t]*FP_NAN.*\n";
2444
2445#define HPPA_HPUX_FP_MACROS_TEST_CT 1
2446static tTestDesc aHppa_Hpux_Fp_MacrosTests[] = {
2447 { TT_EGREP, zHppa_Hpux_Fp_MacrosSelect0, (regex_t*)NULL }, };
2448
2449/*
2450 * Fix Command Arguments for Hppa_Hpux_Fp_Macros
2451 */
2452static const char* apzHppa_Hpux_Fp_MacrosPatch[] = {
2453 "format",
2454 "#endif /* _INCLUDE_HPUX_SOURCE */\n\n\
2455#if defined(_INCLUDE_HPUX_SOURCE) || \\\n\
2456 (defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 199901L))\n\
2457%0#endif\n\n\
2458#ifdef _INCLUDE_HPUX_SOURCE\n",
2459 (char*)NULL };
2460
5ffd49b8
JDA
2461/* * * * * * * * * * * * * * * * * * * * * * * * * *
2462 *
2463 * Description of Hpux10_Cpp_Pow_Inline fix
2464 */
2465tSCC zHpux10_Cpp_Pow_InlineName[] =
2466 "hpux10_cpp_pow_inline";
2467
2468/*
2469 * File name selection pattern
2470 */
2471tSCC zHpux10_Cpp_Pow_InlineList[] =
401be4b6 2472 "fixinc-test-limits.h\0math.h\0";
5ffd49b8
JDA
2473/*
2474 * Machine/OS name selection pattern
2475 */
2476#define apzHpux10_Cpp_Pow_InlineMachs (const char**)NULL
2477
2478/*
2479 * content selection pattern - do fix if pattern found
2480 */
2481tSCC zHpux10_Cpp_Pow_InlineSelect0[] =
2482 "^# +ifdef +__cplusplus\n\
ab747408
ZW
2483 +\\}\n\
2484 +inline +double +pow\\(double +__d,int +__expon\\) +\\{\n\
5ffd49b8 2485[ \t]+return +pow\\(__d,\\(double\\)__expon\\);\n\
ab747408
ZW
2486 +\\}\n\
2487 +extern +\"C\" +\\{\n\
5ffd49b8
JDA
2488#else\n\
2489# +endif";
2490
2491#define HPUX10_CPP_POW_INLINE_TEST_CT 1
2492static tTestDesc aHpux10_Cpp_Pow_InlineTests[] = {
2493 { TT_EGREP, zHpux10_Cpp_Pow_InlineSelect0, (regex_t*)NULL }, };
2494
2495/*
2496 * Fix Command Arguments for Hpux10_Cpp_Pow_Inline
2497 */
2498static const char* apzHpux10_Cpp_Pow_InlinePatch[] = {
2499 "format",
2500 "",
2501 (char*)NULL };
2502
eb559363
BK
2503/* * * * * * * * * * * * * * * * * * * * * * * * * *
2504 *
2505 * Description of Hpux11_Cpp_Pow_Inline fix
2506 */
2507tSCC zHpux11_Cpp_Pow_InlineName[] =
2508 "hpux11_cpp_pow_inline";
2509
2510/*
2511 * File name selection pattern
2512 */
2513tSCC zHpux11_Cpp_Pow_InlineList[] =
401be4b6 2514 "math.h\0";
eb559363
BK
2515/*
2516 * Machine/OS name selection pattern
2517 */
2518#define apzHpux11_Cpp_Pow_InlineMachs (const char**)NULL
2519
2520/*
2521 * content selection pattern - do fix if pattern found
2522 */
2523tSCC zHpux11_Cpp_Pow_InlineSelect0[] =
ab747408 2524 " +inline double pow\\(double d,int expon\\) \\{\n\
eb559363 2525 +return pow\\(d, \\(double\\)expon\\);\n\
ab747408 2526 +\\}\n";
eb559363
BK
2527
2528#define HPUX11_CPP_POW_INLINE_TEST_CT 1
2529static tTestDesc aHpux11_Cpp_Pow_InlineTests[] = {
2530 { TT_EGREP, zHpux11_Cpp_Pow_InlineSelect0, (regex_t*)NULL }, };
2531
2532/*
2533 * Fix Command Arguments for Hpux11_Cpp_Pow_Inline
2534 */
2535static const char* apzHpux11_Cpp_Pow_InlinePatch[] = {
2536 "format",
2537 "",
2538 (char*)NULL };
2539
27eaa708
BK
2540/* * * * * * * * * * * * * * * * * * * * * * * * * *
2541 *
afc41460 2542 * Description of Hpux10_Ctype_Declarations1 fix
27eaa708 2543 */
afc41460
BK
2544tSCC zHpux10_Ctype_Declarations1Name[] =
2545 "hpux10_ctype_declarations1";
27eaa708
BK
2546
2547/*
2548 * File name selection pattern
2549 */
afc41460 2550tSCC zHpux10_Ctype_Declarations1List[] =
401be4b6 2551 "ctype.h\0";
27eaa708
BK
2552/*
2553 * Machine/OS name selection pattern
2554 */
afc41460 2555#define apzHpux10_Ctype_Declarations1Machs (const char**)NULL
27eaa708
BK
2556
2557/*
2558 * content selection pattern - do fix if pattern found
2559 */
afc41460
BK
2560tSCC zHpux10_Ctype_Declarations1Select0[] =
2561 "^#[ \t]*define _toupper\\(__c\\)[ \t]*__toupper\\(__c\\)";
27eaa708 2562
afc41460
BK
2563/*
2564 * content bypass pattern - skip fix if pattern found
2565 */
2566tSCC zHpux10_Ctype_Declarations1Bypass0[] =
2567 "^[ \t]*extern[ \t]*int[ \t]*__tolower[ \t]*\\(";
2568
2569#define HPUX10_CTYPE_DECLARATIONS1_TEST_CT 2
2570static tTestDesc aHpux10_Ctype_Declarations1Tests[] = {
2571 { TT_NEGREP, zHpux10_Ctype_Declarations1Bypass0, (regex_t*)NULL },
2572 { TT_EGREP, zHpux10_Ctype_Declarations1Select0, (regex_t*)NULL }, };
27eaa708
BK
2573
2574/*
afc41460 2575 * Fix Command Arguments for Hpux10_Ctype_Declarations1
27eaa708 2576 */
afc41460 2577static const char* apzHpux10_Ctype_Declarations1Patch[] = {
27eaa708 2578 "format",
afc41460
BK
2579 "#ifdef _PROTOTYPES\n\
2580extern int __tolower(int);\n\
2581extern int __toupper(int);\n\
2582#else /* NOT _PROTOTYPES */\n\
2583extern int __tolower();\n\
2584extern int __toupper();\n\
2585#endif /* _PROTOTYPES */\n\n\
2586%0\n",
27eaa708
BK
2587 (char*)NULL };
2588
2026dcf9
JDA
2589/* * * * * * * * * * * * * * * * * * * * * * * * * *
2590 *
afc41460 2591 * Description of Hpux10_Ctype_Declarations2 fix
2026dcf9 2592 */
afc41460
BK
2593tSCC zHpux10_Ctype_Declarations2Name[] =
2594 "hpux10_ctype_declarations2";
2026dcf9
JDA
2595
2596/*
2597 * File name selection pattern
2598 */
afc41460 2599tSCC zHpux10_Ctype_Declarations2List[] =
401be4b6 2600 "ctype.h\0";
2026dcf9
JDA
2601/*
2602 * Machine/OS name selection pattern
2603 */
afc41460 2604#define apzHpux10_Ctype_Declarations2Machs (const char**)NULL
2026dcf9
JDA
2605
2606/*
2607 * content selection pattern - do fix if pattern found
2608 */
afc41460
BK
2609tSCC zHpux10_Ctype_Declarations2Select0[] =
2610 "^# if defined\\(_SB_CTYPE_MACROS\\) && \\!defined\\(__lint\\)";
2026dcf9 2611
c20b55c0
JDA
2612/*
2613 * content bypass pattern - skip fix if pattern found
2614 */
afc41460
BK
2615tSCC zHpux10_Ctype_Declarations2Bypass0[] =
2616 "^[ \t]*extern[ \t]*int[ \t]*_isalnum[ \t]*\\(";
c20b55c0 2617
afc41460
BK
2618#define HPUX10_CTYPE_DECLARATIONS2_TEST_CT 2
2619static tTestDesc aHpux10_Ctype_Declarations2Tests[] = {
2620 { TT_NEGREP, zHpux10_Ctype_Declarations2Bypass0, (regex_t*)NULL },
2621 { TT_EGREP, zHpux10_Ctype_Declarations2Select0, (regex_t*)NULL }, };
2026dcf9
JDA
2622
2623/*
afc41460 2624 * Fix Command Arguments for Hpux10_Ctype_Declarations2
2026dcf9 2625 */
afc41460
BK
2626static const char* apzHpux10_Ctype_Declarations2Patch[] = {
2627 "format",
2628 "%0\n\n\
2629#ifdef _PROTOTYPES\n\
2630 extern int _isalnum(int);\n\
2631 extern int _isalpha(int);\n\
2632 extern int _iscntrl(int);\n\
2633 extern int _isdigit(int);\n\
2634 extern int _isgraph(int);\n\
2635 extern int _islower(int);\n\
2636 extern int _isprint(int);\n\
2637 extern int _ispunct(int);\n\
2638 extern int _isspace(int);\n\
2639 extern int _isupper(int);\n\
2640 extern int _isxdigit(int);\n\
2641# else /* not _PROTOTYPES */\n\
2642 extern int _isalnum();\n\
2643 extern int _isalpha();\n\
2644 extern int _iscntrl();\n\
2645 extern int _isdigit();\n\
2646 extern int _isgraph();\n\
2647 extern int _islower();\n\
2648 extern int _isprint();\n\
2649 extern int _ispunct();\n\
2650 extern int _isspace();\n\
2651 extern int _isupper();\n\
2652 extern int _isxdigit();\n\
2653#endif /* _PROTOTYPES */\n",
2654 (char*)NULL };
2655
4b60eb3b
JDA
2656/* * * * * * * * * * * * * * * * * * * * * * * * * *
2657 *
2658 * Description of Hpux10_Stdio_Declarations fix
2659 */
2660tSCC zHpux10_Stdio_DeclarationsName[] =
2661 "hpux10_stdio_declarations";
2662
2663/*
2664 * File name selection pattern
2665 */
2666tSCC zHpux10_Stdio_DeclarationsList[] =
401be4b6 2667 "stdio.h\0";
4b60eb3b
JDA
2668/*
2669 * Machine/OS name selection pattern
2670 */
2671#define apzHpux10_Stdio_DeclarationsMachs (const char**)NULL
2672
2673/*
2674 * content selection pattern - do fix if pattern found
2675 */
2676tSCC zHpux10_Stdio_DeclarationsSelect0[] =
2677 "^#[ \t]*define _iob[ \t]*__iob";
2678
2679/*
2680 * content bypass pattern - skip fix if pattern found
2681 */
2682tSCC zHpux10_Stdio_DeclarationsBypass0[] =
2683 "^[ \t]*extern[ \t]*int[ \t]*vsnprintf[ \t]*\\(";
2684
2685#define HPUX10_STDIO_DECLARATIONS_TEST_CT 2
2686static tTestDesc aHpux10_Stdio_DeclarationsTests[] = {
2687 { TT_NEGREP, zHpux10_Stdio_DeclarationsBypass0, (regex_t*)NULL },
2688 { TT_EGREP, zHpux10_Stdio_DeclarationsSelect0, (regex_t*)NULL }, };
2689
2690/*
2691 * Fix Command Arguments for Hpux10_Stdio_Declarations
2692 */
2693static const char* apzHpux10_Stdio_DeclarationsPatch[] = {
2694 "format",
2695 "%0\n\n\
2696# if defined(__STDC__) || defined(__cplusplus)\n\
2697 extern int snprintf(char *, size_t, const char *, ...);\n\
2698 extern int vsnprintf(char *, size_t, const char *, __va_list);\n\
2699# else /* not __STDC__) || __cplusplus */\n\
2700 extern int snprintf();\n\
2701 extern int vsnprintf();\n\
2702# endif /* __STDC__) || __cplusplus */\n",
2703 (char*)NULL };
2704
afc41460
BK
2705/* * * * * * * * * * * * * * * * * * * * * * * * * *
2706 *
2707 * Description of Hpux11_Abs fix
2708 */
2709tSCC zHpux11_AbsName[] =
2710 "hpux11_abs";
2711
2712/*
2713 * File name selection pattern
2714 */
2715tSCC zHpux11_AbsList[] =
401be4b6 2716 "stdlib.h\0";
afc41460
BK
2717/*
2718 * Machine/OS name selection pattern
2719 */
2720tSCC* apzHpux11_AbsMachs[] = {
2721 "ia64-hp-hpux11*",
2722 (const char*)NULL };
2723
2724/*
2725 * content selection pattern - do fix if pattern found
2726 */
2727tSCC zHpux11_AbsSelect0[] =
2728 "ifndef _MATH_INCLUDED";
2729
2730#define HPUX11_ABS_TEST_CT 1
2731static tTestDesc aHpux11_AbsTests[] = {
2732 { TT_EGREP, zHpux11_AbsSelect0, (regex_t*)NULL }, };
2733
2734/*
2735 * Fix Command Arguments for Hpux11_Abs
2736 */
2737static const char* apzHpux11_AbsPatch[] = {
2738 "format",
2739 "if !defined(_MATH_INCLUDED) || defined(__GNUG__)",
2026dcf9
JDA
2740 (char*)NULL };
2741
2dc693ee
BK
2742/* * * * * * * * * * * * * * * * * * * * * * * * * *
2743 *
2744 * Description of Hpux11_Fabsf fix
2745 */
2dc693ee
BK
2746tSCC zHpux11_FabsfName[] =
2747 "hpux11_fabsf";
2748
2749/*
2750 * File name selection pattern
2751 */
2752tSCC zHpux11_FabsfList[] =
401be4b6 2753 "math.h\0";
2dc693ee
BK
2754/*
2755 * Machine/OS name selection pattern
2756 */
2757#define apzHpux11_FabsfMachs (const char**)NULL
2758
2759/*
2760 * content selection pattern - do fix if pattern found
2761 */
2762tSCC zHpux11_FabsfSelect0[] =
2763 "^[ \t]*#[ \t]*define[ \t]+fabsf\\(.*";
2764
2765/*
2766 * content bypass pattern - skip fix if pattern found
2767 */
2768tSCC zHpux11_FabsfBypass0[] =
2769 "__cplusplus";
2770
2771#define HPUX11_FABSF_TEST_CT 2
3af556f7 2772static tTestDesc aHpux11_FabsfTests[] = {
2dc693ee
BK
2773 { TT_NEGREP, zHpux11_FabsfBypass0, (regex_t*)NULL },
2774 { TT_EGREP, zHpux11_FabsfSelect0, (regex_t*)NULL }, };
2775
2776/*
2777 * Fix Command Arguments for Hpux11_Fabsf
2778 */
3af556f7 2779static const char* apzHpux11_FabsfPatch[] = {
2dc693ee
BK
2780 "format",
2781 "#ifndef __cplusplus\n\
2782%0\n\
2783#endif",
2784 (char*)NULL };
2785
6aa1f8c1
BK
2786/* * * * * * * * * * * * * * * * * * * * * * * * * *
2787 *
2788 * Description of Hpux11_Pthread_Const fix
2789 */
2790tSCC zHpux11_Pthread_ConstName[] =
2791 "hpux11_pthread_const";
2792
2793/*
2794 * File name selection pattern
2795 */
2796tSCC zHpux11_Pthread_ConstList[] =
2797 "sys/pthread.h\0";
2798/*
2799 * Machine/OS name selection pattern
2800 */
2801tSCC* apzHpux11_Pthread_ConstMachs[] = {
2802 "*-hp-hpux11.[0-3]*",
2803 (const char*)NULL };
2804
2805/*
2806 * content selection pattern - do fix if pattern found
2807 */
2808tSCC zHpux11_Pthread_ConstSelect0[] =
2809 "^#define[ \t]*__POINTER_SET[ \t]*\\(\\(void \\*\\) 1LL\\)";
2810
2811#define HPUX11_PTHREAD_CONST_TEST_CT 1
2812static tTestDesc aHpux11_Pthread_ConstTests[] = {
2813 { TT_EGREP, zHpux11_Pthread_ConstSelect0, (regex_t*)NULL }, };
2814
2815/*
2816 * Fix Command Arguments for Hpux11_Pthread_Const
2817 */
2818static const char* apzHpux11_Pthread_ConstPatch[] = {
2819 "format",
2820 "#define __POINTER_SET\t\t((void *) 1L)",
2821 (char*)NULL };
2822
34b3b0f6
JM
2823/* * * * * * * * * * * * * * * * * * * * * * * * * *
2824 *
2825 * Description of Hpux11_Size_T fix
2826 */
2827tSCC zHpux11_Size_TName[] =
2828 "hpux11_size_t";
2829
2830/*
2831 * File name selection pattern
2832 */
2833#define zHpux11_Size_TList (char*)NULL
2834/*
2835 * Machine/OS name selection pattern
2836 */
2837tSCC* apzHpux11_Size_TMachs[] = {
b5639a49 2838 "*-hp-hpux11*",
34b3b0f6
JM
2839 (const char*)NULL };
2840
2841/*
2842 * content selection pattern - do fix if pattern found
2843 */
2844tSCC zHpux11_Size_TSelect0[] =
b5639a49 2845 "__size_t";
34b3b0f6
JM
2846
2847#define HPUX11_SIZE_T_TEST_CT 1
2848static tTestDesc aHpux11_Size_TTests[] = {
2849 { TT_EGREP, zHpux11_Size_TSelect0, (regex_t*)NULL }, };
2850
2851/*
2852 * Fix Command Arguments for Hpux11_Size_T
2853 */
2854static const char* apzHpux11_Size_TPatch[] = {
2855 "format",
2856 "_hpux_size_t",
34b3b0f6
JM
2857 (char*)NULL };
2858
11f9a0ed
BK
2859/* * * * * * * * * * * * * * * * * * * * * * * * * *
2860 *
2861 * Description of Hpux11_Snprintf fix
2862 */
2863tSCC zHpux11_SnprintfName[] =
2864 "hpux11_snprintf";
2865
2866/*
2867 * File name selection pattern
2868 */
2869tSCC zHpux11_SnprintfList[] =
401be4b6 2870 "stdio.h\0";
11f9a0ed
BK
2871/*
2872 * Machine/OS name selection pattern
2873 */
2874#define apzHpux11_SnprintfMachs (const char**)NULL
2875
2876/*
2877 * content selection pattern - do fix if pattern found
2878 */
2879tSCC zHpux11_SnprintfSelect0[] =
2880 "(extern int snprintf *\\(char *\\*, *(|__|_hpux_)size_t,) *(char *\\*, *\\.\\.\\.\\);)";
2881
2882#define HPUX11_SNPRINTF_TEST_CT 1
2883static tTestDesc aHpux11_SnprintfTests[] = {
2884 { TT_EGREP, zHpux11_SnprintfSelect0, (regex_t*)NULL }, };
2885
2886/*
2887 * Fix Command Arguments for Hpux11_Snprintf
2888 */
2889static const char* apzHpux11_SnprintfPatch[] = {
2890 "format",
2891 "%1 const %3",
2892 (char*)NULL };
2893
d7eb5a45
ZW
2894/* * * * * * * * * * * * * * * * * * * * * * * * * *
2895 *
cd64831f 2896 * Description of Hpux11_Uint32_C fix
d7eb5a45 2897 */
cd64831f
BK
2898tSCC zHpux11_Uint32_CName[] =
2899 "hpux11_uint32_c";
3be1fb72 2900
d7eb5a45
ZW
2901/*
2902 * File name selection pattern
2903 */
cd64831f 2904tSCC zHpux11_Uint32_CList[] =
401be4b6 2905 "inttypes.h\0";
d7eb5a45
ZW
2906/*
2907 * Machine/OS name selection pattern
2908 */
cd64831f 2909#define apzHpux11_Uint32_CMachs (const char**)NULL
d7eb5a45
ZW
2910
2911/*
2912 * content selection pattern - do fix if pattern found
2913 */
cd64831f
BK
2914tSCC zHpux11_Uint32_CSelect0[] =
2915 "^#define UINT32_C\\(__c\\)[ \t]*__CONCAT__\\(__CONCAT_U__\\(__c\\),l\\)";
d7eb5a45 2916
cd64831f 2917#define HPUX11_UINT32_C_TEST_CT 1
3af556f7 2918static tTestDesc aHpux11_Uint32_CTests[] = {
cd64831f 2919 { TT_EGREP, zHpux11_Uint32_CSelect0, (regex_t*)NULL }, };
d7eb5a45
ZW
2920
2921/*
cd64831f 2922 * Fix Command Arguments for Hpux11_Uint32_C
d7eb5a45 2923 */
3af556f7 2924static const char* apzHpux11_Uint32_CPatch[] = {
cd64831f
BK
2925 "format",
2926 "#define UINT32_C(__c) __CONCAT__(__c,ul)",
d7eb5a45
ZW
2927 (char*)NULL };
2928
2026dcf9
JDA
2929/* * * * * * * * * * * * * * * * * * * * * * * * * *
2930 *
afc41460 2931 * Description of Hpux11_Vsnprintf fix
2026dcf9 2932 */
afc41460
BK
2933tSCC zHpux11_VsnprintfName[] =
2934 "hpux11_vsnprintf";
2026dcf9
JDA
2935
2936/*
2937 * File name selection pattern
2938 */
afc41460 2939tSCC zHpux11_VsnprintfList[] =
401be4b6 2940 "stdio.h\0";
2026dcf9
JDA
2941/*
2942 * Machine/OS name selection pattern
2943 */
afc41460 2944#define apzHpux11_VsnprintfMachs (const char**)NULL
2026dcf9
JDA
2945
2946/*
2947 * content selection pattern - do fix if pattern found
2948 */
afc41460
BK
2949tSCC zHpux11_VsnprintfSelect0[] =
2950 "(extern int vsnprintf\\(char \\*, _[hpux]*_size_t, const char \\*,) __va__list\\);";
2026dcf9 2951
afc41460
BK
2952#define HPUX11_VSNPRINTF_TEST_CT 1
2953static tTestDesc aHpux11_VsnprintfTests[] = {
2954 { TT_EGREP, zHpux11_VsnprintfSelect0, (regex_t*)NULL }, };
2026dcf9
JDA
2955
2956/*
afc41460 2957 * Fix Command Arguments for Hpux11_Vsnprintf
2026dcf9 2958 */
afc41460 2959static const char* apzHpux11_VsnprintfPatch[] = {
2026dcf9 2960 "format",
afc41460 2961 "%1 __va_list);",
2026dcf9
JDA
2962 (char*)NULL };
2963
2964/* * * * * * * * * * * * * * * * * * * * * * * * * *
2965 *
afc41460 2966 * Description of Hpux8_Bogus_Inlines fix
2026dcf9 2967 */
afc41460
BK
2968tSCC zHpux8_Bogus_InlinesName[] =
2969 "hpux8_bogus_inlines";
2026dcf9
JDA
2970
2971/*
2972 * File name selection pattern
2973 */
afc41460 2974tSCC zHpux8_Bogus_InlinesList[] =
401be4b6 2975 "math.h\0";
2026dcf9
JDA
2976/*
2977 * Machine/OS name selection pattern
2978 */
afc41460 2979#define apzHpux8_Bogus_InlinesMachs (const char**)NULL
2026dcf9
JDA
2980
2981/*
2982 * content selection pattern - do fix if pattern found
2983 */
afc41460
BK
2984tSCC zHpux8_Bogus_InlinesSelect0[] =
2985 "inline";
2026dcf9 2986
793387fa
JM
2987/*
2988 * content bypass pattern - skip fix if pattern found
2989 */
2990tSCC zHpux8_Bogus_InlinesBypass0[] =
2991 "__GNUG__";
2992
2993#define HPUX8_BOGUS_INLINES_TEST_CT 2
afc41460 2994static tTestDesc aHpux8_Bogus_InlinesTests[] = {
793387fa 2995 { TT_NEGREP, zHpux8_Bogus_InlinesBypass0, (regex_t*)NULL },
afc41460 2996 { TT_EGREP, zHpux8_Bogus_InlinesSelect0, (regex_t*)NULL }, };
2026dcf9
JDA
2997
2998/*
afc41460 2999 * Fix Command Arguments for Hpux8_Bogus_Inlines
2026dcf9 3000 */
6aa1f8c1 3001static const char* apzHpux8_Bogus_InlinesPatch[] = { sed_cmd_z,
afc41460
BK
3002 "-e", "s@inline int abs(int [a-z][a-z]*) {.*}@extern \"C\" int abs(int);@",
3003 "-e", "s@inline double abs(double [a-z][a-z]*) {.*}@@",
3004 "-e", "s@inline int sqr(int [a-z][a-z]*) {.*}@@",
3005 "-e", "s@inline double sqr(double [a-z][a-z]*) {.*}@@",
2026dcf9
JDA
3006 (char*)NULL };
3007
3008/* * * * * * * * * * * * * * * * * * * * * * * * * *
3009 *
3010 * Description of Hpux_Ctype_Macros fix
3011 */
3012tSCC zHpux_Ctype_MacrosName[] =
3013 "hpux_ctype_macros";
3014
3015/*
3016 * File name selection pattern
3017 */
3018tSCC zHpux_Ctype_MacrosList[] =
401be4b6 3019 "ctype.h\0";
2026dcf9
JDA
3020/*
3021 * Machine/OS name selection pattern
3022 */
3023#define apzHpux_Ctype_MacrosMachs (const char**)NULL
3024
3025/*
3026 * content selection pattern - do fix if pattern found
3027 */
3028tSCC zHpux_Ctype_MacrosSelect0[] =
3029 "((: |\\()__SB_masks \\? )(__SB_masks\\[__(alnum|c)\\] & _IS)";
3030
3031#define HPUX_CTYPE_MACROS_TEST_CT 1
3032static tTestDesc aHpux_Ctype_MacrosTests[] = {
3033 { TT_EGREP, zHpux_Ctype_MacrosSelect0, (regex_t*)NULL }, };
3034
3035/*
3036 * Fix Command Arguments for Hpux_Ctype_Macros
3037 */
3038static const char* apzHpux_Ctype_MacrosPatch[] = {
3039 "format",
3040 "%1(int)%3",
3041 (char*)NULL };
3042
7fbdc950
JM
3043/* * * * * * * * * * * * * * * * * * * * * * * * * *
3044 *
3045 * Description of Hpux_Htonl fix
3046 */
3047tSCC zHpux_HtonlName[] =
3048 "hpux_htonl";
3049
3050/*
3051 * File name selection pattern
3052 */
3053tSCC zHpux_HtonlList[] =
401be4b6 3054 "netinet/in.h\0";
7fbdc950
JM
3055/*
3056 * Machine/OS name selection pattern
3057 */
3058#define apzHpux_HtonlMachs (const char**)NULL
3059
3060/*
3061 * content selection pattern - do fix if pattern found
3062 */
3063tSCC zHpux_HtonlSelect0[] =
3064 "#ifndef _XOPEN_SOURCE_EXTENDED\n\
3065(/\\*\n\
3066 \\* Macros for number representation conversion\\.\n\
3067 \\*/\n\
3068#ifndef ntohl)";
3069
3070#define HPUX_HTONL_TEST_CT 1
3071static tTestDesc aHpux_HtonlTests[] = {
3072 { TT_EGREP, zHpux_HtonlSelect0, (regex_t*)NULL }, };
3073
3074/*
3075 * Fix Command Arguments for Hpux_Htonl
3076 */
3077static const char* apzHpux_HtonlPatch[] = {
3078 "format",
3079 "#if 1\n\
3080%1",
3081 (char*)NULL };
3082
b8d0bbf7
BK
3083/* * * * * * * * * * * * * * * * * * * * * * * * * *
3084 *
afc41460 3085 * Description of Hpux_Long_Double fix
b8d0bbf7 3086 */
afc41460
BK
3087tSCC zHpux_Long_DoubleName[] =
3088 "hpux_long_double";
b8d0bbf7
BK
3089
3090/*
3091 * File name selection pattern
3092 */
afc41460 3093tSCC zHpux_Long_DoubleList[] =
401be4b6 3094 "stdlib.h\0";
b8d0bbf7
BK
3095/*
3096 * Machine/OS name selection pattern
3097 */
afc41460 3098#define apzHpux_Long_DoubleMachs (const char**)NULL
b8d0bbf7
BK
3099
3100/*
3101 * content selection pattern - do fix if pattern found
3102 */
afc41460
BK
3103tSCC zHpux_Long_DoubleSelect0[] =
3104 "extern[ \t]long_double[ \t]strtold";
abf7cec7
GRK
3105
3106/*
afc41460 3107 * content bypass pattern - skip fix if pattern found
abf7cec7 3108 */
afc41460
BK
3109tSCC zHpux_Long_DoubleBypass0[] =
3110 "long_double_t";
abf7cec7 3111
afc41460
BK
3112#define HPUX_LONG_DOUBLE_TEST_CT 2
3113static tTestDesc aHpux_Long_DoubleTests[] = {
3114 { TT_NEGREP, zHpux_Long_DoubleBypass0, (regex_t*)NULL },
3115 { TT_EGREP, zHpux_Long_DoubleSelect0, (regex_t*)NULL }, };
abf7cec7
GRK
3116
3117/*
afc41460 3118 * Fix Command Arguments for Hpux_Long_Double
abf7cec7 3119 */
6aa1f8c1 3120static const char* apzHpux_Long_DoublePatch[] = { sed_cmd_z,
afc41460
BK
3121 "-e", "/^#[ \t]*ifndef _LONG_DOUBLE/,/\\/\\* _LONG_DOUBLE \\*\\//D",
3122 "-e", "s/long_double/long double/g",
abf7cec7
GRK
3123 (char*)NULL };
3124
06bbab1b
BK
3125/* * * * * * * * * * * * * * * * * * * * * * * * * *
3126 *
7b78a14a 3127 * Description of Hpux_Systime fix
06bbab1b 3128 */
7b78a14a
BK
3129tSCC zHpux_SystimeName[] =
3130 "hpux_systime";
3be1fb72 3131
06bbab1b
BK
3132/*
3133 * File name selection pattern
3134 */
7b78a14a 3135tSCC zHpux_SystimeList[] =
401be4b6 3136 "sys/time.h\0";
06bbab1b
BK
3137/*
3138 * Machine/OS name selection pattern
3139 */
7b78a14a 3140#define apzHpux_SystimeMachs (const char**)NULL
06bbab1b
BK
3141
3142/*
b51207a4 3143 * content selection pattern - do fix if pattern found
06bbab1b 3144 */
7b78a14a
BK
3145tSCC zHpux_SystimeSelect0[] =
3146 "^extern struct sigevent;";
06bbab1b 3147
7b78a14a
BK
3148#define HPUX_SYSTIME_TEST_CT 1
3149static tTestDesc aHpux_SystimeTests[] = {
3150 { TT_EGREP, zHpux_SystimeSelect0, (regex_t*)NULL }, };
06bbab1b
BK
3151
3152/*
7b78a14a 3153 * Fix Command Arguments for Hpux_Systime
06bbab1b 3154 */
7b78a14a 3155static const char* apzHpux_SystimePatch[] = {
79589c4d 3156 "format",
7b78a14a
BK
3157 "struct sigevent;",
3158 (char*)NULL };
3159
e084430d
SE
3160/* * * * * * * * * * * * * * * * * * * * * * * * * *
3161 *
3162 * Description of Hpux_Spu_Info fix
3163 */
3164tSCC zHpux_Spu_InfoName[] =
3165 "hpux_spu_info";
3166
3167/*
3168 * File name selection pattern
3169 */
3170tSCC zHpux_Spu_InfoList[] =
8ba59b08 3171 "ia64/sys/getppdp.h\0*/sys/getppdp.h\0";
e084430d
SE
3172/*
3173 * Machine/OS name selection pattern
3174 */
3175tSCC* apzHpux_Spu_InfoMachs[] = {
3176 "*-hp-hpux*",
3177 (const char*)NULL };
3178
3179/*
3180 * content selection pattern - do fix if pattern found
3181 */
3182tSCC zHpux_Spu_InfoSelect0[] =
3183 "^.*extern.*spu_info.*";
3184
3185#define HPUX_SPU_INFO_TEST_CT 1
3186static tTestDesc aHpux_Spu_InfoTests[] = {
3187 { TT_EGREP, zHpux_Spu_InfoSelect0, (regex_t*)NULL }, };
3188
3189/*
3190 * Fix Command Arguments for Hpux_Spu_Info
3191 */
3192static const char* apzHpux_Spu_InfoPatch[] = {
3193 "format",
3194 "#ifdef _KERNEL\n\
3195%0\n\
3196#endif",
3197 (char*)NULL };
3198
be645fd9
SE
3199/* * * * * * * * * * * * * * * * * * * * * * * * * *
3200 *
3201 * Description of Hpux11_Extern_Sendfile fix
3202 */
3203tSCC zHpux11_Extern_SendfileName[] =
3204 "hpux11_extern_sendfile";
3205
3206/*
3207 * File name selection pattern
3208 */
3209tSCC zHpux11_Extern_SendfileList[] =
401be4b6 3210 "sys/socket.h\0";
be645fd9
SE
3211/*
3212 * Machine/OS name selection pattern
3213 */
3214tSCC* apzHpux11_Extern_SendfileMachs[] = {
3215 "*-hp-hpux11.[12]*",
3216 (const char*)NULL };
3217
3218/*
3219 * content selection pattern - do fix if pattern found
3220 */
3221tSCC zHpux11_Extern_SendfileSelect0[] =
3222 "^[ \t]*extern sbsize_t sendfile.*\n\
3223.*, int\\)\\);\n";
3224
3225#define HPUX11_EXTERN_SENDFILE_TEST_CT 1
3226static tTestDesc aHpux11_Extern_SendfileTests[] = {
3227 { TT_EGREP, zHpux11_Extern_SendfileSelect0, (regex_t*)NULL }, };
3228
3229/*
3230 * Fix Command Arguments for Hpux11_Extern_Sendfile
3231 */
3232static const char* apzHpux11_Extern_SendfilePatch[] = {
3233 "format",
3234 "#ifndef _APP32_64BIT_OFF_T\n\
3235%0#endif\n",
3236 (char*)NULL };
3237
3238/* * * * * * * * * * * * * * * * * * * * * * * * * *
3239 *
3240 * Description of Hpux11_Extern_Sendpath fix
3241 */
3242tSCC zHpux11_Extern_SendpathName[] =
3243 "hpux11_extern_sendpath";
3244
3245/*
3246 * File name selection pattern
3247 */
3248tSCC zHpux11_Extern_SendpathList[] =
401be4b6 3249 "sys/socket.h\0";
be645fd9
SE
3250/*
3251 * Machine/OS name selection pattern
3252 */
3253tSCC* apzHpux11_Extern_SendpathMachs[] = {
3254 "*-hp-hpux11.[12]*",
3255 (const char*)NULL };
3256
3257/*
3258 * content selection pattern - do fix if pattern found
3259 */
3260tSCC zHpux11_Extern_SendpathSelect0[] =
3261 "^[ \t]*extern sbsize_t sendpath.*\n\
3262.*, int\\)\\);\n";
3263
3264#define HPUX11_EXTERN_SENDPATH_TEST_CT 1
3265static tTestDesc aHpux11_Extern_SendpathTests[] = {
3266 { TT_EGREP, zHpux11_Extern_SendpathSelect0, (regex_t*)NULL }, };
3267
3268/*
3269 * Fix Command Arguments for Hpux11_Extern_Sendpath
3270 */
3271static const char* apzHpux11_Extern_SendpathPatch[] = {
3272 "format",
3273 "#ifndef _APP32_64BIT_OFF_T\n\
3274%0#endif\n",
3275 (char*)NULL };
3276
e10e3ac8
SE
3277/* * * * * * * * * * * * * * * * * * * * * * * * * *
3278 *
3279 * Description of Hpux_Extern_Errno fix
3280 */
3281tSCC zHpux_Extern_ErrnoName[] =
3282 "hpux_extern_errno";
3283
3284/*
3285 * File name selection pattern
3286 */
3287tSCC zHpux_Extern_ErrnoList[] =
401be4b6 3288 "errno.h\0";
e10e3ac8
SE
3289/*
3290 * Machine/OS name selection pattern
3291 */
3292tSCC* apzHpux_Extern_ErrnoMachs[] = {
3293 "*-hp-hpux10.*",
3294 "*-hp-hpux11.[0-2]*",
3295 (const char*)NULL };
3296
3297/*
3298 * content selection pattern - do fix if pattern found
3299 */
3300tSCC zHpux_Extern_ErrnoSelect0[] =
3301 "^[ \t]*extern int errno;$";
3302
3303#define HPUX_EXTERN_ERRNO_TEST_CT 1
3304static tTestDesc aHpux_Extern_ErrnoTests[] = {
3305 { TT_EGREP, zHpux_Extern_ErrnoSelect0, (regex_t*)NULL }, };
3306
3307/*
3308 * Fix Command Arguments for Hpux_Extern_Errno
3309 */
3310static const char* apzHpux_Extern_ErrnoPatch[] = {
3311 "format",
3312 "#ifdef __cplusplus\n\
3313extern \"C\" {\n\
3314#endif\n\
3315%0\n\
3316#ifdef __cplusplus\n\
3317}\n\
3318#endif",
3319 (char*)NULL };
3320
6c65aa40
JDA
3321/* * * * * * * * * * * * * * * * * * * * * * * * * *
3322 *
3323 * Description of Hpux_Pthread_Initializers fix
3324 */
3325tSCC zHpux_Pthread_InitializersName[] =
3326 "hpux_pthread_initializers";
3327
3328/*
3329 * File name selection pattern
3330 */
3331tSCC zHpux_Pthread_InitializersList[] =
401be4b6 3332 "sys/pthread.h\0";
6c65aa40
JDA
3333/*
3334 * Machine/OS name selection pattern
3335 */
3336tSCC* apzHpux_Pthread_InitializersMachs[] = {
3337 "*-hp-hpux11.[0-3]*",
3338 (const char*)NULL };
3339#define HPUX_PTHREAD_INITIALIZERS_TEST_CT 0
3340#define aHpux_Pthread_InitializersTests (tTestDesc*)NULL
3341
3342/*
3343 * Fix Command Arguments for Hpux_Pthread_Initializers
3344 */
6aa1f8c1 3345static const char* apzHpux_Pthread_InitializersPatch[] = { sed_cmd_z,
6c65aa40
JDA
3346 "-e", "s@^[ \t]*1, 1, 1, 1,[ \t]*\\\\@\t{ 1, 1, 1, 1 },\t\t\t\t\t\t\t\\\\@",
3347 "-e", "s@^[ \t]*1,[ \t]*\\\\@\t{ 1, 0 }@",
3348 "-e", "/^[ \t]*0$/d",
3349 "-e", "s@__PTHREAD_MUTEX_VALID, 0@{ __PTHREAD_MUTEX_VALID, 0 }@",
3350 "-e", "s@^[ \t]*0, 0, -1, 0,[ \t]*\\\\@\t{ 0, 0, -1, 0 },\t\t\t\t\t\t\\\\@",
3351 "-e", "s@0, __LWP_MTX_VALID, 0, 1, 1, 1, 1,[ \t]*\\\\@{ 0, __LWP_MTX_VALID }, { 0, 1, 1, 1, 1 },\t\t\t\\\\@",
3352 "-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\\\\@",
3353 "-e", "s@^[ \t]*0, 0[ \t]*\\\\@\t{ 0, 0 }\t\t\t\t\t\t\t\\\\@",
3354 "-e", "s@__PTHREAD_COND_VALID, 0@{ __PTHREAD_COND_VALID, 0 }@",
3355 "-e", "s@__LWP_COND_VALID, 0,[ \t]*\\\\@{ __LWP_COND_VALID, 0 },\t\t\t\t\t\\\\@",
3356 "-e", "s@__PTHREAD_RWLOCK_VALID, 0@{ __PTHREAD_RWLOCK_VALID, 0 }@",
3357 "-e", "s@__LWP_RWLOCK_VALID, 0,[ \t]*\\\\@{ __LWP_RWLOCK_VALID, 0 },\t\t\t\t\t\\\\@",
3358 "-e", "s@^[ \t]*0, 0, 0, 0, 0, 0, 0[ \t]*\\\\@\t{ 0, 0, 0, 0, 0 }, { 0, 0}\t\t\t\t\t\\\\@",
3359 (char*)NULL };
3360
77923c29
JM
3361/* * * * * * * * * * * * * * * * * * * * * * * * * *
3362 *
3363 * Description of Huge_Val_Hex fix
3364 */
3365tSCC zHuge_Val_HexName[] =
3366 "huge_val_hex";
3367
3368/*
3369 * File name selection pattern
3370 */
3371tSCC zHuge_Val_HexList[] =
401be4b6 3372 "bits/huge_val.h\0";
77923c29
JM
3373/*
3374 * Machine/OS name selection pattern
3375 */
3376#define apzHuge_Val_HexMachs (const char**)NULL
3377
3378/*
3379 * content selection pattern - do fix if pattern found
3380 */
3381tSCC zHuge_Val_HexSelect0[] =
3382 "^#[ \t]*define[ \t]*HUGE_VAL[ \t].*0x1\\.0p.*";
3383
3384/*
3385 * content bypass pattern - skip fix if pattern found
3386 */
3387tSCC zHuge_Val_HexBypass0[] =
3388 "__builtin_huge_val";
3389
3390#define HUGE_VAL_HEX_TEST_CT 2
3391static tTestDesc aHuge_Val_HexTests[] = {
3392 { TT_NEGREP, zHuge_Val_HexBypass0, (regex_t*)NULL },
3393 { TT_EGREP, zHuge_Val_HexSelect0, (regex_t*)NULL }, };
3394
3395/*
3396 * Fix Command Arguments for Huge_Val_Hex
3397 */
3398static const char* apzHuge_Val_HexPatch[] = {
3399 "format",
3400 "#define HUGE_VAL (__builtin_huge_val())\n",
3401 (char*)NULL };
3402
3403/* * * * * * * * * * * * * * * * * * * * * * * * * *
3404 *
3405 * Description of Huge_Valf_Hex fix
3406 */
3407tSCC zHuge_Valf_HexName[] =
3408 "huge_valf_hex";
3409
3410/*
3411 * File name selection pattern
3412 */
3413tSCC zHuge_Valf_HexList[] =
401be4b6 3414 "bits/huge_val.h\0";
77923c29
JM
3415/*
3416 * Machine/OS name selection pattern
3417 */
3418#define apzHuge_Valf_HexMachs (const char**)NULL
3419
3420/*
3421 * content selection pattern - do fix if pattern found
3422 */
3423tSCC zHuge_Valf_HexSelect0[] =
3424 "^#[ \t]*define[ \t]*HUGE_VALF[ \t].*0x1\\.0p.*";
3425
3426/*
3427 * content bypass pattern - skip fix if pattern found
3428 */
3429tSCC zHuge_Valf_HexBypass0[] =
3430 "__builtin_huge_valf";
3431
3432#define HUGE_VALF_HEX_TEST_CT 2
3433static tTestDesc aHuge_Valf_HexTests[] = {
3434 { TT_NEGREP, zHuge_Valf_HexBypass0, (regex_t*)NULL },
3435 { TT_EGREP, zHuge_Valf_HexSelect0, (regex_t*)NULL }, };
3436
3437/*
3438 * Fix Command Arguments for Huge_Valf_Hex
3439 */
3440static const char* apzHuge_Valf_HexPatch[] = {
3441 "format",
3442 "#define HUGE_VALF (__builtin_huge_valf())\n",
3443 (char*)NULL };
3444
3445/* * * * * * * * * * * * * * * * * * * * * * * * * *
3446 *
3447 * Description of Huge_Vall_Hex fix
3448 */
3449tSCC zHuge_Vall_HexName[] =
3450 "huge_vall_hex";
3451
3452/*
3453 * File name selection pattern
3454 */
3455tSCC zHuge_Vall_HexList[] =
401be4b6 3456 "bits/huge_val.h\0";
77923c29
JM
3457/*
3458 * Machine/OS name selection pattern
3459 */
3460#define apzHuge_Vall_HexMachs (const char**)NULL
3461
3462/*
3463 * content selection pattern - do fix if pattern found
3464 */
3465tSCC zHuge_Vall_HexSelect0[] =
3466 "^#[ \t]*define[ \t]*HUGE_VALL[ \t].*0x1\\.0p.*";
3467
3468/*
3469 * content bypass pattern - skip fix if pattern found
3470 */
3471tSCC zHuge_Vall_HexBypass0[] =
3472 "__builtin_huge_vall";
3473
3474#define HUGE_VALL_HEX_TEST_CT 2
3475static tTestDesc aHuge_Vall_HexTests[] = {
3476 { TT_NEGREP, zHuge_Vall_HexBypass0, (regex_t*)NULL },
3477 { TT_EGREP, zHuge_Vall_HexSelect0, (regex_t*)NULL }, };
3478
3479/*
3480 * Fix Command Arguments for Huge_Vall_Hex
3481 */
3482static const char* apzHuge_Vall_HexPatch[] = {
3483 "format",
3484 "#define HUGE_VALL (__builtin_huge_vall())\n",
3485 (char*)NULL };
3486
7b78a14a
BK
3487/* * * * * * * * * * * * * * * * * * * * * * * * * *
3488 *
3489 * Description of Int_Abort_Free_And_Exit fix
3490 */
3491tSCC zInt_Abort_Free_And_ExitName[] =
3492 "int_abort_free_and_exit";
3493
3494/*
3495 * File name selection pattern
3496 */
3497tSCC zInt_Abort_Free_And_ExitList[] =
401be4b6 3498 "stdlib.h\0";
7b78a14a
BK
3499/*
3500 * Machine/OS name selection pattern
3501 */
3502#define apzInt_Abort_Free_And_ExitMachs (const char**)NULL
3503
3504/*
3505 * content selection pattern - do fix if pattern found
3506 */
3507tSCC zInt_Abort_Free_And_ExitSelect0[] =
3508 "int[ \t]+(abort|free|exit)[ \t]*\\(";
3509
793387fa
JM
3510/*
3511 * content bypass pattern - skip fix if pattern found
3512 */
3513tSCC zInt_Abort_Free_And_ExitBypass0[] =
3514 "_CLASSIC_ANSI_TYPES";
3515
3516#define INT_ABORT_FREE_AND_EXIT_TEST_CT 2
7b78a14a 3517static tTestDesc aInt_Abort_Free_And_ExitTests[] = {
793387fa 3518 { TT_NEGREP, zInt_Abort_Free_And_ExitBypass0, (regex_t*)NULL },
7b78a14a
BK
3519 { TT_EGREP, zInt_Abort_Free_And_ExitSelect0, (regex_t*)NULL }, };
3520
3521/*
3522 * Fix Command Arguments for Int_Abort_Free_And_Exit
3523 */
3524static const char* apzInt_Abort_Free_And_ExitPatch[] = {
3525 "format",
3526 "void\t%1(",
06bbab1b
BK
3527 (char*)NULL };
3528
06bbab1b
BK
3529/* * * * * * * * * * * * * * * * * * * * * * * * * *
3530 *
88acf854 3531 * Description of Io_Quotes_Def fix
06bbab1b 3532 */
88acf854
BK
3533tSCC zIo_Quotes_DefName[] =
3534 "io_quotes_def";
3be1fb72 3535
06bbab1b
BK
3536/*
3537 * File name selection pattern
3538 */
88acf854 3539#define zIo_Quotes_DefList (char*)NULL
06bbab1b
BK
3540/*
3541 * Machine/OS name selection pattern
3542 */
88acf854 3543#define apzIo_Quotes_DefMachs (const char**)NULL
06bbab1b
BK
3544
3545/*
be02fa1a 3546 * content selection pattern - do fix if pattern found
06bbab1b 3547 */
88acf854 3548tSCC zIo_Quotes_DefSelect0[] =
cf6d5133 3549 "define[ \t]+[A-Z0-9_]+IO[A-Z]*\\([a-zA-Z][,)]";
06bbab1b 3550
88acf854 3551#define IO_QUOTES_DEF_TEST_CT 1
3af556f7 3552static tTestDesc aIo_Quotes_DefTests[] = {
88acf854 3553 { TT_EGREP, zIo_Quotes_DefSelect0, (regex_t*)NULL }, };
06bbab1b
BK
3554
3555/*
88acf854 3556 * Fix Command Arguments for Io_Quotes_Def
06bbab1b 3557 */
3af556f7 3558static const char* apzIo_Quotes_DefPatch[] = {
4c6d912f
ZW
3559 "char_macro_def",
3560 "IO",
5c0d5b94
ZW
3561 (char*)NULL };
3562
3563/* * * * * * * * * * * * * * * * * * * * * * * * * *
3564 *
99d05d99 3565 * Description of Io_Quotes_Use fix
5c0d5b94 3566 */
99d05d99
BK
3567tSCC zIo_Quotes_UseName[] =
3568 "io_quotes_use";
3be1fb72 3569
5c0d5b94
ZW
3570/*
3571 * File name selection pattern
3572 */
99d05d99 3573#define zIo_Quotes_UseList (char*)NULL
5c0d5b94
ZW
3574/*
3575 * Machine/OS name selection pattern
3576 */
99d05d99 3577#define apzIo_Quotes_UseMachs (const char**)NULL
5c0d5b94
ZW
3578
3579/*
3580 * content selection pattern - do fix if pattern found
3581 */
99d05d99
BK
3582tSCC zIo_Quotes_UseSelect0[] =
3583 "define[ \t]+[A-Z0-9_]+[ \t]+[A-Z0-9_]+IO[A-Z]*[ \t]*\\( *[^,']";
5c0d5b94 3584
99d05d99 3585#define IO_QUOTES_USE_TEST_CT 1
3af556f7 3586static tTestDesc aIo_Quotes_UseTests[] = {
99d05d99 3587 { TT_EGREP, zIo_Quotes_UseSelect0, (regex_t*)NULL }, };
5c0d5b94
ZW
3588
3589/*
99d05d99 3590 * Fix Command Arguments for Io_Quotes_Use
5c0d5b94 3591 */
3af556f7 3592static const char* apzIo_Quotes_UsePatch[] = {
4c6d912f 3593 "char_macro_use",
99d05d99 3594 "IO",
06bbab1b
BK
3595 (char*)NULL };
3596
3597/* * * * * * * * * * * * * * * * * * * * * * * * * *
3598 *
7b78a14a 3599 * Description of Ip_Missing_Semi fix
06bbab1b 3600 */
7b78a14a
BK
3601tSCC zIp_Missing_SemiName[] =
3602 "ip_missing_semi";
3be1fb72 3603
06bbab1b
BK
3604/*
3605 * File name selection pattern
3606 */
7b78a14a 3607tSCC zIp_Missing_SemiList[] =
401be4b6 3608 "netinet/ip.h\0";
06bbab1b
BK
3609/*
3610 * Machine/OS name selection pattern
3611 */
7b78a14a 3612#define apzIp_Missing_SemiMachs (const char**)NULL
d7eb5a45
ZW
3613
3614/*
3615 * content selection pattern - do fix if pattern found
79589c4d 3616 */
7b78a14a
BK
3617tSCC zIp_Missing_SemiSelect0[] =
3618 "}$";
79589c4d 3619
7b78a14a
BK
3620#define IP_MISSING_SEMI_TEST_CT 1
3621static tTestDesc aIp_Missing_SemiTests[] = {
3622 { TT_EGREP, zIp_Missing_SemiSelect0, (regex_t*)NULL }, };
039df8c7
DA
3623
3624/*
7b78a14a 3625 * Fix Command Arguments for Ip_Missing_Semi
06bbab1b 3626 */
6aa1f8c1 3627static const char* apzIp_Missing_SemiPatch[] = { sed_cmd_z,
7b78a14a 3628 "-e", "/^struct/,/^};/s/}$/};/",
06bbab1b
BK
3629 (char*)NULL };
3630
7a9cdb10
DD
3631/* * * * * * * * * * * * * * * * * * * * * * * * * *
3632 *
3633 * Description of Irix___Restrict fix
3634 */
3635tSCC zIrix___RestrictName[] =
3636 "irix___restrict";
3637
3638/*
3639 * File name selection pattern
3640 */
3641tSCC zIrix___RestrictList[] =
401be4b6 3642 "internal/sgimacros.h\0";
7a9cdb10
DD
3643/*
3644 * Machine/OS name selection pattern
3645 */
3646tSCC* apzIrix___RestrictMachs[] = {
3647 "mips-sgi-irix6.5",
3648 (const char*)NULL };
3649
3650/*
3651 * content selection pattern - do fix if pattern found
3652 */
3653tSCC zIrix___RestrictSelect0[] =
3654 "(#ifdef __c99\n\
3655)(#[ \t]*define __restrict restrict)";
3656
3657#define IRIX___RESTRICT_TEST_CT 1
3658static tTestDesc aIrix___RestrictTests[] = {
3659 { TT_EGREP, zIrix___RestrictSelect0, (regex_t*)NULL }, };
3660
3661/*
3662 * Fix Command Arguments for Irix___Restrict
3663 */
3664static const char* apzIrix___RestrictPatch[] = {
3665 "format",
3666 "%1# ifndef __cplusplus\n\
3667%2\n\
3668# endif",
3669 (char*)NULL };
3670
e0704143
RS
3671/* * * * * * * * * * * * * * * * * * * * * * * * * *
3672 *
3673 * Description of Irix___Generic1 fix
3674 */
3675tSCC zIrix___Generic1Name[] =
3676 "irix___generic1";
3677
3678/*
3679 * File name selection pattern
3680 */
3681tSCC zIrix___Generic1List[] =
401be4b6 3682 "internal/math_core.h\0";
e0704143
RS
3683/*
3684 * Machine/OS name selection pattern
3685 */
3686tSCC* apzIrix___Generic1Machs[] = {
3687 "mips-sgi-irix6.5",
3688 (const char*)NULL };
3689
3690/*
3691 * content selection pattern - do fix if pattern found
3692 */
3693tSCC zIrix___Generic1Select0[] =
3694 "#define ([a-z]+)\\(x\\) *__generic.*";
3695
3696#define IRIX___GENERIC1_TEST_CT 1
3697static tTestDesc aIrix___Generic1Tests[] = {
3698 { TT_EGREP, zIrix___Generic1Select0, (regex_t*)NULL }, };
3699
3700/*
3701 * Fix Command Arguments for Irix___Generic1
3702 */
3703static const char* apzIrix___Generic1Patch[] = {
3704 "format",
3705 "extern int %1(double);\n\
3706extern int %1f(float);\n\
3707extern int %1l(long double);\n\
3708#define %1(x) (sizeof(x) == sizeof(double) ? _%1(x) \\\n\
3709 : sizeof(x) == sizeof(float) ? _%1f(x) \\\n\
3710 : _%1l(x))\n",
3711 (char*)NULL };
3712
3713/* * * * * * * * * * * * * * * * * * * * * * * * * *
3714 *
3715 * Description of Irix___Generic2 fix
3716 */
3717tSCC zIrix___Generic2Name[] =
3718 "irix___generic2";
3719
3720/*
3721 * File name selection pattern
3722 */
3723tSCC zIrix___Generic2List[] =
401be4b6 3724 "internal/math_core.h\0";
e0704143
RS
3725/*
3726 * Machine/OS name selection pattern
3727 */
3728tSCC* apzIrix___Generic2Machs[] = {
3729 "mips-sgi-irix6.5",
3730 (const char*)NULL };
3731
3732/*
3733 * content selection pattern - do fix if pattern found
3734 */
3735tSCC zIrix___Generic2Select0[] =
3736 "#define ([a-z]+)\\(x,y\\) *__generic.*";
3737
3738#define IRIX___GENERIC2_TEST_CT 1
3739static tTestDesc aIrix___Generic2Tests[] = {
3740 { TT_EGREP, zIrix___Generic2Select0, (regex_t*)NULL }, };
3741
3742/*
3743 * Fix Command Arguments for Irix___Generic2
3744 */
3745static const char* apzIrix___Generic2Patch[] = {
3746 "format",
3747 "#define %1(x,y) \\\n\
3748 ((sizeof(x)<=4 && sizeof(y)<=4) ? _%1f(x,y) \\\n\
3749 : (sizeof(x)<=8 && sizeof(y)<=8) ? _%1(x,y) \\\n\
3750 : _%1l(x,y))\n",
3751 (char*)NULL };
3752
06bbab1b
BK
3753/* * * * * * * * * * * * * * * * * * * * * * * * * *
3754 *
7b78a14a 3755 * Description of Irix_Asm_Apostrophe fix
06bbab1b 3756 */
7b78a14a
BK
3757tSCC zIrix_Asm_ApostropheName[] =
3758 "irix_asm_apostrophe";
3be1fb72 3759
06bbab1b
BK
3760/*
3761 * File name selection pattern
3762 */
7b78a14a 3763tSCC zIrix_Asm_ApostropheList[] =
401be4b6 3764 "sys/asm.h\0";
06bbab1b
BK
3765/*
3766 * Machine/OS name selection pattern
3767 */
7b78a14a 3768#define apzIrix_Asm_ApostropheMachs (const char**)NULL
06bbab1b
BK
3769
3770/*
be02fa1a 3771 * content selection pattern - do fix if pattern found
06bbab1b 3772 */
7b78a14a
BK
3773tSCC zIrix_Asm_ApostropheSelect0[] =
3774 "^[ \t]*#.*[Ww]e're";
3be1fb72 3775
7b78a14a
BK
3776#define IRIX_ASM_APOSTROPHE_TEST_CT 1
3777static tTestDesc aIrix_Asm_ApostropheTests[] = {
3778 { TT_EGREP, zIrix_Asm_ApostropheSelect0, (regex_t*)NULL }, };
06bbab1b
BK
3779
3780/*
7b78a14a 3781 * Fix Command Arguments for Irix_Asm_Apostrophe
06bbab1b 3782 */
7b78a14a 3783static const char* apzIrix_Asm_ApostrophePatch[] = {
a8228686 3784 "format",
7b78a14a
BK
3785 "%1 are",
3786 "^([ \t]*#.*[Ww]e)'re",
06bbab1b
BK
3787 (char*)NULL };
3788
3789/* * * * * * * * * * * * * * * * * * * * * * * * * *
3790 *
7b78a14a 3791 * Description of Irix_Limits_Const fix
94cc6036 3792 */
7b78a14a
BK
3793tSCC zIrix_Limits_ConstName[] =
3794 "irix_limits_const";
3be1fb72 3795
94cc6036
BK
3796/*
3797 * File name selection pattern
3798 */
7b78a14a 3799tSCC zIrix_Limits_ConstList[] =
401be4b6 3800 "fixinc-test-limits.h\0limits.h\0";
94cc6036
BK
3801/*
3802 * Machine/OS name selection pattern
3803 */
7b78a14a 3804#define apzIrix_Limits_ConstMachs (const char**)NULL
94cc6036
BK
3805
3806/*
3807 * content selection pattern - do fix if pattern found
3808 */
7b78a14a
BK
3809tSCC zIrix_Limits_ConstSelect0[] =
3810 "^extern const ";
94cc6036 3811
7b78a14a
BK
3812#define IRIX_LIMITS_CONST_TEST_CT 1
3813static tTestDesc aIrix_Limits_ConstTests[] = {
3814 { TT_EGREP, zIrix_Limits_ConstSelect0, (regex_t*)NULL }, };
94cc6036
BK
3815
3816/*
7b78a14a 3817 * Fix Command Arguments for Irix_Limits_Const
94cc6036 3818 */
7b78a14a 3819static const char* apzIrix_Limits_ConstPatch[] = {
79589c4d 3820 "format",
7b78a14a 3821 "extern __const ",
06bbab1b
BK
3822 (char*)NULL };
3823
f23147fe
RO
3824/* * * * * * * * * * * * * * * * * * * * * * * * * *
3825 *
3826 * Description of Irix_Socklen_T fix
3827 */
3828tSCC zIrix_Socklen_TName[] =
3829 "irix_socklen_t";
3830
3831/*
3832 * File name selection pattern
3833 */
3834tSCC zIrix_Socklen_TList[] =
401be4b6 3835 "sys/socket.h\0";
f23147fe
RO
3836/*
3837 * Machine/OS name selection pattern
3838 */
3839tSCC* apzIrix_Socklen_TMachs[] = {
3840 "mips-sgi-irix6.5",
3841 (const char*)NULL };
3842
3843/*
3844 * content selection pattern - do fix if pattern found
3845 */
3846tSCC zIrix_Socklen_TSelect0[] =
3847 "(#define _SOCKLEN_T\n\
3848)(typedef u_int32_t socklen_t;)";
3849
3850#define IRIX_SOCKLEN_T_TEST_CT 1
3851static tTestDesc aIrix_Socklen_TTests[] = {
3852 { TT_EGREP, zIrix_Socklen_TSelect0, (regex_t*)NULL }, };
3853
3854/*
3855 * Fix Command Arguments for Irix_Socklen_T
3856 */
3857static const char* apzIrix_Socklen_TPatch[] = {
3858 "format",
3859 "%1#if _NO_XOPEN4 && _NO_XOPEN5\n\
3860typedef int socklen_t;\n\
3861#else\n\
3862%2\n\
3863#endif /* _NO_XOPEN4 && _NO_XOPEN5 */",
3864 (char*)NULL };
3865
8919fa4a
RO
3866/* * * * * * * * * * * * * * * * * * * * * * * * * *
3867 *
3868 * Description of Irix_Stdint_C99 fix
3869 */
3870tSCC zIrix_Stdint_C99Name[] =
3871 "irix_stdint_c99";
3872
3873/*
3874 * File name selection pattern
3875 */
3876tSCC zIrix_Stdint_C99List[] =
3877 "stdint.h\0";
3878/*
3879 * Machine/OS name selection pattern
3880 */
3881tSCC* apzIrix_Stdint_C99Machs[] = {
3882 "mips-sgi-irix6.5",
3883 (const char*)NULL };
3884
3885/*
3886 * content selection pattern - do fix if pattern found
3887 */
3888tSCC zIrix_Stdint_C99Select0[] =
3889 "(#ifndef __c99\n\
3890)(#error This header file is to be used only for c99 mode compilations)";
3891
3892#define IRIX_STDINT_C99_TEST_CT 1
3893static tTestDesc aIrix_Stdint_C99Tests[] = {
3894 { TT_EGREP, zIrix_Stdint_C99Select0, (regex_t*)NULL }, };
3895
3896/*
3897 * Fix Command Arguments for Irix_Stdint_C99
3898 */
3899static const char* apzIrix_Stdint_C99Patch[] = {
3900 "format",
3901 "#if 0\n\
3902%2",
3903 (char*)NULL };
3904
3b3a1054
BK
3905/* * * * * * * * * * * * * * * * * * * * * * * * * *
3906 *
3907 * Description of Irix_Stdio_Va_List fix
3908 */
3b3a1054
BK
3909tSCC zIrix_Stdio_Va_ListName[] =
3910 "irix_stdio_va_list";
3911
3912/*
3913 * File name selection pattern
3914 */
3915tSCC zIrix_Stdio_Va_ListList[] =
401be4b6 3916 "stdio.h\0internal/stdio_core.h\0";
3b3a1054
BK
3917/*
3918 * Machine/OS name selection pattern
3919 */
3920#define apzIrix_Stdio_Va_ListMachs (const char**)NULL
3921
3922/*
3923 * content selection pattern - do fix if pattern found
3924 */
3925tSCC zIrix_Stdio_Va_ListSelect0[] =
9a557707 3926 "/\\* va_list \\*/ char \\*";
3b3a1054
BK
3927
3928#define IRIX_STDIO_VA_LIST_TEST_CT 1
3929static tTestDesc aIrix_Stdio_Va_ListTests[] = {
3930 { TT_EGREP, zIrix_Stdio_Va_ListSelect0, (regex_t*)NULL }, };
3931
3932/*
3933 * Fix Command Arguments for Irix_Stdio_Va_List
3934 */
3935static const char* apzIrix_Stdio_Va_ListPatch[] = {
3936 "format",
9a557707 3937 "__gnuc_va_list",
3b3a1054
BK
3938 (char*)NULL };
3939
f23147fe
RO
3940/* * * * * * * * * * * * * * * * * * * * * * * * * *
3941 *
3942 * Description of Irix_Wcsftime fix
3943 */
3944tSCC zIrix_WcsftimeName[] =
3945 "irix_wcsftime";
3946
3947/*
3948 * File name selection pattern
3949 */
3950tSCC zIrix_WcsftimeList[] =
401be4b6 3951 "internal/wchar_core.h\0";
f23147fe
RO
3952/*
3953 * Machine/OS name selection pattern
3954 */
3955tSCC* apzIrix_WcsftimeMachs[] = {
3956 "mips-sgi-irix6.5",
3957 (const char*)NULL };
3958
3959/*
3960 * content selection pattern - do fix if pattern found
3961 */
3962tSCC zIrix_WcsftimeSelect0[] =
3963 "#if _NO_XOPEN5\n\
3964(extern size_t[ \t]+wcsftime.*const char *.*)";
3965
3966#define IRIX_WCSFTIME_TEST_CT 1
3967static tTestDesc aIrix_WcsftimeTests[] = {
3968 { TT_EGREP, zIrix_WcsftimeSelect0, (regex_t*)NULL }, };
3969
3970/*
3971 * Fix Command Arguments for Irix_Wcsftime
3972 */
3973static const char* apzIrix_WcsftimePatch[] = {
3974 "format",
3975 "#if _NO_XOPEN5 && !defined(__c99)\n\
3976%1",
3977 (char*)NULL };
3978
8d8d5752
JO
3979/* * * * * * * * * * * * * * * * * * * * * * * * * *
3980 *
7b78a14a 3981 * Description of Isc_Fmod fix
8d8d5752 3982 */
7b78a14a
BK
3983tSCC zIsc_FmodName[] =
3984 "isc_fmod";
8d8d5752
JO
3985
3986/*
3987 * File name selection pattern
3988 */
7b78a14a 3989tSCC zIsc_FmodList[] =
401be4b6 3990 "math.h\0";
8d8d5752
JO
3991/*
3992 * Machine/OS name selection pattern
3993 */
7b78a14a 3994#define apzIsc_FmodMachs (const char**)NULL
8d8d5752
JO
3995
3996/*
3997 * content selection pattern - do fix if pattern found
3998 */
7b78a14a
BK
3999tSCC zIsc_FmodSelect0[] =
4000 "fmod\\(double\\)";
8d8d5752 4001
7b78a14a
BK
4002#define ISC_FMOD_TEST_CT 1
4003static tTestDesc aIsc_FmodTests[] = {
4004 { TT_EGREP, zIsc_FmodSelect0, (regex_t*)NULL }, };
8d8d5752
JO
4005
4006/*
7b78a14a 4007 * Fix Command Arguments for Isc_Fmod
8d8d5752 4008 */
7b78a14a 4009static const char* apzIsc_FmodPatch[] = {
8d8d5752 4010 "format",
7b78a14a 4011 "fmod(double, double)",
8d8d5752
JO
4012 (char*)NULL };
4013
06bbab1b
BK
4014/* * * * * * * * * * * * * * * * * * * * * * * * * *
4015 *
7b78a14a 4016 * Description of Isc_Omits_With_Stdc fix
06bbab1b 4017 */
7b78a14a
BK
4018tSCC zIsc_Omits_With_StdcName[] =
4019 "isc_omits_with_stdc";
3be1fb72 4020
06bbab1b
BK
4021/*
4022 * File name selection pattern
4023 */
7b78a14a 4024tSCC zIsc_Omits_With_StdcList[] =
401be4b6 4025 "stdio.h\0math.h\0ctype.h\0sys/limits.h\0sys/fcntl.h\0sys/dirent.h\0";
06bbab1b
BK
4026/*
4027 * Machine/OS name selection pattern
4028 */
7b78a14a 4029#define apzIsc_Omits_With_StdcMachs (const char**)NULL
06bbab1b
BK
4030
4031/*
be02fa1a 4032 * content selection pattern - do fix if pattern found
06bbab1b 4033 */
7b78a14a
BK
4034tSCC zIsc_Omits_With_StdcSelect0[] =
4035 "!defined\\(__STDC__\\) && !defined\\(_POSIX_SOURCE\\)";
06bbab1b 4036
7b78a14a
BK
4037#define ISC_OMITS_WITH_STDC_TEST_CT 1
4038static tTestDesc aIsc_Omits_With_StdcTests[] = {
4039 { TT_EGREP, zIsc_Omits_With_StdcSelect0, (regex_t*)NULL }, };
06bbab1b
BK
4040
4041/*
7b78a14a 4042 * Fix Command Arguments for Isc_Omits_With_Stdc
06bbab1b 4043 */
7b78a14a 4044static const char* apzIsc_Omits_With_StdcPatch[] = {
79589c4d 4045 "format",
7b78a14a 4046 "!defined(_POSIX_SOURCE)",
06bbab1b
BK
4047 (char*)NULL };
4048
4049/* * * * * * * * * * * * * * * * * * * * * * * * * *
4050 *
5abc1f74 4051 * Description of Kandr_Concat fix
06bbab1b
BK
4052 */
4053tSCC zKandr_ConcatName[] =
3be1fb72
ZW
4054 "kandr_concat";
4055
06bbab1b
BK
4056/*
4057 * File name selection pattern
4058 */
4059tSCC zKandr_ConcatList[] =
401be4b6 4060 "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
4061/*
4062 * Machine/OS name selection pattern
4063 */
4064#define apzKandr_ConcatMachs (const char**)NULL
4065
4066/*
be02fa1a 4067 * content selection pattern - do fix if pattern found
06bbab1b
BK
4068 */
4069tSCC zKandr_ConcatSelect0[] =
4070 "/\\*\\*/";
4071
4072#define KANDR_CONCAT_TEST_CT 1
3af556f7 4073static tTestDesc aKandr_ConcatTests[] = {
5abc1f74 4074 { TT_EGREP, zKandr_ConcatSelect0, (regex_t*)NULL }, };
06bbab1b
BK
4075
4076/*
4077 * Fix Command Arguments for Kandr_Concat
4078 */
3af556f7 4079static const char* apzKandr_ConcatPatch[] = {
79589c4d
BK
4080 "format",
4081 "##",
06bbab1b
BK
4082 (char*)NULL };
4083
fa71a5c3
RS
4084/* * * * * * * * * * * * * * * * * * * * * * * * * *
4085 *
4086 * Description of Linux_Ia64_Ucontext fix
4087 */
4088tSCC zLinux_Ia64_UcontextName[] =
4089 "linux_ia64_ucontext";
4090
4091/*
4092 * File name selection pattern
4093 */
4094tSCC zLinux_Ia64_UcontextList[] =
401be4b6 4095 "sys/ucontext.h\0";
fa71a5c3
RS
4096/*
4097 * Machine/OS name selection pattern
4098 */
4099tSCC* apzLinux_Ia64_UcontextMachs[] = {
4100 "ia64-*-linux*",
4101 (const char*)NULL };
4102
4103/*
4104 * content selection pattern - do fix if pattern found
4105 */
4106tSCC zLinux_Ia64_UcontextSelect0[] =
4107 "\\(\\(\\(char \\*\\) &\\(\\(struct sigcontext \\*\\) 0\\)->sc_gr\\[0\\]\\) - \\(char \\*\\) 0\\)";
4108
4109#define LINUX_IA64_UCONTEXT_TEST_CT 1
4110static tTestDesc aLinux_Ia64_UcontextTests[] = {
4111 { TT_EGREP, zLinux_Ia64_UcontextSelect0, (regex_t*)NULL }, };
4112
4113/*
4114 * Fix Command Arguments for Linux_Ia64_Ucontext
4115 */
4116static const char* apzLinux_Ia64_UcontextPatch[] = {
4117 "format",
4118 "__builtin_offsetof (struct sigcontext, sc_gr[0])",
4119 (char*)NULL };
4120
06bbab1b
BK
4121/* * * * * * * * * * * * * * * * * * * * * * * * * *
4122 *
d635c707 4123 * Description of Lynxos_No_Warning_In_Sys_Time_H fix
06bbab1b 4124 */
d635c707
AN
4125tSCC zLynxos_No_Warning_In_Sys_Time_HName[] =
4126 "lynxos_no_warning_in_sys_time_h";
3be1fb72 4127
06bbab1b
BK
4128/*
4129 * File name selection pattern
4130 */
d635c707 4131tSCC zLynxos_No_Warning_In_Sys_Time_HList[] =
401be4b6 4132 "sys/time.h\0";
06bbab1b
BK
4133/*
4134 * Machine/OS name selection pattern
4135 */
d635c707 4136#define apzLynxos_No_Warning_In_Sys_Time_HMachs (const char**)NULL
06bbab1b
BK
4137
4138/*
be02fa1a 4139 * content selection pattern - do fix if pattern found
06bbab1b 4140 */
d635c707
AN
4141tSCC zLynxos_No_Warning_In_Sys_Time_HSelect0[] =
4142 "#warning[ \t]+Using <time.h> instead of <sys/time.h>";
06bbab1b 4143
d635c707
AN
4144#define LYNXOS_NO_WARNING_IN_SYS_TIME_H_TEST_CT 1
4145static tTestDesc aLynxos_No_Warning_In_Sys_Time_HTests[] = {
4146 { TT_EGREP, zLynxos_No_Warning_In_Sys_Time_HSelect0, (regex_t*)NULL }, };
06bbab1b
BK
4147
4148/*
d635c707 4149 * Fix Command Arguments for Lynxos_No_Warning_In_Sys_Time_H
06bbab1b 4150 */
d635c707 4151static const char* apzLynxos_No_Warning_In_Sys_Time_HPatch[] = {
79589c4d
BK
4152 "format",
4153 "",
06bbab1b
BK
4154 (char*)NULL };
4155
4156/* * * * * * * * * * * * * * * * * * * * * * * * * *
4157 *
d635c707 4158 * Description of Lynxos_Missing_Putenv fix
06bbab1b 4159 */
d635c707
AN
4160tSCC zLynxos_Missing_PutenvName[] =
4161 "lynxos_missing_putenv";
3be1fb72 4162
06bbab1b
BK
4163/*
4164 * File name selection pattern
4165 */
d635c707 4166tSCC zLynxos_Missing_PutenvList[] =
401be4b6 4167 "stdlib.h\0";
06bbab1b
BK
4168/*
4169 * Machine/OS name selection pattern
4170 */
d635c707
AN
4171tSCC* apzLynxos_Missing_PutenvMachs[] = {
4172 "*-*-lynxos*",
4173 (const char*)NULL };
48bd9529
BK
4174
4175/*
be02fa1a 4176 * content selection pattern - do fix if pattern found
48bd9529 4177 */
d635c707
AN
4178tSCC zLynxos_Missing_PutenvSelect0[] =
4179 "extern char \\*getenv[ \t]*_AP\\(\\(const char \\*\\)\\);";
48bd9529 4180
d635c707
AN
4181/*
4182 * content bypass pattern - skip fix if pattern found
4183 */
4184tSCC zLynxos_Missing_PutenvBypass0[] =
4185 "putenv[ \\t]*\\(";
4186
4187#define LYNXOS_MISSING_PUTENV_TEST_CT 2
4188static tTestDesc aLynxos_Missing_PutenvTests[] = {
4189 { TT_NEGREP, zLynxos_Missing_PutenvBypass0, (regex_t*)NULL },
4190 { TT_EGREP, zLynxos_Missing_PutenvSelect0, (regex_t*)NULL }, };
06bbab1b
BK
4191
4192/*
d635c707 4193 * Fix Command Arguments for Lynxos_Missing_Putenv
06bbab1b 4194 */
d635c707 4195static const char* apzLynxos_Missing_PutenvPatch[] = {
79589c4d 4196 "format",
d635c707
AN
4197 "%0\n\
4198extern int putenv\t\t\t\t_AP((char *));",
4199 "extern char \\*getenv[ \t]*_AP\\(\\(const char \\*\\)\\);",
06bbab1b
BK
4200 (char*)NULL };
4201
3be1fb72
ZW
4202/* * * * * * * * * * * * * * * * * * * * * * * * * *
4203 *
4204 * Description of Machine_Ansi_H_Va_List fix
4205 */
3be1fb72
ZW
4206tSCC zMachine_Ansi_H_Va_ListName[] =
4207 "machine_ansi_h_va_list";
4208
4209/*
4210 * File name selection pattern
4211 */
1435059e 4212#define zMachine_Ansi_H_Va_ListList (char*)NULL
3be1fb72
ZW
4213/*
4214 * Machine/OS name selection pattern
4215 */
4216#define apzMachine_Ansi_H_Va_ListMachs (const char**)NULL
4217
4218/*
4219 * content selection pattern - do fix if pattern found
4220 */
4221tSCC zMachine_Ansi_H_Va_ListSelect0[] =
a8228686 4222 "define[ \t]+_BSD_VA_LIST_[ \t]";
3be1fb72
ZW
4223
4224/*
4225 * content bypass pattern - skip fix if pattern found
4226 */
4227tSCC zMachine_Ansi_H_Va_ListBypass0[] =
4228 "__builtin_va_list";
4229
4230#define MACHINE_ANSI_H_VA_LIST_TEST_CT 2
3af556f7 4231static tTestDesc aMachine_Ansi_H_Va_ListTests[] = {
3be1fb72
ZW
4232 { TT_NEGREP, zMachine_Ansi_H_Va_ListBypass0, (regex_t*)NULL },
4233 { TT_EGREP, zMachine_Ansi_H_Va_ListSelect0, (regex_t*)NULL }, };
4234
4235/*
4236 * Fix Command Arguments for Machine_Ansi_H_Va_List
4237 */
3af556f7 4238static const char* apzMachine_Ansi_H_Va_ListPatch[] = {
a8228686
BK
4239 "format",
4240 "%1__builtin_va_list",
4241 "(define[ \t]+_BSD_VA_LIST_[ \t]+).*",
3be1fb72
ZW
4242 (char*)NULL };
4243
06bbab1b
BK
4244/* * * * * * * * * * * * * * * * * * * * * * * * * *
4245 *
5abc1f74 4246 * Description of Machine_Name fix
06bbab1b
BK
4247 */
4248tSCC zMachine_NameName[] =
3be1fb72
ZW
4249 "machine_name";
4250
06bbab1b
BK
4251/*
4252 * File name selection pattern
4253 */
4254#define zMachine_NameList (char*)NULL
4255/*
4256 * Machine/OS name selection pattern
4257 */
4258#define apzMachine_NameMachs (const char**)NULL
4259
4260/*
52c207e2 4261 * perform the C function call test
06bbab1b 4262 */
52c207e2 4263tSCC zMachine_NameFTst0[] = "machine_name";
06bbab1b
BK
4264
4265#define MACHINE_NAME_TEST_CT 1
3af556f7 4266static tTestDesc aMachine_NameTests[] = {
52c207e2 4267 { TT_FUNCTION, zMachine_NameFTst0, 0 /* unused */ }, };
06bbab1b
BK
4268
4269/*
4270 * Fix Command Arguments for Machine_Name
4271 */
3af556f7 4272static const char* apzMachine_NamePatch[] = {
f5b105ca 4273 "machine_name",
06bbab1b
BK
4274 (char*)NULL };
4275
4276/* * * * * * * * * * * * * * * * * * * * * * * * * *
4277 *
5abc1f74 4278 * Description of Math_Exception fix
06bbab1b
BK
4279 */
4280tSCC zMath_ExceptionName[] =
3be1fb72
ZW
4281 "math_exception";
4282
06bbab1b
BK
4283/*
4284 * File name selection pattern
4285 */
4286tSCC zMath_ExceptionList[] =
401be4b6 4287 "math.h\0";
06bbab1b
BK
4288/*
4289 * Machine/OS name selection pattern
4290 */
4291#define apzMath_ExceptionMachs (const char**)NULL
4292
4293/*
be02fa1a 4294 * content selection pattern - do fix if pattern found
06bbab1b
BK
4295 */
4296tSCC zMath_ExceptionSelect0[] =
4297 "struct exception";
4298
d7eb5a45
ZW
4299/*
4300 * content bypass pattern - skip fix if pattern found
4301 */
4302tSCC zMath_ExceptionBypass0[] =
61fec9ff 4303 "We have a problem when using C\\+\\+|for C\\+\\+, _[a-z0-9A-Z_]+_exception; for C, exception";
d7eb5a45
ZW
4304
4305#define MATH_EXCEPTION_TEST_CT 2
3af556f7 4306static tTestDesc aMath_ExceptionTests[] = {
d7eb5a45 4307 { TT_NEGREP, zMath_ExceptionBypass0, (regex_t*)NULL },
5abc1f74 4308 { TT_EGREP, zMath_ExceptionSelect0, (regex_t*)NULL }, };
06bbab1b
BK
4309
4310/*
4311 * Fix Command Arguments for Math_Exception
4312 */
3af556f7 4313static const char* apzMath_ExceptionPatch[] = {
ba8fcfc3
BK
4314 "wrap",
4315 "#ifdef __cplusplus\n\
4316#define exception __math_exception\n\
c329beb0 4317#endif\n",
ba8fcfc3
BK
4318 "#ifdef __cplusplus\n\
4319#undef exception\n\
c329beb0 4320#endif\n",
06bbab1b
BK
4321 (char*)NULL };
4322
4323/* * * * * * * * * * * * * * * * * * * * * * * * * *
4324 *
d7eb5a45 4325 * Description of Math_Huge_Val_From_Dbl_Max fix
06bbab1b 4326 */
d7eb5a45 4327tSCC zMath_Huge_Val_From_Dbl_MaxName[] =
3be1fb72
ZW
4328 "math_huge_val_from_dbl_max";
4329
06bbab1b
BK
4330/*
4331 * File name selection pattern
4332 */
d7eb5a45 4333tSCC zMath_Huge_Val_From_Dbl_MaxList[] =
401be4b6 4334 "math.h\0";
06bbab1b
BK
4335/*
4336 * Machine/OS name selection pattern
4337 */
d7eb5a45
ZW
4338#define apzMath_Huge_Val_From_Dbl_MaxMachs (const char**)NULL
4339
4340/*
4341 * content selection pattern - do fix if pattern found
4342 */
4343tSCC zMath_Huge_Val_From_Dbl_MaxSelect0[] =
b5e20633 4344 "define[ \t]+HUGE_VAL[ \t]+DBL_MAX";
06bbab1b
BK
4345
4346/*
d7eb5a45 4347 * content bypass pattern - skip fix if pattern found
06bbab1b 4348 */
d7eb5a45 4349tSCC zMath_Huge_Val_From_Dbl_MaxBypass0[] =
b5e20633 4350 "define[ \t]+DBL_MAX";
d7eb5a45
ZW
4351
4352#define MATH_HUGE_VAL_FROM_DBL_MAX_TEST_CT 2
3af556f7 4353static tTestDesc aMath_Huge_Val_From_Dbl_MaxTests[] = {
d7eb5a45
ZW
4354 { TT_NEGREP, zMath_Huge_Val_From_Dbl_MaxBypass0, (regex_t*)NULL },
4355 { TT_EGREP, zMath_Huge_Val_From_Dbl_MaxSelect0, (regex_t*)NULL }, };
4356
4357/*
4358 * Fix Command Arguments for Math_Huge_Val_From_Dbl_Max
4359 */
3af556f7 4360static const char* apzMath_Huge_Val_From_Dbl_MaxPatch[] = { "sh", "-c",
dac32862 4361 "\tdbl_max_def=`egrep 'define[ \t]+DBL_MAX[ \t]+.*' float.h | sed 's/.*DBL_MAX[ \t]*//' 2>/dev/null`\n\n\
d7eb5a45 4362\tif ( test -n \"${dbl_max_def}\" ) > /dev/null 2>&1\n\
b5e20633 4363\tthen sed -e '/define[ \t]*HUGE_VAL[ \t]*DBL_MAX/s@DBL_MAX@'\"$dbl_max_def@\"\n\
d7eb5a45
ZW
4364\telse cat\n\
4365\tfi",
4366 (char*)NULL };
4367
7b78a14a
BK
4368/* * * * * * * * * * * * * * * * * * * * * * * * * *
4369 *
4370 * Description of Nested_Auth_Des fix
4371 */
4372tSCC zNested_Auth_DesName[] =
4373 "nested_auth_des";
4374
4375/*
4376 * File name selection pattern
4377 */
4378tSCC zNested_Auth_DesList[] =
401be4b6 4379 "rpc/rpc.h\0";
7b78a14a
BK
4380/*
4381 * Machine/OS name selection pattern
4382 */
4383#define apzNested_Auth_DesMachs (const char**)NULL
4384
4385/*
4386 * content selection pattern - do fix if pattern found
4387 */
4388tSCC zNested_Auth_DesSelect0[] =
4389 "(/\\*.*rpc/auth_des\\.h>.*)/\\*";
4390
4391#define NESTED_AUTH_DES_TEST_CT 1
4392static tTestDesc aNested_Auth_DesTests[] = {
4393 { TT_EGREP, zNested_Auth_DesSelect0, (regex_t*)NULL }, };
4394
4395/*
4396 * Fix Command Arguments for Nested_Auth_Des
4397 */
4398static const char* apzNested_Auth_DesPatch[] = {
4399 "format",
4400 "%1*/ /*",
4401 (char*)NULL };
4402
79589c4d
BK
4403/* * * * * * * * * * * * * * * * * * * * * * * * * *
4404 *
4405 * Description of Nested_Sys_Limits fix
4406 */
79589c4d
BK
4407tSCC zNested_Sys_LimitsName[] =
4408 "nested_sys_limits";
4409
4410/*
4411 * File name selection pattern
4412 */
4413tSCC zNested_Sys_LimitsList[] =
401be4b6 4414 "sys/limits.h\0";
79589c4d
BK
4415/*
4416 * Machine/OS name selection pattern
4417 */
4418#define apzNested_Sys_LimitsMachs (const char**)NULL
4419
4420/*
4421 * content selection pattern - do fix if pattern found
4422 */
4423tSCC zNested_Sys_LimitsSelect0[] =
4424 "CHILD_MAX";
4425
4426#define NESTED_SYS_LIMITS_TEST_CT 1
3af556f7 4427static tTestDesc aNested_Sys_LimitsTests[] = {
79589c4d
BK
4428 { TT_EGREP, zNested_Sys_LimitsSelect0, (regex_t*)NULL }, };
4429
4430/*
4431 * Fix Command Arguments for Nested_Sys_Limits
4432 */
6aa1f8c1 4433static const char* apzNested_Sys_LimitsPatch[] = { sed_cmd_z,
27eaa708
BK
4434 "-e", "/CHILD_MAX/s,/\\* Max, Max,",
4435 "-e", "/OPEN_MAX/s,/\\* Max, Max,",
06bbab1b
BK
4436 (char*)NULL };
4437
7270dd8e
KW
4438/* * * * * * * * * * * * * * * * * * * * * * * * * *
4439 *
4440 * Description of Netbsd_C99_Inline_1 fix
4441 */
4442tSCC zNetbsd_C99_Inline_1Name[] =
4443 "netbsd_c99_inline_1";
4444
4445/*
4446 * File name selection pattern
4447 */
4448tSCC zNetbsd_C99_Inline_1List[] =
4449 "signal.h\0";
4450/*
4451 * Machine/OS name selection pattern
4452 */
4453tSCC* apzNetbsd_C99_Inline_1Machs[] = {
4454 "*-*-netbsd*",
4455 (const char*)NULL };
4456
4457/*
4458 * content selection pattern - do fix if pattern found
4459 */
4460tSCC zNetbsd_C99_Inline_1Select0[] =
4461 "extern __inline int";
4462
4463#define NETBSD_C99_INLINE_1_TEST_CT 1
4464static tTestDesc aNetbsd_C99_Inline_1Tests[] = {
4465 { TT_EGREP, zNetbsd_C99_Inline_1Select0, (regex_t*)NULL }, };
4466
4467/*
4468 * Fix Command Arguments for Netbsd_C99_Inline_1
4469 */
4470static const char* apzNetbsd_C99_Inline_1Patch[] = {
4471 "format",
4472 "extern\n\
4473#ifdef __GNUC_STDC_INLINE__\n\
4474__attribute__((__gnu_inline__))\n\
4475#endif\n\
4476__inline int",
4477 (char*)NULL };
4478
63729d84
KW
4479/* * * * * * * * * * * * * * * * * * * * * * * * * *
4480 *
4481 * Description of Netbsd_C99_Inline_2 fix
4482 */
4483tSCC zNetbsd_C99_Inline_2Name[] =
4484 "netbsd_c99_inline_2";
4485
4486/*
4487 * File name selection pattern
4488 */
4489tSCC zNetbsd_C99_Inline_2List[] =
4490 "signal.h\0";
4491/*
4492 * Machine/OS name selection pattern
4493 */
4494tSCC* apzNetbsd_C99_Inline_2Machs[] = {
4495 "*-*-netbsd*",
4496 (const char*)NULL };
4497
4498/*
4499 * content selection pattern - do fix if pattern found
4500 */
4501tSCC zNetbsd_C99_Inline_2Select0[] =
4502 "#define _SIGINLINE extern __inline";
4503
4504#define NETBSD_C99_INLINE_2_TEST_CT 1
4505static tTestDesc aNetbsd_C99_Inline_2Tests[] = {
4506 { TT_EGREP, zNetbsd_C99_Inline_2Select0, (regex_t*)NULL }, };
4507
4508/*
4509 * Fix Command Arguments for Netbsd_C99_Inline_2
4510 */
4511static const char* apzNetbsd_C99_Inline_2Patch[] = {
4512 "format",
4513 "#ifdef __GNUC_STDC_INLINE__\n\
4514#define _SIGINLINE extern __attribute__((__gnu_inline__)) __inline\n\
4515#else\n\
4516%0\n\
4517#endif",
4518 (char*)NULL };
4519
3edc4b23
KW
4520/* * * * * * * * * * * * * * * * * * * * * * * * * *
4521 *
4522 * Description of Netbsd_Extra_Semicolon fix
4523 */
4524tSCC zNetbsd_Extra_SemicolonName[] =
4525 "netbsd_extra_semicolon";
4526
4527/*
4528 * File name selection pattern
4529 */
4530tSCC zNetbsd_Extra_SemicolonList[] =
401be4b6 4531 "sys/cdefs.h\0";
3edc4b23
KW
4532/*
4533 * Machine/OS name selection pattern
4534 */
4535tSCC* apzNetbsd_Extra_SemicolonMachs[] = {
4536 "*-*-netbsd*",
4537 (const char*)NULL };
4538
4539/*
4540 * content selection pattern - do fix if pattern found
4541 */
4542tSCC zNetbsd_Extra_SemicolonSelect0[] =
4543 "#define[ \t]*__END_DECLS[ \t]*};";
4544
4545#define NETBSD_EXTRA_SEMICOLON_TEST_CT 1
4546static tTestDesc aNetbsd_Extra_SemicolonTests[] = {
4547 { TT_EGREP, zNetbsd_Extra_SemicolonSelect0, (regex_t*)NULL }, };
4548
4549/*
4550 * Fix Command Arguments for Netbsd_Extra_Semicolon
4551 */
4552static const char* apzNetbsd_Extra_SemicolonPatch[] = {
4553 "format",
4554 "#define __END_DECLS }",
4555 (char*)NULL };
4556
207bf79d
JM
4557/* * * * * * * * * * * * * * * * * * * * * * * * * *
4558 *
4559 * Description of Newlib_Stdint_1 fix
4560 */
4561tSCC zNewlib_Stdint_1Name[] =
4562 "newlib_stdint_1";
4563
4564/*
4565 * File name selection pattern
4566 */
4567tSCC zNewlib_Stdint_1List[] =
4568 "stdint.h\0";
4569/*
4570 * Machine/OS name selection pattern
4571 */
4572#define apzNewlib_Stdint_1Machs (const char**)NULL
4573
4574/*
4575 * content selection pattern - do fix if pattern found
4576 */
4577tSCC zNewlib_Stdint_1Select0[] =
4578 "@todo - Add support for wint_t types";
4579
4580#define NEWLIB_STDINT_1_TEST_CT 1
4581static tTestDesc aNewlib_Stdint_1Tests[] = {
4582 { TT_EGREP, zNewlib_Stdint_1Select0, (regex_t*)NULL }, };
4583
4584/*
4585 * Fix Command Arguments for Newlib_Stdint_1
4586 */
4587static const char* apzNewlib_Stdint_1Patch[] = { sed_cmd_z,
4588 "-e", "s@#define INT32_MIN.*@#define INT32_MIN (-INT32_MAX - 1)@",
4589 "-e", "s@#define INT32_MAX.*@#define INT32_MAX __INT32_MAX__@",
4590 "-e", "s@#define UINT32_MAX.*@#define UINT32_MAX __UINT32_MAX__@",
4591 "-e", "s@#define INT_LEAST32_MIN.*@#define INT_LEAST32_MIN (-INT_LEAST32_MAX - 1)@",
4592 "-e", "s@#define INT_LEAST32_MAX.*@#define INT_LEAST32_MAX __INT_LEAST32_MAX__@",
4593 "-e", "s@#define UINT_LEAST32_MAX.*@#define UINT_LEAST32_MAX __UINT_LEAST32_MAX__@",
4594 "-e", "s@#define INT_FAST\\([0-9]*\\)_MIN.*@#define INT_FAST\\1_MIN (-INT_FAST\\1_MAX - 1)@",
4595 "-e", "s@#define INT_FAST\\([0-9]*\\)_MAX.*@#define INT_FAST\\1_MAX __INT_FAST\\1_MAX__@",
4596 "-e", "s@#define UINT_FAST\\([0-9]*\\)_MAX.*@#define UINT_FAST\\1_MAX __UINT_FAST\\1_MAX__@",
4597 "-e", "s@#define SIZE_MAX.*@#define SIZE_MAX __SIZE_MAX__@",
4598 "-e", "s@#define PTRDIFF_MIN.*@#define PTRDIFF_MIN (-PTRDIFF_MAX - 1)@",
4599 "-e", "s@#define PTRDIFF_MAX.*@#define PTRDIFF_MAX __PTRDIFF_MAX__@",
4600 "-e", "s@#define UINT8_C.*@#define UINT8_C(c) __UINT8_C(c)@",
4601 "-e", "s@#define UINT16_C.*@#define UINT16_C(c) __UINT16_C(c)@",
4602 (char*)NULL };
4603
4604/* * * * * * * * * * * * * * * * * * * * * * * * * *
4605 *
4606 * Description of Newlib_Stdint_2 fix
4607 */
4608tSCC zNewlib_Stdint_2Name[] =
4609 "newlib_stdint_2";
4610
4611/*
4612 * File name selection pattern
4613 */
4614tSCC zNewlib_Stdint_2List[] =
4615 "stdint.h\0";
4616/*
4617 * Machine/OS name selection pattern
4618 */
4619#define apzNewlib_Stdint_2Machs (const char**)NULL
4620
4621/*
4622 * content selection pattern - do fix if pattern found
4623 */
4624tSCC zNewlib_Stdint_2Select0[] =
4625 "@todo - Add support for wint_t types";
4626
4627#define NEWLIB_STDINT_2_TEST_CT 1
4628static tTestDesc aNewlib_Stdint_2Tests[] = {
4629 { TT_EGREP, zNewlib_Stdint_2Select0, (regex_t*)NULL }, };
4630
4631/*
4632 * Fix Command Arguments for Newlib_Stdint_2
4633 */
4634static const char* apzNewlib_Stdint_2Patch[] = {
4635 "format",
4636 "#define INTMAX_MAX __INTMAX_MAX__\n\
4637#define INTMAX_MIN (-INTMAX_MAX - 1)\n\
4638#define UINTMAX_MAX __UINTMAX_MAX__\n\
4639#define WCHAR_MAX __WCHAR_MAX__\n\
4640#define WCHAR_MIN __WCHAR_MIN__\n\
4641#define WINT_MAX __WINT_MAX__\n\
4642#define WINT_MIN __WINT_MIN__\n\n\
4643%0",
4644 "/\\*\\* Macros for minimum-width integer constant expressions \\*/",
4645 (char*)NULL };
4646
06bbab1b
BK
4647/* * * * * * * * * * * * * * * * * * * * * * * * * *
4648 *
5abc1f74 4649 * Description of Next_Math_Prefix fix
06bbab1b
BK
4650 */
4651tSCC zNext_Math_PrefixName[] =
3be1fb72
ZW
4652 "next_math_prefix";
4653
06bbab1b
BK
4654/*
4655 * File name selection pattern
4656 */
4657tSCC zNext_Math_PrefixList[] =
401be4b6 4658 "ansi/math.h\0";
06bbab1b
BK
4659/*
4660 * Machine/OS name selection pattern
4661 */
4662#define apzNext_Math_PrefixMachs (const char**)NULL
4663
4664/*
be02fa1a 4665 * content selection pattern - do fix if pattern found
06bbab1b
BK
4666 */
4667tSCC zNext_Math_PrefixSelect0[] =
a8228686 4668 "^extern[ \t]+double[ \t]+__const__[ \t]";
06bbab1b
BK
4669
4670#define NEXT_MATH_PREFIX_TEST_CT 1
3af556f7 4671static tTestDesc aNext_Math_PrefixTests[] = {
5abc1f74 4672 { TT_EGREP, zNext_Math_PrefixSelect0, (regex_t*)NULL }, };
06bbab1b
BK
4673
4674/*
4675 * Fix Command Arguments for Next_Math_Prefix
4676 */
3af556f7 4677static const char* apzNext_Math_PrefixPatch[] = {
a8228686
BK
4678 "format",
4679 "extern double %1(",
4680 "^extern[ \t]+double[ \t]+__const__[ \t]+([a-z]+)\\(",
06bbab1b
BK
4681 (char*)NULL };
4682
4683/* * * * * * * * * * * * * * * * * * * * * * * * * *
4684 *
5abc1f74 4685 * Description of Next_Template fix
06bbab1b
BK
4686 */
4687tSCC zNext_TemplateName[] =
3be1fb72
ZW
4688 "next_template";
4689
06bbab1b
BK
4690/*
4691 * File name selection pattern
4692 */
4693tSCC zNext_TemplateList[] =
401be4b6 4694 "bsd/libc.h\0";
06bbab1b
BK
4695/*
4696 * Machine/OS name selection pattern
4697 */
4698#define apzNext_TemplateMachs (const char**)NULL
4699
4700/*
be02fa1a 4701 * content selection pattern - do fix if pattern found
06bbab1b
BK
4702 */
4703tSCC zNext_TemplateSelect0[] =
a8228686 4704 "[ \t]template\\)";
06bbab1b
BK
4705
4706#define NEXT_TEMPLATE_TEST_CT 1
3af556f7 4707static tTestDesc aNext_TemplateTests[] = {
5abc1f74 4708 { TT_EGREP, zNext_TemplateSelect0, (regex_t*)NULL }, };
06bbab1b
BK
4709
4710/*
4711 * Fix Command Arguments for Next_Template
4712 */
3af556f7 4713static const char* apzNext_TemplatePatch[] = {
a8228686
BK
4714 "format",
4715 "(%1)",
4716 "\\(([^)]*)[ \t]template\\)",
06bbab1b
BK
4717 (char*)NULL };
4718
4719/* * * * * * * * * * * * * * * * * * * * * * * * * *
4720 *
5abc1f74 4721 * Description of Next_Volitile fix
06bbab1b
BK
4722 */
4723tSCC zNext_VolitileName[] =
3be1fb72
ZW
4724 "next_volitile";
4725
06bbab1b
BK
4726/*
4727 * File name selection pattern
4728 */
4729tSCC zNext_VolitileList[] =
401be4b6 4730 "ansi/stdlib.h\0";
06bbab1b
BK
4731/*
4732 * Machine/OS name selection pattern
4733 */
4734#define apzNext_VolitileMachs (const char**)NULL
4735
4736/*
be02fa1a 4737 * content selection pattern - do fix if pattern found
06bbab1b
BK
4738 */
4739tSCC zNext_VolitileSelect0[] =
a8228686 4740 "^extern[ \t]+volatile[ \t]+void[ \t]";
06bbab1b
BK
4741
4742#define NEXT_VOLITILE_TEST_CT 1
3af556f7 4743static tTestDesc aNext_VolitileTests[] = {
5abc1f74 4744 { TT_EGREP, zNext_VolitileSelect0, (regex_t*)NULL }, };
06bbab1b
BK
4745
4746/*
4747 * Fix Command Arguments for Next_Volitile
4748 */
3af556f7 4749static const char* apzNext_VolitilePatch[] = {
a8228686
BK
4750 "format",
4751 "extern void %1(",
4752 "^extern[ \t]+volatile[ \t]+void[ \t]+(exit|abort)\\(",
06bbab1b
BK
4753 (char*)NULL };
4754
4755/* * * * * * * * * * * * * * * * * * * * * * * * * *
4756 *
5abc1f74 4757 * Description of Next_Wait_Union fix
06bbab1b
BK
4758 */
4759tSCC zNext_Wait_UnionName[] =
3be1fb72
ZW
4760 "next_wait_union";
4761
06bbab1b
BK
4762/*
4763 * File name selection pattern
4764 */
4765tSCC zNext_Wait_UnionList[] =
401be4b6 4766 "sys/wait.h\0";
06bbab1b
BK
4767/*
4768 * Machine/OS name selection pattern
4769 */
4770#define apzNext_Wait_UnionMachs (const char**)NULL
4771
4772/*
be02fa1a 4773 * content selection pattern - do fix if pattern found
06bbab1b
BK
4774 */
4775tSCC zNext_Wait_UnionSelect0[] =
4776 "wait\\(union wait";
4777
4778#define NEXT_WAIT_UNION_TEST_CT 1
3af556f7 4779static tTestDesc aNext_Wait_UnionTests[] = {
5abc1f74 4780 { TT_EGREP, zNext_Wait_UnionSelect0, (regex_t*)NULL }, };
06bbab1b
BK
4781
4782/*
4783 * Fix Command Arguments for Next_Wait_Union
4784 */
3af556f7 4785static const char* apzNext_Wait_UnionPatch[] = {
cb8d5168
BK
4786 "format",
4787 "wait(void",
06bbab1b
BK
4788 (char*)NULL };
4789
4790/* * * * * * * * * * * * * * * * * * * * * * * * * *
4791 *
5abc1f74 4792 * Description of Nodeent_Syntax fix
06bbab1b
BK
4793 */
4794tSCC zNodeent_SyntaxName[] =
3be1fb72
ZW
4795 "nodeent_syntax";
4796
06bbab1b
BK
4797/*
4798 * File name selection pattern
4799 */
4800tSCC zNodeent_SyntaxList[] =
401be4b6 4801 "netdnet/dnetdb.h\0";
06bbab1b
BK
4802/*
4803 * Machine/OS name selection pattern
4804 */
4805#define apzNodeent_SyntaxMachs (const char**)NULL
cb8d5168
BK
4806
4807/*
4808 * content selection pattern - do fix if pattern found
4809 */
4810tSCC zNodeent_SyntaxSelect0[] =
4811 "char[ \t]*\\*na_addr[ \t]*$";
4812
4813#define NODEENT_SYNTAX_TEST_CT 1
3af556f7 4814static tTestDesc aNodeent_SyntaxTests[] = {
cb8d5168 4815 { TT_EGREP, zNodeent_SyntaxSelect0, (regex_t*)NULL }, };
06bbab1b
BK
4816
4817/*
4818 * Fix Command Arguments for Nodeent_Syntax
4819 */
3af556f7 4820static const char* apzNodeent_SyntaxPatch[] = {
cb8d5168
BK
4821 "format",
4822 "%0;",
06bbab1b
BK
4823 (char*)NULL };
4824
9cb82550
AT
4825/* * * * * * * * * * * * * * * * * * * * * * * * * *
4826 *
4827 * Description of Openbsd_Null_Definition fix
4828 */
4829tSCC zOpenbsd_Null_DefinitionName[] =
4830 "openbsd_null_definition";
4831
4832/*
4833 * File name selection pattern
4834 */
4835tSCC zOpenbsd_Null_DefinitionList[] =
4836 "locale.h\0stddef.h\0stdio.h\0string.h\0time.h\0unistd.h\0wchar.h\0sys/param.h\0";
4837/*
4838 * Machine/OS name selection pattern
4839 */
4840tSCC* apzOpenbsd_Null_DefinitionMachs[] = {
4841 "*-*-openbsd*",
4842 (const char*)NULL };
4843
4844/*
4845 * content selection pattern - do fix if pattern found
4846 */
4847tSCC zOpenbsd_Null_DefinitionSelect0[] =
4848 "__GNUG__";
4849
4850#define OPENBSD_NULL_DEFINITION_TEST_CT 1
4851static tTestDesc aOpenbsd_Null_DefinitionTests[] = {
4852 { TT_EGREP, zOpenbsd_Null_DefinitionSelect0, (regex_t*)NULL }, };
4853
4854/*
4855 * Fix Command Arguments for Openbsd_Null_Definition
4856 */
4857static const char* apzOpenbsd_Null_DefinitionPatch[] = {
4858 "format",
4859 "#ifndef NULL\n\
4860#ifdef __cplusplus\n\
4861#ifdef __GNUG__\n\
4862#define NULL\t__null\n\
4863#else\t /* ! __GNUG__ */\n\
4864#define NULL\t0L\n\
4865#endif\t /* __GNUG__ */\n\
4866#else\t /* ! __cplusplus */\n\
4867#define NULL\t((void *)0)\n\
4868#endif\t /* __cplusplus */\n\
4869#endif\t /* !NULL */",
4870 "^#ifndef[ \t]*NULL\n\
4871^#ifdef[ \t]*__GNUG__\n\
4872^#define[ \t]*NULL[ \t]*__null\n\
4873^#else\n\
4874^#define[ \t]*NULL[ \t]*0L\n\
4875^#endif\n\
4876^#endif",
4877 (char*)NULL };
4878
dc70e81d
JM
4879/* * * * * * * * * * * * * * * * * * * * * * * * * *
4880 *
4881 * Description of Obstack_Lvalue_Cast fix
4882 */
4883tSCC zObstack_Lvalue_CastName[] =
4884 "obstack_lvalue_cast";
4885
4886/*
4887 * File name selection pattern
4888 */
4889tSCC zObstack_Lvalue_CastList[] =
401be4b6 4890 "obstack.h\0";
dc70e81d
JM
4891/*
4892 * Machine/OS name selection pattern
4893 */
4894#define apzObstack_Lvalue_CastMachs (const char**)NULL
4895
4896/*
4897 * content selection pattern - do fix if pattern found
4898 */
4899tSCC zObstack_Lvalue_CastSelect0[] =
4900 "\\*\\(\\(([^()]*)\\*\\)(.*)\\)\\+\\+ = \\(([^()]*)\\)";
4901
4902#define OBSTACK_LVALUE_CAST_TEST_CT 1
4903static tTestDesc aObstack_Lvalue_CastTests[] = {
4904 { TT_EGREP, zObstack_Lvalue_CastSelect0, (regex_t*)NULL }, };
4905
4906/*
4907 * Fix Command Arguments for Obstack_Lvalue_Cast
4908 */
4909static const char* apzObstack_Lvalue_CastPatch[] = {
4910 "format",
4911 "((*((%1*)%2) = (%3)), (%2 += sizeof (%1)))",
4912 (char*)NULL };
4913
261b8381
AT
4914/* * * * * * * * * * * * * * * * * * * * * * * * * *
4915 *
4916 * Description of Openbsd_Va_Start fix
4917 */
4918tSCC zOpenbsd_Va_StartName[] =
4919 "openbsd_va_start";
4920
4921/*
4922 * File name selection pattern
4923 */
4924tSCC zOpenbsd_Va_StartList[] =
4925 "stdarg.h\0";
4926/*
4927 * Machine/OS name selection pattern
4928 */
4929tSCC* apzOpenbsd_Va_StartMachs[] = {
4930 "*-*-openbsd*",
4931 (const char*)NULL };
4932
4933/*
4934 * content selection pattern - do fix if pattern found
4935 */
4936tSCC zOpenbsd_Va_StartSelect0[] =
4937 "__builtin_stdarg_start";
4938
4939#define OPENBSD_VA_START_TEST_CT 1
4940static tTestDesc aOpenbsd_Va_StartTests[] = {
4941 { TT_EGREP, zOpenbsd_Va_StartSelect0, (regex_t*)NULL }, };
4942
4943/*
4944 * Fix Command Arguments for Openbsd_Va_Start
4945 */
4946static const char* apzOpenbsd_Va_StartPatch[] = {
4947 "format",
4948 "__builtin_va_start",
4949 (char*)NULL };
4950
06bbab1b
BK
4951/* * * * * * * * * * * * * * * * * * * * * * * * * *
4952 *
5abc1f74 4953 * Description of Osf_Namespace_A fix
06bbab1b
BK
4954 */
4955tSCC zOsf_Namespace_AName[] =
3be1fb72
ZW
4956 "osf_namespace_a";
4957
06bbab1b
BK
4958/*
4959 * File name selection pattern
4960 */
4961tSCC zOsf_Namespace_AList[] =
401be4b6 4962 "reg_types.h\0sys/lc_core.h\0";
06bbab1b
BK
4963/*
4964 * Machine/OS name selection pattern
4965 */
4966#define apzOsf_Namespace_AMachs (const char**)NULL
4967
4968/*
be02fa1a 4969 * perform the 'test' shell command - do fix on success
06bbab1b
BK
4970 */
4971tSCC zOsf_Namespace_ATest0[] =
48bd9529
BK
4972 " -r reg_types.h";
4973tSCC zOsf_Namespace_ATest1[] =
4974 " -r sys/lc_core.h";
4975tSCC zOsf_Namespace_ATest2[] =
4976 " -n \"`grep '} regex_t;' reg_types.h`\"";
4977tSCC zOsf_Namespace_ATest3[] =
4978 " -z \"`grep __regex_t regex.h`\"";
4979
4980#define OSF_NAMESPACE_A_TEST_CT 4
3af556f7 4981static tTestDesc aOsf_Namespace_ATests[] = {
5abc1f74
BK
4982 { TT_TEST, zOsf_Namespace_ATest0, 0 /* unused */ },
4983 { TT_TEST, zOsf_Namespace_ATest1, 0 /* unused */ },
4984 { TT_TEST, zOsf_Namespace_ATest2, 0 /* unused */ },
4985 { TT_TEST, zOsf_Namespace_ATest3, 0 /* unused */ }, };
06bbab1b
BK
4986
4987/*
4988 * Fix Command Arguments for Osf_Namespace_A
4989 */
3af556f7 4990static const char* apzOsf_Namespace_APatch[] = {
cb8d5168
BK
4991 "format",
4992 "__%0",
ef6df611 4993 "reg(ex|off|match)_t",
06bbab1b
BK
4994 (char*)NULL };
4995
4996/* * * * * * * * * * * * * * * * * * * * * * * * * *
4997 *
cb8d5168 4998 * Description of Osf_Namespace_C fix
06bbab1b 4999 */
cb8d5168
BK
5000tSCC zOsf_Namespace_CName[] =
5001 "osf_namespace_c";
3be1fb72 5002
06bbab1b
BK
5003/*
5004 * File name selection pattern
5005 */
cb8d5168 5006tSCC zOsf_Namespace_CList[] =
401be4b6 5007 "regex.h\0";
06bbab1b
BK
5008/*
5009 * Machine/OS name selection pattern
5010 */
cb8d5168
BK
5011#define apzOsf_Namespace_CMachs (const char**)NULL
5012
5013/*
5014 * content selection pattern - do fix if pattern found
5015 */
5016tSCC zOsf_Namespace_CSelect0[] =
5017 "#include <reg_types.h>.*";
06bbab1b
BK
5018
5019/*
be02fa1a 5020 * perform the 'test' shell command - do fix on success
06bbab1b 5021 */
cb8d5168 5022tSCC zOsf_Namespace_CTest0[] =
48bd9529 5023 " -r reg_types.h";
cb8d5168 5024tSCC zOsf_Namespace_CTest1[] =
48bd9529 5025 " -r sys/lc_core.h";
cb8d5168 5026tSCC zOsf_Namespace_CTest2[] =
48bd9529 5027 " -n \"`grep '} regex_t;' reg_types.h`\"";
cb8d5168 5028tSCC zOsf_Namespace_CTest3[] =
48bd9529
BK
5029 " -z \"`grep __regex_t regex.h`\"";
5030
cb8d5168 5031#define OSF_NAMESPACE_C_TEST_CT 5
3af556f7 5032static tTestDesc aOsf_Namespace_CTests[] = {
cb8d5168
BK
5033 { TT_TEST, zOsf_Namespace_CTest0, 0 /* unused */ },
5034 { TT_TEST, zOsf_Namespace_CTest1, 0 /* unused */ },
5035 { TT_TEST, zOsf_Namespace_CTest2, 0 /* unused */ },
5036 { TT_TEST, zOsf_Namespace_CTest3, 0 /* unused */ },
5037 { TT_EGREP, zOsf_Namespace_CSelect0, (regex_t*)NULL }, };
06bbab1b
BK
5038
5039/*
cb8d5168 5040 * Fix Command Arguments for Osf_Namespace_C
06bbab1b 5041 */
3af556f7 5042static const char* apzOsf_Namespace_CPatch[] = {
cb8d5168
BK
5043 "format",
5044 "%0\n\
5045typedef __regex_t\tregex_t;\n\
5046typedef __regoff_t\tregoff_t;\n\
5047typedef __regmatch_t\tregmatch_t;",
06bbab1b
BK
5048 (char*)NULL };
5049
14bfd7c7
RG
5050/* * * * * * * * * * * * * * * * * * * * * * * * * *
5051 *
5052 * Description of Pthread_Incomplete_Struct_Argument fix
5053 */
5054tSCC zPthread_Incomplete_Struct_ArgumentName[] =
5055 "pthread_incomplete_struct_argument";
5056
5057/*
5058 * File name selection pattern
5059 */
5060tSCC zPthread_Incomplete_Struct_ArgumentList[] =
401be4b6 5061 "pthread.h\0";
14bfd7c7
RG
5062/*
5063 * Machine/OS name selection pattern
5064 */
5065#define apzPthread_Incomplete_Struct_ArgumentMachs (const char**)NULL
5066
5067/*
5068 * content selection pattern - do fix if pattern found
5069 */
5070tSCC zPthread_Incomplete_Struct_ArgumentSelect0[] =
5071 "struct __jmp_buf_tag";
5072
5073#define PTHREAD_INCOMPLETE_STRUCT_ARGUMENT_TEST_CT 1
5074static tTestDesc aPthread_Incomplete_Struct_ArgumentTests[] = {
5075 { TT_EGREP, zPthread_Incomplete_Struct_ArgumentSelect0, (regex_t*)NULL }, };
5076
5077/*
5078 * Fix Command Arguments for Pthread_Incomplete_Struct_Argument
5079 */
5080static const char* apzPthread_Incomplete_Struct_ArgumentPatch[] = {
5081 "format",
5082 "%1 *%2%3",
5083 "^(extern int __sigsetjmp \\(struct __jmp_buf_tag) (__env)\\[1\\](.*)$",
5084 (char*)NULL };
5085
06bbab1b
BK
5086/* * * * * * * * * * * * * * * * * * * * * * * * * *
5087 *
5abc1f74 5088 * Description of Read_Ret_Type fix
d71ef9d4
BK
5089 */
5090tSCC zRead_Ret_TypeName[] =
3be1fb72
ZW
5091 "read_ret_type";
5092
d71ef9d4
BK
5093/*
5094 * File name selection pattern
5095 */
5096tSCC zRead_Ret_TypeList[] =
401be4b6 5097 "stdio.h\0";
d71ef9d4
BK
5098/*
5099 * Machine/OS name selection pattern
5100 */
5101#define apzRead_Ret_TypeMachs (const char**)NULL
5102
5103/*
5104 * content selection pattern - do fix if pattern found
5105 */
5106tSCC zRead_Ret_TypeSelect0[] =
5107 "extern int\t.*, fread\\(\\), fwrite\\(\\)";
5108
5109#define READ_RET_TYPE_TEST_CT 1
3af556f7 5110static tTestDesc aRead_Ret_TypeTests[] = {
5abc1f74 5111 { TT_EGREP, zRead_Ret_TypeSelect0, (regex_t*)NULL }, };
d71ef9d4
BK
5112
5113/*
5114 * Fix Command Arguments for Read_Ret_Type
5115 */
3af556f7 5116static const char* apzRead_Ret_TypePatch[] = {
cb8d5168
BK
5117 "format",
5118 "extern unsigned int fread(), fwrite();\n\
5119%1%2",
5120 "(extern int\t.*), fread\\(\\), fwrite\\(\\)(.*)",
d71ef9d4
BK
5121 (char*)NULL };
5122
6ed6a1b9
JM
5123/* * * * * * * * * * * * * * * * * * * * * * * * * *
5124 *
5125 * Description of Rpc_Xdr_Lvalue_Cast_A fix
5126 */
5127tSCC zRpc_Xdr_Lvalue_Cast_AName[] =
5128 "rpc_xdr_lvalue_cast_a";
5129
5130/*
5131 * File name selection pattern
5132 */
5133tSCC zRpc_Xdr_Lvalue_Cast_AList[] =
401be4b6 5134 "rpc/xdr.h\0";
6ed6a1b9
JM
5135/*
5136 * Machine/OS name selection pattern
5137 */
5138#define apzRpc_Xdr_Lvalue_Cast_AMachs (const char**)NULL
5139
5140/*
5141 * content selection pattern - do fix if pattern found
5142 */
5143tSCC zRpc_Xdr_Lvalue_Cast_ASelect0[] =
5144 "#define[ \t]*IXDR_GET_LONG.*\\\\\n\
5145.*__extension__.*";
5146
5147#define RPC_XDR_LVALUE_CAST_A_TEST_CT 1
5148static tTestDesc aRpc_Xdr_Lvalue_Cast_ATests[] = {
5149 { TT_EGREP, zRpc_Xdr_Lvalue_Cast_ASelect0, (regex_t*)NULL }, };
5150
5151/*
5152 * Fix Command Arguments for Rpc_Xdr_Lvalue_Cast_A
5153 */
5154static const char* apzRpc_Xdr_Lvalue_Cast_APatch[] = {
5155 "format",
5156 "#define IXDR_GET_LONG(buf) ((long)IXDR_GET_U_INT32(buf))",
5157 (char*)NULL };
5158
5159/* * * * * * * * * * * * * * * * * * * * * * * * * *
5160 *
5161 * Description of Rpc_Xdr_Lvalue_Cast_B fix
5162 */
5163tSCC zRpc_Xdr_Lvalue_Cast_BName[] =
5164 "rpc_xdr_lvalue_cast_b";
5165
5166/*
5167 * File name selection pattern
5168 */
5169tSCC zRpc_Xdr_Lvalue_Cast_BList[] =
401be4b6 5170 "rpc/xdr.h\0";
6ed6a1b9
JM
5171/*
5172 * Machine/OS name selection pattern
5173 */
5174#define apzRpc_Xdr_Lvalue_Cast_BMachs (const char**)NULL
5175
5176/*
5177 * content selection pattern - do fix if pattern found
5178 */
5179tSCC zRpc_Xdr_Lvalue_Cast_BSelect0[] =
5180 "#define[ \t]*IXDR_PUT_LONG.*\\\\\n\
5181.*__extension__.*";
5182
5183#define RPC_XDR_LVALUE_CAST_B_TEST_CT 1
5184static tTestDesc aRpc_Xdr_Lvalue_Cast_BTests[] = {
5185 { TT_EGREP, zRpc_Xdr_Lvalue_Cast_BSelect0, (regex_t*)NULL }, };
5186
5187/*
5188 * Fix Command Arguments for Rpc_Xdr_Lvalue_Cast_B
5189 */
5190static const char* apzRpc_Xdr_Lvalue_Cast_BPatch[] = {
5191 "format",
5192 "#define IXDR_PUT_LONG(buf, v) ((long)IXDR_PUT_INT32(buf, (long)(v)))",
5193 (char*)NULL };
5194
d71ef9d4
BK
5195/* * * * * * * * * * * * * * * * * * * * * * * * * *
5196 *
5abc1f74 5197 * Description of Rs6000_Double fix
06bbab1b
BK
5198 */
5199tSCC zRs6000_DoubleName[] =
3be1fb72
ZW
5200 "rs6000_double";
5201
06bbab1b
BK
5202/*
5203 * File name selection pattern
5204 */
5205tSCC zRs6000_DoubleList[] =
401be4b6 5206 "math.h\0";
06bbab1b
BK
5207/*
5208 * Machine/OS name selection pattern
5209 */
5210#define apzRs6000_DoubleMachs (const char**)NULL
5211
5212/*
be02fa1a 5213 * content selection pattern - do fix if pattern found
06bbab1b
BK
5214 */
5215tSCC zRs6000_DoubleSelect0[] =
5216 "[^a-zA-Z_]class\\(";
5217
5218#define RS6000_DOUBLE_TEST_CT 1
3af556f7 5219static tTestDesc aRs6000_DoubleTests[] = {
5abc1f74 5220 { TT_EGREP, zRs6000_DoubleSelect0, (regex_t*)NULL }, };
06bbab1b
BK
5221
5222/*
5223 * Fix Command Arguments for Rs6000_Double
5224 */
3af556f7 5225static const char* apzRs6000_DoublePatch[] = {
cb8d5168
BK
5226 "format",
5227 "#ifndef __cplusplus\n\
5228%0\n\
5229#endif",
5230 "^.*[^a-zA-Z_]class\\(.*",
06bbab1b
BK
5231 (char*)NULL };
5232
5233/* * * * * * * * * * * * * * * * * * * * * * * * * *
5234 *
5abc1f74 5235 * Description of Rs6000_Fchmod fix
06bbab1b
BK
5236 */
5237tSCC zRs6000_FchmodName[] =
3be1fb72
ZW
5238 "rs6000_fchmod";
5239
06bbab1b
BK
5240/*
5241 * File name selection pattern
5242 */
5243tSCC zRs6000_FchmodList[] =
401be4b6 5244 "sys/stat.h\0";
06bbab1b
BK
5245/*
5246 * Machine/OS name selection pattern
5247 */
5248#define apzRs6000_FchmodMachs (const char**)NULL
5249
5250/*
be02fa1a 5251 * content selection pattern - do fix if pattern found
06bbab1b
BK
5252 */
5253tSCC zRs6000_FchmodSelect0[] =
cb8d5168 5254 "fchmod\\(char \\*";
06bbab1b
BK
5255
5256#define RS6000_FCHMOD_TEST_CT 1
3af556f7 5257static tTestDesc aRs6000_FchmodTests[] = {
5abc1f74 5258 { TT_EGREP, zRs6000_FchmodSelect0, (regex_t*)NULL }, };
06bbab1b
BK
5259
5260/*
5261 * Fix Command Arguments for Rs6000_Fchmod
5262 */
3af556f7 5263static const char* apzRs6000_FchmodPatch[] = {
cb8d5168
BK
5264 "format",
5265 "fchmod(int",
06bbab1b
BK
5266 (char*)NULL };
5267
5268/* * * * * * * * * * * * * * * * * * * * * * * * * *
5269 *
5abc1f74 5270 * Description of Rs6000_Param fix
06bbab1b
BK
5271 */
5272tSCC zRs6000_ParamName[] =
3be1fb72
ZW
5273 "rs6000_param";
5274
06bbab1b
BK
5275/*
5276 * File name selection pattern
5277 */
5278tSCC zRs6000_ParamList[] =
401be4b6 5279 "stdio.h\0unistd.h\0";
06bbab1b
BK
5280/*
5281 * Machine/OS name selection pattern
5282 */
5283#define apzRs6000_ParamMachs (const char**)NULL
d7eb5a45
ZW
5284
5285/*
5286 * content selection pattern - do fix if pattern found
5287 */
5288tSCC zRs6000_ParamSelect0[] =
cb8d5168 5289 "rename\\(const char \\*old, const char \\*new\\)";
d7eb5a45
ZW
5290
5291#define RS6000_PARAM_TEST_CT 1
3af556f7 5292static tTestDesc aRs6000_ParamTests[] = {
d7eb5a45 5293 { TT_EGREP, zRs6000_ParamSelect0, (regex_t*)NULL }, };
06bbab1b
BK
5294
5295/*
5296 * Fix Command Arguments for Rs6000_Param
5297 */
3af556f7 5298static const char* apzRs6000_ParamPatch[] = {
cb8d5168
BK
5299 "format",
5300 "rename(const char *_old, const char *_new)",
06bbab1b
BK
5301 (char*)NULL };
5302
de0656cf
KJ
5303/* * * * * * * * * * * * * * * * * * * * * * * * * *
5304 *
5305 * Description of Sco_Math fix
5306 */
5307tSCC zSco_MathName[] =
5308 "sco_math";
5309
5310/*
5311 * File name selection pattern
5312 */
5313tSCC zSco_MathList[] =
401be4b6 5314 "math.h\0*/math.h\0";
de0656cf
KJ
5315/*
5316 * Machine/OS name selection pattern
5317 */
5318#define apzSco_MathMachs (const char**)NULL
5319
5320/*
5321 * content selection pattern - do fix if pattern found
5322 */
5323tSCC zSco_MathSelect0[] =
5324 "inline double abs";
5325
492d5b4f
JM
5326/*
5327 * content bypass pattern - skip fix if pattern found
5328 */
5329tSCC zSco_MathBypass0[] =
5330 "__GNUG__";
5331
5332#define SCO_MATH_TEST_CT 2
de0656cf 5333static tTestDesc aSco_MathTests[] = {
492d5b4f 5334 { TT_NEGREP, zSco_MathBypass0, (regex_t*)NULL },
de0656cf
KJ
5335 { TT_EGREP, zSco_MathSelect0, (regex_t*)NULL }, };
5336
5337/*
5338 * Fix Command Arguments for Sco_Math
5339 */
6aa1f8c1 5340static const char* apzSco_MathPatch[] = { sed_cmd_z,
de0656cf
KJ
5341 "-e", "/#define.*__fp_class(a) \\\\/i\\\n\
5342#ifndef __GNUC__\n",
5343 "-e", "/.*__builtin_generic/a\\\n\
5344#else\\\n\
5345#define __fp_class(a) \\\\\\\n\
5346 __builtin_choose_expr(__builtin_types_compatible_p(typeof(a),long double),\\\\\\\n\
5347 __fpclassifyl(a), \\\\\\\n\
5348 __builtin_choose_expr(__builtin_types_compatible_p(typeof(a), float), \\\\\\\n\
5349 __fpclassifyf(a),__fpclassify(a)))\\\n\
5350#endif",
5351 "-e", "/extern \"C\\+\\+\"/N;/inline double abs/i\\\n\
5352#ifndef __GNUC__\n",
5353 "-e", "/inline long double trunc/N;/inline long double trunc.*}.*extern \"C\\+\\+\"/a\\\n\
5354#endif /* ! __GNUC__ */",
5355 (char*)NULL };
5356
925a4487
EB
5357/* * * * * * * * * * * * * * * * * * * * * * * * * *
5358 *
5359 * Description of Solaris_Math_1 fix
5360 */
5361tSCC zSolaris_Math_1Name[] =
5362 "solaris_math_1";
5363
5364/*
5365 * File name selection pattern
5366 */
5367tSCC zSolaris_Math_1List[] =
401be4b6 5368 "iso/math_c99.h\0";
925a4487
EB
5369/*
5370 * Machine/OS name selection pattern
5371 */
5372#define apzSolaris_Math_1Machs (const char**)NULL
5373
5374/*
5375 * content selection pattern - do fix if pattern found
5376 */
5377tSCC zSolaris_Math_1Select0[] =
5378 "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
5379
5380/*
5381 * content bypass pattern - skip fix if pattern found
5382 */
5383tSCC zSolaris_Math_1Bypass0[] =
5384 "__GNUC__";
5385
5386#define SOLARIS_MATH_1_TEST_CT 2
5387static tTestDesc aSolaris_Math_1Tests[] = {
5388 { TT_NEGREP, zSolaris_Math_1Bypass0, (regex_t*)NULL },
5389 { TT_EGREP, zSolaris_Math_1Select0, (regex_t*)NULL }, };
5390
5391/*
5392 * Fix Command Arguments for Solaris_Math_1
5393 */
5394static const char* apzSolaris_Math_1Patch[] = {
5395 "format",
5396 "#define\tHUGE_VA%1\t(__builtin_huge_va%2())",
5397 "^#define[ \t]+HUGE_VA([LF]+)[ \t]+__builtin_huge_va([lf]+)",
5398 (char*)NULL };
5399
5400/* * * * * * * * * * * * * * * * * * * * * * * * * *
5401 *
5402 * Description of Solaris_Math_2 fix
5403 */
5404tSCC zSolaris_Math_2Name[] =
5405 "solaris_math_2";
5406
5407/*
5408 * File name selection pattern
5409 */
5410tSCC zSolaris_Math_2List[] =
401be4b6 5411 "iso/math_c99.h\0";
925a4487
EB
5412/*
5413 * Machine/OS name selection pattern
5414 */
5415#define apzSolaris_Math_2Machs (const char**)NULL
5416
5417/*
5418 * content selection pattern - do fix if pattern found
5419 */
5420tSCC zSolaris_Math_2Select0[] =
5421 "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
5422
5423/*
5424 * content bypass pattern - skip fix if pattern found
5425 */
5426tSCC zSolaris_Math_2Bypass0[] =
5427 "__GNUC__";
5428
5429#define SOLARIS_MATH_2_TEST_CT 2
5430static tTestDesc aSolaris_Math_2Tests[] = {
5431 { TT_NEGREP, zSolaris_Math_2Bypass0, (regex_t*)NULL },
5432 { TT_EGREP, zSolaris_Math_2Select0, (regex_t*)NULL }, };
5433
5434/*
5435 * Fix Command Arguments for Solaris_Math_2
5436 */
5437static const char* apzSolaris_Math_2Patch[] = {
5438 "format",
5439 "#define\tINFINITY\t(__builtin_inff())",
5440 "^#define[ \t]+INFINITY[ \t]+__builtin_infinity",
5441 (char*)NULL };
5442
5443/* * * * * * * * * * * * * * * * * * * * * * * * * *
5444 *
5445 * Description of Solaris_Math_3 fix
5446 */
5447tSCC zSolaris_Math_3Name[] =
5448 "solaris_math_3";
5449
5450/*
5451 * File name selection pattern
5452 */
5453tSCC zSolaris_Math_3List[] =
401be4b6 5454 "iso/math_c99.h\0";
925a4487
EB
5455/*
5456 * Machine/OS name selection pattern
5457 */
5458#define apzSolaris_Math_3Machs (const char**)NULL
5459
5460/*
5461 * content selection pattern - do fix if pattern found
5462 */
5463tSCC zSolaris_Math_3Select0[] =
5464 "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
5465
5466/*
5467 * content bypass pattern - skip fix if pattern found
5468 */
5469tSCC zSolaris_Math_3Bypass0[] =
5470 "__GNUC__";
5471
5472#define SOLARIS_MATH_3_TEST_CT 2
5473static tTestDesc aSolaris_Math_3Tests[] = {
5474 { TT_NEGREP, zSolaris_Math_3Bypass0, (regex_t*)NULL },
5475 { TT_EGREP, zSolaris_Math_3Select0, (regex_t*)NULL }, };
5476
5477/*
5478 * Fix Command Arguments for Solaris_Math_3
5479 */
5480static const char* apzSolaris_Math_3Patch[] = {
5481 "format",
5482 "#define\tNAN\t\t(__builtin_nanf(\"\"))",
5483 "^#define[ \t]+NAN[ \t]+__builtin_nan",
5484 (char*)NULL };
5485
5486/* * * * * * * * * * * * * * * * * * * * * * * * * *
5487 *
5488 * Description of Solaris_Math_4 fix
5489 */
5490tSCC zSolaris_Math_4Name[] =
5491 "solaris_math_4";
5492
5493/*
5494 * File name selection pattern
5495 */
5496tSCC zSolaris_Math_4List[] =
401be4b6 5497 "iso/math_c99.h\0";
925a4487
EB
5498/*
5499 * Machine/OS name selection pattern
5500 */
5501#define apzSolaris_Math_4Machs (const char**)NULL
5502
5503/*
5504 * content selection pattern - do fix if pattern found
5505 */
5506tSCC zSolaris_Math_4Select0[] =
5507 "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
5508
5509/*
5510 * content bypass pattern - skip fix if pattern found
5511 */
5512tSCC zSolaris_Math_4Bypass0[] =
5513 "__GNUC__";
5514
5515#define SOLARIS_MATH_4_TEST_CT 2
5516static tTestDesc aSolaris_Math_4Tests[] = {
5517 { TT_NEGREP, zSolaris_Math_4Bypass0, (regex_t*)NULL },
5518 { TT_EGREP, zSolaris_Math_4Select0, (regex_t*)NULL }, };
5519
5520/*
5521 * Fix Command Arguments for Solaris_Math_4
5522 */
5523static const char* apzSolaris_Math_4Patch[] = {
5524 "format",
5525 "#define\tfpclassify(x) \\\n\
7de4b37e 5526 __builtin_fpclassify(FP_NAN, FP_INFINITE, FP_NORMAL, FP_SUBNORMAL, FP_ZERO, (x))",
925a4487
EB
5527 "^#define[ \t]+fpclassify\\(x\\)[ \t]+__builtin_fpclassify\\(x\\)",
5528 (char*)NULL };
5529
925a4487
EB
5530/* * * * * * * * * * * * * * * * * * * * * * * * * *
5531 *
5532 * Description of Solaris_Math_8 fix
5533 */
5534tSCC zSolaris_Math_8Name[] =
5535 "solaris_math_8";
5536
5537/*
5538 * File name selection pattern
5539 */
5540tSCC zSolaris_Math_8List[] =
401be4b6 5541 "iso/math_c99.h\0";
925a4487
EB
5542/*
5543 * Machine/OS name selection pattern
5544 */
5545#define apzSolaris_Math_8Machs (const char**)NULL
5546
5547/*
5548 * content selection pattern - do fix if pattern found
5549 */
5550tSCC zSolaris_Math_8Select0[] =
5551 "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
5552
5553/*
5554 * content bypass pattern - skip fix if pattern found
5555 */
5556tSCC zSolaris_Math_8Bypass0[] =
5557 "__GNUC__";
5558
5559#define SOLARIS_MATH_8_TEST_CT 2
5560static tTestDesc aSolaris_Math_8Tests[] = {
5561 { TT_NEGREP, zSolaris_Math_8Bypass0, (regex_t*)NULL },
5562 { TT_EGREP, zSolaris_Math_8Select0, (regex_t*)NULL }, };
5563
5564/*
5565 * Fix Command Arguments for Solaris_Math_8
5566 */
5567static const char* apzSolaris_Math_8Patch[] = {
5568 "format",
5569 "#define\tsignbit(x)\t(sizeof(x) == sizeof(float) \\\n\
5570\t\t\t ? __builtin_signbitf(x) \\\n\
5571\t\t\t : sizeof(x) == sizeof(long double) \\\n\
5572\t\t\t ? __builtin_signbitl(x) \\\n\
5573\t\t\t : __builtin_signbit(x))",
5574 "^#define[ \t]+signbit\\(x\\)[ \t]+__builtin_signbit\\(x\\)",
5575 (char*)NULL };
5576
5577/* * * * * * * * * * * * * * * * * * * * * * * * * *
5578 *
5579 * Description of Solaris_Math_9 fix
5580 */
5581tSCC zSolaris_Math_9Name[] =
5582 "solaris_math_9";
5583
5584/*
5585 * File name selection pattern
5586 */
5587tSCC zSolaris_Math_9List[] =
401be4b6 5588 "iso/math_c99.h\0";
925a4487
EB
5589/*
5590 * Machine/OS name selection pattern
5591 */
5592#define apzSolaris_Math_9Machs (const char**)NULL
5593
5594/*
5595 * content selection pattern - do fix if pattern found
5596 */
5597tSCC zSolaris_Math_9Select0[] =
5598 "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
5599
5600/*
5601 * content bypass pattern - skip fix if pattern found
5602 */
5603tSCC zSolaris_Math_9Bypass0[] =
5604 "__GNUC__";
5605
5606#define SOLARIS_MATH_9_TEST_CT 2
5607static tTestDesc aSolaris_Math_9Tests[] = {
5608 { TT_NEGREP, zSolaris_Math_9Bypass0, (regex_t*)NULL },
5609 { TT_EGREP, zSolaris_Math_9Select0, (regex_t*)NULL }, };
5610
5611/*
5612 * Fix Command Arguments for Solaris_Math_9
5613 */
5614static const char* apzSolaris_Math_9Patch[] = {
5615 "format",
5616 "#define\t%1(x, y)%2__builtin_%1(x, y)",
5617 "^#define[ \t]+([a-z]+)\\(x, y\\)([ \t]+)\\(\\(x\\) __builtin_[a-z]+\\(y\\)\\)",
5618 (char*)NULL };
5619
c951ae40
KG
5620/* * * * * * * * * * * * * * * * * * * * * * * * * *
5621 *
5622 * Description of Solaris_Math_10 fix
5623 */
5624tSCC zSolaris_Math_10Name[] =
5625 "solaris_math_10";
5626
5627/*
5628 * File name selection pattern
5629 */
5630tSCC zSolaris_Math_10List[] =
5631 "iso/math_c99.h\0";
5632/*
5633 * Machine/OS name selection pattern
5634 */
5635#define apzSolaris_Math_10Machs (const char**)NULL
5636
5637/*
5638 * content selection pattern - do fix if pattern found
5639 */
5640tSCC zSolaris_Math_10Select0[] =
5641 "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
5642
5643#define SOLARIS_MATH_10_TEST_CT 1
5644static tTestDesc aSolaris_Math_10Tests[] = {
5645 { TT_EGREP, zSolaris_Math_10Select0, (regex_t*)NULL }, };
5646
5647/*
5648 * Fix Command Arguments for Solaris_Math_10
5649 */
5650static const char* apzSolaris_Math_10Patch[] = {
5651 "format",
5652 "#define\tisinf(x) __builtin_isinf(x)",
5653 "^#define[ \t]+isinf\\(x\\)[ \t]+__extension__\\([ \t]*\\\\\n\
5654[ \t]*\\{[ \t]*__typeof\\(x\\)[ \t]*__x_i[ \t]*=[ \t]*\\(x\\);[ \t]*\\\\\n\
5655[ \t]*__x_i[ \t]*==[ \t]*\\(__typeof\\(__x_i\\)\\)[ \t]*INFINITY[ \t]*\\|\\|[ \t]*\\\\\n\
5656[ \t]*__x_i[ \t]*==[ \t]*\\(__typeof\\(__x_i\\)\\)[ \t]*\\(-INFINITY\\);[ \t]*\\}\\)",
5657 (char*)NULL };
5658
7a9cdb10
DD
5659/* * * * * * * * * * * * * * * * * * * * * * * * * *
5660 *
5661 * Description of Solaris_Mutex_Init_2 fix
5662 */
5663tSCC zSolaris_Mutex_Init_2Name[] =
5664 "solaris_mutex_init_2";
5665
5666/*
5667 * File name selection pattern
5668 */
5669tSCC zSolaris_Mutex_Init_2List[] =
401be4b6 5670 "pthread.h\0";
7a9cdb10
DD
5671/*
5672 * Machine/OS name selection pattern
5673 */
a77d42cf
KG
5674tSCC* apzSolaris_Mutex_Init_2Machs[] = {
5675 "*-*-solaris2.[0-9]",
5676 "*-*-solaris2.[0-9][!0-9]*",
5677 (const char*)NULL };
7a9cdb10
DD
5678
5679/*
5680 * content selection pattern - do fix if pattern found
5681 */
5682tSCC zSolaris_Mutex_Init_2Select0[] =
eb559363 5683 "@\\(#\\)pthread.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
a26c3bb5 5684
7a9cdb10
DD
5685#define SOLARIS_MUTEX_INIT_2_TEST_CT 1
5686static tTestDesc aSolaris_Mutex_Init_2Tests[] = {
5687 { TT_EGREP, zSolaris_Mutex_Init_2Select0, (regex_t*)NULL }, };
6ee71e49
BK
5688
5689/*
7a9cdb10 5690 * Fix Command Arguments for Solaris_Mutex_Init_2
6ee71e49 5691 */
7a9cdb10 5692static const char* apzSolaris_Mutex_Init_2Patch[] = {
6ee71e49 5693 "format",
eb559363
BK
5694 "#if __STDC__ - 0 == 0 && !defined(_NO_LONGLONG)\n\
5695%0\n\
5696#else\n\
a77d42cf 5697%1, {0}}%4\n\
eb559363 5698#endif",
a77d42cf
KG
5699 "(^#define[ \t]+PTHREAD_(MUTEX|COND)_INITIALIZER[ \t]+(|/*.**/[ \t]*\\\\\n\
5700[ \t]*)\\{.*),[ \t]*0\\}(|[ \t].*)$",
6ee71e49
BK
5701 (char*)NULL };
5702
2b655a0a
KG
5703/* * * * * * * * * * * * * * * * * * * * * * * * * *
5704 *
5705 * Description of Solaris_Rwlock_Init_1 fix
5706 */
5707tSCC zSolaris_Rwlock_Init_1Name[] =
5708 "solaris_rwlock_init_1";
5709
5710/*
5711 * File name selection pattern
5712 */
5713tSCC zSolaris_Rwlock_Init_1List[] =
401be4b6 5714 "pthread.h\0";
2b655a0a
KG
5715/*
5716 * Machine/OS name selection pattern
5717 */
5718tSCC* apzSolaris_Rwlock_Init_1Machs[] = {
5719 "*-*-solaris*",
5720 (const char*)NULL };
5721
5722/*
5723 * content selection pattern - do fix if pattern found
5724 */
5725tSCC zSolaris_Rwlock_Init_1Select0[] =
5726 "@\\(#\\)pthread.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
5727
5728#define SOLARIS_RWLOCK_INIT_1_TEST_CT 1
5729static tTestDesc aSolaris_Rwlock_Init_1Tests[] = {
5730 { TT_EGREP, zSolaris_Rwlock_Init_1Select0, (regex_t*)NULL }, };
5731
5732/*
5733 * Fix Command Arguments for Solaris_Rwlock_Init_1
5734 */
5735static const char* apzSolaris_Rwlock_Init_1Patch[] = {
5736 "format",
5737 "#if __STDC__ - 0 == 0 && !defined(_NO_LONGLONG)\n\
5738%0\n\
5739#else\n\
5740%1{0, 0, 0, {{0}, {0}, {0}}, {{0}, {0}}, {{0}, {0}}}\n\
5741#endif",
5742 "(^#define[ \t]+PTHREAD_RWLOCK_INITIALIZER[ \t]+)\\{0, 0, 0, \\{0, 0, 0\\}, \\{0, 0\\}, \\{0, 0\\}\\}[ \t]*$",
5743 (char*)NULL };
5744
5745/* * * * * * * * * * * * * * * * * * * * * * * * * *
5746 *
5747 * Description of Solaris_Once_Init_1 fix
5748 */
5749tSCC zSolaris_Once_Init_1Name[] =
5750 "solaris_once_init_1";
5751
5752/*
5753 * File name selection pattern
5754 */
5755tSCC zSolaris_Once_Init_1List[] =
401be4b6 5756 "pthread.h\0";
2b655a0a
KG
5757/*
5758 * Machine/OS name selection pattern
5759 */
5760tSCC* apzSolaris_Once_Init_1Machs[] = {
5761 "*-*-solaris*",
5762 (const char*)NULL };
5763
5764/*
5765 * content selection pattern - do fix if pattern found
5766 */
5767tSCC zSolaris_Once_Init_1Select0[] =
5768 "@\\(#\\)pthread.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
5769
5770#define SOLARIS_ONCE_INIT_1_TEST_CT 1
5771static tTestDesc aSolaris_Once_Init_1Tests[] = {
5772 { TT_EGREP, zSolaris_Once_Init_1Select0, (regex_t*)NULL }, };
5773
5774/*
5775 * Fix Command Arguments for Solaris_Once_Init_1
5776 */
5777static const char* apzSolaris_Once_Init_1Patch[] = {
5778 "format",
5779 "%1{%2}%3",
5780 "(^#define[ \t]+PTHREAD_ONCE_INIT[ \t]+\\{)([^}]+)(\\})[ \t]*$",
5781 (char*)NULL };
5782
0a1f02df
KG
5783/* * * * * * * * * * * * * * * * * * * * * * * * * *
5784 *
5785 * Description of Solaris_Once_Init_2 fix
5786 */
5787tSCC zSolaris_Once_Init_2Name[] =
5788 "solaris_once_init_2";
5789
5790/*
5791 * File name selection pattern
5792 */
5793tSCC zSolaris_Once_Init_2List[] =
401be4b6 5794 "pthread.h\0";
0a1f02df
KG
5795/*
5796 * Machine/OS name selection pattern
5797 */
5798tSCC* apzSolaris_Once_Init_2Machs[] = {
5799 "*-*-solaris2.[0-9]",
5800 "*-*-solaris2.[0-9][!0-9]*",
5801 (const char*)NULL };
5802
5803/*
5804 * content selection pattern - do fix if pattern found
5805 */
5806tSCC zSolaris_Once_Init_2Select0[] =
5807 "@\\(#\\)pthread.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
5808
5809#define SOLARIS_ONCE_INIT_2_TEST_CT 1
5810static tTestDesc aSolaris_Once_Init_2Tests[] = {
5811 { TT_EGREP, zSolaris_Once_Init_2Select0, (regex_t*)NULL }, };
5812
5813/*
5814 * Fix Command Arguments for Solaris_Once_Init_2
5815 */
5816static const char* apzSolaris_Once_Init_2Patch[] = {
5817 "format",
5818 "#if __STDC__ - 0 == 0 && !defined(_NO_LONGLONG)\n\
5819%0\n\
5820#else\n\
5821%1{0}, {0}, {0}, {%3}%4\n\
5822#endif",
5823 "(^#define[ \t]+PTHREAD_ONCE_INIT[ \t]+\\{\\{)(0, 0, 0, )(PTHREAD_[A-Z_]+)(\\}\\})[ \t]*$",
5824 (char*)NULL };
5825
6bf1ffe1
EB
5826/* * * * * * * * * * * * * * * * * * * * * * * * * *
5827 *
cd985f66 5828 * Description of Solaris_Stdio_Tag fix
6bf1ffe1 5829 */
cd985f66
JM
5830tSCC zSolaris_Stdio_TagName[] =
5831 "solaris_stdio_tag";
6bf1ffe1
EB
5832
5833/*
5834 * File name selection pattern
5835 */
cd985f66
JM
5836tSCC zSolaris_Stdio_TagList[] =
5837 "stdio_tag.h\0";
6bf1ffe1
EB
5838/*
5839 * Machine/OS name selection pattern
5840 */
cd985f66 5841#define apzSolaris_Stdio_TagMachs (const char**)NULL
6bf1ffe1
EB
5842
5843/*
5844 * content selection pattern - do fix if pattern found
5845 */
cd985f66
JM
5846tSCC zSolaris_Stdio_TagSelect0[] =
5847 "__cplusplus < 54321L";
6bf1ffe1
EB
5848
5849/*
cd985f66 5850 * content bypass pattern - skip fix if pattern found
6bf1ffe1 5851 */
cd985f66
JM
5852tSCC zSolaris_Stdio_TagBypass0[] =
5853 "__GNUC__";
9fcc7481
MM
5854
5855#define SOLARIS_STDIO_TAG_TEST_CT 2
fba39eaf 5856static tTestDesc aSolaris_Stdio_TagTests[] = {
9fcc7481 5857 { TT_NEGREP, zSolaris_Stdio_TagBypass0, (regex_t*)NULL },
fba39eaf
RH
5858 { TT_EGREP, zSolaris_Stdio_TagSelect0, (regex_t*)NULL }, };
5859
5860/*
5861 * Fix Command Arguments for Solaris_Stdio_Tag
5862 */
6aa1f8c1 5863static const char* apzSolaris_Stdio_TagPatch[] = { sed_cmd_z,
fba39eaf
RH
5864 "-e", "s/defined(__cplusplus) && (__cplusplus < 54321L)/0/",
5865 (char*)NULL };
5866
6ee71e49
BK
5867/* * * * * * * * * * * * * * * * * * * * * * * * * *
5868 *
7b78a14a 5869 * Description of Statsswtch fix
6ee71e49 5870 */
7b78a14a
BK
5871tSCC zStatsswtchName[] =
5872 "statsswtch";
6ee71e49
BK
5873
5874/*
5875 * File name selection pattern
5876 */
7b78a14a 5877tSCC zStatsswtchList[] =
401be4b6 5878 "rpcsvc/rstat.h\0";
6ee71e49
BK
5879/*
5880 * Machine/OS name selection pattern
5881 */
7b78a14a 5882#define apzStatsswtchMachs (const char**)NULL
6ee71e49
BK
5883
5884/*
5885 * content selection pattern - do fix if pattern found
5886 */
7b78a14a
BK
5887tSCC zStatsswtchSelect0[] =
5888 "boottime$";
a26c3bb5 5889
7b78a14a
BK
5890#define STATSSWTCH_TEST_CT 1
5891static tTestDesc aStatsswtchTests[] = {
5892 { TT_EGREP, zStatsswtchSelect0, (regex_t*)NULL }, };
6ee71e49
BK
5893
5894/*
7b78a14a 5895 * Fix Command Arguments for Statsswtch
6ee71e49 5896 */
7b78a14a 5897static const char* apzStatsswtchPatch[] = {
6ee71e49 5898 "format",
7b78a14a 5899 "boottime;",
6ee71e49
BK
5900 (char*)NULL };
5901
4c188026
BK
5902/* * * * * * * * * * * * * * * * * * * * * * * * * *
5903 *
7b78a14a 5904 * Description of Stdio_Stdarg_H fix
4c188026 5905 */
7b78a14a
BK
5906tSCC zStdio_Stdarg_HName[] =
5907 "stdio_stdarg_h";
4c188026
BK
5908
5909/*
5910 * File name selection pattern
5911 */
7b78a14a 5912tSCC zStdio_Stdarg_HList[] =
401be4b6 5913 "stdio.h\0";
4c188026
BK
5914/*
5915 * Machine/OS name selection pattern
5916 */
9fcc7481 5917tSCC* apzStdio_Stdarg_HMachs[] = {
5fabfd4c 5918 "*-*-solaris2.1[0-9]*",
9fcc7481 5919 (const char*)NULL };
4c188026
BK
5920
5921/*
7b78a14a 5922 * content bypass pattern - skip fix if pattern found
4c188026 5923 */
7b78a14a
BK
5924tSCC zStdio_Stdarg_HBypass0[] =
5925 "include.*(stdarg.h|machine/ansi.h)";
4c188026 5926
7b78a14a
BK
5927#define STDIO_STDARG_H_TEST_CT 1
5928static tTestDesc aStdio_Stdarg_HTests[] = {
5929 { TT_NEGREP, zStdio_Stdarg_HBypass0, (regex_t*)NULL }, };
4c188026
BK
5930
5931/*
7b78a14a 5932 * Fix Command Arguments for Stdio_Stdarg_H
4c188026 5933 */
7b78a14a
BK
5934static const char* apzStdio_Stdarg_HPatch[] = {
5935 "wrap",
5936 "#define __need___va_list\n\
5937#include <stdarg.h>\n",
4c188026
BK
5938 (char*)NULL };
5939
1f98d85e
WB
5940/* * * * * * * * * * * * * * * * * * * * * * * * * *
5941 *
7b78a14a 5942 * Description of Stdio_Va_List fix
1f98d85e 5943 */
7b78a14a
BK
5944tSCC zStdio_Va_ListName[] =
5945 "stdio_va_list";
1f98d85e
WB
5946
5947/*
5948 * File name selection pattern
5949 */
7b78a14a 5950tSCC zStdio_Va_ListList[] =
401be4b6 5951 "stdio.h\0internal/stdio_core.h\0internal/wchar_core.h\0";
1f98d85e
WB
5952/*
5953 * Machine/OS name selection pattern
5954 */
9fcc7481 5955tSCC* apzStdio_Va_ListMachs[] = {
5fabfd4c 5956 "*-*-solaris2.1[0-9]*",
9fcc7481 5957 (const char*)NULL };
1f98d85e
WB
5958
5959/*
7b78a14a 5960 * content bypass pattern - skip fix if pattern found
1f98d85e 5961 */
7b78a14a 5962tSCC zStdio_Va_ListBypass0[] =
5ded58d0 5963 "__gnuc_va_list|_BSD_VA_LIST_|__DJ_va_list|_G_va_list";
1f98d85e 5964
976c217a 5965#define STDIO_VA_LIST_TEST_CT 1
7b78a14a 5966static tTestDesc aStdio_Va_ListTests[] = {
976c217a 5967 { TT_NEGREP, zStdio_Va_ListBypass0, (regex_t*)NULL }, };
1f98d85e
WB
5968
5969/*
7b78a14a 5970 * Fix Command Arguments for Stdio_Va_List
1f98d85e 5971 */
6aa1f8c1 5972static const char* apzStdio_Va_ListPatch[] = { sed_cmd_z,
871a3122 5973 "-e", "s@[ \t]va_list\\([ \t)]\\)@ __gnuc_va_list\\1@\n\
1a78e5a7 5974s@(va_list)&@(__gnuc_va_list)\\&@\n\
7b78a14a 5975s@ _VA_LIST_));@ __gnuc_va_list));@\n\
6d638aac 5976s@ __VA_LIST__));@ __gnuc_va_list));@\n\
7b78a14a
BK
5977s@ va_list@ __not_va_list__@\n\
5978s@\\*va_list@*__not_va_list__@\n\
5979s@ __va_list)@ __gnuc_va_list)@\n\
5980s@typedef[ \t]\\(.*\\)[ \t]va_list[ \t]*;@typedef \\1 __not_va_list__;@\n\
0fca111b 5981s@typedef[ \t]*__va_list__@typedef __gnuc_va_list@\n\
7b78a14a 5982s@GNUC_VA_LIST@GNUC_Va_LIST@\n\
631099c9 5983s@_VA_LIST_DEFINED@_Va_LIST_DEFINED@\n\
7b78a14a
BK
5984s@_NEED___VA_LIST@_NEED___Va_LIST@\n\
5985s@VA_LIST@DUMMY_VA_LIST@\n\
5986s@_Va_LIST@_VA_LIST@",
1f98d85e
WB
5987 (char*)NULL };
5988
40d05429
MS
5989/* * * * * * * * * * * * * * * * * * * * * * * * * *
5990 *
5991 * Description of Stdio_Va_List_Clients fix
5992 */
5993tSCC zStdio_Va_List_ClientsName[] =
5994 "stdio_va_list_clients";
5995
5996/*
5997 * File name selection pattern
5998 */
5999tSCC zStdio_Va_List_ClientsList[] =
401be4b6 6000 "com_err.h\0cps.h\0curses.h\0krb5.h\0lc_core.h\0pfmt.h\0wchar.h\0curses_colr/curses.h\0";
40d05429
MS
6001/*
6002 * Machine/OS name selection pattern
6003 */
6004#define apzStdio_Va_List_ClientsMachs (const char**)NULL
6005
6006/*
6007 * content bypass pattern - skip fix if pattern found
6008 */
6009tSCC zStdio_Va_List_ClientsBypass0[] =
6010 "__gnuc_va_list|_BSD_VA_LIST_|__DJ_va_list|_G_va_list";
6011tSCC zStdio_Va_List_ClientsBypass1[] =
6012 "include <stdarg\\.h>|#ifdef va_start";
6013
6014#define STDIO_VA_LIST_CLIENTS_TEST_CT 2
6015static tTestDesc aStdio_Va_List_ClientsTests[] = {
6016 { TT_NEGREP, zStdio_Va_List_ClientsBypass0, (regex_t*)NULL },
6017 { TT_NEGREP, zStdio_Va_List_ClientsBypass1, (regex_t*)NULL }, };
6018
6019/*
6020 * Fix Command Arguments for Stdio_Va_List_Clients
6021 */
6aa1f8c1 6022static const char* apzStdio_Va_List_ClientsPatch[] = { sed_cmd_z,
40d05429
MS
6023 "-e", "s@[ \t]va_list\\([ \t)]\\)@ __gnuc_va_list\\1@\n\
6024s@(va_list)&@(__gnuc_va_list)\\&@\n\
6025s@ _VA_LIST_));@ __gnuc_va_list));@\n\
6026s@ __VA_LIST__));@ __gnuc_va_list));@\n\
6027s@ va_list@ __not_va_list__@\n\
6028s@\\*va_list@*__not_va_list__@\n\
6029s@ __va_list)@ __gnuc_va_list)@\n\
6030s@typedef[ \t]\\(.*\\)[ \t]va_list[ \t]*;@typedef \\1 __not_va_list__;@\n\
6031s@typedef[ \t]*__va_list__@typedef __gnuc_va_list@\n\
6032s@GNUC_VA_LIST@GNUC_Va_LIST@\n\
6033s@_VA_LIST_DEFINED@_Va_LIST_DEFINED@\n\
6034s@_NEED___VA_LIST@_NEED___Va_LIST@\n\
6035s@VA_LIST@DUMMY_VA_LIST@\n\
6036s@_Va_LIST@_VA_LIST@",
6037 (char*)NULL };
6038
06bbab1b
BK
6039/* * * * * * * * * * * * * * * * * * * * * * * * * *
6040 *
7b78a14a 6041 * Description of Strict_Ansi_Not fix
06bbab1b 6042 */
7b78a14a
BK
6043tSCC zStrict_Ansi_NotName[] =
6044 "strict_ansi_not";
3be1fb72 6045
06bbab1b
BK
6046/*
6047 * File name selection pattern
6048 */
7b78a14a 6049#define zStrict_Ansi_NotList (char*)NULL
06bbab1b
BK
6050/*
6051 * Machine/OS name selection pattern
6052 */
7b78a14a
BK
6053#define apzStrict_Ansi_NotMachs (const char**)NULL
6054
6055/*
6056 * content selection pattern - do fix if pattern found
6057 */
6058tSCC zStrict_Ansi_NotSelect0[] =
b5639a49 6059 "^([ \t]*#[ \t]*if.*)(!__STDC__|__STDC__[ \t]*==[ \t]*0|__STDC__[ \t]*!=[ \t]*1|__STDC__[ \t]*-[ \t]*0[ \t]*==[ \t]*0)";
06bbab1b 6060
8f2e963b
LR
6061/*
6062 * content bypass pattern - skip fix if pattern found
6063 */
6064tSCC zStrict_Ansi_NotBypass0[] =
6065 "GNU and MIPS C compilers define __STDC__ differently";
5ded58d0
ZW
6066tSCC zStrict_Ansi_NotBypass1[] =
6067 "__SCO_VERSION__.*__STDC__ != 1";
8f2e963b 6068
06bbab1b 6069/*
7b78a14a 6070 * perform the C function call test
06bbab1b 6071 */
7b78a14a 6072tSCC zStrict_Ansi_NotFTst0[] = "stdc_0_in_system_headers";
06bbab1b 6073
5ded58d0 6074#define STRICT_ANSI_NOT_TEST_CT 4
7b78a14a
BK
6075static tTestDesc aStrict_Ansi_NotTests[] = {
6076 { TT_FUNCTION, zStrict_Ansi_NotFTst0, 0 /* unused */ },
8f2e963b 6077 { TT_NEGREP, zStrict_Ansi_NotBypass0, (regex_t*)NULL },
5ded58d0 6078 { TT_NEGREP, zStrict_Ansi_NotBypass1, (regex_t*)NULL },
7b78a14a 6079 { TT_EGREP, zStrict_Ansi_NotSelect0, (regex_t*)NULL }, };
06bbab1b
BK
6080
6081/*
7b78a14a 6082 * Fix Command Arguments for Strict_Ansi_Not
06bbab1b 6083 */
7b78a14a 6084static const char* apzStrict_Ansi_NotPatch[] = {
cb8d5168 6085 "format",
b5639a49 6086 "%1 !defined(__STRICT_ANSI__)",
06bbab1b
BK
6087 (char*)NULL };
6088
3be1fb72
ZW
6089/* * * * * * * * * * * * * * * * * * * * * * * * * *
6090 *
7b78a14a 6091 * Description of Strict_Ansi_Not_Ctd fix
3be1fb72 6092 */
7b78a14a
BK
6093tSCC zStrict_Ansi_Not_CtdName[] =
6094 "strict_ansi_not_ctd";
3be1fb72
ZW
6095
6096/*
6097 * File name selection pattern
6098 */
7b78a14a 6099tSCC zStrict_Ansi_Not_CtdList[] =
401be4b6 6100 "math.h\0limits.h\0stdio.h\0signal.h\0stdlib.h\0sys/signal.h\0time.h\0";
3be1fb72
ZW
6101/*
6102 * Machine/OS name selection pattern
6103 */
7b78a14a 6104#define apzStrict_Ansi_Not_CtdMachs (const char**)NULL
3be1fb72
ZW
6105
6106/*
7b78a14a 6107 * content selection pattern - do fix if pattern found
3be1fb72 6108 */
7b78a14a 6109tSCC zStrict_Ansi_Not_CtdSelect0[] =
b5639a49 6110 "^([ \t]*(\\(|&&|\\|\\|)([ \t(]*!*[ \t]*defined\\([a-zA-Z_0-9]+\\)[ \t]*[|&][|&])*[ \t(]*)(__STDC__[ \t]*(|-[ \t]*0[ \t]*)==[ \t]*0)";
3be1fb72 6111
7b78a14a
BK
6112/*
6113 * perform the C function call test
6114 */
6115tSCC zStrict_Ansi_Not_CtdFTst0[] = "stdc_0_in_system_headers";
6116
6117#define STRICT_ANSI_NOT_CTD_TEST_CT 2
6118static tTestDesc aStrict_Ansi_Not_CtdTests[] = {
6119 { TT_FUNCTION, zStrict_Ansi_Not_CtdFTst0, 0 /* unused */ },
6120 { TT_EGREP, zStrict_Ansi_Not_CtdSelect0, (regex_t*)NULL }, };
3be1fb72
ZW
6121
6122/*
7b78a14a 6123 * Fix Command Arguments for Strict_Ansi_Not_Ctd
3be1fb72 6124 */
7b78a14a
BK
6125static const char* apzStrict_Ansi_Not_CtdPatch[] = {
6126 "format",
b5639a49 6127 "%1 !defined(__STRICT_ANSI__)",
3be1fb72
ZW
6128 (char*)NULL };
6129
06bbab1b
BK
6130/* * * * * * * * * * * * * * * * * * * * * * * * * *
6131 *
7b78a14a 6132 * Description of Strict_Ansi_Only fix
06bbab1b 6133 */
7b78a14a
BK
6134tSCC zStrict_Ansi_OnlyName[] =
6135 "strict_ansi_only";
3be1fb72 6136
06bbab1b
BK
6137/*
6138 * File name selection pattern
6139 */
7b78a14a 6140#define zStrict_Ansi_OnlyList (char*)NULL
06bbab1b
BK
6141/*
6142 * Machine/OS name selection pattern
6143 */
7b78a14a 6144#define apzStrict_Ansi_OnlyMachs (const char**)NULL
d7eb5a45
ZW
6145
6146/*
7b78a14a 6147 * content selection pattern - do fix if pattern found
d7eb5a45 6148 */
7b78a14a 6149tSCC zStrict_Ansi_OnlySelect0[] =
b5639a49 6150 "^([ \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 6151
7b78a14a
BK
6152/*
6153 * perform the C function call test
6154 */
6155tSCC zStrict_Ansi_OnlyFTst0[] = "stdc_0_in_system_headers";
6156
6157#define STRICT_ANSI_ONLY_TEST_CT 2
6158static tTestDesc aStrict_Ansi_OnlyTests[] = {
6159 { TT_FUNCTION, zStrict_Ansi_OnlyFTst0, 0 /* unused */ },
6160 { TT_EGREP, zStrict_Ansi_OnlySelect0, (regex_t*)NULL }, };
06bbab1b
BK
6161
6162/*
7b78a14a 6163 * Fix Command Arguments for Strict_Ansi_Only
06bbab1b 6164 */
7b78a14a
BK
6165static const char* apzStrict_Ansi_OnlyPatch[] = {
6166 "format",
b5639a49 6167 "%1 defined(__STRICT_ANSI__)",
06bbab1b
BK
6168 (char*)NULL };
6169
79589c4d
BK
6170/* * * * * * * * * * * * * * * * * * * * * * * * * *
6171 *
6172 * Description of Struct_File fix
6173 */
79589c4d
BK
6174tSCC zStruct_FileName[] =
6175 "struct_file";
6176
6177/*
6178 * File name selection pattern
6179 */
6180tSCC zStruct_FileList[] =
401be4b6 6181 "rpc/xdr.h\0";
79589c4d
BK
6182/*
6183 * Machine/OS name selection pattern
6184 */
6185#define apzStruct_FileMachs (const char**)NULL
6186
6187/*
6188 * content selection pattern - do fix if pattern found
6189 */
6190tSCC zStruct_FileSelect0[] =
6191 "^.*xdrstdio_create.*struct __file_s";
6192
6193#define STRUCT_FILE_TEST_CT 1
3af556f7 6194static tTestDesc aStruct_FileTests[] = {
79589c4d
BK
6195 { TT_EGREP, zStruct_FileSelect0, (regex_t*)NULL }, };
6196
6197/*
6198 * Fix Command Arguments for Struct_File
6199 */
3af556f7 6200static const char* apzStruct_FilePatch[] = {
79589c4d
BK
6201 "format",
6202 "struct __file_s;\n\
6203%0",
6204 (char*)NULL };
6205
6206/* * * * * * * * * * * * * * * * * * * * * * * * * *
6207 *
6208 * Description of Struct_Sockaddr fix
6209 */
79589c4d
BK
6210tSCC zStruct_SockaddrName[] =
6211 "struct_sockaddr";
6212
6213/*
6214 * File name selection pattern
6215 */
6216tSCC zStruct_SockaddrList[] =
401be4b6 6217 "rpc/auth.h\0";
79589c4d
BK
6218/*
6219 * Machine/OS name selection pattern
6220 */
6221#define apzStruct_SockaddrMachs (const char**)NULL
6222
6223/*
6224 * content selection pattern - do fix if pattern found
6225 */
6226tSCC zStruct_SockaddrSelect0[] =
3b57c563 6227 "^.*authdes_create.*struct sockaddr[^_]";
79589c4d
BK
6228
6229/*
6230 * content bypass pattern - skip fix if pattern found
6231 */
6232tSCC zStruct_SockaddrBypass0[] =
6233 "<sys/socket.h>";
3b57c563
NN
6234tSCC zStruct_SockaddrBypass1[] =
6235 "struct sockaddr;\n";
79589c4d 6236
3b57c563 6237#define STRUCT_SOCKADDR_TEST_CT 3
3af556f7 6238static tTestDesc aStruct_SockaddrTests[] = {
79589c4d 6239 { TT_NEGREP, zStruct_SockaddrBypass0, (regex_t*)NULL },
3b57c563 6240 { TT_NEGREP, zStruct_SockaddrBypass1, (regex_t*)NULL },
79589c4d
BK
6241 { TT_EGREP, zStruct_SockaddrSelect0, (regex_t*)NULL }, };
6242
6243/*
6244 * Fix Command Arguments for Struct_Sockaddr
6245 */
3af556f7 6246static const char* apzStruct_SockaddrPatch[] = {
79589c4d
BK
6247 "format",
6248 "struct sockaddr;\n\
6249%0",
6250 (char*)NULL };
6251
4c188026
BK
6252/* * * * * * * * * * * * * * * * * * * * * * * * * *
6253 *
6254 * Description of Sun_Auth_Proto fix
6255 */
4c188026
BK
6256tSCC zSun_Auth_ProtoName[] =
6257 "sun_auth_proto";
6258
6259/*
6260 * File name selection pattern
6261 */
6262tSCC zSun_Auth_ProtoList[] =
401be4b6 6263 "rpc/auth.h\0rpc/clnt.h\0rpc/svc.h\0rpc/xdr.h\0";
4c188026
BK
6264/*
6265 * Machine/OS name selection pattern
6266 */
6267#define apzSun_Auth_ProtoMachs (const char**)NULL
6268
6269/*
6270 * content selection pattern - do fix if pattern found
6271 */
6272tSCC zSun_Auth_ProtoSelect0[] =
6273 "\\(\\*[a-z][a-z_]*\\)\\(\\)";
6274
793387fa
JM
6275/*
6276 * content bypass pattern - skip fix if pattern found
6277 */
6278tSCC zSun_Auth_ProtoBypass0[] =
6279 "__cplusplus";
6280
6281#define SUN_AUTH_PROTO_TEST_CT 2
3af556f7 6282static tTestDesc aSun_Auth_ProtoTests[] = {
793387fa 6283 { TT_NEGREP, zSun_Auth_ProtoBypass0, (regex_t*)NULL },
4c188026
BK
6284 { TT_EGREP, zSun_Auth_ProtoSelect0, (regex_t*)NULL }, };
6285
6286/*
6287 * Fix Command Arguments for Sun_Auth_Proto
6288 */
3af556f7 6289static const char* apzSun_Auth_ProtoPatch[] = {
cb8d5168
BK
6290 "format",
6291 "#ifdef __cplusplus\n\
6292%1(...);%2\n\
6293#else\n\
6294%1();%2\n\
6295#endif",
6296 "(.*\\(\\*[a-z][a-z_]*\\))\\(\\);(.*)",
4c188026
BK
6297 (char*)NULL };
6298
06bbab1b
BK
6299/* * * * * * * * * * * * * * * * * * * * * * * * * *
6300 *
5abc1f74 6301 * Description of Sun_Bogus_Ifdef fix
06bbab1b
BK
6302 */
6303tSCC zSun_Bogus_IfdefName[] =
3be1fb72
ZW
6304 "sun_bogus_ifdef";
6305
06bbab1b
BK
6306/*
6307 * File name selection pattern
6308 */
6309tSCC zSun_Bogus_IfdefList[] =
401be4b6 6310 "hsfs/hsfs_spec.h\0hsfs/iso_spec.h\0";
06bbab1b
BK
6311/*
6312 * Machine/OS name selection pattern
6313 */
6314#define apzSun_Bogus_IfdefMachs (const char**)NULL
6315
6316/*
be02fa1a 6317 * content selection pattern - do fix if pattern found
06bbab1b
BK
6318 */
6319tSCC zSun_Bogus_IfdefSelect0[] =
cb8d5168 6320 "#ifdef(.*\\|\\|.*)";
06bbab1b
BK
6321
6322#define SUN_BOGUS_IFDEF_TEST_CT 1
3af556f7 6323static tTestDesc aSun_Bogus_IfdefTests[] = {
5abc1f74 6324 { TT_EGREP, zSun_Bogus_IfdefSelect0, (regex_t*)NULL }, };
06bbab1b
BK
6325
6326/*
6327 * Fix Command Arguments for Sun_Bogus_Ifdef
6328 */
3af556f7 6329static const char* apzSun_Bogus_IfdefPatch[] = {
cb8d5168
BK
6330 "format",
6331 "#if%1",
06bbab1b
BK
6332 (char*)NULL };
6333
6334/* * * * * * * * * * * * * * * * * * * * * * * * * *
6335 *
5abc1f74 6336 * Description of Sun_Catmacro fix
06bbab1b
BK
6337 */
6338tSCC zSun_CatmacroName[] =
3be1fb72
ZW
6339 "sun_catmacro";
6340
06bbab1b
BK
6341/*
6342 * File name selection pattern
6343 */
6344tSCC zSun_CatmacroList[] =
401be4b6 6345 "pixrect/memvar.h\0";
06bbab1b
BK
6346/*
6347 * Machine/OS name selection pattern
6348 */
6349#define apzSun_CatmacroMachs (const char**)NULL
6350
6351/*
be02fa1a 6352 * content selection pattern - do fix if pattern found
06bbab1b
BK
6353 */
6354tSCC zSun_CatmacroSelect0[] =
cb8d5168 6355 "^#define[ \t]+CAT\\(a,b\\).*";
06bbab1b
BK
6356
6357#define SUN_CATMACRO_TEST_CT 1
3af556f7 6358static tTestDesc aSun_CatmacroTests[] = {
5abc1f74 6359 { TT_EGREP, zSun_CatmacroSelect0, (regex_t*)NULL }, };
06bbab1b
BK
6360
6361/*
6362 * Fix Command Arguments for Sun_Catmacro
6363 */
3af556f7 6364static const char* apzSun_CatmacroPatch[] = {
cb8d5168
BK
6365 "format",
6366 "#ifdef __STDC__\n\
6367# define CAT(a,b) a##b\n\
6368#else\n\
6369%0\n\
6370#endif",
06bbab1b
BK
6371 (char*)NULL };
6372
6373/* * * * * * * * * * * * * * * * * * * * * * * * * *
6374 *
5abc1f74 6375 * Description of Sun_Malloc fix
06bbab1b
BK
6376 */
6377tSCC zSun_MallocName[] =
3be1fb72
ZW
6378 "sun_malloc";
6379
06bbab1b
BK
6380/*
6381 * File name selection pattern
6382 */
6383tSCC zSun_MallocList[] =
401be4b6 6384 "malloc.h\0";
06bbab1b
BK
6385/*
6386 * Machine/OS name selection pattern
6387 */
6388#define apzSun_MallocMachs (const char**)NULL
793387fa
JM
6389
6390/*
6391 * content bypass pattern - skip fix if pattern found
6392 */
6393tSCC zSun_MallocBypass0[] =
6394 "_CLASSIC_ANSI_TYPES";
6395
6396#define SUN_MALLOC_TEST_CT 1
6397static tTestDesc aSun_MallocTests[] = {
6398 { TT_NEGREP, zSun_MallocBypass0, (regex_t*)NULL }, };
06bbab1b
BK
6399
6400/*
6401 * Fix Command Arguments for Sun_Malloc
6402 */
6aa1f8c1 6403static const char* apzSun_MallocPatch[] = { sed_cmd_z,
be02fa1a
BK
6404 "-e", "s/typedef[ \t]char \\*\tmalloc_t/typedef void \\*\tmalloc_t/g",
6405 "-e", "s/int[ \t][ \t]*free/void\tfree/g",
6406 "-e", "s/char\\([ \t]*\\*[ \t]*malloc\\)/void\\1/g",
6407 "-e", "s/char\\([ \t]*\\*[ \t]*realloc\\)/void\\1/g",
93a718f6 6408 "-e", "s/char\\([ \t]*\\*[ \t]*calloc\\)/void\\1/g",
06bbab1b
BK
6409 (char*)NULL };
6410
06bbab1b
BK
6411/* * * * * * * * * * * * * * * * * * * * * * * * * *
6412 *
5abc1f74 6413 * Description of Sun_Rusers_Semi fix
06bbab1b
BK
6414 */
6415tSCC zSun_Rusers_SemiName[] =
3be1fb72
ZW
6416 "sun_rusers_semi";
6417
06bbab1b
BK
6418/*
6419 * File name selection pattern
6420 */
6421tSCC zSun_Rusers_SemiList[] =
401be4b6 6422 "rpcsvc/rusers.h\0";
06bbab1b
BK
6423/*
6424 * Machine/OS name selection pattern
6425 */
6426#define apzSun_Rusers_SemiMachs (const char**)NULL
6427
6428/*
be02fa1a 6429 * content selection pattern - do fix if pattern found
06bbab1b
BK
6430 */
6431tSCC zSun_Rusers_SemiSelect0[] =
6432 "_cnt$";
6433
6434#define SUN_RUSERS_SEMI_TEST_CT 1
3af556f7 6435static tTestDesc aSun_Rusers_SemiTests[] = {
5abc1f74 6436 { TT_EGREP, zSun_Rusers_SemiSelect0, (regex_t*)NULL }, };
06bbab1b
BK
6437
6438/*
6439 * Fix Command Arguments for Sun_Rusers_Semi
6440 */
6aa1f8c1 6441static const char* apzSun_Rusers_SemiPatch[] = { sed_cmd_z,
be02fa1a 6442 "-e", "/^struct/,/^};/s/_cnt$/_cnt;/",
06bbab1b
BK
6443 (char*)NULL };
6444
6445/* * * * * * * * * * * * * * * * * * * * * * * * * *
6446 *
5abc1f74 6447 * Description of Sun_Signal fix
06bbab1b
BK
6448 */
6449tSCC zSun_SignalName[] =
3be1fb72
ZW
6450 "sun_signal";
6451
06bbab1b
BK
6452/*
6453 * File name selection pattern
6454 */
6455tSCC zSun_SignalList[] =
401be4b6 6456 "sys/signal.h\0signal.h\0";
06bbab1b
BK
6457/*
6458 * Machine/OS name selection pattern
6459 */
6460#define apzSun_SignalMachs (const char**)NULL
6461
6462/*
be02fa1a 6463 * content selection pattern - do fix if pattern found
06bbab1b
BK
6464 */
6465tSCC zSun_SignalSelect0[] =
cb8d5168 6466 "^void\t\\(\\*signal\\(\\)\\)\\(\\);.*";
06bbab1b
BK
6467
6468#define SUN_SIGNAL_TEST_CT 1
3af556f7 6469static tTestDesc aSun_SignalTests[] = {
5abc1f74 6470 { TT_EGREP, zSun_SignalSelect0, (regex_t*)NULL }, };
06bbab1b
BK
6471
6472/*
6473 * Fix Command Arguments for Sun_Signal
6474 */
3af556f7 6475static const char* apzSun_SignalPatch[] = {
cb8d5168
BK
6476 "format",
6477 "#ifdef __cplusplus\n\
6478void\t(*signal(...))(...);\n\
6479#else\n\
6480%0\n\
6481#endif",
06bbab1b
BK
6482 (char*)NULL };
6483
06bbab1b
BK
6484/* * * * * * * * * * * * * * * * * * * * * * * * * *
6485 *
5abc1f74 6486 * Description of Sunos_Strlen fix
06bbab1b
BK
6487 */
6488tSCC zSunos_StrlenName[] =
3be1fb72
ZW
6489 "sunos_strlen";
6490
06bbab1b
BK
6491/*
6492 * File name selection pattern
6493 */
6494tSCC zSunos_StrlenList[] =
401be4b6 6495 "strings.h\0";
06bbab1b
BK
6496/*
6497 * Machine/OS name selection pattern
6498 */
6499#define apzSunos_StrlenMachs (const char**)NULL
d7eb5a45
ZW
6500
6501/*
6502 * content selection pattern - do fix if pattern found
6503 */
6504tSCC zSunos_StrlenSelect0[] =
cb8d5168 6505 "int[ \t]*strlen\\(\\);(.*)";
d7eb5a45
ZW
6506
6507#define SUNOS_STRLEN_TEST_CT 1
3af556f7 6508static tTestDesc aSunos_StrlenTests[] = {
d7eb5a45 6509 { TT_EGREP, zSunos_StrlenSelect0, (regex_t*)NULL }, };
06bbab1b
BK
6510
6511/*
6512 * Fix Command Arguments for Sunos_Strlen
6513 */
3af556f7 6514static const char* apzSunos_StrlenPatch[] = {
cb8d5168
BK
6515 "format",
6516 "__SIZE_TYPE__ strlen();%1",
6517 (char*)NULL };
6518
de0656cf
KJ
6519/* * * * * * * * * * * * * * * * * * * * * * * * * *
6520 *
6521 * Description of Svr4_Disable_Opt fix
6522 */
6523tSCC zSvr4_Disable_OptName[] =
6524 "svr4_disable_opt";
6525
6526/*
6527 * File name selection pattern
6528 */
6529tSCC zSvr4_Disable_OptList[] =
401be4b6 6530 "string.h\0";
de0656cf
KJ
6531/*
6532 * Machine/OS name selection pattern
6533 */
6534#define apzSvr4_Disable_OptMachs (const char**)NULL
6535
6536/*
6537 * content selection pattern - do fix if pattern found
6538 */
6539tSCC zSvr4_Disable_OptSelect0[] =
6540 "#define.*__std_hdr_";
6541
6542#define SVR4_DISABLE_OPT_TEST_CT 1
6543static tTestDesc aSvr4_Disable_OptTests[] = {
6544 { TT_EGREP, zSvr4_Disable_OptSelect0, (regex_t*)NULL }, };
6545
6546/*
6547 * Fix Command Arguments for Svr4_Disable_Opt
6548 */
6aa1f8c1 6549static const char* apzSvr4_Disable_OptPatch[] = { sed_cmd_z,
de0656cf
KJ
6550 "-e", "/#define.*__std_hdr_/d",
6551 (char*)NULL };
6552
4c188026
BK
6553/* * * * * * * * * * * * * * * * * * * * * * * * * *
6554 *
6555 * Description of Svr4_Getcwd fix
6556 */
4c188026
BK
6557tSCC zSvr4_GetcwdName[] =
6558 "svr4_getcwd";
6559
6560/*
6561 * File name selection pattern
6562 */
6563tSCC zSvr4_GetcwdList[] =
401be4b6 6564 "stdlib.h\0unistd.h\0prototypes.h\0";
4c188026
BK
6565/*
6566 * Machine/OS name selection pattern
6567 */
6568#define apzSvr4_GetcwdMachs (const char**)NULL
6569
6570/*
6571 * content selection pattern - do fix if pattern found
6572 */
6573tSCC zSvr4_GetcwdSelect0[] =
6574 "getcwd\\(char \\*, int\\)";
6575
6576#define SVR4_GETCWD_TEST_CT 1
3af556f7 6577static tTestDesc aSvr4_GetcwdTests[] = {
4c188026
BK
6578 { TT_EGREP, zSvr4_GetcwdSelect0, (regex_t*)NULL }, };
6579
6580/*
6581 * Fix Command Arguments for Svr4_Getcwd
6582 */
3af556f7 6583static const char* apzSvr4_GetcwdPatch[] = {
cb8d5168
BK
6584 "format",
6585 "getcwd(char *, size_t)",
4c188026
BK
6586 (char*)NULL };
6587
6588/* * * * * * * * * * * * * * * * * * * * * * * * * *
6589 *
6590 * Description of Svr4_Profil fix
6591 */
4c188026
BK
6592tSCC zSvr4_ProfilName[] =
6593 "svr4_profil";
6594
6595/*
6596 * File name selection pattern
6597 */
cd985f66
JM
6598tSCC zSvr4_ProfilList[] =
6599 "stdlib.h\0unistd.h\0";
165bfb59
BK
6600/*
6601 * Machine/OS name selection pattern
6602 */
cd985f66 6603#define apzSvr4_ProfilMachs (const char**)NULL
165bfb59
BK
6604
6605/*
6606 * content selection pattern - do fix if pattern found
6607 */
cd985f66
JM
6608tSCC zSvr4_ProfilSelect0[] =
6609 "profil\\(unsigned short \\*, unsigned int, unsigned int, unsigned int\\)";
6610
6611/*
6612 * content bypass pattern - skip fix if pattern found
6613 */
6614tSCC zSvr4_ProfilBypass0[] =
6615 "Silicon Graphics";
165bfb59 6616
cd985f66
JM
6617#define SVR4_PROFIL_TEST_CT 2
6618static tTestDesc aSvr4_ProfilTests[] = {
6619 { TT_NEGREP, zSvr4_ProfilBypass0, (regex_t*)NULL },
6620 { TT_EGREP, zSvr4_ProfilSelect0, (regex_t*)NULL }, };
165bfb59
BK
6621
6622/*
cd985f66 6623 * Fix Command Arguments for Svr4_Profil
165bfb59 6624 */
cd985f66
JM
6625static const char* apzSvr4_ProfilPatch[] = {
6626 "format",
6627 "profil(unsigned short *, size_t, int, unsigned int)",
165bfb59
BK
6628 (char*)NULL };
6629
6630/* * * * * * * * * * * * * * * * * * * * * * * * * *
6631 *
cd985f66 6632 * Description of Svr4_Sighandler_Type fix
165bfb59 6633 */
cd985f66
JM
6634tSCC zSvr4_Sighandler_TypeName[] =
6635 "svr4_sighandler_type";
165bfb59
BK
6636
6637/*
6638 * File name selection pattern
6639 */
cd985f66
JM
6640tSCC zSvr4_Sighandler_TypeList[] =
6641 "sys/signal.h\0";
165bfb59
BK
6642/*
6643 * Machine/OS name selection pattern
6644 */
cd985f66 6645#define apzSvr4_Sighandler_TypeMachs (const char**)NULL
165bfb59
BK
6646
6647/*
6648 * content selection pattern - do fix if pattern found
6649 */
cd985f66
JM
6650tSCC zSvr4_Sighandler_TypeSelect0[] =
6651 "void *\\(\\*\\)\\(\\)";
165bfb59 6652
cd985f66
JM
6653#define SVR4_SIGHANDLER_TYPE_TEST_CT 1
6654static tTestDesc aSvr4_Sighandler_TypeTests[] = {
6655 { TT_EGREP, zSvr4_Sighandler_TypeSelect0, (regex_t*)NULL }, };
165bfb59
BK
6656
6657/*
cd985f66 6658 * Fix Command Arguments for Svr4_Sighandler_Type
165bfb59 6659 */
cd985f66
JM
6660static const char* apzSvr4_Sighandler_TypePatch[] = {
6661 "format",
6662 "void (*)(int)",
165bfb59
BK
6663 (char*)NULL };
6664
4b60eb3b
JDA
6665/* * * * * * * * * * * * * * * * * * * * * * * * * *
6666 *
cd985f66 6667 * Description of Svr4_Undeclared_Getrnge fix
4b60eb3b 6668 */
cd985f66
JM
6669tSCC zSvr4_Undeclared_GetrngeName[] =
6670 "svr4_undeclared_getrnge";
4b60eb3b
JDA
6671
6672/*
6673 * File name selection pattern
6674 */
cd985f66
JM
6675tSCC zSvr4_Undeclared_GetrngeList[] =
6676 "regexp.h\0";
4b60eb3b
JDA
6677/*
6678 * Machine/OS name selection pattern
6679 */
cd985f66 6680#define apzSvr4_Undeclared_GetrngeMachs (const char**)NULL
4b60eb3b
JDA
6681
6682/*
6683 * content selection pattern - do fix if pattern found
6684 */
cd985f66
JM
6685tSCC zSvr4_Undeclared_GetrngeSelect0[] =
6686 "getrnge";
6687
6688/*
6689 * content bypass pattern - skip fix if pattern found
6690 */
6691tSCC zSvr4_Undeclared_GetrngeBypass0[] =
6692 "static void getrnge";
4b60eb3b 6693
cd985f66
JM
6694#define SVR4_UNDECLARED_GETRNGE_TEST_CT 2
6695static tTestDesc aSvr4_Undeclared_GetrngeTests[] = {
6696 { TT_NEGREP, zSvr4_Undeclared_GetrngeBypass0, (regex_t*)NULL },
6697 { TT_EGREP, zSvr4_Undeclared_GetrngeSelect0, (regex_t*)NULL }, };
4b60eb3b
JDA
6698
6699/*
cd985f66 6700 * Fix Command Arguments for Svr4_Undeclared_Getrnge
4b60eb3b 6701 */
cd985f66
JM
6702static const char* apzSvr4_Undeclared_GetrngePatch[] = {
6703 "format",
6704 "%0\n\
6705static int getrnge ();",
6706 "^static int[ \t]+size;",
4b60eb3b
JDA
6707 (char*)NULL };
6708
165bfb59
BK
6709/* * * * * * * * * * * * * * * * * * * * * * * * * *
6710 *
cd985f66 6711 * Description of Sysv68_String fix
165bfb59 6712 */
cd985f66
JM
6713tSCC zSysv68_StringName[] =
6714 "sysv68_string";
165bfb59
BK
6715
6716/*
6717 * File name selection pattern
6718 */
cd985f66
JM
6719tSCC zSysv68_StringList[] =
6720 "testing.h\0string.h\0";
165bfb59
BK
6721/*
6722 * Machine/OS name selection pattern
6723 */
cd985f66 6724#define apzSysv68_StringMachs (const char**)NULL
165bfb59
BK
6725
6726/*
cd985f66 6727 * content bypass pattern - skip fix if pattern found
165bfb59 6728 */
cd985f66
JM
6729tSCC zSysv68_StringBypass0[] =
6730 "_CLASSIC_ANSI_TYPES";
165bfb59 6731
cd985f66
JM
6732#define SYSV68_STRING_TEST_CT 1
6733static tTestDesc aSysv68_StringTests[] = {
6734 { TT_NEGREP, zSysv68_StringBypass0, (regex_t*)NULL }, };
165bfb59
BK
6735
6736/*
cd985f66 6737 * Fix Command Arguments for Sysv68_String
165bfb59 6738 */
6aa1f8c1 6739static const char* apzSysv68_StringPatch[] = { sed_cmd_z,
cd985f66
JM
6740 "-e", "s/extern[ \t]*int[ \t]*strlen();/extern unsigned int strlen();/",
6741 "-e", "s/extern[ \t]*int[ \t]*ffs[ \t]*(long);/extern int ffs(int);/",
6742 "-e", "s/strdup(char \\*s1);/strdup(const char *s1);/",
6743 "-e", "/^extern char$/N",
6744 "-e", "s/^extern char\\(\\n\t\\*memccpy(),\\)$/extern void\\1/",
6745 "-e", "/^extern int$/N",
6746 "-e", "s/^extern int\\(\\n\tstrlen(),\\)/extern size_t\\1/",
6747 "-e", "/^\tstrncmp(),$/N",
6748 "-e", "s/^\\(\tstrncmp()\\),\\n\\(\tstrlen(),\\)$/\\1;\\\n\
6749extern unsigned int\\\n\
6750\\2/",
165bfb59
BK
6751 (char*)NULL };
6752
4b60eb3b
JDA
6753/* * * * * * * * * * * * * * * * * * * * * * * * * *
6754 *
cd985f66 6755 * Description of Sysz_Stdlib_For_Sun fix
4b60eb3b 6756 */
cd985f66
JM
6757tSCC zSysz_Stdlib_For_SunName[] =
6758 "sysz_stdlib_for_sun";
4b60eb3b
JDA
6759
6760/*
6761 * File name selection pattern
6762 */
cd985f66
JM
6763tSCC zSysz_Stdlib_For_SunList[] =
6764 "stdlib.h\0";
4b60eb3b
JDA
6765/*
6766 * Machine/OS name selection pattern
6767 */
cd985f66 6768#define apzSysz_Stdlib_For_SunMachs (const char**)NULL
4b60eb3b
JDA
6769
6770/*
6771 * content selection pattern - do fix if pattern found
6772 */
cd985f66
JM
6773tSCC zSysz_Stdlib_For_SunSelect0[] =
6774 "char[ \t]*\\*[ \t]*(calloc|malloc|realloc|bsearch)[ \t]*\\(";
6775
6776/*
6777 * content bypass pattern - skip fix if pattern found
6778 */
6779tSCC zSysz_Stdlib_For_SunBypass0[] =
6780 "_CLASSIC_ANSI_TYPES";
4b60eb3b 6781
cd985f66
JM
6782#define SYSZ_STDLIB_FOR_SUN_TEST_CT 2
6783static tTestDesc aSysz_Stdlib_For_SunTests[] = {
6784 { TT_NEGREP, zSysz_Stdlib_For_SunBypass0, (regex_t*)NULL },
6785 { TT_EGREP, zSysz_Stdlib_For_SunSelect0, (regex_t*)NULL }, };
4b60eb3b
JDA
6786
6787/*
cd985f66 6788 * Fix Command Arguments for Sysz_Stdlib_For_Sun
4b60eb3b 6789 */
cd985f66
JM
6790static const char* apzSysz_Stdlib_For_SunPatch[] = {
6791 "format",
6792 "void *\t%1(",
4b60eb3b
JDA
6793 (char*)NULL };
6794
6795/* * * * * * * * * * * * * * * * * * * * * * * * * *
6796 *
cd985f66 6797 * Description of Thread_Keyword fix
4b60eb3b 6798 */
cd985f66
JM
6799tSCC zThread_KeywordName[] =
6800 "thread_keyword";
4b60eb3b
JDA
6801
6802/*
6803 * File name selection pattern
6804 */
cd985f66
JM
6805tSCC zThread_KeywordList[] =
6806 "pthread.h\0bits/sigthread.h\0";
4b60eb3b
JDA
6807/*
6808 * Machine/OS name selection pattern
6809 */
cd985f66 6810#define apzThread_KeywordMachs (const char**)NULL
4b60eb3b
JDA
6811
6812/*
6813 * content selection pattern - do fix if pattern found
6814 */
cd985f66
JM
6815tSCC zThread_KeywordSelect0[] =
6816 "([* ])__thread([,)])";
4b60eb3b 6817
cd985f66
JM
6818#define THREAD_KEYWORD_TEST_CT 1
6819static tTestDesc aThread_KeywordTests[] = {
6820 { TT_EGREP, zThread_KeywordSelect0, (regex_t*)NULL }, };
4b60eb3b
JDA
6821
6822/*
cd985f66 6823 * Fix Command Arguments for Thread_Keyword
4b60eb3b 6824 */
cd985f66
JM
6825static const char* apzThread_KeywordPatch[] = {
6826 "format",
6827 "%1__thr%2",
4b60eb3b
JDA
6828 (char*)NULL };
6829
6830/* * * * * * * * * * * * * * * * * * * * * * * * * *
6831 *
cd985f66 6832 * Description of Tinfo_Cplusplus fix
4b60eb3b 6833 */
cd985f66
JM
6834tSCC zTinfo_CplusplusName[] =
6835 "tinfo_cplusplus";
4b60eb3b
JDA
6836
6837/*
6838 * File name selection pattern
6839 */
cd985f66
JM
6840tSCC zTinfo_CplusplusList[] =
6841 "tinfo.h\0";
4b60eb3b
JDA
6842/*
6843 * Machine/OS name selection pattern
6844 */
cd985f66 6845#define apzTinfo_CplusplusMachs (const char**)NULL
4b60eb3b
JDA
6846
6847/*
6848 * content selection pattern - do fix if pattern found
6849 */
cd985f66
JM
6850tSCC zTinfo_CplusplusSelect0[] =
6851 "[ \t]_cplusplus";
4b60eb3b 6852
cd985f66
JM
6853#define TINFO_CPLUSPLUS_TEST_CT 1
6854static tTestDesc aTinfo_CplusplusTests[] = {
6855 { TT_EGREP, zTinfo_CplusplusSelect0, (regex_t*)NULL }, };
4b60eb3b
JDA
6856
6857/*
cd985f66 6858 * Fix Command Arguments for Tinfo_Cplusplus
4b60eb3b 6859 */
cd985f66
JM
6860static const char* apzTinfo_CplusplusPatch[] = {
6861 "format",
6862 " __cplusplus",
4b60eb3b
JDA
6863 (char*)NULL };
6864
30102605
RH
6865/* * * * * * * * * * * * * * * * * * * * * * * * * *
6866 *
cd985f66 6867 * Description of Ultrix_Const fix
30102605 6868 */
cd985f66
JM
6869tSCC zUltrix_ConstName[] =
6870 "ultrix_const";
30102605
RH
6871
6872/*
6873 * File name selection pattern
6874 */
cd985f66
JM
6875tSCC zUltrix_ConstList[] =
6876 "stdio.h\0";
30102605
RH
6877/*
6878 * Machine/OS name selection pattern
6879 */
cd985f66 6880#define apzUltrix_ConstMachs (const char**)NULL
30102605
RH
6881
6882/*
6883 * content selection pattern - do fix if pattern found
6884 */
cd985f66
JM
6885tSCC zUltrix_ConstSelect0[] =
6886 "perror\\( char \\*";
30102605 6887
cd985f66
JM
6888#define ULTRIX_CONST_TEST_CT 1
6889static tTestDesc aUltrix_ConstTests[] = {
6890 { TT_EGREP, zUltrix_ConstSelect0, (regex_t*)NULL }, };
30102605
RH
6891
6892/*
cd985f66 6893 * Fix Command Arguments for Ultrix_Const
30102605 6894 */
cd985f66 6895static const char* apzUltrix_ConstPatch[] = {
30102605 6896 "format",
cd985f66
JM
6897 "%1 const %3 *__",
6898 "([ \t*](perror|fputs|fwrite|scanf|fscanf)\\(.*)[ \t]+(char|void) \\*__",
30102605
RH
6899 (char*)NULL };
6900
86765ca0
RL
6901/* * * * * * * * * * * * * * * * * * * * * * * * * *
6902 *
cd985f66 6903 * Description of Ultrix_Const2 fix
86765ca0 6904 */
cd985f66
JM
6905tSCC zUltrix_Const2Name[] =
6906 "ultrix_const2";
3be1fb72 6907
86765ca0
RL
6908/*
6909 * File name selection pattern
6910 */
cd985f66
JM
6911tSCC zUltrix_Const2List[] =
6912 "stdio.h\0";
86765ca0
RL
6913/*
6914 * Machine/OS name selection pattern
6915 */
cd985f66 6916#define apzUltrix_Const2Machs (const char**)NULL
86765ca0
RL
6917
6918/*
6919 * content selection pattern - do fix if pattern found
6920 */
cd985f66
JM
6921tSCC zUltrix_Const2Select0[] =
6922 "\\*fopen\\( char \\*";
b5e20633 6923
cd985f66
JM
6924#define ULTRIX_CONST2_TEST_CT 1
6925static tTestDesc aUltrix_Const2Tests[] = {
6926 { TT_EGREP, zUltrix_Const2Select0, (regex_t*)NULL }, };
86765ca0
RL
6927
6928/*
cd985f66 6929 * Fix Command Arguments for Ultrix_Const2
86765ca0 6930 */
cd985f66 6931static const char* apzUltrix_Const2Patch[] = {
b5e20633 6932 "format",
cd985f66
JM
6933 "%1( const char *%3, const char *",
6934 "([ \t*](fopen|sscanf|popen|tempnam))\\([ \t]*char[ \t]*\\*([^,]*),[ \t]*char[ \t]*\\*[ \t]*",
86765ca0
RL
6935 (char*)NULL };
6936
06bbab1b
BK
6937/* * * * * * * * * * * * * * * * * * * * * * * * * *
6938 *
5abc1f74 6939 * Description of Va_I960_Macro fix
06bbab1b
BK
6940 */
6941tSCC zVa_I960_MacroName[] =
3be1fb72
ZW
6942 "va_i960_macro";
6943
06bbab1b
BK
6944/*
6945 * File name selection pattern
6946 */
6947tSCC zVa_I960_MacroList[] =
401be4b6 6948 "arch/i960/archI960.h\0";
06bbab1b
BK
6949/*
6950 * Machine/OS name selection pattern
6951 */
6952#define apzVa_I960_MacroMachs (const char**)NULL
6953
6954/*
be02fa1a 6955 * content selection pattern - do fix if pattern found
06bbab1b
BK
6956 */
6957tSCC zVa_I960_MacroSelect0[] =
6958 "__(vsiz|vali|vpad|alignof__)";
6959
6960#define VA_I960_MACRO_TEST_CT 1
3af556f7 6961static tTestDesc aVa_I960_MacroTests[] = {
5abc1f74 6962 { TT_EGREP, zVa_I960_MacroSelect0, (regex_t*)NULL }, };
06bbab1b
BK
6963
6964/*
6965 * Fix Command Arguments for Va_I960_Macro
6966 */
3af556f7 6967static const char* apzVa_I960_MacroPatch[] = {
5d7d28c2
BK
6968 "format",
6969 "__vx%1",
06bbab1b
BK
6970 (char*)NULL };
6971
6972/* * * * * * * * * * * * * * * * * * * * * * * * * *
6973 *
5abc1f74 6974 * Description of Void_Null fix
06bbab1b
BK
6975 */
6976tSCC zVoid_NullName[] =
3be1fb72
ZW
6977 "void_null";
6978
06bbab1b
BK
6979/*
6980 * File name selection pattern
6981 */
6982tSCC zVoid_NullList[] =
401be4b6 6983 "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
6984/*
6985 * Machine/OS name selection pattern
6986 */
6987#define apzVoid_NullMachs (const char**)NULL
6988
6989/*
be02fa1a 6990 * content selection pattern - do fix if pattern found
06bbab1b
BK
6991 */
6992tSCC zVoid_NullSelect0[] =
5d7d28c2 6993 "^#[ \t]*define[ \t]+NULL[ \t]+\\(\\(void[ \t]*\\*\\)0\\)";
06bbab1b 6994
31eec874
MS
6995/*
6996 * content bypass pattern - skip fix if pattern found
6997 */
6998tSCC zVoid_NullBypass0[] =
6999 "__cplusplus";
7000
7001#define VOID_NULL_TEST_CT 2
3af556f7 7002static tTestDesc aVoid_NullTests[] = {
31eec874 7003 { TT_NEGREP, zVoid_NullBypass0, (regex_t*)NULL },
5abc1f74 7004 { TT_EGREP, zVoid_NullSelect0, (regex_t*)NULL }, };
06bbab1b
BK
7005
7006/*
7007 * Fix Command Arguments for Void_Null
7008 */
3af556f7 7009static const char* apzVoid_NullPatch[] = {
5d7d28c2
BK
7010 "format",
7011 "#define NULL 0",
06bbab1b
BK
7012 (char*)NULL };
7013
7014/* * * * * * * * * * * * * * * * * * * * * * * * * *
7015 *
5abc1f74 7016 * Description of Vxworks_Gcc_Problem fix
06bbab1b
BK
7017 */
7018tSCC zVxworks_Gcc_ProblemName[] =
3be1fb72
ZW
7019 "vxworks_gcc_problem";
7020
06bbab1b
BK
7021/*
7022 * File name selection pattern
7023 */
7024tSCC zVxworks_Gcc_ProblemList[] =
401be4b6 7025 "types/vxTypesBase.h\0";
06bbab1b
BK
7026/*
7027 * Machine/OS name selection pattern
7028 */
7029#define apzVxworks_Gcc_ProblemMachs (const char**)NULL
7030
7031/*
be02fa1a 7032 * content selection pattern - do fix if pattern found
06bbab1b
BK
7033 */
7034tSCC zVxworks_Gcc_ProblemSelect0[] =
7035 "__GNUC_TYPEOF_FEATURE_BROKEN_USE_DEFAULT_UNTIL_FIXED__";
7036
7037#define VXWORKS_GCC_PROBLEM_TEST_CT 1
3af556f7 7038static tTestDesc aVxworks_Gcc_ProblemTests[] = {
5abc1f74 7039 { TT_EGREP, zVxworks_Gcc_ProblemSelect0, (regex_t*)NULL }, };
06bbab1b
BK
7040
7041/*
7042 * Fix Command Arguments for Vxworks_Gcc_Problem
7043 */
6aa1f8c1 7044static const char* apzVxworks_Gcc_ProblemPatch[] = { sed_cmd_z,
be02fa1a 7045 "-e", "s/#ifdef __GNUC_TYPEOF_FEATURE_BROKEN_USE_DEFAULT_UNTIL_FIXED__/#if 1/",
c329beb0
BK
7046 "-e", "/[ \t]size_t/i\\\n\
7047#ifndef _GCC_SIZE_T\\\n\
7048#define _GCC_SIZE_T\n",
7049 "-e", "/[ \t]size_t/a\\\n\
7050#endif\n",
7051 "-e", "/[ \t]ptrdiff_t/i\\\n\
7052#ifndef _GCC_PTRDIFF_T\\\n\
7053#define _GCC_PTRDIFF_T\n",
7054 "-e", "/[ \t]ptrdiff_t/a\\\n\
7055#endif\n",
7056 "-e", "/[ \t]wchar_t/i\\\n\
7057#ifndef _GCC_WCHAR_T\\\n\
7058#define _GCC_WCHAR_T\n",
7059 "-e", "/[ \t]wchar_t/a\\\n\
7060#endif\n",
06bbab1b
BK
7061 (char*)NULL };
7062
7063/* * * * * * * * * * * * * * * * * * * * * * * * * *
7064 *
5abc1f74 7065 * Description of Vxworks_Needs_Vxtypes fix
06bbab1b
BK
7066 */
7067tSCC zVxworks_Needs_VxtypesName[] =
3be1fb72
ZW
7068 "vxworks_needs_vxtypes";
7069
06bbab1b
BK
7070/*
7071 * File name selection pattern
7072 */
7073tSCC zVxworks_Needs_VxtypesList[] =
401be4b6 7074 "time.h\0";
06bbab1b
BK
7075/*
7076 * Machine/OS name selection pattern
7077 */
7078#define apzVxworks_Needs_VxtypesMachs (const char**)NULL
7079
7080/*
be02fa1a 7081 * content selection pattern - do fix if pattern found
06bbab1b
BK
7082 */
7083tSCC zVxworks_Needs_VxtypesSelect0[] =
5d7d28c2 7084 "uint_t([ \t]+_clocks_per_sec)";
06bbab1b
BK
7085
7086#define VXWORKS_NEEDS_VXTYPES_TEST_CT 1
3af556f7 7087static tTestDesc aVxworks_Needs_VxtypesTests[] = {
5abc1f74 7088 { TT_EGREP, zVxworks_Needs_VxtypesSelect0, (regex_t*)NULL }, };
06bbab1b
BK
7089
7090/*
7091 * Fix Command Arguments for Vxworks_Needs_Vxtypes
7092 */
3af556f7 7093static const char* apzVxworks_Needs_VxtypesPatch[] = {
5d7d28c2
BK
7094 "format",
7095 "unsigned int%1",
06bbab1b
BK
7096 (char*)NULL };
7097
7098/* * * * * * * * * * * * * * * * * * * * * * * * * *
7099 *
5abc1f74 7100 * Description of Vxworks_Needs_Vxworks fix
06bbab1b
BK
7101 */
7102tSCC zVxworks_Needs_VxworksName[] =
3be1fb72
ZW
7103 "vxworks_needs_vxworks";
7104
06bbab1b
BK
7105/*
7106 * File name selection pattern
7107 */
7108tSCC zVxworks_Needs_VxworksList[] =
401be4b6 7109 "sys/stat.h\0";
06bbab1b
BK
7110/*
7111 * Machine/OS name selection pattern
7112 */
7113#define apzVxworks_Needs_VxworksMachs (const char**)NULL
7114
7115/*
be02fa1a 7116 * content selection pattern - do fix if pattern found
06bbab1b
BK
7117 */
7118tSCC zVxworks_Needs_VxworksSelect0[] =
5d7d28c2 7119 "#[ \t]define[ \t]+__INCstath";
06bbab1b
BK
7120
7121/*
be02fa1a 7122 * perform the 'test' shell command - do fix on success
06bbab1b
BK
7123 */
7124tSCC zVxworks_Needs_VxworksTest0[] =
48bd9529 7125 " -r types/vxTypesOld.h";
06bbab1b 7126tSCC zVxworks_Needs_VxworksTest1[] =
48bd9529 7127 " -n \"`egrep '#include' $file`\"";
06bbab1b 7128tSCC zVxworks_Needs_VxworksTest2[] =
48bd9529 7129 " -n \"`egrep ULONG $file`\"";
06bbab1b
BK
7130
7131#define VXWORKS_NEEDS_VXWORKS_TEST_CT 4
3af556f7 7132static tTestDesc aVxworks_Needs_VxworksTests[] = {
5abc1f74
BK
7133 { TT_TEST, zVxworks_Needs_VxworksTest0, 0 /* unused */ },
7134 { TT_TEST, zVxworks_Needs_VxworksTest1, 0 /* unused */ },
7135 { TT_TEST, zVxworks_Needs_VxworksTest2, 0 /* unused */ },
7136 { TT_EGREP, zVxworks_Needs_VxworksSelect0, (regex_t*)NULL }, };
06bbab1b
BK
7137
7138/*
7139 * Fix Command Arguments for Vxworks_Needs_Vxworks
7140 */
6aa1f8c1 7141static const char* apzVxworks_Needs_VxworksPatch[] = { sed_cmd_z,
c329beb0
BK
7142 "-e", "/#[ \t]define[ \t][ \t]*__INCstath/a\\\n\
7143#include <types/vxTypesOld.h>\n",
06bbab1b
BK
7144 (char*)NULL };
7145
7146/* * * * * * * * * * * * * * * * * * * * * * * * * *
7147 *
5abc1f74 7148 * Description of Vxworks_Time fix
06bbab1b
BK
7149 */
7150tSCC zVxworks_TimeName[] =
3be1fb72
ZW
7151 "vxworks_time";
7152
06bbab1b
BK
7153/*
7154 * File name selection pattern
7155 */
7156tSCC zVxworks_TimeList[] =
401be4b6 7157 "time.h\0";
06bbab1b
BK
7158/*
7159 * Machine/OS name selection pattern
7160 */
7161#define apzVxworks_TimeMachs (const char**)NULL
7162
7163/*
be02fa1a 7164 * content selection pattern - do fix if pattern found
06bbab1b
BK
7165 */
7166tSCC zVxworks_TimeSelect0[] =
5d7d28c2 7167 "#[ \t]*define[ \t]+VOIDFUNCPTR[ \t].*";
06bbab1b
BK
7168
7169/*
be02fa1a 7170 * perform the 'test' shell command - do fix on success
06bbab1b
BK
7171 */
7172tSCC zVxworks_TimeTest0[] =
48bd9529 7173 " -r vxWorks.h";
06bbab1b
BK
7174
7175#define VXWORKS_TIME_TEST_CT 2
3af556f7 7176static tTestDesc aVxworks_TimeTests[] = {
5abc1f74
BK
7177 { TT_TEST, zVxworks_TimeTest0, 0 /* unused */ },
7178 { TT_EGREP, zVxworks_TimeSelect0, (regex_t*)NULL }, };
06bbab1b
BK
7179
7180/*
7181 * Fix Command Arguments for Vxworks_Time
7182 */
3af556f7 7183static const char* apzVxworks_TimePatch[] = {
5d7d28c2
BK
7184 "format",
7185 "#ifndef __gcc_VOIDFUNCPTR_defined\n\
7186#ifdef __cplusplus\n\
7187typedef void (*__gcc_VOIDFUNCPTR) (...);\n\
7188#else\n\
7189typedef void (*__gcc_VOIDFUNCPTR) ();\n\
7190#endif\n\
7191#define __gcc_VOIDFUNCPTR_defined\n\
7192#endif\n\
7193#define VOIDFUNCPTR __gcc_VOIDFUNCPTR",
06bbab1b
BK
7194 (char*)NULL };
7195
7196/* * * * * * * * * * * * * * * * * * * * * * * * * *
7197 *
5abc1f74 7198 * Description of X11_Class fix
06bbab1b
BK
7199 */
7200tSCC zX11_ClassName[] =
3be1fb72
ZW
7201 "x11_class";
7202
06bbab1b
BK
7203/*
7204 * File name selection pattern
7205 */
7206tSCC zX11_ClassList[] =
401be4b6 7207 "X11/ShellP.h\0";
06bbab1b
BK
7208/*
7209 * Machine/OS name selection pattern
7210 */
7211#define apzX11_ClassMachs (const char**)NULL
7212
c1fd153e
BK
7213/*
7214 * content selection pattern - do fix if pattern found
7215 */
7216tSCC zX11_ClassSelect0[] =
7217 "^([ \t]*char \\*)class;(.*)";
7218
06bbab1b 7219/*
be02fa1a 7220 * content bypass pattern - skip fix if pattern found
06bbab1b
BK
7221 */
7222tSCC zX11_ClassBypass0[] =
7223 "__cplusplus";
7224
c1fd153e 7225#define X11_CLASS_TEST_CT 2
3af556f7 7226static tTestDesc aX11_ClassTests[] = {
c1fd153e
BK
7227 { TT_NEGREP, zX11_ClassBypass0, (regex_t*)NULL },
7228 { TT_EGREP, zX11_ClassSelect0, (regex_t*)NULL }, };
06bbab1b
BK
7229
7230/*
7231 * Fix Command Arguments for X11_Class
7232 */
3af556f7 7233static const char* apzX11_ClassPatch[] = {
c1fd153e
BK
7234 "format",
7235 "#ifdef __cplusplus\n\
7236%1c_class;%2\n\
7237#else\n\
7238%1class;%2\n\
7239#endif",
06bbab1b
BK
7240 (char*)NULL };
7241
7242/* * * * * * * * * * * * * * * * * * * * * * * * * *
7243 *
5abc1f74 7244 * Description of X11_Class_Usage fix
06bbab1b
BK
7245 */
7246tSCC zX11_Class_UsageName[] =
3be1fb72
ZW
7247 "x11_class_usage";
7248
06bbab1b
BK
7249/*
7250 * File name selection pattern
7251 */
7252tSCC zX11_Class_UsageList[] =
401be4b6 7253 "Xm/BaseClassI.h\0";
06bbab1b
BK
7254/*
7255 * Machine/OS name selection pattern
7256 */
7257#define apzX11_Class_UsageMachs (const char**)NULL
7258
5d7d28c2
BK
7259/*
7260 * content selection pattern - do fix if pattern found
7261 */
7262tSCC zX11_Class_UsageSelect0[] =
7263 " class\\)";
7264
06bbab1b 7265/*
be02fa1a 7266 * content bypass pattern - skip fix if pattern found
06bbab1b
BK
7267 */
7268tSCC zX11_Class_UsageBypass0[] =
7269 "__cplusplus";
7270
5d7d28c2 7271#define X11_CLASS_USAGE_TEST_CT 2
3af556f7 7272static tTestDesc aX11_Class_UsageTests[] = {
5d7d28c2
BK
7273 { TT_NEGREP, zX11_Class_UsageBypass0, (regex_t*)NULL },
7274 { TT_EGREP, zX11_Class_UsageSelect0, (regex_t*)NULL }, };
06bbab1b
BK
7275
7276/*
7277 * Fix Command Arguments for X11_Class_Usage
7278 */
3af556f7 7279static const char* apzX11_Class_UsagePatch[] = {
5d7d28c2
BK
7280 "format",
7281 " c_class)",
06bbab1b
BK
7282 (char*)NULL };
7283
7284/* * * * * * * * * * * * * * * * * * * * * * * * * *
7285 *
5abc1f74 7286 * Description of X11_New fix
06bbab1b
BK
7287 */
7288tSCC zX11_NewName[] =
3be1fb72
ZW
7289 "x11_new";
7290
06bbab1b
BK
7291/*
7292 * File name selection pattern
7293 */
7294tSCC zX11_NewList[] =
401be4b6 7295 "Xm/Traversal.h\0";
06bbab1b
BK
7296/*
7297 * Machine/OS name selection pattern
7298 */
7299#define apzX11_NewMachs (const char**)NULL
7300
7301/*
be02fa1a 7302 * content bypass pattern - skip fix if pattern found
06bbab1b
BK
7303 */
7304tSCC zX11_NewBypass0[] =
7305 "__cplusplus";
7306
7307#define X11_NEW_TEST_CT 1
3af556f7 7308static tTestDesc aX11_NewTests[] = {
5abc1f74 7309 { TT_NEGREP, zX11_NewBypass0, (regex_t*)NULL }, };
06bbab1b
BK
7310
7311/*
7312 * Fix Command Arguments for X11_New
7313 */
6aa1f8c1 7314static const char* apzX11_NewPatch[] = { sed_cmd_z,
c329beb0
BK
7315 "-e", "/Widget\told, new;/i\\\n\
7316#ifdef __cplusplus\\\n\
7317\tWidget\told, c_new;\\\n\
7318#else\n",
7319 "-e", "/Widget\told, new;/a\\\n\
7320#endif\n",
be02fa1a 7321 "-e", "s/Widget new,/Widget c_new,/g",
06bbab1b
BK
7322 (char*)NULL };
7323
7324/* * * * * * * * * * * * * * * * * * * * * * * * * *
7325 *
5abc1f74 7326 * Description of X11_Sprintf fix
06bbab1b
BK
7327 */
7328tSCC zX11_SprintfName[] =
3be1fb72
ZW
7329 "x11_sprintf";
7330
06bbab1b
BK
7331/*
7332 * File name selection pattern
7333 */
7334tSCC zX11_SprintfList[] =
401be4b6 7335 "X11/Xmu.h\0X11/Xmu/Xmu.h\0";
06bbab1b
BK
7336/*
7337 * Machine/OS name selection pattern
7338 */
7339#define apzX11_SprintfMachs (const char**)NULL
b51207a4
ZW
7340
7341/*
7342 * content selection pattern - do fix if pattern found
7343 */
7344tSCC zX11_SprintfSelect0[] =
5d7d28c2 7345 "^extern char \\*\tsprintf\\(\\);$";
b51207a4
ZW
7346
7347#define X11_SPRINTF_TEST_CT 1
3af556f7 7348static tTestDesc aX11_SprintfTests[] = {
b51207a4 7349 { TT_EGREP, zX11_SprintfSelect0, (regex_t*)NULL }, };
06bbab1b
BK
7350
7351/*
7352 * Fix Command Arguments for X11_Sprintf
7353 */
3af556f7 7354static const char* apzX11_SprintfPatch[] = {
5d7d28c2
BK
7355 "format",
7356 "#ifndef __STDC__\n\
7357%0\n\
7358#endif /* !defined __STDC__ */",
06bbab1b
BK
7359 (char*)NULL };
7360
3be1fb72 7361
06bbab1b
BK
7362/* * * * * * * * * * * * * * * * * * * * * * * * * *
7363 *
7364 * List of all fixes
7365 */
e2556904 7366#define REGEX_COUNT 226
cd985f66 7367#define MACH_LIST_SIZE_LIMIT 181
e2556904 7368#define FIX_COUNT 181
5abc1f74 7369
7b78a14a
BK
7370/*
7371 * Enumerate the fixes
7372 */
7373typedef enum {
83644cd5 7374 AAB_AIX_STDIO_FIXIDX,
246e0bd8
GK
7375 AAB_DARWIN7_9_LONG_DOUBLE_FUNCS_FIXIDX,
7376 AAB_DARWIN7_9_LONG_DOUBLE_FUNCS_2_FIXIDX,
7b78a14a
BK
7377 AAB_FD_ZERO_ASM_POSIX_TYPES_H_FIXIDX,
7378 AAB_FD_ZERO_GNU_TYPES_H_FIXIDX,
7379 AAB_FD_ZERO_SELECTBITS_H_FIXIDX,
eadc0202 7380 AAB_SOLARIS_SYS_VARARGS_H_FIXIDX,
0fca111b 7381 AAB_SUN_MEMCPY_FIXIDX,
7b78a14a
BK
7382 AIX_PTHREAD_FIXIDX,
7383 AIX_SYSMACHINE_FIXIDX,
d3535e80 7384 AIX_SYSWAIT_2_FIXIDX,
7b78a14a
BK
7385 AIX_VOLATILE_FIXIDX,
7386 ALPHA___ASSERT_FIXIDX,
f8dc212b 7387 ALPHA___EXTERN_PREFIX_FIXIDX,
fb2c2608
RO
7388 ALPHA___EXTERN_PREFIX_STANDARDS_FIXIDX,
7389 ALPHA___EXTERN_PREFIX_SYS_STAT_FIXIDX,
aaa4d130 7390 ALPHA_ASSERT_FIXIDX,
f6c930a3 7391 ALPHA_BAD_LVAL_FIXIDX,
7b78a14a 7392 ALPHA_GETOPT_FIXIDX,
42ab9282 7393 ALPHA_IF_SEMICOLON_FIXIDX,
7b78a14a 7394 ALPHA_PARENS_FIXIDX,
2a4e8ebc 7395 ALPHA_PTHREAD_FIXIDX,
821281db 7396 ALPHA_PTHREAD_GCC_FIXIDX,
1fda9d7b 7397 ALPHA_PTHREAD_INIT_FIXIDX,
7b78a14a 7398 ALPHA_SBRK_FIXIDX,
f502cbff 7399 ALPHA_WCHAR_FIXIDX,
7b78a14a
BK
7400 AVOID_BOOL_DEFINE_FIXIDX,
7401 AVOID_BOOL_TYPE_FIXIDX,
7402 AVOID_WCHAR_T_TYPE_FIXIDX,
7b78a14a
BK
7403 BAD_STRUCT_TERM_FIXIDX,
7404 BADQUOTE_FIXIDX,
7405 BROKEN_ASSERT_STDIO_FIXIDX,
7406 BROKEN_ASSERT_STDLIB_FIXIDX,
7407 BROKEN_CABS_FIXIDX,
bf73f6d2 7408 BROKEN_NAN_FIXIDX,
8882ac3a 7409 BSD_STDIO_ATTRS_CONFLICT_FIXIDX,
7b78a14a
BK
7410 CTRL_QUOTES_DEF_FIXIDX,
7411 CTRL_QUOTES_USE_FIXIDX,
7412 CXX_UNREADY_FIXIDX,
b6bbae95 7413 DARWIN_EXTERNC_FIXIDX,
005c1a13 7414 DARWIN_GCC4_BREAKAGE_FIXIDX,
3afbff37 7415 DARWIN_PRIVATE_EXTERN_FIXIDX,
7b78a14a
BK
7416 DEC_INTERN_ASM_FIXIDX,
7417 DJGPP_WCHAR_H_FIXIDX,
7418 ECD_CURSOR_FIXIDX,
7b78a14a 7419 FREEBSD_GCC3_BREAKAGE_FIXIDX,
28785dde 7420 FREEBSD_GCC4_BREAKAGE_FIXIDX,
502e2a2d 7421 GLIBC_C99_INLINE_1_FIXIDX,
c91e2eae 7422 GLIBC_C99_INLINE_1A_FIXIDX,
502e2a2d
GK
7423 GLIBC_C99_INLINE_2_FIXIDX,
7424 GLIBC_C99_INLINE_3_FIXIDX,
7425 GLIBC_C99_INLINE_4_FIXIDX,
f6f7aabc 7426 GLIBC_MUTEX_INIT_FIXIDX,
e2556904 7427 GLIBC_STDINT_FIXIDX,
928c19bb 7428 GLIBC_TGMATH_FIXIDX,
7b78a14a
BK
7429 GNU_TYPES_FIXIDX,
7430 HP_INLINE_FIXIDX,
7431 HP_SYSFILE_FIXIDX,
6aa1f8c1 7432 HPPA_HPUX_FP_MACROS_FIXIDX,
5ffd49b8 7433 HPUX10_CPP_POW_INLINE_FIXIDX,
eb559363 7434 HPUX11_CPP_POW_INLINE_FIXIDX,
afc41460
BK
7435 HPUX10_CTYPE_DECLARATIONS1_FIXIDX,
7436 HPUX10_CTYPE_DECLARATIONS2_FIXIDX,
4b60eb3b 7437 HPUX10_STDIO_DECLARATIONS_FIXIDX,
0fca111b 7438 HPUX11_ABS_FIXIDX,
27eaa708 7439 HPUX11_FABSF_FIXIDX,
6aa1f8c1 7440 HPUX11_PTHREAD_CONST_FIXIDX,
34b3b0f6 7441 HPUX11_SIZE_T_FIXIDX,
11f9a0ed 7442 HPUX11_SNPRINTF_FIXIDX,
7b78a14a 7443 HPUX11_UINT32_C_FIXIDX,
b8d0bbf7 7444 HPUX11_VSNPRINTF_FIXIDX,
7b78a14a 7445 HPUX8_BOGUS_INLINES_FIXIDX,
afc41460 7446 HPUX_CTYPE_MACROS_FIXIDX,
7fbdc950 7447 HPUX_HTONL_FIXIDX,
afc41460 7448 HPUX_LONG_DOUBLE_FIXIDX,
7b78a14a 7449 HPUX_SYSTIME_FIXIDX,
e084430d 7450 HPUX_SPU_INFO_FIXIDX,
be645fd9
SE
7451 HPUX11_EXTERN_SENDFILE_FIXIDX,
7452 HPUX11_EXTERN_SENDPATH_FIXIDX,
e10e3ac8 7453 HPUX_EXTERN_ERRNO_FIXIDX,
6c65aa40 7454 HPUX_PTHREAD_INITIALIZERS_FIXIDX,
77923c29
JM
7455 HUGE_VAL_HEX_FIXIDX,
7456 HUGE_VALF_HEX_FIXIDX,
7457 HUGE_VALL_HEX_FIXIDX,
7b78a14a
BK
7458 INT_ABORT_FREE_AND_EXIT_FIXIDX,
7459 IO_QUOTES_DEF_FIXIDX,
7460 IO_QUOTES_USE_FIXIDX,
7461 IP_MISSING_SEMI_FIXIDX,
7a9cdb10 7462 IRIX___RESTRICT_FIXIDX,
e0704143
RS
7463 IRIX___GENERIC1_FIXIDX,
7464 IRIX___GENERIC2_FIXIDX,
7b78a14a
BK
7465 IRIX_ASM_APOSTROPHE_FIXIDX,
7466 IRIX_LIMITS_CONST_FIXIDX,
f23147fe 7467 IRIX_SOCKLEN_T_FIXIDX,
8919fa4a 7468 IRIX_STDINT_C99_FIXIDX,
7b78a14a 7469 IRIX_STDIO_VA_LIST_FIXIDX,
f23147fe 7470 IRIX_WCSFTIME_FIXIDX,
7b78a14a
BK
7471 ISC_FMOD_FIXIDX,
7472 ISC_OMITS_WITH_STDC_FIXIDX,
7473 KANDR_CONCAT_FIXIDX,
fa71a5c3 7474 LINUX_IA64_UCONTEXT_FIXIDX,
d635c707
AN
7475 LYNXOS_NO_WARNING_IN_SYS_TIME_H_FIXIDX,
7476 LYNXOS_MISSING_PUTENV_FIXIDX,
7b78a14a
BK
7477 MACHINE_ANSI_H_VA_LIST_FIXIDX,
7478 MACHINE_NAME_FIXIDX,
7479 MATH_EXCEPTION_FIXIDX,
7480 MATH_HUGE_VAL_FROM_DBL_MAX_FIXIDX,
7b78a14a 7481 NESTED_AUTH_DES_FIXIDX,
7b78a14a 7482 NESTED_SYS_LIMITS_FIXIDX,
7270dd8e 7483 NETBSD_C99_INLINE_1_FIXIDX,
63729d84 7484 NETBSD_C99_INLINE_2_FIXIDX,
3edc4b23 7485 NETBSD_EXTRA_SEMICOLON_FIXIDX,
207bf79d
JM
7486 NEWLIB_STDINT_1_FIXIDX,
7487 NEWLIB_STDINT_2_FIXIDX,
7b78a14a
BK
7488 NEXT_MATH_PREFIX_FIXIDX,
7489 NEXT_TEMPLATE_FIXIDX,
7490 NEXT_VOLITILE_FIXIDX,
7491 NEXT_WAIT_UNION_FIXIDX,
7492 NODEENT_SYNTAX_FIXIDX,
9cb82550 7493 OPENBSD_NULL_DEFINITION_FIXIDX,
dc70e81d 7494 OBSTACK_LVALUE_CAST_FIXIDX,
261b8381 7495 OPENBSD_VA_START_FIXIDX,
7b78a14a
BK
7496 OSF_NAMESPACE_A_FIXIDX,
7497 OSF_NAMESPACE_C_FIXIDX,
14bfd7c7 7498 PTHREAD_INCOMPLETE_STRUCT_ARGUMENT_FIXIDX,
7b78a14a 7499 READ_RET_TYPE_FIXIDX,
6ed6a1b9
JM
7500 RPC_XDR_LVALUE_CAST_A_FIXIDX,
7501 RPC_XDR_LVALUE_CAST_B_FIXIDX,
7b78a14a
BK
7502 RS6000_DOUBLE_FIXIDX,
7503 RS6000_FCHMOD_FIXIDX,
7504 RS6000_PARAM_FIXIDX,
de0656cf 7505 SCO_MATH_FIXIDX,
925a4487
EB
7506 SOLARIS_MATH_1_FIXIDX,
7507 SOLARIS_MATH_2_FIXIDX,
7508 SOLARIS_MATH_3_FIXIDX,
7509 SOLARIS_MATH_4_FIXIDX,
925a4487
EB
7510 SOLARIS_MATH_8_FIXIDX,
7511 SOLARIS_MATH_9_FIXIDX,
c951ae40 7512 SOLARIS_MATH_10_FIXIDX,
7a9cdb10 7513 SOLARIS_MUTEX_INIT_2_FIXIDX,
2b655a0a
KG
7514 SOLARIS_RWLOCK_INIT_1_FIXIDX,
7515 SOLARIS_ONCE_INIT_1_FIXIDX,
0a1f02df 7516 SOLARIS_ONCE_INIT_2_FIXIDX,
fba39eaf 7517 SOLARIS_STDIO_TAG_FIXIDX,
7b78a14a
BK
7518 STATSSWTCH_FIXIDX,
7519 STDIO_STDARG_H_FIXIDX,
7520 STDIO_VA_LIST_FIXIDX,
40d05429 7521 STDIO_VA_LIST_CLIENTS_FIXIDX,
7b78a14a
BK
7522 STRICT_ANSI_NOT_FIXIDX,
7523 STRICT_ANSI_NOT_CTD_FIXIDX,
7524 STRICT_ANSI_ONLY_FIXIDX,
7525 STRUCT_FILE_FIXIDX,
7526 STRUCT_SOCKADDR_FIXIDX,
7527 SUN_AUTH_PROTO_FIXIDX,
7528 SUN_BOGUS_IFDEF_FIXIDX,
7529 SUN_CATMACRO_FIXIDX,
7530 SUN_MALLOC_FIXIDX,
7531 SUN_RUSERS_SEMI_FIXIDX,
7532 SUN_SIGNAL_FIXIDX,
7b78a14a 7533 SUNOS_STRLEN_FIXIDX,
de0656cf 7534 SVR4_DISABLE_OPT_FIXIDX,
7b78a14a
BK
7535 SVR4_GETCWD_FIXIDX,
7536 SVR4_PROFIL_FIXIDX,
1d109416 7537 SVR4_SIGHANDLER_TYPE_FIXIDX,
76d2e2c5 7538 SVR4_UNDECLARED_GETRNGE_FIXIDX,
7b78a14a
BK
7539 SYSV68_STRING_FIXIDX,
7540 SYSZ_STDLIB_FOR_SUN_FIXIDX,
3d78f2e9 7541 THREAD_KEYWORD_FIXIDX,
7b78a14a 7542 TINFO_CPLUSPLUS_FIXIDX,
7b78a14a
BK
7543 ULTRIX_CONST_FIXIDX,
7544 ULTRIX_CONST2_FIXIDX,
7b78a14a
BK
7545 VA_I960_MACRO_FIXIDX,
7546 VOID_NULL_FIXIDX,
7547 VXWORKS_GCC_PROBLEM_FIXIDX,
7548 VXWORKS_NEEDS_VXTYPES_FIXIDX,
7549 VXWORKS_NEEDS_VXWORKS_FIXIDX,
7550 VXWORKS_TIME_FIXIDX,
7551 X11_CLASS_FIXIDX,
7552 X11_CLASS_USAGE_FIXIDX,
7553 X11_NEW_FIXIDX,
7554 X11_SPRINTF_FIXIDX
7555} t_fixinc_idx;
7556
be02fa1a 7557tFixDesc fixDescList[ FIX_COUNT ] = {
83644cd5
PG
7558 { zAab_Aix_StdioName, zAab_Aix_StdioList,
7559 apzAab_Aix_StdioMachs,
7560 AAB_AIX_STDIO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7561 aAab_Aix_StdioTests, apzAab_Aix_StdioPatch, 0 },
7562
246e0bd8
GK
7563 { zAab_Darwin7_9_Long_Double_FuncsName, zAab_Darwin7_9_Long_Double_FuncsList,
7564 apzAab_Darwin7_9_Long_Double_FuncsMachs,
7565 AAB_DARWIN7_9_LONG_DOUBLE_FUNCS_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
7566 aAab_Darwin7_9_Long_Double_FuncsTests, apzAab_Darwin7_9_Long_Double_FuncsPatch, 0 },
7567
7568 { zAab_Darwin7_9_Long_Double_Funcs_2Name, zAab_Darwin7_9_Long_Double_Funcs_2List,
7569 apzAab_Darwin7_9_Long_Double_Funcs_2Machs,
7570 AAB_DARWIN7_9_LONG_DOUBLE_FUNCS_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7571 aAab_Darwin7_9_Long_Double_Funcs_2Tests, apzAab_Darwin7_9_Long_Double_Funcs_2Patch, 0 },
7572
d7eb5a45 7573 { zAab_Fd_Zero_Asm_Posix_Types_HName, zAab_Fd_Zero_Asm_Posix_Types_HList,
f5b105ca 7574 apzAab_Fd_Zero_Asm_Posix_Types_HMachs,
d7eb5a45 7575 AAB_FD_ZERO_ASM_POSIX_TYPES_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
37082e6d 7576 aAab_Fd_Zero_Asm_Posix_Types_HTests, apzAab_Fd_Zero_Asm_Posix_Types_HPatch, 0 },
8aeb3b0e 7577
d7eb5a45 7578 { zAab_Fd_Zero_Gnu_Types_HName, zAab_Fd_Zero_Gnu_Types_HList,
f5b105ca 7579 apzAab_Fd_Zero_Gnu_Types_HMachs,
d7eb5a45 7580 AAB_FD_ZERO_GNU_TYPES_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
37082e6d 7581 aAab_Fd_Zero_Gnu_Types_HTests, apzAab_Fd_Zero_Gnu_Types_HPatch, 0 },
8aeb3b0e 7582
d7eb5a45 7583 { zAab_Fd_Zero_Selectbits_HName, zAab_Fd_Zero_Selectbits_HList,
f5b105ca 7584 apzAab_Fd_Zero_Selectbits_HMachs,
d7eb5a45 7585 AAB_FD_ZERO_SELECTBITS_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
37082e6d 7586 aAab_Fd_Zero_Selectbits_HTests, apzAab_Fd_Zero_Selectbits_HPatch, 0 },
8aeb3b0e 7587
eadc0202
RH
7588 { zAab_Solaris_Sys_Varargs_HName, zAab_Solaris_Sys_Varargs_HList,
7589 apzAab_Solaris_Sys_Varargs_HMachs,
7590 AAB_SOLARIS_SYS_VARARGS_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
7591 aAab_Solaris_Sys_Varargs_HTests, apzAab_Solaris_Sys_Varargs_HPatch, 0 },
7592
0fca111b
SE
7593 { zAab_Sun_MemcpyName, zAab_Sun_MemcpyList,
7594 apzAab_Sun_MemcpyMachs,
7595 AAB_SUN_MEMCPY_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
7596 aAab_Sun_MemcpyTests, apzAab_Sun_MemcpyPatch, 0 },
7597
2c82e043
GK
7598 { zAix_PthreadName, zAix_PthreadList,
7599 apzAix_PthreadMachs,
7600 AIX_PTHREAD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
37082e6d 7601 aAix_PthreadTests, apzAix_PthreadPatch, 0 },
2c82e043
GK
7602
7603 { zAix_SysmachineName, zAix_SysmachineList,
7604 apzAix_SysmachineMachs,
7605 AIX_SYSMACHINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
37082e6d 7606 aAix_SysmachineTests, apzAix_SysmachinePatch, 0 },
2c82e043 7607
d3535e80
RS
7608 { zAix_Syswait_2Name, zAix_Syswait_2List,
7609 apzAix_Syswait_2Machs,
7610 AIX_SYSWAIT_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7611 aAix_Syswait_2Tests, apzAix_Syswait_2Patch, 0 },
7612
06bbab1b 7613 { zAix_VolatileName, zAix_VolatileList,
f5b105ca 7614 apzAix_VolatileMachs,
99d05d99 7615 AIX_VOLATILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
37082e6d 7616 aAix_VolatileTests, apzAix_VolatilePatch, 0 },
06bbab1b 7617
a88072eb
RO
7618 { zAlpha___AssertName, zAlpha___AssertList,
7619 apzAlpha___AssertMachs,
7620 ALPHA___ASSERT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7621 aAlpha___AssertTests, apzAlpha___AssertPatch, 0 },
7622
f8dc212b
RO
7623 { zAlpha___Extern_PrefixName, zAlpha___Extern_PrefixList,
7624 apzAlpha___Extern_PrefixMachs,
7625 ALPHA___EXTERN_PREFIX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7626 aAlpha___Extern_PrefixTests, apzAlpha___Extern_PrefixPatch, 0 },
7627
fb2c2608
RO
7628 { zAlpha___Extern_Prefix_StandardsName, zAlpha___Extern_Prefix_StandardsList,
7629 apzAlpha___Extern_Prefix_StandardsMachs,
7630 ALPHA___EXTERN_PREFIX_STANDARDS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7631 aAlpha___Extern_Prefix_StandardsTests, apzAlpha___Extern_Prefix_StandardsPatch, 0 },
7632
7633 { zAlpha___Extern_Prefix_Sys_StatName, zAlpha___Extern_Prefix_Sys_StatList,
7634 apzAlpha___Extern_Prefix_Sys_StatMachs,
7635 ALPHA___EXTERN_PREFIX_SYS_STAT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7636 aAlpha___Extern_Prefix_Sys_StatTests, apzAlpha___Extern_Prefix_Sys_StatPatch, 0 },
7637
aaa4d130
RO
7638 { zAlpha_AssertName, zAlpha_AssertList,
7639 apzAlpha_AssertMachs,
7640 ALPHA_ASSERT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7641 aAlpha_AssertTests, apzAlpha_AssertPatch, 0 },
7642
f6c930a3
RO
7643 { zAlpha_Bad_LvalName, zAlpha_Bad_LvalList,
7644 apzAlpha_Bad_LvalMachs,
7645 ALPHA_BAD_LVAL_TEST_CT, FD_MACH_ONLY,
7646 aAlpha_Bad_LvalTests, apzAlpha_Bad_LvalPatch, 0 },
7647
06bbab1b 7648 { zAlpha_GetoptName, zAlpha_GetoptList,
f5b105ca 7649 apzAlpha_GetoptMachs,
99d05d99 7650 ALPHA_GETOPT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
37082e6d 7651 aAlpha_GetoptTests, apzAlpha_GetoptPatch, 0 },
06bbab1b 7652
42ab9282
GB
7653 { zAlpha_If_SemicolonName, zAlpha_If_SemicolonList,
7654 apzAlpha_If_SemicolonMachs,
7655 ALPHA_IF_SEMICOLON_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7656 aAlpha_If_SemicolonTests, apzAlpha_If_SemicolonPatch, 0 },
7657
06bbab1b 7658 { zAlpha_ParensName, zAlpha_ParensList,
f5b105ca 7659 apzAlpha_ParensMachs,
99d05d99 7660 ALPHA_PARENS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
37082e6d 7661 aAlpha_ParensTests, apzAlpha_ParensPatch, 0 },
06bbab1b 7662
2a4e8ebc
RO
7663 { zAlpha_PthreadName, zAlpha_PthreadList,
7664 apzAlpha_PthreadMachs,
7665 ALPHA_PTHREAD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7666 aAlpha_PthreadTests, apzAlpha_PthreadPatch, 0 },
7667
821281db
RO
7668 { zAlpha_Pthread_GccName, zAlpha_Pthread_GccList,
7669 apzAlpha_Pthread_GccMachs,
7670 ALPHA_PTHREAD_GCC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7671 aAlpha_Pthread_GccTests, apzAlpha_Pthread_GccPatch, 0 },
7672
1fda9d7b
RS
7673 { zAlpha_Pthread_InitName, zAlpha_Pthread_InitList,
7674 apzAlpha_Pthread_InitMachs,
7675 ALPHA_PTHREAD_INIT_TEST_CT, FD_MACH_ONLY,
7676 aAlpha_Pthread_InitTests, apzAlpha_Pthread_InitPatch, 0 },
7677
06bbab1b 7678 { zAlpha_SbrkName, zAlpha_SbrkList,
f5b105ca 7679 apzAlpha_SbrkMachs,
99d05d99 7680 ALPHA_SBRK_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
37082e6d 7681 aAlpha_SbrkTests, apzAlpha_SbrkPatch, 0 },
06bbab1b 7682
f502cbff
RO
7683 { zAlpha_WcharName, zAlpha_WcharList,
7684 apzAlpha_WcharMachs,
7685 ALPHA_WCHAR_TEST_CT, FD_MACH_ONLY,
7686 aAlpha_WcharTests, apzAlpha_WcharPatch, 0 },
7687
cd64831f
BK
7688 { zAvoid_Bool_DefineName, zAvoid_Bool_DefineList,
7689 apzAvoid_Bool_DefineMachs,
7690 AVOID_BOOL_DEFINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
37082e6d 7691 aAvoid_Bool_DefineTests, apzAvoid_Bool_DefinePatch, 0 },
cd64831f
BK
7692
7693 { zAvoid_Bool_TypeName, zAvoid_Bool_TypeList,
7694 apzAvoid_Bool_TypeMachs,
7695 AVOID_BOOL_TYPE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
37082e6d 7696 aAvoid_Bool_TypeTests, apzAvoid_Bool_TypePatch, 0 },
06bbab1b 7697
8b4c8a86
MM
7698 { zAvoid_Wchar_T_TypeName, zAvoid_Wchar_T_TypeList,
7699 apzAvoid_Wchar_T_TypeMachs,
7700 AVOID_WCHAR_T_TYPE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
37082e6d 7701 aAvoid_Wchar_T_TypeTests, apzAvoid_Wchar_T_TypePatch, 0 },
8b4c8a86 7702
06bbab1b 7703 { zBad_Struct_TermName, zBad_Struct_TermList,
f5b105ca 7704 apzBad_Struct_TermMachs,
cd64831f 7705 BAD_STRUCT_TERM_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
37082e6d 7706 aBad_Struct_TermTests, apzBad_Struct_TermPatch, 0 },
06bbab1b
BK
7707
7708 { zBadquoteName, zBadquoteList,
f5b105ca 7709 apzBadquoteMachs,
cd64831f 7710 BADQUOTE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
37082e6d 7711 aBadquoteTests, apzBadquotePatch, 0 },
06bbab1b 7712
06bbab1b 7713 { zBroken_Assert_StdioName, zBroken_Assert_StdioList,
f5b105ca 7714 apzBroken_Assert_StdioMachs,
ba8fcfc3 7715 BROKEN_ASSERT_STDIO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
37082e6d 7716 aBroken_Assert_StdioTests, apzBroken_Assert_StdioPatch, 0 },
06bbab1b
BK
7717
7718 { zBroken_Assert_StdlibName, zBroken_Assert_StdlibList,
f5b105ca 7719 apzBroken_Assert_StdlibMachs,
ba8fcfc3 7720 BROKEN_ASSERT_STDLIB_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
37082e6d 7721 aBroken_Assert_StdlibTests, apzBroken_Assert_StdlibPatch, 0 },
06bbab1b 7722
72b9c7fb 7723 { zBroken_CabsName, zBroken_CabsList,
f5b105ca 7724 apzBroken_CabsMachs,
a942e89f 7725 BROKEN_CABS_TEST_CT, FD_MACH_ONLY,
37082e6d 7726 aBroken_CabsTests, apzBroken_CabsPatch, 0 },
72b9c7fb 7727
bf73f6d2
AP
7728 { zBroken_NanName, zBroken_NanList,
7729 apzBroken_NanMachs,
7730 BROKEN_NAN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7731 aBroken_NanTests, apzBroken_NanPatch, 0 },
7732
8882ac3a
BK
7733 { zBsd_Stdio_Attrs_ConflictName, zBsd_Stdio_Attrs_ConflictList,
7734 apzBsd_Stdio_Attrs_ConflictMachs,
7735 BSD_STDIO_ATTRS_CONFLICT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7736 aBsd_Stdio_Attrs_ConflictTests, apzBsd_Stdio_Attrs_ConflictPatch, 0 },
7737
79589c4d
BK
7738 { zCtrl_Quotes_DefName, zCtrl_Quotes_DefList,
7739 apzCtrl_Quotes_DefMachs,
7740 CTRL_QUOTES_DEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
37082e6d 7741 aCtrl_Quotes_DefTests, apzCtrl_Quotes_DefPatch, 0 },
79589c4d
BK
7742
7743 { zCtrl_Quotes_UseName, zCtrl_Quotes_UseList,
7744 apzCtrl_Quotes_UseMachs,
7745 CTRL_QUOTES_USE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
37082e6d 7746 aCtrl_Quotes_UseTests, apzCtrl_Quotes_UsePatch, 0 },
79589c4d
BK
7747
7748 { zCxx_UnreadyName, zCxx_UnreadyList,
7749 apzCxx_UnreadyMachs,
7750 CXX_UNREADY_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
37082e6d 7751 aCxx_UnreadyTests, apzCxx_UnreadyPatch, 0 },
79589c4d 7752
b6bbae95
GK
7753 { zDarwin_ExterncName, zDarwin_ExterncList,
7754 apzDarwin_ExterncMachs,
7755 DARWIN_EXTERNC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7756 aDarwin_ExterncTests, apzDarwin_ExterncPatch, 0 },
7757
005c1a13
GK
7758 { zDarwin_Gcc4_BreakageName, zDarwin_Gcc4_BreakageList,
7759 apzDarwin_Gcc4_BreakageMachs,
7760 DARWIN_GCC4_BREAKAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7761 aDarwin_Gcc4_BreakageTests, apzDarwin_Gcc4_BreakagePatch, 0 },
7762
3afbff37
GK
7763 { zDarwin_Private_ExternName, zDarwin_Private_ExternList,
7764 apzDarwin_Private_ExternMachs,
7765 DARWIN_PRIVATE_EXTERN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7766 aDarwin_Private_ExternTests, apzDarwin_Private_ExternPatch, 0 },
7767
48bd9529 7768 { zDec_Intern_AsmName, zDec_Intern_AsmList,
f5b105ca 7769 apzDec_Intern_AsmMachs,
48bd9529 7770 DEC_INTERN_ASM_TEST_CT, FD_MACH_ONLY,
37082e6d 7771 aDec_Intern_AsmTests, apzDec_Intern_AsmPatch, 0 },
48bd9529 7772
6822468a
LB
7773 { zDjgpp_Wchar_HName, zDjgpp_Wchar_HList,
7774 apzDjgpp_Wchar_HMachs,
7775 DJGPP_WCHAR_H_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7776 aDjgpp_Wchar_HTests, apzDjgpp_Wchar_HPatch, 0 },
7777
06bbab1b 7778 { zEcd_CursorName, zEcd_CursorList,
f5b105ca 7779 apzEcd_CursorMachs,
cd64831f 7780 ECD_CURSOR_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
37082e6d 7781 aEcd_CursorTests, apzEcd_CursorPatch, 0 },
06bbab1b 7782
89647e8a
LR
7783 { zFreebsd_Gcc3_BreakageName, zFreebsd_Gcc3_BreakageList,
7784 apzFreebsd_Gcc3_BreakageMachs,
7785 FREEBSD_GCC3_BREAKAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7786 aFreebsd_Gcc3_BreakageTests, apzFreebsd_Gcc3_BreakagePatch, 0 },
7787
28785dde
LR
7788 { zFreebsd_Gcc4_BreakageName, zFreebsd_Gcc4_BreakageList,
7789 apzFreebsd_Gcc4_BreakageMachs,
7790 FREEBSD_GCC4_BREAKAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7791 aFreebsd_Gcc4_BreakageTests, apzFreebsd_Gcc4_BreakagePatch, 0 },
7792
502e2a2d
GK
7793 { zGlibc_C99_Inline_1Name, zGlibc_C99_Inline_1List,
7794 apzGlibc_C99_Inline_1Machs,
7795 GLIBC_C99_INLINE_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7796 aGlibc_C99_Inline_1Tests, apzGlibc_C99_Inline_1Patch, 0 },
7797
c91e2eae
HPN
7798 { zGlibc_C99_Inline_1aName, zGlibc_C99_Inline_1aList,
7799 apzGlibc_C99_Inline_1aMachs,
7800 GLIBC_C99_INLINE_1A_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7801 aGlibc_C99_Inline_1aTests, apzGlibc_C99_Inline_1aPatch, 0 },
7802
502e2a2d
GK
7803 { zGlibc_C99_Inline_2Name, zGlibc_C99_Inline_2List,
7804 apzGlibc_C99_Inline_2Machs,
7805 GLIBC_C99_INLINE_2_TEST_CT, FD_MACH_ONLY,
7806 aGlibc_C99_Inline_2Tests, apzGlibc_C99_Inline_2Patch, 0 },
7807
7808 { zGlibc_C99_Inline_3Name, zGlibc_C99_Inline_3List,
7809 apzGlibc_C99_Inline_3Machs,
7810 GLIBC_C99_INLINE_3_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7811 aGlibc_C99_Inline_3Tests, apzGlibc_C99_Inline_3Patch, 0 },
7812
7813 { zGlibc_C99_Inline_4Name, zGlibc_C99_Inline_4List,
7814 apzGlibc_C99_Inline_4Machs,
7815 GLIBC_C99_INLINE_4_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7816 aGlibc_C99_Inline_4Tests, apzGlibc_C99_Inline_4Patch, 0 },
7817
f6f7aabc
UB
7818 { zGlibc_Mutex_InitName, zGlibc_Mutex_InitList,
7819 apzGlibc_Mutex_InitMachs,
7820 GLIBC_MUTEX_INIT_TEST_CT, FD_MACH_ONLY,
7821 aGlibc_Mutex_InitTests, apzGlibc_Mutex_InitPatch, 0 },
7822
e2556904
JM
7823 { zGlibc_StdintName, zGlibc_StdintList,
7824 apzGlibc_StdintMachs,
7825 GLIBC_STDINT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7826 aGlibc_StdintTests, apzGlibc_StdintPatch, 0 },
7827
928c19bb
JM
7828 { zGlibc_TgmathName, zGlibc_TgmathList,
7829 apzGlibc_TgmathMachs,
7830 GLIBC_TGMATH_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7831 aGlibc_TgmathTests, apzGlibc_TgmathPatch, 0 },
7832
7b78a14a
BK
7833 { zGnu_TypesName, zGnu_TypesList,
7834 apzGnu_TypesMachs,
9fcc7481 7835 GNU_TYPES_TEST_CT, FD_MACH_IFNOT | FD_SUBROUTINE,
7b78a14a
BK
7836 aGnu_TypesTests, apzGnu_TypesPatch, 0 },
7837
06bbab1b 7838 { zHp_InlineName, zHp_InlineList,
f5b105ca 7839 apzHp_InlineMachs,
cd64831f 7840 HP_INLINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
37082e6d 7841 aHp_InlineTests, apzHp_InlinePatch, 0 },
06bbab1b
BK
7842
7843 { zHp_SysfileName, zHp_SysfileList,
f5b105ca 7844 apzHp_SysfileMachs,
cd64831f 7845 HP_SYSFILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
37082e6d 7846 aHp_SysfileTests, apzHp_SysfilePatch, 0 },
06bbab1b 7847
6aa1f8c1
BK
7848 { zHppa_Hpux_Fp_MacrosName, zHppa_Hpux_Fp_MacrosList,
7849 apzHppa_Hpux_Fp_MacrosMachs,
7850 HPPA_HPUX_FP_MACROS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7851 aHppa_Hpux_Fp_MacrosTests, apzHppa_Hpux_Fp_MacrosPatch, 0 },
7852
5ffd49b8
JDA
7853 { zHpux10_Cpp_Pow_InlineName, zHpux10_Cpp_Pow_InlineList,
7854 apzHpux10_Cpp_Pow_InlineMachs,
7855 HPUX10_CPP_POW_INLINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7856 aHpux10_Cpp_Pow_InlineTests, apzHpux10_Cpp_Pow_InlinePatch, 0 },
7857
eb559363
BK
7858 { zHpux11_Cpp_Pow_InlineName, zHpux11_Cpp_Pow_InlineList,
7859 apzHpux11_Cpp_Pow_InlineMachs,
7860 HPUX11_CPP_POW_INLINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7861 aHpux11_Cpp_Pow_InlineTests, apzHpux11_Cpp_Pow_InlinePatch, 0 },
7862
afc41460
BK
7863 { zHpux10_Ctype_Declarations1Name, zHpux10_Ctype_Declarations1List,
7864 apzHpux10_Ctype_Declarations1Machs,
7865 HPUX10_CTYPE_DECLARATIONS1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7866 aHpux10_Ctype_Declarations1Tests, apzHpux10_Ctype_Declarations1Patch, 0 },
7867
7868 { zHpux10_Ctype_Declarations2Name, zHpux10_Ctype_Declarations2List,
7869 apzHpux10_Ctype_Declarations2Machs,
7870 HPUX10_CTYPE_DECLARATIONS2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7871 aHpux10_Ctype_Declarations2Tests, apzHpux10_Ctype_Declarations2Patch, 0 },
7872
4b60eb3b
JDA
7873 { zHpux10_Stdio_DeclarationsName, zHpux10_Stdio_DeclarationsList,
7874 apzHpux10_Stdio_DeclarationsMachs,
7875 HPUX10_STDIO_DECLARATIONS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7876 aHpux10_Stdio_DeclarationsTests, apzHpux10_Stdio_DeclarationsPatch, 0 },
7877
0fca111b
SE
7878 { zHpux11_AbsName, zHpux11_AbsList,
7879 apzHpux11_AbsMachs,
d758c1db 7880 HPUX11_ABS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
0fca111b
SE
7881 aHpux11_AbsTests, apzHpux11_AbsPatch, 0 },
7882
27eaa708
BK
7883 { zHpux11_FabsfName, zHpux11_FabsfList,
7884 apzHpux11_FabsfMachs,
7885 HPUX11_FABSF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7886 aHpux11_FabsfTests, apzHpux11_FabsfPatch, 0 },
7887
6aa1f8c1
BK
7888 { zHpux11_Pthread_ConstName, zHpux11_Pthread_ConstList,
7889 apzHpux11_Pthread_ConstMachs,
7890 HPUX11_PTHREAD_CONST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7891 aHpux11_Pthread_ConstTests, apzHpux11_Pthread_ConstPatch, 0 },
7892
34b3b0f6
JM
7893 { zHpux11_Size_TName, zHpux11_Size_TList,
7894 apzHpux11_Size_TMachs,
7895 HPUX11_SIZE_T_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7896 aHpux11_Size_TTests, apzHpux11_Size_TPatch, 0 },
7897
11f9a0ed
BK
7898 { zHpux11_SnprintfName, zHpux11_SnprintfList,
7899 apzHpux11_SnprintfMachs,
7900 HPUX11_SNPRINTF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7901 aHpux11_SnprintfTests, apzHpux11_SnprintfPatch, 0 },
7902
abf7cec7 7903 { zHpux11_Uint32_CName, zHpux11_Uint32_CList,
f5b105ca 7904 apzHpux11_Uint32_CMachs,
79589c4d 7905 HPUX11_UINT32_C_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
37082e6d 7906 aHpux11_Uint32_CTests, apzHpux11_Uint32_CPatch, 0 },
abf7cec7 7907
b8d0bbf7
BK
7908 { zHpux11_VsnprintfName, zHpux11_VsnprintfList,
7909 apzHpux11_VsnprintfMachs,
7910 HPUX11_VSNPRINTF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7911 aHpux11_VsnprintfTests, apzHpux11_VsnprintfPatch, 0 },
7912
cd64831f
BK
7913 { zHpux8_Bogus_InlinesName, zHpux8_Bogus_InlinesList,
7914 apzHpux8_Bogus_InlinesMachs,
7915 HPUX8_BOGUS_INLINES_TEST_CT, FD_MACH_ONLY,
37082e6d 7916 aHpux8_Bogus_InlinesTests, apzHpux8_Bogus_InlinesPatch, 0 },
cd64831f 7917
afc41460
BK
7918 { zHpux_Ctype_MacrosName, zHpux_Ctype_MacrosList,
7919 apzHpux_Ctype_MacrosMachs,
7920 HPUX_CTYPE_MACROS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7921 aHpux_Ctype_MacrosTests, apzHpux_Ctype_MacrosPatch, 0 },
7922
7fbdc950
JM
7923 { zHpux_HtonlName, zHpux_HtonlList,
7924 apzHpux_HtonlMachs,
7925 HPUX_HTONL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7926 aHpux_HtonlTests, apzHpux_HtonlPatch, 0 },
7927
afc41460
BK
7928 { zHpux_Long_DoubleName, zHpux_Long_DoubleList,
7929 apzHpux_Long_DoubleMachs,
7930 HPUX_LONG_DOUBLE_TEST_CT, FD_MACH_ONLY,
7931 aHpux_Long_DoubleTests, apzHpux_Long_DoublePatch, 0 },
7932
7b78a14a
BK
7933 { zHpux_SystimeName, zHpux_SystimeList,
7934 apzHpux_SystimeMachs,
7935 HPUX_SYSTIME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7936 aHpux_SystimeTests, apzHpux_SystimePatch, 0 },
7937
e084430d
SE
7938 { zHpux_Spu_InfoName, zHpux_Spu_InfoList,
7939 apzHpux_Spu_InfoMachs,
7940 HPUX_SPU_INFO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7941 aHpux_Spu_InfoTests, apzHpux_Spu_InfoPatch, 0 },
7942
be645fd9
SE
7943 { zHpux11_Extern_SendfileName, zHpux11_Extern_SendfileList,
7944 apzHpux11_Extern_SendfileMachs,
7945 HPUX11_EXTERN_SENDFILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7946 aHpux11_Extern_SendfileTests, apzHpux11_Extern_SendfilePatch, 0 },
7947
7948 { zHpux11_Extern_SendpathName, zHpux11_Extern_SendpathList,
7949 apzHpux11_Extern_SendpathMachs,
7950 HPUX11_EXTERN_SENDPATH_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7951 aHpux11_Extern_SendpathTests, apzHpux11_Extern_SendpathPatch, 0 },
7952
e10e3ac8
SE
7953 { zHpux_Extern_ErrnoName, zHpux_Extern_ErrnoList,
7954 apzHpux_Extern_ErrnoMachs,
7955 HPUX_EXTERN_ERRNO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7956 aHpux_Extern_ErrnoTests, apzHpux_Extern_ErrnoPatch, 0 },
7957
6c65aa40
JDA
7958 { zHpux_Pthread_InitializersName, zHpux_Pthread_InitializersList,
7959 apzHpux_Pthread_InitializersMachs,
7960 HPUX_PTHREAD_INITIALIZERS_TEST_CT, FD_MACH_ONLY,
7961 aHpux_Pthread_InitializersTests, apzHpux_Pthread_InitializersPatch, 0 },
7962
77923c29
JM
7963 { zHuge_Val_HexName, zHuge_Val_HexList,
7964 apzHuge_Val_HexMachs,
7965 HUGE_VAL_HEX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7966 aHuge_Val_HexTests, apzHuge_Val_HexPatch, 0 },
7967
7968 { zHuge_Valf_HexName, zHuge_Valf_HexList,
7969 apzHuge_Valf_HexMachs,
7970 HUGE_VALF_HEX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7971 aHuge_Valf_HexTests, apzHuge_Valf_HexPatch, 0 },
7972
7973 { zHuge_Vall_HexName, zHuge_Vall_HexList,
7974 apzHuge_Vall_HexMachs,
7975 HUGE_VALL_HEX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7976 aHuge_Vall_HexTests, apzHuge_Vall_HexPatch, 0 },
7977
cb8d5168
BK
7978 { zInt_Abort_Free_And_ExitName, zInt_Abort_Free_And_ExitList,
7979 apzInt_Abort_Free_And_ExitMachs,
7980 INT_ABORT_FREE_AND_EXIT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
37082e6d 7981 aInt_Abort_Free_And_ExitTests, apzInt_Abort_Free_And_ExitPatch, 0 },
cb8d5168 7982
88acf854
BK
7983 { zIo_Quotes_DefName, zIo_Quotes_DefList,
7984 apzIo_Quotes_DefMachs,
7985 IO_QUOTES_DEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
37082e6d 7986 aIo_Quotes_DefTests, apzIo_Quotes_DefPatch, 0 },
88acf854 7987
99d05d99
BK
7988 { zIo_Quotes_UseName, zIo_Quotes_UseList,
7989 apzIo_Quotes_UseMachs,
7990 IO_QUOTES_USE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
37082e6d 7991 aIo_Quotes_UseTests, apzIo_Quotes_UsePatch, 0 },
88acf854 7992
06bbab1b 7993 { zIp_Missing_SemiName, zIp_Missing_SemiList,
f5b105ca 7994 apzIp_Missing_SemiMachs,
06bbab1b 7995 IP_MISSING_SEMI_TEST_CT, FD_MACH_ONLY,
37082e6d 7996 aIp_Missing_SemiTests, apzIp_Missing_SemiPatch, 0 },
06bbab1b 7997
7a9cdb10
DD
7998 { zIrix___RestrictName, zIrix___RestrictList,
7999 apzIrix___RestrictMachs,
8000 IRIX___RESTRICT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8001 aIrix___RestrictTests, apzIrix___RestrictPatch, 0 },
8002
e0704143
RS
8003 { zIrix___Generic1Name, zIrix___Generic1List,
8004 apzIrix___Generic1Machs,
8005 IRIX___GENERIC1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8006 aIrix___Generic1Tests, apzIrix___Generic1Patch, 0 },
8007
8008 { zIrix___Generic2Name, zIrix___Generic2List,
8009 apzIrix___Generic2Machs,
8010 IRIX___GENERIC2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8011 aIrix___Generic2Tests, apzIrix___Generic2Patch, 0 },
8012
79589c4d
BK
8013 { zIrix_Asm_ApostropheName, zIrix_Asm_ApostropheList,
8014 apzIrix_Asm_ApostropheMachs,
8015 IRIX_ASM_APOSTROPHE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
37082e6d 8016 aIrix_Asm_ApostropheTests, apzIrix_Asm_ApostrophePatch, 0 },
79589c4d 8017
8d8d5752
JO
8018 { zIrix_Limits_ConstName, zIrix_Limits_ConstList,
8019 apzIrix_Limits_ConstMachs,
8020 IRIX_LIMITS_CONST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8021 aIrix_Limits_ConstTests, apzIrix_Limits_ConstPatch, 0 },
8022
f23147fe
RO
8023 { zIrix_Socklen_TName, zIrix_Socklen_TList,
8024 apzIrix_Socklen_TMachs,
8025 IRIX_SOCKLEN_T_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8026 aIrix_Socklen_TTests, apzIrix_Socklen_TPatch, 0 },
8027
8919fa4a
RO
8028 { zIrix_Stdint_C99Name, zIrix_Stdint_C99List,
8029 apzIrix_Stdint_C99Machs,
8030 IRIX_STDINT_C99_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8031 aIrix_Stdint_C99Tests, apzIrix_Stdint_C99Patch, 0 },
8032
7b78a14a
BK
8033 { zIrix_Stdio_Va_ListName, zIrix_Stdio_Va_ListList,
8034 apzIrix_Stdio_Va_ListMachs,
8035 IRIX_STDIO_VA_LIST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8036 aIrix_Stdio_Va_ListTests, apzIrix_Stdio_Va_ListPatch, 0 },
8037
f23147fe
RO
8038 { zIrix_WcsftimeName, zIrix_WcsftimeList,
8039 apzIrix_WcsftimeMachs,
8040 IRIX_WCSFTIME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8041 aIrix_WcsftimeTests, apzIrix_WcsftimePatch, 0 },
8042
06bbab1b 8043 { zIsc_FmodName, zIsc_FmodList,
f5b105ca 8044 apzIsc_FmodMachs,
79589c4d 8045 ISC_FMOD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
37082e6d 8046 aIsc_FmodTests, apzIsc_FmodPatch, 0 },
06bbab1b 8047
7b78a14a
BK
8048 { zIsc_Omits_With_StdcName, zIsc_Omits_With_StdcList,
8049 apzIsc_Omits_With_StdcMachs,
8050 ISC_OMITS_WITH_STDC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8051 aIsc_Omits_With_StdcTests, apzIsc_Omits_With_StdcPatch, 0 },
8052
06bbab1b 8053 { zKandr_ConcatName, zKandr_ConcatList,
f5b105ca 8054 apzKandr_ConcatMachs,
79589c4d 8055 KANDR_CONCAT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
37082e6d 8056 aKandr_ConcatTests, apzKandr_ConcatPatch, 0 },
06bbab1b 8057
fa71a5c3
RS
8058 { zLinux_Ia64_UcontextName, zLinux_Ia64_UcontextList,
8059 apzLinux_Ia64_UcontextMachs,
8060 LINUX_IA64_UCONTEXT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8061 aLinux_Ia64_UcontextTests, apzLinux_Ia64_UcontextPatch, 0 },
8062
d635c707
AN
8063 { zLynxos_No_Warning_In_Sys_Time_HName, zLynxos_No_Warning_In_Sys_Time_HList,
8064 apzLynxos_No_Warning_In_Sys_Time_HMachs,
8065 LYNXOS_NO_WARNING_IN_SYS_TIME_H_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8066 aLynxos_No_Warning_In_Sys_Time_HTests, apzLynxos_No_Warning_In_Sys_Time_HPatch, 0 },
06bbab1b 8067
d635c707
AN
8068 { zLynxos_Missing_PutenvName, zLynxos_Missing_PutenvList,
8069 apzLynxos_Missing_PutenvMachs,
8070 LYNXOS_MISSING_PUTENV_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8071 aLynxos_Missing_PutenvTests, apzLynxos_Missing_PutenvPatch, 0 },
06bbab1b 8072
3be1fb72 8073 { zMachine_Ansi_H_Va_ListName, zMachine_Ansi_H_Va_ListList,
f5b105ca 8074 apzMachine_Ansi_H_Va_ListMachs,
a8228686 8075 MACHINE_ANSI_H_VA_LIST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
37082e6d 8076 aMachine_Ansi_H_Va_ListTests, apzMachine_Ansi_H_Va_ListPatch, 0 },
3be1fb72 8077
06bbab1b 8078 { zMachine_NameName, zMachine_NameList,
f5b105ca 8079 apzMachine_NameMachs,
52c207e2 8080 MACHINE_NAME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
37082e6d 8081 aMachine_NameTests, apzMachine_NamePatch, 0 },
06bbab1b
BK
8082
8083 { zMath_ExceptionName, zMath_ExceptionList,
f5b105ca 8084 apzMath_ExceptionMachs,
ba8fcfc3 8085 MATH_EXCEPTION_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
37082e6d 8086 aMath_ExceptionTests, apzMath_ExceptionPatch, 0 },
06bbab1b 8087
d7eb5a45 8088 { zMath_Huge_Val_From_Dbl_MaxName, zMath_Huge_Val_From_Dbl_MaxList,
f5b105ca 8089 apzMath_Huge_Val_From_Dbl_MaxMachs,
d7eb5a45 8090 MATH_HUGE_VAL_FROM_DBL_MAX_TEST_CT, FD_MACH_ONLY | FD_SHELL_SCRIPT,
37082e6d 8091 aMath_Huge_Val_From_Dbl_MaxTests, apzMath_Huge_Val_From_Dbl_MaxPatch, 0 },
d7eb5a45 8092
7b78a14a
BK
8093 { zNested_Auth_DesName, zNested_Auth_DesList,
8094 apzNested_Auth_DesMachs,
8095 NESTED_AUTH_DES_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8096 aNested_Auth_DesTests, apzNested_Auth_DesPatch, 0 },
8097
79589c4d
BK
8098 { zNested_Sys_LimitsName, zNested_Sys_LimitsList,
8099 apzNested_Sys_LimitsMachs,
8100 NESTED_SYS_LIMITS_TEST_CT, FD_MACH_ONLY,
37082e6d 8101 aNested_Sys_LimitsTests, apzNested_Sys_LimitsPatch, 0 },
7270dd8e
KW
8102
8103 { zNetbsd_C99_Inline_1Name, zNetbsd_C99_Inline_1List,
8104 apzNetbsd_C99_Inline_1Machs,
8105 NETBSD_C99_INLINE_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8106 aNetbsd_C99_Inline_1Tests, apzNetbsd_C99_Inline_1Patch, 0 },
63729d84
KW
8107
8108 { zNetbsd_C99_Inline_2Name, zNetbsd_C99_Inline_2List,
8109 apzNetbsd_C99_Inline_2Machs,
8110 NETBSD_C99_INLINE_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8111 aNetbsd_C99_Inline_2Tests, apzNetbsd_C99_Inline_2Patch, 0 },
79589c4d 8112
3edc4b23
KW
8113 { zNetbsd_Extra_SemicolonName, zNetbsd_Extra_SemicolonList,
8114 apzNetbsd_Extra_SemicolonMachs,
8115 NETBSD_EXTRA_SEMICOLON_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8116 aNetbsd_Extra_SemicolonTests, apzNetbsd_Extra_SemicolonPatch, 0 },
8117
207bf79d
JM
8118 { zNewlib_Stdint_1Name, zNewlib_Stdint_1List,
8119 apzNewlib_Stdint_1Machs,
8120 NEWLIB_STDINT_1_TEST_CT, FD_MACH_ONLY,
8121 aNewlib_Stdint_1Tests, apzNewlib_Stdint_1Patch, 0 },
8122
8123 { zNewlib_Stdint_2Name, zNewlib_Stdint_2List,
8124 apzNewlib_Stdint_2Machs,
8125 NEWLIB_STDINT_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8126 aNewlib_Stdint_2Tests, apzNewlib_Stdint_2Patch, 0 },
8127
06bbab1b 8128 { zNext_Math_PrefixName, zNext_Math_PrefixList,
f5b105ca 8129 apzNext_Math_PrefixMachs,
a8228686 8130 NEXT_MATH_PREFIX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
37082e6d 8131 aNext_Math_PrefixTests, apzNext_Math_PrefixPatch, 0 },
06bbab1b
BK
8132
8133 { zNext_TemplateName, zNext_TemplateList,
f5b105ca 8134 apzNext_TemplateMachs,
a8228686 8135 NEXT_TEMPLATE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
37082e6d 8136 aNext_TemplateTests, apzNext_TemplatePatch, 0 },
06bbab1b
BK
8137
8138 { zNext_VolitileName, zNext_VolitileList,
f5b105ca 8139 apzNext_VolitileMachs,
a8228686 8140 NEXT_VOLITILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
37082e6d 8141 aNext_VolitileTests, apzNext_VolitilePatch, 0 },
06bbab1b
BK
8142
8143 { zNext_Wait_UnionName, zNext_Wait_UnionList,
f5b105ca 8144 apzNext_Wait_UnionMachs,
cb8d5168 8145 NEXT_WAIT_UNION_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
37082e6d 8146 aNext_Wait_UnionTests, apzNext_Wait_UnionPatch, 0 },
06bbab1b
BK
8147
8148 { zNodeent_SyntaxName, zNodeent_SyntaxList,
f5b105ca 8149 apzNodeent_SyntaxMachs,
cb8d5168 8150 NODEENT_SYNTAX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
37082e6d 8151 aNodeent_SyntaxTests, apzNodeent_SyntaxPatch, 0 },
06bbab1b 8152
9cb82550
AT
8153 { zOpenbsd_Null_DefinitionName, zOpenbsd_Null_DefinitionList,
8154 apzOpenbsd_Null_DefinitionMachs,
8155 OPENBSD_NULL_DEFINITION_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8156 aOpenbsd_Null_DefinitionTests, apzOpenbsd_Null_DefinitionPatch, 0 },
8157
dc70e81d
JM
8158 { zObstack_Lvalue_CastName, zObstack_Lvalue_CastList,
8159 apzObstack_Lvalue_CastMachs,
8160 OBSTACK_LVALUE_CAST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8161 aObstack_Lvalue_CastTests, apzObstack_Lvalue_CastPatch, 0 },
8162
261b8381
AT
8163 { zOpenbsd_Va_StartName, zOpenbsd_Va_StartList,
8164 apzOpenbsd_Va_StartMachs,
8165 OPENBSD_VA_START_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8166 aOpenbsd_Va_StartTests, apzOpenbsd_Va_StartPatch, 0 },
8167
06bbab1b 8168 { zOsf_Namespace_AName, zOsf_Namespace_AList,
f5b105ca 8169 apzOsf_Namespace_AMachs,
cb8d5168 8170 OSF_NAMESPACE_A_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
37082e6d 8171 aOsf_Namespace_ATests, apzOsf_Namespace_APatch, 0 },
06bbab1b 8172
cb8d5168
BK
8173 { zOsf_Namespace_CName, zOsf_Namespace_CList,
8174 apzOsf_Namespace_CMachs,
8175 OSF_NAMESPACE_C_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
37082e6d 8176 aOsf_Namespace_CTests, apzOsf_Namespace_CPatch, 0 },
06bbab1b 8177
14bfd7c7
RG
8178 { zPthread_Incomplete_Struct_ArgumentName, zPthread_Incomplete_Struct_ArgumentList,
8179 apzPthread_Incomplete_Struct_ArgumentMachs,
8180 PTHREAD_INCOMPLETE_STRUCT_ARGUMENT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8181 aPthread_Incomplete_Struct_ArgumentTests, apzPthread_Incomplete_Struct_ArgumentPatch, 0 },
8182
d71ef9d4 8183 { zRead_Ret_TypeName, zRead_Ret_TypeList,
f5b105ca 8184 apzRead_Ret_TypeMachs,
cb8d5168 8185 READ_RET_TYPE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
37082e6d 8186 aRead_Ret_TypeTests, apzRead_Ret_TypePatch, 0 },
d71ef9d4 8187
6ed6a1b9
JM
8188 { zRpc_Xdr_Lvalue_Cast_AName, zRpc_Xdr_Lvalue_Cast_AList,
8189 apzRpc_Xdr_Lvalue_Cast_AMachs,
8190 RPC_XDR_LVALUE_CAST_A_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8191 aRpc_Xdr_Lvalue_Cast_ATests, apzRpc_Xdr_Lvalue_Cast_APatch, 0 },
8192
8193 { zRpc_Xdr_Lvalue_Cast_BName, zRpc_Xdr_Lvalue_Cast_BList,
8194 apzRpc_Xdr_Lvalue_Cast_BMachs,
8195 RPC_XDR_LVALUE_CAST_B_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8196 aRpc_Xdr_Lvalue_Cast_BTests, apzRpc_Xdr_Lvalue_Cast_BPatch, 0 },
8197
06bbab1b 8198 { zRs6000_DoubleName, zRs6000_DoubleList,
f5b105ca 8199 apzRs6000_DoubleMachs,
cb8d5168 8200 RS6000_DOUBLE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
37082e6d 8201 aRs6000_DoubleTests, apzRs6000_DoublePatch, 0 },
06bbab1b
BK
8202
8203 { zRs6000_FchmodName, zRs6000_FchmodList,
f5b105ca 8204 apzRs6000_FchmodMachs,
cb8d5168 8205 RS6000_FCHMOD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
37082e6d 8206 aRs6000_FchmodTests, apzRs6000_FchmodPatch, 0 },
06bbab1b
BK
8207
8208 { zRs6000_ParamName, zRs6000_ParamList,
f5b105ca 8209 apzRs6000_ParamMachs,
cb8d5168 8210 RS6000_PARAM_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
37082e6d 8211 aRs6000_ParamTests, apzRs6000_ParamPatch, 0 },
06bbab1b 8212
de0656cf
KJ
8213 { zSco_MathName, zSco_MathList,
8214 apzSco_MathMachs,
8215 SCO_MATH_TEST_CT, FD_MACH_ONLY,
8216 aSco_MathTests, apzSco_MathPatch, 0 },
8217
925a4487
EB
8218 { zSolaris_Math_1Name, zSolaris_Math_1List,
8219 apzSolaris_Math_1Machs,
8220 SOLARIS_MATH_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8221 aSolaris_Math_1Tests, apzSolaris_Math_1Patch, 0 },
8222
8223 { zSolaris_Math_2Name, zSolaris_Math_2List,
8224 apzSolaris_Math_2Machs,
8225 SOLARIS_MATH_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8226 aSolaris_Math_2Tests, apzSolaris_Math_2Patch, 0 },
8227
8228 { zSolaris_Math_3Name, zSolaris_Math_3List,
8229 apzSolaris_Math_3Machs,
8230 SOLARIS_MATH_3_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8231 aSolaris_Math_3Tests, apzSolaris_Math_3Patch, 0 },
8232
8233 { zSolaris_Math_4Name, zSolaris_Math_4List,
8234 apzSolaris_Math_4Machs,
8235 SOLARIS_MATH_4_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8236 aSolaris_Math_4Tests, apzSolaris_Math_4Patch, 0 },
8237
925a4487
EB
8238 { zSolaris_Math_8Name, zSolaris_Math_8List,
8239 apzSolaris_Math_8Machs,
8240 SOLARIS_MATH_8_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8241 aSolaris_Math_8Tests, apzSolaris_Math_8Patch, 0 },
8242
8243 { zSolaris_Math_9Name, zSolaris_Math_9List,
8244 apzSolaris_Math_9Machs,
8245 SOLARIS_MATH_9_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8246 aSolaris_Math_9Tests, apzSolaris_Math_9Patch, 0 },
8247
c951ae40
KG
8248 { zSolaris_Math_10Name, zSolaris_Math_10List,
8249 apzSolaris_Math_10Machs,
8250 SOLARIS_MATH_10_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8251 aSolaris_Math_10Tests, apzSolaris_Math_10Patch, 0 },
8252
7a9cdb10
DD
8253 { zSolaris_Mutex_Init_2Name, zSolaris_Mutex_Init_2List,
8254 apzSolaris_Mutex_Init_2Machs,
8255 SOLARIS_MUTEX_INIT_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8256 aSolaris_Mutex_Init_2Tests, apzSolaris_Mutex_Init_2Patch, 0 },
1f98d85e 8257
2b655a0a
KG
8258 { zSolaris_Rwlock_Init_1Name, zSolaris_Rwlock_Init_1List,
8259 apzSolaris_Rwlock_Init_1Machs,
8260 SOLARIS_RWLOCK_INIT_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8261 aSolaris_Rwlock_Init_1Tests, apzSolaris_Rwlock_Init_1Patch, 0 },
8262
8263 { zSolaris_Once_Init_1Name, zSolaris_Once_Init_1List,
8264 apzSolaris_Once_Init_1Machs,
8265 SOLARIS_ONCE_INIT_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8266 aSolaris_Once_Init_1Tests, apzSolaris_Once_Init_1Patch, 0 },
8267
0a1f02df
KG
8268 { zSolaris_Once_Init_2Name, zSolaris_Once_Init_2List,
8269 apzSolaris_Once_Init_2Machs,
8270 SOLARIS_ONCE_INIT_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8271 aSolaris_Once_Init_2Tests, apzSolaris_Once_Init_2Patch, 0 },
8272
fba39eaf
RH
8273 { zSolaris_Stdio_TagName, zSolaris_Stdio_TagList,
8274 apzSolaris_Stdio_TagMachs,
8275 SOLARIS_STDIO_TAG_TEST_CT, FD_MACH_ONLY,
8276 aSolaris_Stdio_TagTests, apzSolaris_Stdio_TagPatch, 0 },
8277
06bbab1b 8278 { zStatsswtchName, zStatsswtchList,
f5b105ca 8279 apzStatsswtchMachs,
cb8d5168 8280 STATSSWTCH_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
37082e6d 8281 aStatsswtchTests, apzStatsswtchPatch, 0 },
06bbab1b 8282
3be1fb72 8283 { zStdio_Stdarg_HName, zStdio_Stdarg_HList,
f5b105ca 8284 apzStdio_Stdarg_HMachs,
9fcc7481 8285 STDIO_STDARG_H_TEST_CT, FD_MACH_IFNOT | FD_SUBROUTINE,
37082e6d 8286 aStdio_Stdarg_HTests, apzStdio_Stdarg_HPatch, 0 },
3be1fb72 8287
06bbab1b 8288 { zStdio_Va_ListName, zStdio_Va_ListList,
f5b105ca 8289 apzStdio_Va_ListMachs,
9fcc7481 8290 STDIO_VA_LIST_TEST_CT, FD_MACH_IFNOT,
37082e6d 8291 aStdio_Va_ListTests, apzStdio_Va_ListPatch, 0 },
06bbab1b 8292
40d05429
MS
8293 { zStdio_Va_List_ClientsName, zStdio_Va_List_ClientsList,
8294 apzStdio_Va_List_ClientsMachs,
8295 STDIO_VA_LIST_CLIENTS_TEST_CT, FD_MACH_ONLY,
8296 aStdio_Va_List_ClientsTests, apzStdio_Va_List_ClientsPatch, 0 },
8297
7b78a14a
BK
8298 { zStrict_Ansi_NotName, zStrict_Ansi_NotList,
8299 apzStrict_Ansi_NotMachs,
8300 STRICT_ANSI_NOT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8301 aStrict_Ansi_NotTests, apzStrict_Ansi_NotPatch, 0 },
8302
8303 { zStrict_Ansi_Not_CtdName, zStrict_Ansi_Not_CtdList,
8304 apzStrict_Ansi_Not_CtdMachs,
8305 STRICT_ANSI_NOT_CTD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8306 aStrict_Ansi_Not_CtdTests, apzStrict_Ansi_Not_CtdPatch, 0 },
8307
8308 { zStrict_Ansi_OnlyName, zStrict_Ansi_OnlyList,
8309 apzStrict_Ansi_OnlyMachs,
8310 STRICT_ANSI_ONLY_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8311 aStrict_Ansi_OnlyTests, apzStrict_Ansi_OnlyPatch, 0 },
8312
79589c4d
BK
8313 { zStruct_FileName, zStruct_FileList,
8314 apzStruct_FileMachs,
8315 STRUCT_FILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
37082e6d 8316 aStruct_FileTests, apzStruct_FilePatch, 0 },
79589c4d
BK
8317
8318 { zStruct_SockaddrName, zStruct_SockaddrList,
8319 apzStruct_SockaddrMachs,
8320 STRUCT_SOCKADDR_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
37082e6d 8321 aStruct_SockaddrTests, apzStruct_SockaddrPatch, 0 },
79589c4d 8322
4c188026 8323 { zSun_Auth_ProtoName, zSun_Auth_ProtoList,
f5b105ca 8324 apzSun_Auth_ProtoMachs,
cb8d5168 8325 SUN_AUTH_PROTO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
37082e6d 8326 aSun_Auth_ProtoTests, apzSun_Auth_ProtoPatch, 0 },
4c188026 8327
06bbab1b 8328 { zSun_Bogus_IfdefName, zSun_Bogus_IfdefList,
f5b105ca 8329 apzSun_Bogus_IfdefMachs,
cb8d5168 8330 SUN_BOGUS_IFDEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
37082e6d 8331 aSun_Bogus_IfdefTests, apzSun_Bogus_IfdefPatch, 0 },
06bbab1b 8332
06bbab1b 8333 { zSun_CatmacroName, zSun_CatmacroList,
f5b105ca 8334 apzSun_CatmacroMachs,
cb8d5168 8335 SUN_CATMACRO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
37082e6d 8336 aSun_CatmacroTests, apzSun_CatmacroPatch, 0 },
06bbab1b
BK
8337
8338 { zSun_MallocName, zSun_MallocList,
f5b105ca 8339 apzSun_MallocMachs,
06bbab1b 8340 SUN_MALLOC_TEST_CT, FD_MACH_ONLY,
37082e6d 8341 aSun_MallocTests, apzSun_MallocPatch, 0 },
06bbab1b 8342
06bbab1b 8343 { zSun_Rusers_SemiName, zSun_Rusers_SemiList,
f5b105ca 8344 apzSun_Rusers_SemiMachs,
06bbab1b 8345 SUN_RUSERS_SEMI_TEST_CT, FD_MACH_ONLY,
37082e6d 8346 aSun_Rusers_SemiTests, apzSun_Rusers_SemiPatch, 0 },
06bbab1b
BK
8347
8348 { zSun_SignalName, zSun_SignalList,
f5b105ca 8349 apzSun_SignalMachs,
cb8d5168 8350 SUN_SIGNAL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
37082e6d 8351 aSun_SignalTests, apzSun_SignalPatch, 0 },
06bbab1b 8352
06bbab1b 8353 { zSunos_StrlenName, zSunos_StrlenList,
f5b105ca 8354 apzSunos_StrlenMachs,
cb8d5168 8355 SUNOS_STRLEN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
37082e6d 8356 aSunos_StrlenTests, apzSunos_StrlenPatch, 0 },
06bbab1b 8357
de0656cf
KJ
8358 { zSvr4_Disable_OptName, zSvr4_Disable_OptList,
8359 apzSvr4_Disable_OptMachs,
8360 SVR4_DISABLE_OPT_TEST_CT, FD_MACH_ONLY,
8361 aSvr4_Disable_OptTests, apzSvr4_Disable_OptPatch, 0 },
8362
4c188026 8363 { zSvr4_GetcwdName, zSvr4_GetcwdList,
f5b105ca 8364 apzSvr4_GetcwdMachs,
cb8d5168 8365 SVR4_GETCWD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
37082e6d 8366 aSvr4_GetcwdTests, apzSvr4_GetcwdPatch, 0 },
4c188026
BK
8367
8368 { zSvr4_ProfilName, zSvr4_ProfilList,
f5b105ca 8369 apzSvr4_ProfilMachs,
cb8d5168 8370 SVR4_PROFIL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
37082e6d 8371 aSvr4_ProfilTests, apzSvr4_ProfilPatch, 0 },
4c188026 8372
1d109416
NN
8373 { zSvr4_Sighandler_TypeName, zSvr4_Sighandler_TypeList,
8374 apzSvr4_Sighandler_TypeMachs,
8375 SVR4_SIGHANDLER_TYPE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8376 aSvr4_Sighandler_TypeTests, apzSvr4_Sighandler_TypePatch, 0 },
8377
76d2e2c5
NN
8378 { zSvr4_Undeclared_GetrngeName, zSvr4_Undeclared_GetrngeList,
8379 apzSvr4_Undeclared_GetrngeMachs,
8380 SVR4_UNDECLARED_GETRNGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8381 aSvr4_Undeclared_GetrngeTests, apzSvr4_Undeclared_GetrngePatch, 0 },
8382
06bbab1b 8383 { zSysv68_StringName, zSysv68_StringList,
f5b105ca 8384 apzSysv68_StringMachs,
06bbab1b 8385 SYSV68_STRING_TEST_CT, FD_MACH_ONLY,
37082e6d 8386 aSysv68_StringTests, apzSysv68_StringPatch, 0 },
06bbab1b
BK
8387
8388 { zSysz_Stdlib_For_SunName, zSysz_Stdlib_For_SunList,
f5b105ca 8389 apzSysz_Stdlib_For_SunMachs,
cb8d5168 8390 SYSZ_STDLIB_FOR_SUN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
37082e6d 8391 aSysz_Stdlib_For_SunTests, apzSysz_Stdlib_For_SunPatch, 0 },
06bbab1b 8392
3d78f2e9
RH
8393 { zThread_KeywordName, zThread_KeywordList,
8394 apzThread_KeywordMachs,
fd0a3915 8395 THREAD_KEYWORD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
3d78f2e9
RH
8396 aThread_KeywordTests, apzThread_KeywordPatch, 0 },
8397
06bbab1b 8398 { zTinfo_CplusplusName, zTinfo_CplusplusList,
f5b105ca 8399 apzTinfo_CplusplusMachs,
5d7d28c2 8400 TINFO_CPLUSPLUS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
37082e6d 8401 aTinfo_CplusplusTests, apzTinfo_CplusplusPatch, 0 },
06bbab1b 8402
06bbab1b 8403 { zUltrix_ConstName, zUltrix_ConstList,
f5b105ca 8404 apzUltrix_ConstMachs,
5d7d28c2 8405 ULTRIX_CONST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
37082e6d 8406 aUltrix_ConstTests, apzUltrix_ConstPatch, 0 },
06bbab1b 8407
5d7d28c2
BK
8408 { zUltrix_Const2Name, zUltrix_Const2List,
8409 apzUltrix_Const2Machs,
8410 ULTRIX_CONST2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
37082e6d 8411 aUltrix_Const2Tests, apzUltrix_Const2Patch, 0 },
5d7d28c2 8412
06bbab1b 8413 { zVa_I960_MacroName, zVa_I960_MacroList,
f5b105ca 8414 apzVa_I960_MacroMachs,
5d7d28c2 8415 VA_I960_MACRO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
37082e6d 8416 aVa_I960_MacroTests, apzVa_I960_MacroPatch, 0 },
06bbab1b
BK
8417
8418 { zVoid_NullName, zVoid_NullList,
f5b105ca 8419 apzVoid_NullMachs,
5d7d28c2 8420 VOID_NULL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
37082e6d 8421 aVoid_NullTests, apzVoid_NullPatch, 0 },
06bbab1b
BK
8422
8423 { zVxworks_Gcc_ProblemName, zVxworks_Gcc_ProblemList,
f5b105ca 8424 apzVxworks_Gcc_ProblemMachs,
06bbab1b 8425 VXWORKS_GCC_PROBLEM_TEST_CT, FD_MACH_ONLY,
37082e6d 8426 aVxworks_Gcc_ProblemTests, apzVxworks_Gcc_ProblemPatch, 0 },
06bbab1b
BK
8427
8428 { zVxworks_Needs_VxtypesName, zVxworks_Needs_VxtypesList,
f5b105ca 8429 apzVxworks_Needs_VxtypesMachs,
5d7d28c2 8430 VXWORKS_NEEDS_VXTYPES_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
37082e6d 8431 aVxworks_Needs_VxtypesTests, apzVxworks_Needs_VxtypesPatch, 0 },
06bbab1b
BK
8432
8433 { zVxworks_Needs_VxworksName, zVxworks_Needs_VxworksList,
f5b105ca 8434 apzVxworks_Needs_VxworksMachs,
06bbab1b 8435 VXWORKS_NEEDS_VXWORKS_TEST_CT, FD_MACH_ONLY,
37082e6d 8436 aVxworks_Needs_VxworksTests, apzVxworks_Needs_VxworksPatch, 0 },
06bbab1b
BK
8437
8438 { zVxworks_TimeName, zVxworks_TimeList,
f5b105ca 8439 apzVxworks_TimeMachs,
5d7d28c2 8440 VXWORKS_TIME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
37082e6d 8441 aVxworks_TimeTests, apzVxworks_TimePatch, 0 },
06bbab1b
BK
8442
8443 { zX11_ClassName, zX11_ClassList,
f5b105ca 8444 apzX11_ClassMachs,
c1fd153e 8445 X11_CLASS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
37082e6d 8446 aX11_ClassTests, apzX11_ClassPatch, 0 },
06bbab1b
BK
8447
8448 { zX11_Class_UsageName, zX11_Class_UsageList,
f5b105ca 8449 apzX11_Class_UsageMachs,
5d7d28c2 8450 X11_CLASS_USAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
37082e6d 8451 aX11_Class_UsageTests, apzX11_Class_UsagePatch, 0 },
06bbab1b
BK
8452
8453 { zX11_NewName, zX11_NewList,
f5b105ca 8454 apzX11_NewMachs,
06bbab1b 8455 X11_NEW_TEST_CT, FD_MACH_ONLY,
37082e6d 8456 aX11_NewTests, apzX11_NewPatch, 0 },
06bbab1b
BK
8457
8458 { zX11_SprintfName, zX11_SprintfList,
f5b105ca 8459 apzX11_SprintfMachs,
5d7d28c2 8460 X11_SPRINTF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
37082e6d 8461 aX11_SprintfTests, apzX11_SprintfPatch, 0 }
06bbab1b 8462};