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