]> git.ipfire.org Git - thirdparty/gcc.git/blame - fixincludes/fixincl.x
2019-06-21 Richard Biener <rguenther@suse.de>
[thirdparty/gcc.git] / fixincludes / fixincl.x
CommitLineData
d45e22c2 1/* -*- buffer-read-only: t -*- vi: set ro:
fde53671 2 *
122d538c 3 * DO NOT EDIT THIS FILE (fixincl.x)
fde53671 4 *
6af1c8e1 5 * It has been AutoGen-ed May 11, 2019 at 03:09:50 PM by AutoGen 5.17.4
122d538c 6 * From the definitions inclhack.def
7 * and the template file fixincl
d45e22c2 8 */
6af1c8e1 9/* DO NOT SVN-MERGE THIS FILE, EITHER Sat May 11 15:09:50 BST 2019
d45e22c2 10 *
11 * You must regenerate it. Use the ./genfixes script.
fdb8fb96 12 *
d45e22c2 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.
fdb8fb96 17 *
62f18056 18 * This file contains 252 fixup descriptions.
fdb8fb96 19 *
49e3683c 20 * See README for more information.
fdb8fb96 21 *
2d87ca1a 22 * inclhack copyright (c) 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
23 * 2006, 2007, 2008
d4c4b01d 24 * The Free Software Foundation, Inc.
c1b28c63 25 *
2d87ca1a 26 * inclhack is free software: you can redistribute it and/or modify it
6af9f7ea 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.
fdb8fb96 30 *
6af9f7ea 31 * inclhack is distributed in the hope that it will be useful, but
32 * WITHOUT ANY WARRANTY; without even the implied warranty of
fdb8fb96 33 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
34 * See the GNU General Public License for more details.
35 *
6af9f7ea 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/>.
3d906fac 38 */
b32d497c 39#ifndef SED_PROGRAM
40#define SED_PROGRAM "/usr/bin/sed"
41#endif
42static char const sed_cmd_z[] = SED_PROGRAM;
3d906fac 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
d4c4b01d 65 */
3d906fac 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 };
d4c4b01d 101
81911845 102/* * * * * * * * * * * * * * * * * * * * * * * * * *
103 *
104 * Description of Aab_Aix_Fcntl fix
105 */
106tSCC zAab_Aix_FcntlName[] =
107 "AAB_aix_fcntl";
108
109/*
110 * File name selection pattern
111 */
112tSCC zAab_Aix_FcntlList[] =
113 "fcntl.h\0";
114/*
115 * Machine/OS name selection pattern
116 */
117tSCC* apzAab_Aix_FcntlMachs[] = {
118 "*-*-aix*",
119 (const char*)NULL };
120
121/*
122 * content selection pattern - do fix if pattern found
123 */
124tSCC zAab_Aix_FcntlSelect0[] =
125 "define open[ \t]open64";
126
127#define AAB_AIX_FCNTL_TEST_CT 1
128static tTestDesc aAab_Aix_FcntlTests[] = {
129 { TT_EGREP, zAab_Aix_FcntlSelect0, (regex_t*)NULL }, };
130
131/*
132 * Fix Command Arguments for Aab_Aix_Fcntl
133 */
134static const char* apzAab_Aix_FcntlPatch[] = {
135 "wrap",
136 "",
137 "\n\
138#if defined __GNUG__ && defined _LARGE_FILES && defined __cplusplus\n\
139#define __need__aix_fcntl_h_fix\n\
140#ifdef __need__aix_fcntl_h_fix\n\
141#undef open\n\
142#undef creat\n\
143#undef openat\n\
144/* Alias the symbols using asm */\n\
145extern \"C\" {\n\
146extern int open(const char *, int, ...) __asm__(\"open64\");\n\
147extern int creat(const char *, mode_t) __asm__(\"creat64\");\n\
148#if (_XOPEN_SOURCE >= 700)\n\
149extern int openat(int, const char *, int, ...) __asm__(\"open64at\");\n\
150#endif\n\
151}\n\
152#endif\n\
153#endif\n",
154 (char*)NULL };
155
f2563b02 156/* * * * * * * * * * * * * * * * * * * * * * * * * *
157 *
158 * Description of Aab_Darwin7_9_Long_Double_Funcs fix
159 */
160tSCC zAab_Darwin7_9_Long_Double_FuncsName[] =
161 "AAB_darwin7_9_long_double_funcs";
162
163/*
164 * File name selection pattern
165 */
166tSCC zAab_Darwin7_9_Long_Double_FuncsList[] =
e9afa104 167 "architecture/ppc/math.h\0";
f2563b02 168/*
169 * Machine/OS name selection pattern
170 */
171tSCC* apzAab_Darwin7_9_Long_Double_FuncsMachs[] = {
172 "*-*-darwin7.9*",
173 (const char*)NULL };
174
175/*
176 * content bypass pattern - skip fix if pattern found
177 */
178tSCC zAab_Darwin7_9_Long_Double_FuncsBypass0[] =
179 "powl";
180
181#define AAB_DARWIN7_9_LONG_DOUBLE_FUNCS_TEST_CT 1
182static tTestDesc aAab_Darwin7_9_Long_Double_FuncsTests[] = {
183 { TT_NEGREP, zAab_Darwin7_9_Long_Double_FuncsBypass0, (regex_t*)NULL }, };
184
185/*
186 * Fix Command Arguments for Aab_Darwin7_9_Long_Double_Funcs
187 */
188static const char* apzAab_Darwin7_9_Long_Double_FuncsPatch[] = {
189"/* This file prototypes the long double functions available on Mac OS\n\
190 10.3.9. */\n\
191#ifndef __MATH__\n\
baee91be 192# undef __APPLE_CC__\n\
193# define __APPLE_CC__ 1345\n\
f2563b02 194# include_next <architecture/ppc/math.h>\n\
baee91be 195# undef __APPLE_CC__\n\
196# define __APPLE_CC__ 1\n\
f2563b02 197# ifndef __LIBMLDBL_COMPAT\n\
198# ifdef __LONG_DOUBLE_128__\n\
199# define __LIBMLDBL_COMPAT(sym) __asm(\"_\" #sym \"$LDBL128\")\n\
200# else\n\
201# define __LIBMLDBL_COMPAT(sym)\n\
202# endif /* __LONG_DOUBLE_128__ */\n\
203# endif /* __LIBMLDBL_COMPAT */\n\
204# ifdef __cplusplus\n\
205 extern \"C\" {\n\
206# endif\n\
207 extern long double acosl( long double ) __LIBMLDBL_COMPAT(acosl);\n\
208 extern long double asinl( long double ) __LIBMLDBL_COMPAT(asinl);\n\
209 extern long double atanl( long double ) __LIBMLDBL_COMPAT(atanl);\n\
210 extern long double atan2l( long double, long double ) __LIBMLDBL_COMPAT(atan2l);\n\
211 extern long double cosl( long double ) __LIBMLDBL_COMPAT(cosl);\n\
212 extern long double sinl( long double ) __LIBMLDBL_COMPAT(sinl);\n\
213 extern long double tanl( long double ) __LIBMLDBL_COMPAT(tanl);\n\
214 extern long double acoshl( long double ) __LIBMLDBL_COMPAT(acoshl);\n\
215 extern long double asinhl( long double ) __LIBMLDBL_COMPAT(asinhl);\n\
216 extern long double atanhl( long double ) __LIBMLDBL_COMPAT(atanhl);\n\
217 extern long double coshl( long double ) __LIBMLDBL_COMPAT(coshl);\n\
218 extern long double sinhl( long double ) __LIBMLDBL_COMPAT(sinhl);\n\
219 extern long double tanhl( long double ) __LIBMLDBL_COMPAT(tanhl);\n\
220 extern long double expl( long double ) __LIBMLDBL_COMPAT(expl);\n\
221 extern long double exp2l( long double ) __LIBMLDBL_COMPAT(exp2l);\n\
222 extern long double expm1l( long double ) __LIBMLDBL_COMPAT(expm1l);\n\
223 extern long double logl( long double ) __LIBMLDBL_COMPAT(logl);\n\
224 extern long double log10l( long double ) __LIBMLDBL_COMPAT(log10l);\n\
225 extern long double log2l( long double ) __LIBMLDBL_COMPAT(log2l);\n\
226 extern long double log1pl( long double ) __LIBMLDBL_COMPAT(log1pl);\n\
227 extern long double logbl( long double ) __LIBMLDBL_COMPAT(logbl);\n\
228 extern long double modfl( long double, long double * ) __LIBMLDBL_COMPAT(modfl);\n\
229 extern long double ldexpl( long double, int ) __LIBMLDBL_COMPAT(ldexpl);\n\
230 extern long double frexpl( long double, int * ) __LIBMLDBL_COMPAT(frexpl);\n\
231 extern int ilogbl( long double ) __LIBMLDBL_COMPAT(ilogbl);\n\
232 extern long double scalbnl( long double, int ) __LIBMLDBL_COMPAT(scalbnl);\n\
233 extern long double scalblnl( long double, long int ) __LIBMLDBL_COMPAT(scalblnl);\n\
234 extern long double fabsl( long double ) __LIBMLDBL_COMPAT(fabsl);\n\
235 extern long double cbrtl( long double ) __LIBMLDBL_COMPAT(cbrtl);\n\
236 extern long double hypotl( long double, long double ) __LIBMLDBL_COMPAT(hypotl);\n\
237 extern long double powl( long double, long double ) __LIBMLDBL_COMPAT(powl);\n\
238 extern long double sqrtl( long double ) __LIBMLDBL_COMPAT(sqrtl);\n\
239 extern long double erfl( long double ) __LIBMLDBL_COMPAT(erfl);\n\
240 extern long double erfcl( long double ) __LIBMLDBL_COMPAT(erfcl);\n\
241 extern long double lgammal( long double ) __LIBMLDBL_COMPAT(lgammal);\n\
242 extern long double tgammal( long double ) __LIBMLDBL_COMPAT(tgammal);\n\
243 extern long double ceill( long double ) __LIBMLDBL_COMPAT(ceill);\n\
244 extern long double floorl( long double ) __LIBMLDBL_COMPAT(floorl);\n\
245 extern long double nearbyintl( long double ) __LIBMLDBL_COMPAT(nearbyintl);\n\
246 extern long double rintl( long double ) __LIBMLDBL_COMPAT(rintl);\n\
247 extern long int lrintl( long double ) __LIBMLDBL_COMPAT(lrintl);\n\
248 extern long long int llrintl( long double ) __LIBMLDBL_COMPAT(llrintl);\n\
249 extern long double roundl( long double ) __LIBMLDBL_COMPAT(roundl);\n\
250 extern long int lroundl( long double ) __LIBMLDBL_COMPAT(lroundl);\n\
251 extern long long int llroundl( long double ) __LIBMLDBL_COMPAT(llroundl);\n\
252 extern long double truncl( long double ) __LIBMLDBL_COMPAT(truncl);\n\
253 extern long double fmodl( long double, long double) __LIBMLDBL_COMPAT(fmodl);\n\
254 extern long double remainderl( long double, long double ) __LIBMLDBL_COMPAT(remainderl);\n\
255 extern long double remquol( long double, long double, int * ) __LIBMLDBL_COMPAT(remquol);\n\
256 extern long double copysignl( long double, long double ) __LIBMLDBL_COMPAT(copysignl);\n\
257 extern long double nanl( const char * ) __LIBMLDBL_COMPAT(nanl);\n\
258 extern long double nextafterl( long double, long double ) __LIBMLDBL_COMPAT(nextafterl);\n\
259 extern long double nexttowardl( long double, long double ) __LIBMLDBL_COMPAT(nexttowardl);\n\
260 extern long double fdiml( long double, long double ) __LIBMLDBL_COMPAT(fdiml);\n\
261 extern long double fmaxl( long double, long double ) __LIBMLDBL_COMPAT(fmaxl);\n\
262 extern long double fminl( long double, long double ) __LIBMLDBL_COMPAT(fminl);\n\
263 extern long double fmal( long double, long double, long double ) __LIBMLDBL_COMPAT(fmal);\n\
264# ifdef __cplusplus\n\
265 }\n\
266# endif\n\
267#endif /* __MATH__ */",
268 (char*)NULL };
269
e26c299a 270/* * * * * * * * * * * * * * * * * * * * * * * * * *
271 *
bb304030 272 * Description of Aab_Fd_Zero_Asm_Posix_Types_H fix
e26c299a 273 */
bb304030 274tSCC zAab_Fd_Zero_Asm_Posix_Types_HName[] =
d4c4b01d 275 "AAB_fd_zero_asm_posix_types_h";
276
e26c299a 277/*
278 * File name selection pattern
279 */
bb304030 280tSCC zAab_Fd_Zero_Asm_Posix_Types_HList[] =
e9afa104 281 "asm/posix_types.h\0";
e26c299a 282/*
283 * Machine/OS name selection pattern
284 */
bb304030 285tSCC* apzAab_Fd_Zero_Asm_Posix_Types_HMachs[] = {
e800dd2f 286 "i[34567]86-*-linux*",
90c7fd7a 287 (const char*)NULL };
e26c299a 288
289/*
bb304030 290 * content bypass pattern - skip fix if pattern found
e26c299a 291 */
bb304030 292tSCC zAab_Fd_Zero_Asm_Posix_Types_HBypass0[] =
293 "} while";
54bb64fb 294tSCC zAab_Fd_Zero_Asm_Posix_Types_HBypass1[] =
295 "x86_64";
8f4ca8fb 296tSCC zAab_Fd_Zero_Asm_Posix_Types_HBypass2[] =
297 "posix_types_64";
bb304030 298
8f4ca8fb 299#define AAB_FD_ZERO_ASM_POSIX_TYPES_H_TEST_CT 3
2548396b 300static tTestDesc aAab_Fd_Zero_Asm_Posix_Types_HTests[] = {
54bb64fb 301 { TT_NEGREP, zAab_Fd_Zero_Asm_Posix_Types_HBypass0, (regex_t*)NULL },
8f4ca8fb 302 { TT_NEGREP, zAab_Fd_Zero_Asm_Posix_Types_HBypass1, (regex_t*)NULL },
303 { TT_NEGREP, zAab_Fd_Zero_Asm_Posix_Types_HBypass2, (regex_t*)NULL }, };
bb304030 304
305/*
306 * Fix Command Arguments for Aab_Fd_Zero_Asm_Posix_Types_H
307 */
2548396b 308static const char* apzAab_Fd_Zero_Asm_Posix_Types_HPatch[] = {
bb304030 309"/* This file fixes a bug in the __FD_ZERO macro\n\
310 for older versions of the Linux kernel. */\n\
e26c299a 311#ifndef _POSIX_TYPES_H_WRAPPER\n\
312#include <features.h>\n\
5c0b86e6 313 #include_next <asm/posix_types.h>\n\n\
e26c299a 314#if defined(__FD_ZERO) && !defined(__GLIBC__)\n\
315#undef __FD_ZERO\n\
bb304030 316#define __FD_ZERO(fdsetp) \\\n\
317 do { \\\n\
318 int __d0, __d1; \\\n\
68d0517a 319__asm__ __volatile__(\"cld ; rep ; stosl\" \\\n\
320: \"=&c\" (__d0), \"=&D\" (__d1) \\\n\
321: \"a\" (0), \"0\" (__FDSET_LONGS), \\\n\
322 \"1\" ((__kernel_fd_set *) (fdsetp)) :\"memory\"); \\\n\
bb304030 323 } while (0)\n\
5c0b86e6 324#endif\n\n\
e26c299a 325#define _POSIX_TYPES_H_WRAPPER\n\
68d0517a 326#endif /* _POSIX_TYPES_H_WRAPPER */",
e26c299a 327 (char*)NULL };
328
329/* * * * * * * * * * * * * * * * * * * * * * * * * *
330 *
bb304030 331 * Description of Aab_Fd_Zero_Gnu_Types_H fix
e26c299a 332 */
bb304030 333tSCC zAab_Fd_Zero_Gnu_Types_HName[] =
d4c4b01d 334 "AAB_fd_zero_gnu_types_h";
335
e26c299a 336/*
337 * File name selection pattern
338 */
bb304030 339tSCC zAab_Fd_Zero_Gnu_Types_HList[] =
e9afa104 340 "gnu/types.h\0";
e26c299a 341/*
342 * Machine/OS name selection pattern
343 */
bb304030 344tSCC* apzAab_Fd_Zero_Gnu_Types_HMachs[] = {
e800dd2f 345 "i[34567]86-*-linux*",
90c7fd7a 346 (const char*)NULL };
bb304030 347#define AAB_FD_ZERO_GNU_TYPES_H_TEST_CT 0
bb304030 348#define aAab_Fd_Zero_Gnu_Types_HTests (tTestDesc*)NULL
e26c299a 349
350/*
bb304030 351 * Fix Command Arguments for Aab_Fd_Zero_Gnu_Types_H
e26c299a 352 */
2548396b 353static const char* apzAab_Fd_Zero_Gnu_Types_HPatch[] = {
bb304030 354"/* This file fixes a bug in the __FD_ZERO macro present in glibc 1.x. */\n\
e26c299a 355#ifndef _TYPES_H_WRAPPER\n\
356#include <features.h>\n\
2b5c5c15 357#include_next <gnu/types.h>\n\n\
e26c299a 358#if defined(__FD_ZERO) && !defined(__GLIBC__)\n\
359#undef __FD_ZERO\n\
9b20d84f 360# define __FD_ZERO(fdsetp) \\\n\
361 do { \\\n\
362 int __d0, __d1; \\\n\
363 __asm__ __volatile__(\"cld ; rep ; stosl\" \\\n\
364 : \"=&c\" (__d0), \"=&D\" (__d1) \\\n\
365 : \"a\" (0), \"0\" (__FDSET_LONGS), \\\n\
366 \"1\" ((__fd_set *) (fdsetp)) :\"memory\"); \\\n\
bb304030 367 } while (0)\n\
5c0b86e6 368#endif\n\n\
e26c299a 369#define _TYPES_H_WRAPPER\n\
2b5c5c15 370#endif /* _TYPES_H_WRAPPER */",
e26c299a 371 (char*)NULL };
372
373/* * * * * * * * * * * * * * * * * * * * * * * * * *
374 *
bb304030 375 * Description of Aab_Fd_Zero_Selectbits_H fix
e26c299a 376 */
bb304030 377tSCC zAab_Fd_Zero_Selectbits_HName[] =
d4c4b01d 378 "AAB_fd_zero_selectbits_h";
379
e26c299a 380/*
381 * File name selection pattern
382 */
bb304030 383tSCC zAab_Fd_Zero_Selectbits_HList[] =
e9afa104 384 "selectbits.h\0";
e26c299a 385/*
386 * Machine/OS name selection pattern
387 */
bb304030 388tSCC* apzAab_Fd_Zero_Selectbits_HMachs[] = {
e800dd2f 389 "i[34567]86-*-linux*",
90c7fd7a 390 (const char*)NULL };
bb304030 391#define AAB_FD_ZERO_SELECTBITS_H_TEST_CT 0
bb304030 392#define aAab_Fd_Zero_Selectbits_HTests (tTestDesc*)NULL
e26c299a 393
394/*
bb304030 395 * Fix Command Arguments for Aab_Fd_Zero_Selectbits_H
e26c299a 396 */
2548396b 397static const char* apzAab_Fd_Zero_Selectbits_HPatch[] = {
bb304030 398"/* This file fixes a bug in the __FD_ZERO macro present in glibc 2.0.x. */\n\
e26c299a 399#ifndef _SELECTBITS_H_WRAPPER\n\
2b5c5c15 400 #include <features.h>\n\
401 #include_next <selectbits.h>\n\n\
402 #if defined(__FD_ZERO) && defined(__GLIBC__) \\\\\n\
403 && defined(__GLIBC_MINOR__) && __GLIBC__ == 2 \\\\\n\
404 && __GLIBC_MINOR__ == 0\n\
405 #undef __FD_ZERO\n\
406 #define __FD_ZERO(fdsetp) \\\\\n\
407 do { \\\\\n\
408 int __d0, __d1; \\\\\n\
409 __asm__ __volatile__ (\"cld; rep; stosl\" \\\\\n\
410 : \"=&c\" (__d0), \"=&D\" (__d1) \\\\\n\
411 : \"a\" (0), \"0\" (sizeof (__fd_set) \\\\\n\
412 / sizeof (__fd_mask)), \\\\\n\
413 \"1\" ((__fd_mask *) (fdsetp)) \\\\\n\
414 : \"memory\"); \\\\\n\
415 } while (0)\n\
416 #endif\n\n\
417 #define _SELECTBITS_H_WRAPPER\n\
418#endif /* _SELECTBITS_H_WRAPPER */",
e26c299a 419 (char*)NULL };
420
b93c3ed1 421/* * * * * * * * * * * * * * * * * * * * * * * * * *
422 *
423 * Description of Aab_Solaris_Sys_Varargs_H fix
424 */
425tSCC zAab_Solaris_Sys_Varargs_HName[] =
426 "AAB_solaris_sys_varargs_h";
427
428/*
429 * File name selection pattern
430 */
431tSCC zAab_Solaris_Sys_Varargs_HList[] =
e9afa104 432 "sys/varargs.h\0";
b93c3ed1 433/*
434 * Machine/OS name selection pattern
435 */
436tSCC* apzAab_Solaris_Sys_Varargs_HMachs[] = {
437 "*-*-solaris*",
438 (const char*)NULL };
439#define AAB_SOLARIS_SYS_VARARGS_H_TEST_CT 0
440#define aAab_Solaris_Sys_Varargs_HTests (tTestDesc*)NULL
441
442/*
443 * Fix Command Arguments for Aab_Solaris_Sys_Varargs_H
444 */
445static const char* apzAab_Solaris_Sys_Varargs_HPatch[] = {
446"#ifdef __STDC__\n\
2b5c5c15 447 #include <stdarg.h>\n\
b93c3ed1 448#else\n\
2b5c5c15 449 #include <varargs.h>\n\
450#endif",
b93c3ed1 451 (char*)NULL };
452
d6d7d999 453/* * * * * * * * * * * * * * * * * * * * * * * * * *
454 *
455 * Description of Aab_Sun_Memcpy fix
456 */
d6d7d999 457tSCC zAab_Sun_MemcpyName[] =
d4c4b01d 458 "AAB_sun_memcpy";
459
d6d7d999 460/*
461 * File name selection pattern
462 */
463tSCC zAab_Sun_MemcpyList[] =
e9afa104 464 "memory.h\0";
d6d7d999 465/*
466 * Machine/OS name selection pattern
467 */
468#define apzAab_Sun_MemcpyMachs (const char**)NULL
469
470/*
471 * content selection pattern - do fix if pattern found
472 */
473tSCC zAab_Sun_MemcpySelect0[] =
474 "/\\*\t@\\(#\\)(head/memory.h\t50.1\t |memory\\.h 1\\.[2-4] 8./../.. SMI; from S5R2 1\\.2\t)\\*/";
475
476#define AAB_SUN_MEMCPY_TEST_CT 1
2548396b 477static tTestDesc aAab_Sun_MemcpyTests[] = {
d6d7d999 478 { TT_EGREP, zAab_Sun_MemcpySelect0, (regex_t*)NULL }, };
479
480/*
481 * Fix Command Arguments for Aab_Sun_Memcpy
482 */
2548396b 483static const char* apzAab_Sun_MemcpyPatch[] = {
d6d7d999 484"/* This file was generated by fixincludes */\n\
485#ifndef __memory_h__\n\
2b5c5c15 486 #define __memory_h__\n\n\
487 #ifdef __STDC__\n\
488 extern void *memccpy();\n\
489 extern void *memchr();\n\
490 extern void *memcpy();\n\
491 extern void *memset();\n\
492 #else\n\
493 extern char *memccpy();\n\
494 extern char *memchr();\n\
495 extern char *memcpy();\n\
496 extern char *memset();\n\
497 #endif /* __STDC__ */\n\n\
498 extern int memcmp();\n\n\
3452f1c7 499#endif /* __memory_h__ */",
57829215 500 (char*)NULL };
501
32f37500 502/* * * * * * * * * * * * * * * * * * * * * * * * * *
503 *
504 * Description of Aab_Vxworks_Assert fix
505 */
506tSCC zAab_Vxworks_AssertName[] =
507 "AAB_vxworks_assert";
508
509/*
510 * File name selection pattern
511 */
512tSCC zAab_Vxworks_AssertList[] =
513 "assert.h\0";
514/*
515 * Machine/OS name selection pattern
516 */
517tSCC* apzAab_Vxworks_AssertMachs[] = {
518 "*-*-vxworks*",
519 (const char*)NULL };
520#define AAB_VXWORKS_ASSERT_TEST_CT 0
521#define aAab_Vxworks_AssertTests (tTestDesc*)NULL
522
523/*
524 * Fix Command Arguments for Aab_Vxworks_Assert
525 */
526static const char* apzAab_Vxworks_AssertPatch[] = {
3d2d7dab 527"#ifdef _ASSERT_H\n\
528#undef _ASSERT_H\n\
32f37500 529#undef assert\n\
530#endif\n\n\
3d2d7dab 531#define _ASSERT_H\n\n\
532#ifdef __cplusplus\n\
533extern \"C\" {\n\
534#endif\n\n\
32f37500 535#if defined(__STDC__) || defined(__cplusplus)\n\
536extern void __assert (const char*);\n\
537#else\n\
538extern void __assert ();\n\
539#endif\n\n\
540#ifdef NDEBUG\n\
541#define assert(ign) ((void)0)\n\
542#else\n\n\
543#define ASSERT_STRINGIFY(str) ASSERT_STRINGIFY_HELPER(str)\n\
544#define ASSERT_STRINGIFY_HELPER(str) #str\n\n\
545#define assert(test) ((void) \\\n\
546 ((test) ? ((void)0) : \\\n\
3d2d7dab 547 __assert(\"Assertion failed: \" #test \", file \" \\\n\
32f37500 548 __FILE__ \", line \" ASSERT_STRINGIFY(__LINE__) \"\\n\")))\n\n\
549#endif\n\n\
3d2d7dab 550#ifdef __cplusplus\n\
551}\n\
32f37500 552#endif",
553 (char*)NULL };
554
555/* * * * * * * * * * * * * * * * * * * * * * * * * *
556 *
557 * Description of Aab_Vxworks_Regs_Vxtypes fix
558 */
559tSCC zAab_Vxworks_Regs_VxtypesName[] =
560 "AAB_vxworks_regs_vxtypes";
561
562/*
563 * File name selection pattern
564 */
565tSCC zAab_Vxworks_Regs_VxtypesList[] =
566 "regs.h\0";
567/*
568 * Machine/OS name selection pattern
569 */
570tSCC* apzAab_Vxworks_Regs_VxtypesMachs[] = {
571 "*-*-vxworks*",
572 (const char*)NULL };
573#define AAB_VXWORKS_REGS_VXTYPES_TEST_CT 0
574#define aAab_Vxworks_Regs_VxtypesTests (tTestDesc*)NULL
575
576/*
577 * Fix Command Arguments for Aab_Vxworks_Regs_Vxtypes
578 */
579static const char* apzAab_Vxworks_Regs_VxtypesPatch[] = {
580"#ifndef _REGS_H\n\
581#define _REGS_H\n\
948aa3c9 582/* regs.h depends on CPU_FAMILY being properly defined, which\n\
583 is done by vxCpu.h. */\n\
584#include <types/vxCpu.h>\n\
585/* regs.h includes a CPU_FAMILY-specific header that requires\n\
586 vxTypesOld.h to already have been included. Those headers\n\
587 contain proper _ASMLANGUAGE guards around their typedefs,\n\
588 but vxTypesOld.h itself does not. So we avoid including\n\
589 vxTypesOld.h from assembly. */\n\
590#ifndef _ASMLANGUAGE\n\
32f37500 591#include <types/vxTypesOld.h>\n\
948aa3c9 592#endif\n\
32f37500 593#include_next <arch/../regs.h>\n\
594#endif",
595 (char*)NULL };
596
32f37500 597/* * * * * * * * * * * * * * * * * * * * * * * * * *
598 *
599 * Description of Aab_Vxworks_Unistd fix
600 */
601tSCC zAab_Vxworks_UnistdName[] =
602 "AAB_vxworks_unistd";
603
604/*
605 * File name selection pattern
606 */
607tSCC zAab_Vxworks_UnistdList[] =
608 "unistd.h\0";
609/*
610 * Machine/OS name selection pattern
611 */
612tSCC* apzAab_Vxworks_UnistdMachs[] = {
613 "*-*-vxworks*",
614 (const char*)NULL };
615#define AAB_VXWORKS_UNISTD_TEST_CT 0
616#define aAab_Vxworks_UnistdTests (tTestDesc*)NULL
617
618/*
619 * Fix Command Arguments for Aab_Vxworks_Unistd
620 */
621static const char* apzAab_Vxworks_UnistdPatch[] = {
622"#ifndef _UNISTD_H\n\
623#define _UNISTD_H\n\
624#include_next <unistd.h>\n\
625#include <ioLib.h>\n\
626#ifndef STDIN_FILENO\n\
627#define STDIN_FILENO 0\n\
628#endif\n\
629#ifndef STDOUT_FILENO\n\
630#define STDOUT_FILENO 1\n\
631#endif\n\
632#ifndef STDERR_FILENO\n\
633#define STDERR_FILENO 2\n\
634#endif\n\
635#endif /* _UNISTD_H */",
636 (char*)NULL };
637
8f1baf26 638/* * * * * * * * * * * * * * * * * * * * * * * * * *
639 *
640 * Description of Aix_Assert fix
641 */
642tSCC zAix_AssertName[] =
643 "aix_assert";
644
645/*
646 * File name selection pattern
647 */
648tSCC zAix_AssertList[] =
649 "assert.h\0";
650/*
651 * Machine/OS name selection pattern
652 */
653tSCC* apzAix_AssertMachs[] = {
654 "*-*-aix*",
655 (const char*)NULL };
656
657/*
658 * content selection pattern - do fix if pattern found
659 */
660tSCC zAix_AssertSelect0[] =
661 "#define[ \t]static_assert[ \t]_Static_assert";
662
663#define AIX_ASSERT_TEST_CT 1
664static tTestDesc aAix_AssertTests[] = {
665 { TT_EGREP, zAix_AssertSelect0, (regex_t*)NULL }, };
666
667/*
668 * Fix Command Arguments for Aix_Assert
669 */
670static const char* apzAix_AssertPatch[] = {
671 "format",
672 "#ifndef __cplusplus\n\
673%0\n\
674#endif",
675 (char*)NULL };
676
253f9954 677/* * * * * * * * * * * * * * * * * * * * * * * * * *
678 *
679 * Description of Aix_Complex fix
680 */
681tSCC zAix_ComplexName[] =
682 "aix_complex";
683
684/*
685 * File name selection pattern
686 */
687tSCC zAix_ComplexList[] =
688 "complex.h\0";
689/*
690 * Machine/OS name selection pattern
691 */
82c99fed 692tSCC* apzAix_ComplexMachs[] = {
693 "*-*-aix*",
694 (const char*)NULL };
253f9954 695
696/*
697 * content selection pattern - do fix if pattern found
698 */
699tSCC zAix_ComplexSelect0[] =
82c99fed 700 "#define[ \t]_Complex_I[ \t]__I";
253f9954 701
702#define AIX_COMPLEX_TEST_CT 1
703static tTestDesc aAix_ComplexTests[] = {
704 { TT_EGREP, zAix_ComplexSelect0, (regex_t*)NULL }, };
705
706/*
707 * Fix Command Arguments for Aix_Complex
708 */
82c99fed 709static const char* apzAix_ComplexPatch[] = {
710 "format",
711 "#define _Complex_I (__extension__ 1.0iF)",
253f9954 712 (char*)NULL };
713
c82f076e 714/* * * * * * * * * * * * * * * * * * * * * * * * * *
715 *
716 * Description of Aix_Externc fix
717 */
718tSCC zAix_ExterncName[] =
719 "aix_externc";
720
721/*
722 * File name selection pattern
723 */
724tSCC zAix_ExterncList[] =
725 "ctype.h\0fcntl.h\0langinfo.h\0ldfcn.h\0sys/localedef.h\0sys/times.h\0";
726/*
727 * Machine/OS name selection pattern
728 */
729tSCC* apzAix_ExterncMachs[] = {
730 "*-*-aix*",
731 (const char*)NULL };
732
733/*
734 * content bypass pattern - skip fix if pattern found
735 */
736tSCC zAix_ExterncBypass0[] =
737 "extern \"C\"";
738
739#define AIX_EXTERNC_TEST_CT 1
740static tTestDesc aAix_ExterncTests[] = {
741 { TT_NEGREP, zAix_ExterncBypass0, (regex_t*)NULL }, };
742
743/*
744 * Fix Command Arguments for Aix_Externc
745 */
746static const char* apzAix_ExterncPatch[] = {
747 "wrap",
748 "#ifdef __cplusplus\n\
749extern \"C\" {\n\
750#endif\n",
751 "#ifdef __cplusplus\n\
752}\n\
753#endif\n",
754 (char*)NULL };
755
756/* * * * * * * * * * * * * * * * * * * * * * * * * *
757 *
758 * Description of Aix_Externcpp1 fix
759 */
760tSCC zAix_Externcpp1Name[] =
761 "aix_externcpp1";
762
763/*
764 * File name selection pattern
765 */
766tSCC zAix_Externcpp1List[] =
767 "sys/socket.h\0";
768/*
769 * Machine/OS name selection pattern
770 */
771tSCC* apzAix_Externcpp1Machs[] = {
772 "*-*-aix*",
773 (const char*)NULL };
774
775/*
776 * content selection pattern - do fix if pattern found
777 */
778tSCC zAix_Externcpp1Select0[] =
779 "#ifdef __cplusplus";
780
781#define AIX_EXTERNCPP1_TEST_CT 1
782static tTestDesc aAix_Externcpp1Tests[] = {
783 { TT_EGREP, zAix_Externcpp1Select0, (regex_t*)NULL }, };
784
785/*
786 * Fix Command Arguments for Aix_Externcpp1
787 */
788static const char* apzAix_Externcpp1Patch[] = {
789 "format",
790 "#ifdef __cplusplus\n\
791extern \"C++\" {",
792 (char*)NULL };
793
794/* * * * * * * * * * * * * * * * * * * * * * * * * *
795 *
796 * Description of Aix_Externcpp2 fix
797 */
798tSCC zAix_Externcpp2Name[] =
799 "aix_externcpp2";
800
801/*
802 * File name selection pattern
803 */
804tSCC zAix_Externcpp2List[] =
805 "sys/socket.h\0";
806/*
807 * Machine/OS name selection pattern
808 */
809tSCC* apzAix_Externcpp2Machs[] = {
810 "*-*-aix*",
811 (const char*)NULL };
812
813/*
814 * content selection pattern - do fix if pattern found
815 */
816tSCC zAix_Externcpp2Select0[] =
817 "#else /\\* __cplusplus \\*/";
818
819#define AIX_EXTERNCPP2_TEST_CT 1
820static tTestDesc aAix_Externcpp2Tests[] = {
821 { TT_EGREP, zAix_Externcpp2Select0, (regex_t*)NULL }, };
822
823/*
824 * Fix Command Arguments for Aix_Externcpp2
825 */
826static const char* apzAix_Externcpp2Patch[] = {
827 "format",
828 "} /* extern \"C++\" */\n\
829#else /* __cplusplus */",
830 (char*)NULL };
831
0560f6fc 832/* * * * * * * * * * * * * * * * * * * * * * * * * *
833 *
834 * Description of Aix_Malloc fix
835 */
836tSCC zAix_MallocName[] =
837 "aix_malloc";
838
839/*
840 * File name selection pattern
841 */
842tSCC zAix_MallocList[] =
843 "malloc.h\0";
844/*
845 * Machine/OS name selection pattern
846 */
847tSCC* apzAix_MallocMachs[] = {
848 "*-*-aix*",
849 (const char*)NULL };
850
851/*
852 * content selection pattern - do fix if pattern found
853 */
854tSCC zAix_MallocSelect0[] =
855 "#ifdef __cplusplus";
856
857#define AIX_MALLOC_TEST_CT 1
858static tTestDesc aAix_MallocTests[] = {
859 { TT_EGREP, zAix_MallocSelect0, (regex_t*)NULL }, };
860
861/*
862 * Fix Command Arguments for Aix_Malloc
863 */
864static const char* apzAix_MallocPatch[] = {
865 "format",
866 "#if (defined(__cplusplus) && defined(__IBMCPP__))",
867 (char*)NULL };
868
eafa229b 869/* * * * * * * * * * * * * * * * * * * * * * * * * *
870 *
871 * Description of Aix_Net_If_Arp fix
872 */
873tSCC zAix_Net_If_ArpName[] =
874 "aix_net_if_arp";
875
876/*
877 * File name selection pattern
878 */
879tSCC zAix_Net_If_ArpList[] =
880 "net/if_arp.h\0";
881/*
882 * Machine/OS name selection pattern
883 */
884tSCC* apzAix_Net_If_ArpMachs[] = {
885 "*-*-aix*",
886 (const char*)NULL };
887
888/*
889 * content selection pattern - do fix if pattern found
890 */
891tSCC zAix_Net_If_ArpSelect0[] =
892 "^struct fc_softc \\{";
893
894#define AIX_NET_IF_ARP_TEST_CT 1
895static tTestDesc aAix_Net_If_ArpTests[] = {
896 { TT_EGREP, zAix_Net_If_ArpSelect0, (regex_t*)NULL }, };
897
898/*
899 * Fix Command Arguments for Aix_Net_If_Arp
900 */
901static const char* apzAix_Net_If_ArpPatch[] = {
902 "format",
903 "typedef struct _fc_softc {",
904 (char*)NULL };
905
3c47853b 906/* * * * * * * * * * * * * * * * * * * * * * * * * *
907 *
908 * Description of Aix_Null fix
909 */
910tSCC zAix_NullName[] =
911 "aix_null";
912
913/*
914 * File name selection pattern
915 */
916tSCC zAix_NullList[] =
917 "curses.h\0dbm.h\0locale.h\0stdio.h\0stdlib.h\0string.h\0time.h\0unistd.h\0wchar.h\0sys/dir.h\0sys/param.h\0sys/types.h\0";
918/*
919 * Machine/OS name selection pattern
920 */
921tSCC* apzAix_NullMachs[] = {
922 "*-*-aix*",
923 (const char*)NULL };
924
925/*
926 * content selection pattern - do fix if pattern found
927 */
928tSCC zAix_NullSelect0[] =
929 "#define[ \t]+NULL[ \t]+\\(*0L*\\)*";
930
931/*
932 * content bypass pattern - skip fix if pattern found
933 */
934tSCC zAix_NullBypass0[] =
935 "__null";
936
937#define AIX_NULL_TEST_CT 2
938static tTestDesc aAix_NullTests[] = {
939 { TT_NEGREP, zAix_NullBypass0, (regex_t*)NULL },
940 { TT_EGREP, zAix_NullSelect0, (regex_t*)NULL }, };
941
942/*
943 * Fix Command Arguments for Aix_Null
944 */
945static const char* apzAix_NullPatch[] = {
946 "format",
947 "#ifndef NULL\n\
948#ifdef __cplusplus\n\
949#ifdef __GNUG__\n\
950#define NULL __null\n\
951#else /* ! __GNUG__ */\n\
952#define NULL 0L\n\
953#endif /* __GNUG__ */\n\
954#else /* ! __cplusplus */\n\
955#define NULL ((void *)0)\n\
956#endif /* __cplusplus */\n\
957#endif /* !NULL */",
958 (char*)NULL };
959
4cad3a31 960/* * * * * * * * * * * * * * * * * * * * * * * * * *
961 *
962 * Description of Aix_Once_Init_1 fix
963 */
964tSCC zAix_Once_Init_1Name[] =
965 "aix_once_init_1";
966
967/*
968 * File name selection pattern
969 */
970tSCC zAix_Once_Init_1List[] =
971 "pthread.h\0";
972/*
973 * Machine/OS name selection pattern
974 */
975tSCC* apzAix_Once_Init_1Machs[] = {
976 "*-*-aix*",
977 (const char*)NULL };
978
979/*
980 * content selection pattern - do fix if pattern found
981 */
982tSCC zAix_Once_Init_1Select0[] =
983 "#define[ \t]PTHREAD_ONCE_INIT \\\\\n\
984\\{ \\\\\n";
985
986#define AIX_ONCE_INIT_1_TEST_CT 1
987static tTestDesc aAix_Once_Init_1Tests[] = {
988 { TT_EGREP, zAix_Once_Init_1Select0, (regex_t*)NULL }, };
989
990/*
991 * Fix Command Arguments for Aix_Once_Init_1
992 */
993static const char* apzAix_Once_Init_1Patch[] = {
994 "format",
995 "#define PTHREAD_ONCE_INIT \\\n\
996{{ \\\n",
997 (char*)NULL };
998
999/* * * * * * * * * * * * * * * * * * * * * * * * * *
1000 *
1001 * Description of Aix_Once_Init_2 fix
1002 */
1003tSCC zAix_Once_Init_2Name[] =
1004 "aix_once_init_2";
1005
1006/*
1007 * File name selection pattern
1008 */
1009tSCC zAix_Once_Init_2List[] =
1010 "pthread.h\0";
1011/*
1012 * Machine/OS name selection pattern
1013 */
1014tSCC* apzAix_Once_Init_2Machs[] = {
1015 "*-*-aix*",
1016 (const char*)NULL };
1017
1018/*
1019 * content selection pattern - do fix if pattern found
1020 */
1021tSCC zAix_Once_Init_2Select0[] =
1022 "[ \t]0 \\\\\n\
1023\\}\n";
1024
1025#define AIX_ONCE_INIT_2_TEST_CT 1
1026static tTestDesc aAix_Once_Init_2Tests[] = {
1027 { TT_EGREP, zAix_Once_Init_2Select0, (regex_t*)NULL }, };
1028
1029/*
1030 * Fix Command Arguments for Aix_Once_Init_2
1031 */
1032static const char* apzAix_Once_Init_2Patch[] = {
1033 "format",
1034 "\t0 \\\n\
1035}}\n",
1036 (char*)NULL };
1037
3adcc56f 1038/* * * * * * * * * * * * * * * * * * * * * * * * * *
1039 *
1040 * Description of Aix_Mutex_Initializer_1 fix
1041 */
1042tSCC zAix_Mutex_Initializer_1Name[] =
1043 "aix_mutex_initializer_1";
1044
1045/*
1046 * File name selection pattern
1047 */
1048tSCC zAix_Mutex_Initializer_1List[] =
1049 "pthread.h\0";
1050/*
1051 * Machine/OS name selection pattern
1052 */
1053tSCC* apzAix_Mutex_Initializer_1Machs[] = {
1054 "*-*-aix*",
1055 (const char*)NULL };
1056
1057/*
1058 * content selection pattern - do fix if pattern found
1059 */
1060tSCC zAix_Mutex_Initializer_1Select0[] =
1061 "#define[ \t]PTHREAD_MUTEX_INITIALIZER \\\\\n\
1062\\{ \\\\\n";
1063
1064#define AIX_MUTEX_INITIALIZER_1_TEST_CT 1
1065static tTestDesc aAix_Mutex_Initializer_1Tests[] = {
1066 { TT_EGREP, zAix_Mutex_Initializer_1Select0, (regex_t*)NULL }, };
1067
1068/*
1069 * Fix Command Arguments for Aix_Mutex_Initializer_1
1070 */
1071static const char* apzAix_Mutex_Initializer_1Patch[] = {
1072 "format",
1073 "#define PTHREAD_MUTEX_INITIALIZER \\\n\
1074{{ \\\n",
1075 (char*)NULL };
1076
1077/* * * * * * * * * * * * * * * * * * * * * * * * * *
1078 *
1079 * Description of Aix_Cond_Initializer_1 fix
1080 */
1081tSCC zAix_Cond_Initializer_1Name[] =
1082 "aix_cond_initializer_1";
1083
1084/*
1085 * File name selection pattern
1086 */
1087tSCC zAix_Cond_Initializer_1List[] =
1088 "pthread.h\0";
1089/*
1090 * Machine/OS name selection pattern
1091 */
1092tSCC* apzAix_Cond_Initializer_1Machs[] = {
1093 "*-*-aix*",
1094 (const char*)NULL };
1095
1096/*
1097 * content selection pattern - do fix if pattern found
1098 */
1099tSCC zAix_Cond_Initializer_1Select0[] =
1100 "#define[ \t]PTHREAD_COND_INITIALIZER \\\\\n\
1101\\{ \\\\\n";
1102
1103#define AIX_COND_INITIALIZER_1_TEST_CT 1
1104static tTestDesc aAix_Cond_Initializer_1Tests[] = {
1105 { TT_EGREP, zAix_Cond_Initializer_1Select0, (regex_t*)NULL }, };
1106
1107/*
1108 * Fix Command Arguments for Aix_Cond_Initializer_1
1109 */
1110static const char* apzAix_Cond_Initializer_1Patch[] = {
1111 "format",
1112 "#define PTHREAD_COND_INITIALIZER \\\n\
1113{{ \\\n",
1114 (char*)NULL };
1115
1116/* * * * * * * * * * * * * * * * * * * * * * * * * *
1117 *
1118 * Description of Aix_Rwlock_Initializer_1 fix
1119 */
1120tSCC zAix_Rwlock_Initializer_1Name[] =
1121 "aix_rwlock_initializer_1";
1122
1123/*
1124 * File name selection pattern
1125 */
1126tSCC zAix_Rwlock_Initializer_1List[] =
1127 "pthread.h\0";
1128/*
1129 * Machine/OS name selection pattern
1130 */
1131tSCC* apzAix_Rwlock_Initializer_1Machs[] = {
1132 "*-*-aix*",
1133 (const char*)NULL };
1134
1135/*
1136 * content selection pattern - do fix if pattern found
1137 */
1138tSCC zAix_Rwlock_Initializer_1Select0[] =
1139 "#define[ \t]PTHREAD_RWLOCK_INITIALIZER \\\\\n\
1140\\{ \\\\\n";
1141
1142#define AIX_RWLOCK_INITIALIZER_1_TEST_CT 1
1143static tTestDesc aAix_Rwlock_Initializer_1Tests[] = {
1144 { TT_EGREP, zAix_Rwlock_Initializer_1Select0, (regex_t*)NULL }, };
1145
1146/*
1147 * Fix Command Arguments for Aix_Rwlock_Initializer_1
1148 */
1149static const char* apzAix_Rwlock_Initializer_1Patch[] = {
1150 "format",
1151 "#define PTHREAD_RWLOCK_INITIALIZER \\\n\
1152{{ \\\n",
1153 (char*)NULL };
1154
e494b1bb 1155/* * * * * * * * * * * * * * * * * * * * * * * * * *
1156 *
1157 * Description of Aix_Pthread fix
1158 */
e494b1bb 1159tSCC zAix_PthreadName[] =
1160 "aix_pthread";
1161
1162/*
1163 * File name selection pattern
1164 */
1165tSCC zAix_PthreadList[] =
e9afa104 1166 "pthread.h\0";
e494b1bb 1167/*
1168 * Machine/OS name selection pattern
1169 */
1170#define apzAix_PthreadMachs (const char**)NULL
1171
1172/*
1173 * content selection pattern - do fix if pattern found
1174 */
1175tSCC zAix_PthreadSelect0[] =
16879fd7 1176 "(#define[\t ][A-Za-z_0-9]+)(\\\\\n\
e494b1bb 1177[^A-Za-z_0-9 \t\n\
1178(])";
1179
1180#define AIX_PTHREAD_TEST_CT 1
2548396b 1181static tTestDesc aAix_PthreadTests[] = {
e494b1bb 1182 { TT_EGREP, zAix_PthreadSelect0, (regex_t*)NULL }, };
1183
1184/*
1185 * Fix Command Arguments for Aix_Pthread
1186 */
2548396b 1187static const char* apzAix_PthreadPatch[] = {
e494b1bb 1188 "format",
1189 "%1 %2",
1190 (char*)NULL };
1191
82c99fed 1192/* * * * * * * * * * * * * * * * * * * * * * * * * *
1193 *
1194 * Description of Aix_Stdint_1 fix
1195 */
1196tSCC zAix_Stdint_1Name[] =
1197 "aix_stdint_1";
1198
1199/*
1200 * File name selection pattern
1201 */
1202tSCC zAix_Stdint_1List[] =
e2fb821c 1203 "stdint-aix.h\0stdint.h\0";
82c99fed 1204/*
1205 * Machine/OS name selection pattern
1206 */
1207tSCC* apzAix_Stdint_1Machs[] = {
1208 "*-*-aix*",
1209 (const char*)NULL };
1210
1211/*
1212 * content selection pattern - do fix if pattern found
1213 */
1214tSCC zAix_Stdint_1Select0[] =
1215 "#define[ \t]UINT8_MAX[ \t]\\(255U\\)\n\
1216#define[ \t]UINT16_MAX[ \t]\\(65535U\\)";
1217
1218#define AIX_STDINT_1_TEST_CT 1
1219static tTestDesc aAix_Stdint_1Tests[] = {
1220 { TT_EGREP, zAix_Stdint_1Select0, (regex_t*)NULL }, };
1221
1222/*
1223 * Fix Command Arguments for Aix_Stdint_1
1224 */
1225static const char* apzAix_Stdint_1Patch[] = {
1226 "format",
1227 "#define UINT8_MAX\t(255)\n\
1228#define UINT16_MAX\t(65535)",
1229 (char*)NULL };
1230
1231/* * * * * * * * * * * * * * * * * * * * * * * * * *
1232 *
1233 * Description of Aix_Stdint_2 fix
1234 */
1235tSCC zAix_Stdint_2Name[] =
1236 "aix_stdint_2";
1237
1238/*
1239 * File name selection pattern
1240 */
1241tSCC zAix_Stdint_2List[] =
e2fb821c 1242 "stdint-aix.h\0stdint.h\0";
82c99fed 1243/*
1244 * Machine/OS name selection pattern
1245 */
1246tSCC* apzAix_Stdint_2Machs[] = {
1247 "*-*-aix*",
1248 (const char*)NULL };
1249
1250/*
1251 * content selection pattern - do fix if pattern found
1252 */
1253tSCC zAix_Stdint_2Select0[] =
1254 "#define[ \t]INTPTR_MIN[ \t]INT64_MIN\n\
1255#define[ \t]INTPTR_MAX[ \t]INT64_MAX\n\
1256#define[ \t]UINTPTR_MAX[ \t]UINT64_MAX\n\
1257#else\n\
1258#define[ \t]INTPTR_MIN[ \t]INT32_MIN\n\
1259#define[ \t]INTPTR_MAX[ \t]INT32_MAX\n\
1260#define[ \t]UINTPTR_MAX[ \t]UINT32_MAX";
1261
1262#define AIX_STDINT_2_TEST_CT 1
1263static tTestDesc aAix_Stdint_2Tests[] = {
1264 { TT_EGREP, zAix_Stdint_2Select0, (regex_t*)NULL }, };
1265
1266/*
1267 * Fix Command Arguments for Aix_Stdint_2
1268 */
1269static const char* apzAix_Stdint_2Patch[] = {
1270 "format",
1271 "#define INTPTR_MIN\t(-INTPTR_MAX-1)\n\
1272#define INTPTR_MAX\t9223372036854775807L\n\
1273#define UINTPTR_MAX\t18446744073709551615UL\n\
1274#else\n\
1275#define INTPTR_MIN\t(-INTPTR_MAX-1)\n\
1276#define INTPTR_MAX\t2147483647L\n\
1277#define UINTPTR_MAX\t4294967295UL",
1278 (char*)NULL };
1279
1280/* * * * * * * * * * * * * * * * * * * * * * * * * *
1281 *
1282 * Description of Aix_Stdint_3 fix
1283 */
1284tSCC zAix_Stdint_3Name[] =
1285 "aix_stdint_3";
1286
1287/*
1288 * File name selection pattern
1289 */
1290tSCC zAix_Stdint_3List[] =
e2fb821c 1291 "stdint-aix.h\0stdint.h\0";
82c99fed 1292/*
1293 * Machine/OS name selection pattern
1294 */
1295tSCC* apzAix_Stdint_3Machs[] = {
1296 "*-*-aix*",
1297 (const char*)NULL };
1298
1299/*
1300 * content selection pattern - do fix if pattern found
1301 */
1302tSCC zAix_Stdint_3Select0[] =
1303 "#define[ \t]PTRDIFF_MIN[ \t]INT64_MIN\n\
1304#define[ \t]PTRDIFF_MAX[ \t]INT64_MAX\n\
1305#else\n\
1306#define[ \t]PTRDIFF_MIN[ \t]*INT32_MIN\n\
1307#define[ \t]PTRDIFF_MAX[ \t]*INT32_MAX";
1308
1309#define AIX_STDINT_3_TEST_CT 1
1310static tTestDesc aAix_Stdint_3Tests[] = {
1311 { TT_EGREP, zAix_Stdint_3Select0, (regex_t*)NULL }, };
1312
1313/*
1314 * Fix Command Arguments for Aix_Stdint_3
1315 */
1316static const char* apzAix_Stdint_3Patch[] = {
1317 "format",
1318 "#define PTRDIFF_MIN\t(-9223372036854775807L - 1)\n\
1319#define PTRDIFF_MAX\t9223372036854775807L\n\
1320#else\n\
1321#define PTRDIFF_MIN\t(-2147483647L - 1)\n\
1322#define PTRDIFF_MAX\t2147483647L",
1323 (char*)NULL };
1324
1325/* * * * * * * * * * * * * * * * * * * * * * * * * *
1326 *
1327 * Description of Aix_Stdint_4 fix
1328 */
1329tSCC zAix_Stdint_4Name[] =
1330 "aix_stdint_4";
1331
1332/*
1333 * File name selection pattern
1334 */
1335tSCC zAix_Stdint_4List[] =
e2fb821c 1336 "stdint-aix.h\0stdint.h\0";
82c99fed 1337/*
1338 * Machine/OS name selection pattern
1339 */
1340tSCC* apzAix_Stdint_4Machs[] = {
1341 "*-*-aix*",
1342 (const char*)NULL };
1343
1344/*
1345 * content selection pattern - do fix if pattern found
1346 */
1347tSCC zAix_Stdint_4Select0[] =
1348 "#define[ \t]SIZE_MAX[ \t]UINT64_MAX\n\
1349#else\n\
1350#define[ \t]SIZE_MAX[ \t]*UINT32_MAX";
1351
1352#define AIX_STDINT_4_TEST_CT 1
1353static tTestDesc aAix_Stdint_4Tests[] = {
1354 { TT_EGREP, zAix_Stdint_4Select0, (regex_t*)NULL }, };
1355
1356/*
1357 * Fix Command Arguments for Aix_Stdint_4
1358 */
1359static const char* apzAix_Stdint_4Patch[] = {
1360 "format",
1361 "#define SIZE_MAX\t18446744073709551615UL\n\
1362#else\n\
1363#define SIZE_MAX\t4294967295UL",
1364 (char*)NULL };
1365
1366/* * * * * * * * * * * * * * * * * * * * * * * * * *
1367 *
1368 * Description of Aix_Stdint_5 fix
1369 */
1370tSCC zAix_Stdint_5Name[] =
1371 "aix_stdint_5";
1372
1373/*
1374 * File name selection pattern
1375 */
1376tSCC zAix_Stdint_5List[] =
e2fb821c 1377 "stdint-aix.h\0stdint.h\0";
82c99fed 1378/*
1379 * Machine/OS name selection pattern
1380 */
1381tSCC* apzAix_Stdint_5Machs[] = {
1382 "*-*-aix*",
1383 (const char*)NULL };
1384
1385/*
1386 * content selection pattern - do fix if pattern found
1387 */
1388tSCC zAix_Stdint_5Select0[] =
1389 "#define[ \t]UINT8_C\\(c\\)[ \t]__CONCAT__\\(c,U\\)\n\
1390#define[ \t]UINT16_C\\(c\\)[ \t]__CONCAT__\\(c,U\\)";
1391
1392#define AIX_STDINT_5_TEST_CT 1
1393static tTestDesc aAix_Stdint_5Tests[] = {
1394 { TT_EGREP, zAix_Stdint_5Select0, (regex_t*)NULL }, };
1395
1396/*
1397 * Fix Command Arguments for Aix_Stdint_5
1398 */
1399static const char* apzAix_Stdint_5Patch[] = {
1400 "format",
1401 "#define UINT8_C(c)\tc\n\
1402#define UINT16_C(c)\tc",
1403 (char*)NULL };
1404
11e92429 1405/* * * * * * * * * * * * * * * * * * * * * * * * * *
1406 *
1407 * Description of Aix_Stdio_Inline fix
1408 */
1409tSCC zAix_Stdio_InlineName[] =
1410 "aix_stdio_inline";
1411
1412/*
1413 * File name selection pattern
1414 */
1415tSCC zAix_Stdio_InlineList[] =
1416 "stdio.h\0";
1417/*
1418 * Machine/OS name selection pattern
1419 */
1420tSCC* apzAix_Stdio_InlineMachs[] = {
1421 "*-*-aix*",
1422 (const char*)NULL };
1423
1424/*
1425 * content selection pattern - do fix if pattern found
1426 */
1427tSCC zAix_Stdio_InlineSelect0[] =
1428 "#ifdef __cplusplus\\\n\
1429}\\\n\
1430\\\n\
1431#ifdef ferror\\\n";
1432
1433#define AIX_STDIO_INLINE_TEST_CT 1
1434static tTestDesc aAix_Stdio_InlineTests[] = {
1435 { TT_EGREP, zAix_Stdio_InlineSelect0, (regex_t*)NULL }, };
1436
1437/*
1438 * Fix Command Arguments for Aix_Stdio_Inline
1439 */
1440static const char* apzAix_Stdio_InlinePatch[] = {
1441 "format",
1442 "#ifdef __cplusplus\n\
1443}\n\
1444#endif\n\n\
1445#if (defined(__cplusplus) && defined(__IBMCPP__))\n\
1446#ifdef ferror\n",
1447 (char*)NULL };
1448
b73b1330 1449/* * * * * * * * * * * * * * * * * * * * * * * * * *
1450 *
1451 * Description of Aix_Stdlib_Malloc fix
1452 */
1453tSCC zAix_Stdlib_MallocName[] =
1454 "aix_stdlib_malloc";
1455
1456/*
1457 * File name selection pattern
1458 */
1459tSCC zAix_Stdlib_MallocList[] =
1460 "stdlib.h\0";
1461/*
1462 * Machine/OS name selection pattern
1463 */
1464tSCC* apzAix_Stdlib_MallocMachs[] = {
1465 "*-*-aix*",
1466 (const char*)NULL };
1467
1468/*
1469 * content selection pattern - do fix if pattern found
1470 */
1471tSCC zAix_Stdlib_MallocSelect0[] =
1472 "#define[ \t]+malloc[ \t]+__linux_malloc";
1473
1474#define AIX_STDLIB_MALLOC_TEST_CT 1
1475static tTestDesc aAix_Stdlib_MallocTests[] = {
1476 { TT_EGREP, zAix_Stdlib_MallocSelect0, (regex_t*)NULL }, };
1477
1478/*
1479 * Fix Command Arguments for Aix_Stdlib_Malloc
1480 */
1481static const char* apzAix_Stdlib_MallocPatch[] = {
1482 "format",
1483 "extern void *malloc(size_t) __asm__(\"__linux_malloc\");",
1484 (char*)NULL };
1485
1486/* * * * * * * * * * * * * * * * * * * * * * * * * *
1487 *
1488 * Description of Aix_Stdlib_Realloc fix
1489 */
1490tSCC zAix_Stdlib_ReallocName[] =
1491 "aix_stdlib_realloc";
1492
1493/*
1494 * File name selection pattern
1495 */
1496tSCC zAix_Stdlib_ReallocList[] =
1497 "stdlib.h\0";
1498/*
1499 * Machine/OS name selection pattern
1500 */
1501tSCC* apzAix_Stdlib_ReallocMachs[] = {
1502 "*-*-aix*",
1503 (const char*)NULL };
1504
1505/*
1506 * content selection pattern - do fix if pattern found
1507 */
1508tSCC zAix_Stdlib_ReallocSelect0[] =
1509 "#define[ \t]+realloc[ \t]+__linux_realloc";
1510
1511#define AIX_STDLIB_REALLOC_TEST_CT 1
1512static tTestDesc aAix_Stdlib_ReallocTests[] = {
1513 { TT_EGREP, zAix_Stdlib_ReallocSelect0, (regex_t*)NULL }, };
1514
1515/*
1516 * Fix Command Arguments for Aix_Stdlib_Realloc
1517 */
1518static const char* apzAix_Stdlib_ReallocPatch[] = {
1519 "format",
1520 "extern void *realloc(void *, size_t) __asm__(\"__linux_realloc\");",
1521 (char*)NULL };
1522
1523/* * * * * * * * * * * * * * * * * * * * * * * * * *
1524 *
1525 * Description of Aix_Stdlib_Calloc fix
1526 */
1527tSCC zAix_Stdlib_CallocName[] =
1528 "aix_stdlib_calloc";
1529
1530/*
1531 * File name selection pattern
1532 */
1533tSCC zAix_Stdlib_CallocList[] =
1534 "stdlib.h\0";
1535/*
1536 * Machine/OS name selection pattern
1537 */
1538tSCC* apzAix_Stdlib_CallocMachs[] = {
1539 "*-*-aix*",
1540 (const char*)NULL };
1541
1542/*
1543 * content selection pattern - do fix if pattern found
1544 */
1545tSCC zAix_Stdlib_CallocSelect0[] =
1546 "#define[ \t]+calloc[ \t]+__linux_calloc";
1547
1548#define AIX_STDLIB_CALLOC_TEST_CT 1
1549static tTestDesc aAix_Stdlib_CallocTests[] = {
1550 { TT_EGREP, zAix_Stdlib_CallocSelect0, (regex_t*)NULL }, };
1551
1552/*
1553 * Fix Command Arguments for Aix_Stdlib_Calloc
1554 */
1555static const char* apzAix_Stdlib_CallocPatch[] = {
1556 "format",
1557 "extern void *calloc(size_t, size_t) __asm__(\"__linux_calloc\");",
1558 (char*)NULL };
1559
1560/* * * * * * * * * * * * * * * * * * * * * * * * * *
1561 *
1562 * Description of Aix_Stdlib_Valloc fix
1563 */
1564tSCC zAix_Stdlib_VallocName[] =
1565 "aix_stdlib_valloc";
1566
1567/*
1568 * File name selection pattern
1569 */
1570tSCC zAix_Stdlib_VallocList[] =
1571 "stdlib.h\0";
1572/*
1573 * Machine/OS name selection pattern
1574 */
1575tSCC* apzAix_Stdlib_VallocMachs[] = {
1576 "*-*-aix*",
1577 (const char*)NULL };
1578
1579/*
1580 * content selection pattern - do fix if pattern found
1581 */
1582tSCC zAix_Stdlib_VallocSelect0[] =
1583 "#define[ \t]+valloc[ \t]+__linux_valloc";
1584
1585#define AIX_STDLIB_VALLOC_TEST_CT 1
1586static tTestDesc aAix_Stdlib_VallocTests[] = {
1587 { TT_EGREP, zAix_Stdlib_VallocSelect0, (regex_t*)NULL }, };
1588
1589/*
1590 * Fix Command Arguments for Aix_Stdlib_Valloc
1591 */
1592static const char* apzAix_Stdlib_VallocPatch[] = {
1593 "format",
1594 "extern void *valloc(size_t) __asm__(\"__linux_valloc\");",
1595 (char*)NULL };
1596
84597344 1597/* * * * * * * * * * * * * * * * * * * * * * * * * *
1598 *
1599 * Description of Aix_Stdlib_Vec_Malloc fix
1600 */
1601tSCC zAix_Stdlib_Vec_MallocName[] =
1602 "aix_stdlib_vec_malloc";
1603
1604/*
1605 * File name selection pattern
1606 */
1607tSCC zAix_Stdlib_Vec_MallocList[] =
1608 "stdlib.h\0";
1609/*
1610 * Machine/OS name selection pattern
1611 */
1612tSCC* apzAix_Stdlib_Vec_MallocMachs[] = {
1613 "*-*-aix*",
1614 (const char*)NULL };
1615
1616/*
1617 * content selection pattern - do fix if pattern found
1618 */
1619tSCC zAix_Stdlib_Vec_MallocSelect0[] =
1620 "#define[ \t]+malloc[ \t]+vec_malloc";
1621
1622#define AIX_STDLIB_VEC_MALLOC_TEST_CT 1
1623static tTestDesc aAix_Stdlib_Vec_MallocTests[] = {
1624 { TT_EGREP, zAix_Stdlib_Vec_MallocSelect0, (regex_t*)NULL }, };
1625
1626/*
1627 * Fix Command Arguments for Aix_Stdlib_Vec_Malloc
1628 */
1629static const char* apzAix_Stdlib_Vec_MallocPatch[] = {
1630 "format",
1631 "extern void *malloc(size_t) __asm__(\"vec_malloc\");",
1632 (char*)NULL };
1633
1634/* * * * * * * * * * * * * * * * * * * * * * * * * *
1635 *
1636 * Description of Aix_Stdlib_Vec_Calloc fix
1637 */
1638tSCC zAix_Stdlib_Vec_CallocName[] =
1639 "aix_stdlib_vec_calloc";
1640
1641/*
1642 * File name selection pattern
1643 */
1644tSCC zAix_Stdlib_Vec_CallocList[] =
1645 "stdlib.h\0";
1646/*
1647 * Machine/OS name selection pattern
1648 */
1649tSCC* apzAix_Stdlib_Vec_CallocMachs[] = {
1650 "*-*-aix*",
1651 (const char*)NULL };
1652
1653/*
1654 * content selection pattern - do fix if pattern found
1655 */
1656tSCC zAix_Stdlib_Vec_CallocSelect0[] =
1657 "#define[ \t]+calloc[ \t]+vec_calloc";
1658
1659#define AIX_STDLIB_VEC_CALLOC_TEST_CT 1
1660static tTestDesc aAix_Stdlib_Vec_CallocTests[] = {
1661 { TT_EGREP, zAix_Stdlib_Vec_CallocSelect0, (regex_t*)NULL }, };
1662
1663/*
1664 * Fix Command Arguments for Aix_Stdlib_Vec_Calloc
1665 */
1666static const char* apzAix_Stdlib_Vec_CallocPatch[] = {
1667 "format",
1668 "extern void *calloc(size_t, size_t) __asm__(\"vec_calloc\");",
1669 (char*)NULL };
1670
7a26bedc 1671/* * * * * * * * * * * * * * * * * * * * * * * * * *
1672 *
1673 * Description of Aix_Strtof_Const fix
1674 */
1675tSCC zAix_Strtof_ConstName[] =
1676 "aix_strtof_const";
1677
1678/*
1679 * File name selection pattern
1680 */
1681tSCC zAix_Strtof_ConstList[] =
1682 "stdlib.h\0";
1683/*
1684 * Machine/OS name selection pattern
1685 */
11e92429 1686tSCC* apzAix_Strtof_ConstMachs[] = {
1687 "*-*-aix*",
1688 (const char*)NULL };
7a26bedc 1689
1690/*
1691 * content selection pattern - do fix if pattern found
1692 */
1693tSCC zAix_Strtof_ConstSelect0[] =
1694 "((extern[ \t]+)?float[ \t]+strtof)\\(char \\*, char \\*\\*\\);";
1695
1696#define AIX_STRTOF_CONST_TEST_CT 1
1697static tTestDesc aAix_Strtof_ConstTests[] = {
1698 { TT_EGREP, zAix_Strtof_ConstSelect0, (regex_t*)NULL }, };
1699
1700/*
1701 * Fix Command Arguments for Aix_Strtof_Const
1702 */
1703static const char* apzAix_Strtof_ConstPatch[] = {
1704 "format",
1705 "%1(const char *, char **);",
1706 (char*)NULL };
1707
e494b1bb 1708/* * * * * * * * * * * * * * * * * * * * * * * * * *
1709 *
1710 * Description of Aix_Sysmachine fix
1711 */
e494b1bb 1712tSCC zAix_SysmachineName[] =
1713 "aix_sysmachine";
1714
1715/*
1716 * File name selection pattern
1717 */
1718tSCC zAix_SysmachineList[] =
e9afa104 1719 "sys/machine.h\0";
e494b1bb 1720/*
1721 * Machine/OS name selection pattern
1722 */
11e92429 1723tSCC* apzAix_SysmachineMachs[] = {
1724 "*-*-aix*",
1725 (const char*)NULL };
e494b1bb 1726
1727/*
1728 * content selection pattern - do fix if pattern found
1729 */
1730tSCC zAix_SysmachineSelect0[] =
1731 "\\\\ +\n";
1732
1733#define AIX_SYSMACHINE_TEST_CT 1
2548396b 1734static tTestDesc aAix_SysmachineTests[] = {
e494b1bb 1735 { TT_EGREP, zAix_SysmachineSelect0, (regex_t*)NULL }, };
1736
1737/*
1738 * Fix Command Arguments for Aix_Sysmachine
1739 */
2548396b 1740static const char* apzAix_SysmachinePatch[] = {
e494b1bb 1741 "format",
1742 "\\\n",
1743 (char*)NULL };
1744
85df6fdf 1745/* * * * * * * * * * * * * * * * * * * * * * * * * *
1746 *
1747 * Description of Aix_Syswait_2 fix
1748 */
1749tSCC zAix_Syswait_2Name[] =
1750 "aix_syswait_2";
1751
1752/*
1753 * File name selection pattern
1754 */
1755tSCC zAix_Syswait_2List[] =
e9afa104 1756 "sys/wait.h\0";
85df6fdf 1757/*
1758 * Machine/OS name selection pattern
1759 */
11e92429 1760tSCC* apzAix_Syswait_2Machs[] = {
1761 "*-*-aix*",
1762 (const char*)NULL };
85df6fdf 1763
1764/*
1765 * content selection pattern - do fix if pattern found
1766 */
1767tSCC zAix_Syswait_2Select0[] =
1768 "\\? (\\(\\(\\(\\(unsigned[^)]*\\)[^)]*\\) >> [^)]*\\) \\& 0xff\\) : -1)";
1769
1770#define AIX_SYSWAIT_2_TEST_CT 1
1771static tTestDesc aAix_Syswait_2Tests[] = {
1772 { TT_EGREP, zAix_Syswait_2Select0, (regex_t*)NULL }, };
1773
1774/*
1775 * Fix Command Arguments for Aix_Syswait_2
1776 */
1777static const char* apzAix_Syswait_2Patch[] = {
1778 "format",
1779 "? (int)%1",
1780 (char*)NULL };
1781
fdb8fb96 1782/* * * * * * * * * * * * * * * * * * * * * * * * * *
1783 *
5daf7ede 1784 * Description of Aix_Volatile fix
fdb8fb96 1785 */
1786tSCC zAix_VolatileName[] =
d4c4b01d 1787 "aix_volatile";
1788
fdb8fb96 1789/*
1790 * File name selection pattern
1791 */
1792tSCC zAix_VolatileList[] =
e9afa104 1793 "sys/signal.h\0";
fdb8fb96 1794/*
1795 * Machine/OS name selection pattern
1796 */
11e92429 1797tSCC* apzAix_VolatileMachs[] = {
1798 "*-*-aix*",
1799 (const char*)NULL };
fdb8fb96 1800
1801/*
c1b28c63 1802 * content selection pattern - do fix if pattern found
fdb8fb96 1803 */
1804tSCC zAix_VolatileSelect0[] =
1805 "typedef volatile int sig_atomic_t";
1806
1807#define AIX_VOLATILE_TEST_CT 1
2548396b 1808static tTestDesc aAix_VolatileTests[] = {
5daf7ede 1809 { TT_EGREP, zAix_VolatileSelect0, (regex_t*)NULL }, };
fdb8fb96 1810
1811/*
1812 * Fix Command Arguments for Aix_Volatile
1813 */
2548396b 1814static const char* apzAix_VolatilePatch[] = {
472aa368 1815 "format",
1816 "typedef int sig_atomic_t",
fdb8fb96 1817 (char*)NULL };
1818
056a9bf0 1819/* * * * * * * * * * * * * * * * * * * * * * * * * *
1820 *
1821 * Description of Aix_Unistd fix
1822 */
1823tSCC zAix_UnistdName[] =
1824 "aix_unistd";
1825
1826/*
1827 * File name selection pattern
1828 */
1829tSCC zAix_UnistdList[] =
1830 "unistd.h\0";
1831/*
1832 * Machine/OS name selection pattern
1833 */
1834tSCC* apzAix_UnistdMachs[] = {
1835 "*-*-aix*",
1836 (const char*)NULL };
1837
1838/*
1839 * content selection pattern - do fix if pattern found
1840 */
1841tSCC zAix_UnistdSelect0[] =
1842 "[ \t]+static[ \t]+int[ \t]+getdtablesize\\(\\)";
1843
1844#define AIX_UNISTD_TEST_CT 1
1845static tTestDesc aAix_UnistdTests[] = {
1846 { TT_EGREP, zAix_UnistdSelect0, (regex_t*)NULL }, };
1847
1848/*
1849 * Fix Command Arguments for Aix_Unistd
1850 */
1851static const char* apzAix_UnistdPatch[] = {
1852 "format",
1853 "\tstatic int\t\tgetdtablesize(void)",
1854 (char*)NULL };
1855
d1ec871e 1856/* * * * * * * * * * * * * * * * * * * * * * * * * *
1857 *
1858 * Description of Alpha___Assert fix
1859 */
d1ec871e 1860tSCC zAlpha___AssertName[] =
1861 "alpha___assert";
1862
1863/*
1864 * File name selection pattern
1865 */
1866tSCC zAlpha___AssertList[] =
e9afa104 1867 "assert.h\0";
d1ec871e 1868/*
1869 * Machine/OS name selection pattern
1870 */
1871#define apzAlpha___AssertMachs (const char**)NULL
1872
1873/*
1874 * content selection pattern - do fix if pattern found
1875 */
1876tSCC zAlpha___AssertSelect0[] =
1877 "__assert\\(char \\*, char \\*, int\\)";
1878
1879#define ALPHA___ASSERT_TEST_CT 1
1880static tTestDesc aAlpha___AssertTests[] = {
1881 { TT_EGREP, zAlpha___AssertSelect0, (regex_t*)NULL }, };
1882
1883/*
1884 * Fix Command Arguments for Alpha___Assert
1885 */
1886static const char* apzAlpha___AssertPatch[] = {
1887 "format",
1888 "__assert(const char *, const char *, int)",
1889 (char*)NULL };
1890
03112946 1891/* * * * * * * * * * * * * * * * * * * * * * * * * *
1892 *
1893 * Description of Alpha_Assert fix
1894 */
1895tSCC zAlpha_AssertName[] =
1896 "alpha_assert";
1897
1898/*
1899 * File name selection pattern
1900 */
1901tSCC zAlpha_AssertList[] =
e9afa104 1902 "assert.h\0";
03112946 1903/*
1904 * Machine/OS name selection pattern
1905 */
1906#define apzAlpha_AssertMachs (const char**)NULL
1907
1908/*
1909 * content selection pattern - do fix if pattern found
1910 */
1911tSCC zAlpha_AssertSelect0[] =
84d20ec8 1912 "(#[ \t]*define assert\\(EX\\).*)\\(\\(int\\) \\(EX\\)\\)";
03112946 1913
1914#define ALPHA_ASSERT_TEST_CT 1
1915static tTestDesc aAlpha_AssertTests[] = {
1916 { TT_EGREP, zAlpha_AssertSelect0, (regex_t*)NULL }, };
1917
1918/*
1919 * Fix Command Arguments for Alpha_Assert
1920 */
1921static const char* apzAlpha_AssertPatch[] = {
1922 "format",
1923 "%1(EX)",
1924 (char*)NULL };
1925
fdb8fb96 1926/* * * * * * * * * * * * * * * * * * * * * * * * * *
1927 *
5daf7ede 1928 * Description of Alpha_Getopt fix
fdb8fb96 1929 */
1930tSCC zAlpha_GetoptName[] =
d4c4b01d 1931 "alpha_getopt";
1932
fdb8fb96 1933/*
1934 * File name selection pattern
1935 */
1936tSCC zAlpha_GetoptList[] =
e9afa104 1937 "stdio.h\0stdlib.h\0";
fdb8fb96 1938/*
1939 * Machine/OS name selection pattern
1940 */
1941#define apzAlpha_GetoptMachs (const char**)NULL
1942
1943/*
c1b28c63 1944 * content selection pattern - do fix if pattern found
fdb8fb96 1945 */
1946tSCC zAlpha_GetoptSelect0[] =
52686fb5 1947 "getopt\\(int, char \\*\\[\\], *char \\*\\)";
fdb8fb96 1948
1949#define ALPHA_GETOPT_TEST_CT 1
2548396b 1950static tTestDesc aAlpha_GetoptTests[] = {
5daf7ede 1951 { TT_EGREP, zAlpha_GetoptSelect0, (regex_t*)NULL }, };
fdb8fb96 1952
1953/*
1954 * Fix Command Arguments for Alpha_Getopt
1955 */
2548396b 1956static const char* apzAlpha_GetoptPatch[] = {
472aa368 1957 "format",
1958 "getopt(int, char *const[], const char *)",
fdb8fb96 1959 (char*)NULL };
1960
2013a847 1961/* * * * * * * * * * * * * * * * * * * * * * * * * *
1962 *
1963 * Description of Alpha_If_Semicolon fix
1964 */
1965tSCC zAlpha_If_SemicolonName[] =
1966 "alpha_if_semicolon";
1967
1968/*
1969 * File name selection pattern
1970 */
1971tSCC zAlpha_If_SemicolonList[] =
1972 "net/if.h\0";
1973/*
1974 * Machine/OS name selection pattern
1975 */
1976#define apzAlpha_If_SemicolonMachs (const char**)NULL
1977
1978/*
1979 * content selection pattern - do fix if pattern found
1980 */
1981tSCC zAlpha_If_SemicolonSelect0[] =
1982 "struct[ \t]+sockaddr[ \t]+vmif_paddr[ \t]+/\\*";
1983
1984#define ALPHA_IF_SEMICOLON_TEST_CT 1
1985static tTestDesc aAlpha_If_SemicolonTests[] = {
1986 { TT_EGREP, zAlpha_If_SemicolonSelect0, (regex_t*)NULL }, };
1987
1988/*
1989 * Fix Command Arguments for Alpha_If_Semicolon
1990 */
1991static const char* apzAlpha_If_SemicolonPatch[] = {
1992 "format",
1993 "struct sockaddr vmif_paddr;\t/*",
1994 (char*)NULL };
1995
fdb8fb96 1996/* * * * * * * * * * * * * * * * * * * * * * * * * *
1997 *
5daf7ede 1998 * Description of Alpha_Parens fix
fdb8fb96 1999 */
2000tSCC zAlpha_ParensName[] =
d4c4b01d 2001 "alpha_parens";
2002
fdb8fb96 2003/*
2004 * File name selection pattern
2005 */
2006tSCC zAlpha_ParensList[] =
e9afa104 2007 "sym.h\0";
fdb8fb96 2008/*
2009 * Machine/OS name selection pattern
2010 */
2011#define apzAlpha_ParensMachs (const char**)NULL
2012
2013/*
c1b28c63 2014 * content selection pattern - do fix if pattern found
fdb8fb96 2015 */
2016tSCC zAlpha_ParensSelect0[] =
2017 "#ifndef\\(__mips64\\)";
2018
2019#define ALPHA_PARENS_TEST_CT 1
2548396b 2020static tTestDesc aAlpha_ParensTests[] = {
5daf7ede 2021 { TT_EGREP, zAlpha_ParensSelect0, (regex_t*)NULL }, };
fdb8fb96 2022
2023/*
2024 * Fix Command Arguments for Alpha_Parens
2025 */
2548396b 2026static const char* apzAlpha_ParensPatch[] = {
472aa368 2027 "format",
2028 "#ifndef __mips64",
fdb8fb96 2029 (char*)NULL };
2030
2031/* * * * * * * * * * * * * * * * * * * * * * * * * *
2032 *
5daf7ede 2033 * Description of Alpha_Sbrk fix
fdb8fb96 2034 */
2035tSCC zAlpha_SbrkName[] =
d4c4b01d 2036 "alpha_sbrk";
2037
fdb8fb96 2038/*
2039 * File name selection pattern
2040 */
2041tSCC zAlpha_SbrkList[] =
e9afa104 2042 "unistd.h\0";
fdb8fb96 2043/*
2044 * Machine/OS name selection pattern
2045 */
2046#define apzAlpha_SbrkMachs (const char**)NULL
2047
2048/*
c1b28c63 2049 * content selection pattern - do fix if pattern found
fdb8fb96 2050 */
2051tSCC zAlpha_SbrkSelect0[] =
2052 "char[ \t]*\\*[\t ]*sbrk[ \t]*\\(";
2053
2054#define ALPHA_SBRK_TEST_CT 1
2548396b 2055static tTestDesc aAlpha_SbrkTests[] = {
5daf7ede 2056 { TT_EGREP, zAlpha_SbrkSelect0, (regex_t*)NULL }, };
fdb8fb96 2057
2058/*
2059 * Fix Command Arguments for Alpha_Sbrk
2060 */
2548396b 2061static const char* apzAlpha_SbrkPatch[] = {
472aa368 2062 "format",
2063 "void *sbrk(",
fdb8fb96 2064 (char*)NULL };
2065
fdb8fb96 2066/* * * * * * * * * * * * * * * * * * * * * * * * * *
2067 *
2c59c6d3 2068 * Description of Avoid_Bool_Define fix
fdb8fb96 2069 */
2c59c6d3 2070tSCC zAvoid_Bool_DefineName[] =
2071 "avoid_bool_define";
d4c4b01d 2072
fdb8fb96 2073/*
2074 * File name selection pattern
2075 */
2c59c6d3 2076tSCC zAvoid_Bool_DefineList[] =
e9afa104 2077 "curses.h\0curses_colr/curses.h\0term.h\0tinfo.h\0";
fdb8fb96 2078/*
2079 * Machine/OS name selection pattern
2080 */
2c59c6d3 2081#define apzAvoid_Bool_DefineMachs (const char**)NULL
ada96dc2 2082
2083/*
2084 * content selection pattern - do fix if pattern found
2085 */
2c59c6d3 2086tSCC zAvoid_Bool_DefineSelect0[] =
2087 "#[ \t]*define[ \t]+bool[ \t]";
2088
a83746ef 2089/*
2090 * content bypass pattern - skip fix if pattern found
2091 */
2092tSCC zAvoid_Bool_DefineBypass0[] =
162e05b3 2093 "__cplusplus";
a83746ef 2094
2095#define AVOID_BOOL_DEFINE_TEST_CT 2
2548396b 2096static tTestDesc aAvoid_Bool_DefineTests[] = {
a83746ef 2097 { TT_NEGREP, zAvoid_Bool_DefineBypass0, (regex_t*)NULL },
2c59c6d3 2098 { TT_EGREP, zAvoid_Bool_DefineSelect0, (regex_t*)NULL }, };
ada96dc2 2099
2100/*
2c59c6d3 2101 * Fix Command Arguments for Avoid_Bool_Define
ada96dc2 2102 */
2548396b 2103static const char* apzAvoid_Bool_DefinePatch[] = {
2c59c6d3 2104 "format",
2105 "#ifndef __cplusplus\n\
2106%0\n\
2107#endif",
2108 "^[ \t]*#[ \t]*define[ \t]+bool[ \t].*",
2109 (char*)NULL };
ada96dc2 2110
2c59c6d3 2111/* * * * * * * * * * * * * * * * * * * * * * * * * *
2112 *
2113 * Description of Avoid_Bool_Type fix
2114 */
2c59c6d3 2115tSCC zAvoid_Bool_TypeName[] =
2116 "avoid_bool_type";
fdb8fb96 2117
2118/*
2c59c6d3 2119 * File name selection pattern
fdb8fb96 2120 */
2c59c6d3 2121tSCC zAvoid_Bool_TypeList[] =
e9afa104 2122 "curses.h\0curses_colr/curses.h\0term.h\0tinfo.h\0";
2c59c6d3 2123/*
2124 * Machine/OS name selection pattern
2125 */
2126#define apzAvoid_Bool_TypeMachs (const char**)NULL
2127
2128/*
2129 * content selection pattern - do fix if pattern found
2130 */
2131tSCC zAvoid_Bool_TypeSelect0[] =
2132 "^[ \t]*typedef[ \t].*[ \t]bool[ \t]*;";
2133
a83746ef 2134/*
2135 * content bypass pattern - skip fix if pattern found
2136 */
2137tSCC zAvoid_Bool_TypeBypass0[] =
162e05b3 2138 "__cplusplus";
a83746ef 2139
2140#define AVOID_BOOL_TYPE_TEST_CT 2
2548396b 2141static tTestDesc aAvoid_Bool_TypeTests[] = {
a83746ef 2142 { TT_NEGREP, zAvoid_Bool_TypeBypass0, (regex_t*)NULL },
2c59c6d3 2143 { TT_EGREP, zAvoid_Bool_TypeSelect0, (regex_t*)NULL }, };
2144
2145/*
2146 * Fix Command Arguments for Avoid_Bool_Type
2147 */
2548396b 2148static const char* apzAvoid_Bool_TypePatch[] = {
2c59c6d3 2149 "format",
2150 "#ifndef __cplusplus\n\
2151%0\n\
2152#endif",
fdb8fb96 2153 (char*)NULL };
2154
7ab30fe8 2155/* * * * * * * * * * * * * * * * * * * * * * * * * *
2156 *
2157 * Description of Avoid_Wchar_T_Type fix
2158 */
7ab30fe8 2159tSCC zAvoid_Wchar_T_TypeName[] =
2160 "avoid_wchar_t_type";
2161
2162/*
2163 * File name selection pattern
2164 */
2165#define zAvoid_Wchar_T_TypeList (char*)NULL
2166/*
2167 * Machine/OS name selection pattern
2168 */
2169#define apzAvoid_Wchar_T_TypeMachs (const char**)NULL
2170
2171/*
2172 * content selection pattern - do fix if pattern found
2173 */
2174tSCC zAvoid_Wchar_T_TypeSelect0[] =
2175 "^[ \t]*typedef[ \t].*[ \t]wchar_t[ \t]*;";
2176
5f6aa019 2177/*
2178 * content bypass pattern - skip fix if pattern found
2179 */
2180tSCC zAvoid_Wchar_T_TypeBypass0[] =
37e6e5d2 2181 "__cplusplus";
5f6aa019 2182tSCC zAvoid_Wchar_T_TypeBypass1[] =
2183 "_LINUX_NLS_H";
2184tSCC zAvoid_Wchar_T_TypeBypass2[] =
2185 "XFree86: xc/lib/X11/Xlib\\.h";
2186
2187#define AVOID_WCHAR_T_TYPE_TEST_CT 4
7ab30fe8 2188static tTestDesc aAvoid_Wchar_T_TypeTests[] = {
5f6aa019 2189 { TT_NEGREP, zAvoid_Wchar_T_TypeBypass0, (regex_t*)NULL },
2190 { TT_NEGREP, zAvoid_Wchar_T_TypeBypass1, (regex_t*)NULL },
2191 { TT_NEGREP, zAvoid_Wchar_T_TypeBypass2, (regex_t*)NULL },
7ab30fe8 2192 { TT_EGREP, zAvoid_Wchar_T_TypeSelect0, (regex_t*)NULL }, };
2193
2194/*
2195 * Fix Command Arguments for Avoid_Wchar_T_Type
2196 */
2197static const char* apzAvoid_Wchar_T_TypePatch[] = {
2198 "format",
2199 "#ifndef __cplusplus\n\
2200%0\n\
2201#endif",
7ab30fe8 2202 (char*)NULL };
2203
fdb8fb96 2204/* * * * * * * * * * * * * * * * * * * * * * * * * *
2205 *
5daf7ede 2206 * Description of Bad_Struct_Term fix
fdb8fb96 2207 */
2208tSCC zBad_Struct_TermName[] =
d4c4b01d 2209 "bad_struct_term";
2210
fdb8fb96 2211/*
2212 * File name selection pattern
2213 */
2214tSCC zBad_Struct_TermList[] =
e9afa104 2215 "curses.h\0";
fdb8fb96 2216/*
2217 * Machine/OS name selection pattern
2218 */
2219#define apzBad_Struct_TermMachs (const char**)NULL
2220
2221/*
c1b28c63 2222 * content selection pattern - do fix if pattern found
fdb8fb96 2223 */
2224tSCC zBad_Struct_TermSelect0[] =
2225 "^[ \t]*typedef[ \t]+struct[ \t]+term[ \t]*;";
2226
2227#define BAD_STRUCT_TERM_TEST_CT 1
2548396b 2228static tTestDesc aBad_Struct_TermTests[] = {
5daf7ede 2229 { TT_EGREP, zBad_Struct_TermSelect0, (regex_t*)NULL }, };
fdb8fb96 2230
2231/*
2232 * Fix Command Arguments for Bad_Struct_Term
2233 */
2548396b 2234static const char* apzBad_Struct_TermPatch[] = {
2c59c6d3 2235 "format",
2236 "struct term;",
fdb8fb96 2237 (char*)NULL };
2238
2239/* * * * * * * * * * * * * * * * * * * * * * * * * *
2240 *
5daf7ede 2241 * Description of Badquote fix
fdb8fb96 2242 */
2243tSCC zBadquoteName[] =
d4c4b01d 2244 "badquote";
2245
fdb8fb96 2246/*
2247 * File name selection pattern
2248 */
2249tSCC zBadquoteList[] =
e9afa104 2250 "sundev/vuid_event.h\0";
fdb8fb96 2251/*
2252 * Machine/OS name selection pattern
2253 */
2254#define apzBadquoteMachs (const char**)NULL
2c59c6d3 2255
2256/*
2257 * content selection pattern - do fix if pattern found
2258 */
2259tSCC zBadquoteSelect0[] =
2260 "doesn't";
2261
2262#define BADQUOTE_TEST_CT 1
2548396b 2263static tTestDesc aBadquoteTests[] = {
2c59c6d3 2264 { TT_EGREP, zBadquoteSelect0, (regex_t*)NULL }, };
fdb8fb96 2265
2266/*
2267 * Fix Command Arguments for Badquote
2268 */
2548396b 2269static const char* apzBadquotePatch[] = {
2c59c6d3 2270 "format",
2271 "does not",
fdb8fb96 2272 (char*)NULL };
2273
fdb8fb96 2274/* * * * * * * * * * * * * * * * * * * * * * * * * *
2275 *
5daf7ede 2276 * Description of Broken_Assert_Stdio fix
fdb8fb96 2277 */
2278tSCC zBroken_Assert_StdioName[] =
d4c4b01d 2279 "broken_assert_stdio";
2280
fdb8fb96 2281/*
2282 * File name selection pattern
2283 */
2284tSCC zBroken_Assert_StdioList[] =
e9afa104 2285 "assert.h\0";
fdb8fb96 2286/*
2287 * Machine/OS name selection pattern
2288 */
2289#define apzBroken_Assert_StdioMachs (const char**)NULL
2290
2291/*
c1b28c63 2292 * content selection pattern - do fix if pattern found
fdb8fb96 2293 */
2294tSCC zBroken_Assert_StdioSelect0[] =
2295 "stderr";
2296
2297/*
c1b28c63 2298 * content bypass pattern - skip fix if pattern found
fdb8fb96 2299 */
2300tSCC zBroken_Assert_StdioBypass0[] =
52686fb5 2301 "include.*stdio\\.h";
fdb8fb96 2302
2303#define BROKEN_ASSERT_STDIO_TEST_CT 2
2548396b 2304static tTestDesc aBroken_Assert_StdioTests[] = {
5daf7ede 2305 { TT_NEGREP, zBroken_Assert_StdioBypass0, (regex_t*)NULL },
2306 { TT_EGREP, zBroken_Assert_StdioSelect0, (regex_t*)NULL }, };
fdb8fb96 2307
2308/*
2309 * Fix Command Arguments for Broken_Assert_Stdio
2310 */
2548396b 2311static const char* apzBroken_Assert_StdioPatch[] = {
e6650807 2312 "wrap",
2313 "#include <stdio.h>\n",
fdb8fb96 2314 (char*)NULL };
2315
2316/* * * * * * * * * * * * * * * * * * * * * * * * * *
2317 *
5daf7ede 2318 * Description of Broken_Assert_Stdlib fix
fdb8fb96 2319 */
2320tSCC zBroken_Assert_StdlibName[] =
d4c4b01d 2321 "broken_assert_stdlib";
2322
fdb8fb96 2323/*
2324 * File name selection pattern
2325 */
2326tSCC zBroken_Assert_StdlibList[] =
e9afa104 2327 "assert.h\0";
fdb8fb96 2328/*
2329 * Machine/OS name selection pattern
2330 */
2331#define apzBroken_Assert_StdlibMachs (const char**)NULL
2332
2333/*
c1b28c63 2334 * content selection pattern - do fix if pattern found
fdb8fb96 2335 */
2336tSCC zBroken_Assert_StdlibSelect0[] =
2337 "exit *\\(|abort *\\(";
2338
2339/*
c1b28c63 2340 * content bypass pattern - skip fix if pattern found
fdb8fb96 2341 */
2342tSCC zBroken_Assert_StdlibBypass0[] =
52686fb5 2343 "include.*stdlib\\.h";
fdb8fb96 2344
2345#define BROKEN_ASSERT_STDLIB_TEST_CT 2
2548396b 2346static tTestDesc aBroken_Assert_StdlibTests[] = {
5daf7ede 2347 { TT_NEGREP, zBroken_Assert_StdlibBypass0, (regex_t*)NULL },
2348 { TT_EGREP, zBroken_Assert_StdlibSelect0, (regex_t*)NULL }, };
fdb8fb96 2349
2350/*
2351 * Fix Command Arguments for Broken_Assert_Stdlib
2352 */
2548396b 2353static const char* apzBroken_Assert_StdlibPatch[] = {
e6650807 2354 "wrap",
2355 "#ifdef __cplusplus\n\
2356#include <stdlib.h>\n\
2357#endif\n",
fdb8fb96 2358 (char*)NULL };
2359
58d8674b 2360/* * * * * * * * * * * * * * * * * * * * * * * * * *
2361 *
2362 * Description of Broken_Cabs fix
2363 */
58d8674b 2364tSCC zBroken_CabsName[] =
2365 "broken_cabs";
2366
2367/*
2368 * File name selection pattern
2369 */
2370tSCC zBroken_CabsList[] =
e9afa104 2371 "math.h\0architecture/*/math.h\0";
58d8674b 2372/*
2373 * Machine/OS name selection pattern
2374 */
2375#define apzBroken_CabsMachs (const char**)NULL
2376
2377/*
2378 * content selection pattern - do fix if pattern found
2379 */
2380tSCC zBroken_CabsSelect0[] =
19754f2b 2381 "^extern[ \t]+double[ \t]+cabs";
58d8674b 2382
2383#define BROKEN_CABS_TEST_CT 1
2548396b 2384static tTestDesc aBroken_CabsTests[] = {
58d8674b 2385 { TT_EGREP, zBroken_CabsSelect0, (regex_t*)NULL }, };
2386
2387/*
2388 * Fix Command Arguments for Broken_Cabs
2389 */
b32d497c 2390static const char* apzBroken_CabsPatch[] = { sed_cmd_z,
462510b2 2391 "-e", "s/^extern[ \t]*double[ \t]*cabs[ \t]*([^\\)]*);//",
2392 "-e", "s/^extern[ \t]*long[ \t]*double[ \t]*cabsl[ \t]*([^\\)]*);//",
58d8674b 2393 (char*)NULL };
2394
baee91be 2395/* * * * * * * * * * * * * * * * * * * * * * * * * *
2396 *
2397 * Description of Broken_Nan fix
2398 */
2399tSCC zBroken_NanName[] =
2400 "broken_nan";
2401
2402/*
2403 * File name selection pattern
2404 */
2405tSCC zBroken_NanList[] =
e9afa104 2406 "architecture/ppc/math.h\0architecture/*/math.h\0";
baee91be 2407/*
2408 * Machine/OS name selection pattern
2409 */
2410#define apzBroken_NanMachs (const char**)NULL
2411
2412/*
2413 * content selection pattern - do fix if pattern found
2414 */
2415tSCC zBroken_NanSelect0[] =
32f37500 2416 "#if defined\\(__APPLE_CC__\\) && \\(__APPLE_CC__ >= 1345\\)";
baee91be 2417
2418/*
2419 * content bypass pattern - skip fix if pattern found
2420 */
2421tSCC zBroken_NanBypass0[] =
2422 "powl";
2423
2424#define BROKEN_NAN_TEST_CT 2
2425static tTestDesc aBroken_NanTests[] = {
2426 { TT_NEGREP, zBroken_NanBypass0, (regex_t*)NULL },
2427 { TT_EGREP, zBroken_NanSelect0, (regex_t*)NULL }, };
2428
2429/*
2430 * Fix Command Arguments for Broken_Nan
2431 */
2432static const char* apzBroken_NanPatch[] = {
2433 "format",
2434 "#if 1",
2435 (char*)NULL };
2436
d45e22c2 2437/* * * * * * * * * * * * * * * * * * * * * * * * * *
2438 *
2439 * Description of Bsd_Stdio_Attrs_Conflict fix
2440 */
2441tSCC zBsd_Stdio_Attrs_ConflictName[] =
2442 "bsd_stdio_attrs_conflict";
2443
2444/*
2445 * File name selection pattern
2446 */
2447tSCC zBsd_Stdio_Attrs_ConflictList[] =
e9afa104 2448 "stdio.h\0";
d45e22c2 2449/*
2450 * Machine/OS name selection pattern
2451 */
2452tSCC* apzBsd_Stdio_Attrs_ConflictMachs[] = {
2453 "*-*-*bsd*",
2454 "*-*-*darwin*",
2455 (const char*)NULL };
2456
2457/*
2458 * content selection pattern - do fix if pattern found
2459 */
2460tSCC zBsd_Stdio_Attrs_ConflictSelect0[] =
2461 "^#define[ \t]*vfscanf[ \t]*__svfscanf[ \t]*$";
2462
2463#define BSD_STDIO_ATTRS_CONFLICT_TEST_CT 1
2464static tTestDesc aBsd_Stdio_Attrs_ConflictTests[] = {
2465 { TT_EGREP, zBsd_Stdio_Attrs_ConflictSelect0, (regex_t*)NULL }, };
2466
2467/*
2468 * Fix Command Arguments for Bsd_Stdio_Attrs_Conflict
2469 */
2470static const char* apzBsd_Stdio_Attrs_ConflictPatch[] = {
2471 "format",
2472 "#define _BSD_STRING(_BSD_X) _BSD_STRINGX(_BSD_X)\n\
2473#define _BSD_STRINGX(_BSD_X) #_BSD_X\n\
2474int vfscanf(FILE *, const char *, __builtin_va_list) __asm__ (_BSD_STRING(__USER_LABEL_PREFIX__) \"__svfscanf\");",
2475 (char*)NULL };
2476
38ebab8a 2477/* * * * * * * * * * * * * * * * * * * * * * * * * *
2478 *
cfe5be71 2479 * Description of Ctrl_Quotes_Def fix
38ebab8a 2480 */
cfe5be71 2481tSCC zCtrl_Quotes_DefName[] =
2482 "ctrl_quotes_def";
d4c4b01d 2483
38ebab8a 2484/*
2485 * File name selection pattern
2486 */
cfe5be71 2487#define zCtrl_Quotes_DefList (char*)NULL
38ebab8a 2488/*
2489 * Machine/OS name selection pattern
2490 */
cfe5be71 2491#define apzCtrl_Quotes_DefMachs (const char**)NULL
38ebab8a 2492
2493/*
cfe5be71 2494 * content selection pattern - do fix if pattern found
38ebab8a 2495 */
cfe5be71 2496tSCC zCtrl_Quotes_DefSelect0[] =
edb5e81d 2497 "define[ \t]+[A-Z0-9_]+CTRL\\([a-zA-Z][,)]";
cfe5be71 2498
2499#define CTRL_QUOTES_DEF_TEST_CT 1
2548396b 2500static tTestDesc aCtrl_Quotes_DefTests[] = {
cfe5be71 2501 { TT_EGREP, zCtrl_Quotes_DefSelect0, (regex_t*)NULL }, };
2502
2503/*
2504 * Fix Command Arguments for Ctrl_Quotes_Def
2505 */
2548396b 2506static const char* apzCtrl_Quotes_DefPatch[] = {
cfe5be71 2507 "char_macro_def",
2508 "CTRL",
38ebab8a 2509 (char*)NULL };
2510
fdb8fb96 2511/* * * * * * * * * * * * * * * * * * * * * * * * * *
2512 *
cfe5be71 2513 * Description of Ctrl_Quotes_Use fix
fdb8fb96 2514 */
cfe5be71 2515tSCC zCtrl_Quotes_UseName[] =
2516 "ctrl_quotes_use";
d4c4b01d 2517
fdb8fb96 2518/*
2519 * File name selection pattern
2520 */
cfe5be71 2521#define zCtrl_Quotes_UseList (char*)NULL
fdb8fb96 2522/*
2523 * Machine/OS name selection pattern
2524 */
cfe5be71 2525#define apzCtrl_Quotes_UseMachs (const char**)NULL
fdb8fb96 2526
2527/*
cfe5be71 2528 * content selection pattern - do fix if pattern found
fdb8fb96 2529 */
cfe5be71 2530tSCC zCtrl_Quotes_UseSelect0[] =
2531 "define[ \t]+[A-Z0-9_]+[ \t]+[A-Z0-9_]+CTRL[ \t]*\\( *[^,']";
2532
2533#define CTRL_QUOTES_USE_TEST_CT 1
2548396b 2534static tTestDesc aCtrl_Quotes_UseTests[] = {
cfe5be71 2535 { TT_EGREP, zCtrl_Quotes_UseSelect0, (regex_t*)NULL }, };
2536
2537/*
2538 * Fix Command Arguments for Ctrl_Quotes_Use
2539 */
2548396b 2540static const char* apzCtrl_Quotes_UsePatch[] = {
cfe5be71 2541 "char_macro_use",
2542 "CTRL",
fdb8fb96 2543 (char*)NULL };
2544
fdb8fb96 2545/* * * * * * * * * * * * * * * * * * * * * * * * * *
2546 *
cfe5be71 2547 * Description of Cxx_Unready fix
fdb8fb96 2548 */
cfe5be71 2549tSCC zCxx_UnreadyName[] =
2550 "cxx_unready";
d4c4b01d 2551
fdb8fb96 2552/*
2553 * File name selection pattern
2554 */
cfe5be71 2555tSCC zCxx_UnreadyList[] =
e9afa104 2556 "sys/mman.h\0rpc/types.h\0";
fdb8fb96 2557/*
2558 * Machine/OS name selection pattern
2559 */
cfe5be71 2560#define apzCxx_UnreadyMachs (const char**)NULL
fdb8fb96 2561
2562/*
c1b28c63 2563 * content selection pattern - do fix if pattern found
fdb8fb96 2564 */
cfe5be71 2565tSCC zCxx_UnreadySelect0[] =
2566 "[^#]+malloc.*;";
fdb8fb96 2567
cfe5be71 2568/*
2569 * content bypass pattern - skip fix if pattern found
2570 */
2571tSCC zCxx_UnreadyBypass0[] =
2572 "\"C\"|__BEGIN_DECLS";
2573
2574#define CXX_UNREADY_TEST_CT 2
2548396b 2575static tTestDesc aCxx_UnreadyTests[] = {
cfe5be71 2576 { TT_NEGREP, zCxx_UnreadyBypass0, (regex_t*)NULL },
2577 { TT_EGREP, zCxx_UnreadySelect0, (regex_t*)NULL }, };
fdb8fb96 2578
2579/*
cfe5be71 2580 * Fix Command Arguments for Cxx_Unready
fdb8fb96 2581 */
2548396b 2582static const char* apzCxx_UnreadyPatch[] = {
cfe5be71 2583 "wrap",
2584 "#ifdef __cplusplus\n\
2585extern \"C\" {\n\
2586#endif\n",
2587 "#ifdef __cplusplus\n\
2588}\n\
2589#endif\n",
fdb8fb96 2590 (char*)NULL };
2591
a11195e1 2592/* * * * * * * * * * * * * * * * * * * * * * * * * *
2593 *
2594 * Description of Darwin_Availabilityinternal fix
2595 */
2596tSCC zDarwin_AvailabilityinternalName[] =
2597 "darwin_availabilityinternal";
2598
2599/*
2600 * File name selection pattern
2601 */
2602tSCC zDarwin_AvailabilityinternalList[] =
2603 "AvailabilityInternal.h\0";
2604/*
2605 * Machine/OS name selection pattern
2606 */
2607tSCC* apzDarwin_AvailabilityinternalMachs[] = {
2608 "*-*-darwin*",
2609 (const char*)NULL };
2610
2611/*
2612 * content selection pattern - do fix if pattern found
2613 */
2614tSCC zDarwin_AvailabilityinternalSelect0[] =
2615 "#define[ \t]+(__API_[ADU]\\([^)]*\\)).*";
2616
2617#define DARWIN_AVAILABILITYINTERNAL_TEST_CT 1
2618static tTestDesc aDarwin_AvailabilityinternalTests[] = {
2619 { TT_EGREP, zDarwin_AvailabilityinternalSelect0, (regex_t*)NULL }, };
2620
2621/*
2622 * Fix Command Arguments for Darwin_Availabilityinternal
2623 */
2624static const char* apzDarwin_AvailabilityinternalPatch[] = {
2625 "format",
2626 "#if defined(__has_attribute)\n\
2627 #if __has_attribute(availability)\n\
2628%0\n\
2629 #else\n\
2630 #define %1\n\
2631 #endif\n\
2632#else\n\
2633 #define %1\n\
2634#endif",
2635 (char*)NULL };
2636
32f37500 2637/* * * * * * * * * * * * * * * * * * * * * * * * * *
2638 *
2639 * Description of Darwin_9_Long_Double_Funcs_2 fix
2640 */
2641tSCC zDarwin_9_Long_Double_Funcs_2Name[] =
2642 "darwin_9_long_double_funcs_2";
2643
2644/*
2645 * File name selection pattern
2646 */
2647tSCC zDarwin_9_Long_Double_Funcs_2List[] =
2648 "math.h\0";
2649/*
2650 * Machine/OS name selection pattern
2651 */
2652tSCC* apzDarwin_9_Long_Double_Funcs_2Machs[] = {
2653 "*-*-darwin7.9*",
2654 (const char*)NULL };
2655
2656/*
2657 * content selection pattern - do fix if pattern found
2658 */
2659tSCC zDarwin_9_Long_Double_Funcs_2Select0[] =
2660 "#include[ \\t]+\\\"";
2661
2662#define DARWIN_9_LONG_DOUBLE_FUNCS_2_TEST_CT 1
2663static tTestDesc aDarwin_9_Long_Double_Funcs_2Tests[] = {
2664 { TT_EGREP, zDarwin_9_Long_Double_Funcs_2Select0, (regex_t*)NULL }, };
2665
2666/*
2667 * Fix Command Arguments for Darwin_9_Long_Double_Funcs_2
2668 */
2669static const char* apzDarwin_9_Long_Double_Funcs_2Patch[] = {
2670 "format",
2671 "%1<%2.h>",
2672 "([ \\t]*#[ \\t]*include[ \\t]+)\"([a-z0-9/]+)\\.h\"",
2673 (char*)NULL };
2674
1908d6ac 2675/* * * * * * * * * * * * * * * * * * * * * * * * * *
2676 *
2677 * Description of Darwin_Externc fix
2678 */
2679tSCC zDarwin_ExterncName[] =
2680 "darwin_externc";
2681
2682/*
2683 * File name selection pattern
2684 */
2685tSCC zDarwin_ExterncList[] =
2686 "mach-o/swap.h\0mach/mach_time.h\0mach/mach_traps.h\0mach/message.h\0mach/mig.h\0mach/semaphore.h\0";
2687/*
2688 * Machine/OS name selection pattern
2689 */
2690tSCC* apzDarwin_ExterncMachs[] = {
2691 "*-*-darwin*",
2692 (const char*)NULL };
2693
2694/*
2695 * content bypass pattern - skip fix if pattern found
2696 */
2697tSCC zDarwin_ExterncBypass0[] =
2698 "extern \"C\"";
2699tSCC zDarwin_ExterncBypass1[] =
2700 "__BEGIN_DECLS";
2701
2702#define DARWIN_EXTERNC_TEST_CT 2
2703static tTestDesc aDarwin_ExterncTests[] = {
2704 { TT_NEGREP, zDarwin_ExterncBypass0, (regex_t*)NULL },
2705 { TT_NEGREP, zDarwin_ExterncBypass1, (regex_t*)NULL }, };
2706
2707/*
2708 * Fix Command Arguments for Darwin_Externc
2709 */
2710static const char* apzDarwin_ExterncPatch[] = {
2711 "wrap",
2712 "#ifdef __cplusplus\n\
2713extern \"C\" {\n\
2714#endif\n",
2715 "#ifdef __cplusplus\n\
2716}\n\
2717#endif\n",
2718 (char*)NULL };
2719
975d636c 2720/* * * * * * * * * * * * * * * * * * * * * * * * * *
2721 *
2722 * Description of Darwin_Gcc4_Breakage fix
2723 */
2724tSCC zDarwin_Gcc4_BreakageName[] =
2725 "darwin_gcc4_breakage";
2726
2727/*
2728 * File name selection pattern
2729 */
2730tSCC zDarwin_Gcc4_BreakageList[] =
e9afa104 2731 "AvailabilityMacros.h\0";
975d636c 2732/*
2733 * Machine/OS name selection pattern
2734 */
2735tSCC* apzDarwin_Gcc4_BreakageMachs[] = {
2736 "*-*-darwin*",
2737 (const char*)NULL };
2738
2739/*
2740 * content selection pattern - do fix if pattern found
2741 */
2742tSCC zDarwin_Gcc4_BreakageSelect0[] =
2743 "\\(__GNUC__ >= 3\\) && \\(__GNUC_MINOR__ >= 1\\)";
2744
2745#define DARWIN_GCC4_BREAKAGE_TEST_CT 1
2746static tTestDesc aDarwin_Gcc4_BreakageTests[] = {
2747 { TT_EGREP, zDarwin_Gcc4_BreakageSelect0, (regex_t*)NULL }, };
2748
2749/*
2750 * Fix Command Arguments for Darwin_Gcc4_Breakage
2751 */
2752static const char* apzDarwin_Gcc4_BreakagePatch[] = {
2753 "format",
2754 "((__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 1))",
2755 (char*)NULL };
2756
d6856a0e 2757/* * * * * * * * * * * * * * * * * * * * * * * * * *
2758 *
2759 * Description of Darwin_Longjmp_Noreturn fix
2760 */
2761tSCC zDarwin_Longjmp_NoreturnName[] =
2762 "darwin_longjmp_noreturn";
2763
2764/*
2765 * File name selection pattern
2766 */
2767tSCC zDarwin_Longjmp_NoreturnList[] =
2768 "i386/setjmp.h\0";
2769/*
2770 * Machine/OS name selection pattern
2771 */
2772tSCC* apzDarwin_Longjmp_NoreturnMachs[] = {
2773 "*-*-darwin*",
2774 (const char*)NULL };
2775
2776/*
2777 * content selection pattern - do fix if pattern found
2778 */
2779tSCC zDarwin_Longjmp_NoreturnSelect0[] =
2780 "(.*longjmp\\(.*jmp_buf.*[^)]+\\));";
2781
2782/*
2783 * content bypass pattern - skip fix if pattern found
2784 */
2785tSCC zDarwin_Longjmp_NoreturnBypass0[] =
2786 "__dead2";
2787
2788#define DARWIN_LONGJMP_NORETURN_TEST_CT 2
2789static tTestDesc aDarwin_Longjmp_NoreturnTests[] = {
2790 { TT_NEGREP, zDarwin_Longjmp_NoreturnBypass0, (regex_t*)NULL },
2791 { TT_EGREP, zDarwin_Longjmp_NoreturnSelect0, (regex_t*)NULL }, };
2792
2793/*
2794 * Fix Command Arguments for Darwin_Longjmp_Noreturn
2795 */
2796static const char* apzDarwin_Longjmp_NoreturnPatch[] = {
2797 "format",
2798 "%1 __attribute__ ((__noreturn__));",
2799 (char*)NULL };
2800
a11195e1 2801/* * * * * * * * * * * * * * * * * * * * * * * * * *
2802 *
2803 * Description of Darwin_Os_Trace_1 fix
2804 */
2805tSCC zDarwin_Os_Trace_1Name[] =
2806 "darwin_os_trace_1";
2807
2808/*
2809 * File name selection pattern
2810 */
2811tSCC zDarwin_Os_Trace_1List[] =
2812 "os/trace.h\0";
2813/*
2814 * Machine/OS name selection pattern
2815 */
2816tSCC* apzDarwin_Os_Trace_1Machs[] = {
2817 "*-*-darwin*",
2818 (const char*)NULL };
2819
2820/*
2821 * content selection pattern - do fix if pattern found
2822 */
2823tSCC zDarwin_Os_Trace_1Select0[] =
2824 "^(_os_trace_verify_printf.*) (__attribute__.*)";
2825
2826#define DARWIN_OS_TRACE_1_TEST_CT 1
2827static tTestDesc aDarwin_Os_Trace_1Tests[] = {
2828 { TT_EGREP, zDarwin_Os_Trace_1Select0, (regex_t*)NULL }, };
2829
2830/*
2831 * Fix Command Arguments for Darwin_Os_Trace_1
2832 */
2833static const char* apzDarwin_Os_Trace_1Patch[] = {
2834 "format",
2835 "%1",
2836 (char*)NULL };
2837
2838/* * * * * * * * * * * * * * * * * * * * * * * * * *
2839 *
2840 * Description of Darwin_Os_Trace_2 fix
2841 */
2842tSCC zDarwin_Os_Trace_2Name[] =
2843 "darwin_os_trace_2";
2844
2845/*
2846 * File name selection pattern
2847 */
2848tSCC zDarwin_Os_Trace_2List[] =
2849 "os/trace.h\0";
2850/*
2851 * Machine/OS name selection pattern
2852 */
2853tSCC* apzDarwin_Os_Trace_2Machs[] = {
2854 "*-*-darwin*",
2855 (const char*)NULL };
2856
2857/*
2858 * content selection pattern - do fix if pattern found
2859 */
2860tSCC zDarwin_Os_Trace_2Select0[] =
2861 "typedef.*\\^os_trace_payload_t.*";
2862
2863#define DARWIN_OS_TRACE_2_TEST_CT 1
2864static tTestDesc aDarwin_Os_Trace_2Tests[] = {
2865 { TT_EGREP, zDarwin_Os_Trace_2Select0, (regex_t*)NULL }, };
2866
2867/*
2868 * Fix Command Arguments for Darwin_Os_Trace_2
2869 */
2870static const char* apzDarwin_Os_Trace_2Patch[] = {
2871 "format",
2872 "#if __BLOCKS__\n\
2873%0\n\
2874#endif",
2875 (char*)NULL };
2876
2877/* * * * * * * * * * * * * * * * * * * * * * * * * *
2878 *
2879 * Description of Darwin_Os_Trace_3 fix
2880 */
2881tSCC zDarwin_Os_Trace_3Name[] =
2882 "darwin_os_trace_3";
2883
2884/*
2885 * File name selection pattern
2886 */
2887tSCC zDarwin_Os_Trace_3List[] =
2888 "os/trace.h\0";
2889/*
2890 * Machine/OS name selection pattern
2891 */
2892tSCC* apzDarwin_Os_Trace_3Machs[] = {
2893 "*-*-darwin*",
2894 (const char*)NULL };
2895
2896/*
2897 * content selection pattern - do fix if pattern found
2898 */
2899tSCC zDarwin_Os_Trace_3Select0[] =
2900 "__(API|OSX)_.*\n\
2901OS_EXPORT.*\n\
2902.*\n\
2903_os_trace.*os_trace_payload_t payload);";
2904
2905#define DARWIN_OS_TRACE_3_TEST_CT 1
2906static tTestDesc aDarwin_Os_Trace_3Tests[] = {
2907 { TT_EGREP, zDarwin_Os_Trace_3Select0, (regex_t*)NULL }, };
2908
2909/*
2910 * Fix Command Arguments for Darwin_Os_Trace_3
2911 */
2912static const char* apzDarwin_Os_Trace_3Patch[] = {
2913 "format",
2914 "#if __BLOCKS__\n\
2915%0\n\
2916#endif",
2917 (char*)NULL };
2918
3067e435 2919/* * * * * * * * * * * * * * * * * * * * * * * * * *
2920 *
2921 * Description of Darwin_Private_Extern fix
2922 */
2923tSCC zDarwin_Private_ExternName[] =
2924 "darwin_private_extern";
2925
2926/*
2927 * File name selection pattern
2928 */
2929tSCC zDarwin_Private_ExternList[] =
e9afa104 2930 "mach-o/dyld.h\0";
3067e435 2931/*
2932 * Machine/OS name selection pattern
2933 */
2934tSCC* apzDarwin_Private_ExternMachs[] = {
2935 "*-*-darwin*",
2936 (const char*)NULL };
2937
2938/*
2939 * content selection pattern - do fix if pattern found
2940 */
2941tSCC zDarwin_Private_ExternSelect0[] =
2942 "__private_extern__ [a-z_]+ _dyld_";
2943
2944#define DARWIN_PRIVATE_EXTERN_TEST_CT 1
2945static tTestDesc aDarwin_Private_ExternTests[] = {
2946 { TT_EGREP, zDarwin_Private_ExternSelect0, (regex_t*)NULL }, };
2947
2948/*
2949 * Fix Command Arguments for Darwin_Private_Extern
2950 */
2951static const char* apzDarwin_Private_ExternPatch[] = {
2952 "format",
2953 "extern",
2954 "__private_extern__",
2955 (char*)NULL };
2956
0e1f6b4f 2957/* * * * * * * * * * * * * * * * * * * * * * * * * *
2958 *
2959 * Description of Darwin_Stdint_1 fix
2960 */
2961tSCC zDarwin_Stdint_1Name[] =
2962 "darwin_stdint_1";
2963
2964/*
2965 * File name selection pattern
2966 */
2967tSCC zDarwin_Stdint_1List[] =
e2fb821c 2968 "stdint-darwin.h\0stdint.h\0";
0e1f6b4f 2969/*
2970 * Machine/OS name selection pattern
2971 */
2972tSCC* apzDarwin_Stdint_1Machs[] = {
2973 "*-*-darwin*",
2974 (const char*)NULL };
2975
2976/*
2977 * content selection pattern - do fix if pattern found
2978 */
2979tSCC zDarwin_Stdint_1Select0[] =
2980 "#define UINT8_C\\(v\\)[ \t]+\\(v ## U\\)\n\
2981#define UINT16_C\\(v\\)[ \t]+\\(v ## U\\)";
2982
2983#define DARWIN_STDINT_1_TEST_CT 1
2984static tTestDesc aDarwin_Stdint_1Tests[] = {
2985 { TT_EGREP, zDarwin_Stdint_1Select0, (regex_t*)NULL }, };
2986
2987/*
2988 * Fix Command Arguments for Darwin_Stdint_1
2989 */
2990static const char* apzDarwin_Stdint_1Patch[] = {
2991 "format",
2992 "#define UINT8_C(v)\tv\n\
2993#define UINT16_C(v)\tv",
2994 (char*)NULL };
2995
2996/* * * * * * * * * * * * * * * * * * * * * * * * * *
2997 *
2998 * Description of Darwin_Stdint_2 fix
2999 */
3000tSCC zDarwin_Stdint_2Name[] =
3001 "darwin_stdint_2";
3002
3003/*
3004 * File name selection pattern
3005 */
3006tSCC zDarwin_Stdint_2List[] =
e2fb821c 3007 "stdint-darwin.h\0stdint.h\0";
0e1f6b4f 3008/*
3009 * Machine/OS name selection pattern
3010 */
3011tSCC* apzDarwin_Stdint_2Machs[] = {
3012 "*-*-darwin*",
3013 (const char*)NULL };
3014
3015/*
3016 * content selection pattern - do fix if pattern found
3017 */
3018tSCC zDarwin_Stdint_2Select0[] =
3019 "#if __WORDSIZE == 64\n\
3020#define INTPTR_MIN[ \t]+INT64_MIN\n\
3021#define INTPTR_MAX[ \t]+INT64_MAX\n\
3022#else\n\
3023#define INTPTR_MIN[ \t]+INT32_MIN\n\
3024#define INTPTR_MAX[ \t]+INT32_MAX\n\
3025#endif";
3026
3027#define DARWIN_STDINT_2_TEST_CT 1
3028static tTestDesc aDarwin_Stdint_2Tests[] = {
3029 { TT_EGREP, zDarwin_Stdint_2Select0, (regex_t*)NULL }, };
3030
3031/*
3032 * Fix Command Arguments for Darwin_Stdint_2
3033 */
3034static const char* apzDarwin_Stdint_2Patch[] = {
3035 "format",
3036 "#if __WORDSIZE == 64\n\
3037#define INTPTR_MAX 9223372036854775807L\n\
3038#define INTPTR_MIN (-INTPTR_MAX-1)\n\
3039#else\n\
3040#define INTPTR_MAX 2147483647L\n\
3041#define INTPTR_MIN (-INTPTR_MAX-1)\n\
3042#endif",
3043 (char*)NULL };
3044
3045/* * * * * * * * * * * * * * * * * * * * * * * * * *
3046 *
3047 * Description of Darwin_Stdint_3 fix
3048 */
3049tSCC zDarwin_Stdint_3Name[] =
3050 "darwin_stdint_3";
3051
3052/*
3053 * File name selection pattern
3054 */
3055tSCC zDarwin_Stdint_3List[] =
e2fb821c 3056 "stdint-darwin.h\0stdint.h\0";
0e1f6b4f 3057/*
3058 * Machine/OS name selection pattern
3059 */
3060tSCC* apzDarwin_Stdint_3Machs[] = {
3061 "*-*-darwin*",
3062 (const char*)NULL };
3063
3064/*
3065 * content selection pattern - do fix if pattern found
3066 */
3067tSCC zDarwin_Stdint_3Select0[] =
3068 "#if __WORDSIZE == 64\n\
3069#define UINTPTR_MAX[ \t]+UINT64_MAX\n\
3070#else\n\
3071#define UINTPTR_MAX[ \t]+UINT32_MAX\n\
3072#endif";
3073
3074#define DARWIN_STDINT_3_TEST_CT 1
3075static tTestDesc aDarwin_Stdint_3Tests[] = {
3076 { TT_EGREP, zDarwin_Stdint_3Select0, (regex_t*)NULL }, };
3077
3078/*
3079 * Fix Command Arguments for Darwin_Stdint_3
3080 */
3081static const char* apzDarwin_Stdint_3Patch[] = {
3082 "format",
3083 "#if __WORDSIZE == 64\n\
3084#define UINTPTR_MAX 18446744073709551615UL\n\
3085#else\n\
3086#define UINTPTR_MAX 4294967295UL\n\
3087#endif",
3088 (char*)NULL };
3089
3090/* * * * * * * * * * * * * * * * * * * * * * * * * *
3091 *
3092 * Description of Darwin_Stdint_4 fix
3093 */
3094tSCC zDarwin_Stdint_4Name[] =
3095 "darwin_stdint_4";
3096
3097/*
3098 * File name selection pattern
3099 */
3100tSCC zDarwin_Stdint_4List[] =
e2fb821c 3101 "stdint-darwin.h\0stdint.h\0";
0e1f6b4f 3102/*
3103 * Machine/OS name selection pattern
3104 */
3105tSCC* apzDarwin_Stdint_4Machs[] = {
3106 "*-*-darwin*",
3107 (const char*)NULL };
3108
3109/*
3110 * content selection pattern - do fix if pattern found
3111 */
3112tSCC zDarwin_Stdint_4Select0[] =
3113 "#if __WORDSIZE == 64\n\
3114#define SIZE_MAX[ \t]+UINT64_MAX\n\
3115#else\n\
3116#define SIZE_MAX[ \t]+UINT32_MAX\n\
3117#endif";
3118
3119#define DARWIN_STDINT_4_TEST_CT 1
3120static tTestDesc aDarwin_Stdint_4Tests[] = {
3121 { TT_EGREP, zDarwin_Stdint_4Select0, (regex_t*)NULL }, };
3122
3123/*
3124 * Fix Command Arguments for Darwin_Stdint_4
3125 */
3126static const char* apzDarwin_Stdint_4Patch[] = {
3127 "format",
3128 "#if __WORDSIZE == 64\n\
3129#define SIZE_MAX 18446744073709551615UL\n\
3130#else\n\
3131#define SIZE_MAX 4294967295UL\n\
3132#endif",
3133 (char*)NULL };
3134
c73f01c5 3135/* * * * * * * * * * * * * * * * * * * * * * * * * *
3136 *
3137 * Description of Darwin_Stdint_5 fix
3138 */
3139tSCC zDarwin_Stdint_5Name[] =
3140 "darwin_stdint_5";
3141
3142/*
3143 * File name selection pattern
3144 */
3145tSCC zDarwin_Stdint_5List[] =
e2fb821c 3146 "stdint-darwin.h\0stdint.h\0";
c73f01c5 3147/*
3148 * Machine/OS name selection pattern
3149 */
3150tSCC* apzDarwin_Stdint_5Machs[] = {
3151 "*-*-darwin*",
3152 (const char*)NULL };
3153
3154/*
3155 * content selection pattern - do fix if pattern found
3156 */
3157tSCC zDarwin_Stdint_5Select0[] =
3158 "#define INTMAX_MIN[ \t]+INT64_MIN\n\
3159#define INTMAX_MAX[ \t]+INT64_MAX\n\n\
3160#define UINTMAX_MAX[ \t]+UINT64_MAX";
3161
3162#define DARWIN_STDINT_5_TEST_CT 1
3163static tTestDesc aDarwin_Stdint_5Tests[] = {
3164 { TT_EGREP, zDarwin_Stdint_5Select0, (regex_t*)NULL }, };
3165
3166/*
3167 * Fix Command Arguments for Darwin_Stdint_5
3168 */
3169static const char* apzDarwin_Stdint_5Patch[] = {
3170 "format",
3171 "#if __WORDSIZE == 64\n\
3172#define INTMAX_MIN (-9223372036854775807L - 1)\n\
3173#define INTMAX_MAX 9223372036854775807L\n\
3174#define UINTMAX_MAX 18446744073709551615UL\n\
3175#else\n\
3176#define INTMAX_MIN (-9223372036854775807LL - 1)\n\
3177#define INTMAX_MAX 9223372036854775807LL\n\
3178#define UINTMAX_MAX 18446744073709551615ULL\n\
3179#endif",
3180 (char*)NULL };
3181
3182/* * * * * * * * * * * * * * * * * * * * * * * * * *
3183 *
3184 * Description of Darwin_Stdint_6 fix
3185 */
3186tSCC zDarwin_Stdint_6Name[] =
3187 "darwin_stdint_6";
3188
3189/*
3190 * File name selection pattern
3191 */
3192tSCC zDarwin_Stdint_6List[] =
e2fb821c 3193 "stdint-darwin.h\0stdint.h\0";
c73f01c5 3194/*
3195 * Machine/OS name selection pattern
3196 */
3197tSCC* apzDarwin_Stdint_6Machs[] = {
3198 "*-*-darwin*",
3199 (const char*)NULL };
3200
3201/*
3202 * content selection pattern - do fix if pattern found
3203 */
3204tSCC zDarwin_Stdint_6Select0[] =
3205 "#if __WORDSIZE == 64\n\
3206#define PTRDIFF_MIN[ \t]+INT64_MIN\n\
3207#define PTRDIFF_MAX[ \t]+INT64_MAX\n\
3208#else\n\
3209#define PTRDIFF_MIN[ \t]+INT32_MIN\n\
3210#define PTRDIFF_MAX[ \t]+INT32_MAX\n\
3211#endif";
3212
3213#define DARWIN_STDINT_6_TEST_CT 1
3214static tTestDesc aDarwin_Stdint_6Tests[] = {
3215 { TT_EGREP, zDarwin_Stdint_6Select0, (regex_t*)NULL }, };
3216
3217/*
3218 * Fix Command Arguments for Darwin_Stdint_6
3219 */
3220static const char* apzDarwin_Stdint_6Patch[] = {
3221 "format",
3222 "#if __WORDSIZE == 64\n\
3223#define PTRDIFF_MIN (-9223372036854775807L - 1)\n\
3224#define PTRDIFF_MAX 9223372036854775807L\n\
3225#else\n\
3226#define PTRDIFF_MIN (-2147483647 - 1)\n\
3227#define PTRDIFF_MAX 2147483647\n\
3228#endif",
3229 (char*)NULL };
3230
3231/* * * * * * * * * * * * * * * * * * * * * * * * * *
3232 *
3233 * Description of Darwin_Stdint_7 fix
3234 */
3235tSCC zDarwin_Stdint_7Name[] =
3236 "darwin_stdint_7";
3237
3238/*
3239 * File name selection pattern
3240 */
3241tSCC zDarwin_Stdint_7List[] =
e2fb821c 3242 "stdint-darwin.h\0stdint.h\0";
c73f01c5 3243/*
3244 * Machine/OS name selection pattern
3245 */
3246tSCC* apzDarwin_Stdint_7Machs[] = {
3247 "*-*-darwin*",
3248 (const char*)NULL };
3249
3250/*
3251 * content selection pattern - do fix if pattern found
3252 */
3253tSCC zDarwin_Stdint_7Select0[] =
3254 "#define INTMAX_C\\(v\\)[ \t]+\\(v ## LL\\)\n\
3255#define UINTMAX_C\\(v\\)[ \t]+\\(v ## ULL\\)";
3256
3257#define DARWIN_STDINT_7_TEST_CT 1
3258static tTestDesc aDarwin_Stdint_7Tests[] = {
3259 { TT_EGREP, zDarwin_Stdint_7Select0, (regex_t*)NULL }, };
3260
3261/*
3262 * Fix Command Arguments for Darwin_Stdint_7
3263 */
3264static const char* apzDarwin_Stdint_7Patch[] = {
3265 "format",
3266 "#if __WORDSIZE == 64\n\
3267#define INTMAX_C(v) (v ## L)\n\
3268#define UINTMAX_C(v) (v ## UL)\n\
3269#else\n\
3270#define INTMAX_C(v) (v ## LL)\n\
3271#define UINTMAX_C(v) (v ## ULL)\n\
3272#endif",
3273 (char*)NULL };
3274
62f18056 3275/* * * * * * * * * * * * * * * * * * * * * * * * * *
3276 *
3277 * Description of Darwin_Ucred__Atomic fix
3278 */
3279tSCC zDarwin_Ucred__AtomicName[] =
3280 "darwin_ucred__Atomic";
3281
3282/*
3283 * File name selection pattern
3284 */
3285tSCC zDarwin_Ucred__AtomicList[] =
3286 "sys/ucred.h\0";
3287/*
3288 * Machine/OS name selection pattern
3289 */
3290tSCC* apzDarwin_Ucred__AtomicMachs[] = {
3291 "*-*-darwin*",
3292 (const char*)NULL };
3293
3294/*
3295 * content selection pattern - do fix if pattern found
3296 */
3297tSCC zDarwin_Ucred__AtomicSelect0[] =
3298 "_Atomic";
3299
3300#define DARWIN_UCRED__ATOMIC_TEST_CT 1
3301static tTestDesc aDarwin_Ucred__AtomicTests[] = {
3302 { TT_EGREP, zDarwin_Ucred__AtomicSelect0, (regex_t*)NULL }, };
3303
3304/*
3305 * Fix Command Arguments for Darwin_Ucred__Atomic
3306 */
3307static const char* apzDarwin_Ucred__AtomicPatch[] = {
3308 "wrap",
3309 "#if (__STDC_VERSION__ < 201112L) || defined(__cplusplus)\n\
3310# define _Atomic volatile\n\
3311#endif\n",
3312 "#if (__STDC_VERSION__ < 201112L) || defined(__cplusplus)\n\
3313# undef _Atomic\n\
3314#endif\n",
3315 (char*)NULL };
3316
fdb8fb96 3317/* * * * * * * * * * * * * * * * * * * * * * * * * *
3318 *
cfe5be71 3319 * Description of Dec_Intern_Asm fix
fdb8fb96 3320 */
cfe5be71 3321tSCC zDec_Intern_AsmName[] =
3322 "dec_intern_asm";
d4c4b01d 3323
fdb8fb96 3324/*
3325 * File name selection pattern
3326 */
cfe5be71 3327tSCC zDec_Intern_AsmList[] =
e9afa104 3328 "c_asm.h\0";
fdb8fb96 3329/*
3330 * Machine/OS name selection pattern
3331 */
cfe5be71 3332#define apzDec_Intern_AsmMachs (const char**)NULL
3333#define DEC_INTERN_ASM_TEST_CT 0
3334#define aDec_Intern_AsmTests (tTestDesc*)NULL
fdb8fb96 3335
3336/*
cfe5be71 3337 * Fix Command Arguments for Dec_Intern_Asm
fdb8fb96 3338 */
b32d497c 3339static const char* apzDec_Intern_AsmPatch[] = { sed_cmd_z,
cfe5be71 3340 "-e", "/^[ \t]*float[ \t]*fasm/i\\\n\
3341#ifdef __DECC\n",
3342 "-e", "/^[ \t]*#[ \t]*pragma[ \t]*intrinsic([ \t]*dasm/a\\\n\
3343#endif\n",
3344 (char*)NULL };
fdb8fb96 3345
8c74272d 3346/* * * * * * * * * * * * * * * * * * * * * * * * * *
3347 *
3348 * Description of Djgpp_Wchar_H fix
3349 */
8c74272d 3350tSCC zDjgpp_Wchar_HName[] =
3351 "djgpp_wchar_h";
3352
3353/*
3354 * File name selection pattern
3355 */
3356#define zDjgpp_Wchar_HList (char*)NULL
3357/*
3358 * Machine/OS name selection pattern
3359 */
3360#define apzDjgpp_Wchar_HMachs (const char**)NULL
3361
3362/*
3363 * content selection pattern - do fix if pattern found
3364 */
3365tSCC zDjgpp_Wchar_HSelect0[] =
3366 "__DJ_wint_t";
3367
3368/*
3369 * content bypass pattern - skip fix if pattern found
3370 */
3371tSCC zDjgpp_Wchar_HBypass0[] =
3372 "sys/djtypes.h";
3373
3374#define DJGPP_WCHAR_H_TEST_CT 2
3375static tTestDesc aDjgpp_Wchar_HTests[] = {
3376 { TT_NEGREP, zDjgpp_Wchar_HBypass0, (regex_t*)NULL },
3377 { TT_EGREP, zDjgpp_Wchar_HSelect0, (regex_t*)NULL }, };
3378
3379/*
3380 * Fix Command Arguments for Djgpp_Wchar_H
3381 */
3382static const char* apzDjgpp_Wchar_HPatch[] = {
3383 "format",
3384 "%0\n\
3385#include <sys/djtypes.h>",
3386 "#include <stddef.h>",
3387 (char*)NULL };
3388
cfe5be71 3389/* * * * * * * * * * * * * * * * * * * * * * * * * *
3390 *
3391 * Description of Ecd_Cursor fix
3392 */
cfe5be71 3393tSCC zEcd_CursorName[] =
3394 "ecd_cursor";
fdb8fb96 3395
3396/*
cfe5be71 3397 * File name selection pattern
fdb8fb96 3398 */
cfe5be71 3399tSCC zEcd_CursorList[] =
e9afa104 3400 "sunwindow/win_lock.h\0sunwindow/win_cursor.h\0";
cfe5be71 3401/*
3402 * Machine/OS name selection pattern
3403 */
3404#define apzEcd_CursorMachs (const char**)NULL
2c59c6d3 3405
3406/*
3407 * content selection pattern - do fix if pattern found
3408 */
3409tSCC zEcd_CursorSelect0[] =
3410 "ecd\\.cursor";
3411
3412#define ECD_CURSOR_TEST_CT 1
2548396b 3413static tTestDesc aEcd_CursorTests[] = {
2c59c6d3 3414 { TT_EGREP, zEcd_CursorSelect0, (regex_t*)NULL }, };
cfe5be71 3415
3416/*
3417 * Fix Command Arguments for Ecd_Cursor
3418 */
2548396b 3419static const char* apzEcd_CursorPatch[] = {
2c59c6d3 3420 "format",
3421 "ecd_cursor",
fdb8fb96 3422 (char*)NULL };
3423
d1ed71e5 3424/* * * * * * * * * * * * * * * * * * * * * * * * * *
3425 *
3426 * Description of Feraiseexcept_Nosse_Divbyzero fix
3427 */
3428tSCC zFeraiseexcept_Nosse_DivbyzeroName[] =
3429 "feraiseexcept_nosse_divbyzero";
3430
3431/*
3432 * File name selection pattern
3433 */
3434tSCC zFeraiseexcept_Nosse_DivbyzeroList[] =
3435 "bits/fenv.h\0*/bits/fenv.h\0";
3436/*
3437 * Machine/OS name selection pattern
3438 */
3439tSCC* apzFeraiseexcept_Nosse_DivbyzeroMachs[] = {
3440 "i[34567]86-*-linux*",
3441 "x86*-linux*",
3442 "amd64-*-linux*",
3443 (const char*)NULL };
3444
3445/*
3446 * content selection pattern - do fix if pattern found
3447 */
3448tSCC zFeraiseexcept_Nosse_DivbyzeroSelect0[] =
3449 "^([\t ]*)__asm__ __volatile__ \\(\"divss %1, %0 *\" : : \"x\" \\(__f\\), \"x\" \\(__g\\)\\);$";
3450
3451/*
3452 * content bypass pattern - skip fix if pattern found
3453 */
3454tSCC zFeraiseexcept_Nosse_DivbyzeroBypass0[] =
3455 "\"fdivp .*; fwait\"";
3456
3457#define FERAISEEXCEPT_NOSSE_DIVBYZERO_TEST_CT 2
3458static tTestDesc aFeraiseexcept_Nosse_DivbyzeroTests[] = {
3459 { TT_NEGREP, zFeraiseexcept_Nosse_DivbyzeroBypass0, (regex_t*)NULL },
3460 { TT_EGREP, zFeraiseexcept_Nosse_DivbyzeroSelect0, (regex_t*)NULL }, };
3461
3462/*
3463 * Fix Command Arguments for Feraiseexcept_Nosse_Divbyzero
3464 */
3465static const char* apzFeraiseexcept_Nosse_DivbyzeroPatch[] = {
3466 "format",
3467 "# ifdef __SSE_MATH__\n\
3468%0\n\
3469# else\n\
3470%1__asm__ __volatile__ (\"fdivp %%%%st, %%%%st(1); fwait\"\n\
3471%1\t\t\t: \"=t\" (__f) : \"0\" (__f), \"u\" (__g) : \"st(1)\");\n\
3472# endif",
3473 (char*)NULL };
3474
3475/* * * * * * * * * * * * * * * * * * * * * * * * * *
3476 *
3477 * Description of Feraiseexcept_Nosse_Invalid fix
3478 */
3479tSCC zFeraiseexcept_Nosse_InvalidName[] =
3480 "feraiseexcept_nosse_invalid";
3481
3482/*
3483 * File name selection pattern
3484 */
3485tSCC zFeraiseexcept_Nosse_InvalidList[] =
3486 "bits/fenv.h\0*/bits/fenv.h\0";
3487/*
3488 * Machine/OS name selection pattern
3489 */
3490tSCC* apzFeraiseexcept_Nosse_InvalidMachs[] = {
3491 "i[34567]86-*-linux*",
3492 "x86*-linux*",
3493 "amd64-*-linux*",
3494 (const char*)NULL };
3495
3496/*
3497 * content selection pattern - do fix if pattern found
3498 */
3499tSCC zFeraiseexcept_Nosse_InvalidSelect0[] =
3500 "^([\t ]*)__asm__ __volatile__ \\(\"divss %0, %0 *\" : : \"x\" \\(__f\\)\\);$";
3501
3502/*
3503 * content bypass pattern - skip fix if pattern found
3504 */
3505tSCC zFeraiseexcept_Nosse_InvalidBypass0[] =
3506 "\"fdiv .*; fwait\"";
3507
3508#define FERAISEEXCEPT_NOSSE_INVALID_TEST_CT 2
3509static tTestDesc aFeraiseexcept_Nosse_InvalidTests[] = {
3510 { TT_NEGREP, zFeraiseexcept_Nosse_InvalidBypass0, (regex_t*)NULL },
3511 { TT_EGREP, zFeraiseexcept_Nosse_InvalidSelect0, (regex_t*)NULL }, };
3512
3513/*
3514 * Fix Command Arguments for Feraiseexcept_Nosse_Invalid
3515 */
3516static const char* apzFeraiseexcept_Nosse_InvalidPatch[] = {
3517 "format",
3518 "# ifdef __SSE_MATH__\n\
3519%0\n\
3520# else\n\
3521%1__asm__ __volatile__ (\"fdiv %%%%st, %%%%st(0); fwait\"\n\
3522%1\t\t\t: \"=t\" (__f) : \"0\" (__f));\n\
3523# endif",
3524 (char*)NULL };
3525
65a92405 3526/* * * * * * * * * * * * * * * * * * * * * * * * * *
3527 *
3528 * Description of Freebsd_Gcc3_Breakage fix
3529 */
65a92405 3530tSCC zFreebsd_Gcc3_BreakageName[] =
3531 "freebsd_gcc3_breakage";
3532
3533/*
3534 * File name selection pattern
3535 */
3536tSCC zFreebsd_Gcc3_BreakageList[] =
e9afa104 3537 "sys/cdefs.h\0";
65a92405 3538/*
3539 * Machine/OS name selection pattern
3540 */
3541tSCC* apzFreebsd_Gcc3_BreakageMachs[] = {
3542 "*-*-freebsd*",
3543 (const char*)NULL };
3544
3545/*
3546 * content selection pattern - do fix if pattern found
3547 */
3548tSCC zFreebsd_Gcc3_BreakageSelect0[] =
3549 "^#if __GNUC__ == 2 && __GNUC_MINOR__ >= 7$";
3550
3551/*
3552 * content bypass pattern - skip fix if pattern found
3553 */
3554tSCC zFreebsd_Gcc3_BreakageBypass0[] =
3555 "__GNUC__[ \\t]*([>=]=[ \\t]*[3-9]|>[ \\t]*2)";
3556
3557#define FREEBSD_GCC3_BREAKAGE_TEST_CT 2
3558static tTestDesc aFreebsd_Gcc3_BreakageTests[] = {
3559 { TT_NEGREP, zFreebsd_Gcc3_BreakageBypass0, (regex_t*)NULL },
3560 { TT_EGREP, zFreebsd_Gcc3_BreakageSelect0, (regex_t*)NULL }, };
3561
3562/*
3563 * Fix Command Arguments for Freebsd_Gcc3_Breakage
3564 */
3565static const char* apzFreebsd_Gcc3_BreakagePatch[] = {
3566 "format",
3567 "%0 || __GNUC__ >= 3",
3568 (char*)NULL };
3569
f9ac0b87 3570/* * * * * * * * * * * * * * * * * * * * * * * * * *
3571 *
3572 * Description of Freebsd_Gcc4_Breakage fix
3573 */
3574tSCC zFreebsd_Gcc4_BreakageName[] =
3575 "freebsd_gcc4_breakage";
3576
3577/*
3578 * File name selection pattern
3579 */
3580tSCC zFreebsd_Gcc4_BreakageList[] =
e9afa104 3581 "sys/cdefs.h\0";
f9ac0b87 3582/*
3583 * Machine/OS name selection pattern
3584 */
3585tSCC* apzFreebsd_Gcc4_BreakageMachs[] = {
3586 "*-*-freebsd*",
3587 (const char*)NULL };
3588
3589/*
3590 * content selection pattern - do fix if pattern found
3591 */
3592tSCC zFreebsd_Gcc4_BreakageSelect0[] =
3593 "^#if __GNUC__ == 2 && __GNUC_MINOR__ >= 7 \\|\\| __GNUC__ == 3$";
3594
3595#define FREEBSD_GCC4_BREAKAGE_TEST_CT 1
3596static tTestDesc aFreebsd_Gcc4_BreakageTests[] = {
3597 { TT_EGREP, zFreebsd_Gcc4_BreakageSelect0, (regex_t*)NULL }, };
3598
3599/*
3600 * Fix Command Arguments for Freebsd_Gcc4_Breakage
3601 */
3602static const char* apzFreebsd_Gcc4_BreakagePatch[] = {
3603 "format",
3604 "#if __GNUC__ == 2 && __GNUC_MINOR__ >= 7 || __GNUC__ >= 3",
3605 (char*)NULL };
3606
efb8e7bf 3607/* * * * * * * * * * * * * * * * * * * * * * * * * *
3608 *
3609 * Description of Glibc_C99_Inline_1 fix
3610 */
3611tSCC zGlibc_C99_Inline_1Name[] =
3612 "glibc_c99_inline_1";
3613
3614/*
3615 * File name selection pattern
3616 */
3617tSCC zGlibc_C99_Inline_1List[] =
e9afa104 3618 "features.h\0*/features.h\0";
efb8e7bf 3619/*
3620 * Machine/OS name selection pattern
3621 */
3622#define apzGlibc_C99_Inline_1Machs (const char**)NULL
3623
3624/*
3625 * content selection pattern - do fix if pattern found
3626 */
3627tSCC zGlibc_C99_Inline_1Select0[] =
3628 "^ *&& !defined __OPTIMIZE_SIZE__ && !defined __NO_INLINE__$";
3629
3630#define GLIBC_C99_INLINE_1_TEST_CT 1
3631static tTestDesc aGlibc_C99_Inline_1Tests[] = {
3632 { TT_EGREP, zGlibc_C99_Inline_1Select0, (regex_t*)NULL }, };
3633
3634/*
3635 * Fix Command Arguments for Glibc_C99_Inline_1
3636 */
3637static const char* apzGlibc_C99_Inline_1Patch[] = {
3638 "format",
7e4d47f0 3639 "%0 && (defined __extern_inline || defined __GNUC_GNU_INLINE__)",
efb8e7bf 3640 (char*)NULL };
3641
661832db 3642/* * * * * * * * * * * * * * * * * * * * * * * * * *
3643 *
3644 * Description of Glibc_C99_Inline_1a fix
3645 */
3646tSCC zGlibc_C99_Inline_1aName[] =
3647 "glibc_c99_inline_1a";
3648
3649/*
3650 * File name selection pattern
3651 */
3652tSCC zGlibc_C99_Inline_1aList[] =
3653 "features.h\0*/features.h\0";
3654/*
3655 * Machine/OS name selection pattern
3656 */
3657#define apzGlibc_C99_Inline_1aMachs (const char**)NULL
3658
3659/*
3660 * content selection pattern - do fix if pattern found
3661 */
3662tSCC zGlibc_C99_Inline_1aSelect0[] =
3663 "(\\) && defined __OPTIMIZE__ && !defined __OPTIMIZE_SIZE__)\n\
3664(#[ \t]*define[ \t]*__USE_EXTERN_INLINES[ \t]*1)";
3665
3666#define GLIBC_C99_INLINE_1A_TEST_CT 1
3667static tTestDesc aGlibc_C99_Inline_1aTests[] = {
3668 { TT_EGREP, zGlibc_C99_Inline_1aSelect0, (regex_t*)NULL }, };
3669
3670/*
3671 * Fix Command Arguments for Glibc_C99_Inline_1a
3672 */
3673static const char* apzGlibc_C99_Inline_1aPatch[] = {
3674 "format",
3675 "%1 && (defined __extern_inline || defined __GNUC_GNU_INLINE__)\n\
3676%2",
3677 (char*)NULL };
3678
efb8e7bf 3679/* * * * * * * * * * * * * * * * * * * * * * * * * *
3680 *
3681 * Description of Glibc_C99_Inline_2 fix
3682 */
3683tSCC zGlibc_C99_Inline_2Name[] =
3684 "glibc_c99_inline_2";
3685
3686/*
3687 * File name selection pattern
3688 */
3689tSCC zGlibc_C99_Inline_2List[] =
e9afa104 3690 "sys/stat.h\0*/sys/stat.h\0";
efb8e7bf 3691/*
3692 * Machine/OS name selection pattern
3693 */
3694#define apzGlibc_C99_Inline_2Machs (const char**)NULL
3695
3696/*
3697 * content selection pattern - do fix if pattern found
3698 */
3699tSCC zGlibc_C99_Inline_2Select0[] =
3700 "extern __inline__ int";
3701
3702#define GLIBC_C99_INLINE_2_TEST_CT 1
3703static tTestDesc aGlibc_C99_Inline_2Tests[] = {
3704 { TT_EGREP, zGlibc_C99_Inline_2Select0, (regex_t*)NULL }, };
3705
3706/*
3707 * Fix Command Arguments for Glibc_C99_Inline_2
3708 */
b32d497c 3709static const char* apzGlibc_C99_Inline_2Patch[] = { sed_cmd_z,
b795c8d1 3710 "-e", "s/extern int \\(stat\\)/#ifdef __GNUC_GNU_INLINE__\\\n\
efb8e7bf 3711extern\\\n\
3712#endif\\\n\
3713__inline__ int \\1/",
b795c8d1 3714 "-e", "s/extern int \\([lf]stat\\)/#ifdef __GNUC_GNU_INLINE__\\\n\
3715extern\\\n\
3716#endif\\\n\
3717__inline__ int \\1/",
3718 "-e", "s/extern int \\(mknod\\)/#ifdef __GNUC_GNU_INLINE__\\\n\
3719extern\\\n\
3720#endif\\\n\
3721__inline__ int \\1/",
3722 "-e", "s/extern int __REDIRECT\\(_NTH\\)\\{0,1\\} (\\(stat\\)/#ifdef __GNUC_GNU_INLINE__\\\n\
3723extern\\\n\
3724#endif\\\n\
3725__inline__ int __REDIRECT\\1 (\\2/",
3726 "-e", "s/extern int __REDIRECT\\(_NTH\\)\\{0,1\\} (\\([lf]stat\\)/#ifdef __GNUC_GNU_INLINE__\\\n\
efb8e7bf 3727extern\\\n\
3728#endif\\\n\
7d47204e 3729__inline__ int __REDIRECT\\1 (\\2/",
7e4d47f0 3730 "-e", "s/^extern __inline__ int/#ifdef __GNUC_GNU_INLINE__\\\n\
efb8e7bf 3731extern\\\n\
3732#endif\\\n\
7d47204e 3733__inline__ int/",
efb8e7bf 3734 (char*)NULL };
3735
3736/* * * * * * * * * * * * * * * * * * * * * * * * * *
3737 *
3738 * Description of Glibc_C99_Inline_3 fix
3739 */
3740tSCC zGlibc_C99_Inline_3Name[] =
3741 "glibc_c99_inline_3";
3742
3743/*
3744 * File name selection pattern
3745 */
3746tSCC zGlibc_C99_Inline_3List[] =
e9afa104 3747 "bits/string2.h\0*/bits/string2.h\0";
efb8e7bf 3748/*
3749 * Machine/OS name selection pattern
3750 */
3751#define apzGlibc_C99_Inline_3Machs (const char**)NULL
3752
7e4d47f0 3753/*
3754 * content selection pattern - do fix if pattern found
3755 */
3756tSCC zGlibc_C99_Inline_3Select0[] =
3757 "extern __inline";
3758
efb8e7bf 3759/*
3760 * content bypass pattern - skip fix if pattern found
3761 */
3762tSCC zGlibc_C99_Inline_3Bypass0[] =
661832db 3763 "__extern_inline|__GNU_STDC_INLINE__";
efb8e7bf 3764
7e4d47f0 3765#define GLIBC_C99_INLINE_3_TEST_CT 2
efb8e7bf 3766static tTestDesc aGlibc_C99_Inline_3Tests[] = {
7e4d47f0 3767 { TT_NEGREP, zGlibc_C99_Inline_3Bypass0, (regex_t*)NULL },
3768 { TT_EGREP, zGlibc_C99_Inline_3Select0, (regex_t*)NULL }, };
efb8e7bf 3769
3770/*
3771 * Fix Command Arguments for Glibc_C99_Inline_3
3772 */
3773static const char* apzGlibc_C99_Inline_3Patch[] = {
3774 "format",
7e4d47f0 3775 "# if defined(__cplusplus) || defined(__GNUC_STDC_INLINE__)",
efb8e7bf 3776 "^# ifdef __cplusplus$",
3777 (char*)NULL };
3778
3779/* * * * * * * * * * * * * * * * * * * * * * * * * *
3780 *
3781 * Description of Glibc_C99_Inline_4 fix
3782 */
3783tSCC zGlibc_C99_Inline_4Name[] =
3784 "glibc_c99_inline_4";
3785
3786/*
3787 * File name selection pattern
3788 */
3789tSCC zGlibc_C99_Inline_4List[] =
b7a56dc3 3790 "sys/sysmacros.h\0*/sys/sysmacros.h\0wchar.h\0*/wchar.h\0pthread.h\0*/pthread.h\0";
efb8e7bf 3791/*
3792 * Machine/OS name selection pattern
3793 */
3794#define apzGlibc_C99_Inline_4Machs (const char**)NULL
3795
560b9c9b 3796/*
3797 * content selection pattern - do fix if pattern found
3798 */
3799tSCC zGlibc_C99_Inline_4Select0[] =
661832db 3800 "(^| )extern __inline";
560b9c9b 3801
efb8e7bf 3802/*
3803 * content bypass pattern - skip fix if pattern found
3804 */
3805tSCC zGlibc_C99_Inline_4Bypass0[] =
661832db 3806 "__extern_inline|__gnu_inline__";
efb8e7bf 3807
560b9c9b 3808#define GLIBC_C99_INLINE_4_TEST_CT 2
efb8e7bf 3809static tTestDesc aGlibc_C99_Inline_4Tests[] = {
560b9c9b 3810 { TT_NEGREP, zGlibc_C99_Inline_4Bypass0, (regex_t*)NULL },
3811 { TT_EGREP, zGlibc_C99_Inline_4Select0, (regex_t*)NULL }, };
efb8e7bf 3812
3813/*
3814 * Fix Command Arguments for Glibc_C99_Inline_4
3815 */
3816static const char* apzGlibc_C99_Inline_4Patch[] = {
3817 "format",
661832db 3818 "%0 __attribute__ ((__gnu_inline__))",
efb8e7bf 3819 (char*)NULL };
3820
a1b11617 3821/* * * * * * * * * * * * * * * * * * * * * * * * * *
3822 *
3823 * Description of Glibc_Mutex_Init fix
3824 */
3825tSCC zGlibc_Mutex_InitName[] =
3826 "glibc_mutex_init";
3827
3828/*
3829 * File name selection pattern
3830 */
3831tSCC zGlibc_Mutex_InitList[] =
e9afa104 3832 "pthread.h\0";
a1b11617 3833/*
3834 * Machine/OS name selection pattern
3835 */
3836#define apzGlibc_Mutex_InitMachs (const char**)NULL
3837
3838/*
3839 * content selection pattern - do fix if pattern found
3840 */
3841tSCC zGlibc_Mutex_InitSelect0[] =
3842 "\\{ *\\{ *0, *\\} *\\}";
3843
3844#define GLIBC_MUTEX_INIT_TEST_CT 1
3845static tTestDesc aGlibc_Mutex_InitTests[] = {
3846 { TT_EGREP, zGlibc_Mutex_InitSelect0, (regex_t*)NULL }, };
3847
3848/*
3849 * Fix Command Arguments for Glibc_Mutex_Init
3850 */
b32d497c 3851static const char* apzGlibc_Mutex_InitPatch[] = { sed_cmd_z,
b795c8d1 3852 "-e", "/define[ \t]\\{1,\\}PTHREAD_MUTEX_INITIALIZER[ \t]*\\\\/{\n\
b32d497c 3853N\n\
3854s/{ { 0, } }/{ { 0, 0, 0, 0, 0, 0 } }/\n\
3855}",
b795c8d1 3856 "-e", "s/{ \\(0, 0, 0, 0, PTHREAD_MUTEX_\\(RECURSIVE\\)_NP\\) }/{ \\1, 0 }/",
3857 "-e", "s/{ \\(0, 0, 0, 0, PTHREAD_MUTEX_\\(ERRORCHECK\\)_NP\\) }/{ \\1, 0 }/",
3858 "-e", "s/{ \\(0, 0, 0, 0, PTHREAD_MUTEX_\\(ADAPTIVE\\)_NP\\) }/{ \\1, 0 }/",
3859 "-e", "s/{ \\(0, 0, 0, PTHREAD_MUTEX_\\(RECURSIVE\\)_NP\\) }/{ \\1, 0, 0 }/",
3860 "-e", "s/{ \\(0, 0, 0, PTHREAD_MUTEX_\\(ERRORCHECK\\)_NP\\) }/{ \\1, 0, 0 }/",
3861 "-e", "s/{ \\(0, 0, 0, PTHREAD_MUTEX_\\(ADAPTIVE\\)_NP\\) }/{ \\1, 0, 0 }/",
3862 "-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\
3863# \\1\\\n\
3864 { { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 } }\\\n\
3865# else\\\n\
3866# \\1\\\n\
3867 { { 0, 0, 0, 0, 0, 0, 0, 0 } }\\\n\
3868# endif/",
d0f017a1 3869 "-e", "s/{ \\(0, 0, 0, 0, 0, 0, PTHREAD_RWLOCK_PREFER_WRITER_NONRECURSIVE_NP\\) }/{ \\1, 0 }/",
b795c8d1 3870 "-e", "/define[ \t]\\{1,\\}PTHREAD_COND_INITIALIZER/s/{ { 0, } }/{ { 0, 0, 0, 0, 0, (void *) 0, 0, 0 } }/",
a1b11617 3871 (char*)NULL };
3872
57a812b7 3873/* * * * * * * * * * * * * * * * * * * * * * * * * *
3874 *
3875 * Description of Glibc_Stdint fix
3876 */
3877tSCC zGlibc_StdintName[] =
3878 "glibc_stdint";
3879
3880/*
3881 * File name selection pattern
3882 */
3883tSCC zGlibc_StdintList[] =
3884 "stdint.h\0";
3885/*
3886 * Machine/OS name selection pattern
3887 */
3888#define apzGlibc_StdintMachs (const char**)NULL
3889
3890/*
3891 * content selection pattern - do fix if pattern found
3892 */
3893tSCC zGlibc_StdintSelect0[] =
3894 "GNU C Library";
3895
3896#define GLIBC_STDINT_TEST_CT 1
3897static tTestDesc aGlibc_StdintTests[] = {
3898 { TT_EGREP, zGlibc_StdintSelect0, (regex_t*)NULL }, };
3899
3900/*
3901 * Fix Command Arguments for Glibc_Stdint
3902 */
3903static const char* apzGlibc_StdintPatch[] = {
3904 "format",
3905 "# define UINT8_C(c)\tc\n\
3906# define UINT16_C(c)\tc",
3907 "# define UINT8_C\\(c\\)\tc ## U\n\
3908# define UINT16_C\\(c\\)\tc ## U",
3909 (char*)NULL };
3910
5aee6890 3911/* * * * * * * * * * * * * * * * * * * * * * * * * *
3912 *
3913 * Description of Glibc_Strncpy fix
3914 */
3915tSCC zGlibc_StrncpyName[] =
3916 "glibc_strncpy";
3917
3918/*
3919 * File name selection pattern
3920 */
3921tSCC zGlibc_StrncpyList[] =
d1ed71e5 3922 "bits/string2.h\0*/bits/string2.h\0";
5aee6890 3923/*
3924 * Machine/OS name selection pattern
3925 */
3926#define apzGlibc_StrncpyMachs (const char**)NULL
3927
3928/*
3929 * content bypass pattern - skip fix if pattern found
3930 */
3931tSCC zGlibc_StrncpyBypass0[] =
3932 "__builtin_strncpy";
3933
3934#define GLIBC_STRNCPY_TEST_CT 1
3935static tTestDesc aGlibc_StrncpyTests[] = {
3936 { TT_NEGREP, zGlibc_StrncpyBypass0, (regex_t*)NULL }, };
3937
3938/*
3939 * Fix Command Arguments for Glibc_Strncpy
3940 */
3941static const char* apzGlibc_StrncpyPatch[] = {
3942 "format",
3943 "# define strncpy(dest, src, n) __builtin_strncpy (dest, src, n)",
3944 "# define strncpy([^\n\
3945]*\\\\\n\
3946)*[^\n\
3947]*",
3948 (char*)NULL };
3949
a75b1c71 3950/* * * * * * * * * * * * * * * * * * * * * * * * * *
3951 *
3952 * Description of Glibc_Tgmath fix
3953 */
3954tSCC zGlibc_TgmathName[] =
3955 "glibc_tgmath";
3956
3957/*
3958 * File name selection pattern
3959 */
3960tSCC zGlibc_TgmathList[] =
3961 "tgmath.h\0";
3962/*
3963 * Machine/OS name selection pattern
3964 */
3965#define apzGlibc_TgmathMachs (const char**)NULL
3966
3967/*
3968 * content selection pattern - do fix if pattern found
3969 */
3970tSCC zGlibc_TgmathSelect0[] =
3971 "\\(\\(\\(type\\) 0.25\\) && \\(\\(type\\) 0.25 - 1\\)\\)";
3972
3973/*
3974 * content bypass pattern - skip fix if pattern found
3975 */
3976tSCC zGlibc_TgmathBypass0[] =
5873f213 3977 "__floating_type\\(type\\) \\\\\n\
a75b1c71 3978.*__builtin_classify_type";
3979
3980#define GLIBC_TGMATH_TEST_CT 2
3981static tTestDesc aGlibc_TgmathTests[] = {
3982 { TT_NEGREP, zGlibc_TgmathBypass0, (regex_t*)NULL },
3983 { TT_EGREP, zGlibc_TgmathSelect0, (regex_t*)NULL }, };
3984
3985/*
3986 * Fix Command Arguments for Glibc_Tgmath
3987 */
3988static const char* apzGlibc_TgmathPatch[] = {
3989 "format",
3990 "(__builtin_classify_type ((type) 0) == 8 || (__builtin_classify_type ((type) 0) == 9 && __builtin_classify_type (__real__ ((type) 0)) == 8))",
3991 (char*)NULL };
3992
3072d11f 3993/* * * * * * * * * * * * * * * * * * * * * * * * * *
3994 *
3995 * Description of Gnu_Types fix
3996 */
3997tSCC zGnu_TypesName[] =
3998 "gnu_types";
3999
4000/*
4001 * File name selection pattern
4002 */
4003tSCC zGnu_TypesList[] =
e9afa104 4004 "sys/types.h\0stdlib.h\0sys/stdtypes.h\0stddef.h\0memory.h\0unistd.h\0";
3072d11f 4005/*
4006 * Machine/OS name selection pattern
4007 */
09a31484 4008tSCC* apzGnu_TypesMachs[] = {
4009 "*-*-solaris2.1[0-9]*",
4010 (const char*)NULL };
3072d11f 4011
4012/*
4013 * content selection pattern - do fix if pattern found
4014 */
4015tSCC zGnu_TypesSelect0[] =
4016 "^[ \t]*typedef[ \t]+.*[ \t](ptrdiff|size|wchar)_t;";
4017
4018/*
4019 * content bypass pattern - skip fix if pattern found
4020 */
4021tSCC zGnu_TypesBypass0[] =
4022 "_GCC_(PTRDIFF|SIZE|WCHAR)_T";
4023
4024#define GNU_TYPES_TEST_CT 2
4025static tTestDesc aGnu_TypesTests[] = {
4026 { TT_NEGREP, zGnu_TypesBypass0, (regex_t*)NULL },
4027 { TT_EGREP, zGnu_TypesSelect0, (regex_t*)NULL }, };
4028
4029/*
4030 * Fix Command Arguments for Gnu_Types
4031 */
4032static const char* apzGnu_TypesPatch[] = {
4033 "gnu_type",
4034 (char*)NULL };
4035
fdb8fb96 4036/* * * * * * * * * * * * * * * * * * * * * * * * * *
4037 *
cfe5be71 4038 * Description of Hp_Inline fix
fdb8fb96 4039 */
cfe5be71 4040tSCC zHp_InlineName[] =
4041 "hp_inline";
d4c4b01d 4042
fdb8fb96 4043/*
4044 * File name selection pattern
4045 */
cfe5be71 4046tSCC zHp_InlineList[] =
e9afa104 4047 "sys/spinlock.h\0machine/machparam.h\0";
fdb8fb96 4048/*
4049 * Machine/OS name selection pattern
4050 */
cfe5be71 4051#define apzHp_InlineMachs (const char**)NULL
52686fb5 4052
4053/*
4054 * content selection pattern - do fix if pattern found
4055 */
cfe5be71 4056tSCC zHp_InlineSelect0[] =
2c59c6d3 4057 "[ \t]*#[ \t]*include[ \t]+\"\\.\\./machine/";
52686fb5 4058
cfe5be71 4059#define HP_INLINE_TEST_CT 1
2548396b 4060static tTestDesc aHp_InlineTests[] = {
cfe5be71 4061 { TT_EGREP, zHp_InlineSelect0, (regex_t*)NULL }, };
fdb8fb96 4062
4063/*
cfe5be71 4064 * Fix Command Arguments for Hp_Inline
fdb8fb96 4065 */
2548396b 4066static const char* apzHp_InlinePatch[] = {
2c59c6d3 4067 "format",
4068 "%1<machine/%2.h>",
4069 "([ \t]*#[ \t]*include[ \t]+)\"\\.\\./machine/([a-z]+)\\.h\"",
fdb8fb96 4070 (char*)NULL };
4071
4072/* * * * * * * * * * * * * * * * * * * * * * * * * *
4073 *
cfe5be71 4074 * Description of Hp_Sysfile fix
fdb8fb96 4075 */
cfe5be71 4076tSCC zHp_SysfileName[] =
4077 "hp_sysfile";
d4c4b01d 4078
fdb8fb96 4079/*
4080 * File name selection pattern
4081 */
cfe5be71 4082tSCC zHp_SysfileList[] =
e9afa104 4083 "sys/file.h\0";
fdb8fb96 4084/*
4085 * Machine/OS name selection pattern
4086 */
cfe5be71 4087#define apzHp_SysfileMachs (const char**)NULL
fdb8fb96 4088
4089/*
c1b28c63 4090 * content selection pattern - do fix if pattern found
fdb8fb96 4091 */
cfe5be71 4092tSCC zHp_SysfileSelect0[] =
4093 "HPUX_SOURCE";
fdb8fb96 4094
cfe5be71 4095#define HP_SYSFILE_TEST_CT 1
2548396b 4096static tTestDesc aHp_SysfileTests[] = {
cfe5be71 4097 { TT_EGREP, zHp_SysfileSelect0, (regex_t*)NULL }, };
fdb8fb96 4098
4099/*
cfe5be71 4100 * Fix Command Arguments for Hp_Sysfile
fdb8fb96 4101 */
2548396b 4102static const char* apzHp_SysfilePatch[] = {
2c59c6d3 4103 "format",
4104 "(struct file *, ...)",
4105 "\\(\\.\\.\\.\\)",
fdb8fb96 4106 (char*)NULL };
4107
b32d497c 4108/* * * * * * * * * * * * * * * * * * * * * * * * * *
4109 *
4110 * Description of Hppa_Hpux_Fp_Macros fix
4111 */
4112tSCC zHppa_Hpux_Fp_MacrosName[] =
4113 "hppa_hpux_fp_macros";
4114
4115/*
4116 * File name selection pattern
4117 */
4118tSCC zHppa_Hpux_Fp_MacrosList[] =
4119 "math.h\0";
4120/*
4121 * Machine/OS name selection pattern
4122 */
4123tSCC* apzHppa_Hpux_Fp_MacrosMachs[] = {
4124 "hppa*-hp-hpux11*",
4125 (const char*)NULL };
4126
4127/*
4128 * content selection pattern - do fix if pattern found
4129 */
4130tSCC zHppa_Hpux_Fp_MacrosSelect0[] =
4131 "#[ \t]*define[ \t]*FP_NORMAL.*\n\
4132#[ \t]*define[ \t]*FP_ZERO.*\n\
4133#[ \t]*define[ \t]*FP_INFINITE.*\n\
4134#[ \t]*define[ \t]*FP_SUBNORMAL.*\n\
4135#[ \t]*define[ \t]*FP_NAN.*\n";
4136
4137#define HPPA_HPUX_FP_MACROS_TEST_CT 1
4138static tTestDesc aHppa_Hpux_Fp_MacrosTests[] = {
4139 { TT_EGREP, zHppa_Hpux_Fp_MacrosSelect0, (regex_t*)NULL }, };
4140
4141/*
4142 * Fix Command Arguments for Hppa_Hpux_Fp_Macros
4143 */
4144static const char* apzHppa_Hpux_Fp_MacrosPatch[] = {
4145 "format",
4146 "#endif /* _INCLUDE_HPUX_SOURCE */\n\n\
4147#if defined(_INCLUDE_HPUX_SOURCE) || \\\n\
4148 (defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 199901L))\n\
4149%0#endif\n\n\
4150#ifdef _INCLUDE_HPUX_SOURCE\n",
4151 (char*)NULL };
4152
7b900f1a 4153/* * * * * * * * * * * * * * * * * * * * * * * * * *
4154 *
4155 * Description of Hpux10_Cpp_Pow_Inline fix
4156 */
4157tSCC zHpux10_Cpp_Pow_InlineName[] =
4158 "hpux10_cpp_pow_inline";
4159
4160/*
4161 * File name selection pattern
4162 */
4163tSCC zHpux10_Cpp_Pow_InlineList[] =
e9afa104 4164 "fixinc-test-limits.h\0math.h\0";
7b900f1a 4165/*
4166 * Machine/OS name selection pattern
4167 */
4168#define apzHpux10_Cpp_Pow_InlineMachs (const char**)NULL
4169
4170/*
4171 * content selection pattern - do fix if pattern found
4172 */
4173tSCC zHpux10_Cpp_Pow_InlineSelect0[] =
4174 "^# +ifdef +__cplusplus\n\
30f9dc1c 4175 +\\}\n\
4176 +inline +double +pow\\(double +__d,int +__expon\\) +\\{\n\
7b900f1a 4177[ \t]+return +pow\\(__d,\\(double\\)__expon\\);\n\
30f9dc1c 4178 +\\}\n\
4179 +extern +\"C\" +\\{\n\
7b900f1a 4180#else\n\
4181# +endif";
4182
4183#define HPUX10_CPP_POW_INLINE_TEST_CT 1
4184static tTestDesc aHpux10_Cpp_Pow_InlineTests[] = {
4185 { TT_EGREP, zHpux10_Cpp_Pow_InlineSelect0, (regex_t*)NULL }, };
4186
4187/*
4188 * Fix Command Arguments for Hpux10_Cpp_Pow_Inline
4189 */
4190static const char* apzHpux10_Cpp_Pow_InlinePatch[] = {
4191 "format",
4192 "",
4193 (char*)NULL };
4194
c6738ff5 4195/* * * * * * * * * * * * * * * * * * * * * * * * * *
4196 *
4197 * Description of Hpux11_Cpp_Pow_Inline fix
4198 */
4199tSCC zHpux11_Cpp_Pow_InlineName[] =
4200 "hpux11_cpp_pow_inline";
4201
4202/*
4203 * File name selection pattern
4204 */
4205tSCC zHpux11_Cpp_Pow_InlineList[] =
e9afa104 4206 "math.h\0";
c6738ff5 4207/*
4208 * Machine/OS name selection pattern
4209 */
4210#define apzHpux11_Cpp_Pow_InlineMachs (const char**)NULL
4211
4212/*
4213 * content selection pattern - do fix if pattern found
4214 */
4215tSCC zHpux11_Cpp_Pow_InlineSelect0[] =
30f9dc1c 4216 " +inline double pow\\(double d,int expon\\) \\{\n\
c6738ff5 4217 +return pow\\(d, \\(double\\)expon\\);\n\
30f9dc1c 4218 +\\}\n";
c6738ff5 4219
4220#define HPUX11_CPP_POW_INLINE_TEST_CT 1
4221static tTestDesc aHpux11_Cpp_Pow_InlineTests[] = {
4222 { TT_EGREP, zHpux11_Cpp_Pow_InlineSelect0, (regex_t*)NULL }, };
4223
4224/*
4225 * Fix Command Arguments for Hpux11_Cpp_Pow_Inline
4226 */
4227static const char* apzHpux11_Cpp_Pow_InlinePatch[] = {
4228 "format",
4229 "",
4230 (char*)NULL };
4231
ca58af19 4232/* * * * * * * * * * * * * * * * * * * * * * * * * *
4233 *
ebf664b2 4234 * Description of Hpux10_Ctype_Declarations1 fix
ca58af19 4235 */
ebf664b2 4236tSCC zHpux10_Ctype_Declarations1Name[] =
4237 "hpux10_ctype_declarations1";
ca58af19 4238
4239/*
4240 * File name selection pattern
4241 */
ebf664b2 4242tSCC zHpux10_Ctype_Declarations1List[] =
e9afa104 4243 "ctype.h\0";
ca58af19 4244/*
4245 * Machine/OS name selection pattern
4246 */
ebf664b2 4247#define apzHpux10_Ctype_Declarations1Machs (const char**)NULL
ca58af19 4248
4249/*
4250 * content selection pattern - do fix if pattern found
4251 */
ebf664b2 4252tSCC zHpux10_Ctype_Declarations1Select0[] =
4253 "^#[ \t]*define _toupper\\(__c\\)[ \t]*__toupper\\(__c\\)";
ca58af19 4254
ebf664b2 4255/*
4256 * content bypass pattern - skip fix if pattern found
4257 */
4258tSCC zHpux10_Ctype_Declarations1Bypass0[] =
4259 "^[ \t]*extern[ \t]*int[ \t]*__tolower[ \t]*\\(";
4260
4261#define HPUX10_CTYPE_DECLARATIONS1_TEST_CT 2
4262static tTestDesc aHpux10_Ctype_Declarations1Tests[] = {
4263 { TT_NEGREP, zHpux10_Ctype_Declarations1Bypass0, (regex_t*)NULL },
4264 { TT_EGREP, zHpux10_Ctype_Declarations1Select0, (regex_t*)NULL }, };
ca58af19 4265
4266/*
ebf664b2 4267 * Fix Command Arguments for Hpux10_Ctype_Declarations1
ca58af19 4268 */
ebf664b2 4269static const char* apzHpux10_Ctype_Declarations1Patch[] = {
ca58af19 4270 "format",
ebf664b2 4271 "#ifdef _PROTOTYPES\n\
4272extern int __tolower(int);\n\
4273extern int __toupper(int);\n\
4274#else /* NOT _PROTOTYPES */\n\
4275extern int __tolower();\n\
4276extern int __toupper();\n\
4277#endif /* _PROTOTYPES */\n\n\
4278%0\n",
ca58af19 4279 (char*)NULL };
4280
6b5183e9 4281/* * * * * * * * * * * * * * * * * * * * * * * * * *
4282 *
ebf664b2 4283 * Description of Hpux10_Ctype_Declarations2 fix
6b5183e9 4284 */
ebf664b2 4285tSCC zHpux10_Ctype_Declarations2Name[] =
4286 "hpux10_ctype_declarations2";
6b5183e9 4287
4288/*
4289 * File name selection pattern
4290 */
ebf664b2 4291tSCC zHpux10_Ctype_Declarations2List[] =
e9afa104 4292 "ctype.h\0";
6b5183e9 4293/*
4294 * Machine/OS name selection pattern
4295 */
ebf664b2 4296#define apzHpux10_Ctype_Declarations2Machs (const char**)NULL
6b5183e9 4297
4298/*
4299 * content selection pattern - do fix if pattern found
4300 */
ebf664b2 4301tSCC zHpux10_Ctype_Declarations2Select0[] =
4302 "^# if defined\\(_SB_CTYPE_MACROS\\) && \\!defined\\(__lint\\)";
6b5183e9 4303
f281c5b8 4304/*
4305 * content bypass pattern - skip fix if pattern found
4306 */
ebf664b2 4307tSCC zHpux10_Ctype_Declarations2Bypass0[] =
4308 "^[ \t]*extern[ \t]*int[ \t]*_isalnum[ \t]*\\(";
f281c5b8 4309
ebf664b2 4310#define HPUX10_CTYPE_DECLARATIONS2_TEST_CT 2
4311static tTestDesc aHpux10_Ctype_Declarations2Tests[] = {
4312 { TT_NEGREP, zHpux10_Ctype_Declarations2Bypass0, (regex_t*)NULL },
4313 { TT_EGREP, zHpux10_Ctype_Declarations2Select0, (regex_t*)NULL }, };
6b5183e9 4314
4315/*
ebf664b2 4316 * Fix Command Arguments for Hpux10_Ctype_Declarations2
6b5183e9 4317 */
ebf664b2 4318static const char* apzHpux10_Ctype_Declarations2Patch[] = {
4319 "format",
4320 "%0\n\n\
4321#ifdef _PROTOTYPES\n\
4322 extern int _isalnum(int);\n\
4323 extern int _isalpha(int);\n\
4324 extern int _iscntrl(int);\n\
4325 extern int _isdigit(int);\n\
4326 extern int _isgraph(int);\n\
4327 extern int _islower(int);\n\
4328 extern int _isprint(int);\n\
4329 extern int _ispunct(int);\n\
4330 extern int _isspace(int);\n\
4331 extern int _isupper(int);\n\
4332 extern int _isxdigit(int);\n\
4333# else /* not _PROTOTYPES */\n\
4334 extern int _isalnum();\n\
4335 extern int _isalpha();\n\
4336 extern int _iscntrl();\n\
4337 extern int _isdigit();\n\
4338 extern int _isgraph();\n\
4339 extern int _islower();\n\
4340 extern int _isprint();\n\
4341 extern int _ispunct();\n\
4342 extern int _isspace();\n\
4343 extern int _isupper();\n\
4344 extern int _isxdigit();\n\
4345#endif /* _PROTOTYPES */\n",
4346 (char*)NULL };
4347
37935110 4348/* * * * * * * * * * * * * * * * * * * * * * * * * *
4349 *
4350 * Description of Hpux10_Stdio_Declarations fix
4351 */
4352tSCC zHpux10_Stdio_DeclarationsName[] =
4353 "hpux10_stdio_declarations";
4354
4355/*
4356 * File name selection pattern
4357 */
4358tSCC zHpux10_Stdio_DeclarationsList[] =
e9afa104 4359 "stdio.h\0";
37935110 4360/*
4361 * Machine/OS name selection pattern
4362 */
4363#define apzHpux10_Stdio_DeclarationsMachs (const char**)NULL
4364
4365/*
4366 * content selection pattern - do fix if pattern found
4367 */
4368tSCC zHpux10_Stdio_DeclarationsSelect0[] =
4369 "^#[ \t]*define _iob[ \t]*__iob";
4370
4371/*
4372 * content bypass pattern - skip fix if pattern found
4373 */
4374tSCC zHpux10_Stdio_DeclarationsBypass0[] =
4375 "^[ \t]*extern[ \t]*int[ \t]*vsnprintf[ \t]*\\(";
4376
4377#define HPUX10_STDIO_DECLARATIONS_TEST_CT 2
4378static tTestDesc aHpux10_Stdio_DeclarationsTests[] = {
4379 { TT_NEGREP, zHpux10_Stdio_DeclarationsBypass0, (regex_t*)NULL },
4380 { TT_EGREP, zHpux10_Stdio_DeclarationsSelect0, (regex_t*)NULL }, };
4381
4382/*
4383 * Fix Command Arguments for Hpux10_Stdio_Declarations
4384 */
4385static const char* apzHpux10_Stdio_DeclarationsPatch[] = {
4386 "format",
4387 "%0\n\n\
4388# if defined(__STDC__) || defined(__cplusplus)\n\
4389 extern int snprintf(char *, size_t, const char *, ...);\n\
4390 extern int vsnprintf(char *, size_t, const char *, __va_list);\n\
4391# else /* not __STDC__) || __cplusplus */\n\
4392 extern int snprintf();\n\
4393 extern int vsnprintf();\n\
4394# endif /* __STDC__) || __cplusplus */\n",
4395 (char*)NULL };
4396
f20a1c45 4397/* * * * * * * * * * * * * * * * * * * * * * * * * *
4398 *
4399 * Description of Hppa_Hpux11_Alloca fix
4400 */
4401tSCC zHppa_Hpux11_AllocaName[] =
4402 "hppa_hpux11_alloca";
4403
4404/*
4405 * File name selection pattern
4406 */
4407tSCC zHppa_Hpux11_AllocaList[] =
4408 "alloca.h\0";
4409/*
4410 * Machine/OS name selection pattern
4411 */
4412tSCC* apzHppa_Hpux11_AllocaMachs[] = {
4413 "hppa*-*-hpux11*",
4414 (const char*)NULL };
4415
4416/*
4417 * content selection pattern - do fix if pattern found
4418 */
4419tSCC zHppa_Hpux11_AllocaSelect0[] =
4420 "#ifndef _STDDEF_INCLUDED";
4421
4422#define HPPA_HPUX11_ALLOCA_TEST_CT 1
4423static tTestDesc aHppa_Hpux11_AllocaTests[] = {
4424 { TT_EGREP, zHppa_Hpux11_AllocaSelect0, (regex_t*)NULL }, };
4425
4426/*
4427 * Fix Command Arguments for Hppa_Hpux11_Alloca
4428 */
4429static const char* apzHppa_Hpux11_AllocaPatch[] = {
4430 "format",
4431 "#ifndef _SYS_STDSYMS_INCLUDED\n\
4432# include <sys/stdsyms.h>\n\
4433#endif /* _SYS_STDSYMS_INCLUDED */\n\n\
4434%0",
4435 (char*)NULL };
4436
ebf664b2 4437/* * * * * * * * * * * * * * * * * * * * * * * * * *
4438 *
4439 * Description of Hpux11_Abs fix
4440 */
4441tSCC zHpux11_AbsName[] =
4442 "hpux11_abs";
4443
4444/*
4445 * File name selection pattern
4446 */
4447tSCC zHpux11_AbsList[] =
e9afa104 4448 "stdlib.h\0";
ebf664b2 4449/*
4450 * Machine/OS name selection pattern
4451 */
4452tSCC* apzHpux11_AbsMachs[] = {
dd60921e 4453 "*-hp-hpux11*",
ebf664b2 4454 (const char*)NULL };
4455
4456/*
4457 * content selection pattern - do fix if pattern found
4458 */
4459tSCC zHpux11_AbsSelect0[] =
4460 "ifndef _MATH_INCLUDED";
4461
4462#define HPUX11_ABS_TEST_CT 1
4463static tTestDesc aHpux11_AbsTests[] = {
4464 { TT_EGREP, zHpux11_AbsSelect0, (regex_t*)NULL }, };
4465
4466/*
4467 * Fix Command Arguments for Hpux11_Abs
4468 */
4469static const char* apzHpux11_AbsPatch[] = {
4470 "format",
4471 "if !defined(_MATH_INCLUDED) || defined(__GNUG__)",
6b5183e9 4472 (char*)NULL };
4473
dcc83eef 4474/* * * * * * * * * * * * * * * * * * * * * * * * * *
4475 *
4476 * Description of Hpux11_Lwp_Rwlock_Valid fix
4477 */
4478tSCC zHpux11_Lwp_Rwlock_ValidName[] =
4479 "hpux11_lwp_rwlock_valid";
4480
4481/*
4482 * File name selection pattern
4483 */
4484tSCC zHpux11_Lwp_Rwlock_ValidList[] =
4485 "sys/pthread.h\0";
4486/*
4487 * Machine/OS name selection pattern
4488 */
4489tSCC* apzHpux11_Lwp_Rwlock_ValidMachs[] = {
4490 "*-hp-hpux11*",
4491 (const char*)NULL };
4492
4493/*
4494 * content selection pattern - do fix if pattern found
4495 */
4496tSCC zHpux11_Lwp_Rwlock_ValidSelect0[] =
4497 "#define __LWP_RWLOCK_VALID[ \t]*0x8c91";
4498
4499#define HPUX11_LWP_RWLOCK_VALID_TEST_CT 1
4500static tTestDesc aHpux11_Lwp_Rwlock_ValidTests[] = {
4501 { TT_EGREP, zHpux11_Lwp_Rwlock_ValidSelect0, (regex_t*)NULL }, };
4502
4503/*
4504 * Fix Command Arguments for Hpux11_Lwp_Rwlock_Valid
4505 */
4506static const char* apzHpux11_Lwp_Rwlock_ValidPatch[] = {
4507 "format",
4508 "#define __LWP_RWLOCK_VALID -29551",
4509 (char*)NULL };
4510
d1ed71e5 4511/* * * * * * * * * * * * * * * * * * * * * * * * * *
4512 *
4513 * Description of Hpux11_Extern_Sendfile fix
4514 */
4515tSCC zHpux11_Extern_SendfileName[] =
4516 "hpux11_extern_sendfile";
4517
4518/*
4519 * File name selection pattern
4520 */
4521tSCC zHpux11_Extern_SendfileList[] =
4522 "sys/socket.h\0";
4523/*
4524 * Machine/OS name selection pattern
4525 */
4526tSCC* apzHpux11_Extern_SendfileMachs[] = {
4527 "*-hp-hpux11.[12]*",
4528 (const char*)NULL };
4529
4530/*
4531 * content selection pattern - do fix if pattern found
4532 */
4533tSCC zHpux11_Extern_SendfileSelect0[] =
4534 "^[ \t]*extern sbsize_t sendfile.*\n\
4535.*, int\\)\\);\n";
4536
4537#define HPUX11_EXTERN_SENDFILE_TEST_CT 1
4538static tTestDesc aHpux11_Extern_SendfileTests[] = {
4539 { TT_EGREP, zHpux11_Extern_SendfileSelect0, (regex_t*)NULL }, };
4540
4541/*
4542 * Fix Command Arguments for Hpux11_Extern_Sendfile
4543 */
4544static const char* apzHpux11_Extern_SendfilePatch[] = {
4545 "format",
4546 "#ifndef _APP32_64BIT_OFF_T\n\
4547%0#endif\n",
4548 (char*)NULL };
4549
4550/* * * * * * * * * * * * * * * * * * * * * * * * * *
4551 *
4552 * Description of Hpux11_Extern_Sendpath fix
4553 */
4554tSCC zHpux11_Extern_SendpathName[] =
4555 "hpux11_extern_sendpath";
4556
4557/*
4558 * File name selection pattern
4559 */
4560tSCC zHpux11_Extern_SendpathList[] =
4561 "sys/socket.h\0";
4562/*
4563 * Machine/OS name selection pattern
4564 */
4565tSCC* apzHpux11_Extern_SendpathMachs[] = {
4566 "*-hp-hpux11.[12]*",
4567 (const char*)NULL };
4568
4569/*
4570 * content selection pattern - do fix if pattern found
4571 */
4572tSCC zHpux11_Extern_SendpathSelect0[] =
4573 "^[ \t]*extern sbsize_t sendpath.*\n\
4574.*, int\\)\\);\n";
4575
4576#define HPUX11_EXTERN_SENDPATH_TEST_CT 1
4577static tTestDesc aHpux11_Extern_SendpathTests[] = {
4578 { TT_EGREP, zHpux11_Extern_SendpathSelect0, (regex_t*)NULL }, };
4579
4580/*
4581 * Fix Command Arguments for Hpux11_Extern_Sendpath
4582 */
4583static const char* apzHpux11_Extern_SendpathPatch[] = {
4584 "format",
4585 "#ifndef _APP32_64BIT_OFF_T\n\
4586%0#endif\n",
4587 (char*)NULL };
4588
05fc9903 4589/* * * * * * * * * * * * * * * * * * * * * * * * * *
4590 *
4591 * Description of Hpux11_Fabsf fix
4592 */
05fc9903 4593tSCC zHpux11_FabsfName[] =
4594 "hpux11_fabsf";
4595
4596/*
4597 * File name selection pattern
4598 */
4599tSCC zHpux11_FabsfList[] =
e9afa104 4600 "math.h\0";
05fc9903 4601/*
4602 * Machine/OS name selection pattern
4603 */
13d9a983 4604tSCC* apzHpux11_FabsfMachs[] = {
4605 "*-hp-hpux11*",
4606 (const char*)NULL };
05fc9903 4607
4608/*
4609 * content selection pattern - do fix if pattern found
4610 */
4611tSCC zHpux11_FabsfSelect0[] =
4612 "^[ \t]*#[ \t]*define[ \t]+fabsf\\(.*";
4613
13d9a983 4614#define HPUX11_FABSF_TEST_CT 1
2548396b 4615static tTestDesc aHpux11_FabsfTests[] = {
05fc9903 4616 { TT_EGREP, zHpux11_FabsfSelect0, (regex_t*)NULL }, };
4617
4618/*
4619 * Fix Command Arguments for Hpux11_Fabsf
4620 */
2548396b 4621static const char* apzHpux11_FabsfPatch[] = {
05fc9903 4622 "format",
4623 "#ifndef __cplusplus\n\
4624%0\n\
4625#endif",
4626 (char*)NULL };
4627
edbb3b00 4628/* * * * * * * * * * * * * * * * * * * * * * * * * *
4629 *
4630 * Description of Hpux11_Pthread_Pointer fix
4631 */
4632tSCC zHpux11_Pthread_PointerName[] =
4633 "hpux11_pthread_pointer";
4634
4635/*
4636 * File name selection pattern
4637 */
4638tSCC zHpux11_Pthread_PointerList[] =
4639 "sys/pthread.h\0";
4640/*
4641 * Machine/OS name selection pattern
4642 */
4643tSCC* apzHpux11_Pthread_PointerMachs[] = {
4644 "*-hp-hpux11.[0-3]*",
4645 (const char*)NULL };
4646
4647/*
4648 * content selection pattern - do fix if pattern found
4649 */
4650tSCC zHpux11_Pthread_PointerSelect0[] =
4651 "(void[ \t]*\\*)(m|c|rw)(_ptr)";
4652
4653#define HPUX11_PTHREAD_POINTER_TEST_CT 1
4654static tTestDesc aHpux11_Pthread_PointerTests[] = {
4655 { TT_EGREP, zHpux11_Pthread_PointerSelect0, (regex_t*)NULL }, };
4656
4657/*
4658 * Fix Command Arguments for Hpux11_Pthread_Pointer
4659 */
4660static const char* apzHpux11_Pthread_PointerPatch[] = {
4661 "format",
4662 "long\t%2%3",
4663 (char*)NULL };
4664
b32d497c 4665/* * * * * * * * * * * * * * * * * * * * * * * * * *
4666 *
4667 * Description of Hpux11_Pthread_Const fix
4668 */
4669tSCC zHpux11_Pthread_ConstName[] =
4670 "hpux11_pthread_const";
4671
4672/*
4673 * File name selection pattern
4674 */
4675tSCC zHpux11_Pthread_ConstList[] =
4676 "sys/pthread.h\0";
4677/*
4678 * Machine/OS name selection pattern
4679 */
4680tSCC* apzHpux11_Pthread_ConstMachs[] = {
4681 "*-hp-hpux11.[0-3]*",
4682 (const char*)NULL };
4683
4684/*
4685 * content selection pattern - do fix if pattern found
4686 */
4687tSCC zHpux11_Pthread_ConstSelect0[] =
edbb3b00 4688 "^(#define[ \t]+__POINTER_SET[ \t0,]*)(.*\\))";
b32d497c 4689
4690#define HPUX11_PTHREAD_CONST_TEST_CT 1
4691static tTestDesc aHpux11_Pthread_ConstTests[] = {
4692 { TT_EGREP, zHpux11_Pthread_ConstSelect0, (regex_t*)NULL }, };
4693
4694/*
4695 * Fix Command Arguments for Hpux11_Pthread_Const
4696 */
4697static const char* apzHpux11_Pthread_ConstPatch[] = {
4698 "format",
edbb3b00 4699 "%11",
b32d497c 4700 (char*)NULL };
4701
c0854bd5 4702/* * * * * * * * * * * * * * * * * * * * * * * * * *
4703 *
4704 * Description of Hpux11_Size_T fix
4705 */
4706tSCC zHpux11_Size_TName[] =
4707 "hpux11_size_t";
4708
4709/*
4710 * File name selection pattern
4711 */
4712#define zHpux11_Size_TList (char*)NULL
4713/*
4714 * Machine/OS name selection pattern
4715 */
4716tSCC* apzHpux11_Size_TMachs[] = {
3ff85771 4717 "*-hp-hpux11*",
c0854bd5 4718 (const char*)NULL };
4719
4720/*
4721 * content selection pattern - do fix if pattern found
4722 */
4723tSCC zHpux11_Size_TSelect0[] =
3ff85771 4724 "__size_t";
c0854bd5 4725
4726#define HPUX11_SIZE_T_TEST_CT 1
4727static tTestDesc aHpux11_Size_TTests[] = {
4728 { TT_EGREP, zHpux11_Size_TSelect0, (regex_t*)NULL }, };
4729
4730/*
4731 * Fix Command Arguments for Hpux11_Size_T
4732 */
4733static const char* apzHpux11_Size_TPatch[] = {
4734 "format",
4735 "_hpux_size_t",
c0854bd5 4736 (char*)NULL };
4737
75dc2242 4738/* * * * * * * * * * * * * * * * * * * * * * * * * *
4739 *
4740 * Description of Hpux11_Snprintf fix
4741 */
4742tSCC zHpux11_SnprintfName[] =
4743 "hpux11_snprintf";
4744
4745/*
4746 * File name selection pattern
4747 */
4748tSCC zHpux11_SnprintfList[] =
e9afa104 4749 "stdio.h\0";
75dc2242 4750/*
4751 * Machine/OS name selection pattern
4752 */
4753#define apzHpux11_SnprintfMachs (const char**)NULL
4754
4755/*
4756 * content selection pattern - do fix if pattern found
4757 */
4758tSCC zHpux11_SnprintfSelect0[] =
4759 "(extern int snprintf *\\(char *\\*, *(|__|_hpux_)size_t,) *(char *\\*, *\\.\\.\\.\\);)";
4760
4761#define HPUX11_SNPRINTF_TEST_CT 1
4762static tTestDesc aHpux11_SnprintfTests[] = {
4763 { TT_EGREP, zHpux11_SnprintfSelect0, (regex_t*)NULL }, };
4764
4765/*
4766 * Fix Command Arguments for Hpux11_Snprintf
4767 */
4768static const char* apzHpux11_SnprintfPatch[] = {
4769 "format",
4770 "%1 const %3",
4771 (char*)NULL };
4772
6b5183e9 4773/* * * * * * * * * * * * * * * * * * * * * * * * * *
4774 *
ebf664b2 4775 * Description of Hpux11_Vsnprintf fix
6b5183e9 4776 */
ebf664b2 4777tSCC zHpux11_VsnprintfName[] =
4778 "hpux11_vsnprintf";
6b5183e9 4779
4780/*
4781 * File name selection pattern
4782 */
ebf664b2 4783tSCC zHpux11_VsnprintfList[] =
e9afa104 4784 "stdio.h\0";
6b5183e9 4785/*
4786 * Machine/OS name selection pattern
4787 */
ebf664b2 4788#define apzHpux11_VsnprintfMachs (const char**)NULL
6b5183e9 4789
4790/*
4791 * content selection pattern - do fix if pattern found
4792 */
ebf664b2 4793tSCC zHpux11_VsnprintfSelect0[] =
4794 "(extern int vsnprintf\\(char \\*, _[hpux]*_size_t, const char \\*,) __va__list\\);";
6b5183e9 4795
ebf664b2 4796#define HPUX11_VSNPRINTF_TEST_CT 1
4797static tTestDesc aHpux11_VsnprintfTests[] = {
4798 { TT_EGREP, zHpux11_VsnprintfSelect0, (regex_t*)NULL }, };
6b5183e9 4799
4800/*
ebf664b2 4801 * Fix Command Arguments for Hpux11_Vsnprintf
6b5183e9 4802 */
ebf664b2 4803static const char* apzHpux11_VsnprintfPatch[] = {
6b5183e9 4804 "format",
ebf664b2 4805 "%1 __va_list);",
6b5183e9 4806 (char*)NULL };
4807
122d538c 4808/* * * * * * * * * * * * * * * * * * * * * * * * * *
4809 *
4810 * Description of Hpux_Vsscanf fix
4811 */
4812tSCC zHpux_VsscanfName[] =
4813 "hpux_vsscanf";
4814
4815/*
4816 * File name selection pattern
4817 */
4818tSCC zHpux_VsscanfList[] =
4819 "stdio.h\0";
4820/*
4821 * Machine/OS name selection pattern
4822 */
4823tSCC* apzHpux_VsscanfMachs[] = {
4824 "*-*-hpux*",
4825 (const char*)NULL };
4826
4827/*
4828 * content selection pattern - do fix if pattern found
4829 */
4830tSCC zHpux_VsscanfSelect0[] =
4831 "(extern int vsscanf\\()char";
4832
4833#define HPUX_VSSCANF_TEST_CT 1
4834static tTestDesc aHpux_VsscanfTests[] = {
4835 { TT_EGREP, zHpux_VsscanfSelect0, (regex_t*)NULL }, };
4836
4837/*
4838 * Fix Command Arguments for Hpux_Vsscanf
4839 */
4840static const char* apzHpux_VsscanfPatch[] = {
4841 "format",
4842 "%1const char",
4843 (char*)NULL };
4844
6b5183e9 4845/* * * * * * * * * * * * * * * * * * * * * * * * * *
4846 *
ebf664b2 4847 * Description of Hpux8_Bogus_Inlines fix
6b5183e9 4848 */
ebf664b2 4849tSCC zHpux8_Bogus_InlinesName[] =
4850 "hpux8_bogus_inlines";
6b5183e9 4851
4852/*
4853 * File name selection pattern
4854 */
ebf664b2 4855tSCC zHpux8_Bogus_InlinesList[] =
e9afa104 4856 "math.h\0";
6b5183e9 4857/*
4858 * Machine/OS name selection pattern
4859 */
ebf664b2 4860#define apzHpux8_Bogus_InlinesMachs (const char**)NULL
6b5183e9 4861
4862/*
4863 * content selection pattern - do fix if pattern found
4864 */
ebf664b2 4865tSCC zHpux8_Bogus_InlinesSelect0[] =
4866 "inline";
6b5183e9 4867
69c13546 4868/*
4869 * content bypass pattern - skip fix if pattern found
4870 */
4871tSCC zHpux8_Bogus_InlinesBypass0[] =
4872 "__GNUG__";
4873
4874#define HPUX8_BOGUS_INLINES_TEST_CT 2
ebf664b2 4875static tTestDesc aHpux8_Bogus_InlinesTests[] = {
69c13546 4876 { TT_NEGREP, zHpux8_Bogus_InlinesBypass0, (regex_t*)NULL },
ebf664b2 4877 { TT_EGREP, zHpux8_Bogus_InlinesSelect0, (regex_t*)NULL }, };
6b5183e9 4878
4879/*
ebf664b2 4880 * Fix Command Arguments for Hpux8_Bogus_Inlines
6b5183e9 4881 */
b32d497c 4882static const char* apzHpux8_Bogus_InlinesPatch[] = { sed_cmd_z,
ebf664b2 4883 "-e", "s@inline int abs(int [a-z][a-z]*) {.*}@extern \"C\" int abs(int);@",
4884 "-e", "s@inline double abs(double [a-z][a-z]*) {.*}@@",
4885 "-e", "s@inline int sqr(int [a-z][a-z]*) {.*}@@",
4886 "-e", "s@inline double sqr(double [a-z][a-z]*) {.*}@@",
6b5183e9 4887 (char*)NULL };
4888
4889/* * * * * * * * * * * * * * * * * * * * * * * * * *
4890 *
d1ed71e5 4891 * Description of Hpux_C99_Intptr fix
6b5183e9 4892 */
d1ed71e5 4893tSCC zHpux_C99_IntptrName[] =
4894 "hpux_c99_intptr";
6b5183e9 4895
4896/*
4897 * File name selection pattern
4898 */
d1ed71e5 4899tSCC zHpux_C99_IntptrList[] =
4900 "stdint-hpux11.h\0stdint.h\0";
6b5183e9 4901/*
4902 * Machine/OS name selection pattern
4903 */
d1ed71e5 4904tSCC* apzHpux_C99_IntptrMachs[] = {
4905 "*-hp-hpux11.3*",
4906 (const char*)NULL };
4907#define HPUX_C99_INTPTR_TEST_CT 0
4908#define aHpux_C99_IntptrTests (tTestDesc*)NULL
6b5183e9 4909
4910/*
d1ed71e5 4911 * Fix Command Arguments for Hpux_C99_Intptr
6b5183e9 4912 */
d1ed71e5 4913static const char* apzHpux_C99_IntptrPatch[] = { sed_cmd_z,
4914 "-e", "s@^[ \t]*#[ \t]*define[ \t]*PTRDIFF_MAX[ \t]*INT32_MAX[ \t]*$@#define PTRDIFF_MAX (2147483647l)@",
4915 "-e", "s@^[ \t]*#[ \t]*define[ \t]*PTRDIFF_MIN[ \t]*INT32_MIN[ \t]*$@#define PTRDIFF_MIN (-PTRDIFF_MAX - 1)@",
4916 "-e", "s@^[ \t]*#[ \t]*define[ \t]*INTPTR_MAX[ \t]*INT32_MAX[ \t]*$@#define INTPTR_MAX (2147483647l)@",
4917 "-e", "s@^[ \t]*#[ \t]*define[ \t]*INTPTR_MIN[ \t]*INT32_MIN[ \t]*$@#define INTPTR_MIN (-INTPTR_MAX - 1)@",
4918 "-e", "s@^[ \t]*#[ \t]*define[ \t]*UINTPTR_MAX[ \t]*UINT32_MAX[ \t]*$@#define UINTPTR_MAX (4294967295ul)@",
4919 "-e", "s@^[ \t]*#[ \t]*define[ \t]*SIZE_MAX[ \t]*UINT32_MAX[ \t]*$@#define SIZE_MAX (4294967295ul)@",
6b5183e9 4920 (char*)NULL };
4921
1589683c 4922/* * * * * * * * * * * * * * * * * * * * * * * * * *
4923 *
d1ed71e5 4924 * Description of Hpux_C99_Inttypes fix
1589683c 4925 */
d1ed71e5 4926tSCC zHpux_C99_InttypesName[] =
4927 "hpux_c99_inttypes";
1589683c 4928
4929/*
4930 * File name selection pattern
4931 */
d1ed71e5 4932tSCC zHpux_C99_InttypesList[] =
4933 "inttypes.h\0stdint-hpux11.h\0stdint.h\0";
1589683c 4934/*
4935 * Machine/OS name selection pattern
4936 */
d1ed71e5 4937tSCC* apzHpux_C99_InttypesMachs[] = {
4938 "*-hp-hpux11.[23]*",
4939 (const char*)NULL };
4940#define HPUX_C99_INTTYPES_TEST_CT 0
4941#define aHpux_C99_InttypesTests (tTestDesc*)NULL
1589683c 4942
4943/*
d1ed71e5 4944 * Fix Command Arguments for Hpux_C99_Inttypes
1589683c 4945 */
d1ed71e5 4946static const char* apzHpux_C99_InttypesPatch[] = { sed_cmd_z,
4947 "-e", "s@^[ \t]*#[ \t]*define[ \t]*UINT8_C(__c)[ \t]*__CONCAT_U__(__c)[ \t]*$@#define UINT8_C(__c) (__c)@",
4948 "-e", "s@^[ \t]*#[ \t]*define[ \t]*UINT16_C(__c)[ \t]*__CONCAT_U__(__c)[ \t]*$@#define UINT16_C(__c) (__c)@",
4949 "-e", "s@^[ \t]*#[ \t]*define[ \t]*INT32_C(__c)[ \t]*__CONCAT__(__c,l)[ \t]*$@#define INT32_C(__c) (__c)@",
4950 "-e", "s@^[ \t]*#[ \t]*define[ \t]*UINT32_C(__c)[ \t].*$@#define UINT32_C(__c) __CONCAT__(__c,u)@",
4951 (char*)NULL };
1589683c 4952
d1ed71e5 4953/* * * * * * * * * * * * * * * * * * * * * * * * * *
4954 *
4955 * Description of Hpux_C99_Inttypes2 fix
4956 */
4957tSCC zHpux_C99_Inttypes2Name[] =
4958 "hpux_c99_inttypes2";
1589683c 4959
4960/*
d1ed71e5 4961 * File name selection pattern
1589683c 4962 */
d1ed71e5 4963tSCC zHpux_C99_Inttypes2List[] =
4964 "stdint-hpux11.h\0stdint.h\0";
4965/*
4966 * Machine/OS name selection pattern
4967 */
4968tSCC* apzHpux_C99_Inttypes2Machs[] = {
4969 "*-hp-hpux11.2*",
4970 (const char*)NULL };
4971#define HPUX_C99_INTTYPES2_TEST_CT 0
4972#define aHpux_C99_Inttypes2Tests (tTestDesc*)NULL
4973
4974/*
4975 * Fix Command Arguments for Hpux_C99_Inttypes2
4976 */
4977static const char* apzHpux_C99_Inttypes2Patch[] = { sed_cmd_z,
4978 "-e", "s@^[ \t]*#[ \t]*define[ \t]*INT8_C(__c)[ \t]*((signed char)(__c))[ \t]*$@#define INT8_C(__c) (__c)@",
4979 "-e", "s@^[ \t]*#[ \t]*define[ \t]*UINT8_C(__c)[ \t]*((unsigned char)(__c))[ \t]*$@#define UINT8_C(__c) (__c)@",
4980 "-e", "s@^[ \t]*#[ \t]*define[ \t]*INT16_C(__c)[ \t]*((short)(__c))[ \t]*$@#define INT16_C(__c) (__c)@",
4981 "-e", "s@^[ \t]*#[ \t]*define[ \t]*UINT16_C(__c)[ \t]*((unsigned short)(__c))[ \t]*$@#define UINT16_C(__c) (__c)@",
1589683c 4982 (char*)NULL };
4983
a0d38f0b 4984/* * * * * * * * * * * * * * * * * * * * * * * * * *
4985 *
d1ed71e5 4986 * Description of Hpux_Ctype_Macros fix
a0d38f0b 4987 */
d1ed71e5 4988tSCC zHpux_Ctype_MacrosName[] =
4989 "hpux_ctype_macros";
a0d38f0b 4990
4991/*
4992 * File name selection pattern
4993 */
d1ed71e5 4994tSCC zHpux_Ctype_MacrosList[] =
4995 "ctype.h\0";
a0d38f0b 4996/*
4997 * Machine/OS name selection pattern
4998 */
d1ed71e5 4999#define apzHpux_Ctype_MacrosMachs (const char**)NULL
a0d38f0b 5000
5001/*
5002 * content selection pattern - do fix if pattern found
5003 */
d1ed71e5 5004tSCC zHpux_Ctype_MacrosSelect0[] =
5005 "((: |\\()__SB_masks \\? )(__SB_masks\\[__(alnum|c)\\] & _IS)";
9e024bbb 5006
d1ed71e5 5007#define HPUX_CTYPE_MACROS_TEST_CT 1
5008static tTestDesc aHpux_Ctype_MacrosTests[] = {
5009 { TT_EGREP, zHpux_Ctype_MacrosSelect0, (regex_t*)NULL }, };
9e024bbb 5010
5011/*
d1ed71e5 5012 * Fix Command Arguments for Hpux_Ctype_Macros
9e024bbb 5013 */
d1ed71e5 5014static const char* apzHpux_Ctype_MacrosPatch[] = {
5015 "format",
5016 "%1(int)%3",
9e024bbb 5017 (char*)NULL };
5018
42fd8f40 5019/* * * * * * * * * * * * * * * * * * * * * * * * * *
5020 *
d1ed71e5 5021 * Description of Hpux_Extern_Errno fix
42fd8f40 5022 */
d1ed71e5 5023tSCC zHpux_Extern_ErrnoName[] =
5024 "hpux_extern_errno";
42fd8f40 5025
5026/*
5027 * File name selection pattern
5028 */
d1ed71e5 5029tSCC zHpux_Extern_ErrnoList[] =
5030 "errno.h\0";
42fd8f40 5031/*
5032 * Machine/OS name selection pattern
5033 */
d1ed71e5 5034tSCC* apzHpux_Extern_ErrnoMachs[] = {
5035 "*-hp-hpux10.*",
5036 "*-hp-hpux11.[0-2]*",
42fd8f40 5037 (const char*)NULL };
5038
5039/*
5040 * content selection pattern - do fix if pattern found
5041 */
d1ed71e5 5042tSCC zHpux_Extern_ErrnoSelect0[] =
5043 "^[ \t]*extern int errno;$";
42fd8f40 5044
d1ed71e5 5045#define HPUX_EXTERN_ERRNO_TEST_CT 1
5046static tTestDesc aHpux_Extern_ErrnoTests[] = {
5047 { TT_EGREP, zHpux_Extern_ErrnoSelect0, (regex_t*)NULL }, };
42fd8f40 5048
5049/*
d1ed71e5 5050 * Fix Command Arguments for Hpux_Extern_Errno
42fd8f40 5051 */
d1ed71e5 5052static const char* apzHpux_Extern_ErrnoPatch[] = {
42fd8f40 5053 "format",
d1ed71e5 5054 "#ifdef __cplusplus\n\
5055extern \"C\" {\n\
5056#endif\n\
5057%0\n\
5058#ifdef __cplusplus\n\
5059}\n\
5060#endif",
42fd8f40 5061 (char*)NULL };
5062
fdb8fb96 5063/* * * * * * * * * * * * * * * * * * * * * * * * * *
5064 *
d1ed71e5 5065 * Description of Hpux_Htonl fix
fdb8fb96 5066 */
d1ed71e5 5067tSCC zHpux_HtonlName[] =
5068 "hpux_htonl";
d4c4b01d 5069
fdb8fb96 5070/*
5071 * File name selection pattern
5072 */
d1ed71e5 5073tSCC zHpux_HtonlList[] =
5074 "netinet/in.h\0";
fdb8fb96 5075/*
5076 * Machine/OS name selection pattern
5077 */
d1ed71e5 5078#define apzHpux_HtonlMachs (const char**)NULL
fdb8fb96 5079
5080/*
d6d7d999 5081 * content selection pattern - do fix if pattern found
fdb8fb96 5082 */
d1ed71e5 5083tSCC zHpux_HtonlSelect0[] =
5084 "#ifndef _XOPEN_SOURCE_EXTENDED[ \t]*\n\
5085(/\\*\n\
5086 \\* Macros for number representation conversion\\.\n\
5087 \\*/\n\
5088#ifndef ntohl)";
fdb8fb96 5089
d1ed71e5 5090#define HPUX_HTONL_TEST_CT 1
5091static tTestDesc aHpux_HtonlTests[] = {
5092 { TT_EGREP, zHpux_HtonlSelect0, (regex_t*)NULL }, };
fdb8fb96 5093
5094/*
d1ed71e5 5095 * Fix Command Arguments for Hpux_Htonl
fdb8fb96 5096 */
d1ed71e5 5097static const char* apzHpux_HtonlPatch[] = {
cfe5be71 5098 "format",
d1ed71e5 5099 "#if 1\n\
5100%1",
3072d11f 5101 (char*)NULL };
5102
5dabcff3 5103/* * * * * * * * * * * * * * * * * * * * * * * * * *
5104 *
d1ed71e5 5105 * Description of Hpux_Imaginary_I fix
5dabcff3 5106 */
d1ed71e5 5107tSCC zHpux_Imaginary_IName[] =
5108 "hpux_imaginary_i";
5dabcff3 5109
5110/*
5111 * File name selection pattern
5112 */
d1ed71e5 5113tSCC zHpux_Imaginary_IList[] =
5114 "complex.h\0";
5dabcff3 5115/*
5116 * Machine/OS name selection pattern
5117 */
d1ed71e5 5118tSCC* apzHpux_Imaginary_IMachs[] = {
5119 "ia64-hp-hpux11.*",
5dabcff3 5120 (const char*)NULL };
5121
5122/*
5123 * content selection pattern - do fix if pattern found
5124 */
d1ed71e5 5125tSCC zHpux_Imaginary_ISelect0[] =
5126 "^[ \t]*#[ \t]*define[ \t]*_Complex_I.*";
5dabcff3 5127
d1ed71e5 5128#define HPUX_IMAGINARY_I_TEST_CT 1
5129static tTestDesc aHpux_Imaginary_ITests[] = {
5130 { TT_EGREP, zHpux_Imaginary_ISelect0, (regex_t*)NULL }, };
5dabcff3 5131
5132/*
d1ed71e5 5133 * Fix Command Arguments for Hpux_Imaginary_I
5dabcff3 5134 */
d1ed71e5 5135static const char* apzHpux_Imaginary_IPatch[] = {
5dabcff3 5136 "format",
d1ed71e5 5137 "#define _Complex_I (__extension__ 1.0iF)",
5dabcff3 5138 (char*)NULL };
5139
1cb3e86d 5140/* * * * * * * * * * * * * * * * * * * * * * * * * *
5141 *
d1ed71e5 5142 * Description of Hpux_Inttype_Int8_T fix
1cb3e86d 5143 */
d1ed71e5 5144tSCC zHpux_Inttype_Int8_TName[] =
5145 "hpux_inttype_int8_t";
1cb3e86d 5146
5147/*
5148 * File name selection pattern
5149 */
d1ed71e5 5150tSCC zHpux_Inttype_Int8_TList[] =
5151 "sys/_inttypes.h\0";
1cb3e86d 5152/*
5153 * Machine/OS name selection pattern
5154 */
d1ed71e5 5155tSCC* apzHpux_Inttype_Int8_TMachs[] = {
5156 "*-hp-hpux1[01].*",
1cb3e86d 5157 (const char*)NULL };
5158
5159/*
5160 * content selection pattern - do fix if pattern found
5161 */
d1ed71e5 5162tSCC zHpux_Inttype_Int8_TSelect0[] =
5163 "^[ \t]*typedef[ \t]*char[ \t]*int(_least){0,1}8_t.*";
1cb3e86d 5164
d1ed71e5 5165#define HPUX_INTTYPE_INT8_T_TEST_CT 1
5166static tTestDesc aHpux_Inttype_Int8_TTests[] = {
5167 { TT_EGREP, zHpux_Inttype_Int8_TSelect0, (regex_t*)NULL }, };
1cb3e86d 5168
5169/*
d1ed71e5 5170 * Fix Command Arguments for Hpux_Inttype_Int8_T
1cb3e86d 5171 */
d1ed71e5 5172static const char* apzHpux_Inttype_Int8_TPatch[] = {
1cb3e86d 5173 "format",
d1ed71e5 5174 "typedef signed char int%18_t;",
1cb3e86d 5175 (char*)NULL };
5176
5177/* * * * * * * * * * * * * * * * * * * * * * * * * *
5178 *
d1ed71e5 5179 * Description of Hpux_Long_Double fix
1cb3e86d 5180 */
d1ed71e5 5181tSCC zHpux_Long_DoubleName[] =
5182 "hpux_long_double";
1cb3e86d 5183
5184/*
5185 * File name selection pattern
5186 */
d1ed71e5 5187tSCC zHpux_Long_DoubleList[] =
5188 "stdlib.h\0";
1cb3e86d 5189/*
5190 * Machine/OS name selection pattern
5191 */
d1ed71e5 5192tSCC* apzHpux_Long_DoubleMachs[] = {
5193 "*-*-hpux10*",
5194 "*-*-hpux11.[012]*",
1cb3e86d 5195 (const char*)NULL };
5196
5197/*
5198 * content selection pattern - do fix if pattern found
5199 */
d1ed71e5 5200tSCC zHpux_Long_DoubleSelect0[] =
5201 "extern[ \t]long_double[ \t]strtold";
1cb3e86d 5202
d1ed71e5 5203/*
5204 * content bypass pattern - skip fix if pattern found
5205 */
5206tSCC zHpux_Long_DoubleBypass0[] =
5207 "long_double_t";
5208
5209#define HPUX_LONG_DOUBLE_TEST_CT 2
5210static tTestDesc aHpux_Long_DoubleTests[] = {
5211 { TT_NEGREP, zHpux_Long_DoubleBypass0, (regex_t*)NULL },
5212 { TT_EGREP, zHpux_Long_DoubleSelect0, (regex_t*)NULL }, };
1cb3e86d 5213
5214/*
d1ed71e5 5215 * Fix Command Arguments for Hpux_Long_Double
1cb3e86d 5216 */
d1ed71e5 5217static const char* apzHpux_Long_DoublePatch[] = { sed_cmd_z,
5218 "-e", "/^#[ \t]*ifndef _LONG_DOUBLE/,/\\/\\* _LONG_DOUBLE \\*\\//D",
5219 "-e", "s/long_double/long double/g",
1cb3e86d 5220 (char*)NULL };
5221
898b6c0f 5222/* * * * * * * * * * * * * * * * * * * * * * * * * *
5223 *
d1ed71e5 5224 * Description of Hpux_Long_Double_2 fix
898b6c0f 5225 */
d1ed71e5 5226tSCC zHpux_Long_Double_2Name[] =
5227 "hpux_long_double_2";
898b6c0f 5228
5229/*
5230 * File name selection pattern
5231 */
d1ed71e5 5232tSCC zHpux_Long_Double_2List[] =
5233 "stdlib.h\0";
898b6c0f 5234/*
5235 * Machine/OS name selection pattern
5236 */
d1ed71e5 5237tSCC* apzHpux_Long_Double_2Machs[] = {
5238 "hppa*-*-hpux11.3*",
898b6c0f 5239 (const char*)NULL };
5240
5241/*
5242 * content selection pattern - do fix if pattern found
5243 */
d1ed71e5 5244tSCC zHpux_Long_Double_2Select0[] =
5245 "#[ \t]*if[ \t]*!defined\\(__ia64\\) \\|\\| defined\\(_PROTOTYPES\\) \\|\\| defined\\(_LONG_DOUBLE_STRUCT\\)";
898b6c0f 5246
d1ed71e5 5247#define HPUX_LONG_DOUBLE_2_TEST_CT 1
5248static tTestDesc aHpux_Long_Double_2Tests[] = {
5249 { TT_EGREP, zHpux_Long_Double_2Select0, (regex_t*)NULL }, };
898b6c0f 5250
5251/*
d1ed71e5 5252 * Fix Command Arguments for Hpux_Long_Double_2
898b6c0f 5253 */
d1ed71e5 5254static const char* apzHpux_Long_Double_2Patch[] = {
898b6c0f 5255 "format",
d1ed71e5 5256 "# if !defined(_PROTOTYPES) || defined(_LONG_DOUBLE_STRUCT)",
898b6c0f 5257 (char*)NULL };
5258
3dd59d44 5259/* * * * * * * * * * * * * * * * * * * * * * * * * *
5260 *
5261 * Description of Hpux_Pthread_Initializers fix
5262 */
5263tSCC zHpux_Pthread_InitializersName[] =
5264 "hpux_pthread_initializers";
5265
5266/*
5267 * File name selection pattern
5268 */
5269tSCC zHpux_Pthread_InitializersList[] =
e9afa104 5270 "sys/pthread.h\0";
3dd59d44 5271/*
5272 * Machine/OS name selection pattern
5273 */
5274tSCC* apzHpux_Pthread_InitializersMachs[] = {
5275 "*-hp-hpux11.[0-3]*",
5276 (const char*)NULL };
5277#define HPUX_PTHREAD_INITIALIZERS_TEST_CT 0
5278#define aHpux_Pthread_InitializersTests (tTestDesc*)NULL
5279
5280/*
5281 * Fix Command Arguments for Hpux_Pthread_Initializers
5282 */
b32d497c 5283static const char* apzHpux_Pthread_InitializersPatch[] = { sed_cmd_z,
3dd59d44 5284 "-e", "s@^[ \t]*1, 1, 1, 1,[ \t]*\\\\@\t{ 1, 1, 1, 1 },\t\t\t\t\t\t\t\\\\@",
5285 "-e", "s@^[ \t]*1,[ \t]*\\\\@\t{ 1, 0 }@",
5286 "-e", "/^[ \t]*0$/d",
5287 "-e", "s@__PTHREAD_MUTEX_VALID, 0@{ __PTHREAD_MUTEX_VALID, 0 }@",
5288 "-e", "s@^[ \t]*0, 0, -1, 0,[ \t]*\\\\@\t{ 0, 0, -1, 0 },\t\t\t\t\t\t\\\\@",
5289 "-e", "s@0, __LWP_MTX_VALID, 0, 1, 1, 1, 1,[ \t]*\\\\@{ 0, __LWP_MTX_VALID }, { 0, 1, 1, 1, 1 },\t\t\t\\\\@",
5290 "-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\\\\@",
5291 "-e", "s@^[ \t]*0, 0[ \t]*\\\\@\t{ 0, 0 }\t\t\t\t\t\t\t\\\\@",
5292 "-e", "s@__PTHREAD_COND_VALID, 0@{ __PTHREAD_COND_VALID, 0 }@",
5293 "-e", "s@__LWP_COND_VALID, 0,[ \t]*\\\\@{ __LWP_COND_VALID, 0 },\t\t\t\t\t\\\\@",
5294 "-e", "s@__PTHREAD_RWLOCK_VALID, 0@{ __PTHREAD_RWLOCK_VALID, 0 }@",
5295 "-e", "s@__LWP_RWLOCK_VALID, 0,[ \t]*\\\\@{ __LWP_RWLOCK_VALID, 0 },\t\t\t\t\t\\\\@",
5296 "-e", "s@^[ \t]*0, 0, 0, 0, 0, 0, 0[ \t]*\\\\@\t{ 0, 0, 0, 0, 0 }, { 0, 0}\t\t\t\t\t\\\\@",
5297 (char*)NULL };
5298
42fd8f40 5299/* * * * * * * * * * * * * * * * * * * * * * * * * *
5300 *
d1ed71e5 5301 * Description of Hpux_Spu_Info fix
42fd8f40 5302 */
d1ed71e5 5303tSCC zHpux_Spu_InfoName[] =
5304 "hpux_spu_info";
42fd8f40 5305
5306/*
5307 * File name selection pattern
5308 */
d1ed71e5 5309tSCC zHpux_Spu_InfoList[] =
5310 "ia64/sys/getppdp.h\0*/sys/getppdp.h\0";
42fd8f40 5311/*
5312 * Machine/OS name selection pattern
5313 */
d1ed71e5 5314tSCC* apzHpux_Spu_InfoMachs[] = {
5315 "*-hp-hpux*",
42fd8f40 5316 (const char*)NULL };
5317
5318/*
5319 * content selection pattern - do fix if pattern found
5320 */
d1ed71e5 5321tSCC zHpux_Spu_InfoSelect0[] =
5322 "^.*extern.*spu_info.*";
42fd8f40 5323
d1ed71e5 5324#define HPUX_SPU_INFO_TEST_CT 1
5325static tTestDesc aHpux_Spu_InfoTests[] = {
5326 { TT_EGREP, zHpux_Spu_InfoSelect0, (regex_t*)NULL }, };
42fd8f40 5327
5328/*
d1ed71e5 5329 * Fix Command Arguments for Hpux_Spu_Info
42fd8f40 5330 */
d1ed71e5 5331static const char* apzHpux_Spu_InfoPatch[] = {
42fd8f40 5332 "format",
d1ed71e5 5333 "#ifdef _KERNEL\n\
5334%0\n\
5335#endif",
42fd8f40 5336 (char*)NULL };
5337
5338/* * * * * * * * * * * * * * * * * * * * * * * * * *
5339 *
d1ed71e5 5340 * Description of Hpux_Stdint_Least_Fast fix
42fd8f40 5341 */
d1ed71e5 5342tSCC zHpux_Stdint_Least_FastName[] =
5343 "hpux_stdint_least_fast";
42fd8f40 5344
5345/*
5346 * File name selection pattern
5347 */
d1ed71e5 5348tSCC zHpux_Stdint_Least_FastList[] =
5349 "stdint-hpux11.h\0stdint.h\0";
42fd8f40 5350/*
5351 * Machine/OS name selection pattern
5352 */
d1ed71e5 5353tSCC* apzHpux_Stdint_Least_FastMachs[] = {
5354 "*-hp-hpux11.2*",
42fd8f40 5355 (const char*)NULL };
5356
5357/*
5358 * content selection pattern - do fix if pattern found
5359 */
d1ed71e5 5360tSCC zHpux_Stdint_Least_FastSelect0[] =
5361 "^[ \t]*#[ \t]*define[ \t]+UINT_(LEAST|FAST)64_MAX[ \t]+ULLONG_MAX";
42fd8f40 5362
d1ed71e5 5363#define HPUX_STDINT_LEAST_FAST_TEST_CT 1
5364static tTestDesc aHpux_Stdint_Least_FastTests[] = {
5365 { TT_EGREP, zHpux_Stdint_Least_FastSelect0, (regex_t*)NULL }, };
42fd8f40 5366
5367/*
d1ed71e5 5368 * Fix Command Arguments for Hpux_Stdint_Least_Fast
42fd8f40 5369 */
d1ed71e5 5370static const char* apzHpux_Stdint_Least_FastPatch[] = {
42fd8f40 5371 "format",
d1ed71e5 5372 "# define\tUINT_%164_MAX\t__UINT64_MAX__",
42fd8f40 5373 (char*)NULL };
5374
0249b7a3 5375/* * * * * * * * * * * * * * * * * * * * * * * * * *
5376 *
5377 * Description of Hpux_Longjmp fix
5378 */
5379tSCC zHpux_LongjmpName[] =
5380 "hpux_longjmp";
5381
5382/*
5383 * File name selection pattern
5384 */
5385tSCC zHpux_LongjmpList[] =
5386 "setjmp.h\0";
5387/*
5388 * Machine/OS name selection pattern
5389 */
5390tSCC* apzHpux_LongjmpMachs[] = {
5391 "*-hp-hpux*",
5392 (const char*)NULL };
5393
5394/*
5395 * content selection pattern - do fix if pattern found
5396 */
5397tSCC zHpux_LongjmpSelect0[] =
0eb78fb9 5398 "^[ \t]*extern[ \t]+void[ \t]+.*longjmp[ \t]*(__\\(\\(.*int\\)\\)|\\(.*int\\)|\\(\\))";
0249b7a3 5399
5400#define HPUX_LONGJMP_TEST_CT 1
5401static tTestDesc aHpux_LongjmpTests[] = {
5402 { TT_EGREP, zHpux_LongjmpSelect0, (regex_t*)NULL }, };
5403
5404/*
5405 * Fix Command Arguments for Hpux_Longjmp
5406 */
5407static const char* apzHpux_LongjmpPatch[] = {
5408 "format",
5409 "%0 __attribute__ ((__noreturn__))",
5410 (char*)NULL };
5411
9436a006 5412/* * * * * * * * * * * * * * * * * * * * * * * * * *
5413 *
d1ed71e5 5414 * Description of Hpux_Systime fix
9436a006 5415 */
d1ed71e5 5416tSCC zHpux_SystimeName[] =
5417 "hpux_systime";
9436a006 5418
5419/*
5420 * File name selection pattern
5421 */
d1ed71e5 5422tSCC zHpux_SystimeList[] =
5423 "sys/time.h\0";
9436a006 5424/*
5425 * Machine/OS name selection pattern
5426 */
d1ed71e5 5427#define apzHpux_SystimeMachs (const char**)NULL
9436a006 5428
5429/*
5430 * content selection pattern - do fix if pattern found
5431 */
d1ed71e5 5432tSCC zHpux_SystimeSelect0[] =
5433 "^extern struct sigevent;";
9436a006 5434
d1ed71e5 5435#define HPUX_SYSTIME_TEST_CT 1
5436static tTestDesc aHpux_SystimeTests[] = {
5437 { TT_EGREP, zHpux_SystimeSelect0, (regex_t*)NULL }, };
9436a006 5438
5439/*
d1ed71e5 5440 * Fix Command Arguments for Hpux_Systime
9436a006 5441 */
d1ed71e5 5442static const char* apzHpux_SystimePatch[] = {
9436a006 5443 "format",
d1ed71e5 5444 "struct sigevent;",
9436a006 5445 (char*)NULL };
5446
96eced21 5447/* * * * * * * * * * * * * * * * * * * * * * * * * *
5448 *
5449 * Description of Huge_Val_Hex fix
5450 */
5451tSCC zHuge_Val_HexName[] =
5452 "huge_val_hex";
5453
5454/*
5455 * File name selection pattern
5456 */
5457tSCC zHuge_Val_HexList[] =
d1ed71e5 5458 "bits/huge_val.h\0*/bits/huge_val.h\0";
96eced21 5459/*
5460 * Machine/OS name selection pattern
5461 */
5462#define apzHuge_Val_HexMachs (const char**)NULL
5463
5464/*
5465 * content selection pattern - do fix if pattern found
5466 */
5467tSCC zHuge_Val_HexSelect0[] =
5468 "^#[ \t]*define[ \t]*HUGE_VAL[ \t].*0x1\\.0p.*";
5469
5470/*
5471 * content bypass pattern - skip fix if pattern found
5472 */
5473tSCC zHuge_Val_HexBypass0[] =
5474 "__builtin_huge_val";
5475
5476#define HUGE_VAL_HEX_TEST_CT 2
5477static tTestDesc aHuge_Val_HexTests[] = {
5478 { TT_NEGREP, zHuge_Val_HexBypass0, (regex_t*)NULL },
5479 { TT_EGREP, zHuge_Val_HexSelect0, (regex_t*)NULL }, };
5480
5481/*
5482 * Fix Command Arguments for Huge_Val_Hex
5483 */
5484static const char* apzHuge_Val_HexPatch[] = {
5485 "format",
5486 "#define HUGE_VAL (__builtin_huge_val())\n",
5487 (char*)NULL };
5488
5489/* * * * * * * * * * * * * * * * * * * * * * * * * *
5490 *
5491 * Description of Huge_Valf_Hex fix
5492 */
5493tSCC zHuge_Valf_HexName[] =
5494 "huge_valf_hex";
5495
5496/*
5497 * File name selection pattern
5498 */
5499tSCC zHuge_Valf_HexList[] =
d1ed71e5 5500 "bits/huge_val.h\0*/bits/huge_val.h\0";
96eced21 5501/*
5502 * Machine/OS name selection pattern
5503 */
5504#define apzHuge_Valf_HexMachs (const char**)NULL
5505
5506/*
5507 * content selection pattern - do fix if pattern found
5508 */
5509tSCC zHuge_Valf_HexSelect0[] =
5510 "^#[ \t]*define[ \t]*HUGE_VALF[ \t].*0x1\\.0p.*";
5511
5512/*
5513 * content bypass pattern - skip fix if pattern found
5514 */
5515tSCC zHuge_Valf_HexBypass0[] =
5516 "__builtin_huge_valf";
5517
5518#define HUGE_VALF_HEX_TEST_CT 2
5519static tTestDesc aHuge_Valf_HexTests[] = {
5520 { TT_NEGREP, zHuge_Valf_HexBypass0, (regex_t*)NULL },
5521 { TT_EGREP, zHuge_Valf_HexSelect0, (regex_t*)NULL }, };
5522
5523/*
5524 * Fix Command Arguments for Huge_Valf_Hex
5525 */
5526static const char* apzHuge_Valf_HexPatch[] = {
5527 "format",
5528 "#define HUGE_VALF (__builtin_huge_valf())\n",
5529 (char*)NULL };
5530
5531/* * * * * * * * * * * * * * * * * * * * * * * * * *
5532 *
5533 * Description of Huge_Vall_Hex fix
5534 */
5535tSCC zHuge_Vall_HexName[] =
5536 "huge_vall_hex";
5537
5538/*
5539 * File name selection pattern
5540 */
5541tSCC zHuge_Vall_HexList[] =
d1ed71e5 5542 "bits/huge_val.h\0*/bits/huge_val.h\0";
96eced21 5543/*
5544 * Machine/OS name selection pattern
5545 */
5546#define apzHuge_Vall_HexMachs (const char**)NULL
5547
5548/*
5549 * content selection pattern - do fix if pattern found
5550 */
5551tSCC zHuge_Vall_HexSelect0[] =
5552 "^#[ \t]*define[ \t]*HUGE_VALL[ \t].*0x1\\.0p.*";
5553
5554/*
5555 * content bypass pattern - skip fix if pattern found
5556 */
5557tSCC zHuge_Vall_HexBypass0[] =
5558 "__builtin_huge_vall";
5559
5560#define HUGE_VALL_HEX_TEST_CT 2
5561static tTestDesc aHuge_Vall_HexTests[] = {
5562 { TT_NEGREP, zHuge_Vall_HexBypass0, (regex_t*)NULL },
5563 { TT_EGREP, zHuge_Vall_HexSelect0, (regex_t*)NULL }, };
5564
5565/*
5566 * Fix Command Arguments for Huge_Vall_Hex
5567 */
5568static const char* apzHuge_Vall_HexPatch[] = {
5569 "format",
5570 "#define HUGE_VALL (__builtin_huge_vall())\n",
5571 (char*)NULL };
5572
3072d11f 5573/* * * * * * * * * * * * * * * * * * * * * * * * * *
5574 *
5575 * Description of Int_Abort_Free_And_Exit fix
5576 */
5577tSCC zInt_Abort_Free_And_ExitName[] =
5578 "int_abort_free_and_exit";
5579
5580/*
5581 * File name selection pattern
5582 */
5583tSCC zInt_Abort_Free_And_ExitList[] =
e9afa104 5584 "stdlib.h\0";
3072d11f 5585/*
5586 * Machine/OS name selection pattern
5587 */
5588#define apzInt_Abort_Free_And_ExitMachs (const char**)NULL
5589
5590/*
5591 * content selection pattern - do fix if pattern found
5592 */
5593tSCC zInt_Abort_Free_And_ExitSelect0[] =
5594 "int[ \t]+(abort|free|exit)[ \t]*\\(";
5595
69c13546 5596/*
5597 * content bypass pattern - skip fix if pattern found
5598 */
5599tSCC zInt_Abort_Free_And_ExitBypass0[] =
5600 "_CLASSIC_ANSI_TYPES";
5601
5602#define INT_ABORT_FREE_AND_EXIT_TEST_CT 2
3072d11f 5603static tTestDesc aInt_Abort_Free_And_ExitTests[] = {
69c13546 5604 { TT_NEGREP, zInt_Abort_Free_And_ExitBypass0, (regex_t*)NULL },
3072d11f 5605 { TT_EGREP, zInt_Abort_Free_And_ExitSelect0, (regex_t*)NULL }, };
5606
5607/*
5608 * Fix Command Arguments for Int_Abort_Free_And_Exit
5609 */
5610static const char* apzInt_Abort_Free_And_ExitPatch[] = {
5611 "format",
5612 "void\t%1(",
fdb8fb96 5613 (char*)NULL };
5614
fdb8fb96 5615/* * * * * * * * * * * * * * * * * * * * * * * * * *
5616 *
49b4955b 5617 * Description of Io_Quotes_Def fix
fdb8fb96 5618 */
49b4955b 5619tSCC zIo_Quotes_DefName[] =
5620 "io_quotes_def";
d4c4b01d 5621
fdb8fb96 5622/*
5623 * File name selection pattern
5624 */
49b4955b 5625#define zIo_Quotes_DefList (char*)NULL
fdb8fb96 5626/*
5627 * Machine/OS name selection pattern
5628 */
49b4955b 5629#define apzIo_Quotes_DefMachs (const char**)NULL
fdb8fb96 5630
5631/*
c1b28c63 5632 * content selection pattern - do fix if pattern found
fdb8fb96 5633 */
49b4955b 5634tSCC zIo_Quotes_DefSelect0[] =
edb5e81d 5635 "define[ \t]+[A-Z0-9_]+IO[A-Z]*\\([a-zA-Z][,)]";
fdb8fb96 5636
49b4955b 5637#define IO_QUOTES_DEF_TEST_CT 1
2548396b 5638static tTestDesc aIo_Quotes_DefTests[] = {
49b4955b 5639 { TT_EGREP, zIo_Quotes_DefSelect0, (regex_t*)NULL }, };
fdb8fb96 5640
5641/*
49b4955b 5642 * Fix Command Arguments for Io_Quotes_Def
fdb8fb96 5643 */
2548396b 5644static const char* apzIo_Quotes_DefPatch[] = {
c940c2ae 5645 "char_macro_def",
5646 "IO",
ada96dc2 5647 (char*)NULL };
5648
5649/* * * * * * * * * * * * * * * * * * * * * * * * * *
5650 *
472aa368 5651 * Description of Io_Quotes_Use fix
ada96dc2 5652 */
472aa368 5653tSCC zIo_Quotes_UseName[] =
5654 "io_quotes_use";
d4c4b01d 5655
ada96dc2 5656/*
5657 * File name selection pattern
5658 */
472aa368 5659#define zIo_Quotes_UseList (char*)NULL
ada96dc2 5660/*
5661 * Machine/OS name selection pattern
5662 */
472aa368 5663#define apzIo_Quotes_UseMachs (const char**)NULL
ada96dc2 5664
5665/*
5666 * content selection pattern - do fix if pattern found
5667 */
472aa368 5668tSCC zIo_Quotes_UseSelect0[] =
5669 "define[ \t]+[A-Z0-9_]+[ \t]+[A-Z0-9_]+IO[A-Z]*[ \t]*\\( *[^,']";
ada96dc2 5670
472aa368 5671#define IO_QUOTES_USE_TEST_CT 1
2548396b 5672static tTestDesc aIo_Quotes_UseTests[] = {
472aa368 5673 { TT_EGREP, zIo_Quotes_UseSelect0, (regex_t*)NULL }, };
ada96dc2 5674
5675/*
472aa368 5676 * Fix Command Arguments for Io_Quotes_Use
ada96dc2 5677 */
2548396b 5678static const char* apzIo_Quotes_UsePatch[] = {
c940c2ae 5679 "char_macro_use",
472aa368 5680 "IO",
fdb8fb96 5681 (char*)NULL };
5682
5683/* * * * * * * * * * * * * * * * * * * * * * * * * *
5684 *
3072d11f 5685 * Description of Ip_Missing_Semi fix
fdb8fb96 5686 */
3072d11f 5687tSCC zIp_Missing_SemiName[] =
5688 "ip_missing_semi";
d4c4b01d 5689
fdb8fb96 5690/*
5691 * File name selection pattern
5692 */
3072d11f 5693tSCC zIp_Missing_SemiList[] =
e9afa104 5694 "netinet/ip.h\0";
fdb8fb96 5695/*
5696 * Machine/OS name selection pattern
5697 */
3072d11f 5698#define apzIp_Missing_SemiMachs (const char**)NULL
bb304030 5699
5700/*
5701 * content selection pattern - do fix if pattern found
cfe5be71 5702 */
3072d11f 5703tSCC zIp_Missing_SemiSelect0[] =
5704 "}$";
cfe5be71 5705
3072d11f 5706#define IP_MISSING_SEMI_TEST_CT 1
5707static tTestDesc aIp_Missing_SemiTests[] = {
5708 { TT_EGREP, zIp_Missing_SemiSelect0, (regex_t*)NULL }, };
2ef2faef 5709
5710/*
3072d11f 5711 * Fix Command Arguments for Ip_Missing_Semi
fdb8fb96 5712 */
b32d497c 5713static const char* apzIp_Missing_SemiPatch[] = { sed_cmd_z,
3072d11f 5714 "-e", "/^struct/,/^};/s/}$/};/",
fdb8fb96 5715 (char*)NULL };
5716
fdb8fb96 5717/* * * * * * * * * * * * * * * * * * * * * * * * * *
5718 *
3072d11f 5719 * Description of Irix_Limits_Const fix
01719fc0 5720 */
3072d11f 5721tSCC zIrix_Limits_ConstName[] =
5722 "irix_limits_const";
d4c4b01d 5723
01719fc0 5724/*
5725 * File name selection pattern
5726 */
3072d11f 5727tSCC zIrix_Limits_ConstList[] =
e9afa104 5728 "fixinc-test-limits.h\0limits.h\0";
01719fc0 5729/*
5730 * Machine/OS name selection pattern
5731 */
3072d11f 5732#define apzIrix_Limits_ConstMachs (const char**)NULL
01719fc0 5733
5734/*
5735 * content selection pattern - do fix if pattern found
5736 */
3072d11f 5737tSCC zIrix_Limits_ConstSelect0[] =
5738 "^extern const ";
01719fc0 5739
3072d11f 5740#define IRIX_LIMITS_CONST_TEST_CT 1
5741static tTestDesc aIrix_Limits_ConstTests[] = {
5742 { TT_EGREP, zIrix_Limits_ConstSelect0, (regex_t*)NULL }, };
01719fc0 5743
5744/*
3072d11f 5745 * Fix Command Arguments for Irix_Limits_Const
01719fc0 5746 */
3072d11f 5747static const char* apzIrix_Limits_ConstPatch[] = {
cfe5be71 5748 "format",
3072d11f 5749 "extern __const ",
fdb8fb96 5750 (char*)NULL };
5751
06730757 5752/* * * * * * * * * * * * * * * * * * * * * * * * * *
5753 *
5754 * Description of Irix_Stdio_Va_List fix
5755 */
06730757 5756tSCC zIrix_Stdio_Va_ListName[] =
5757 "irix_stdio_va_list";
5758
5759/*
5760 * File name selection pattern
5761 */
5762tSCC zIrix_Stdio_Va_ListList[] =
5641963c 5763 "stdio.h\0";
06730757 5764/*
5765 * Machine/OS name selection pattern
5766 */
5767#define apzIrix_Stdio_Va_ListMachs (const char**)NULL
5768
5769/*
5770 * content selection pattern - do fix if pattern found
5771 */
5772tSCC zIrix_Stdio_Va_ListSelect0[] =
38f81ce5 5773 "/\\* va_list \\*/ char \\*";
06730757 5774
5775#define IRIX_STDIO_VA_LIST_TEST_CT 1
5776static tTestDesc aIrix_Stdio_Va_ListTests[] = {
5777 { TT_EGREP, zIrix_Stdio_Va_ListSelect0, (regex_t*)NULL }, };
5778
5779/*
5780 * Fix Command Arguments for Irix_Stdio_Va_List
5781 */
5782static const char* apzIrix_Stdio_Va_ListPatch[] = {
5783 "format",
38f81ce5 5784 "__gnuc_va_list",
06730757 5785 (char*)NULL };
5786
fdb8fb96 5787/* * * * * * * * * * * * * * * * * * * * * * * * * *
5788 *
5daf7ede 5789 * Description of Kandr_Concat fix
fdb8fb96 5790 */
5791tSCC zKandr_ConcatName[] =
d4c4b01d 5792 "kandr_concat";
5793
fdb8fb96 5794/*
5795 * File name selection pattern
5796 */
5797tSCC zKandr_ConcatList[] =
e9afa104 5798 "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";
fdb8fb96 5799/*
5800 * Machine/OS name selection pattern
5801 */
5802#define apzKandr_ConcatMachs (const char**)NULL
5803
5804/*
c1b28c63 5805 * content selection pattern - do fix if pattern found
fdb8fb96 5806 */
5807tSCC zKandr_ConcatSelect0[] =
5808 "/\\*\\*/";
5809
5810#define KANDR_CONCAT_TEST_CT 1
2548396b 5811static tTestDesc aKandr_ConcatTests[] = {
5daf7ede 5812 { TT_EGREP, zKandr_ConcatSelect0, (regex_t*)NULL }, };
fdb8fb96 5813
5814/*
5815 * Fix Command Arguments for Kandr_Concat
5816 */
2548396b 5817static const char* apzKandr_ConcatPatch[] = {
cfe5be71 5818 "format",
5819 "##",
fdb8fb96 5820 (char*)NULL };
5821
d92db5b6 5822/* * * * * * * * * * * * * * * * * * * * * * * * * *
5823 *
5824 * Description of Linux_Ia64_Ucontext fix
5825 */
5826tSCC zLinux_Ia64_UcontextName[] =
5827 "linux_ia64_ucontext";
5828
5829/*
5830 * File name selection pattern
5831 */
5832tSCC zLinux_Ia64_UcontextList[] =
e9afa104 5833 "sys/ucontext.h\0";
d92db5b6 5834/*
5835 * Machine/OS name selection pattern
5836 */
5837tSCC* apzLinux_Ia64_UcontextMachs[] = {
5838 "ia64-*-linux*",
5839 (const char*)NULL };
5840
5841/*
5842 * content selection pattern - do fix if pattern found
5843 */
5844tSCC zLinux_Ia64_UcontextSelect0[] =
5845 "\\(\\(\\(char \\*\\) &\\(\\(struct sigcontext \\*\\) 0\\)->sc_gr\\[0\\]\\) - \\(char \\*\\) 0\\)";
5846
5847#define LINUX_IA64_UCONTEXT_TEST_CT 1
5848static tTestDesc aLinux_Ia64_UcontextTests[] = {
5849 { TT_EGREP, zLinux_Ia64_UcontextSelect0, (regex_t*)NULL }, };
5850
5851/*
5852 * Fix Command Arguments for Linux_Ia64_Ucontext
5853 */
5854static const char* apzLinux_Ia64_UcontextPatch[] = {
5855 "format",
5856 "__builtin_offsetof (struct sigcontext, sc_gr[0])",
5857 (char*)NULL };
5858
fdb8fb96 5859/* * * * * * * * * * * * * * * * * * * * * * * * * *
5860 *
435ea059 5861 * Description of Lynxos_No_Warning_In_Sys_Time_H fix
fdb8fb96 5862 */
435ea059 5863tSCC zLynxos_No_Warning_In_Sys_Time_HName[] =
5864 "lynxos_no_warning_in_sys_time_h";
d4c4b01d 5865
fdb8fb96 5866/*
5867 * File name selection pattern
5868 */
435ea059 5869tSCC zLynxos_No_Warning_In_Sys_Time_HList[] =
e9afa104 5870 "sys/time.h\0";
fdb8fb96 5871/*
5872 * Machine/OS name selection pattern
5873 */
435ea059 5874#define apzLynxos_No_Warning_In_Sys_Time_HMachs (const char**)NULL
fdb8fb96 5875
5876/*
c1b28c63 5877 * content selection pattern - do fix if pattern found
fdb8fb96 5878 */
435ea059 5879tSCC zLynxos_No_Warning_In_Sys_Time_HSelect0[] =
5880 "#warning[ \t]+Using <time.h> instead of <sys/time.h>";
fdb8fb96 5881
435ea059 5882#define LYNXOS_NO_WARNING_IN_SYS_TIME_H_TEST_CT 1
5883static tTestDesc aLynxos_No_Warning_In_Sys_Time_HTests[] = {
5884 { TT_EGREP, zLynxos_No_Warning_In_Sys_Time_HSelect0, (regex_t*)NULL }, };
fdb8fb96 5885
5886/*
435ea059 5887 * Fix Command Arguments for Lynxos_No_Warning_In_Sys_Time_H
fdb8fb96 5888 */
435ea059 5889static const char* apzLynxos_No_Warning_In_Sys_Time_HPatch[] = {
cfe5be71 5890 "format",
5891 "",
fdb8fb96 5892 (char*)NULL };
5893
5894/* * * * * * * * * * * * * * * * * * * * * * * * * *
5895 *
435ea059 5896 * Description of Lynxos_Missing_Putenv fix
fdb8fb96 5897 */
435ea059 5898tSCC zLynxos_Missing_PutenvName[] =
5899 "lynxos_missing_putenv";
d4c4b01d 5900
fdb8fb96 5901/*
5902 * File name selection pattern
5903 */
435ea059 5904tSCC zLynxos_Missing_PutenvList[] =
e9afa104 5905 "stdlib.h\0";
fdb8fb96 5906/*
5907 * Machine/OS name selection pattern
5908 */
435ea059 5909tSCC* apzLynxos_Missing_PutenvMachs[] = {
5910 "*-*-lynxos*",
5911 (const char*)NULL };
38ebab8a 5912
5913/*
c1b28c63 5914 * content selection pattern - do fix if pattern found
38ebab8a 5915 */
435ea059 5916tSCC zLynxos_Missing_PutenvSelect0[] =
5917 "extern char \\*getenv[ \t]*_AP\\(\\(const char \\*\\)\\);";
38ebab8a 5918
435ea059 5919/*
5920 * content bypass pattern - skip fix if pattern found
5921 */
5922tSCC zLynxos_Missing_PutenvBypass0[] =
5923 "putenv[ \\t]*\\(";
5924
5925#define LYNXOS_MISSING_PUTENV_TEST_CT 2
5926static tTestDesc aLynxos_Missing_PutenvTests[] = {
5927 { TT_NEGREP, zLynxos_Missing_PutenvBypass0, (regex_t*)NULL },
5928 { TT_EGREP, zLynxos_Missing_PutenvSelect0, (regex_t*)NULL }, };
fdb8fb96 5929
5930/*
435ea059 5931 * Fix Command Arguments for Lynxos_Missing_Putenv
fdb8fb96 5932 */
435ea059 5933static const char* apzLynxos_Missing_PutenvPatch[] = {
cfe5be71 5934 "format",
435ea059 5935 "%0\n\
5936extern int putenv\t\t\t\t_AP((char *));",
5937 "extern char \\*getenv[ \t]*_AP\\(\\(const char \\*\\)\\);",
fdb8fb96 5938 (char*)NULL };
5939
d4c4b01d 5940/* * * * * * * * * * * * * * * * * * * * * * * * * *
5941 *
5942 * Description of Machine_Ansi_H_Va_List fix
5943 */
d4c4b01d 5944tSCC zMachine_Ansi_H_Va_ListName[] =
5945 "machine_ansi_h_va_list";
5946
5947/*
5948 * File name selection pattern
5949 */
0efa04d0 5950#define zMachine_Ansi_H_Va_ListList (char*)NULL
d4c4b01d 5951/*
5952 * Machine/OS name selection pattern
5953 */
5954#define apzMachine_Ansi_H_Va_ListMachs (const char**)NULL
5955
5956/*
5957 * content selection pattern - do fix if pattern found
5958 */
5959tSCC zMachine_Ansi_H_Va_ListSelect0[] =
a83746ef 5960 "define[ \t]+_BSD_VA_LIST_[ \t]";
d4c4b01d 5961
5962/*
5963 * content bypass pattern - skip fix if pattern found
5964 */
5965tSCC zMachine_Ansi_H_Va_ListBypass0[] =
5966 "__builtin_va_list";
5967
5968#define MACHINE_ANSI_H_VA_LIST_TEST_CT 2
2548396b 5969static tTestDesc aMachine_Ansi_H_Va_ListTests[] = {
d4c4b01d 5970 { TT_NEGREP, zMachine_Ansi_H_Va_ListBypass0, (regex_t*)NULL },
5971 { TT_EGREP, zMachine_Ansi_H_Va_ListSelect0, (regex_t*)NULL }, };
5972
5973/*
5974 * Fix Command Arguments for Machine_Ansi_H_Va_List
5975 */
2548396b 5976static const char* apzMachine_Ansi_H_Va_ListPatch[] = {
a83746ef 5977 "format",
5978 "%1__builtin_va_list",
5979 "(define[ \t]+_BSD_VA_LIST_[ \t]+).*",
d4c4b01d 5980 (char*)NULL };
5981
fdb8fb96 5982/* * * * * * * * * * * * * * * * * * * * * * * * * *
5983 *
5daf7ede 5984 * Description of Machine_Name fix
fdb8fb96 5985 */
5986tSCC zMachine_NameName[] =
d4c4b01d 5987 "machine_name";
5988
fdb8fb96 5989/*
5990 * File name selection pattern
5991 */
5992#define zMachine_NameList (char*)NULL
5993/*
5994 * Machine/OS name selection pattern
5995 */
5996#define apzMachine_NameMachs (const char**)NULL
5997
5998/*
17f8e521 5999 * perform the C function call test
fdb8fb96 6000 */
17f8e521 6001tSCC zMachine_NameFTst0[] = "machine_name";
fdb8fb96 6002
6003#define MACHINE_NAME_TEST_CT 1
2548396b 6004static tTestDesc aMachine_NameTests[] = {
17f8e521 6005 { TT_FUNCTION, zMachine_NameFTst0, 0 /* unused */ }, };
fdb8fb96 6006
6007/*
6008 * Fix Command Arguments for Machine_Name
6009 */
2548396b 6010static const char* apzMachine_NamePatch[] = {
6e791f25 6011 "machine_name",
fdb8fb96 6012 (char*)NULL };
6013
6014/* * * * * * * * * * * * * * * * * * * * * * * * * *
6015 *
5daf7ede 6016 * Description of Math_Exception fix
fdb8fb96 6017 */
6018tSCC zMath_ExceptionName[] =
d4c4b01d 6019 "math_exception";
6020
fdb8fb96 6021/*
6022 * File name selection pattern
6023 */
6024tSCC zMath_ExceptionList[] =
e9afa104 6025 "math.h\0";
fdb8fb96 6026/*
6027 * Machine/OS name selection pattern
6028 */
3efb5d22 6029tSCC* apzMath_ExceptionMachs[] = {
6030 "*-*-solaris2.1[0-9]*",
6031 (const char*)NULL };
fdb8fb96 6032
6033/*
c1b28c63 6034 * content selection pattern - do fix if pattern found
fdb8fb96 6035 */
6036tSCC zMath_ExceptionSelect0[] =
6037 "struct exception";
6038
bb304030 6039/*
6040 * content bypass pattern - skip fix if pattern found
6041 */
6042tSCC zMath_ExceptionBypass0[] =
634f7a13 6043 "We have a problem when using C\\+\\+|for C\\+\\+, _[a-z0-9A-Z_]+_exception; for C, exception";
bb304030 6044
6045#define MATH_EXCEPTION_TEST_CT 2
2548396b 6046static tTestDesc aMath_ExceptionTests[] = {
bb304030 6047 { TT_NEGREP, zMath_ExceptionBypass0, (regex_t*)NULL },
5daf7ede 6048 { TT_EGREP, zMath_ExceptionSelect0, (regex_t*)NULL }, };
fdb8fb96 6049
6050/*
6051 * Fix Command Arguments for Math_Exception
6052 */
2548396b 6053static const char* apzMath_ExceptionPatch[] = {
e6650807 6054 "wrap",
6055 "#ifdef __cplusplus\n\
6056#define exception __math_exception\n\
efb1b79b 6057#endif\n",
e6650807 6058 "#ifdef __cplusplus\n\
6059#undef exception\n\
efb1b79b 6060#endif\n",
fdb8fb96 6061 (char*)NULL };
6062
6063/* * * * * * * * * * * * * * * * * * * * * * * * * *
6064 *
bb304030 6065 * Description of Math_Huge_Val_From_Dbl_Max fix
fdb8fb96 6066 */
bb304030 6067tSCC zMath_Huge_Val_From_Dbl_MaxName[] =
d4c4b01d 6068 "math_huge_val_from_dbl_max";
6069
fdb8fb96 6070/*
6071 * File name selection pattern
6072 */
bb304030 6073tSCC zMath_Huge_Val_From_Dbl_MaxList[] =
e9afa104 6074 "math.h\0";
fdb8fb96 6075/*
6076 * Machine/OS name selection pattern
6077 */
bb304030 6078#define apzMath_Huge_Val_From_Dbl_MaxMachs (const char**)NULL
6079
6080/*
6081 * content selection pattern - do fix if pattern found
6082 */
6083tSCC zMath_Huge_Val_From_Dbl_MaxSelect0[] =
b07d36b9 6084 "define[ \t]+HUGE_VAL[ \t]+DBL_MAX";
fdb8fb96 6085
6086/*
bb304030 6087 * content bypass pattern - skip fix if pattern found
fdb8fb96 6088 */
bb304030 6089tSCC zMath_Huge_Val_From_Dbl_MaxBypass0[] =
b07d36b9 6090 "define[ \t]+DBL_MAX";
bb304030 6091
6092#define MATH_HUGE_VAL_FROM_DBL_MAX_TEST_CT 2
2548396b 6093static tTestDesc aMath_Huge_Val_From_Dbl_MaxTests[] = {
bb304030 6094 { TT_NEGREP, zMath_Huge_Val_From_Dbl_MaxBypass0, (regex_t*)NULL },
6095 { TT_EGREP, zMath_Huge_Val_From_Dbl_MaxSelect0, (regex_t*)NULL }, };
6096
6097/*
6098 * Fix Command Arguments for Math_Huge_Val_From_Dbl_Max
6099 */
2548396b 6100static const char* apzMath_Huge_Val_From_Dbl_MaxPatch[] = { "sh", "-c",
5c0b86e6 6101 "\tdbl_max_def=`egrep 'define[ \t]+DBL_MAX[ \t]+.*' float.h | sed 's/.*DBL_MAX[ \t]*//' 2>/dev/null`\n\n\
bb304030 6102\tif ( test -n \"${dbl_max_def}\" ) > /dev/null 2>&1\n\
b07d36b9 6103\tthen sed -e '/define[ \t]*HUGE_VAL[ \t]*DBL_MAX/s@DBL_MAX@'\"$dbl_max_def@\"\n\
bb304030 6104\telse cat\n\
6105\tfi",
6106 (char*)NULL };
6107
3072d11f 6108/* * * * * * * * * * * * * * * * * * * * * * * * * *
6109 *
6110 * Description of Nested_Auth_Des fix
6111 */
6112tSCC zNested_Auth_DesName[] =
6113 "nested_auth_des";
6114
6115/*
6116 * File name selection pattern
6117 */
6118tSCC zNested_Auth_DesList[] =
e9afa104 6119 "rpc/rpc.h\0";
3072d11f 6120/*
6121 * Machine/OS name selection pattern
6122 */
6123#define apzNested_Auth_DesMachs (const char**)NULL
6124
6125/*
6126 * content selection pattern - do fix if pattern found
6127 */
6128tSCC zNested_Auth_DesSelect0[] =
6129 "(/\\*.*rpc/auth_des\\.h>.*)/\\*";
6130
6131#define NESTED_AUTH_DES_TEST_CT 1
6132static tTestDesc aNested_Auth_DesTests[] = {
6133 { TT_EGREP, zNested_Auth_DesSelect0, (regex_t*)NULL }, };
6134
6135/*
6136 * Fix Command Arguments for Nested_Auth_Des
6137 */
6138static const char* apzNested_Auth_DesPatch[] = {
6139 "format",
6140 "%1*/ /*",
6141 (char*)NULL };
6142
4cbf73b4 6143/* * * * * * * * * * * * * * * * * * * * * * * * * *
6144 *
6145 * Description of Netbsd_C99_Inline_1 fix
6146 */
6147tSCC zNetbsd_C99_Inline_1Name[] =
6148 "netbsd_c99_inline_1";
6149
6150/*
6151 * File name selection pattern
6152 */
6153tSCC zNetbsd_C99_Inline_1List[] =
6154 "signal.h\0";
6155/*
6156 * Machine/OS name selection pattern
6157 */
6158tSCC* apzNetbsd_C99_Inline_1Machs[] = {
6159 "*-*-netbsd*",
6160 (const char*)NULL };
6161
6162/*
6163 * content selection pattern - do fix if pattern found
6164 */
6165tSCC zNetbsd_C99_Inline_1Select0[] =
6166 "extern __inline int";
6167
6168#define NETBSD_C99_INLINE_1_TEST_CT 1
6169static tTestDesc aNetbsd_C99_Inline_1Tests[] = {
6170 { TT_EGREP, zNetbsd_C99_Inline_1Select0, (regex_t*)NULL }, };
6171
6172/*
6173 * Fix Command Arguments for Netbsd_C99_Inline_1
6174 */
6175static const char* apzNetbsd_C99_Inline_1Patch[] = {
6176 "format",
6177 "extern\n\
6178#ifdef __GNUC_STDC_INLINE__\n\
6179__attribute__((__gnu_inline__))\n\
6180#endif\n\
6181__inline int",
6182 (char*)NULL };
6183
759bfb14 6184/* * * * * * * * * * * * * * * * * * * * * * * * * *
6185 *
6186 * Description of Netbsd_C99_Inline_2 fix
6187 */
6188tSCC zNetbsd_C99_Inline_2Name[] =
6189 "netbsd_c99_inline_2";
6190
6191/*
6192 * File name selection pattern
6193 */
6194tSCC zNetbsd_C99_Inline_2List[] =
6195 "signal.h\0";
6196/*
6197 * Machine/OS name selection pattern
6198 */
6199tSCC* apzNetbsd_C99_Inline_2Machs[] = {
6200 "*-*-netbsd*",
6201 (const char*)NULL };
6202
6203/*
6204 * content selection pattern - do fix if pattern found
6205 */
6206tSCC zNetbsd_C99_Inline_2Select0[] =
6207 "#define _SIGINLINE extern __inline";
6208
6209#define NETBSD_C99_INLINE_2_TEST_CT 1
6210static tTestDesc aNetbsd_C99_Inline_2Tests[] = {
6211 { TT_EGREP, zNetbsd_C99_Inline_2Select0, (regex_t*)NULL }, };
6212
6213/*
6214 * Fix Command Arguments for Netbsd_C99_Inline_2
6215 */
6216static const char* apzNetbsd_C99_Inline_2Patch[] = {
6217 "format",
6218 "#ifdef __GNUC_STDC_INLINE__\n\
6219#define _SIGINLINE extern __attribute__((__gnu_inline__)) __inline\n\
6220#else\n\
6221%0\n\
6222#endif",
6223 (char*)NULL };
6224
81a897fb 6225/* * * * * * * * * * * * * * * * * * * * * * * * * *
6226 *
6227 * Description of Netbsd_Extra_Semicolon fix
6228 */
6229tSCC zNetbsd_Extra_SemicolonName[] =
6230 "netbsd_extra_semicolon";
6231
6232/*
6233 * File name selection pattern
6234 */
6235tSCC zNetbsd_Extra_SemicolonList[] =
e9afa104 6236 "sys/cdefs.h\0";
81a897fb 6237/*
6238 * Machine/OS name selection pattern
6239 */
6240tSCC* apzNetbsd_Extra_SemicolonMachs[] = {
6241 "*-*-netbsd*",
6242 (const char*)NULL };
6243
6244/*
6245 * content selection pattern - do fix if pattern found
6246 */
6247tSCC zNetbsd_Extra_SemicolonSelect0[] =
6248 "#define[ \t]*__END_DECLS[ \t]*};";
6249
6250#define NETBSD_EXTRA_SEMICOLON_TEST_CT 1
6251static tTestDesc aNetbsd_Extra_SemicolonTests[] = {
6252 { TT_EGREP, zNetbsd_Extra_SemicolonSelect0, (regex_t*)NULL }, };
6253
6254/*
6255 * Fix Command Arguments for Netbsd_Extra_Semicolon
6256 */
6257static const char* apzNetbsd_Extra_SemicolonPatch[] = {
6258 "format",
6259 "#define __END_DECLS }",
6260 (char*)NULL };
6261
f3449a3c 6262/* * * * * * * * * * * * * * * * * * * * * * * * * *
6263 *
6264 * Description of Newlib_Stdint_1 fix
6265 */
6266tSCC zNewlib_Stdint_1Name[] =
6267 "newlib_stdint_1";
6268
6269/*
6270 * File name selection pattern
6271 */
6272tSCC zNewlib_Stdint_1List[] =
e2fb821c 6273 "stdint-newlib.h\0stdint.h\0";
f3449a3c 6274/*
6275 * Machine/OS name selection pattern
6276 */
6277#define apzNewlib_Stdint_1Machs (const char**)NULL
6278
6279/*
6280 * content selection pattern - do fix if pattern found
6281 */
6282tSCC zNewlib_Stdint_1Select0[] =
6283 "@todo - Add support for wint_t types";
6284
6285#define NEWLIB_STDINT_1_TEST_CT 1
6286static tTestDesc aNewlib_Stdint_1Tests[] = {
6287 { TT_EGREP, zNewlib_Stdint_1Select0, (regex_t*)NULL }, };
6288
6289/*
6290 * Fix Command Arguments for Newlib_Stdint_1
6291 */
6292static const char* apzNewlib_Stdint_1Patch[] = { sed_cmd_z,
6293 "-e", "s@#define INT32_MIN.*@#define INT32_MIN (-INT32_MAX - 1)@",
6294 "-e", "s@#define INT32_MAX.*@#define INT32_MAX __INT32_MAX__@",
6295 "-e", "s@#define UINT32_MAX.*@#define UINT32_MAX __UINT32_MAX__@",
6296 "-e", "s@#define INT_LEAST32_MIN.*@#define INT_LEAST32_MIN (-INT_LEAST32_MAX - 1)@",
6297 "-e", "s@#define INT_LEAST32_MAX.*@#define INT_LEAST32_MAX __INT_LEAST32_MAX__@",
6298 "-e", "s@#define UINT_LEAST32_MAX.*@#define UINT_LEAST32_MAX __UINT_LEAST32_MAX__@",
6299 "-e", "s@#define INT_FAST\\([0-9]*\\)_MIN.*@#define INT_FAST\\1_MIN (-INT_FAST\\1_MAX - 1)@",
6300 "-e", "s@#define INT_FAST\\([0-9]*\\)_MAX.*@#define INT_FAST\\1_MAX __INT_FAST\\1_MAX__@",
6301 "-e", "s@#define UINT_FAST\\([0-9]*\\)_MAX.*@#define UINT_FAST\\1_MAX __UINT_FAST\\1_MAX__@",
6302 "-e", "s@#define SIZE_MAX.*@#define SIZE_MAX __SIZE_MAX__@",
6303 "-e", "s@#define PTRDIFF_MIN.*@#define PTRDIFF_MIN (-PTRDIFF_MAX - 1)@",
6304 "-e", "s@#define PTRDIFF_MAX.*@#define PTRDIFF_MAX __PTRDIFF_MAX__@",
6305 "-e", "s@#define UINT8_C.*@#define UINT8_C(c) __UINT8_C(c)@",
6306 "-e", "s@#define UINT16_C.*@#define UINT16_C(c) __UINT16_C(c)@",
6307 (char*)NULL };
6308
6309/* * * * * * * * * * * * * * * * * * * * * * * * * *
6310 *
6311 * Description of Newlib_Stdint_2 fix
6312 */
6313tSCC zNewlib_Stdint_2Name[] =
6314 "newlib_stdint_2";
6315
6316/*
6317 * File name selection pattern
6318 */
6319tSCC zNewlib_Stdint_2List[] =
e2fb821c 6320 "stdint-newlib.h\0stdint.h\0";
f3449a3c 6321/*
6322 * Machine/OS name selection pattern
6323 */
6324#define apzNewlib_Stdint_2Machs (const char**)NULL
6325
6326/*
6327 * content selection pattern - do fix if pattern found
6328 */
6329tSCC zNewlib_Stdint_2Select0[] =
6330 "@todo - Add support for wint_t types";
6331
6332#define NEWLIB_STDINT_2_TEST_CT 1
6333static tTestDesc aNewlib_Stdint_2Tests[] = {
6334 { TT_EGREP, zNewlib_Stdint_2Select0, (regex_t*)NULL }, };
6335
6336/*
6337 * Fix Command Arguments for Newlib_Stdint_2
6338 */
6339static const char* apzNewlib_Stdint_2Patch[] = {
6340 "format",
6341 "#define INTMAX_MAX __INTMAX_MAX__\n\
6342#define INTMAX_MIN (-INTMAX_MAX - 1)\n\
6343#define UINTMAX_MAX __UINTMAX_MAX__\n\
6344#define WCHAR_MAX __WCHAR_MAX__\n\
6345#define WCHAR_MIN __WCHAR_MIN__\n\
6346#define WINT_MAX __WINT_MAX__\n\
6347#define WINT_MIN __WINT_MIN__\n\n\
6348%0",
6349 "/\\*\\* Macros for minimum-width integer constant expressions \\*/",
6350 (char*)NULL };
6351
fdb8fb96 6352/* * * * * * * * * * * * * * * * * * * * * * * * * *
6353 *
5daf7ede 6354 * Description of Next_Math_Prefix fix
fdb8fb96 6355 */
6356tSCC zNext_Math_PrefixName[] =
d4c4b01d 6357 "next_math_prefix";
6358
fdb8fb96 6359/*
6360 * File name selection pattern
6361 */
6362tSCC zNext_Math_PrefixList[] =
e9afa104 6363 "ansi/math.h\0";
fdb8fb96 6364/*
6365 * Machine/OS name selection pattern
6366 */
6367#define apzNext_Math_PrefixMachs (const char**)NULL
6368
6369/*
c1b28c63 6370 * content selection pattern - do fix if pattern found
fdb8fb96 6371 */
6372tSCC zNext_Math_PrefixSelect0[] =
a83746ef 6373 "^extern[ \t]+double[ \t]+__const__[ \t]";
fdb8fb96 6374
6375#define NEXT_MATH_PREFIX_TEST_CT 1
2548396b 6376static tTestDesc aNext_Math_PrefixTests[] = {
5daf7ede 6377 { TT_EGREP, zNext_Math_PrefixSelect0, (regex_t*)NULL }, };
fdb8fb96 6378
6379/*
6380 * Fix Command Arguments for Next_Math_Prefix
6381 */
2548396b 6382static const char* apzNext_Math_PrefixPatch[] = {
a83746ef 6383 "format",
6384 "extern double %1(",
6385 "^extern[ \t]+double[ \t]+__const__[ \t]+([a-z]+)\\(",
fdb8fb96 6386 (char*)NULL };
6387
6388/* * * * * * * * * * * * * * * * * * * * * * * * * *
6389 *
5daf7ede 6390 * Description of Next_Template fix
fdb8fb96 6391 */
6392tSCC zNext_TemplateName[] =
d4c4b01d 6393 "next_template";
6394
fdb8fb96 6395/*
6396 * File name selection pattern
6397 */
6398tSCC zNext_TemplateList[] =
e9afa104 6399 "bsd/libc.h\0";
fdb8fb96 6400/*
6401 * Machine/OS name selection pattern
6402 */
6403#define apzNext_TemplateMachs (const char**)NULL
6404
6405/*
c1b28c63 6406 * content selection pattern - do fix if pattern found
fdb8fb96 6407 */
6408tSCC zNext_TemplateSelect0[] =
a83746ef 6409 "[ \t]template\\)";
fdb8fb96 6410
6411#define NEXT_TEMPLATE_TEST_CT 1
2548396b 6412static tTestDesc aNext_TemplateTests[] = {
5daf7ede 6413 { TT_EGREP, zNext_TemplateSelect0, (regex_t*)NULL }, };
fdb8fb96 6414
6415/*
6416 * Fix Command Arguments for Next_Template
6417 */
2548396b 6418static const char* apzNext_TemplatePatch[] = {
a83746ef 6419 "format",
6420 "(%1)",
6421 "\\(([^)]*)[ \t]template\\)",
fdb8fb96 6422 (char*)NULL };
6423
6424/* * * * * * * * * * * * * * * * * * * * * * * * * *
6425 *
5daf7ede 6426 * Description of Next_Volitile fix
fdb8fb96 6427 */
6428tSCC zNext_VolitileName[] =
d4c4b01d 6429 "next_volitile";
6430
fdb8fb96 6431/*
6432 * File name selection pattern
6433 */
6434tSCC zNext_VolitileList[] =
e9afa104 6435 "ansi/stdlib.h\0";
fdb8fb96 6436/*
6437 * Machine/OS name selection pattern
6438 */
6439#define apzNext_VolitileMachs (const char**)NULL
6440
6441/*
c1b28c63 6442 * content selection pattern - do fix if pattern found
fdb8fb96 6443 */
6444tSCC zNext_VolitileSelect0[] =
a83746ef 6445 "^extern[ \t]+volatile[ \t]+void[ \t]";
fdb8fb96 6446
6447#define NEXT_VOLITILE_TEST_CT 1
2548396b 6448static tTestDesc aNext_VolitileTests[] = {
5daf7ede 6449 { TT_EGREP, zNext_VolitileSelect0, (regex_t*)NULL }, };
fdb8fb96 6450
6451/*
6452 * Fix Command Arguments for Next_Volitile
6453 */
2548396b 6454static const char* apzNext_VolitilePatch[] = {
a83746ef 6455 "format",
6456 "extern void %1(",
6457 "^extern[ \t]+volatile[ \t]+void[ \t]+(exit|abort)\\(",
fdb8fb96 6458 (char*)NULL };
6459
6460/* * * * * * * * * * * * * * * * * * * * * * * * * *
6461 *
5daf7ede 6462 * Description of Next_Wait_Union fix
fdb8fb96 6463 */
6464tSCC zNext_Wait_UnionName[] =
d4c4b01d 6465 "next_wait_union";
6466
fdb8fb96 6467/*
6468 * File name selection pattern
6469 */
6470tSCC zNext_Wait_UnionList[] =
e9afa104 6471 "sys/wait.h\0";
fdb8fb96 6472/*
6473 * Machine/OS name selection pattern
6474 */
6475#define apzNext_Wait_UnionMachs (const char**)NULL
6476
6477/*
c1b28c63 6478 * content selection pattern - do fix if pattern found
fdb8fb96 6479 */
6480tSCC zNext_Wait_UnionSelect0[] =
6481 "wait\\(union wait";
6482
6483#define NEXT_WAIT_UNION_TEST_CT 1
2548396b 6484static tTestDesc aNext_Wait_UnionTests[] = {
5daf7ede 6485 { TT_EGREP, zNext_Wait_UnionSelect0, (regex_t*)NULL }, };
fdb8fb96 6486
6487/*
6488 * Fix Command Arguments for Next_Wait_Union
6489 */
2548396b 6490static const char* apzNext_Wait_UnionPatch[] = {
038a3e7a 6491 "format",
6492 "wait(void",
fdb8fb96 6493 (char*)NULL };
6494
6495/* * * * * * * * * * * * * * * * * * * * * * * * * *
6496 *
5daf7ede 6497 * Description of Nodeent_Syntax fix
fdb8fb96 6498 */
6499tSCC zNodeent_SyntaxName[] =
d4c4b01d 6500 "nodeent_syntax";
6501
fdb8fb96 6502/*
6503 * File name selection pattern
6504 */
6505tSCC zNodeent_SyntaxList[] =
e9afa104 6506 "netdnet/dnetdb.h\0";
fdb8fb96 6507/*
6508 * Machine/OS name selection pattern
6509 */
6510#define apzNodeent_SyntaxMachs (const char**)NULL
038a3e7a 6511
6512/*
6513 * content selection pattern - do fix if pattern found
6514 */
6515tSCC zNodeent_SyntaxSelect0[] =
6516 "char[ \t]*\\*na_addr[ \t]*$";
6517
6518#define NODEENT_SYNTAX_TEST_CT 1
2548396b 6519static tTestDesc aNodeent_SyntaxTests[] = {
038a3e7a 6520 { TT_EGREP, zNodeent_SyntaxSelect0, (regex_t*)NULL }, };
fdb8fb96 6521
6522/*
6523 * Fix Command Arguments for Nodeent_Syntax
6524 */
2548396b 6525static const char* apzNodeent_SyntaxPatch[] = {
038a3e7a 6526 "format",
6527 "%0;",
fdb8fb96 6528 (char*)NULL };
6529
6dcfb197 6530/* * * * * * * * * * * * * * * * * * * * * * * * * *
6531 *
6532 * Description of Openbsd_Null_Definition fix
6533 */
6534tSCC zOpenbsd_Null_DefinitionName[] =
6535 "openbsd_null_definition";
6536
6537/*
6538 * File name selection pattern
6539 */
6540tSCC zOpenbsd_Null_DefinitionList[] =
6541 "locale.h\0stddef.h\0stdio.h\0string.h\0time.h\0unistd.h\0wchar.h\0sys/param.h\0";
6542/*
6543 * Machine/OS name selection pattern
6544 */
6545tSCC* apzOpenbsd_Null_DefinitionMachs[] = {
6546 "*-*-openbsd*",
6547 (const char*)NULL };
6548
6549/*
6550 * content selection pattern - do fix if pattern found
6551 */
6552tSCC zOpenbsd_Null_DefinitionSelect0[] =
6553 "__GNUG__";
6554
6555#define OPENBSD_NULL_DEFINITION_TEST_CT 1
6556static tTestDesc aOpenbsd_Null_DefinitionTests[] = {
6557 { TT_EGREP, zOpenbsd_Null_DefinitionSelect0, (regex_t*)NULL }, };
6558
6559/*
6560 * Fix Command Arguments for Openbsd_Null_Definition
6561 */
6562static const char* apzOpenbsd_Null_DefinitionPatch[] = {
6563 "format",
6564 "#ifndef NULL\n\
6565#ifdef __cplusplus\n\
6566#ifdef __GNUG__\n\
6567#define NULL\t__null\n\
6568#else\t /* ! __GNUG__ */\n\
6569#define NULL\t0L\n\
6570#endif\t /* __GNUG__ */\n\
6571#else\t /* ! __cplusplus */\n\
6572#define NULL\t((void *)0)\n\
6573#endif\t /* __cplusplus */\n\
6574#endif\t /* !NULL */",
6575 "^#ifndef[ \t]*NULL\n\
6576^#ifdef[ \t]*__GNUG__\n\
6577^#define[ \t]*NULL[ \t]*__null\n\
6578^#else\n\
6579^#define[ \t]*NULL[ \t]*0L\n\
6580^#endif\n\
6581^#endif",
6582 (char*)NULL };
6583
129b92e3 6584/* * * * * * * * * * * * * * * * * * * * * * * * * *
6585 *
6586 * Description of Obstack_Lvalue_Cast fix
6587 */
6588tSCC zObstack_Lvalue_CastName[] =
6589 "obstack_lvalue_cast";
6590
6591/*
6592 * File name selection pattern
6593 */
6594tSCC zObstack_Lvalue_CastList[] =
e9afa104 6595 "obstack.h\0";
129b92e3 6596/*
6597 * Machine/OS name selection pattern
6598 */
6599#define apzObstack_Lvalue_CastMachs (const char**)NULL
6600
6601/*
6602 * content selection pattern - do fix if pattern found
6603 */
6604tSCC zObstack_Lvalue_CastSelect0[] =
6605 "\\*\\(\\(([^()]*)\\*\\)(.*)\\)\\+\\+ = \\(([^()]*)\\)";
6606
6607#define OBSTACK_LVALUE_CAST_TEST_CT 1
6608static tTestDesc aObstack_Lvalue_CastTests[] = {
6609 { TT_EGREP, zObstack_Lvalue_CastSelect0, (regex_t*)NULL }, };
6610
6611/*
6612 * Fix Command Arguments for Obstack_Lvalue_Cast
6613 */
6614static const char* apzObstack_Lvalue_CastPatch[] = {
6615 "format",
6616 "((*((%1*)%2) = (%3)), (%2 += sizeof (%1)))",
6617 (char*)NULL };
6618
2b0752cc 6619/* * * * * * * * * * * * * * * * * * * * * * * * * *
6620 *
6621 * Description of Openbsd_Va_Start fix
6622 */
6623tSCC zOpenbsd_Va_StartName[] =
6624 "openbsd_va_start";
6625
6626/*
6627 * File name selection pattern
6628 */
6629tSCC zOpenbsd_Va_StartList[] =
6630 "stdarg.h\0";
6631/*
6632 * Machine/OS name selection pattern
6633 */
6634tSCC* apzOpenbsd_Va_StartMachs[] = {
6635 "*-*-openbsd*",
6636 (const char*)NULL };
6637
6638/*
6639 * content selection pattern - do fix if pattern found
6640 */
6641tSCC zOpenbsd_Va_StartSelect0[] =
6642 "__builtin_stdarg_start";
6643
6644#define OPENBSD_VA_START_TEST_CT 1
6645static tTestDesc aOpenbsd_Va_StartTests[] = {
6646 { TT_EGREP, zOpenbsd_Va_StartSelect0, (regex_t*)NULL }, };
6647
6648/*
6649 * Fix Command Arguments for Openbsd_Va_Start
6650 */
6651static const char* apzOpenbsd_Va_StartPatch[] = {
6652 "format",
6653 "__builtin_va_start",
6654 (char*)NULL };
6655
fdb8fb96 6656/* * * * * * * * * * * * * * * * * * * * * * * * * *
6657 *
5daf7ede 6658 * Description of Osf_Namespace_A fix
fdb8fb96 6659 */
6660tSCC zOsf_Namespace_AName[] =
d4c4b01d 6661 "osf_namespace_a";
6662
fdb8fb96 6663/*
6664 * File name selection pattern
6665 */
6666tSCC zOsf_Namespace_AList[] =
e9afa104 6667 "reg_types.h\0sys/lc_core.h\0";
fdb8fb96 6668/*
6669 * Machine/OS name selection pattern
6670 */
6671#define apzOsf_Namespace_AMachs (const char**)NULL
6672
6673/*
c1b28c63 6674 * perform the 'test' shell command - do fix on success
fdb8fb96 6675 */
6676tSCC zOsf_Namespace_ATest0[] =
38ebab8a 6677 " -r reg_types.h";
6678tSCC zOsf_Namespace_ATest1[] =
6679 " -r sys/lc_core.h";
6680tSCC zOsf_Namespace_ATest2[] =
6681 " -n \"`grep '} regex_t;' reg_types.h`\"";
6682tSCC zOsf_Namespace_ATest3[] =
6683 " -z \"`grep __regex_t regex.h`\"";
6684
6685#define OSF_NAMESPACE_A_TEST_CT 4
2548396b 6686static tTestDesc aOsf_Namespace_ATests[] = {
5daf7ede 6687 { TT_TEST, zOsf_Namespace_ATest0, 0 /* unused */ },
6688 { TT_TEST, zOsf_Namespace_ATest1, 0 /* unused */ },
6689 { TT_TEST, zOsf_Namespace_ATest2, 0 /* unused */ },
6690 { TT_TEST, zOsf_Namespace_ATest3, 0 /* unused */ }, };
fdb8fb96 6691
6692/*
6693 * Fix Command Arguments for Osf_Namespace_A
6694 */
2548396b 6695static const char* apzOsf_Namespace_APatch[] = {
038a3e7a 6696 "format",
6697 "__%0",
f0a465b4 6698 "reg(ex|off|match)_t",
fdb8fb96 6699 (char*)NULL };
6700
6701/* * * * * * * * * * * * * * * * * * * * * * * * * *
6702 *
038a3e7a 6703 * Description of Osf_Namespace_C fix
fdb8fb96 6704 */
038a3e7a 6705tSCC zOsf_Namespace_CName[] =
6706 "osf_namespace_c";
d4c4b01d 6707
fdb8fb96 6708/*
6709 * File name selection pattern
6710 */
038a3e7a 6711tSCC zOsf_Namespace_CList[] =
e9afa104 6712 "regex.h\0";
fdb8fb96 6713/*
6714 * Machine/OS name selection pattern
6715 */
038a3e7a 6716#define apzOsf_Namespace_CMachs (const char**)NULL
6717
6718/*
6719 * content selection pattern - do fix if pattern found
6720 */
6721tSCC zOsf_Namespace_CSelect0[] =
6722 "#include <reg_types.h>.*";
fdb8fb96 6723
6724/*
c1b28c63 6725 * perform the 'test' shell command - do fix on success
fdb8fb96 6726 */
038a3e7a 6727tSCC zOsf_Namespace_CTest0[] =
38ebab8a 6728 " -r reg_types.h";
038a3e7a 6729tSCC zOsf_Namespace_CTest1[] =
38ebab8a 6730 " -r sys/lc_core.h";
038a3e7a 6731tSCC zOsf_Namespace_CTest2[] =
38ebab8a 6732 " -n \"`grep '} regex_t;' reg_types.h`\"";
038a3e7a 6733tSCC zOsf_Namespace_CTest3[] =
38ebab8a 6734 " -z \"`grep __regex_t regex.h`\"";
6735
038a3e7a 6736#define OSF_NAMESPACE_C_TEST_CT 5
2548396b 6737static tTestDesc aOsf_Namespace_CTests[] = {
038a3e7a 6738 { TT_TEST, zOsf_Namespace_CTest0, 0 /* unused */ },
6739 { TT_TEST, zOsf_Namespace_CTest1, 0 /* unused */ },
6740 { TT_TEST, zOsf_Namespace_CTest2, 0 /* unused */ },
6741 { TT_TEST, zOsf_Namespace_CTest3, 0 /* unused */ },
6742 { TT_EGREP, zOsf_Namespace_CSelect0, (regex_t*)NULL }, };
fdb8fb96 6743
6744/*
038a3e7a 6745 * Fix Command Arguments for Osf_Namespace_C
fdb8fb96 6746 */
2548396b 6747static const char* apzOsf_Namespace_CPatch[] = {
038a3e7a 6748 "format",
6749 "%0\n\
6750typedef __regex_t\tregex_t;\n\
6751typedef __regoff_t\tregoff_t;\n\
6752typedef __regmatch_t\tregmatch_t;",
fdb8fb96 6753 (char*)NULL };
6754
a11c2c4d 6755/* * * * * * * * * * * * * * * * * * * * * * * * * *
6756 *
6757 * Description of Pthread_Incomplete_Struct_Argument fix
6758 */
6759tSCC zPthread_Incomplete_Struct_ArgumentName[] =
6760 "pthread_incomplete_struct_argument";
6761
6762/*
6763 * File name selection pattern
6764 */
6765tSCC zPthread_Incomplete_Struct_ArgumentList[] =
e9afa104 6766 "pthread.h\0";
a11c2c4d 6767/*
6768 * Machine/OS name selection pattern
6769 */
6770#define apzPthread_Incomplete_Struct_ArgumentMachs (const char**)NULL
6771
6772/*
6773 * content selection pattern - do fix if pattern found
6774 */
6775tSCC zPthread_Incomplete_Struct_ArgumentSelect0[] =
6776 "struct __jmp_buf_tag";
6777
6778#define PTHREAD_INCOMPLETE_STRUCT_ARGUMENT_TEST_CT 1
6779static tTestDesc aPthread_Incomplete_Struct_ArgumentTests[] = {
6780 { TT_EGREP, zPthread_Incomplete_Struct_ArgumentSelect0, (regex_t*)NULL }, };
6781
6782/*
6783 * Fix Command Arguments for Pthread_Incomplete_Struct_Argument
6784 */
6785static const char* apzPthread_Incomplete_Struct_ArgumentPatch[] = {
6786 "format",
6787 "%1 *%2%3",
6788 "^(extern int __sigsetjmp \\(struct __jmp_buf_tag) (__env)\\[1\\](.*)$",
6789 (char*)NULL };
6790
fdb8fb96 6791/* * * * * * * * * * * * * * * * * * * * * * * * * *
6792 *
5daf7ede 6793 * Description of Read_Ret_Type fix
d0f5620b 6794 */
6795tSCC zRead_Ret_TypeName[] =
d4c4b01d 6796 "read_ret_type";
6797
d0f5620b 6798/*
6799 * File name selection pattern
6800 */
6801tSCC zRead_Ret_TypeList[] =
e9afa104 6802 "stdio.h\0";
d0f5620b 6803/*
6804 * Machine/OS name selection pattern
6805 */
6806#define apzRead_Ret_TypeMachs (const char**)NULL
6807
6808/*
6809 * content selection pattern - do fix if pattern found
6810 */
6811tSCC zRead_Ret_TypeSelect0[] =
6812 "extern int\t.*, fread\\(\\), fwrite\\(\\)";
6813
6814#define READ_RET_TYPE_TEST_CT 1
2548396b 6815static tTestDesc aRead_Ret_TypeTests[] = {
5daf7ede 6816 { TT_EGREP, zRead_Ret_TypeSelect0, (regex_t*)NULL }, };
d0f5620b 6817
6818/*
6819 * Fix Command Arguments for Read_Ret_Type
6820 */
2548396b 6821static const char* apzRead_Ret_TypePatch[] = {
038a3e7a 6822 "format",
6823 "extern unsigned int fread(), fwrite();\n\
6824%1%2",
6825 "(extern int\t.*), fread\\(\\), fwrite\\(\\)(.*)",
d0f5620b 6826 (char*)NULL };
6827
e68aa18b 6828/* * * * * * * * * * * * * * * * * * * * * * * * * *
6829 *
6830 * Description of Rpc_Xdr_Lvalue_Cast_A fix
6831 */
6832tSCC zRpc_Xdr_Lvalue_Cast_AName[] =
6833 "rpc_xdr_lvalue_cast_a";
6834
6835/*
6836 * File name selection pattern
6837 */
6838tSCC zRpc_Xdr_Lvalue_Cast_AList[] =
e9afa104 6839 "rpc/xdr.h\0";
e68aa18b 6840/*
6841 * Machine/OS name selection pattern
6842 */
6843#define apzRpc_Xdr_Lvalue_Cast_AMachs (const char**)NULL
6844
6845/*
6846 * content selection pattern - do fix if pattern found
6847 */
6848tSCC zRpc_Xdr_Lvalue_Cast_ASelect0[] =
6849 "#define[ \t]*IXDR_GET_LONG.*\\\\\n\
6850.*__extension__.*";
6851
6852#define RPC_XDR_LVALUE_CAST_A_TEST_CT 1
6853static tTestDesc aRpc_Xdr_Lvalue_Cast_ATests[] = {
6854 { TT_EGREP, zRpc_Xdr_Lvalue_Cast_ASelect0, (regex_t*)NULL }, };
6855
6856/*
6857 * Fix Command Arguments for Rpc_Xdr_Lvalue_Cast_A
6858 */
6859static const char* apzRpc_Xdr_Lvalue_Cast_APatch[] = {
6860 "format",
6861 "#define IXDR_GET_LONG(buf) ((long)IXDR_GET_U_INT32(buf))",
6862 (char*)NULL };
6863
6864/* * * * * * * * * * * * * * * * * * * * * * * * * *
6865 *
6866 * Description of Rpc_Xdr_Lvalue_Cast_B fix
6867 */
6868tSCC zRpc_Xdr_Lvalue_Cast_BName[] =
6869 "rpc_xdr_lvalue_cast_b";
6870
6871/*
6872 * File name selection pattern
6873 */
6874tSCC zRpc_Xdr_Lvalue_Cast_BList[] =
e9afa104 6875 "rpc/xdr.h\0";
e68aa18b 6876/*
6877 * Machine/OS name selection pattern
6878 */
6879#define apzRpc_Xdr_Lvalue_Cast_BMachs (const char**)NULL
6880
6881/*
6882 * content selection pattern - do fix if pattern found
6883 */
6884tSCC zRpc_Xdr_Lvalue_Cast_BSelect0[] =
6885 "#define[ \t]*IXDR_PUT_LONG.*\\\\\n\
6886.*__extension__.*";
6887
6888#define RPC_XDR_LVALUE_CAST_B_TEST_CT 1
6889static tTestDesc aRpc_Xdr_Lvalue_Cast_BTests[] = {
6890 { TT_EGREP, zRpc_Xdr_Lvalue_Cast_BSelect0, (regex_t*)NULL }, };
6891
6892/*
6893 * Fix Command Arguments for Rpc_Xdr_Lvalue_Cast_B
6894 */
6895static const char* apzRpc_Xdr_Lvalue_Cast_BPatch[] = {
6896 "format",
6897 "#define IXDR_PUT_LONG(buf, v) ((long)IXDR_PUT_INT32(buf, (long)(v)))",
6898 (char*)NULL };
6899
d0f5620b 6900/* * * * * * * * * * * * * * * * * * * * * * * * * *
6901 *
5daf7ede 6902 * Description of Rs6000_Double fix
fdb8fb96 6903 */
6904tSCC zRs6000_DoubleName[] =
d4c4b01d 6905 "rs6000_double";
6906
fdb8fb96 6907/*
6908 * File name selection pattern
6909 */
6910tSCC zRs6000_DoubleList[] =
e9afa104 6911 "math.h\0";
fdb8fb96 6912/*
6913 * Machine/OS name selection pattern
6914 */
6915#define apzRs6000_DoubleMachs (const char**)NULL
6916
6917/*
c1b28c63 6918 * content selection pattern - do fix if pattern found
fdb8fb96 6919 */
6920tSCC zRs6000_DoubleSelect0[] =
6921 "[^a-zA-Z_]class\\(";
6922
6923#define RS6000_DOUBLE_TEST_CT 1
2548396b 6924static tTestDesc aRs6000_DoubleTests[] = {
5daf7ede 6925 { TT_EGREP, zRs6000_DoubleSelect0, (regex_t*)NULL }, };
fdb8fb96 6926
6927/*
6928 * Fix Command Arguments for Rs6000_Double
6929 */
2548396b 6930static const char* apzRs6000_DoublePatch[] = {
038a3e7a 6931 "format",
6932 "#ifndef __cplusplus\n\
6933%0\n\
6934#endif",
6935 "^.*[^a-zA-Z_]class\\(.*",
fdb8fb96 6936 (char*)NULL };
6937
6938/* * * * * * * * * * * * * * * * * * * * * * * * * *
6939 *
5daf7ede 6940 * Description of Rs6000_Fchmod fix
fdb8fb96 6941 */
6942tSCC zRs6000_FchmodName[] =
d4c4b01d 6943 "rs6000_fchmod";
6944
fdb8fb96 6945/*
6946 * File name selection pattern
6947 */
6948tSCC zRs6000_FchmodList[] =
e9afa104 6949 "sys/stat.h\0";
fdb8fb96 6950/*
6951 * Machine/OS name selection pattern
6952 */
6953#define apzRs6000_FchmodMachs (const char**)NULL
6954
6955/*
c1b28c63 6956 * content selection pattern - do fix if pattern found
fdb8fb96 6957 */
6958tSCC zRs6000_FchmodSelect0[] =
038a3e7a 6959 "fchmod\\(char \\*";
fdb8fb96 6960
6961#define RS6000_FCHMOD_TEST_CT 1
2548396b 6962static tTestDesc aRs6000_FchmodTests[] = {
5daf7ede 6963 { TT_EGREP, zRs6000_FchmodSelect0, (regex_t*)NULL }, };
fdb8fb96 6964
6965/*
6966 * Fix Command Arguments for Rs6000_Fchmod
6967 */
2548396b 6968static const char* apzRs6000_FchmodPatch[] = {
038a3e7a 6969 "format",
6970 "fchmod(int",
fdb8fb96 6971 (char*)NULL };
6972
6973/* * * * * * * * * * * * * * * * * * * * * * * * * *
6974 *
5daf7ede 6975 * Description of Rs6000_Param fix
fdb8fb96 6976 */
6977tSCC zRs6000_ParamName[] =
d4c4b01d 6978 "rs6000_param";
6979
fdb8fb96 6980/*
6981 * File name selection pattern
6982 */
6983tSCC zRs6000_ParamList[] =
e9afa104 6984 "stdio.h\0unistd.h\0";
fdb8fb96 6985/*
6986 * Machine/OS name selection pattern
6987 */
6988#define apzRs6000_ParamMachs (const char**)NULL
bb304030 6989
6990/*
6991 * content selection pattern - do fix if pattern found
6992 */
6993tSCC zRs6000_ParamSelect0[] =
038a3e7a 6994 "rename\\(const char \\*old, const char \\*new\\)";
bb304030 6995
6996#define RS6000_PARAM_TEST_CT 1
2548396b 6997static tTestDesc aRs6000_ParamTests[] = {
bb304030 6998 { TT_EGREP, zRs6000_ParamSelect0, (regex_t*)NULL }, };
fdb8fb96 6999
7000/*
7001 * Fix Command Arguments for Rs6000_Param
7002 */
2548396b 7003static const char* apzRs6000_ParamPatch[] = {
038a3e7a 7004 "format",
7005 "rename(const char *_old, const char *_new)",
fdb8fb96 7006 (char*)NULL };
7007
a6905708 7008/* * * * * * * * * * * * * * * * * * * * * * * * * *
7009 *
7010 * Description of Solaris___Restrict fix
7011 */
7012tSCC zSolaris___RestrictName[] =
7013 "solaris___restrict";
7014
7015/*
7016 * File name selection pattern
7017 */
7018tSCC zSolaris___RestrictList[] =
7019 "sys/feature_tests.h\0";
7020/*
7021 * Machine/OS name selection pattern
7022 */
7023tSCC* apzSolaris___RestrictMachs[] = {
7024 "*-*-solaris2*",
7025 (const char*)NULL };
7026
7027/*
7028 * content selection pattern - do fix if pattern found
7029 */
7030tSCC zSolaris___RestrictSelect0[] =
7031 "#define[ \t]*_RESTRICT_KYWD[ \t]*restrict";
7032
7033#define SOLARIS___RESTRICT_TEST_CT 1
7034static tTestDesc aSolaris___RestrictTests[] = {
7035 { TT_EGREP, zSolaris___RestrictSelect0, (regex_t*)NULL }, };
7036
7037/*
7038 * Fix Command Arguments for Solaris___Restrict
7039 */
7040static const char* apzSolaris___RestrictPatch[] = {
7041 "format",
7042 "#ifdef __cplusplus\n\
7043#define\t_RESTRICT_KYWD\t__restrict\n\
7044#else\n\
7045%0\n\
7046#endif",
7047 (char*)NULL };
7048
aee500d5 7049/* * * * * * * * * * * * * * * * * * * * * * * * * *
7050 *
7051 * Description of Solaris_Complex fix
7052 */
7053tSCC zSolaris_ComplexName[] =
7054 "solaris_complex";
7055
7056/*
7057 * File name selection pattern
7058 */
7059tSCC zSolaris_ComplexList[] =
7060 "complex.h\0";
7061/*
7062 * Machine/OS name selection pattern
7063 */
7064tSCC* apzSolaris_ComplexMachs[] = {
7065 "*-*-solaris2.*",
7066 (const char*)NULL };
7067
7068/*
7069 * content selection pattern - do fix if pattern found
7070 */
7071tSCC zSolaris_ComplexSelect0[] =
7072 "#define[ \t]_Complex_I[ \t]_Complex_I";
7073
7074#define SOLARIS_COMPLEX_TEST_CT 1
7075static tTestDesc aSolaris_ComplexTests[] = {
7076 { TT_EGREP, zSolaris_ComplexSelect0, (regex_t*)NULL }, };
7077
7078/*
7079 * Fix Command Arguments for Solaris_Complex
7080 */
7081static const char* apzSolaris_ComplexPatch[] = { sed_cmd_z,
b795c8d1 7082 "-e", "s/#define[ \t]_Complex_I[ \t]_Complex_I/#define\t_Complex_I\t(__extension__ 1.0iF)/",
aee500d5 7083 "-e", "/#define[ \t]_Imaginary_I[ \t]_Imaginary_I/d",
7084 "-e", "/#define[ \t]imaginary[ \t]_Imaginary/d",
b795c8d1 7085 "-e", "s/#define[ \t]I[ \t]\\{1,\\}_Imaginary_I/#define\tI\t\t_Complex_I/",
aee500d5 7086 (char*)NULL };
7087
a6905708 7088/* * * * * * * * * * * * * * * * * * * * * * * * * *
7089 *
7090 * Description of Solaris_Complex_Cxx fix
7091 */
7092tSCC zSolaris_Complex_CxxName[] =
7093 "solaris_complex_cxx";
7094
7095/*
7096 * File name selection pattern
7097 */
7098tSCC zSolaris_Complex_CxxList[] =
7099 "complex.h\0";
7100/*
7101 * Machine/OS name selection pattern
7102 */
7103tSCC* apzSolaris_Complex_CxxMachs[] = {
7104 "*-*-solaris2.*",
7105 (const char*)NULL };
7106#define SOLARIS_COMPLEX_CXX_TEST_CT 0
7107#define aSolaris_Complex_CxxTests (tTestDesc*)NULL
7108
7109/*
d1ed71e5 7110 * Fix Command Arguments for Solaris_Complex_Cxx
7111 */
7112static const char* apzSolaris_Complex_CxxPatch[] = { sed_cmd_z,
7113 "-e", "/#if[ \t]*!defined(__cplusplus)/c\\\n\
7114#ifdef\t__cplusplus\\\n\
7115extern \"C\" {\\\n\
7116#endif",
7117 "-e", "/#endif[ \t]*\\/\\* !defined(__cplusplus) \\*\\//c\\\n\
7118#ifdef\t__cplusplus\\\n\
7119}\\\n\
7120#endif",
7121 (char*)NULL };
7122
7123/* * * * * * * * * * * * * * * * * * * * * * * * * *
7124 *
7125 * Description of Solaris_Cxx_Linkage fix
7126 */
7127tSCC zSolaris_Cxx_LinkageName[] =
7128 "solaris_cxx_linkage";
7129
7130/*
7131 * File name selection pattern
7132 */
7133tSCC zSolaris_Cxx_LinkageList[] =
7134 "iso/stdlib_iso.h\0";
7135/*
7136 * Machine/OS name selection pattern
7137 */
7138tSCC* apzSolaris_Cxx_LinkageMachs[] = {
7139 "*-*-solaris2*",
7140 (const char*)NULL };
7141
7142/*
7143 * content selection pattern - do fix if pattern found
7144 */
7145tSCC zSolaris_Cxx_LinkageSelect0[] =
7146 "(#if __cplusplus >= 199711L)\n\
7147(extern \"C\\+\\+\" \\{\n\
7148)(.*(bsearch|qsort).*)";
7149
7150#define SOLARIS_CXX_LINKAGE_TEST_CT 1
7151static tTestDesc aSolaris_Cxx_LinkageTests[] = {
7152 { TT_EGREP, zSolaris_Cxx_LinkageSelect0, (regex_t*)NULL }, };
7153
7154/*
7155 * Fix Command Arguments for Solaris_Cxx_Linkage
7156 */
7157static const char* apzSolaris_Cxx_LinkagePatch[] = {
7158 "format",
7159 "%1 && !__GNUG__\n\
7160%2%3",
7161 (char*)NULL };
7162
7163/* * * * * * * * * * * * * * * * * * * * * * * * * *
7164 *
7165 * Description of Solaris_Getc_Strict_Stdc fix
7166 */
7167tSCC zSolaris_Getc_Strict_StdcName[] =
7168 "solaris_getc_strict_stdc";
7169
7170/*
7171 * File name selection pattern
7172 */
7173tSCC zSolaris_Getc_Strict_StdcList[] =
7174 "iso/stdio_iso.h\0";
7175/*
7176 * Machine/OS name selection pattern
7177 */
7178tSCC* apzSolaris_Getc_Strict_StdcMachs[] = {
7179 "*-*-solaris2*",
7180 (const char*)NULL };
7181
7182/*
7183 * content selection pattern - do fix if pattern found
7184 */
7185tSCC zSolaris_Getc_Strict_StdcSelect0[] =
7186 "(.*&& )!defined\\(_STRICT_STDC\\)(.*)";
7187
7188#define SOLARIS_GETC_STRICT_STDC_TEST_CT 1
7189static tTestDesc aSolaris_Getc_Strict_StdcTests[] = {
7190 { TT_EGREP, zSolaris_Getc_Strict_StdcSelect0, (regex_t*)NULL }, };
7191
7192/*
7193 * Fix Command Arguments for Solaris_Getc_Strict_Stdc
7194 */
7195static const char* apzSolaris_Getc_Strict_StdcPatch[] = {
7196 "format",
7197 "%1(!defined(_STRICT_STDC) || (__cplusplus >= 199711L))%2",
7198 (char*)NULL };
7199
3c017b47 7200/* * * * * * * * * * * * * * * * * * * * * * * * * *
7201 *
7202 * Description of Solaris_Gets_C11 fix
7203 */
7204tSCC zSolaris_Gets_C11Name[] =
7205 "solaris_gets_c11";
7206
7207/*
7208 * File name selection pattern
7209 */
7210tSCC zSolaris_Gets_C11List[] =
7211 "iso/stdio_iso.h\0";
7212/*
7213 * Machine/OS name selection pattern
7214 */
7215tSCC* apzSolaris_Gets_C11Machs[] = {
7216 "*-*-solaris2*",
7217 (const char*)NULL };
7218
7219/*
7220 * content selection pattern - do fix if pattern found
7221 */
7222tSCC zSolaris_Gets_C11Select0[] =
7223 "(extern char[ \t]*\\*gets\\(char \\*\\));";
7224
7225#define SOLARIS_GETS_C11_TEST_CT 1
7226static tTestDesc aSolaris_Gets_C11Tests[] = {
7227 { TT_EGREP, zSolaris_Gets_C11Select0, (regex_t*)NULL }, };
7228
7229/*
7230 * Fix Command Arguments for Solaris_Gets_C11
7231 */
7232static const char* apzSolaris_Gets_C11Patch[] = {
7233 "format",
7234 "#if __STDC_VERSION__ < 201112L && __cplusplus < 201402L\n\
7235%1 __attribute__((__deprecated__));\n\
7236#endif",
7237 (char*)NULL };
7238
7239/* * * * * * * * * * * * * * * * * * * * * * * * * *
7240 *
7241 * Description of Solaris_Gets_Cxx14 fix
7242 */
7243tSCC zSolaris_Gets_Cxx14Name[] =
7244 "solaris_gets_cxx14";
7245
7246/*
7247 * File name selection pattern
7248 */
7249tSCC zSolaris_Gets_Cxx14List[] =
7250 "iso/stdio_iso.h\0";
7251/*
7252 * Machine/OS name selection pattern
7253 */
7254tSCC* apzSolaris_Gets_Cxx14Machs[] = {
7255 "*-*-solaris2*",
7256 (const char*)NULL };
7257
7258/*
7259 * content selection pattern - do fix if pattern found
7260 */
7261tSCC zSolaris_Gets_Cxx14Select0[] =
7262 "(#if __STDC_VERSION__ < 201112L)\n\
7263(extern char\t\\*gets\\(char \\*\\) __ATTR_DEPRECATED;)";
7264
7265#define SOLARIS_GETS_CXX14_TEST_CT 1
7266static tTestDesc aSolaris_Gets_Cxx14Tests[] = {
7267 { TT_EGREP, zSolaris_Gets_Cxx14Select0, (regex_t*)NULL }, };
7268
7269/*
7270 * Fix Command Arguments for Solaris_Gets_Cxx14
7271 */
7272static const char* apzSolaris_Gets_Cxx14Patch[] = {
7273 "format",
7274 "%1 && __cplusplus < 201402L\n\
7275%2",
7276 (char*)NULL };
7277
d1ed71e5 7278/* * * * * * * * * * * * * * * * * * * * * * * * * *
7279 *
7280 * Description of Solaris_Int_Const fix
7281 */
7282tSCC zSolaris_Int_ConstName[] =
7283 "solaris_int_const";
7284
7285/*
7286 * File name selection pattern
7287 */
7288tSCC zSolaris_Int_ConstList[] =
7289 "sys/int_const.h\0";
7290/*
7291 * Machine/OS name selection pattern
7292 */
7293tSCC* apzSolaris_Int_ConstMachs[] = {
7294 "*-*-solaris2*",
7295 (const char*)NULL };
7296
7297/*
7298 * content selection pattern - do fix if pattern found
7299 */
7300tSCC zSolaris_Int_ConstSelect0[] =
7301 "^#define[ \t]+UINT8_C\\(c\\)[ \t]+__CONCAT__.*\n\
7302(/*.**/)\n\
7303#define[ \t]+UINT16_C\\(c\\)[ \t]+__CONCAT__.*";
7304
7305#define SOLARIS_INT_CONST_TEST_CT 1
7306static tTestDesc aSolaris_Int_ConstTests[] = {
7307 { TT_EGREP, zSolaris_Int_ConstSelect0, (regex_t*)NULL }, };
7308
7309/*
7310 * Fix Command Arguments for Solaris_Int_Const
7311 */
7312static const char* apzSolaris_Int_ConstPatch[] = {
7313 "format",
7314 "#define\tUINT8_C(c)\t(c)\n\
7315%1\n\
7316#define\tUINT16_C(c)\t(c)",
7317 (char*)NULL };
7318
7319/* * * * * * * * * * * * * * * * * * * * * * * * * *
7320 *
7321 * Description of Solaris_Int_Limits_1 fix
7322 */
7323tSCC zSolaris_Int_Limits_1Name[] =
7324 "solaris_int_limits_1";
7325
7326/*
7327 * File name selection pattern
7328 */
7329tSCC zSolaris_Int_Limits_1List[] =
7330 "sys/int_limits.h\0";
7331/*
7332 * Machine/OS name selection pattern
7333 */
7334tSCC* apzSolaris_Int_Limits_1Machs[] = {
7335 "*-*-solaris2*",
7336 (const char*)NULL };
7337
7338/*
7339 * content selection pattern - do fix if pattern found
7340 */
7341tSCC zSolaris_Int_Limits_1Select0[] =
7342 "^#define[ \t]+UINT8_MAX[ \t]+\\(255U\\)\n\
7343#define[ \t]+UINT16_MAX[ \t]+\\(65535U\\)";
7344
7345#define SOLARIS_INT_LIMITS_1_TEST_CT 1
7346static tTestDesc aSolaris_Int_Limits_1Tests[] = {
7347 { TT_EGREP, zSolaris_Int_Limits_1Select0, (regex_t*)NULL }, };
7348
7349/*
7350 * Fix Command Arguments for Solaris_Int_Limits_1
7351 */
7352static const char* apzSolaris_Int_Limits_1Patch[] = {
7353 "format",
7354 "#define\tUINT8_MAX\t(255)\n\
7355#define\tUINT16_MAX\t(65535)",
7356 (char*)NULL };
7357
7358/* * * * * * * * * * * * * * * * * * * * * * * * * *
7359 *
7360 * Description of Solaris_Int_Limits_2 fix
7361 */
7362tSCC zSolaris_Int_Limits_2Name[] =
7363 "solaris_int_limits_2";
7364
7365/*
7366 * File name selection pattern
7367 */
7368tSCC zSolaris_Int_Limits_2List[] =
7369 "sys/int_limits.h\0";
7370/*
7371 * Machine/OS name selection pattern
7372 */
7373tSCC* apzSolaris_Int_Limits_2Machs[] = {
7374 "*-*-solaris2*",
7375 (const char*)NULL };
7376
7377/*
7378 * content selection pattern - do fix if pattern found
7379 */
7380tSCC zSolaris_Int_Limits_2Select0[] =
7381 "^#define[ \t]+(INT|UINT)_FAST16_(MAX|MIN)[ \t](INT|UINT)16.*";
7382
7383#define SOLARIS_INT_LIMITS_2_TEST_CT 1
7384static tTestDesc aSolaris_Int_Limits_2Tests[] = {
7385 { TT_EGREP, zSolaris_Int_Limits_2Select0, (regex_t*)NULL }, };
7386
7387/*
7388 * Fix Command Arguments for Solaris_Int_Limits_2
a6905708 7389 */
d1ed71e5 7390static const char* apzSolaris_Int_Limits_2Patch[] = {
7391 "format",
7392 "#define\t%1_FAST16_%2 %132_%2",
a6905708 7393 (char*)NULL };
7394
5f7d4d97 7395/* * * * * * * * * * * * * * * * * * * * * * * * * *
7396 *
d1ed71e5 7397 * Description of Solaris_Int_Limits_3 fix
5f7d4d97 7398 */
d1ed71e5 7399tSCC zSolaris_Int_Limits_3Name[] =
7400 "solaris_int_limits_3";
5f7d4d97 7401
7402/*
7403 * File name selection pattern
7404 */
d1ed71e5 7405tSCC zSolaris_Int_Limits_3List[] =
7406 "sys/int_limits.h\0";
5f7d4d97 7407/*
7408 * Machine/OS name selection pattern
7409 */
d1ed71e5 7410tSCC* apzSolaris_Int_Limits_3Machs[] = {
5f7d4d97 7411 "*-*-solaris2*",
7412 (const char*)NULL };
7413
7414/*
7415 * content selection pattern - do fix if pattern found
7416 */
d1ed71e5 7417tSCC zSolaris_Int_Limits_3Select0[] =
7418 "^#define[ \t]+SIZE_MAX[ \t]+4294967295UL";
5f7d4d97 7419
d1ed71e5 7420#define SOLARIS_INT_LIMITS_3_TEST_CT 1
7421static tTestDesc aSolaris_Int_Limits_3Tests[] = {
7422 { TT_EGREP, zSolaris_Int_Limits_3Select0, (regex_t*)NULL }, };
5f7d4d97 7423
7424/*
d1ed71e5 7425 * Fix Command Arguments for Solaris_Int_Limits_3
5f7d4d97 7426 */
d1ed71e5 7427static const char* apzSolaris_Int_Limits_3Patch[] = {
5f7d4d97 7428 "format",
d1ed71e5 7429 "#define\tSIZE_MAX\t4294967295U",
5f7d4d97 7430 (char*)NULL };
7431
e849ea70 7432/* * * * * * * * * * * * * * * * * * * * * * * * * *
7433 *
7434 * Description of Solaris_Math_1 fix
7435 */
7436tSCC zSolaris_Math_1Name[] =
7437 "solaris_math_1";
7438
7439/*
7440 * File name selection pattern
7441 */
7442tSCC zSolaris_Math_1List[] =
e9afa104 7443 "iso/math_c99.h\0";
e849ea70 7444/*
7445 * Machine/OS name selection pattern
7446 */
7447#define apzSolaris_Math_1Machs (const char**)NULL
7448
7449/*
7450 * content selection pattern - do fix if pattern found
7451 */
7452tSCC zSolaris_Math_1Select0[] =
7453 "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
7454
7455/*
7456 * content bypass pattern - skip fix if pattern found
7457 */
7458tSCC zSolaris_Math_1Bypass0[] =
7459 "__GNUC__";
7460
7461#define SOLARIS_MATH_1_TEST_CT 2
7462static tTestDesc aSolaris_Math_1Tests[] = {
7463 { TT_NEGREP, zSolaris_Math_1Bypass0, (regex_t*)NULL },
7464 { TT_EGREP, zSolaris_Math_1Select0, (regex_t*)NULL }, };
7465
7466/*
7467 * Fix Command Arguments for Solaris_Math_1
7468 */
7469static const char* apzSolaris_Math_1Patch[] = {
7470 "format",
7471 "#define\tHUGE_VA%1\t(__builtin_huge_va%2())",
7472 "^#define[ \t]+HUGE_VA([LF]+)[ \t]+__builtin_huge_va([lf]+)",
7473 (char*)NULL };
7474
d1ed71e5 7475/* * * * * * * * * * * * * * * * * * * * * * * * * *
7476 *
7477 * Description of Solaris_Math_10 fix
7478 */
7479tSCC zSolaris_Math_10Name[] =
7480 "solaris_math_10";
7481
7482/*
7483 * File name selection pattern
7484 */
7485tSCC zSolaris_Math_10List[] =
7486 "iso/math_c99.h\0";
7487/*
7488 * Machine/OS name selection pattern
7489 */
7490#define apzSolaris_Math_10Machs (const char**)NULL
7491
7492/*
7493 * content selection pattern - do fix if pattern found
7494 */
7495tSCC zSolaris_Math_10Select0[] =
7496 "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
7497
7498#define SOLARIS_MATH_10_TEST_CT 1
7499static tTestDesc aSolaris_Math_10Tests[] = {
7500 { TT_EGREP, zSolaris_Math_10Select0, (regex_t*)NULL }, };
7501
7502/*
7503 * Fix Command Arguments for Solaris_Math_10
7504 */
7505static const char* apzSolaris_Math_10Patch[] = {
7506 "format",
7507 "#define\tisinf(x) __builtin_isinf(x)",
7508 "^#define[ \t]+isinf\\(x\\)[ \t]+__extension__\\([ \t]*\\\\\n\
7509[ \t]*\\{[ \t]*__typeof\\(x\\)[ \t]*__x_i[ \t]*=[ \t]*\\(x\\);[ \t]*\\\\\n\
7510[ \t]*__x_i[ \t]*==[ \t]*\\(__typeof\\(__x_i\\)\\)[ \t]*INFINITY[ \t]*\\|\\|[ \t]*\\\\\n\
7511[ \t]*__x_i[ \t]*==[ \t]*\\(__typeof\\(__x_i\\)\\)[ \t]*\\(-INFINITY\\);[ \t]*\\}\\)",
7512 (char*)NULL };
7513
e849ea70 7514/* * * * * * * * * * * * * * * * * * * * * * * * * *
7515 *
7516 * Description of Solaris_Math_2 fix
7517 */
7518tSCC zSolaris_Math_2Name[] =
7519 "solaris_math_2";
7520
7521/*
7522 * File name selection pattern
7523 */
7524tSCC zSolaris_Math_2List[] =
e9afa104 7525 "iso/math_c99.h\0";
e849ea70 7526/*
7527 * Machine/OS name selection pattern
7528 */
7529#define apzSolaris_Math_2Machs (const char**)NULL
7530
7531/*
7532 * content selection pattern - do fix if pattern found
7533 */
7534tSCC zSolaris_Math_2Select0[] =
7535 "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
7536
7537/*
7538 * content bypass pattern - skip fix if pattern found
7539 */
7540tSCC zSolaris_Math_2Bypass0[] =
7541 "__GNUC__";
7542
7543#define SOLARIS_MATH_2_TEST_CT 2
7544static tTestDesc aSolaris_Math_2Tests[] = {
7545 { TT_NEGREP, zSolaris_Math_2Bypass0, (regex_t*)NULL },
7546 { TT_EGREP, zSolaris_Math_2Select0, (regex_t*)NULL }, };
7547
7548/*
7549 * Fix Command Arguments for Solaris_Math_2
7550 */
7551static const char* apzSolaris_Math_2Patch[] = {
7552 "format",
7553 "#define\tINFINITY\t(__builtin_inff())",
7554 "^#define[ \t]+INFINITY[ \t]+__builtin_infinity",
7555 (char*)NULL };
7556
7557/* * * * * * * * * * * * * * * * * * * * * * * * * *
7558 *
7559 * Description of Solaris_Math_3 fix
7560 */
7561tSCC zSolaris_Math_3Name[] =
7562 "solaris_math_3";
7563
7564/*
7565 * File name selection pattern
7566 */
7567tSCC zSolaris_Math_3List[] =
e9afa104 7568 "iso/math_c99.h\0";
e849ea70 7569/*
7570 * Machine/OS name selection pattern
7571 */
7572#define apzSolaris_Math_3Machs (const char**)NULL
7573
7574/*
7575 * content selection pattern - do fix if pattern found
7576 */
7577tSCC zSolaris_Math_3Select0[] =
7578 "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
7579
7580/*
7581 * content bypass pattern - skip fix if pattern found
7582 */
7583tSCC zSolaris_Math_3Bypass0[] =
7584 "__GNUC__";
7585
7586#define SOLARIS_MATH_3_TEST_CT 2
7587static tTestDesc aSolaris_Math_3Tests[] = {
7588 { TT_NEGREP, zSolaris_Math_3Bypass0, (regex_t*)NULL },
7589 { TT_EGREP, zSolaris_Math_3Select0, (regex_t*)NULL }, };
7590
7591/*
7592 * Fix Command Arguments for Solaris_Math_3
7593 */
7594static const char* apzSolaris_Math_3Patch[] = {
7595 "format",
7596 "#define\tNAN\t\t(__builtin_nanf(\"\"))",
7597 "^#define[ \t]+NAN[ \t]+__builtin_nan",
7598 (char*)NULL };
7599
7600/* * * * * * * * * * * * * * * * * * * * * * * * * *
7601 *
7602 * Description of Solaris_Math_4 fix
7603 */
7604tSCC zSolaris_Math_4Name[] =
7605 "solaris_math_4";
7606
7607/*
7608 * File name selection pattern
7609 */
7610tSCC zSolaris_Math_4List[] =
e9afa104 7611 "iso/math_c99.h\0";
e849ea70 7612/*
7613 * Machine/OS name selection pattern
7614 */
7615#define apzSolaris_Math_4Machs (const char**)NULL
7616
7617/*
7618 * content selection pattern - do fix if pattern found
7619 */
7620tSCC zSolaris_Math_4Select0[] =
7621 "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
7622
7623/*
7624 * content bypass pattern - skip fix if pattern found
7625 */
7626tSCC zSolaris_Math_4Bypass0[] =
7627 "__GNUC__";
7628
7629#define SOLARIS_MATH_4_TEST_CT 2
7630static tTestDesc aSolaris_Math_4Tests[] = {
7631 { TT_NEGREP, zSolaris_Math_4Bypass0, (regex_t*)NULL },
7632 { TT_EGREP, zSolaris_Math_4Select0, (regex_t*)NULL }, };
7633
7634/*
7635 * Fix Command Arguments for Solaris_Math_4
7636 */
7637static const char* apzSolaris_Math_4Patch[] = {
7638 "format",
7639 "#define\tfpclassify(x) \\\n\
35fcf460 7640 __builtin_fpclassify(FP_NAN, FP_INFINITE, FP_NORMAL, FP_SUBNORMAL, FP_ZERO, (x))",
e849ea70 7641 "^#define[ \t]+fpclassify\\(x\\)[ \t]+__builtin_fpclassify\\(x\\)",
7642 (char*)NULL };
7643
e849ea70 7644/* * * * * * * * * * * * * * * * * * * * * * * * * *
7645 *
7646 * Description of Solaris_Math_8 fix
7647 */
7648tSCC zSolaris_Math_8Name[] =
7649 "solaris_math_8";
7650
7651/*
7652 * File name selection pattern
7653 */
7654tSCC zSolaris_Math_8List[] =
e9afa104 7655 "iso/math_c99.h\0";
e849ea70 7656/*
7657 * Machine/OS name selection pattern
7658 */
7659#define apzSolaris_Math_8Machs (const char**)NULL
7660
7661/*
7662 * content selection pattern - do fix if pattern found
7663 */
7664tSCC zSolaris_Math_8Select0[] =
5aee6890 7665 "@\\(#\\)math_c99\\.h[ \t]+1\\.[0-9]+[ \t]+[0-9/]+ SMI";
e849ea70 7666
7667/*
7668 * content bypass pattern - skip fix if pattern found
7669 */
7670tSCC zSolaris_Math_8Bypass0[] =
7671 "__GNUC__";
7672
7673#define SOLARIS_MATH_8_TEST_CT 2
7674static tTestDesc aSolaris_Math_8Tests[] = {
7675 { TT_NEGREP, zSolaris_Math_8Bypass0, (regex_t*)NULL },
7676 { TT_EGREP, zSolaris_Math_8Select0, (regex_t*)NULL }, };
7677
7678/*
7679 * Fix Command Arguments for Solaris_Math_8
7680 */
7681static const char* apzSolaris_Math_8Patch[] = {
7682 "format",
7683 "#define\tsignbit(x)\t(sizeof(x) == sizeof(float) \\\n\
7684\t\t\t ? __builtin_signbitf(x) \\\n\
7685\t\t\t : sizeof(x) == sizeof(long double) \\\n\
7686\t\t\t ? __builtin_signbitl(x) \\\n\
7687\t\t\t : __builtin_signbit(x))",
7688 "^#define[ \t]+signbit\\(x\\)[ \t]+__builtin_signbit\\(x\\)",
7689 (char*)NULL };
7690
7691/* * * * * * * * * * * * * * * * * * * * * * * * * *
7692 *
7693 * Description of Solaris_Math_9 fix
7694 */
7695tSCC zSolaris_Math_9Name[] =
7696 "solaris_math_9";
7697
7698/*
7699 * File name selection pattern
7700 */
d1ed71e5 7701tSCC zSolaris_Math_9List[] =
7702 "iso/math_c99.h\0";
5f7d4d97 7703/*
7704 * Machine/OS name selection pattern
7705 */
d1ed71e5 7706#define apzSolaris_Math_9Machs (const char**)NULL
5f7d4d97 7707
7708/*
7709 * content selection pattern - do fix if pattern found
7710 */
d1ed71e5 7711tSCC zSolaris_Math_9Select0[] =
7712 "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
5f7d4d97 7713
d1ed71e5 7714/*
7715 * content bypass pattern - skip fix if pattern found
7716 */
7717tSCC zSolaris_Math_9Bypass0[] =
7718 "__GNUC__";
7719
7720#define SOLARIS_MATH_9_TEST_CT 2
7721static tTestDesc aSolaris_Math_9Tests[] = {
7722 { TT_NEGREP, zSolaris_Math_9Bypass0, (regex_t*)NULL },
7723 { TT_EGREP, zSolaris_Math_9Select0, (regex_t*)NULL }, };
5f7d4d97 7724
7725/*
d1ed71e5 7726 * Fix Command Arguments for Solaris_Math_9
5f7d4d97 7727 */
d1ed71e5 7728static const char* apzSolaris_Math_9Patch[] = {
5f7d4d97 7729 "format",
d1ed71e5 7730 "#define\t%1(x, y)%2__builtin_%1(x, y)",
7731 "^#define[ \t]+([a-z]+)\\(x, y\\)([ \t]+)\\(\\(x\\) __builtin_[a-z]+\\(y\\)\\)",
5f7d4d97 7732 (char*)NULL };
7733
59600e4c 7734/* * * * * * * * * * * * * * * * * * * * * * * * * *
7735 *
7736 * Description of Solaris_Math_11 fix
7737 */
7738tSCC zSolaris_Math_11Name[] =
7739 "solaris_math_11";
7740
7741/*
7742 * File name selection pattern
7743 */
7744tSCC zSolaris_Math_11List[] =
7745 "iso/math_c99.h\0";
7746/*
7747 * Machine/OS name selection pattern
7748 */
7749#define apzSolaris_Math_11Machs (const char**)NULL
7750
7751/*
7752 * content selection pattern - do fix if pattern found
7753 */
7754tSCC zSolaris_Math_11Select0[] =
7755 "@\\(#\\)math_c99\\.h[ \t]+1\\.[0-9]+[ \t]+[0-9/]+ ";
7756
7757#define SOLARIS_MATH_11_TEST_CT 1
7758static tTestDesc aSolaris_Math_11Tests[] = {
7759 { TT_EGREP, zSolaris_Math_11Select0, (regex_t*)NULL }, };
7760
7761/*
7762 * Fix Command Arguments for Solaris_Math_11
7763 */
7764static const char* apzSolaris_Math_11Patch[] = {
7765 "format",
7766 "#undef\tsignbit\n\
7767#define\tsignbit(x)\t(sizeof(x) == sizeof(float) \\\n\
7768\t\t\t ? __builtin_signbitf(x) \\\n\
7769\t\t\t : sizeof(x) == sizeof(long double) \\\n\
7770\t\t\t ? __builtin_signbitl(x) \\\n\
7771\t\t\t : __builtin_signbit(x))",
7772 "^#undef[ \t]+signbit\n\
7773#if defined\\(__sparc\\)\n\
7774#define[ \t]+signbit\\(x\\)[ \t]+__extension__\\( \\\\\n\
7775[ \t]+\\{[ \t]*__typeof\\(x\\)[ \t]*__x_s[ \t]*=[ \t]*\\(x\\);[ \t]*\\\\\n\
7776[ \t]+\\(int\\)[ \t]*\\(\\*\\(unsigned[ \t]*\\*\\)[ \t]*\\&__x_s[ \t]*>>[ \t]*31\\);[ \t]*\\}\\)\n\
7777#elif defined\\(__i386\\) \\|\\| defined\\(__amd64\\)\n\
7778#define[ \t]+signbit\\(x\\)[ \t]+__extension__\\( \\\\\n\
7779[ \t]+\\{ __typeof\\(x\\) __x_s = \\(x\\); \\\\\n\
7780[ \t]+\\(sizeof \\(__x_s\\) == sizeof \\(float\\) \\? \\\\\n\
7781[ \t]+\\(int\\) \\(\\*\\(unsigned \\*\\) \\&__x_s >> 31\\) : \\\\\n\
7782[ \t]+sizeof \\(__x_s\\) == sizeof \\(double\\) \\? \\\\\n\
7783[ \t]+\\(int\\) \\(\\(\\(unsigned \\*\\) \\&__x_s\\)\\[1\\] >> 31\\) : \\\\\n\
7784[ \t]+\\(int\\) \\(\\(\\(unsigned short \\*\\) \\&__x_s\\)\\[4\\] >> 15\\)\\); \\}\\)\n\
7785#endif",
7786 (char*)NULL };
7787
13d9a983 7788/* * * * * * * * * * * * * * * * * * * * * * * * * *
7789 *
7790 * Description of Solaris_Math_12 fix
7791 */
7792tSCC zSolaris_Math_12Name[] =
7793 "solaris_math_12";
7794
7795/*
7796 * File name selection pattern
7797 */
7798tSCC zSolaris_Math_12List[] =
7799 "math.h\0";
7800/*
7801 * Machine/OS name selection pattern
7802 */
7803tSCC* apzSolaris_Math_12Machs[] = {
7804 "*-*-solaris2*",
7805 (const char*)NULL };
7806
7807/*
7808 * content selection pattern - do fix if pattern found
7809 */
7810tSCC zSolaris_Math_12Select0[] =
7811 "#undef.*_GLIBCXX_USE_C99_MATH";
7812
7813#define SOLARIS_MATH_12_TEST_CT 1
7814static tTestDesc aSolaris_Math_12Tests[] = {
7815 { TT_EGREP, zSolaris_Math_12Select0, (regex_t*)NULL }, };
7816
7817/*
7818 * Fix Command Arguments for Solaris_Math_12
7819 */
7820static const char* apzSolaris_Math_12Patch[] = { sed_cmd_z,
7821 "-e", "/#undef[ \t]*_GLIBCXX_USE_C99_MATH/d",
7822 (char*)NULL };
7823
458caa24 7824/* * * * * * * * * * * * * * * * * * * * * * * * * *
7825 *
7826 * Description of Solaris_Once_Init_1 fix
7827 */
7828tSCC zSolaris_Once_Init_1Name[] =
7829 "solaris_once_init_1";
7830
7831/*
7832 * File name selection pattern
7833 */
7834tSCC zSolaris_Once_Init_1List[] =
e9afa104 7835 "pthread.h\0";
458caa24 7836/*
7837 * Machine/OS name selection pattern
7838 */
7839tSCC* apzSolaris_Once_Init_1Machs[] = {
7840 "*-*-solaris*",
7841 (const char*)NULL };
7842
7843/*
7844 * content selection pattern - do fix if pattern found
7845 */
7846tSCC zSolaris_Once_Init_1Select0[] =
7847 "@\\(#\\)pthread.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
7848
7849#define SOLARIS_ONCE_INIT_1_TEST_CT 1
7850static tTestDesc aSolaris_Once_Init_1Tests[] = {
7851 { TT_EGREP, zSolaris_Once_Init_1Select0, (regex_t*)NULL }, };
7852
7853/*
7854 * Fix Command Arguments for Solaris_Once_Init_1
7855 */
7856static const char* apzSolaris_Once_Init_1Patch[] = {
7857 "format",
7858 "%1{%2}%3",
7859 "(^#define[ \t]+PTHREAD_ONCE_INIT[ \t]+\\{)([^}]+)(\\})[ \t]*$",
7860 (char*)NULL };
7861
3dbaf01b 7862/* * * * * * * * * * * * * * * * * * * * * * * * * *
7863 *
d1ed71e5 7864 * Description of Solaris_Posix_Spawn_Restrict fix
3dbaf01b 7865 */
d1ed71e5 7866tSCC zSolaris_Posix_Spawn_RestrictName[] =
7867 "solaris_posix_spawn_restrict";
3dbaf01b 7868
7869/*
7870 * File name selection pattern
7871 */
d1ed71e5 7872tSCC zSolaris_Posix_Spawn_RestrictList[] =
7873 "spawn.h\0";
3dbaf01b 7874/*
7875 * Machine/OS name selection pattern
7876 */
d1ed71e5 7877tSCC* apzSolaris_Posix_Spawn_RestrictMachs[] = {
d462c2ee 7878 "*-*-solaris2*",
7879 (const char*)NULL };
3dbaf01b 7880
7881/*
7882 * content selection pattern - do fix if pattern found
7883 */
d1ed71e5 7884tSCC zSolaris_Posix_Spawn_RestrictSelect0[] =
7885 "(.*[ \t]+)([a-z]+)\\[_RESTRICT_KYWD\\](.*)";
3dbaf01b 7886
d1ed71e5 7887#define SOLARIS_POSIX_SPAWN_RESTRICT_TEST_CT 1
7888static tTestDesc aSolaris_Posix_Spawn_RestrictTests[] = {
7889 { TT_EGREP, zSolaris_Posix_Spawn_RestrictSelect0, (regex_t*)NULL }, };
3dbaf01b 7890
7891/*
d1ed71e5 7892 * Fix Command Arguments for Solaris_Posix_Spawn_Restrict
3dbaf01b 7893 */
d1ed71e5 7894static const char* apzSolaris_Posix_Spawn_RestrictPatch[] = {
3dbaf01b 7895 "format",
d1ed71e5 7896 "%1*_RESTRICT_KYWD %2%3",
d462c2ee 7897 (char*)NULL };
7898
7899/* * * * * * * * * * * * * * * * * * * * * * * * * *
7900 *
d1ed71e5 7901 * Description of Solaris_Pow_Int_Overload fix
d462c2ee 7902 */
d1ed71e5 7903tSCC zSolaris_Pow_Int_OverloadName[] =
7904 "solaris_pow_int_overload";
d462c2ee 7905
7906/*
7907 * File name selection pattern
7908 */
d1ed71e5 7909tSCC zSolaris_Pow_Int_OverloadList[] =
7910 "iso/math_iso.h\0";
d462c2ee 7911/*
7912 * Machine/OS name selection pattern
7913 */
d1ed71e5 7914tSCC* apzSolaris_Pow_Int_OverloadMachs[] = {
d462c2ee 7915 "*-*-solaris2*",
7916 (const char*)NULL };
7917
7918/*
7919 * content selection pattern - do fix if pattern found
7920 */
d1ed71e5 7921tSCC zSolaris_Pow_Int_OverloadSelect0[] =
7922 "^[ \t]*inline [a-z ]* pow\\([^()]*, int [^()]*\\) *\\{[^{}]*\n\
7923[^{}]*\\}";
6d87b38c 7924
d1ed71e5 7925#define SOLARIS_POW_INT_OVERLOAD_TEST_CT 1
7926static tTestDesc aSolaris_Pow_Int_OverloadTests[] = {
7927 { TT_EGREP, zSolaris_Pow_Int_OverloadSelect0, (regex_t*)NULL }, };
6d87b38c 7928
7929/*
d1ed71e5 7930 * Fix Command Arguments for Solaris_Pow_Int_Overload
6d87b38c 7931 */
d1ed71e5 7932static const char* apzSolaris_Pow_Int_OverloadPatch[] = {
6d87b38c 7933 "format",
d1ed71e5 7934 "#if __cplusplus < 201103L\n\
7935%0\n\
7936#endif",
6d87b38c 7937 (char*)NULL };
7938
69c86aa4 7939/* * * * * * * * * * * * * * * * * * * * * * * * * *
7940 *
d1ed71e5 7941 * Description of Solaris_Rwlock_Init_1 fix
69c86aa4 7942 */
d1ed71e5 7943tSCC zSolaris_Rwlock_Init_1Name[] =
7944 "solaris_rwlock_init_1";
69c86aa4 7945
7946/*
7947 * File name selection pattern
7948 */
d1ed71e5 7949tSCC zSolaris_Rwlock_Init_1List[] =
7950 "pthread.h\0";
69c86aa4 7951/*
7952 * Machine/OS name selection pattern
7953 */
d1ed71e5 7954tSCC* apzSolaris_Rwlock_Init_1Machs[] = {
7955 "*-*-solaris*",
69c86aa4 7956 (const char*)NULL };
7957
7958/*
7959 * content selection pattern - do fix if pattern found
7960 */
d1ed71e5 7961tSCC zSolaris_Rwlock_Init_1Select0[] =
7962 "@\\(#\\)pthread.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
69c86aa4 7963
d1ed71e5 7964#define SOLARIS_RWLOCK_INIT_1_TEST_CT 1
7965static tTestDesc aSolaris_Rwlock_Init_1Tests[] = {
7966 { TT_EGREP, zSolaris_Rwlock_Init_1Select0, (regex_t*)NULL }, };
69c86aa4 7967
7968/*
d1ed71e5 7969 * Fix Command Arguments for Solaris_Rwlock_Init_1
69c86aa4 7970 */
d1ed71e5 7971static const char* apzSolaris_Rwlock_Init_1Patch[] = {
69c86aa4 7972 "format",
d1ed71e5 7973 "#if __STDC__ - 0 == 0 && !defined(_NO_LONGLONG)\n\
7974%0\n\
7975#else\n\
7976%1{0, 0, 0, {{0}, {0}, {0}}, {{0}, {0}}, {{0}, {0}}}\n\
7977#endif",
7978 "(^#define[ \t]+PTHREAD_RWLOCK_INITIALIZER[ \t]+)\\{0, 0, 0, \\{0, 0, 0\\}, \\{0, 0\\}, \\{0, 0\\}\\}[ \t]*$",
69c86aa4 7979 (char*)NULL };
7980
5f7d4d97 7981/* * * * * * * * * * * * * * * * * * * * * * * * * *
7982 *
7983 * Description of Solaris_Std___Filbuf fix
7984 */
7985tSCC zSolaris_Std___FilbufName[] =
7986 "solaris_std___filbuf";
7987
7988/*
7989 * File name selection pattern
7990 */
7991tSCC zSolaris_Std___FilbufList[] =
7992 "stdio.h\0";
7993/*
7994 * Machine/OS name selection pattern
7995 */
7996tSCC* apzSolaris_Std___FilbufMachs[] = {
7997 "*-*-solaris2*",
7998 (const char*)NULL };
7999
8000/*
8001 * content selection pattern - do fix if pattern found
8002 */
8003tSCC zSolaris_Std___FilbufSelect0[] =
8004 "(using std::perror;\n\
8005)(#endif)";
8006
8007/*
8008 * content bypass pattern - skip fix if pattern found
8009 */
8010tSCC zSolaris_Std___FilbufBypass0[] =
8011 "using std::__filbuf";
8012
8013#define SOLARIS_STD___FILBUF_TEST_CT 2
8014static tTestDesc aSolaris_Std___FilbufTests[] = {
8015 { TT_NEGREP, zSolaris_Std___FilbufBypass0, (regex_t*)NULL },
8016 { TT_EGREP, zSolaris_Std___FilbufSelect0, (regex_t*)NULL }, };
8017
8018/*
8019 * Fix Command Arguments for Solaris_Std___Filbuf
8020 */
8021static const char* apzSolaris_Std___FilbufPatch[] = {
8022 "format",
8023 "%1#ifndef _LP64\n\
8024using std::__filbuf;\n\
8025using std::__flsbuf;\n\
8026#endif\n\
8027%2",
8028 (char*)NULL };
8029
3c017b47 8030/* * * * * * * * * * * * * * * * * * * * * * * * * *
8031 *
8032 * Description of Solaris_Std_Gets_Cxx14 fix
8033 */
8034tSCC zSolaris_Std_Gets_Cxx14Name[] =
8035 "solaris_std_gets_cxx14";
8036
8037/*
8038 * File name selection pattern
8039 */
8040tSCC zSolaris_Std_Gets_Cxx14List[] =
8041 "stdio.h\0";
8042/*
8043 * Machine/OS name selection pattern
8044 */
8045tSCC* apzSolaris_Std_Gets_Cxx14Machs[] = {
8046 "*-*-solaris2*",
8047 (const char*)NULL };
8048
8049/*
8050 * content selection pattern - do fix if pattern found
8051 */
8052tSCC zSolaris_Std_Gets_Cxx14Select0[] =
8053 "using std::gets;";
8054
8055#define SOLARIS_STD_GETS_CXX14_TEST_CT 1
8056static tTestDesc aSolaris_Std_Gets_Cxx14Tests[] = {
8057 { TT_EGREP, zSolaris_Std_Gets_Cxx14Select0, (regex_t*)NULL }, };
8058
8059/*
8060 * Fix Command Arguments for Solaris_Std_Gets_Cxx14
8061 */
8062static const char* apzSolaris_Std_Gets_Cxx14Patch[] = {
8063 "format",
8064 "#if __cplusplus < 201402L\n\
8065%0\n\
8066#endif",
8067 (char*)NULL };
8068
4dbe9809 8069/* * * * * * * * * * * * * * * * * * * * * * * * * *
8070 *
6af9f7ea 8071 * Description of Solaris_Stdio_Tag fix
4dbe9809 8072 */
6af9f7ea 8073tSCC zSolaris_Stdio_TagName[] =
8074 "solaris_stdio_tag";
4dbe9809 8075
8076/*
8077 * File name selection pattern
8078 */
6af9f7ea 8079tSCC zSolaris_Stdio_TagList[] =
8080 "stdio_tag.h\0";
4dbe9809 8081/*
8082 * Machine/OS name selection pattern
8083 */
6af9f7ea 8084#define apzSolaris_Stdio_TagMachs (const char**)NULL
4dbe9809 8085
8086/*
8087 * content selection pattern - do fix if pattern found
8088 */
6af9f7ea 8089tSCC zSolaris_Stdio_TagSelect0[] =
8090 "__cplusplus < 54321L";
4dbe9809 8091
8092/*
6af9f7ea 8093 * content bypass pattern - skip fix if pattern found
4dbe9809 8094 */
6af9f7ea 8095tSCC zSolaris_Stdio_TagBypass0[] =
8096 "__GNUC__";
09a31484 8097
8098#define SOLARIS_STDIO_TAG_TEST_CT 2
91eb7bbc 8099static tTestDesc aSolaris_Stdio_TagTests[] = {
09a31484 8100 { TT_NEGREP, zSolaris_Stdio_TagBypass0, (regex_t*)NULL },
91eb7bbc 8101 { TT_EGREP, zSolaris_Stdio_TagSelect0, (regex_t*)NULL }, };
8102
8103/*
8104 * Fix Command Arguments for Solaris_Stdio_Tag
8105 */
b32d497c 8106static const char* apzSolaris_Stdio_TagPatch[] = { sed_cmd_z,
91eb7bbc 8107 "-e", "s/defined(__cplusplus) && (__cplusplus < 54321L)/0/",
8108 (char*)NULL };
8109
3c017b47 8110/* * * * * * * * * * * * * * * * * * * * * * * * * *
8111 *
8112 * Description of Solaris_Stdlib_Noreturn fix
8113 */
8114tSCC zSolaris_Stdlib_NoreturnName[] =
8115 "solaris_stdlib_noreturn";
8116
8117/*
8118 * File name selection pattern
8119 */
8120tSCC zSolaris_Stdlib_NoreturnList[] =
8121 "iso/stdlib_c99.h\0";
8122/*
8123 * Machine/OS name selection pattern
8124 */
8125tSCC* apzSolaris_Stdlib_NoreturnMachs[] = {
8126 "*-*-solaris2*",
8127 (const char*)NULL };
8128
8129/*
8130 * content selection pattern - do fix if pattern found
8131 */
8132tSCC zSolaris_Stdlib_NoreturnSelect0[] =
8133 "(extern) _Noreturn (void quick_exit\\(int\\));";
8134
8135#define SOLARIS_STDLIB_NORETURN_TEST_CT 1
8136static tTestDesc aSolaris_Stdlib_NoreturnTests[] = {
8137 { TT_EGREP, zSolaris_Stdlib_NoreturnSelect0, (regex_t*)NULL }, };
8138
8139/*
8140 * Fix Command Arguments for Solaris_Stdlib_Noreturn
8141 */
8142static const char* apzSolaris_Stdlib_NoreturnPatch[] = {
8143 "format",
8144 "%1 %2 __attribute__((__noreturn__));",
8145 (char*)NULL };
8146
886db012 8147/* * * * * * * * * * * * * * * * * * * * * * * * * *
8148 *
3072d11f 8149 * Description of Statsswtch fix
886db012 8150 */
3072d11f 8151tSCC zStatsswtchName[] =
8152 "statsswtch";
886db012 8153
8154/*
8155 * File name selection pattern
8156 */
3072d11f 8157tSCC zStatsswtchList[] =
e9afa104 8158 "rpcsvc/rstat.h\0";
886db012 8159/*
8160 * Machine/OS name selection pattern
8161 */
3072d11f 8162#define apzStatsswtchMachs (const char**)NULL
886db012 8163
8164/*
8165 * content selection pattern - do fix if pattern found
8166 */
3072d11f 8167tSCC zStatsswtchSelect0[] =
8168 "boottime$";
9aac3497 8169
3072d11f 8170#define STATSSWTCH_TEST_CT 1
8171static tTestDesc aStatsswtchTests[] = {
8172 { TT_EGREP, zStatsswtchSelect0, (regex_t*)NULL }, };
886db012 8173
8174/*
3072d11f 8175 * Fix Command Arguments for Statsswtch
886db012 8176 */
3072d11f 8177static const char* apzStatsswtchPatch[] = {
886db012 8178 "format",
3072d11f 8179 "boottime;",
886db012 8180 (char*)NULL };
8181
a712e12c 8182/* * * * * * * * * * * * * * * * * * * * * * * * * *
8183 *
3072d11f 8184 * Description of Stdio_Stdarg_H fix
a712e12c 8185 */
3072d11f 8186tSCC zStdio_Stdarg_HName[] =
8187 "stdio_stdarg_h";
a712e12c 8188
8189/*
8190 * File name selection pattern
8191 */
3072d11f 8192tSCC zStdio_Stdarg_HList[] =
e9afa104 8193 "stdio.h\0";
a712e12c 8194/*
8195 * Machine/OS name selection pattern
8196 */
09a31484 8197tSCC* apzStdio_Stdarg_HMachs[] = {
85dedd01 8198 "*-*-solaris2.1[0-9]*",
09a31484 8199 (const char*)NULL };
a712e12c 8200
8201/*
3072d11f 8202 * content bypass pattern - skip fix if pattern found
a712e12c 8203 */
3072d11f 8204tSCC zStdio_Stdarg_HBypass0[] =
8205 "include.*(stdarg.h|machine/ansi.h)";
a712e12c 8206
3072d11f 8207#define STDIO_STDARG_H_TEST_CT 1
8208static tTestDesc aStdio_Stdarg_HTests[] = {
8209 { TT_NEGREP, zStdio_Stdarg_HBypass0, (regex_t*)NULL }, };
a712e12c 8210
8211/*
3072d11f 8212 * Fix Command Arguments for Stdio_Stdarg_H
a712e12c 8213 */
3072d11f 8214static const char* apzStdio_Stdarg_HPatch[] = {
8215 "wrap",
8216 "#define __need___va_list\n\
8217#include <stdarg.h>\n",
a712e12c 8218 (char*)NULL };
8219
c718ce1e 8220/* * * * * * * * * * * * * * * * * * * * * * * * * *
8221 *
3072d11f 8222 * Description of Stdio_Va_List fix
c718ce1e 8223 */
3072d11f 8224tSCC zStdio_Va_ListName[] =
8225 "stdio_va_list";
c718ce1e 8226
8227/*
8228 * File name selection pattern
8229 */
3072d11f 8230tSCC zStdio_Va_ListList[] =
5641963c 8231 "stdio.h\0";
c718ce1e 8232/*
8233 * Machine/OS name selection pattern
8234 */
09a31484 8235tSCC* apzStdio_Va_ListMachs[] = {
85dedd01 8236 "*-*-solaris2.1[0-9]*",
09a31484 8237 (const char*)NULL };
c718ce1e 8238
8239/*
3072d11f 8240 * content bypass pattern - skip fix if pattern found
c718ce1e 8241 */
3072d11f 8242tSCC zStdio_Va_ListBypass0[] =
5f6aa019 8243 "__gnuc_va_list|_BSD_VA_LIST_|__DJ_va_list|_G_va_list";
c718ce1e 8244
ce225e8d 8245#define STDIO_VA_LIST_TEST_CT 1
3072d11f 8246static tTestDesc aStdio_Va_ListTests[] = {
ce225e8d 8247 { TT_NEGREP, zStdio_Va_ListBypass0, (regex_t*)NULL }, };
c718ce1e 8248
8249/*
3072d11f 8250 * Fix Command Arguments for Stdio_Va_List
c718ce1e 8251 */
b32d497c 8252static const char* apzStdio_Va_ListPatch[] = { sed_cmd_z,
2a024ef8 8253 "-e", "s@[ \t]va_list\\([ \t)]\\)@ __gnuc_va_list\\1@\n\
857f8fc6 8254s@(va_list)&@(__gnuc_va_list)\\&@\n\
3072d11f 8255s@ _VA_LIST_));@ __gnuc_va_list));@\n\
6bc3b53c 8256s@ __VA_LIST__));@ __gnuc_va_list));@\n\
3072d11f 8257s@ va_list@ __not_va_list__@\n\
8258s@\\*va_list@*__not_va_list__@\n\
8259s@ __va_list)@ __gnuc_va_list)@\n\
8260s@typedef[ \t]\\(.*\\)[ \t]va_list[ \t]*;@typedef \\1 __not_va_list__;@\n\
b93c3ed1 8261s@typedef[ \t]*__va_list__@typedef __gnuc_va_list@\n\
3072d11f 8262s@GNUC_VA_LIST@GNUC_Va_LIST@\n\
3f2444de 8263s@_VA_LIST_DEFINED@_Va_LIST_DEFINED@\n\
3072d11f 8264s@_NEED___VA_LIST@_NEED___Va_LIST@\n\
8265s@VA_LIST@DUMMY_VA_LIST@\n\
8266s@_Va_LIST@_VA_LIST@",
c718ce1e 8267 (char*)NULL };
8268
925b9291 8269/* * * * * * * * * * * * * * * * * * * * * * * * * *
8270 *
8271 * Description of Stdio_Va_List_Clients fix
8272 */
8273tSCC zStdio_Va_List_ClientsName[] =
8274 "stdio_va_list_clients";
8275
8276/*
8277 * File name selection pattern
8278 */
8279tSCC zStdio_Va_List_ClientsList[] =
e9afa104 8280 "com_err.h\0cps.h\0curses.h\0krb5.h\0lc_core.h\0pfmt.h\0wchar.h\0curses_colr/curses.h\0";
925b9291 8281/*
8282 * Machine/OS name selection pattern
8283 */
8284#define apzStdio_Va_List_ClientsMachs (const char**)NULL
8285
8286/*
8287 * content bypass pattern - skip fix if pattern found
8288 */
8289tSCC zStdio_Va_List_ClientsBypass0[] =
8290 "__gnuc_va_list|_BSD_VA_LIST_|__DJ_va_list|_G_va_list";
8291tSCC zStdio_Va_List_ClientsBypass1[] =
8292 "include <stdarg\\.h>|#ifdef va_start";
8293
8294#define STDIO_VA_LIST_CLIENTS_TEST_CT 2
8295static tTestDesc aStdio_Va_List_ClientsTests[] = {
8296 { TT_NEGREP, zStdio_Va_List_ClientsBypass0, (regex_t*)NULL },
8297 { TT_NEGREP, zStdio_Va_List_ClientsBypass1, (regex_t*)NULL }, };
8298
8299/*
8300 * Fix Command Arguments for Stdio_Va_List_Clients
8301 */
b32d497c 8302static const char* apzStdio_Va_List_ClientsPatch[] = { sed_cmd_z,
925b9291 8303 "-e", "s@[ \t]va_list\\([ \t)]\\)@ __gnuc_va_list\\1@\n\
8304s@(va_list)&@(__gnuc_va_list)\\&@\n\
8305s@ _VA_LIST_));@ __gnuc_va_list));@\n\
8306s@ __VA_LIST__));@ __gnuc_va_list));@\n\
8307s@ va_list@ __not_va_list__@\n\
8308s@\\*va_list@*__not_va_list__@\n\
8309s@ __va_list)@ __gnuc_va_list)@\n\
8310s@typedef[ \t]\\(.*\\)[ \t]va_list[ \t]*;@typedef \\1 __not_va_list__;@\n\
8311s@typedef[ \t]*__va_list__@typedef __gnuc_va_list@\n\
8312s@GNUC_VA_LIST@GNUC_Va_LIST@\n\
8313s@_VA_LIST_DEFINED@_Va_LIST_DEFINED@\n\
8314s@_NEED___VA_LIST@_NEED___Va_LIST@\n\
8315s@VA_LIST@DUMMY_VA_LIST@\n\
8316s@_Va_LIST@_VA_LIST@",
8317 (char*)NULL };
8318
fdb8fb96 8319/* * * * * * * * * * * * * * * * * * * * * * * * * *
8320 *
3072d11f 8321 * Description of Strict_Ansi_Not fix
fdb8fb96 8322 */
3072d11f 8323tSCC zStrict_Ansi_NotName[] =
8324 "strict_ansi_not";
d4c4b01d 8325
fdb8fb96 8326/*
8327 * File name selection pattern
8328 */
3072d11f 8329#define zStrict_Ansi_NotList (char*)NULL
fdb8fb96 8330/*
8331 * Machine/OS name selection pattern
8332 */
3072d11f 8333#define apzStrict_Ansi_NotMachs (const char**)NULL
8334
8335/*
8336 * content selection pattern - do fix if pattern found
8337 */
8338tSCC zStrict_Ansi_NotSelect0[] =
3ff85771 8339 "^([ \t]*#[ \t]*if.*)(!__STDC__|__STDC__[ \t]*==[ \t]*0|__STDC__[ \t]*!=[ \t]*1|__STDC__[ \t]*-[ \t]*0[ \t]*==[ \t]*0)";
fdb8fb96 8340
68d0517a 8341/*
8342 * content bypass pattern - skip fix if pattern found
8343 */
8344tSCC zStrict_Ansi_NotBypass0[] =
8345 "GNU and MIPS C compilers define __STDC__ differently";
5f6aa019 8346tSCC zStrict_Ansi_NotBypass1[] =
8347 "__SCO_VERSION__.*__STDC__ != 1";
68d0517a 8348
fdb8fb96 8349/*
3072d11f 8350 * perform the C function call test
fdb8fb96 8351 */
3072d11f 8352tSCC zStrict_Ansi_NotFTst0[] = "stdc_0_in_system_headers";
fdb8fb96 8353
5f6aa019 8354#define STRICT_ANSI_NOT_TEST_CT 4
3072d11f 8355static tTestDesc aStrict_Ansi_NotTests[] = {
8356 { TT_FUNCTION, zStrict_Ansi_NotFTst0, 0 /* unused */ },
68d0517a 8357 { TT_NEGREP, zStrict_Ansi_NotBypass0, (regex_t*)NULL },
5f6aa019 8358 { TT_NEGREP, zStrict_Ansi_NotBypass1, (regex_t*)NULL },
3072d11f 8359 { TT_EGREP, zStrict_Ansi_NotSelect0, (regex_t*)NULL }, };
fdb8fb96 8360
8361/*
3072d11f 8362 * Fix Command Arguments for Strict_Ansi_Not
fdb8fb96 8363 */
3072d11f 8364static const char* apzStrict_Ansi_NotPatch[] = {
038a3e7a 8365 "format",
3ff85771 8366 "%1 !defined(__STRICT_ANSI__)",
fdb8fb96 8367 (char*)NULL };
8368
d4c4b01d 8369/* * * * * * * * * * * * * * * * * * * * * * * * * *
8370 *
3072d11f 8371 * Description of Strict_Ansi_Not_Ctd fix
d4c4b01d 8372 */
3072d11f 8373tSCC zStrict_Ansi_Not_CtdName[] =
8374 "strict_ansi_not_ctd";
d4c4b01d 8375
8376/*
8377 * File name selection pattern
8378 */
3072d11f 8379tSCC zStrict_Ansi_Not_CtdList[] =
e9afa104 8380 "math.h\0limits.h\0stdio.h\0signal.h\0stdlib.h\0sys/signal.h\0time.h\0";
d4c4b01d 8381/*
8382 * Machine/OS name selection pattern
8383 */
3072d11f 8384#define apzStrict_Ansi_Not_CtdMachs (const char**)NULL
d4c4b01d 8385
8386/*
3072d11f 8387 * content selection pattern - do fix if pattern found
d4c4b01d 8388 */
3072d11f 8389tSCC zStrict_Ansi_Not_CtdSelect0[] =
3ff85771 8390 "^([ \t]*(\\(|&&|\\|\\|)([ \t(]*!*[ \t]*defined\\([a-zA-Z_0-9]+\\)[ \t]*[|&][|&])*[ \t(]*)(__STDC__[ \t]*(|-[ \t]*0[ \t]*)==[ \t]*0)";
d4c4b01d 8391
3072d11f 8392/*
8393 * perform the C function call test
8394 */
8395tSCC zStrict_Ansi_Not_CtdFTst0[] = "stdc_0_in_system_headers";
8396
8397#define STRICT_ANSI_NOT_CTD_TEST_CT 2
8398static tTestDesc aStrict_Ansi_Not_CtdTests[] = {
8399 { TT_FUNCTION, zStrict_Ansi_Not_CtdFTst0, 0 /* unused */ },
8400 { TT_EGREP, zStrict_Ansi_Not_CtdSelect0, (regex_t*)NULL }, };
d4c4b01d 8401
8402/*
3072d11f 8403 * Fix Command Arguments for Strict_Ansi_Not_Ctd
d4c4b01d 8404 */
3072d11f 8405static const char* apzStrict_Ansi_Not_CtdPatch[] = {
8406 "format",
3ff85771 8407 "%1 !defined(__STRICT_ANSI__)",
d4c4b01d 8408 (char*)NULL };
8409
fdb8fb96 8410/* * * * * * * * * * * * * * * * * * * * * * * * * *
8411 *
3072d11f 8412 * Description of Strict_Ansi_Only fix
fdb8fb96 8413 */
3072d11f 8414tSCC zStrict_Ansi_OnlyName[] =
8415 "strict_ansi_only";
d4c4b01d 8416
fdb8fb96 8417/*
8418 * File name selection pattern
8419 */
3072d11f 8420#define zStrict_Ansi_OnlyList (char*)NULL
fdb8fb96 8421/*
8422 * Machine/OS name selection pattern
8423 */
3072d11f 8424#define apzStrict_Ansi_OnlyMachs (const char**)NULL
bb304030 8425
8426/*
3072d11f 8427 * content selection pattern - do fix if pattern found
bb304030 8428 */
3072d11f 8429tSCC zStrict_Ansi_OnlySelect0[] =
3ff85771 8430 "^([ \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)";
bb304030 8431
3072d11f 8432/*
8433 * perform the C function call test
8434 */
8435tSCC zStrict_Ansi_OnlyFTst0[] = "stdc_0_in_system_headers";
8436
8437#define STRICT_ANSI_ONLY_TEST_CT 2
8438static tTestDesc aStrict_Ansi_OnlyTests[] = {
8439 { TT_FUNCTION, zStrict_Ansi_OnlyFTst0, 0 /* unused */ },
8440 { TT_EGREP, zStrict_Ansi_OnlySelect0, (regex_t*)NULL }, };
fdb8fb96 8441
8442/*
3072d11f 8443 * Fix Command Arguments for Strict_Ansi_Only
fdb8fb96 8444 */
3072d11f 8445static const char* apzStrict_Ansi_OnlyPatch[] = {
8446 "format",
3ff85771 8447 "%1 defined(__STRICT_ANSI__)",
fdb8fb96 8448 (char*)NULL };
8449
cfe5be71 8450/* * * * * * * * * * * * * * * * * * * * * * * * * *
8451 *
8452 * Description of Struct_File fix
8453 */
cfe5be71 8454tSCC zStruct_FileName[] =
8455 "struct_file";
8456
8457/*
8458 * File name selection pattern
8459 */
8460tSCC zStruct_FileList[] =
e9afa104 8461 "rpc/xdr.h\0";
cfe5be71 8462/*
8463 * Machine/OS name selection pattern
8464 */
8465#define apzStruct_FileMachs (const char**)NULL
8466
8467/*
8468 * content selection pattern - do fix if pattern found
8469 */
8470tSCC zStruct_FileSelect0[] =
8471 "^.*xdrstdio_create.*struct __file_s";
8472
8473#define STRUCT_FILE_TEST_CT 1
2548396b 8474static tTestDesc aStruct_FileTests[] = {
cfe5be71 8475 { TT_EGREP, zStruct_FileSelect0, (regex_t*)NULL }, };
8476
8477/*
8478 * Fix Command Arguments for Struct_File
8479 */
2548396b 8480static const char* apzStruct_FilePatch[] = {
cfe5be71 8481 "format",
8482 "struct __file_s;\n\
8483%0",
8484 (char*)NULL };
8485
8486/* * * * * * * * * * * * * * * * * * * * * * * * * *
8487 *
8488 * Description of Struct_Sockaddr fix
8489 */
cfe5be71 8490tSCC zStruct_SockaddrName[] =
8491 "struct_sockaddr";
8492
8493/*
8494 * File name selection pattern
8495 */
8496tSCC zStruct_SockaddrList[] =
e9afa104 8497 "rpc/auth.h\0";
cfe5be71 8498/*
8499 * Machine/OS name selection pattern
8500 */
8501#define apzStruct_SockaddrMachs (const char**)NULL
8502
8503/*
8504 * content selection pattern - do fix if pattern found
8505 */
8506tSCC zStruct_SockaddrSelect0[] =
4176aa8f 8507 "^.*authdes_create.*struct sockaddr[^_]";
cfe5be71 8508
8509/*
8510 * content bypass pattern - skip fix if pattern found
8511 */
8512tSCC zStruct_SockaddrBypass0[] =
8513 "<sys/socket.h>";
4176aa8f 8514tSCC zStruct_SockaddrBypass1[] =
8515 "struct sockaddr;\n";
cfe5be71 8516
4176aa8f 8517#define STRUCT_SOCKADDR_TEST_CT 3
2548396b 8518static tTestDesc aStruct_SockaddrTests[] = {
cfe5be71 8519 { TT_NEGREP, zStruct_SockaddrBypass0, (regex_t*)NULL },
4176aa8f 8520 { TT_NEGREP, zStruct_SockaddrBypass1, (regex_t*)NULL },
cfe5be71 8521 { TT_EGREP, zStruct_SockaddrSelect0, (regex_t*)NULL }, };
8522
8523/*
8524 * Fix Command Arguments for Struct_Sockaddr
8525 */
2548396b 8526static const char* apzStruct_SockaddrPatch[] = {
cfe5be71 8527 "format",
8528 "struct sockaddr;\n\
8529%0",
8530 (char*)NULL };
8531
a712e12c 8532/* * * * * * * * * * * * * * * * * * * * * * * * * *
8533 *
8534 * Description of Sun_Auth_Proto fix
8535 */
a712e12c 8536tSCC zSun_Auth_ProtoName[] =
8537 "sun_auth_proto";
8538
8539/*
8540 * File name selection pattern
8541 */
8542tSCC zSun_Auth_ProtoList[] =
e9afa104 8543 "rpc/auth.h\0rpc/clnt.h\0rpc/svc.h\0rpc/xdr.h\0";
a712e12c 8544/*
8545 * Machine/OS name selection pattern
8546 */
8547#define apzSun_Auth_ProtoMachs (const char**)NULL
8548
8549/*
8550 * content selection pattern - do fix if pattern found
8551 */
8552tSCC zSun_Auth_ProtoSelect0[] =
8553 "\\(\\*[a-z][a-z_]*\\)\\(\\)";
8554
69c13546 8555/*
8556 * content bypass pattern - skip fix if pattern found
8557 */
8558tSCC zSun_Auth_ProtoBypass0[] =
8559 "__cplusplus";
8560
8561#define SUN_AUTH_PROTO_TEST_CT 2
2548396b 8562static tTestDesc aSun_Auth_ProtoTests[] = {
69c13546 8563 { TT_NEGREP, zSun_Auth_ProtoBypass0, (regex_t*)NULL },
a712e12c 8564 { TT_EGREP, zSun_Auth_ProtoSelect0, (regex_t*)NULL }, };
8565
8566/*
8567 * Fix Command Arguments for Sun_Auth_Proto
8568 */
2548396b 8569static const char* apzSun_Auth_ProtoPatch[] = {
038a3e7a 8570 "format",
8571 "#ifdef __cplusplus\n\
8572%1(...);%2\n\
8573#else\n\
8574%1();%2\n\
8575#endif",
8576 "(.*\\(\\*[a-z][a-z_]*\\))\\(\\);(.*)",
a712e12c 8577 (char*)NULL };
8578
fdb8fb96 8579/* * * * * * * * * * * * * * * * * * * * * * * * * *
8580 *
5daf7ede 8581 * Description of Sun_Bogus_Ifdef fix
fdb8fb96 8582 */
8583tSCC zSun_Bogus_IfdefName[] =
d4c4b01d 8584 "sun_bogus_ifdef";
8585
fdb8fb96 8586/*
8587 * File name selection pattern
8588 */
8589tSCC zSun_Bogus_IfdefList[] =
e9afa104 8590 "hsfs/hsfs_spec.h\0hsfs/iso_spec.h\0";
fdb8fb96 8591/*
8592 * Machine/OS name selection pattern
8593 */
8594#define apzSun_Bogus_IfdefMachs (const char**)NULL
8595
8596/*
c1b28c63 8597 * content selection pattern - do fix if pattern found
fdb8fb96 8598 */
8599tSCC zSun_Bogus_IfdefSelect0[] =
038a3e7a 8600 "#ifdef(.*\\|\\|.*)";
fdb8fb96 8601
8602#define SUN_BOGUS_IFDEF_TEST_CT 1
2548396b 8603static tTestDesc aSun_Bogus_IfdefTests[] = {
5daf7ede 8604 { TT_EGREP, zSun_Bogus_IfdefSelect0, (regex_t*)NULL }, };
fdb8fb96 8605
8606/*
8607 * Fix Command Arguments for Sun_Bogus_Ifdef
8608 */
2548396b 8609static const char* apzSun_Bogus_IfdefPatch[] = {
038a3e7a 8610 "format",
8611 "#if%1",
fdb8fb96 8612 (char*)NULL };
8613
8614/* * * * * * * * * * * * * * * * * * * * * * * * * *
8615 *
5daf7ede 8616 * Description of Sun_Catmacro fix
fdb8fb96 8617 */
8618tSCC zSun_CatmacroName[] =
d4c4b01d 8619 "sun_catmacro";
8620
fdb8fb96 8621/*
8622 * File name selection pattern
8623 */
8624tSCC zSun_CatmacroList[] =
e9afa104 8625 "pixrect/memvar.h\0";
fdb8fb96 8626/*
8627 * Machine/OS name selection pattern
8628 */
8629#define apzSun_CatmacroMachs (const char**)NULL
8630
8631/*
c1b28c63 8632 * content selection pattern - do fix if pattern found
fdb8fb96 8633 */
8634tSCC zSun_CatmacroSelect0[] =
038a3e7a 8635 "^#define[ \t]+CAT\\(a,b\\).*";
fdb8fb96 8636
8637#define SUN_CATMACRO_TEST_CT 1
2548396b 8638static tTestDesc aSun_CatmacroTests[] = {
5daf7ede 8639 { TT_EGREP, zSun_CatmacroSelect0, (regex_t*)NULL }, };
fdb8fb96 8640
8641/*
8642 * Fix Command Arguments for Sun_Catmacro
8643 */
2548396b 8644static const char* apzSun_CatmacroPatch[] = {
038a3e7a 8645 "format",
8646 "#ifdef __STDC__\n\
8647# define CAT(a,b) a##b\n\
8648#else\n\
8649%0\n\
8650#endif",
fdb8fb96 8651 (char*)NULL };
8652
8653/* * * * * * * * * * * * * * * * * * * * * * * * * *
8654 *
5daf7ede 8655 * Description of Sun_Malloc fix
fdb8fb96 8656 */
8657tSCC zSun_MallocName[] =
d4c4b01d 8658 "sun_malloc";
8659
fdb8fb96 8660/*
8661 * File name selection pattern
8662 */
8663tSCC zSun_MallocList[] =
e9afa104 8664 "malloc.h\0";
fdb8fb96 8665/*
8666 * Machine/OS name selection pattern
8667 */
8668#define apzSun_MallocMachs (const char**)NULL
69c13546 8669
8670/*
8671 * content bypass pattern - skip fix if pattern found
8672 */
8673tSCC zSun_MallocBypass0[] =
8674 "_CLASSIC_ANSI_TYPES";
8675
8676#define SUN_MALLOC_TEST_CT 1
8677static tTestDesc aSun_MallocTests[] = {
8678 { TT_NEGREP, zSun_MallocBypass0, (regex_t*)NULL }, };
fdb8fb96 8679
8680/*
8681 * Fix Command Arguments for Sun_Malloc
8682 */
b32d497c 8683static const char* apzSun_MallocPatch[] = { sed_cmd_z,
c1b28c63 8684 "-e", "s/typedef[ \t]char \\*\tmalloc_t/typedef void \\*\tmalloc_t/g",
8685 "-e", "s/int[ \t][ \t]*free/void\tfree/g",
8686 "-e", "s/char\\([ \t]*\\*[ \t]*malloc\\)/void\\1/g",
8687 "-e", "s/char\\([ \t]*\\*[ \t]*realloc\\)/void\\1/g",
6e58c05f 8688 "-e", "s/char\\([ \t]*\\*[ \t]*calloc\\)/void\\1/g",
fdb8fb96 8689 (char*)NULL };
8690
fdb8fb96 8691/* * * * * * * * * * * * * * * * * * * * * * * * * *
8692 *
5daf7ede 8693 * Description of Sun_Rusers_Semi fix
fdb8fb96 8694 */
8695tSCC zSun_Rusers_SemiName[] =
d4c4b01d 8696 "sun_rusers_semi";
8697
fdb8fb96 8698/*
8699 * File name selection pattern
8700 */
8701tSCC zSun_Rusers_SemiList[] =
e9afa104 8702 "rpcsvc/rusers.h\0";
fdb8fb96 8703/*
8704 * Machine/OS name selection pattern
8705 */
8706#define apzSun_Rusers_SemiMachs (const char**)NULL
8707
8708/*
c1b28c63 8709 * content selection pattern - do fix if pattern found
fdb8fb96 8710 */
8711tSCC zSun_Rusers_SemiSelect0[] =
8712 "_cnt$";
8713
8714#define SUN_RUSERS_SEMI_TEST_CT 1
2548396b 8715static tTestDesc aSun_Rusers_SemiTests[] = {
5daf7ede 8716 { TT_EGREP, zSun_Rusers_SemiSelect0, (regex_t*)NULL }, };
fdb8fb96 8717
8718/*
8719 * Fix Command Arguments for Sun_Rusers_Semi
8720 */
b32d497c 8721static const char* apzSun_Rusers_SemiPatch[] = { sed_cmd_z,
c1b28c63 8722 "-e", "/^struct/,/^};/s/_cnt$/_cnt;/",
fdb8fb96 8723 (char*)NULL };
8724
8725/* * * * * * * * * * * * * * * * * * * * * * * * * *
8726 *
5daf7ede 8727 * Description of Sun_Signal fix
fdb8fb96 8728 */
8729tSCC zSun_SignalName[] =
d4c4b01d 8730 "sun_signal";
8731
fdb8fb96 8732/*
8733 * File name selection pattern
8734 */
8735tSCC zSun_SignalList[] =
e9afa104 8736 "sys/signal.h\0signal.h\0";
fdb8fb96 8737/*
8738 * Machine/OS name selection pattern
8739 */
8740#define apzSun_SignalMachs (const char**)NULL
8741
8742/*
c1b28c63 8743 * content selection pattern - do fix if pattern found
fdb8fb96 8744 */
8745tSCC zSun_SignalSelect0[] =
038a3e7a 8746 "^void\t\\(\\*signal\\(\\)\\)\\(\\);.*";
fdb8fb96 8747
8748#define SUN_SIGNAL_TEST_CT 1
2548396b 8749static tTestDesc aSun_SignalTests[] = {
5daf7ede 8750 { TT_EGREP, zSun_SignalSelect0, (regex_t*)NULL }, };
fdb8fb96 8751
8752/*
8753 * Fix Command Arguments for Sun_Signal
8754 */
2548396b 8755static const char* apzSun_SignalPatch[] = {
038a3e7a 8756 "format",
8757 "#ifdef __cplusplus\n\
8758void\t(*signal(...))(...);\n\
8759#else\n\
8760%0\n\
8761#endif",
fdb8fb96 8762 (char*)NULL };
8763
fdb8fb96 8764/* * * * * * * * * * * * * * * * * * * * * * * * * *
8765 *
5daf7ede 8766 * Description of Sunos_Strlen fix
fdb8fb96 8767 */
8768tSCC zSunos_StrlenName[] =
d4c4b01d 8769 "sunos_strlen";
8770
fdb8fb96 8771/*
8772 * File name selection pattern
8773 */
8774tSCC zSunos_StrlenList[] =
e9afa104 8775 "strings.h\0";
fdb8fb96 8776/*
8777 * Machine/OS name selection pattern
8778 */
8779#define apzSunos_StrlenMachs (const char**)NULL
bb304030 8780
8781/*
8782 * content selection pattern - do fix if pattern found
8783 */
8784tSCC zSunos_StrlenSelect0[] =
038a3e7a 8785 "int[ \t]*strlen\\(\\);(.*)";
bb304030 8786
8787#define SUNOS_STRLEN_TEST_CT 1
2548396b 8788static tTestDesc aSunos_StrlenTests[] = {
bb304030 8789 { TT_EGREP, zSunos_StrlenSelect0, (regex_t*)NULL }, };
fdb8fb96 8790
8791/*
8792 * Fix Command Arguments for Sunos_Strlen
8793 */
2548396b 8794static const char* apzSunos_StrlenPatch[] = {
038a3e7a 8795 "format",
8796 "__SIZE_TYPE__ strlen();%1",
8797 (char*)NULL };
8798
d4a8ec92 8799/* * * * * * * * * * * * * * * * * * * * * * * * * *
8800 *
8801 * Description of Suse_Linux_Vt_Cxx fix
8802 */
8803tSCC zSuse_Linux_Vt_CxxName[] =
8804 "suse_linux_vt_cxx";
8805
8806/*
8807 * File name selection pattern
8808 */
8809tSCC zSuse_Linux_Vt_CxxList[] =
8810 "linux/vt.h\0";
8811/*
8812 * Machine/OS name selection pattern
8813 */
8814#define apzSuse_Linux_Vt_CxxMachs (const char**)NULL
8815
8816/*
8817 * content selection pattern - do fix if pattern found
8818 */
8819tSCC zSuse_Linux_Vt_CxxSelect0[] =
8820 "^[ \t]*unsigned int new;";
8821
8822#define SUSE_LINUX_VT_CXX_TEST_CT 1
8823static tTestDesc aSuse_Linux_Vt_CxxTests[] = {
8824 { TT_EGREP, zSuse_Linux_Vt_CxxSelect0, (regex_t*)NULL }, };
8825
8826/*
8827 * Fix Command Arguments for Suse_Linux_Vt_Cxx
8828 */
8829static const char* apzSuse_Linux_Vt_CxxPatch[] = {
8830 "format",
8831 "unsigned int newev;",
8832 (char*)NULL };
8833
3c04ceca 8834/* * * * * * * * * * * * * * * * * * * * * * * * * *
8835 *
8836 * Description of Svr4_Disable_Opt fix
8837 */
8838tSCC zSvr4_Disable_OptName[] =
8839 "svr4_disable_opt";
8840
8841/*
8842 * File name selection pattern
8843 */
8844tSCC zSvr4_Disable_OptList[] =
e9afa104 8845 "string.h\0";
3c04ceca 8846/*
8847 * Machine/OS name selection pattern
8848 */
8849#define apzSvr4_Disable_OptMachs (const char**)NULL
8850
8851/*
8852 * content selection pattern - do fix if pattern found
8853 */
8854tSCC zSvr4_Disable_OptSelect0[] =
8855 "#define.*__std_hdr_";
8856
8857#define SVR4_DISABLE_OPT_TEST_CT 1
8858static tTestDesc aSvr4_Disable_OptTests[] = {
8859 { TT_EGREP, zSvr4_Disable_OptSelect0, (regex_t*)NULL }, };
8860
8861/*
8862 * Fix Command Arguments for Svr4_Disable_Opt
8863 */
b32d497c 8864static const char* apzSvr4_Disable_OptPatch[] = { sed_cmd_z,
3c04ceca 8865 "-e", "/#define.*__std_hdr_/d",
8866 (char*)NULL };
8867
a712e12c 8868/* * * * * * * * * * * * * * * * * * * * * * * * * *
8869 *
8870 * Description of Svr4_Getcwd fix
8871 */
a712e12c 8872tSCC zSvr4_GetcwdName[] =
8873 "svr4_getcwd";
8874
8875/*
8876 * File name selection pattern
8877 */
8878tSCC zSvr4_GetcwdList[] =
e9afa104 8879 "stdlib.h\0unistd.h\0prototypes.h\0";
a712e12c 8880/*
8881 * Machine/OS name selection pattern
8882 */
8883#define apzSvr4_GetcwdMachs (const char**)NULL
8884
8885/*
8886 * content selection pattern - do fix if pattern found
8887 */
8888tSCC zSvr4_GetcwdSelect0[] =
8889 "getcwd\\(char \\*, int\\)";
8890
8891#define SVR4_GETCWD_TEST_CT 1
2548396b 8892static tTestDesc aSvr4_GetcwdTests[] = {
a712e12c 8893 { TT_EGREP, zSvr4_GetcwdSelect0, (regex_t*)NULL }, };
8894
8895/*
8896 * Fix Command Arguments for Svr4_Getcwd
8897 */
2548396b 8898static const char* apzSvr4_GetcwdPatch[] = {
038a3e7a 8899 "format",
8900 "getcwd(char *, size_t)",
a712e12c 8901 (char*)NULL };
8902
8903/* * * * * * * * * * * * * * * * * * * * * * * * * *
8904 *
8905 * Description of Svr4_Profil fix
8906 */
a712e12c 8907tSCC zSvr4_ProfilName[] =
8908 "svr4_profil";
8909
8910/*
8911 * File name selection pattern
8912 */
6af9f7ea 8913tSCC zSvr4_ProfilList[] =
8914 "stdlib.h\0unistd.h\0";
7ab961ad 8915/*
8916 * Machine/OS name selection pattern
8917 */
6af9f7ea 8918#define apzSvr4_ProfilMachs (const char**)NULL
7ab961ad 8919
8920/*
8921 * content selection pattern - do fix if pattern found
8922 */
6af9f7ea 8923tSCC zSvr4_ProfilSelect0[] =
8924 "profil\\(unsigned short \\*, unsigned int, unsigned int, unsigned int\\)";
8925
5641963c 8926#define SVR4_PROFIL_TEST_CT 1
6af9f7ea 8927static tTestDesc aSvr4_ProfilTests[] = {
6af9f7ea 8928 { TT_EGREP, zSvr4_ProfilSelect0, (regex_t*)NULL }, };
7ab961ad 8929
8930/*
6af9f7ea 8931 * Fix Command Arguments for Svr4_Profil
7ab961ad 8932 */
6af9f7ea 8933static const char* apzSvr4_ProfilPatch[] = {
8934 "format",
8935 "profil(unsigned short *, size_t, int, unsigned int)",
7ab961ad 8936 (char*)NULL };
8937
8938/* * * * * * * * * * * * * * * * * * * * * * * * * *
8939 *
6af9f7ea 8940 * Description of Svr4_Sighandler_Type fix
7ab961ad 8941 */
6af9f7ea 8942tSCC zSvr4_Sighandler_TypeName[] =
8943 "svr4_sighandler_type";
7ab961ad 8944
8945/*
8946 * File name selection pattern
8947 */
6af9f7ea 8948tSCC zSvr4_Sighandler_TypeList[] =
8949 "sys/signal.h\0";
7ab961ad 8950/*
8951 * Machine/OS name selection pattern
8952 */
6af9f7ea 8953#define apzSvr4_Sighandler_TypeMachs (const char**)NULL
7ab961ad 8954
8955/*
8956 * content selection pattern - do fix if pattern found
8957 */
6af9f7ea 8958tSCC zSvr4_Sighandler_TypeSelect0[] =
8959 "void *\\(\\*\\)\\(\\)";
7ab961ad 8960
6af9f7ea 8961#define SVR4_SIGHANDLER_TYPE_TEST_CT 1
8962static tTestDesc aSvr4_Sighandler_TypeTests[] = {
8963 { TT_EGREP, zSvr4_Sighandler_TypeSelect0, (regex_t*)NULL }, };
7ab961ad 8964
8965/*
6af9f7ea 8966 * Fix Command Arguments for Svr4_Sighandler_Type
7ab961ad 8967 */
6af9f7ea 8968static const char* apzSvr4_Sighandler_TypePatch[] = {
8969 "format",
8970 "void (*)(int)",
7ab961ad 8971 (char*)NULL };
8972
37935110 8973/* * * * * * * * * * * * * * * * * * * * * * * * * *
8974 *
6af9f7ea 8975 * Description of Svr4_Undeclared_Getrnge fix
37935110 8976 */
6af9f7ea 8977tSCC zSvr4_Undeclared_GetrngeName[] =
8978 "svr4_undeclared_getrnge";
37935110 8979
8980/*
8981 * File name selection pattern
8982 */
6af9f7ea 8983tSCC zSvr4_Undeclared_GetrngeList[] =
8984 "regexp.h\0";
37935110 8985/*
8986 * Machine/OS name selection pattern
8987 */
6af9f7ea 8988#define apzSvr4_Undeclared_GetrngeMachs (const char**)NULL
37935110 8989
8990/*
8991 * content selection pattern - do fix if pattern found
8992 */
6af9f7ea 8993tSCC zSvr4_Undeclared_GetrngeSelect0[] =
8994 "getrnge";
8995
8996/*
8997 * content bypass pattern - skip fix if pattern found
8998 */
8999tSCC zSvr4_Undeclared_GetrngeBypass0[] =
9000 "static void getrnge";
37935110 9001
6af9f7ea 9002#define SVR4_UNDECLARED_GETRNGE_TEST_CT 2
9003static tTestDesc aSvr4_Undeclared_GetrngeTests[] = {
9004 { TT_NEGREP, zSvr4_Undeclared_GetrngeBypass0, (regex_t*)NULL },
9005 { TT_EGREP, zSvr4_Undeclared_GetrngeSelect0, (regex_t*)NULL }, };
37935110 9006
9007/*
6af9f7ea 9008 * Fix Command Arguments for Svr4_Undeclared_Getrnge
37935110 9009 */
6af9f7ea 9010static const char* apzSvr4_Undeclared_GetrngePatch[] = {
9011 "format",
9012 "%0\n\
9013static int getrnge ();",
9014 "^static int[ \t]+size;",
37935110 9015 (char*)NULL };
9016
7ab961ad 9017/* * * * * * * * * * * * * * * * * * * * * * * * * *
9018 *
6af9f7ea 9019 * Description of Sysv68_String fix
7ab961ad 9020 */
6af9f7ea 9021tSCC zSysv68_StringName[] =
9022 "sysv68_string";
7ab961ad 9023
9024/*
9025 * File name selection pattern
9026 */
6af9f7ea 9027tSCC zSysv68_StringList[] =
9028 "testing.h\0string.h\0";
7ab961ad 9029/*
9030 * Machine/OS name selection pattern
9031 */
6af9f7ea 9032#define apzSysv68_StringMachs (const char**)NULL
7ab961ad 9033
9034/*
6af9f7ea 9035 * content bypass pattern - skip fix if pattern found
7ab961ad 9036 */
6af9f7ea 9037tSCC zSysv68_StringBypass0[] =
9038 "_CLASSIC_ANSI_TYPES";
7ab961ad 9039
6af9f7ea 9040#define SYSV68_STRING_TEST_CT 1
9041static tTestDesc aSysv68_StringTests[] = {
9042 { TT_NEGREP, zSysv68_StringBypass0, (regex_t*)NULL }, };
7ab961ad 9043
9044/*
6af9f7ea 9045 * Fix Command Arguments for Sysv68_String
7ab961ad 9046 */
b32d497c 9047static const char* apzSysv68_StringPatch[] = { sed_cmd_z,
6af9f7ea 9048 "-e", "s/extern[ \t]*int[ \t]*strlen();/extern unsigned int strlen();/",
9049 "-e", "s/extern[ \t]*int[ \t]*ffs[ \t]*(long);/extern int ffs(int);/",
9050 "-e", "s/strdup(char \\*s1);/strdup(const char *s1);/",
9051 "-e", "/^extern char$/N",
9052 "-e", "s/^extern char\\(\\n\t\\*memccpy(),\\)$/extern void\\1/",
9053 "-e", "/^extern int$/N",
9054 "-e", "s/^extern int\\(\\n\tstrlen(),\\)/extern size_t\\1/",
9055 "-e", "/^\tstrncmp(),$/N",
9056 "-e", "s/^\\(\tstrncmp()\\),\\n\\(\tstrlen(),\\)$/\\1;\\\n\
9057extern unsigned int\\\n\
9058\\2/",
7ab961ad 9059 (char*)NULL };
9060
37935110 9061/* * * * * * * * * * * * * * * * * * * * * * * * * *
9062 *
6af9f7ea 9063 * Description of Sysz_Stdlib_For_Sun fix
37935110 9064 */
6af9f7ea 9065tSCC zSysz_Stdlib_For_SunName[] =
9066 "sysz_stdlib_for_sun";
37935110 9067
9068/*
9069 * File name selection pattern
9070 */
6af9f7ea 9071tSCC zSysz_Stdlib_For_SunList[] =
9072 "stdlib.h\0";
37935110 9073/*
9074 * Machine/OS name selection pattern
9075 */
6af9f7ea 9076#define apzSysz_Stdlib_For_SunMachs (const char**)NULL
37935110 9077
9078/*
9079 * content selection pattern - do fix if pattern found
9080 */
6af9f7ea 9081tSCC zSysz_Stdlib_For_SunSelect0[] =
9082 "char[ \t]*\\*[ \t]*(calloc|malloc|realloc|bsearch)[ \t]*\\(";
9083
9084/*
9085 * content bypass pattern - skip fix if pattern found
9086 */
9087tSCC zSysz_Stdlib_For_SunBypass0[] =
9088 "_CLASSIC_ANSI_TYPES";
37935110 9089
6af9f7ea 9090#define SYSZ_STDLIB_FOR_SUN_TEST_CT 2
9091static tTestDesc aSysz_Stdlib_For_SunTests[] = {
9092 { TT_NEGREP, zSysz_Stdlib_For_SunBypass0, (regex_t*)NULL },
9093 { TT_EGREP, zSysz_Stdlib_For_SunSelect0, (regex_t*)NULL }, };
37935110 9094
9095/*
6af9f7ea 9096 * Fix Command Arguments for Sysz_Stdlib_For_Sun
37935110 9097 */
6af9f7ea 9098static const char* apzSysz_Stdlib_For_SunPatch[] = {
9099 "format",
9100 "void *\t%1(",
37935110 9101 (char*)NULL };
9102
9103/* * * * * * * * * * * * * * * * * * * * * * * * * *
9104 *
6af9f7ea 9105 * Description of Thread_Keyword fix
37935110 9106 */
6af9f7ea 9107tSCC zThread_KeywordName[] =
9108 "thread_keyword";
37935110 9109
9110/*
9111 * File name selection pattern
9112 */
6af9f7ea 9113tSCC zThread_KeywordList[] =
d1ed71e5 9114 "pthread.h\0bits/sigthread.h\0*/bits/sigthread.h\0";
37935110 9115/*
9116 * Machine/OS name selection pattern
9117 */
6af9f7ea 9118#define apzThread_KeywordMachs (const char**)NULL
37935110 9119
9120/*
9121 * content selection pattern - do fix if pattern found
9122 */
6af9f7ea 9123tSCC zThread_KeywordSelect0[] =
9124 "([* ])__thread([,)])";
37935110 9125
6af9f7ea 9126#define THREAD_KEYWORD_TEST_CT 1
9127static tTestDesc aThread_KeywordTests[] = {
9128 { TT_EGREP, zThread_KeywordSelect0, (regex_t*)NULL }, };
37935110 9129
9130/*
6af9f7ea 9131 * Fix Command Arguments for Thread_Keyword
37935110 9132 */
6af9f7ea 9133static const char* apzThread_KeywordPatch[] = {
9134 "format",
9135 "%1__thr%2",
37935110 9136 (char*)NULL };
9137
9138/* * * * * * * * * * * * * * * * * * * * * * * * * *
9139 *
6af9f7ea 9140 * Description of Tinfo_Cplusplus fix
37935110 9141 */
6af9f7ea 9142tSCC zTinfo_CplusplusName[] =
9143 "tinfo_cplusplus";
37935110 9144
9145/*
9146 * File name selection pattern
9147 */
6af9f7ea 9148tSCC zTinfo_CplusplusList[] =
9149 "tinfo.h\0";
37935110 9150/*
9151 * Machine/OS name selection pattern
9152 */
6af9f7ea 9153#define apzTinfo_CplusplusMachs (const char**)NULL
37935110 9154
9155/*
9156 * content selection pattern - do fix if pattern found
9157 */
6af9f7ea 9158tSCC zTinfo_CplusplusSelect0[] =
9159 "[ \t]_cplusplus";
37935110 9160
6af9f7ea 9161#define TINFO_CPLUSPLUS_TEST_CT 1
9162static tTestDesc aTinfo_CplusplusTests[] = {
9163 { TT_EGREP, zTinfo_CplusplusSelect0, (regex_t*)NULL }, };
37935110 9164
9165/*
6af9f7ea 9166 * Fix Command Arguments for Tinfo_Cplusplus
37935110 9167 */
6af9f7ea 9168static const char* apzTinfo_CplusplusPatch[] = {
9169 "format",
9170 " __cplusplus",
37935110 9171 (char*)NULL };
9172
9caef960 9173/* * * * * * * * * * * * * * * * * * * * * * * * * *
9174 *
6af9f7ea 9175 * Description of Ultrix_Const fix
9caef960 9176 */
6af9f7ea 9177tSCC zUltrix_ConstName[] =
9178 "ultrix_const";
9caef960 9179
9180/*
9181 * File name selection pattern
9182 */
6af9f7ea 9183tSCC zUltrix_ConstList[] =
9184 "stdio.h\0";
9caef960 9185/*
9186 * Machine/OS name selection pattern
9187 */
6af9f7ea 9188#define apzUltrix_ConstMachs (const char**)NULL
9caef960 9189
9190/*
9191 * content selection pattern - do fix if pattern found
9192 */
6af9f7ea 9193tSCC zUltrix_ConstSelect0[] =
9194 "perror\\( char \\*";
9caef960 9195
6af9f7ea 9196#define ULTRIX_CONST_TEST_CT 1
9197static tTestDesc aUltrix_ConstTests[] = {
9198 { TT_EGREP, zUltrix_ConstSelect0, (regex_t*)NULL }, };
9caef960 9199
9200/*
6af9f7ea 9201 * Fix Command Arguments for Ultrix_Const
9caef960 9202 */
6af9f7ea 9203static const char* apzUltrix_ConstPatch[] = {
9caef960 9204 "format",
6af9f7ea 9205 "%1 const %3 *__",
9206 "([ \t*](perror|fputs|fwrite|scanf|fscanf)\\(.*)[ \t]+(char|void) \\*__",
9caef960 9207 (char*)NULL };
9208
d08a0ac4 9209/* * * * * * * * * * * * * * * * * * * * * * * * * *
9210 *
6af9f7ea 9211 * Description of Ultrix_Const2 fix
d08a0ac4 9212 */
6af9f7ea 9213tSCC zUltrix_Const2Name[] =
9214 "ultrix_const2";
d4c4b01d 9215
d08a0ac4 9216/*
9217 * File name selection pattern
9218 */
6af9f7ea 9219tSCC zUltrix_Const2List[] =
9220 "stdio.h\0";
d08a0ac4 9221/*
9222 * Machine/OS name selection pattern
9223 */
6af9f7ea 9224#define apzUltrix_Const2Machs (const char**)NULL
d08a0ac4 9225
9226/*
9227 * content selection pattern - do fix if pattern found
9228 */
6af9f7ea 9229tSCC zUltrix_Const2Select0[] =
9230 "\\*fopen\\( char \\*";
b07d36b9 9231
6af9f7ea 9232#define ULTRIX_CONST2_TEST_CT 1
9233static tTestDesc aUltrix_Const2Tests[] = {
9234 { TT_EGREP, zUltrix_Const2Select0, (regex_t*)NULL }, };
d08a0ac4 9235
9236/*
6af9f7ea 9237 * Fix Command Arguments for Ultrix_Const2
d08a0ac4 9238 */
6af9f7ea 9239static const char* apzUltrix_Const2Patch[] = {
b07d36b9 9240 "format",
6af9f7ea 9241 "%1( const char *%3, const char *",
9242 "([ \t*](fopen|sscanf|popen|tempnam))\\([ \t]*char[ \t]*\\*([^,]*),[ \t]*char[ \t]*\\*[ \t]*",
d08a0ac4 9243 (char*)NULL };
9244
fdb8fb96 9245/* * * * * * * * * * * * * * * * * * * * * * * * * *
9246 *
5daf7ede 9247 * Description of Va_I960_Macro fix
fdb8fb96 9248 */
9249tSCC zVa_I960_MacroName[] =
d4c4b01d 9250 "va_i960_macro";
9251
fdb8fb96 9252/*
9253 * File name selection pattern
9254 */
9255tSCC zVa_I960_MacroList[] =
e9afa104 9256 "arch/i960/archI960.h\0";
fdb8fb96 9257/*
9258 * Machine/OS name selection pattern
9259 */
9260#define apzVa_I960_MacroMachs (const char**)NULL
9261
9262/*
c1b28c63 9263 * content selection pattern - do fix if pattern found
fdb8fb96 9264 */
9265tSCC zVa_I960_MacroSelect0[] =
9266 "__(vsiz|vali|vpad|alignof__)";
9267
9268#define VA_I960_MACRO_TEST_CT 1
2548396b 9269static tTestDesc aVa_I960_MacroTests[] = {
5daf7ede 9270 { TT_EGREP, zVa_I960_MacroSelect0, (regex_t*)NULL }, };
fdb8fb96 9271
9272/*
9273 * Fix Command Arguments for Va_I960_Macro
9274 */
2548396b 9275static const char* apzVa_I960_MacroPatch[] = {
f74d6549 9276 "format",
9277 "__vx%1",
fdb8fb96 9278 (char*)NULL };
9279
f13b86b8 9280/* * * * * * * * * * * * * * * * * * * * * * * * * *
9281 *
d1ed71e5 9282 * Description of Vms_Add_Missing_Braces fix
f13b86b8 9283 */
d1ed71e5 9284tSCC zVms_Add_Missing_BracesName[] =
9285 "vms_add_missing_braces";
f13b86b8 9286
9287/*
9288 * File name selection pattern
9289 */
d1ed71e5 9290tSCC zVms_Add_Missing_BracesList[] =
9291 "rtldef/signal.h\0";
f13b86b8 9292/*
9293 * Machine/OS name selection pattern
9294 */
d1ed71e5 9295tSCC* apzVms_Add_Missing_BracesMachs[] = {
f13b86b8 9296 "*-*-*vms*",
9297 (const char*)NULL };
9298
9299/*
9300 * content selection pattern - do fix if pattern found
9301 */
d1ed71e5 9302tSCC zVms_Add_Missing_BracesSelect0[] =
9303 "(_SIG_[A-Z]+_SET[ \t]+= \\{)(0x[0F]+, 0x[0F]+)";
f13b86b8 9304
d1ed71e5 9305#define VMS_ADD_MISSING_BRACES_TEST_CT 1
9306static tTestDesc aVms_Add_Missing_BracesTests[] = {
9307 { TT_EGREP, zVms_Add_Missing_BracesSelect0, (regex_t*)NULL }, };
f13b86b8 9308
9309/*
d1ed71e5 9310 * Fix Command Arguments for Vms_Add_Missing_Braces
f13b86b8 9311 */
d1ed71e5 9312static const char* apzVms_Add_Missing_BracesPatch[] = {
f13b86b8 9313 "format",
d1ed71e5 9314 "%1 {%2} ",
f13b86b8 9315 (char*)NULL };
9316
9317/* * * * * * * * * * * * * * * * * * * * * * * * * *
9318 *
d1ed71e5 9319 * Description of Vms_Decc_Builtin fix
f13b86b8 9320 */
d1ed71e5 9321tSCC zVms_Decc_BuiltinName[] =
9322 "vms_decc_builtin";
f13b86b8 9323
9324/*
9325 * File name selection pattern
9326 */
d1ed71e5 9327tSCC zVms_Decc_BuiltinList[] =
9328 "rtldef/string.h\0rtldef/time.h\0rtldef/strings.h\0rtldef/socket.h\0";
f13b86b8 9329/*
9330 * Machine/OS name selection pattern
9331 */
d1ed71e5 9332tSCC* apzVms_Decc_BuiltinMachs[] = {
f13b86b8 9333 "*-*-*vms*",
9334 (const char*)NULL };
9335
9336/*
9337 * content selection pattern - do fix if pattern found
9338 */
d1ed71e5 9339tSCC zVms_Decc_BuiltinSelect0[] =
9340 "(__MEMSET|__MEMMOVE|__MEMCPY|__STRLEN|__STRCPY)";
f13b86b8 9341
d1ed71e5 9342#define VMS_DECC_BUILTIN_TEST_CT 1
9343static tTestDesc aVms_Decc_BuiltinTests[] = {
9344 { TT_EGREP, zVms_Decc_BuiltinSelect0, (regex_t*)NULL }, };
f13b86b8 9345
9346/*
d1ed71e5 9347 * Fix Command Arguments for Vms_Decc_Builtin
f13b86b8 9348 */
d1ed71e5 9349static const char* apzVms_Decc_BuiltinPatch[] = { sed_cmd_z,
9350 "-e", "s@__MEMSET@memset@",
9351 "-e", "s@__MEMMOVE@memmove@",
9352 "-e", "s@__MEMCPY@memcpy@",
9353 "-e", "s@__STRLEN@strlen@",
9354 "-e", "s@__STRCPY@strcpy@",
f13b86b8 9355 (char*)NULL };
9356
9357/* * * * * * * * * * * * * * * * * * * * * * * * * *
9358 *
d1ed71e5 9359 * Description of Vms_Define_Can_Use_Extern_Prefix fix
f13b86b8 9360 */
d1ed71e5 9361tSCC zVms_Define_Can_Use_Extern_PrefixName[] =
9362 "vms_define_can_use_extern_prefix";
f13b86b8 9363
9364/*
9365 * File name selection pattern
9366 */
d1ed71e5 9367tSCC zVms_Define_Can_Use_Extern_PrefixList[] =
9368 "rtldef/decc$types.h\0";
f13b86b8 9369/*
9370 * Machine/OS name selection pattern
9371 */
d1ed71e5 9372tSCC* apzVms_Define_Can_Use_Extern_PrefixMachs[] = {
f13b86b8 9373 "*-*-*vms*",
9374 (const char*)NULL };
9375
9376/*
9377 * content selection pattern - do fix if pattern found
9378 */
d1ed71e5 9379tSCC zVms_Define_Can_Use_Extern_PrefixSelect0[] =
9380 "#[ \t]*else\n\
9381#[ \t]*if defined\\(__DECCXX\\)\n\
9382#[ \t]*define __CAN_USE_EXTERN_PREFIX 1\n";
f13b86b8 9383
d1ed71e5 9384#define VMS_DEFINE_CAN_USE_EXTERN_PREFIX_TEST_CT 1
9385static tTestDesc aVms_Define_Can_Use_Extern_PrefixTests[] = {
9386 { TT_EGREP, zVms_Define_Can_Use_Extern_PrefixSelect0, (regex_t*)NULL }, };
f13b86b8 9387
9388/*
d1ed71e5 9389 * Fix Command Arguments for Vms_Define_Can_Use_Extern_Prefix
f13b86b8 9390 */
d1ed71e5 9391static const char* apzVms_Define_Can_Use_Extern_PrefixPatch[] = {
f13b86b8 9392 "format",
d1ed71e5 9393 "%0# elif defined (__GNUC__)\n\
9394#\tdefine __CAN_USE_EXTERN_PREFIX 1\n",
f13b86b8 9395 (char*)NULL };
9396
1e6cd7f6 9397/* * * * * * * * * * * * * * * * * * * * * * * * * *
9398 *
d1ed71e5 9399 * Description of Vms_Disable_Decc_String_Builtins fix
1e6cd7f6 9400 */
d1ed71e5 9401tSCC zVms_Disable_Decc_String_BuiltinsName[] =
9402 "vms_disable_decc_string_builtins";
1e6cd7f6 9403
9404/*
9405 * File name selection pattern
9406 */
d1ed71e5 9407tSCC zVms_Disable_Decc_String_BuiltinsList[] =
9408 "rtldef/string.h\0";
1e6cd7f6 9409/*
9410 * Machine/OS name selection pattern
9411 */
d1ed71e5 9412tSCC* apzVms_Disable_Decc_String_BuiltinsMachs[] = {
1e6cd7f6 9413 "*-*-*vms*",
9414 (const char*)NULL };
9415
9416/*
9417 * content selection pattern - do fix if pattern found
9418 */
d1ed71e5 9419tSCC zVms_Disable_Decc_String_BuiltinsSelect0[] =
9420 "#if !defined\\(__VAX\\)\n";
1e6cd7f6 9421
d1ed71e5 9422#define VMS_DISABLE_DECC_STRING_BUILTINS_TEST_CT 1
9423static tTestDesc aVms_Disable_Decc_String_BuiltinsTests[] = {
9424 { TT_EGREP, zVms_Disable_Decc_String_BuiltinsSelect0, (regex_t*)NULL }, };
1e6cd7f6 9425
9426/*
d1ed71e5 9427 * Fix Command Arguments for Vms_Disable_Decc_String_Builtins
1e6cd7f6 9428 */
d1ed71e5 9429static const char* apzVms_Disable_Decc_String_BuiltinsPatch[] = {
1e6cd7f6 9430 "format",
d1ed71e5 9431 "#if !defined(__VAX) && !defined(__GNUC__)\n",
1e6cd7f6 9432 (char*)NULL };
9433
9434/* * * * * * * * * * * * * * * * * * * * * * * * * *
9435 *
d1ed71e5 9436 * Description of Vms_Do_Not_Redeclare_Hostalias fix
1e6cd7f6 9437 */
d1ed71e5 9438tSCC zVms_Do_Not_Redeclare_HostaliasName[] =
9439 "vms_do_not_redeclare_hostalias";
1e6cd7f6 9440
9441/*
9442 * File name selection pattern
9443 */
d1ed71e5 9444tSCC zVms_Do_Not_Redeclare_HostaliasList[] =
9445 "rtldef/resolv.h\0";
1e6cd7f6 9446/*
9447 * Machine/OS name selection pattern
9448 */
d1ed71e5 9449tSCC* apzVms_Do_Not_Redeclare_HostaliasMachs[] = {
1e6cd7f6 9450 "*-*-*vms*",
9451 (const char*)NULL };
9452
9453/*
9454 * content selection pattern - do fix if pattern found
9455 */
d1ed71e5 9456tSCC zVms_Do_Not_Redeclare_HostaliasSelect0[] =
9457 "(void[ \t]+fp_nquery \\(const u_char \\*, int, FILE \\*\\);)\n\
9458(__char_ptr32[ \t]+hostalias \\(const char \\*\\);)";
1e6cd7f6 9459
d1ed71e5 9460#define VMS_DO_NOT_REDECLARE_HOSTALIAS_TEST_CT 1
9461static tTestDesc aVms_Do_Not_Redeclare_HostaliasTests[] = {
9462 { TT_EGREP, zVms_Do_Not_Redeclare_HostaliasSelect0, (regex_t*)NULL }, };
1e6cd7f6 9463
9464/*
d1ed71e5 9465 * Fix Command Arguments for Vms_Do_Not_Redeclare_Hostalias
1e6cd7f6 9466 */
d1ed71e5 9467static const char* apzVms_Do_Not_Redeclare_HostaliasPatch[] = {
1e6cd7f6 9468 "format",
d1ed71e5 9469 "%1\n\
9470/* %2 */",
1e6cd7f6 9471 (char*)NULL };
9472
9473/* * * * * * * * * * * * * * * * * * * * * * * * * *
9474 *
d1ed71e5 9475 * Description of Vms_Forward_Declare_Struct fix
1e6cd7f6 9476 */
d1ed71e5 9477tSCC zVms_Forward_Declare_StructName[] =
9478 "vms_forward_declare_struct";
1e6cd7f6 9479
9480/*
9481 * File name selection pattern
9482 */
d1ed71e5 9483tSCC zVms_Forward_Declare_StructList[] =
9484 "rtldef/if.h\0";
1e6cd7f6 9485/*
9486 * Machine/OS name selection pattern
9487 */
d1ed71e5 9488tSCC* apzVms_Forward_Declare_StructMachs[] = {
1e6cd7f6 9489 "*-*-*vms*",
9490 (const char*)NULL };
9491
9492/*
9493 * content selection pattern - do fix if pattern found
9494 */
d1ed71e5 9495tSCC zVms_Forward_Declare_StructSelect0[] =
9496 "(/\\* forward decls for C\\+\\+ \\*/\n\
9497)#ifdef __cplusplus\n";
1e6cd7f6 9498
d1ed71e5 9499#define VMS_FORWARD_DECLARE_STRUCT_TEST_CT 1
9500static tTestDesc aVms_Forward_Declare_StructTests[] = {
9501 { TT_EGREP, zVms_Forward_Declare_StructSelect0, (regex_t*)NULL }, };
1e6cd7f6 9502
9503/*
d1ed71e5 9504 * Fix Command Arguments for Vms_Forward_Declare_Struct
1e6cd7f6 9505 */
d1ed71e5 9506static const char* apzVms_Forward_Declare_StructPatch[] = {
1e6cd7f6 9507 "format",
d1ed71e5 9508 "%1#if defined (__cplusplus) || defined (__GNUC__)\n",
1e6cd7f6 9509 (char*)NULL };
9510
9511/* * * * * * * * * * * * * * * * * * * * * * * * * *
9512 *
d1ed71e5 9513 * Description of Vms_No_64bit_Getopt fix
1e6cd7f6 9514 */
d1ed71e5 9515tSCC zVms_No_64bit_GetoptName[] =
9516 "vms_no_64bit_getopt";
1e6cd7f6 9517
9518/*
9519 * File name selection pattern
9520 */
d1ed71e5 9521tSCC zVms_No_64bit_GetoptList[] =
9522 "rtldef/stdio.h\0rtldef/unistd.h\0";
1e6cd7f6 9523/*
9524 * Machine/OS name selection pattern
9525 */
d1ed71e5 9526tSCC* apzVms_No_64bit_GetoptMachs[] = {
1e6cd7f6 9527 "*-*-*vms*",
9528 (const char*)NULL };
9529
9530/*
9531 * content selection pattern - do fix if pattern found
9532 */
d1ed71e5 9533tSCC zVms_No_64bit_GetoptSelect0[] =
9534 "^[ \t]*(extern[ \t]*)?(int[ \t]*(getopt|optind|opterr|optopt)|(char \\*optarg))([ \t]*\\(.*\\))?;\n";
1e6cd7f6 9535
d1ed71e5 9536#define VMS_NO_64BIT_GETOPT_TEST_CT 1
9537static tTestDesc aVms_No_64bit_GetoptTests[] = {
9538 { TT_EGREP, zVms_No_64bit_GetoptSelect0, (regex_t*)NULL }, };
1e6cd7f6 9539
9540/*
d1ed71e5 9541 * Fix Command Arguments for Vms_No_64bit_Getopt
1e6cd7f6 9542 */
d1ed71e5 9543static const char* apzVms_No_64bit_GetoptPatch[] = {
9544 "format",
9545 "#if __INITIAL_POINTER_SIZE != 64 /* getopt is short ptr only. */\n\
9546%0#endif\n",
1e6cd7f6 9547 (char*)NULL };
9548
9549/* * * * * * * * * * * * * * * * * * * * * * * * * *
9550 *
d1ed71e5 9551 * Description of Vms_Use_Fast_Setjmp fix
1e6cd7f6 9552 */
d1ed71e5 9553tSCC zVms_Use_Fast_SetjmpName[] =
9554 "vms_use_fast_setjmp";
1e6cd7f6 9555
9556/*
9557 * File name selection pattern
9558 */
d1ed71e5 9559tSCC zVms_Use_Fast_SetjmpList[] =
9560 "rtldef/setjmp.h\0";
1e6cd7f6 9561/*
9562 * Machine/OS name selection pattern
9563 */
d1ed71e5 9564tSCC* apzVms_Use_Fast_SetjmpMachs[] = {
1e6cd7f6 9565 "*-*-*vms*",
9566 (const char*)NULL };
9567
9568/*
9569 * content selection pattern - do fix if pattern found
9570 */
d1ed71e5 9571tSCC zVms_Use_Fast_SetjmpSelect0[] =
9572 "(#[ \t]*if[ \t]*defined\\(__FAST_SETJMP\\)[ \t]*\\|\\|)";
1e6cd7f6 9573
d1ed71e5 9574#define VMS_USE_FAST_SETJMP_TEST_CT 1
9575static tTestDesc aVms_Use_Fast_SetjmpTests[] = {
9576 { TT_EGREP, zVms_Use_Fast_SetjmpSelect0, (regex_t*)NULL }, };
1e6cd7f6 9577
9578/*
d1ed71e5 9579 * Fix Command Arguments for Vms_Use_Fast_Setjmp
1e6cd7f6 9580 */
d1ed71e5 9581static const char* apzVms_Use_Fast_SetjmpPatch[] = {
1e6cd7f6 9582 "format",
d1ed71e5 9583 "%0 defined (__GNUC__) ||",
1e6cd7f6 9584 (char*)NULL };
9585
9586/* * * * * * * * * * * * * * * * * * * * * * * * * *
9587 *
d1ed71e5 9588 * Description of Vms_Use_Pragma_Extern_Model fix
1e6cd7f6 9589 */
d1ed71e5 9590tSCC zVms_Use_Pragma_Extern_ModelName[] =
9591 "vms_use_pragma_extern_model";
1e6cd7f6 9592
9593/*
9594 * File name selection pattern
9595 */
d1ed71e5 9596#define zVms_Use_Pragma_Extern_ModelList (char*)NULL
1e6cd7f6 9597/*
9598 * Machine/OS name selection pattern
9599 */
d1ed71e5 9600tSCC* apzVms_Use_Pragma_Extern_ModelMachs[] = {
1e6cd7f6 9601 "*-*-*vms*",
9602 (const char*)NULL };
9603
9604/*
9605 * content selection pattern - do fix if pattern found
9606 */
d1ed71e5 9607tSCC zVms_Use_Pragma_Extern_ModelSelect0[] =
9608 "#if defined\\(__DECC\\) \\|\\| defined\\(__DECCXX\\)\n\
9609# pragma extern_model __save\n";
1e6cd7f6 9610
d1ed71e5 9611#define VMS_USE_PRAGMA_EXTERN_MODEL_TEST_CT 1
9612static tTestDesc aVms_Use_Pragma_Extern_ModelTests[] = {
9613 { TT_EGREP, zVms_Use_Pragma_Extern_ModelSelect0, (regex_t*)NULL }, };
1e6cd7f6 9614
9615/*
d1ed71e5 9616 * Fix Command Arguments for Vms_Use_Pragma_Extern_Model
1e6cd7f6 9617 */
d1ed71e5 9618static const char* apzVms_Use_Pragma_Extern_ModelPatch[] = {
1e6cd7f6 9619 "format",
d1ed71e5 9620 "#if defined(__DECC) || defined(__DECCXX) || defined(__GNUC__)\n\
9621# pragma extern_model __save\n",
1e6cd7f6 9622 (char*)NULL };
9623
9624/* * * * * * * * * * * * * * * * * * * * * * * * * *
9625 *
d1ed71e5 9626 * Description of Vms_Use_Quoted_Include fix
1e6cd7f6 9627 */
d1ed71e5 9628tSCC zVms_Use_Quoted_IncludeName[] =
9629 "vms_use_quoted_include";
1e6cd7f6 9630
9631/*
9632 * File name selection pattern
9633 */
d1ed71e5 9634tSCC zVms_Use_Quoted_IncludeList[] =
9635 "rtldef/wait.h\0starlet_c/pthread.h\0";
1e6cd7f6 9636/*
9637 * Machine/OS name selection pattern
9638 */
d1ed71e5 9639tSCC* apzVms_Use_Quoted_IncludeMachs[] = {
1e6cd7f6 9640 "*-*-*vms*",
9641 (const char*)NULL };
9642
9643/*
9644 * content selection pattern - do fix if pattern found
9645 */
d1ed71e5 9646tSCC zVms_Use_Quoted_IncludeSelect0[] =
9647 "(#[ \t]*include[ \t]+)<(resource|builtins)\\.h>";
1e6cd7f6 9648
d1ed71e5 9649#define VMS_USE_QUOTED_INCLUDE_TEST_CT 1
9650static tTestDesc aVms_Use_Quoted_IncludeTests[] = {
9651 { TT_EGREP, zVms_Use_Quoted_IncludeSelect0, (regex_t*)NULL }, };
1e6cd7f6 9652
9653/*
d1ed71e5 9654 * Fix Command Arguments for Vms_Use_Quoted_Include
1e6cd7f6 9655 */
d1ed71e5 9656static const char* apzVms_Use_Quoted_IncludePatch[] = {
1e6cd7f6 9657 "format",
d1ed71e5 9658 "%1<sys/%2.h>",
1e6cd7f6 9659 (char*)NULL };
9660
fdb8fb96 9661/* * * * * * * * * * * * * * * * * * * * * * * * * *
9662 *
5daf7ede 9663 * Description of Void_Null fix
fdb8fb96 9664 */
9665tSCC zVoid_NullName[] =
d4c4b01d 9666 "void_null";
9667
fdb8fb96 9668/*
9669 * File name selection pattern
9670 */
9671tSCC zVoid_NullList[] =
e9afa104 9672 "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";
fdb8fb96 9673/*
9674 * Machine/OS name selection pattern
9675 */
9676#define apzVoid_NullMachs (const char**)NULL
9677
9678/*
c1b28c63 9679 * content selection pattern - do fix if pattern found
fdb8fb96 9680 */
9681tSCC zVoid_NullSelect0[] =
f74d6549 9682 "^#[ \t]*define[ \t]+NULL[ \t]+\\(\\(void[ \t]*\\*\\)0\\)";
fdb8fb96 9683
df2b0bc4 9684/*
9685 * content bypass pattern - skip fix if pattern found
9686 */
9687tSCC zVoid_NullBypass0[] =
9688 "__cplusplus";
f7ac4170 9689tSCC zVoid_NullBypass1[] =
9690 "__null";
df2b0bc4 9691
f7ac4170 9692#define VOID_NULL_TEST_CT 3
2548396b 9693static tTestDesc aVoid_NullTests[] = {
df2b0bc4 9694 { TT_NEGREP, zVoid_NullBypass0, (regex_t*)NULL },
f7ac4170 9695 { TT_NEGREP, zVoid_NullBypass1, (regex_t*)NULL },
5daf7ede 9696 { TT_EGREP, zVoid_NullSelect0, (regex_t*)NULL }, };
fdb8fb96 9697
9698/*
9699 * Fix Command Arguments for Void_Null
9700 */
2548396b 9701static const char* apzVoid_NullPatch[] = {
f74d6549 9702 "format",
3c47853b 9703 "#ifndef NULL\n\
9704#ifdef __cplusplus\n\
9705#ifdef __GNUG__\n\
9706#define NULL __null\n\
9707#else /* ! __GNUG__ */\n\
9708#define NULL 0L\n\
9709#endif /* __GNUG__ */\n\
9710#else /* ! __cplusplus */\n\
9711#define NULL ((void *)0)\n\
9712#endif /* __cplusplus */\n\
9713#endif /* !NULL */",
fdb8fb96 9714 (char*)NULL };
9715
9716/* * * * * * * * * * * * * * * * * * * * * * * * * *
9717 *
5daf7ede 9718 * Description of Vxworks_Gcc_Problem fix
fdb8fb96 9719 */
9720tSCC zVxworks_Gcc_ProblemName[] =
d4c4b01d 9721 "vxworks_gcc_problem";
9722
fdb8fb96 9723/*
9724 * File name selection pattern
9725 */
9726tSCC zVxworks_Gcc_ProblemList[] =
e9afa104 9727 "types/vxTypesBase.h\0";
fdb8fb96 9728/*
9729 * Machine/OS name selection pattern
9730 */
9731#define apzVxworks_Gcc_ProblemMachs (const char**)NULL
9732
9733/*
c1b28c63 9734 * content selection pattern - do fix if pattern found
fdb8fb96 9735 */
9736tSCC zVxworks_Gcc_ProblemSelect0[] =
9737 "__GNUC_TYPEOF_FEATURE_BROKEN_USE_DEFAULT_UNTIL_FIXED__";
9738
9739#define VXWORKS_GCC_PROBLEM_TEST_CT 1
2548396b 9740static tTestDesc aVxworks_Gcc_ProblemTests[] = {
5daf7ede 9741 { TT_EGREP, zVxworks_Gcc_ProblemSelect0, (regex_t*)NULL }, };
fdb8fb96 9742
9743/*
9744 * Fix Command Arguments for Vxworks_Gcc_Problem
9745 */
b32d497c 9746static const char* apzVxworks_Gcc_ProblemPatch[] = { sed_cmd_z,
c1b28c63 9747 "-e", "s/#ifdef __GNUC_TYPEOF_FEATURE_BROKEN_USE_DEFAULT_UNTIL_FIXED__/#if 1/",
efb1b79b 9748 "-e", "/[ \t]size_t/i\\\n\
9749#ifndef _GCC_SIZE_T\\\n\
9750#define _GCC_SIZE_T\n",
9751 "-e", "/[ \t]size_t/a\\\n\
9752#endif\n",
9753 "-e", "/[ \t]ptrdiff_t/i\\\n\
9754#ifndef _GCC_PTRDIFF_T\\\n\
9755#define _GCC_PTRDIFF_T\n",
9756 "-e", "/[ \t]ptrdiff_t/a\\\n\
9757#endif\n",
9758 "-e", "/[ \t]wchar_t/i\\\n\
9759#ifndef _GCC_WCHAR_T\\\n\
9760#define _GCC_WCHAR_T\n",
9761 "-e", "/[ \t]wchar_t/a\\\n\
9762#endif\n",
fdb8fb96 9763 (char*)NULL };
9764
32f37500 9765/* * * * * * * * * * * * * * * * * * * * * * * * * *
9766 *
9767 * Description of Vxworks_Ioctl_Macro fix
9768 */
9769tSCC zVxworks_Ioctl_MacroName[] =
9770 "vxworks_ioctl_macro";
9771
9772/*
9773 * File name selection pattern
9774 */
9775tSCC zVxworks_Ioctl_MacroList[] =
9776 "ioLib.h\0";
9777/*
9778 * Machine/OS name selection pattern
9779 */
9780tSCC* apzVxworks_Ioctl_MacroMachs[] = {
9781 "*-*-vxworks*",
9782 (const char*)NULL };
9783#define VXWORKS_IOCTL_MACRO_TEST_CT 0
9784#define aVxworks_Ioctl_MacroTests (tTestDesc*)NULL
9785
9786/*
9787 * Fix Command Arguments for Vxworks_Ioctl_Macro
9788 */
9789static const char* apzVxworks_Ioctl_MacroPatch[] = {
9790 "format",
9791 "%0\n\
43125e29 9792#define ioctl(fd, func, arg) ioctl(fd, func, (int)(arg))\n",
32f37500 9793 "extern[\t ]+int[\t ]+ioctl[\t ]*\\([\t ,[:alnum:]]*\\);",
9794 (char*)NULL };
9795
9796/* * * * * * * * * * * * * * * * * * * * * * * * * *
9797 *
9798 * Description of Vxworks_Mkdir_Macro fix
9799 */
9800tSCC zVxworks_Mkdir_MacroName[] =
9801 "vxworks_mkdir_macro";
9802
9803/*
9804 * File name selection pattern
9805 */
9806tSCC zVxworks_Mkdir_MacroList[] =
9807 "sys/stat.h\0";
9808/*
9809 * Machine/OS name selection pattern
9810 */
9811tSCC* apzVxworks_Mkdir_MacroMachs[] = {
9812 "*-*-vxworks*",
9813 (const char*)NULL };
9814#define VXWORKS_MKDIR_MACRO_TEST_CT 0
9815#define aVxworks_Mkdir_MacroTests (tTestDesc*)NULL
9816
9817/*
9818 * Fix Command Arguments for Vxworks_Mkdir_Macro
9819 */
9820static const char* apzVxworks_Mkdir_MacroPatch[] = {
9821 "format",
9822 "%0\n\
9823#define mkdir(dir, ...) ((void)0, ##__VA_ARGS__, (mkdir)(dir))\n",
9824 "extern[\t ]+STATUS[\t ]+mkdir[\t ]*\\([\t ]*const[\t ]+char[\t ]*\\*[\t ]*(|[_[:alpha:]][_[:alnum:]]*)\\)[\t ]*;",
9825 (char*)NULL };
9826
fdb8fb96 9827/* * * * * * * * * * * * * * * * * * * * * * * * * *
9828 *
5daf7ede 9829 * Description of Vxworks_Needs_Vxtypes fix
fdb8fb96 9830 */
9831tSCC zVxworks_Needs_VxtypesName[] =
d4c4b01d 9832 "vxworks_needs_vxtypes";
9833
fdb8fb96 9834/*
9835 * File name selection pattern
9836 */
9837tSCC zVxworks_Needs_VxtypesList[] =
e9afa104 9838 "time.h\0";
fdb8fb96 9839/*
9840 * Machine/OS name selection pattern
9841 */
9842#define apzVxworks_Needs_VxtypesMachs (const char**)NULL
9843
9844/*
c1b28c63 9845 * content selection pattern - do fix if pattern found
fdb8fb96 9846 */
9847tSCC zVxworks_Needs_VxtypesSelect0[] =
f74d6549 9848 "uint_t([ \t]+_clocks_per_sec)";
fdb8fb96 9849
9850#define VXWORKS_NEEDS_VXTYPES_TEST_CT 1
2548396b 9851static tTestDesc aVxworks_Needs_VxtypesTests[] = {
5daf7ede 9852 { TT_EGREP, zVxworks_Needs_VxtypesSelect0, (regex_t*)NULL }, };
fdb8fb96 9853
9854/*
9855 * Fix Command Arguments for Vxworks_Needs_Vxtypes
9856 */
2548396b 9857static const char* apzVxworks_Needs_VxtypesPatch[] = {
f74d6549 9858 "format",
9859 "unsigned int%1",
fdb8fb96 9860 (char*)NULL };
9861
9862/* * * * * * * * * * * * * * * * * * * * * * * * * *
9863 *
5daf7ede 9864 * Description of Vxworks_Needs_Vxworks fix
fdb8fb96 9865 */
9866tSCC zVxworks_Needs_VxworksName[] =
d4c4b01d 9867 "vxworks_needs_vxworks";
9868
fdb8fb96 9869/*
9870 * File name selection pattern
9871 */
9872tSCC zVxworks_Needs_VxworksList[] =
e9afa104 9873 "sys/stat.h\0";
fdb8fb96 9874/*
9875 * Machine/OS name selection pattern
9876 */
9877#define apzVxworks_Needs_VxworksMachs (const char**)NULL
9878
9879/*
c1b28c63 9880 * content selection pattern - do fix if pattern found
fdb8fb96 9881 */
9882tSCC zVxworks_Needs_VxworksSelect0[] =
f74d6549 9883 "#[ \t]define[ \t]+__INCstath";
fdb8fb96 9884
9885/*
c1b28c63 9886 * perform the 'test' shell command - do fix on success
fdb8fb96 9887 */
9888tSCC zVxworks_Needs_VxworksTest0[] =
38ebab8a 9889 " -r types/vxTypesOld.h";
fdb8fb96 9890tSCC zVxworks_Needs_VxworksTest1[] =
38ebab8a 9891 " -n \"`egrep '#include' $file`\"";
fdb8fb96 9892tSCC zVxworks_Needs_VxworksTest2[] =
38ebab8a 9893 " -n \"`egrep ULONG $file`\"";
fdb8fb96 9894
9895#define VXWORKS_NEEDS_VXWORKS_TEST_CT 4
2548396b 9896static tTestDesc aVxworks_Needs_VxworksTests[] = {
5daf7ede 9897 { TT_TEST, zVxworks_Needs_VxworksTest0, 0 /* unused */ },
9898 { TT_TEST, zVxworks_Needs_VxworksTest1, 0 /* unused */ },
9899 { TT_TEST, zVxworks_Needs_VxworksTest2, 0 /* unused */ },
9900 { TT_EGREP, zVxworks_Needs_VxworksSelect0, (regex_t*)NULL }, };
fdb8fb96 9901
9902/*
9903 * Fix Command Arguments for Vxworks_Needs_Vxworks
9904 */
b32d497c 9905static const char* apzVxworks_Needs_VxworksPatch[] = { sed_cmd_z,
efb1b79b 9906 "-e", "/#[ \t]define[ \t][ \t]*__INCstath/a\\\n\
9907#include <types/vxTypesOld.h>\n",
fdb8fb96 9908 (char*)NULL };
9909
32f37500 9910/* * * * * * * * * * * * * * * * * * * * * * * * * *
9911 *
9912 * Description of Vxworks_Regs fix
9913 */
9914tSCC zVxworks_RegsName[] =
9915 "vxworks_regs";
9916
9917/*
9918 * File name selection pattern
9919 */
9920#define zVxworks_RegsList (char*)NULL
9921/*
9922 * Machine/OS name selection pattern
9923 */
9924tSCC* apzVxworks_RegsMachs[] = {
9925 "*-*-vxworks*",
9926 (const char*)NULL };
9927
9928/*
9929 * content selection pattern - do fix if pattern found
9930 */
9931tSCC zVxworks_RegsSelect0[] =
9932 "#[\t ]*include[\t ]+[<\"]regs.h[>\"]";
9933
9934#define VXWORKS_REGS_TEST_CT 1
9935static tTestDesc aVxworks_RegsTests[] = {
9936 { TT_EGREP, zVxworks_RegsSelect0, (regex_t*)NULL }, };
9937
9938/*
9939 * Fix Command Arguments for Vxworks_Regs
9940 */
9941static const char* apzVxworks_RegsPatch[] = {
9942 "format",
9943 "#include <arch/../regs.h>",
9944 (char*)NULL };
9945
fdb8fb96 9946/* * * * * * * * * * * * * * * * * * * * * * * * * *
9947 *
5daf7ede 9948 * Description of Vxworks_Time fix
fdb8fb96 9949 */
9950tSCC zVxworks_TimeName[] =
d4c4b01d 9951 "vxworks_time";
9952
fdb8fb96 9953/*
9954 * File name selection pattern
9955 */
9956tSCC zVxworks_TimeList[] =
e9afa104 9957 "time.h\0";
fdb8fb96 9958/*
9959 * Machine/OS name selection pattern
9960 */
9961#define apzVxworks_TimeMachs (const char**)NULL
9962
9963/*
c1b28c63 9964 * content selection pattern - do fix if pattern found
fdb8fb96 9965 */
9966tSCC zVxworks_TimeSelect0[] =
f74d6549 9967 "#[ \t]*define[ \t]+VOIDFUNCPTR[ \t].*";
fdb8fb96 9968
9969/*
c1b28c63 9970 * perform the 'test' shell command - do fix on success
fdb8fb96 9971 */
9972tSCC zVxworks_TimeTest0[] =
38ebab8a 9973 " -r vxWorks.h";
fdb8fb96 9974
9975#define VXWORKS_TIME_TEST_CT 2
2548396b 9976static tTestDesc aVxworks_TimeTests[] = {
5daf7ede 9977 { TT_TEST, zVxworks_TimeTest0, 0 /* unused */ },
9978 { TT_EGREP, zVxworks_TimeSelect0, (regex_t*)NULL }, };
fdb8fb96 9979
9980/*
9981 * Fix Command Arguments for Vxworks_Time
9982 */
2548396b 9983static const char* apzVxworks_TimePatch[] = {
f74d6549 9984 "format",
9985 "#ifndef __gcc_VOIDFUNCPTR_defined\n\
9986#ifdef __cplusplus\n\
9987typedef void (*__gcc_VOIDFUNCPTR) (...);\n\
9988#else\n\
9989typedef void (*__gcc_VOIDFUNCPTR) ();\n\
9990#endif\n\
9991#define __gcc_VOIDFUNCPTR_defined\n\
9992#endif\n\
9993#define VOIDFUNCPTR __gcc_VOIDFUNCPTR",
fdb8fb96 9994 (char*)NULL };
9995
32f37500 9996/* * * * * * * * * * * * * * * * * * * * * * * * * *
9997 *
9998 * Description of Vxworks_Write_Const fix
9999 */
10000tSCC zVxworks_Write_ConstName[] =
10001 "vxworks_write_const";
10002
10003/*
10004 * File name selection pattern
10005 */
10006tSCC zVxworks_Write_ConstList[] =
10007 "ioLib.h\0";
10008/*
10009 * Machine/OS name selection pattern
10010 */
10011tSCC* apzVxworks_Write_ConstMachs[] = {
10012 "*-*-vxworks*",
10013 (const char*)NULL };
10014#define VXWORKS_WRITE_CONST_TEST_CT 0
10015#define aVxworks_Write_ConstTests (tTestDesc*)NULL
10016
10017/*
10018 * Fix Command Arguments for Vxworks_Write_Const
10019 */
10020static const char* apzVxworks_Write_ConstPatch[] = {
10021 "format",
10022 "extern int write (int, const char*, size_t);",
10023 "extern[\t ]+int[\t ]+write[\t ]*\\([\t ]*int[\t ]*,[\t ]*char[\t ]*\\*[\t ]*,[\t ]*size_t[\t ]*\\)[\t ]*;",
10024 (char*)NULL };
10025
3d2d7dab 10026/* * * * * * * * * * * * * * * * * * * * * * * * * *
10027 *
10028 * Description of Vxworks_Iolib_Include_Unistd fix
10029 */
10030tSCC zVxworks_Iolib_Include_UnistdName[] =
10031 "vxworks_iolib_include_unistd";
10032
10033/*
10034 * File name selection pattern
10035 */
10036tSCC zVxworks_Iolib_Include_UnistdList[] =
10037 "ioLib.h\0";
10038/*
10039 * Machine/OS name selection pattern
10040 */
10041tSCC* apzVxworks_Iolib_Include_UnistdMachs[] = {
10042 "*-*-vxworks*",
10043 (const char*)NULL };
10044
10045/*
10046 * content selection pattern - do fix if pattern found
10047 */
10048tSCC zVxworks_Iolib_Include_UnistdSelect0[] =
10049 "#include \"unistd.h\"";
10050
10051#define VXWORKS_IOLIB_INCLUDE_UNISTD_TEST_CT 1
10052static tTestDesc aVxworks_Iolib_Include_UnistdTests[] = {
10053 { TT_EGREP, zVxworks_Iolib_Include_UnistdSelect0, (regex_t*)NULL }, };
10054
10055/*
10056 * Fix Command Arguments for Vxworks_Iolib_Include_Unistd
10057 */
10058static const char* apzVxworks_Iolib_Include_UnistdPatch[] = {
10059 "format",
10060 "#include <unistd.h>",
10061 (char*)NULL };
10062
fdb8fb96 10063/* * * * * * * * * * * * * * * * * * * * * * * * * *
10064 *
5daf7ede 10065 * Description of X11_Class fix
fdb8fb96 10066 */
10067tSCC zX11_ClassName[] =
d4c4b01d 10068 "x11_class";
10069
fdb8fb96 10070/*
10071 * File name selection pattern
10072 */
10073tSCC zX11_ClassList[] =
e9afa104 10074 "X11/ShellP.h\0";
fdb8fb96 10075/*
10076 * Machine/OS name selection pattern
10077 */
10078#define apzX11_ClassMachs (const char**)NULL
10079
e7ae4397 10080/*
10081 * content selection pattern - do fix if pattern found
10082 */
10083tSCC zX11_ClassSelect0[] =
10084 "^([ \t]*char \\*)class;(.*)";
10085
fdb8fb96 10086/*
c1b28c63 10087 * content bypass pattern - skip fix if pattern found
fdb8fb96 10088 */
10089tSCC zX11_ClassBypass0[] =
10090 "__cplusplus";
10091
e7ae4397 10092#define X11_CLASS_TEST_CT 2
2548396b 10093static tTestDesc aX11_ClassTests[] = {
e7ae4397 10094 { TT_NEGREP, zX11_ClassBypass0, (regex_t*)NULL },
10095 { TT_EGREP, zX11_ClassSelect0, (regex_t*)NULL }, };
fdb8fb96 10096
10097/*
10098 * Fix Command Arguments for X11_Class
10099 */
2548396b 10100static const char* apzX11_ClassPatch[] = {
e7ae4397 10101 "format",
10102 "#ifdef __cplusplus\n\
10103%1c_class;%2\n\
10104#else\n\
10105%1class;%2\n\
10106#endif",
fdb8fb96 10107 (char*)NULL };
10108
10109/* * * * * * * * * * * * * * * * * * * * * * * * * *
10110 *
5daf7ede 10111 * Description of X11_Class_Usage fix
fdb8fb96 10112 */
10113tSCC zX11_Class_UsageName[] =
d4c4b01d 10114 "x11_class_usage";
10115
fdb8fb96 10116/*
10117 * File name selection pattern
10118 */
10119tSCC zX11_Class_UsageList[] =
e9afa104 10120 "Xm/BaseClassI.h\0";
fdb8fb96 10121/*
10122 * Machine/OS name selection pattern
10123 */
10124#define apzX11_Class_UsageMachs (const char**)NULL
10125
f74d6549 10126/*
10127 * content selection pattern - do fix if pattern found
10128 */
10129tSCC zX11_Class_UsageSelect0[] =
10130 " class\\)";
10131
fdb8fb96 10132/*
c1b28c63 10133 * content bypass pattern - skip fix if pattern found
fdb8fb96 10134 */
10135tSCC zX11_Class_UsageBypass0[] =
10136 "__cplusplus";
10137
f74d6549 10138#define X11_CLASS_USAGE_TEST_CT 2
2548396b 10139static tTestDesc aX11_Class_UsageTests[] = {
f74d6549 10140 { TT_NEGREP, zX11_Class_UsageBypass0, (regex_t*)NULL },
10141 { TT_EGREP, zX11_Class_UsageSelect0, (regex_t*)NULL }, };
fdb8fb96 10142
10143/*
10144 * Fix Command Arguments for X11_Class_Usage
10145 */
2548396b 10146static const char* apzX11_Class_UsagePatch[] = {
f74d6549 10147 "format",
10148 " c_class)",
fdb8fb96 10149 (char*)NULL };
10150
10151/* * * * * * * * * * * * * * * * * * * * * * * * * *
10152 *
5daf7ede 10153 * Description of X11_New fix
fdb8fb96 10154 */
10155tSCC zX11_NewName[] =
d4c4b01d 10156 "x11_new";
10157
fdb8fb96 10158/*
10159 * File name selection pattern
10160 */
10161tSCC zX11_NewList[] =
e9afa104 10162 "Xm/Traversal.h\0";
fdb8fb96 10163/*
10164 * Machine/OS name selection pattern
10165 */
10166#define apzX11_NewMachs (const char**)NULL
10167
10168/*
c1b28c63 10169 * content bypass pattern - skip fix if pattern found
fdb8fb96 10170 */
10171tSCC zX11_NewBypass0[] =
10172 "__cplusplus";
10173
10174#define X11_NEW_TEST_CT 1
2548396b 10175static tTestDesc aX11_NewTests[] = {
5daf7ede 10176 { TT_NEGREP, zX11_NewBypass0, (regex_t*)NULL }, };
fdb8fb96 10177
10178/*
10179 * Fix Command Arguments for X11_New
10180 */
b32d497c 10181static const char* apzX11_NewPatch[] = { sed_cmd_z,
efb1b79b 10182 "-e", "/Widget\told, new;/i\\\n\
10183#ifdef __cplusplus\\\n\
b795c8d1 10184\\\tWidget\told, c_new;\\\n\
efb1b79b 10185#else\n",
10186 "-e", "/Widget\told, new;/a\\\n\
10187#endif\n",
c1b28c63 10188 "-e", "s/Widget new,/Widget c_new,/g",
fdb8fb96 10189 (char*)NULL };
10190
10191/* * * * * * * * * * * * * * * * * * * * * * * * * *
10192 *
5daf7ede 10193 * Description of X11_Sprintf fix
fdb8fb96 10194 */
10195tSCC zX11_SprintfName[] =
d4c4b01d 10196 "x11_sprintf";
10197
fdb8fb96 10198/*
10199 * File name selection pattern
10200 */
10201tSCC zX11_SprintfList[] =
e9afa104 10202 "X11/Xmu.h\0X11/Xmu/Xmu.h\0";
fdb8fb96 10203/*
10204 * Machine/OS name selection pattern
10205 */
10206#define apzX11_SprintfMachs (const char**)NULL
d6d7d999 10207
10208/*
10209 * content selection pattern - do fix if pattern found
10210 */
10211tSCC zX11_SprintfSelect0[] =
f74d6549 10212 "^extern char \\*\tsprintf\\(\\);$";
d6d7d999 10213
10214#define X11_SPRINTF_TEST_CT 1
2548396b 10215static tTestDesc aX11_SprintfTests[] = {
d6d7d999 10216 { TT_EGREP, zX11_SprintfSelect0, (regex_t*)NULL }, };
fdb8fb96 10217
10218/*
10219 * Fix Command Arguments for X11_Sprintf
10220 */
2548396b 10221static const char* apzX11_SprintfPatch[] = {
f74d6549 10222 "format",
10223 "#ifndef __STDC__\n\
10224%0\n\
10225#endif /* !defined __STDC__ */",
fdb8fb96 10226 (char*)NULL };
10227
d4c4b01d 10228
fdb8fb96 10229/* * * * * * * * * * * * * * * * * * * * * * * * * *
10230 *
10231 * List of all fixes
10232 */
62f18056 10233#define REGEX_COUNT 290
c65a66ea 10234#define MACH_LIST_SIZE_LIMIT 187
62f18056 10235#define FIX_COUNT 252
5daf7ede 10236
3072d11f 10237/*
10238 * Enumerate the fixes
10239 */
10240typedef enum {
3d906fac 10241 AAB_AIX_STDIO_FIXIDX,
81911845 10242 AAB_AIX_FCNTL_FIXIDX,
f2563b02 10243 AAB_DARWIN7_9_LONG_DOUBLE_FUNCS_FIXIDX,
3072d11f 10244 AAB_FD_ZERO_ASM_POSIX_TYPES_H_FIXIDX,
10245 AAB_FD_ZERO_GNU_TYPES_H_FIXIDX,
10246 AAB_FD_ZERO_SELECTBITS_H_FIXIDX,
bffe0cfe 10247 AAB_SOLARIS_SYS_VARARGS_H_FIXIDX,
b93c3ed1 10248 AAB_SUN_MEMCPY_FIXIDX,
32f37500 10249 AAB_VXWORKS_ASSERT_FIXIDX,
10250 AAB_VXWORKS_REGS_VXTYPES_FIXIDX,
32f37500 10251 AAB_VXWORKS_UNISTD_FIXIDX,
8f1baf26 10252 AIX_ASSERT_FIXIDX,
253f9954 10253 AIX_COMPLEX_FIXIDX,
c82f076e 10254 AIX_EXTERNC_FIXIDX,
10255 AIX_EXTERNCPP1_FIXIDX,
10256 AIX_EXTERNCPP2_FIXIDX,
0560f6fc 10257 AIX_MALLOC_FIXIDX,
eafa229b 10258 AIX_NET_IF_ARP_FIXIDX,
3c47853b 10259 AIX_NULL_FIXIDX,
4cad3a31 10260 AIX_ONCE_INIT_1_FIXIDX,
10261 AIX_ONCE_INIT_2_FIXIDX,
3adcc56f 10262 AIX_MUTEX_INITIALIZER_1_FIXIDX,
10263 AIX_COND_INITIALIZER_1_FIXIDX,
10264 AIX_RWLOCK_INITIALIZER_1_FIXIDX,
3072d11f 10265 AIX_PTHREAD_FIXIDX,
82c99fed 10266 AIX_STDINT_1_FIXIDX,
10267 AIX_STDINT_2_FIXIDX,
10268 AIX_STDINT_3_FIXIDX,
10269 AIX_STDINT_4_FIXIDX,
10270 AIX_STDINT_5_FIXIDX,
11e92429 10271 AIX_STDIO_INLINE_FIXIDX,
b73b1330 10272 AIX_STDLIB_MALLOC_FIXIDX,
10273 AIX_STDLIB_REALLOC_FIXIDX,
10274 AIX_STDLIB_CALLOC_FIXIDX,
10275 AIX_STDLIB_VALLOC_FIXIDX,
84597344 10276 AIX_STDLIB_VEC_MALLOC_FIXIDX,
10277 AIX_STDLIB_VEC_CALLOC_FIXIDX,
7a26bedc 10278 AIX_STRTOF_CONST_FIXIDX,
3072d11f 10279 AIX_SYSMACHINE_FIXIDX,
85df6fdf 10280 AIX_SYSWAIT_2_FIXIDX,
3072d11f 10281 AIX_VOLATILE_FIXIDX,
056a9bf0 10282 AIX_UNISTD_FIXIDX,
3072d11f 10283 ALPHA___ASSERT_FIXIDX,
03112946 10284 ALPHA_ASSERT_FIXIDX,
3072d11f 10285 ALPHA_GETOPT_FIXIDX,
2013a847 10286 ALPHA_IF_SEMICOLON_FIXIDX,
3072d11f 10287 ALPHA_PARENS_FIXIDX,
10288 ALPHA_SBRK_FIXIDX,
3072d11f 10289 AVOID_BOOL_DEFINE_FIXIDX,
10290 AVOID_BOOL_TYPE_FIXIDX,
10291 AVOID_WCHAR_T_TYPE_FIXIDX,
3072d11f 10292 BAD_STRUCT_TERM_FIXIDX,
10293 BADQUOTE_FIXIDX,
10294 BROKEN_ASSERT_STDIO_FIXIDX,
10295 BROKEN_ASSERT_STDLIB_FIXIDX,
10296 BROKEN_CABS_FIXIDX,
baee91be 10297 BROKEN_NAN_FIXIDX,
d45e22c2 10298 BSD_STDIO_ATTRS_CONFLICT_FIXIDX,
3072d11f 10299 CTRL_QUOTES_DEF_FIXIDX,
10300 CTRL_QUOTES_USE_FIXIDX,
10301 CXX_UNREADY_FIXIDX,
a11195e1 10302 DARWIN_AVAILABILITYINTERNAL_FIXIDX,
32f37500 10303 DARWIN_9_LONG_DOUBLE_FUNCS_2_FIXIDX,
1908d6ac 10304 DARWIN_EXTERNC_FIXIDX,
975d636c 10305 DARWIN_GCC4_BREAKAGE_FIXIDX,
d6856a0e 10306 DARWIN_LONGJMP_NORETURN_FIXIDX,
a11195e1 10307 DARWIN_OS_TRACE_1_FIXIDX,
10308 DARWIN_OS_TRACE_2_FIXIDX,
10309 DARWIN_OS_TRACE_3_FIXIDX,
3067e435 10310 DARWIN_PRIVATE_EXTERN_FIXIDX,
0e1f6b4f 10311 DARWIN_STDINT_1_FIXIDX,
10312 DARWIN_STDINT_2_FIXIDX,
10313 DARWIN_STDINT_3_FIXIDX,
10314 DARWIN_STDINT_4_FIXIDX,
c73f01c5 10315 DARWIN_STDINT_5_FIXIDX,
10316 DARWIN_STDINT_6_FIXIDX,
10317 DARWIN_STDINT_7_FIXIDX,
62f18056 10318 DARWIN_UCRED__ATOMIC_FIXIDX,
3072d11f 10319 DEC_INTERN_ASM_FIXIDX,
10320 DJGPP_WCHAR_H_FIXIDX,
10321 ECD_CURSOR_FIXIDX,
d1ed71e5 10322 FERAISEEXCEPT_NOSSE_DIVBYZERO_FIXIDX,
10323 FERAISEEXCEPT_NOSSE_INVALID_FIXIDX,
3072d11f 10324 FREEBSD_GCC3_BREAKAGE_FIXIDX,
f9ac0b87 10325 FREEBSD_GCC4_BREAKAGE_FIXIDX,
efb8e7bf 10326 GLIBC_C99_INLINE_1_FIXIDX,
661832db 10327 GLIBC_C99_INLINE_1A_FIXIDX,
efb8e7bf 10328 GLIBC_C99_INLINE_2_FIXIDX,
10329 GLIBC_C99_INLINE_3_FIXIDX,
10330 GLIBC_C99_INLINE_4_FIXIDX,
a1b11617 10331 GLIBC_MUTEX_INIT_FIXIDX,
57a812b7 10332 GLIBC_STDINT_FIXIDX,
5aee6890 10333 GLIBC_STRNCPY_FIXIDX,
a75b1c71 10334 GLIBC_TGMATH_FIXIDX,
3072d11f 10335 GNU_TYPES_FIXIDX,
10336 HP_INLINE_FIXIDX,
10337 HP_SYSFILE_FIXIDX,
b32d497c 10338 HPPA_HPUX_FP_MACROS_FIXIDX,
7b900f1a 10339 HPUX10_CPP_POW_INLINE_FIXIDX,
c6738ff5 10340 HPUX11_CPP_POW_INLINE_FIXIDX,
ebf664b2 10341 HPUX10_CTYPE_DECLARATIONS1_FIXIDX,
10342 HPUX10_CTYPE_DECLARATIONS2_FIXIDX,
37935110 10343 HPUX10_STDIO_DECLARATIONS_FIXIDX,
f20a1c45 10344 HPPA_HPUX11_ALLOCA_FIXIDX,
b93c3ed1 10345 HPUX11_ABS_FIXIDX,
dcc83eef 10346 HPUX11_LWP_RWLOCK_VALID_FIXIDX,
d1ed71e5 10347 HPUX11_EXTERN_SENDFILE_FIXIDX,
10348 HPUX11_EXTERN_SENDPATH_FIXIDX,
ca58af19 10349 HPUX11_FABSF_FIXIDX,
edbb3b00 10350 HPUX11_PTHREAD_POINTER_FIXIDX,
b32d497c 10351 HPUX11_PTHREAD_CONST_FIXIDX,
c0854bd5 10352 HPUX11_SIZE_T_FIXIDX,
75dc2242 10353 HPUX11_SNPRINTF_FIXIDX,
a0d38f0b 10354 HPUX11_VSNPRINTF_FIXIDX,
122d538c 10355 HPUX_VSSCANF_FIXIDX,
3072d11f 10356 HPUX8_BOGUS_INLINES_FIXIDX,
d1ed71e5 10357 HPUX_C99_INTPTR_FIXIDX,
10358 HPUX_C99_INTTYPES_FIXIDX,
10359 HPUX_C99_INTTYPES2_FIXIDX,
ebf664b2 10360 HPUX_CTYPE_MACROS_FIXIDX,
d1ed71e5 10361 HPUX_EXTERN_ERRNO_FIXIDX,
1589683c 10362 HPUX_HTONL_FIXIDX,
d1ed71e5 10363 HPUX_IMAGINARY_I_FIXIDX,
10364 HPUX_INTTYPE_INT8_T_FIXIDX,
ebf664b2 10365 HPUX_LONG_DOUBLE_FIXIDX,
42fd8f40 10366 HPUX_LONG_DOUBLE_2_FIXIDX,
3dd59d44 10367 HPUX_PTHREAD_INITIALIZERS_FIXIDX,
d1ed71e5 10368 HPUX_SPU_INFO_FIXIDX,
3c36388d 10369 HPUX_STDINT_LEAST_FAST_FIXIDX,
0249b7a3 10370 HPUX_LONGJMP_FIXIDX,
d1ed71e5 10371 HPUX_SYSTIME_FIXIDX,
96eced21 10372 HUGE_VAL_HEX_FIXIDX,
10373 HUGE_VALF_HEX_FIXIDX,
10374 HUGE_VALL_HEX_FIXIDX,
3072d11f 10375 INT_ABORT_FREE_AND_EXIT_FIXIDX,
10376 IO_QUOTES_DEF_FIXIDX,
10377 IO_QUOTES_USE_FIXIDX,
10378 IP_MISSING_SEMI_FIXIDX,
3072d11f 10379 IRIX_LIMITS_CONST_FIXIDX,
10380 IRIX_STDIO_VA_LIST_FIXIDX,
3072d11f 10381 KANDR_CONCAT_FIXIDX,
d92db5b6 10382 LINUX_IA64_UCONTEXT_FIXIDX,
435ea059 10383 LYNXOS_NO_WARNING_IN_SYS_TIME_H_FIXIDX,
10384 LYNXOS_MISSING_PUTENV_FIXIDX,
3072d11f 10385 MACHINE_ANSI_H_VA_LIST_FIXIDX,
10386 MACHINE_NAME_FIXIDX,
10387 MATH_EXCEPTION_FIXIDX,
10388 MATH_HUGE_VAL_FROM_DBL_MAX_FIXIDX,
3072d11f 10389 NESTED_AUTH_DES_FIXIDX,
4cbf73b4 10390 NETBSD_C99_INLINE_1_FIXIDX,
759bfb14 10391 NETBSD_C99_INLINE_2_FIXIDX,
81a897fb 10392 NETBSD_EXTRA_SEMICOLON_FIXIDX,
f3449a3c 10393 NEWLIB_STDINT_1_FIXIDX,
10394 NEWLIB_STDINT_2_FIXIDX,
3072d11f 10395 NEXT_MATH_PREFIX_FIXIDX,
10396 NEXT_TEMPLATE_FIXIDX,
10397 NEXT_VOLITILE_FIXIDX,
10398 NEXT_WAIT_UNION_FIXIDX,
10399 NODEENT_SYNTAX_FIXIDX,
6dcfb197 10400 OPENBSD_NULL_DEFINITION_FIXIDX,
129b92e3 10401 OBSTACK_LVALUE_CAST_FIXIDX,
2b0752cc 10402 OPENBSD_VA_START_FIXIDX,
3072d11f 10403 OSF_NAMESPACE_A_FIXIDX,
10404 OSF_NAMESPACE_C_FIXIDX,
a11c2c4d 10405 PTHREAD_INCOMPLETE_STRUCT_ARGUMENT_FIXIDX,
3072d11f 10406 READ_RET_TYPE_FIXIDX,
e68aa18b 10407 RPC_XDR_LVALUE_CAST_A_FIXIDX,
10408 RPC_XDR_LVALUE_CAST_B_FIXIDX,
3072d11f 10409 RS6000_DOUBLE_FIXIDX,
10410 RS6000_FCHMOD_FIXIDX,
10411 RS6000_PARAM_FIXIDX,
a6905708 10412 SOLARIS___RESTRICT_FIXIDX,
aee500d5 10413 SOLARIS_COMPLEX_FIXIDX,
a6905708 10414 SOLARIS_COMPLEX_CXX_FIXIDX,
5f7d4d97 10415 SOLARIS_CXX_LINKAGE_FIXIDX,
10416 SOLARIS_GETC_STRICT_STDC_FIXIDX,
3c017b47 10417 SOLARIS_GETS_C11_FIXIDX,
10418 SOLARIS_GETS_CXX14_FIXIDX,
d1ed71e5 10419 SOLARIS_INT_CONST_FIXIDX,
10420 SOLARIS_INT_LIMITS_1_FIXIDX,
10421 SOLARIS_INT_LIMITS_2_FIXIDX,
10422 SOLARIS_INT_LIMITS_3_FIXIDX,
e849ea70 10423 SOLARIS_MATH_1_FIXIDX,
d1ed71e5 10424 SOLARIS_MATH_10_FIXIDX,
e849ea70 10425 SOLARIS_MATH_2_FIXIDX,
10426 SOLARIS_MATH_3_FIXIDX,
10427 SOLARIS_MATH_4_FIXIDX,
e849ea70 10428 SOLARIS_MATH_8_FIXIDX,
10429 SOLARIS_MATH_9_FIXIDX,
59600e4c 10430 SOLARIS_MATH_11_FIXIDX,
13d9a983 10431 SOLARIS_MATH_12_FIXIDX,
458caa24 10432 SOLARIS_ONCE_INIT_1_FIXIDX,
69c86aa4 10433 SOLARIS_POSIX_SPAWN_RESTRICT_FIXIDX,
d1ed71e5 10434 SOLARIS_POW_INT_OVERLOAD_FIXIDX,
10435 SOLARIS_RWLOCK_INIT_1_FIXIDX,
5f7d4d97 10436 SOLARIS_STD___FILBUF_FIXIDX,
3c017b47 10437 SOLARIS_STD_GETS_CXX14_FIXIDX,
91eb7bbc 10438 SOLARIS_STDIO_TAG_FIXIDX,
3c017b47 10439 SOLARIS_STDLIB_NORETURN_FIXIDX,
3072d11f 10440 STATSSWTCH_FIXIDX,
10441 STDIO_STDARG_H_FIXIDX,
10442 STDIO_VA_LIST_FIXIDX,
925b9291 10443 STDIO_VA_LIST_CLIENTS_FIXIDX,
3072d11f 10444 STRICT_ANSI_NOT_FIXIDX,
10445 STRICT_ANSI_NOT_CTD_FIXIDX,
10446 STRICT_ANSI_ONLY_FIXIDX,
10447 STRUCT_FILE_FIXIDX,
10448 STRUCT_SOCKADDR_FIXIDX,
10449 SUN_AUTH_PROTO_FIXIDX,
10450 SUN_BOGUS_IFDEF_FIXIDX,
10451 SUN_CATMACRO_FIXIDX,
10452 SUN_MALLOC_FIXIDX,
10453 SUN_RUSERS_SEMI_FIXIDX,
10454 SUN_SIGNAL_FIXIDX,
3072d11f 10455 SUNOS_STRLEN_FIXIDX,
d4a8ec92 10456 SUSE_LINUX_VT_CXX_FIXIDX,
3c04ceca 10457 SVR4_DISABLE_OPT_FIXIDX,
3072d11f 10458 SVR4_GETCWD_FIXIDX,
10459 SVR4_PROFIL_FIXIDX,
d23689b2 10460 SVR4_SIGHANDLER_TYPE_FIXIDX,
630af039 10461 SVR4_UNDECLARED_GETRNGE_FIXIDX,
3072d11f 10462 SYSV68_STRING_FIXIDX,
10463 SYSZ_STDLIB_FOR_SUN_FIXIDX,
2a6f0f81 10464 THREAD_KEYWORD_FIXIDX,
3072d11f 10465 TINFO_CPLUSPLUS_FIXIDX,
3072d11f 10466 ULTRIX_CONST_FIXIDX,
10467 ULTRIX_CONST2_FIXIDX,
3072d11f 10468 VA_I960_MACRO_FIXIDX,
d1ed71e5 10469 VMS_ADD_MISSING_BRACES_FIXIDX,
10470 VMS_DECC_BUILTIN_FIXIDX,
f13b86b8 10471 VMS_DEFINE_CAN_USE_EXTERN_PREFIX_FIXIDX,
f13b86b8 10472 VMS_DISABLE_DECC_STRING_BUILTINS_FIXIDX,
1e6cd7f6 10473 VMS_DO_NOT_REDECLARE_HOSTALIAS_FIXIDX,
1e6cd7f6 10474 VMS_FORWARD_DECLARE_STRUCT_FIXIDX,
d1ed71e5 10475 VMS_NO_64BIT_GETOPT_FIXIDX,
1e6cd7f6 10476 VMS_USE_FAST_SETJMP_FIXIDX,
d1ed71e5 10477 VMS_USE_PRAGMA_EXTERN_MODEL_FIXIDX,
10478 VMS_USE_QUOTED_INCLUDE_FIXIDX,
3072d11f 10479 VOID_NULL_FIXIDX,
10480 VXWORKS_GCC_PROBLEM_FIXIDX,
32f37500 10481 VXWORKS_IOCTL_MACRO_FIXIDX,
10482 VXWORKS_MKDIR_MACRO_FIXIDX,
3072d11f 10483 VXWORKS_NEEDS_VXTYPES_FIXIDX,
10484 VXWORKS_NEEDS_VXWORKS_FIXIDX,
32f37500 10485 VXWORKS_REGS_FIXIDX,
3072d11f 10486 VXWORKS_TIME_FIXIDX,
32f37500 10487 VXWORKS_WRITE_CONST_FIXIDX,
3d2d7dab 10488 VXWORKS_IOLIB_INCLUDE_UNISTD_FIXIDX,
3072d11f 10489 X11_CLASS_FIXIDX,
10490 X11_CLASS_USAGE_FIXIDX,
10491 X11_NEW_FIXIDX,
d1ed71e5 10492 X11_SPRINTF_FIXIDX
3072d11f 10493} t_fixinc_idx;
10494
c1b28c63 10495tFixDesc fixDescList[ FIX_COUNT ] = {
3d906fac 10496 { zAab_Aix_StdioName, zAab_Aix_StdioList,
10497 apzAab_Aix_StdioMachs,
10498 AAB_AIX_STDIO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10499 aAab_Aix_StdioTests, apzAab_Aix_StdioPatch, 0 },
10500
81911845 10501 { zAab_Aix_FcntlName, zAab_Aix_FcntlList,
10502 apzAab_Aix_FcntlMachs,
10503 AAB_AIX_FCNTL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10504 aAab_Aix_FcntlTests, apzAab_Aix_FcntlPatch, 0 },
10505
f2563b02 10506 { zAab_Darwin7_9_Long_Double_FuncsName, zAab_Darwin7_9_Long_Double_FuncsList,
10507 apzAab_Darwin7_9_Long_Double_FuncsMachs,
10508 AAB_DARWIN7_9_LONG_DOUBLE_FUNCS_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
10509 aAab_Darwin7_9_Long_Double_FuncsTests, apzAab_Darwin7_9_Long_Double_FuncsPatch, 0 },
10510
bb304030 10511 { zAab_Fd_Zero_Asm_Posix_Types_HName, zAab_Fd_Zero_Asm_Posix_Types_HList,
6e791f25 10512 apzAab_Fd_Zero_Asm_Posix_Types_HMachs,
bb304030 10513 AAB_FD_ZERO_ASM_POSIX_TYPES_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
ee70a29d 10514 aAab_Fd_Zero_Asm_Posix_Types_HTests, apzAab_Fd_Zero_Asm_Posix_Types_HPatch, 0 },
e26c299a 10515
bb304030 10516 { zAab_Fd_Zero_Gnu_Types_HName, zAab_Fd_Zero_Gnu_Types_HList,
6e791f25 10517 apzAab_Fd_Zero_Gnu_Types_HMachs,
bb304030 10518 AAB_FD_ZERO_GNU_TYPES_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
ee70a29d 10519 aAab_Fd_Zero_Gnu_Types_HTests, apzAab_Fd_Zero_Gnu_Types_HPatch, 0 },
e26c299a 10520
bb304030 10521 { zAab_Fd_Zero_Selectbits_HName, zAab_Fd_Zero_Selectbits_HList,
6e791f25 10522 apzAab_Fd_Zero_Selectbits_HMachs,
bb304030 10523 AAB_FD_ZERO_SELECTBITS_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
ee70a29d 10524 aAab_Fd_Zero_Selectbits_HTests, apzAab_Fd_Zero_Selectbits_HPatch, 0 },
e26c299a 10525
bffe0cfe 10526 { zAab_Solaris_Sys_Varargs_HName, zAab_Solaris_Sys_Varargs_HList,
10527 apzAab_Solaris_Sys_Varargs_HMachs,
10528 AAB_SOLARIS_SYS_VARARGS_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
10529 aAab_Solaris_Sys_Varargs_HTests, apzAab_Solaris_Sys_Varargs_HPatch, 0 },
10530
b93c3ed1 10531 { zAab_Sun_MemcpyName, zAab_Sun_MemcpyList,
10532 apzAab_Sun_MemcpyMachs,
10533 AAB_SUN_MEMCPY_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
10534 aAab_Sun_MemcpyTests, apzAab_Sun_MemcpyPatch, 0 },
10535
32f37500 10536 { zAab_Vxworks_AssertName, zAab_Vxworks_AssertList,
10537 apzAab_Vxworks_AssertMachs,
10538 AAB_VXWORKS_ASSERT_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
10539 aAab_Vxworks_AssertTests, apzAab_Vxworks_AssertPatch, 0 },
10540
10541 { zAab_Vxworks_Regs_VxtypesName, zAab_Vxworks_Regs_VxtypesList,
10542 apzAab_Vxworks_Regs_VxtypesMachs,
10543 AAB_VXWORKS_REGS_VXTYPES_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
10544 aAab_Vxworks_Regs_VxtypesTests, apzAab_Vxworks_Regs_VxtypesPatch, 0 },
10545
32f37500 10546 { zAab_Vxworks_UnistdName, zAab_Vxworks_UnistdList,
10547 apzAab_Vxworks_UnistdMachs,
10548 AAB_VXWORKS_UNISTD_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
10549 aAab_Vxworks_UnistdTests, apzAab_Vxworks_UnistdPatch, 0 },
10550
8f1baf26 10551 { zAix_AssertName, zAix_AssertList,
10552 apzAix_AssertMachs,
10553 AIX_ASSERT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10554 aAix_AssertTests, apzAix_AssertPatch, 0 },
10555
253f9954 10556 { zAix_ComplexName, zAix_ComplexList,
10557 apzAix_ComplexMachs,
82c99fed 10558 AIX_COMPLEX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
253f9954 10559 aAix_ComplexTests, apzAix_ComplexPatch, 0 },
10560
c82f076e 10561 { zAix_ExterncName, zAix_ExterncList,
10562 apzAix_ExterncMachs,
10563 AIX_EXTERNC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10564 aAix_ExterncTests, apzAix_ExterncPatch, 0 },
10565
10566 { zAix_Externcpp1Name, zAix_Externcpp1List,
10567 apzAix_Externcpp1Machs,
10568 AIX_EXTERNCPP1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10569 aAix_Externcpp1Tests, apzAix_Externcpp1Patch, 0 },
10570
10571 { zAix_Externcpp2Name, zAix_Externcpp2List,
10572 apzAix_Externcpp2Machs,
10573 AIX_EXTERNCPP2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10574 aAix_Externcpp2Tests, apzAix_Externcpp2Patch, 0 },
10575
0560f6fc 10576 { zAix_MallocName, zAix_MallocList,
10577 apzAix_MallocMachs,
10578 AIX_MALLOC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10579 aAix_MallocTests, apzAix_MallocPatch, 0 },
10580
eafa229b 10581 { zAix_Net_If_ArpName, zAix_Net_If_ArpList,
10582 apzAix_Net_If_ArpMachs,
10583 AIX_NET_IF_ARP_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10584 aAix_Net_If_ArpTests, apzAix_Net_If_ArpPatch, 0 },
10585
3c47853b 10586 { zAix_NullName, zAix_NullList,
10587 apzAix_NullMachs,
10588 AIX_NULL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10589 aAix_NullTests, apzAix_NullPatch, 0 },
10590
4cad3a31 10591 { zAix_Once_Init_1Name, zAix_Once_Init_1List,
10592 apzAix_Once_Init_1Machs,
10593 AIX_ONCE_INIT_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10594 aAix_Once_Init_1Tests, apzAix_Once_Init_1Patch, 0 },
10595
10596 { zAix_Once_Init_2Name, zAix_Once_Init_2List,
10597 apzAix_Once_Init_2Machs,
10598 AIX_ONCE_INIT_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10599 aAix_Once_Init_2Tests, apzAix_Once_Init_2Patch, 0 },
10600
3adcc56f 10601 { zAix_Mutex_Initializer_1Name, zAix_Mutex_Initializer_1List,
10602 apzAix_Mutex_Initializer_1Machs,
10603 AIX_MUTEX_INITIALIZER_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10604 aAix_Mutex_Initializer_1Tests, apzAix_Mutex_Initializer_1Patch, 0 },
10605
10606 { zAix_Cond_Initializer_1Name, zAix_Cond_Initializer_1List,
10607 apzAix_Cond_Initializer_1Machs,
10608 AIX_COND_INITIALIZER_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10609 aAix_Cond_Initializer_1Tests, apzAix_Cond_Initializer_1Patch, 0 },
10610
10611 { zAix_Rwlock_Initializer_1Name, zAix_Rwlock_Initializer_1List,
10612 apzAix_Rwlock_Initializer_1Machs,
10613 AIX_RWLOCK_INITIALIZER_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10614 aAix_Rwlock_Initializer_1Tests, apzAix_Rwlock_Initializer_1Patch, 0 },
10615
e494b1bb 10616 { zAix_PthreadName, zAix_PthreadList,
10617 apzAix_PthreadMachs,
10618 AIX_PTHREAD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
ee70a29d 10619 aAix_PthreadTests, apzAix_PthreadPatch, 0 },
e494b1bb 10620
82c99fed 10621 { zAix_Stdint_1Name, zAix_Stdint_1List,
10622 apzAix_Stdint_1Machs,
10623 AIX_STDINT_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10624 aAix_Stdint_1Tests, apzAix_Stdint_1Patch, 0 },
10625
10626 { zAix_Stdint_2Name, zAix_Stdint_2List,
10627 apzAix_Stdint_2Machs,
10628 AIX_STDINT_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10629 aAix_Stdint_2Tests, apzAix_Stdint_2Patch, 0 },
10630
10631 { zAix_Stdint_3Name, zAix_Stdint_3List,
10632 apzAix_Stdint_3Machs,
10633 AIX_STDINT_3_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10634 aAix_Stdint_3Tests, apzAix_Stdint_3Patch, 0 },
10635
10636 { zAix_Stdint_4Name, zAix_Stdint_4List,
10637 apzAix_Stdint_4Machs,
10638 AIX_STDINT_4_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10639 aAix_Stdint_4Tests, apzAix_Stdint_4Patch, 0 },
10640
10641 { zAix_Stdint_5Name, zAix_Stdint_5List,
10642 apzAix_Stdint_5Machs,
10643 AIX_STDINT_5_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10644 aAix_Stdint_5Tests, apzAix_Stdint_5Patch, 0 },
10645
11e92429 10646 { zAix_Stdio_InlineName, zAix_Stdio_InlineList,
10647 apzAix_Stdio_InlineMachs,
10648 AIX_STDIO_INLINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10649 aAix_Stdio_InlineTests, apzAix_Stdio_InlinePatch, 0 },
10650
b73b1330 10651 { zAix_Stdlib_MallocName, zAix_Stdlib_MallocList,
10652 apzAix_Stdlib_MallocMachs,
10653 AIX_STDLIB_MALLOC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10654 aAix_Stdlib_MallocTests, apzAix_Stdlib_MallocPatch, 0 },
10655
10656 { zAix_Stdlib_ReallocName, zAix_Stdlib_ReallocList,
10657 apzAix_Stdlib_ReallocMachs,
10658 AIX_STDLIB_REALLOC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10659 aAix_Stdlib_ReallocTests, apzAix_Stdlib_ReallocPatch, 0 },
10660
10661 { zAix_Stdlib_CallocName, zAix_Stdlib_CallocList,
10662 apzAix_Stdlib_CallocMachs,
10663 AIX_STDLIB_CALLOC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10664 aAix_Stdlib_CallocTests, apzAix_Stdlib_CallocPatch, 0 },
10665
10666 { zAix_Stdlib_VallocName, zAix_Stdlib_VallocList,
10667 apzAix_Stdlib_VallocMachs,
10668 AIX_STDLIB_VALLOC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10669 aAix_Stdlib_VallocTests, apzAix_Stdlib_VallocPatch, 0 },
10670
84597344 10671 { zAix_Stdlib_Vec_MallocName, zAix_Stdlib_Vec_MallocList,
10672 apzAix_Stdlib_Vec_MallocMachs,
10673 AIX_STDLIB_VEC_MALLOC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10674 aAix_Stdlib_Vec_MallocTests, apzAix_Stdlib_Vec_MallocPatch, 0 },
10675
10676 { zAix_Stdlib_Vec_CallocName, zAix_Stdlib_Vec_CallocList,
10677 apzAix_Stdlib_Vec_CallocMachs,
10678 AIX_STDLIB_VEC_CALLOC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10679 aAix_Stdlib_Vec_CallocTests, apzAix_Stdlib_Vec_CallocPatch, 0 },
10680
7a26bedc 10681 { zAix_Strtof_ConstName, zAix_Strtof_ConstList,
10682 apzAix_Strtof_ConstMachs,
10683 AIX_STRTOF_CONST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10684 aAix_Strtof_ConstTests, apzAix_Strtof_ConstPatch, 0 },
10685
e494b1bb 10686 { zAix_SysmachineName, zAix_SysmachineList,
10687 apzAix_SysmachineMachs,
10688 AIX_SYSMACHINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
ee70a29d 10689 aAix_SysmachineTests, apzAix_SysmachinePatch, 0 },
e494b1bb 10690
85df6fdf 10691 { zAix_Syswait_2Name, zAix_Syswait_2List,
10692 apzAix_Syswait_2Machs,
10693 AIX_SYSWAIT_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10694 aAix_Syswait_2Tests, apzAix_Syswait_2Patch, 0 },
10695
fdb8fb96 10696 { zAix_VolatileName, zAix_VolatileList,
6e791f25 10697 apzAix_VolatileMachs,
472aa368 10698 AIX_VOLATILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
ee70a29d 10699 aAix_VolatileTests, apzAix_VolatilePatch, 0 },
fdb8fb96 10700
056a9bf0 10701 { zAix_UnistdName, zAix_UnistdList,
10702 apzAix_UnistdMachs,
10703 AIX_UNISTD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10704 aAix_UnistdTests, apzAix_UnistdPatch, 0 },
10705
d1ec871e 10706 { zAlpha___AssertName, zAlpha___AssertList,
10707 apzAlpha___AssertMachs,
10708 ALPHA___ASSERT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10709 aAlpha___AssertTests, apzAlpha___AssertPatch, 0 },
10710
03112946 10711 { zAlpha_AssertName, zAlpha_AssertList,
10712 apzAlpha_AssertMachs,
10713 ALPHA_ASSERT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10714 aAlpha_AssertTests, apzAlpha_AssertPatch, 0 },
10715
fdb8fb96 10716 { zAlpha_GetoptName, zAlpha_GetoptList,
6e791f25 10717 apzAlpha_GetoptMachs,
472aa368 10718 ALPHA_GETOPT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
ee70a29d 10719 aAlpha_GetoptTests, apzAlpha_GetoptPatch, 0 },
fdb8fb96 10720
2013a847 10721 { zAlpha_If_SemicolonName, zAlpha_If_SemicolonList,
10722 apzAlpha_If_SemicolonMachs,
10723 ALPHA_IF_SEMICOLON_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10724 aAlpha_If_SemicolonTests, apzAlpha_If_SemicolonPatch, 0 },
10725
fdb8fb96 10726 { zAlpha_ParensName, zAlpha_ParensList,
6e791f25 10727 apzAlpha_ParensMachs,
472aa368 10728 ALPHA_PARENS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
ee70a29d 10729 aAlpha_ParensTests, apzAlpha_ParensPatch, 0 },
fdb8fb96 10730
10731 { zAlpha_SbrkName, zAlpha_SbrkList,
6e791f25 10732 apzAlpha_SbrkMachs,
472aa368 10733 ALPHA_SBRK_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
ee70a29d 10734 aAlpha_SbrkTests, apzAlpha_SbrkPatch, 0 },
fdb8fb96 10735
2c59c6d3 10736 { zAvoid_Bool_DefineName, zAvoid_Bool_DefineList,
10737 apzAvoid_Bool_DefineMachs,
10738 AVOID_BOOL_DEFINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
ee70a29d 10739 aAvoid_Bool_DefineTests, apzAvoid_Bool_DefinePatch, 0 },
2c59c6d3 10740
10741 { zAvoid_Bool_TypeName, zAvoid_Bool_TypeList,
10742 apzAvoid_Bool_TypeMachs,
10743 AVOID_BOOL_TYPE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
ee70a29d 10744 aAvoid_Bool_TypeTests, apzAvoid_Bool_TypePatch, 0 },
fdb8fb96 10745
7ab30fe8 10746 { zAvoid_Wchar_T_TypeName, zAvoid_Wchar_T_TypeList,
10747 apzAvoid_Wchar_T_TypeMachs,
10748 AVOID_WCHAR_T_TYPE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
ee70a29d 10749 aAvoid_Wchar_T_TypeTests, apzAvoid_Wchar_T_TypePatch, 0 },
7ab30fe8 10750
fdb8fb96 10751 { zBad_Struct_TermName, zBad_Struct_TermList,
6e791f25 10752 apzBad_Struct_TermMachs,
2c59c6d3 10753 BAD_STRUCT_TERM_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
ee70a29d 10754 aBad_Struct_TermTests, apzBad_Struct_TermPatch, 0 },
fdb8fb96 10755
10756 { zBadquoteName, zBadquoteList,
6e791f25 10757 apzBadquoteMachs,
2c59c6d3 10758 BADQUOTE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
ee70a29d 10759 aBadquoteTests, apzBadquotePatch, 0 },
fdb8fb96 10760
fdb8fb96 10761 { zBroken_Assert_StdioName, zBroken_Assert_StdioList,
6e791f25 10762 apzBroken_Assert_StdioMachs,
e6650807 10763 BROKEN_ASSERT_STDIO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
ee70a29d 10764 aBroken_Assert_StdioTests, apzBroken_Assert_StdioPatch, 0 },
fdb8fb96 10765
10766 { zBroken_Assert_StdlibName, zBroken_Assert_StdlibList,
6e791f25 10767 apzBroken_Assert_StdlibMachs,
e6650807 10768 BROKEN_ASSERT_STDLIB_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
ee70a29d 10769 aBroken_Assert_StdlibTests, apzBroken_Assert_StdlibPatch, 0 },
fdb8fb96 10770
58d8674b 10771 { zBroken_CabsName, zBroken_CabsList,
6e791f25 10772 apzBroken_CabsMachs,
462510b2 10773 BROKEN_CABS_TEST_CT, FD_MACH_ONLY,
ee70a29d 10774 aBroken_CabsTests, apzBroken_CabsPatch, 0 },
58d8674b 10775
baee91be 10776 { zBroken_NanName, zBroken_NanList,
10777 apzBroken_NanMachs,
10778 BROKEN_NAN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10779 aBroken_NanTests, apzBroken_NanPatch, 0 },
10780
d45e22c2 10781 { zBsd_Stdio_Attrs_ConflictName, zBsd_Stdio_Attrs_ConflictList,
10782 apzBsd_Stdio_Attrs_ConflictMachs,
10783 BSD_STDIO_ATTRS_CONFLICT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10784 aBsd_Stdio_Attrs_ConflictTests, apzBsd_Stdio_Attrs_ConflictPatch, 0 },
10785
cfe5be71 10786 { zCtrl_Quotes_DefName, zCtrl_Quotes_DefList,
10787 apzCtrl_Quotes_DefMachs,
10788 CTRL_QUOTES_DEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
ee70a29d 10789 aCtrl_Quotes_DefTests, apzCtrl_Quotes_DefPatch, 0 },
cfe5be71 10790
10791 { zCtrl_Quotes_UseName, zCtrl_Quotes_UseList,
10792 apzCtrl_Quotes_UseMachs,
10793 CTRL_QUOTES_USE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
ee70a29d 10794 aCtrl_Quotes_UseTests, apzCtrl_Quotes_UsePatch, 0 },
cfe5be71 10795
10796 { zCxx_UnreadyName, zCxx_UnreadyList,
10797 apzCxx_UnreadyMachs,
10798 CXX_UNREADY_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
ee70a29d 10799 aCxx_UnreadyTests, apzCxx_UnreadyPatch, 0 },
cfe5be71 10800
a11195e1 10801 { zDarwin_AvailabilityinternalName, zDarwin_AvailabilityinternalList,
10802 apzDarwin_AvailabilityinternalMachs,
10803 DARWIN_AVAILABILITYINTERNAL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10804 aDarwin_AvailabilityinternalTests, apzDarwin_AvailabilityinternalPatch, 0 },
10805
32f37500 10806 { zDarwin_9_Long_Double_Funcs_2Name, zDarwin_9_Long_Double_Funcs_2List,
10807 apzDarwin_9_Long_Double_Funcs_2Machs,
10808 DARWIN_9_LONG_DOUBLE_FUNCS_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10809 aDarwin_9_Long_Double_Funcs_2Tests, apzDarwin_9_Long_Double_Funcs_2Patch, 0 },
10810
1908d6ac 10811 { zDarwin_ExterncName, zDarwin_ExterncList,
10812 apzDarwin_ExterncMachs,
10813 DARWIN_EXTERNC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10814 aDarwin_ExterncTests, apzDarwin_ExterncPatch, 0 },
10815
975d636c 10816 { zDarwin_Gcc4_BreakageName, zDarwin_Gcc4_BreakageList,
10817 apzDarwin_Gcc4_BreakageMachs,
10818 DARWIN_GCC4_BREAKAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10819 aDarwin_Gcc4_BreakageTests, apzDarwin_Gcc4_BreakagePatch, 0 },
d6856a0e 10820
10821 { zDarwin_Longjmp_NoreturnName, zDarwin_Longjmp_NoreturnList,
10822 apzDarwin_Longjmp_NoreturnMachs,
10823 DARWIN_LONGJMP_NORETURN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10824 aDarwin_Longjmp_NoreturnTests, apzDarwin_Longjmp_NoreturnPatch, 0 },
975d636c 10825
a11195e1 10826 { zDarwin_Os_Trace_1Name, zDarwin_Os_Trace_1List,
10827 apzDarwin_Os_Trace_1Machs,
10828 DARWIN_OS_TRACE_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10829 aDarwin_Os_Trace_1Tests, apzDarwin_Os_Trace_1Patch, 0 },
10830
10831 { zDarwin_Os_Trace_2Name, zDarwin_Os_Trace_2List,
10832 apzDarwin_Os_Trace_2Machs,
10833 DARWIN_OS_TRACE_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10834 aDarwin_Os_Trace_2Tests, apzDarwin_Os_Trace_2Patch, 0 },
10835
10836 { zDarwin_Os_Trace_3Name, zDarwin_Os_Trace_3List,
10837 apzDarwin_Os_Trace_3Machs,
10838 DARWIN_OS_TRACE_3_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10839 aDarwin_Os_Trace_3Tests, apzDarwin_Os_Trace_3Patch, 0 },
10840
3067e435 10841 { zDarwin_Private_ExternName, zDarwin_Private_ExternList,
10842 apzDarwin_Private_ExternMachs,
10843 DARWIN_PRIVATE_EXTERN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10844 aDarwin_Private_ExternTests, apzDarwin_Private_ExternPatch, 0 },
10845
0e1f6b4f 10846 { zDarwin_Stdint_1Name, zDarwin_Stdint_1List,
10847 apzDarwin_Stdint_1Machs,
10848 DARWIN_STDINT_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10849 aDarwin_Stdint_1Tests, apzDarwin_Stdint_1Patch, 0 },
10850
10851 { zDarwin_Stdint_2Name, zDarwin_Stdint_2List,
10852 apzDarwin_Stdint_2Machs,
10853 DARWIN_STDINT_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10854 aDarwin_Stdint_2Tests, apzDarwin_Stdint_2Patch, 0 },
10855
10856 { zDarwin_Stdint_3Name, zDarwin_Stdint_3List,
10857 apzDarwin_Stdint_3Machs,
10858 DARWIN_STDINT_3_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10859 aDarwin_Stdint_3Tests, apzDarwin_Stdint_3Patch, 0 },
10860
10861 { zDarwin_Stdint_4Name, zDarwin_Stdint_4List,
10862 apzDarwin_Stdint_4Machs,
10863 DARWIN_STDINT_4_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10864 aDarwin_Stdint_4Tests, apzDarwin_Stdint_4Patch, 0 },
10865
c73f01c5 10866 { zDarwin_Stdint_5Name, zDarwin_Stdint_5List,
10867 apzDarwin_Stdint_5Machs,
10868 DARWIN_STDINT_5_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10869 aDarwin_Stdint_5Tests, apzDarwin_Stdint_5Patch, 0 },
10870
10871 { zDarwin_Stdint_6Name, zDarwin_Stdint_6List,
10872 apzDarwin_Stdint_6Machs,
10873 DARWIN_STDINT_6_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10874 aDarwin_Stdint_6Tests, apzDarwin_Stdint_6Patch, 0 },
10875
10876 { zDarwin_Stdint_7Name, zDarwin_Stdint_7List,
10877 apzDarwin_Stdint_7Machs,
10878 DARWIN_STDINT_7_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10879 aDarwin_Stdint_7Tests, apzDarwin_Stdint_7Patch, 0 },
10880
62f18056 10881 { zDarwin_Ucred__AtomicName, zDarwin_Ucred__AtomicList,
10882 apzDarwin_Ucred__AtomicMachs,
10883 DARWIN_UCRED__ATOMIC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10884 aDarwin_Ucred__AtomicTests, apzDarwin_Ucred__AtomicPatch, 0 },
10885
38ebab8a 10886 { zDec_Intern_AsmName, zDec_Intern_AsmList,
6e791f25 10887 apzDec_Intern_AsmMachs,
38ebab8a 10888 DEC_INTERN_ASM_TEST_CT, FD_MACH_ONLY,
ee70a29d 10889 aDec_Intern_AsmTests, apzDec_Intern_AsmPatch, 0 },
38ebab8a 10890
8c74272d 10891 { zDjgpp_Wchar_HName, zDjgpp_Wchar_HList,
10892 apzDjgpp_Wchar_HMachs,
10893 DJGPP_WCHAR_H_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10894 aDjgpp_Wchar_HTests, apzDjgpp_Wchar_HPatch, 0 },
10895
fdb8fb96 10896 { zEcd_CursorName, zEcd_CursorList,
6e791f25 10897 apzEcd_CursorMachs,
2c59c6d3 10898 ECD_CURSOR_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
ee70a29d 10899 aEcd_CursorTests, apzEcd_CursorPatch, 0 },
fdb8fb96 10900
d1ed71e5 10901 { zFeraiseexcept_Nosse_DivbyzeroName, zFeraiseexcept_Nosse_DivbyzeroList,
10902 apzFeraiseexcept_Nosse_DivbyzeroMachs,
10903 FERAISEEXCEPT_NOSSE_DIVBYZERO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10904 aFeraiseexcept_Nosse_DivbyzeroTests, apzFeraiseexcept_Nosse_DivbyzeroPatch, 0 },
10905
10906 { zFeraiseexcept_Nosse_InvalidName, zFeraiseexcept_Nosse_InvalidList,
10907 apzFeraiseexcept_Nosse_InvalidMachs,
10908 FERAISEEXCEPT_NOSSE_INVALID_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10909 aFeraiseexcept_Nosse_InvalidTests, apzFeraiseexcept_Nosse_InvalidPatch, 0 },
10910
65a92405 10911 { zFreebsd_Gcc3_BreakageName, zFreebsd_Gcc3_BreakageList,
10912 apzFreebsd_Gcc3_BreakageMachs,
10913 FREEBSD_GCC3_BREAKAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10914 aFreebsd_Gcc3_BreakageTests, apzFreebsd_Gcc3_BreakagePatch, 0 },
10915
f9ac0b87 10916 { zFreebsd_Gcc4_BreakageName, zFreebsd_Gcc4_BreakageList,
10917 apzFreebsd_Gcc4_BreakageMachs,
10918 FREEBSD_GCC4_BREAKAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10919 aFreebsd_Gcc4_BreakageTests, apzFreebsd_Gcc4_BreakagePatch, 0 },
10920
efb8e7bf 10921 { zGlibc_C99_Inline_1Name, zGlibc_C99_Inline_1List,
10922 apzGlibc_C99_Inline_1Machs,
10923 GLIBC_C99_INLINE_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10924 aGlibc_C99_Inline_1Tests, apzGlibc_C99_Inline_1Patch, 0 },
10925
661832db 10926 { zGlibc_C99_Inline_1aName, zGlibc_C99_Inline_1aList,
10927 apzGlibc_C99_Inline_1aMachs,
10928 GLIBC_C99_INLINE_1A_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10929 aGlibc_C99_Inline_1aTests, apzGlibc_C99_Inline_1aPatch, 0 },
10930
efb8e7bf 10931 { zGlibc_C99_Inline_2Name, zGlibc_C99_Inline_2List,
10932 apzGlibc_C99_Inline_2Machs,
10933 GLIBC_C99_INLINE_2_TEST_CT, FD_MACH_ONLY,
10934 aGlibc_C99_Inline_2Tests, apzGlibc_C99_Inline_2Patch, 0 },
10935
10936 { zGlibc_C99_Inline_3Name, zGlibc_C99_Inline_3List,
10937 apzGlibc_C99_Inline_3Machs,
10938 GLIBC_C99_INLINE_3_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10939 aGlibc_C99_Inline_3Tests, apzGlibc_C99_Inline_3Patch, 0 },
10940
10941 { zGlibc_C99_Inline_4Name, zGlibc_C99_Inline_4List,
10942 apzGlibc_C99_Inline_4Machs,
10943 GLIBC_C99_INLINE_4_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10944 aGlibc_C99_Inline_4Tests, apzGlibc_C99_Inline_4Patch, 0 },
10945
a1b11617 10946 { zGlibc_Mutex_InitName, zGlibc_Mutex_InitList,
10947 apzGlibc_Mutex_InitMachs,
10948 GLIBC_MUTEX_INIT_TEST_CT, FD_MACH_ONLY,
10949 aGlibc_Mutex_InitTests, apzGlibc_Mutex_InitPatch, 0 },
10950
57a812b7 10951 { zGlibc_StdintName, zGlibc_StdintList,
10952 apzGlibc_StdintMachs,
10953 GLIBC_STDINT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10954 aGlibc_StdintTests, apzGlibc_StdintPatch, 0 },
10955
5aee6890 10956 { zGlibc_StrncpyName, zGlibc_StrncpyList,
10957 apzGlibc_StrncpyMachs,
10958 GLIBC_STRNCPY_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10959 aGlibc_StrncpyTests, apzGlibc_StrncpyPatch, 0 },
10960
a75b1c71 10961 { zGlibc_TgmathName, zGlibc_TgmathList,
10962 apzGlibc_TgmathMachs,
10963 GLIBC_TGMATH_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10964 aGlibc_TgmathTests, apzGlibc_TgmathPatch, 0 },
10965
3072d11f 10966 { zGnu_TypesName, zGnu_TypesList,
10967 apzGnu_TypesMachs,
09a31484 10968 GNU_TYPES_TEST_CT, FD_MACH_IFNOT | FD_SUBROUTINE,
3072d11f 10969 aGnu_TypesTests, apzGnu_TypesPatch, 0 },
10970
fdb8fb96 10971 { zHp_InlineName, zHp_InlineList,
6e791f25 10972 apzHp_InlineMachs,
2c59c6d3 10973 HP_INLINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
ee70a29d 10974 aHp_InlineTests, apzHp_InlinePatch, 0 },
fdb8fb96 10975
10976 { zHp_SysfileName, zHp_SysfileList,
6e791f25 10977 apzHp_SysfileMachs,
2c59c6d3 10978 HP_SYSFILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
ee70a29d 10979 aHp_SysfileTests, apzHp_SysfilePatch, 0 },
fdb8fb96 10980
b32d497c 10981 { zHppa_Hpux_Fp_MacrosName, zHppa_Hpux_Fp_MacrosList,
10982 apzHppa_Hpux_Fp_MacrosMachs,
10983 HPPA_HPUX_FP_MACROS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10984 aHppa_Hpux_Fp_MacrosTests, apzHppa_Hpux_Fp_MacrosPatch, 0 },
10985
7b900f1a 10986 { zHpux10_Cpp_Pow_InlineName, zHpux10_Cpp_Pow_InlineList,
10987 apzHpux10_Cpp_Pow_InlineMachs,
10988 HPUX10_CPP_POW_INLINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10989 aHpux10_Cpp_Pow_InlineTests, apzHpux10_Cpp_Pow_InlinePatch, 0 },
10990
c6738ff5 10991 { zHpux11_Cpp_Pow_InlineName, zHpux11_Cpp_Pow_InlineList,
10992 apzHpux11_Cpp_Pow_InlineMachs,
10993 HPUX11_CPP_POW_INLINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10994 aHpux11_Cpp_Pow_InlineTests, apzHpux11_Cpp_Pow_InlinePatch, 0 },
10995
ebf664b2 10996 { zHpux10_Ctype_Declarations1Name, zHpux10_Ctype_Declarations1List,
10997 apzHpux10_Ctype_Declarations1Machs,
10998 HPUX10_CTYPE_DECLARATIONS1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10999 aHpux10_Ctype_Declarations1Tests, apzHpux10_Ctype_Declarations1Patch, 0 },
11000
11001 { zHpux10_Ctype_Declarations2Name, zHpux10_Ctype_Declarations2List,
11002 apzHpux10_Ctype_Declarations2Machs,
11003 HPUX10_CTYPE_DECLARATIONS2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11004 aHpux10_Ctype_Declarations2Tests, apzHpux10_Ctype_Declarations2Patch, 0 },
11005
37935110 11006 { zHpux10_Stdio_DeclarationsName, zHpux10_Stdio_DeclarationsList,
11007 apzHpux10_Stdio_DeclarationsMachs,
11008 HPUX10_STDIO_DECLARATIONS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11009 aHpux10_Stdio_DeclarationsTests, apzHpux10_Stdio_DeclarationsPatch, 0 },
11010
f20a1c45 11011 { zHppa_Hpux11_AllocaName, zHppa_Hpux11_AllocaList,
11012 apzHppa_Hpux11_AllocaMachs,
11013 HPPA_HPUX11_ALLOCA_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11014 aHppa_Hpux11_AllocaTests, apzHppa_Hpux11_AllocaPatch, 0 },
11015
b93c3ed1 11016 { zHpux11_AbsName, zHpux11_AbsList,
11017 apzHpux11_AbsMachs,
4842028b 11018 HPUX11_ABS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
b93c3ed1 11019 aHpux11_AbsTests, apzHpux11_AbsPatch, 0 },
11020
dcc83eef 11021 { zHpux11_Lwp_Rwlock_ValidName, zHpux11_Lwp_Rwlock_ValidList,
11022 apzHpux11_Lwp_Rwlock_ValidMachs,
11023 HPUX11_LWP_RWLOCK_VALID_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11024 aHpux11_Lwp_Rwlock_ValidTests, apzHpux11_Lwp_Rwlock_ValidPatch, 0 },
11025
d1ed71e5 11026 { zHpux11_Extern_SendfileName, zHpux11_Extern_SendfileList,
11027 apzHpux11_Extern_SendfileMachs,
11028 HPUX11_EXTERN_SENDFILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11029 aHpux11_Extern_SendfileTests, apzHpux11_Extern_SendfilePatch, 0 },
11030
11031 { zHpux11_Extern_SendpathName, zHpux11_Extern_SendpathList,
11032 apzHpux11_Extern_SendpathMachs,
11033 HPUX11_EXTERN_SENDPATH_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11034 aHpux11_Extern_SendpathTests, apzHpux11_Extern_SendpathPatch, 0 },
11035
ca58af19 11036 { zHpux11_FabsfName, zHpux11_FabsfList,
11037 apzHpux11_FabsfMachs,
11038 HPUX11_FABSF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11039 aHpux11_FabsfTests, apzHpux11_FabsfPatch, 0 },
11040
edbb3b00 11041 { zHpux11_Pthread_PointerName, zHpux11_Pthread_PointerList,
11042 apzHpux11_Pthread_PointerMachs,
11043 HPUX11_PTHREAD_POINTER_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11044 aHpux11_Pthread_PointerTests, apzHpux11_Pthread_PointerPatch, 0 },
11045
b32d497c 11046 { zHpux11_Pthread_ConstName, zHpux11_Pthread_ConstList,
11047 apzHpux11_Pthread_ConstMachs,
11048 HPUX11_PTHREAD_CONST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11049 aHpux11_Pthread_ConstTests, apzHpux11_Pthread_ConstPatch, 0 },
11050
c0854bd5 11051 { zHpux11_Size_TName, zHpux11_Size_TList,
11052 apzHpux11_Size_TMachs,
11053 HPUX11_SIZE_T_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11054 aHpux11_Size_TTests, apzHpux11_Size_TPatch, 0 },
11055
75dc2242 11056 { zHpux11_SnprintfName, zHpux11_SnprintfList,
11057 apzHpux11_SnprintfMachs,
11058 HPUX11_SNPRINTF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11059 aHpux11_SnprintfTests, apzHpux11_SnprintfPatch, 0 },
11060
a0d38f0b 11061 { zHpux11_VsnprintfName, zHpux11_VsnprintfList,
11062 apzHpux11_VsnprintfMachs,
11063 HPUX11_VSNPRINTF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11064 aHpux11_VsnprintfTests, apzHpux11_VsnprintfPatch, 0 },
11065
122d538c 11066 { zHpux_VsscanfName, zHpux_VsscanfList,
11067 apzHpux_VsscanfMachs,
11068 HPUX_VSSCANF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11069 aHpux_VsscanfTests, apzHpux_VsscanfPatch, 0 },
11070
2c59c6d3 11071 { zHpux8_Bogus_InlinesName, zHpux8_Bogus_InlinesList,
11072 apzHpux8_Bogus_InlinesMachs,
11073 HPUX8_BOGUS_INLINES_TEST_CT, FD_MACH_ONLY,
ee70a29d 11074 aHpux8_Bogus_InlinesTests, apzHpux8_Bogus_InlinesPatch, 0 },
2c59c6d3 11075
d1ed71e5 11076 { zHpux_C99_IntptrName, zHpux_C99_IntptrList,
11077 apzHpux_C99_IntptrMachs,
11078 HPUX_C99_INTPTR_TEST_CT, FD_MACH_ONLY,
11079 aHpux_C99_IntptrTests, apzHpux_C99_IntptrPatch, 0 },
11080
11081 { zHpux_C99_InttypesName, zHpux_C99_InttypesList,
11082 apzHpux_C99_InttypesMachs,
11083 HPUX_C99_INTTYPES_TEST_CT, FD_MACH_ONLY,
11084 aHpux_C99_InttypesTests, apzHpux_C99_InttypesPatch, 0 },
11085
11086 { zHpux_C99_Inttypes2Name, zHpux_C99_Inttypes2List,
11087 apzHpux_C99_Inttypes2Machs,
11088 HPUX_C99_INTTYPES2_TEST_CT, FD_MACH_ONLY,
11089 aHpux_C99_Inttypes2Tests, apzHpux_C99_Inttypes2Patch, 0 },
11090
ebf664b2 11091 { zHpux_Ctype_MacrosName, zHpux_Ctype_MacrosList,
11092 apzHpux_Ctype_MacrosMachs,
11093 HPUX_CTYPE_MACROS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11094 aHpux_Ctype_MacrosTests, apzHpux_Ctype_MacrosPatch, 0 },
11095
d1ed71e5 11096 { zHpux_Extern_ErrnoName, zHpux_Extern_ErrnoList,
11097 apzHpux_Extern_ErrnoMachs,
11098 HPUX_EXTERN_ERRNO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11099 aHpux_Extern_ErrnoTests, apzHpux_Extern_ErrnoPatch, 0 },
11100
1589683c 11101 { zHpux_HtonlName, zHpux_HtonlList,
11102 apzHpux_HtonlMachs,
11103 HPUX_HTONL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11104 aHpux_HtonlTests, apzHpux_HtonlPatch, 0 },
11105
d1ed71e5 11106 { zHpux_Imaginary_IName, zHpux_Imaginary_IList,
11107 apzHpux_Imaginary_IMachs,
11108 HPUX_IMAGINARY_I_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11109 aHpux_Imaginary_ITests, apzHpux_Imaginary_IPatch, 0 },
11110
11111 { zHpux_Inttype_Int8_TName, zHpux_Inttype_Int8_TList,
11112 apzHpux_Inttype_Int8_TMachs,
11113 HPUX_INTTYPE_INT8_T_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11114 aHpux_Inttype_Int8_TTests, apzHpux_Inttype_Int8_TPatch, 0 },
11115
ebf664b2 11116 { zHpux_Long_DoubleName, zHpux_Long_DoubleList,
11117 apzHpux_Long_DoubleMachs,
11118 HPUX_LONG_DOUBLE_TEST_CT, FD_MACH_ONLY,
11119 aHpux_Long_DoubleTests, apzHpux_Long_DoublePatch, 0 },
11120
42fd8f40 11121 { zHpux_Long_Double_2Name, zHpux_Long_Double_2List,
11122 apzHpux_Long_Double_2Machs,
11123 HPUX_LONG_DOUBLE_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11124 aHpux_Long_Double_2Tests, apzHpux_Long_Double_2Patch, 0 },
11125
3dd59d44 11126 { zHpux_Pthread_InitializersName, zHpux_Pthread_InitializersList,
11127 apzHpux_Pthread_InitializersMachs,
11128 HPUX_PTHREAD_INITIALIZERS_TEST_CT, FD_MACH_ONLY,
11129 aHpux_Pthread_InitializersTests, apzHpux_Pthread_InitializersPatch, 0 },
11130
d1ed71e5 11131 { zHpux_Spu_InfoName, zHpux_Spu_InfoList,
11132 apzHpux_Spu_InfoMachs,
11133 HPUX_SPU_INFO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11134 aHpux_Spu_InfoTests, apzHpux_Spu_InfoPatch, 0 },
42fd8f40 11135
3c36388d 11136 { zHpux_Stdint_Least_FastName, zHpux_Stdint_Least_FastList,
11137 apzHpux_Stdint_Least_FastMachs,
11138 HPUX_STDINT_LEAST_FAST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11139 aHpux_Stdint_Least_FastTests, apzHpux_Stdint_Least_FastPatch, 0 },
42fd8f40 11140
0249b7a3 11141 { zHpux_LongjmpName, zHpux_LongjmpList,
11142 apzHpux_LongjmpMachs,
11143 HPUX_LONGJMP_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11144 aHpux_LongjmpTests, apzHpux_LongjmpPatch, 0 },
11145
d1ed71e5 11146 { zHpux_SystimeName, zHpux_SystimeList,
11147 apzHpux_SystimeMachs,
11148 HPUX_SYSTIME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11149 aHpux_SystimeTests, apzHpux_SystimePatch, 0 },
9436a006 11150
96eced21 11151 { zHuge_Val_HexName, zHuge_Val_HexList,
11152 apzHuge_Val_HexMachs,
11153 HUGE_VAL_HEX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11154 aHuge_Val_HexTests, apzHuge_Val_HexPatch, 0 },
11155
11156 { zHuge_Valf_HexName, zHuge_Valf_HexList,
11157 apzHuge_Valf_HexMachs,
11158 HUGE_VALF_HEX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11159 aHuge_Valf_HexTests, apzHuge_Valf_HexPatch, 0 },
11160
11161 { zHuge_Vall_HexName, zHuge_Vall_HexList,
11162 apzHuge_Vall_HexMachs,
11163 HUGE_VALL_HEX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11164 aHuge_Vall_HexTests, apzHuge_Vall_HexPatch, 0 },
11165
038a3e7a 11166 { zInt_Abort_Free_And_ExitName, zInt_Abort_Free_And_ExitList,
11167 apzInt_Abort_Free_And_ExitMachs,
11168 INT_ABORT_FREE_AND_EXIT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
ee70a29d 11169 aInt_Abort_Free_And_ExitTests, apzInt_Abort_Free_And_ExitPatch, 0 },
038a3e7a 11170
49b4955b 11171 { zIo_Quotes_DefName, zIo_Quotes_DefList,
11172 apzIo_Quotes_DefMachs,
11173 IO_QUOTES_DEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
ee70a29d 11174 aIo_Quotes_DefTests, apzIo_Quotes_DefPatch, 0 },
49b4955b 11175
472aa368 11176 { zIo_Quotes_UseName, zIo_Quotes_UseList,
11177 apzIo_Quotes_UseMachs,
11178 IO_QUOTES_USE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
ee70a29d 11179 aIo_Quotes_UseTests, apzIo_Quotes_UsePatch, 0 },
49b4955b 11180
fdb8fb96 11181 { zIp_Missing_SemiName, zIp_Missing_SemiList,
6e791f25 11182 apzIp_Missing_SemiMachs,
fdb8fb96 11183 IP_MISSING_SEMI_TEST_CT, FD_MACH_ONLY,
ee70a29d 11184 aIp_Missing_SemiTests, apzIp_Missing_SemiPatch, 0 },
fdb8fb96 11185
49e3683c 11186 { zIrix_Limits_ConstName, zIrix_Limits_ConstList,
11187 apzIrix_Limits_ConstMachs,
11188 IRIX_LIMITS_CONST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11189 aIrix_Limits_ConstTests, apzIrix_Limits_ConstPatch, 0 },
11190
3072d11f 11191 { zIrix_Stdio_Va_ListName, zIrix_Stdio_Va_ListList,
11192 apzIrix_Stdio_Va_ListMachs,
11193 IRIX_STDIO_VA_LIST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11194 aIrix_Stdio_Va_ListTests, apzIrix_Stdio_Va_ListPatch, 0 },
11195
fdb8fb96 11196 { zKandr_ConcatName, zKandr_ConcatList,
6e791f25 11197 apzKandr_ConcatMachs,
cfe5be71 11198 KANDR_CONCAT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
ee70a29d 11199 aKandr_ConcatTests, apzKandr_ConcatPatch, 0 },
fdb8fb96 11200
d92db5b6 11201 { zLinux_Ia64_UcontextName, zLinux_Ia64_UcontextList,
11202 apzLinux_Ia64_UcontextMachs,
11203 LINUX_IA64_UCONTEXT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11204 aLinux_Ia64_UcontextTests, apzLinux_Ia64_UcontextPatch, 0 },
11205
435ea059 11206 { zLynxos_No_Warning_In_Sys_Time_HName, zLynxos_No_Warning_In_Sys_Time_HList,
11207 apzLynxos_No_Warning_In_Sys_Time_HMachs,
11208 LYNXOS_NO_WARNING_IN_SYS_TIME_H_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11209 aLynxos_No_Warning_In_Sys_Time_HTests, apzLynxos_No_Warning_In_Sys_Time_HPatch, 0 },
fdb8fb96 11210
435ea059 11211 { zLynxos_Missing_PutenvName, zLynxos_Missing_PutenvList,
11212 apzLynxos_Missing_PutenvMachs,
11213 LYNXOS_MISSING_PUTENV_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11214 aLynxos_Missing_PutenvTests, apzLynxos_Missing_PutenvPatch, 0 },
fdb8fb96 11215
d4c4b01d 11216 { zMachine_Ansi_H_Va_ListName, zMachine_Ansi_H_Va_ListList,
6e791f25 11217 apzMachine_Ansi_H_Va_ListMachs,
a83746ef 11218 MACHINE_ANSI_H_VA_LIST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
ee70a29d 11219 aMachine_Ansi_H_Va_ListTests, apzMachine_Ansi_H_Va_ListPatch, 0 },
d4c4b01d 11220
fdb8fb96 11221 { zMachine_NameName, zMachine_NameList,
6e791f25 11222 apzMachine_NameMachs,
17f8e521 11223 MACHINE_NAME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
ee70a29d 11224 aMachine_NameTests, apzMachine_NamePatch, 0 },
fdb8fb96 11225
11226 { zMath_ExceptionName, zMath_ExceptionList,
6e791f25 11227 apzMath_ExceptionMachs,
3efb5d22 11228 MATH_EXCEPTION_TEST_CT, FD_MACH_IFNOT | FD_SUBROUTINE,
ee70a29d 11229 aMath_ExceptionTests, apzMath_ExceptionPatch, 0 },
fdb8fb96 11230
bb304030 11231 { zMath_Huge_Val_From_Dbl_MaxName, zMath_Huge_Val_From_Dbl_MaxList,
6e791f25 11232 apzMath_Huge_Val_From_Dbl_MaxMachs,
bb304030 11233 MATH_HUGE_VAL_FROM_DBL_MAX_TEST_CT, FD_MACH_ONLY | FD_SHELL_SCRIPT,
ee70a29d 11234 aMath_Huge_Val_From_Dbl_MaxTests, apzMath_Huge_Val_From_Dbl_MaxPatch, 0 },
bb304030 11235
3072d11f 11236 { zNested_Auth_DesName, zNested_Auth_DesList,
11237 apzNested_Auth_DesMachs,
11238 NESTED_AUTH_DES_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11239 aNested_Auth_DesTests, apzNested_Auth_DesPatch, 0 },
11240
4cbf73b4 11241 { zNetbsd_C99_Inline_1Name, zNetbsd_C99_Inline_1List,
11242 apzNetbsd_C99_Inline_1Machs,
11243 NETBSD_C99_INLINE_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11244 aNetbsd_C99_Inline_1Tests, apzNetbsd_C99_Inline_1Patch, 0 },
759bfb14 11245
11246 { zNetbsd_C99_Inline_2Name, zNetbsd_C99_Inline_2List,
11247 apzNetbsd_C99_Inline_2Machs,
11248 NETBSD_C99_INLINE_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11249 aNetbsd_C99_Inline_2Tests, apzNetbsd_C99_Inline_2Patch, 0 },
cfe5be71 11250
81a897fb 11251 { zNetbsd_Extra_SemicolonName, zNetbsd_Extra_SemicolonList,
11252 apzNetbsd_Extra_SemicolonMachs,
11253 NETBSD_EXTRA_SEMICOLON_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11254 aNetbsd_Extra_SemicolonTests, apzNetbsd_Extra_SemicolonPatch, 0 },
11255
f3449a3c 11256 { zNewlib_Stdint_1Name, zNewlib_Stdint_1List,
11257 apzNewlib_Stdint_1Machs,
11258 NEWLIB_STDINT_1_TEST_CT, FD_MACH_ONLY,
11259 aNewlib_Stdint_1Tests, apzNewlib_Stdint_1Patch, 0 },
11260
11261 { zNewlib_Stdint_2Name, zNewlib_Stdint_2List,
11262 apzNewlib_Stdint_2Machs,
11263 NEWLIB_STDINT_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11264 aNewlib_Stdint_2Tests, apzNewlib_Stdint_2Patch, 0 },
11265
fdb8fb96 11266 { zNext_Math_PrefixName, zNext_Math_PrefixList,
6e791f25 11267 apzNext_Math_PrefixMachs,
a83746ef 11268 NEXT_MATH_PREFIX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
ee70a29d 11269 aNext_Math_PrefixTests, apzNext_Math_PrefixPatch, 0 },
fdb8fb96 11270
11271 { zNext_TemplateName, zNext_TemplateList,
6e791f25 11272 apzNext_TemplateMachs,
a83746ef 11273 NEXT_TEMPLATE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
ee70a29d 11274 aNext_TemplateTests, apzNext_TemplatePatch, 0 },
fdb8fb96 11275
11276 { zNext_VolitileName, zNext_VolitileList,
6e791f25 11277 apzNext_VolitileMachs,
a83746ef 11278 NEXT_VOLITILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
ee70a29d 11279 aNext_VolitileTests, apzNext_VolitilePatch, 0 },
fdb8fb96 11280
11281 { zNext_Wait_UnionName, zNext_Wait_UnionList,
6e791f25 11282 apzNext_Wait_UnionMachs,
038a3e7a 11283 NEXT_WAIT_UNION_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
ee70a29d 11284 aNext_Wait_UnionTests, apzNext_Wait_UnionPatch, 0 },
fdb8fb96 11285
11286 { zNodeent_SyntaxName, zNodeent_SyntaxList,
6e791f25 11287 apzNodeent_SyntaxMachs,
038a3e7a 11288 NODEENT_SYNTAX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
ee70a29d 11289 aNodeent_SyntaxTests, apzNodeent_SyntaxPatch, 0 },
fdb8fb96 11290
6dcfb197 11291 { zOpenbsd_Null_DefinitionName, zOpenbsd_Null_DefinitionList,
11292 apzOpenbsd_Null_DefinitionMachs,
11293 OPENBSD_NULL_DEFINITION_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11294 aOpenbsd_Null_DefinitionTests, apzOpenbsd_Null_DefinitionPatch, 0 },
11295
129b92e3 11296 { zObstack_Lvalue_CastName, zObstack_Lvalue_CastList,
11297 apzObstack_Lvalue_CastMachs,
11298 OBSTACK_LVALUE_CAST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11299 aObstack_Lvalue_CastTests, apzObstack_Lvalue_CastPatch, 0 },
11300
2b0752cc 11301 { zOpenbsd_Va_StartName, zOpenbsd_Va_StartList,
11302 apzOpenbsd_Va_StartMachs,
11303 OPENBSD_VA_START_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11304 aOpenbsd_Va_StartTests, apzOpenbsd_Va_StartPatch, 0 },
11305
fdb8fb96 11306 { zOsf_Namespace_AName, zOsf_Namespace_AList,
6e791f25 11307 apzOsf_Namespace_AMachs,
038a3e7a 11308 OSF_NAMESPACE_A_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
ee70a29d 11309 aOsf_Namespace_ATests, apzOsf_Namespace_APatch, 0 },
fdb8fb96 11310
038a3e7a 11311 { zOsf_Namespace_CName, zOsf_Namespace_CList,
11312 apzOsf_Namespace_CMachs,
11313 OSF_NAMESPACE_C_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
ee70a29d 11314 aOsf_Namespace_CTests, apzOsf_Namespace_CPatch, 0 },
fdb8fb96 11315
a11c2c4d 11316 { zPthread_Incomplete_Struct_ArgumentName, zPthread_Incomplete_Struct_ArgumentList,
11317 apzPthread_Incomplete_Struct_ArgumentMachs,
11318 PTHREAD_INCOMPLETE_STRUCT_ARGUMENT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11319 aPthread_Incomplete_Struct_ArgumentTests, apzPthread_Incomplete_Struct_ArgumentPatch, 0 },
11320
d0f5620b 11321 { zRead_Ret_TypeName, zRead_Ret_TypeList,
6e791f25 11322 apzRead_Ret_TypeMachs,
038a3e7a 11323 READ_RET_TYPE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
ee70a29d 11324 aRead_Ret_TypeTests, apzRead_Ret_TypePatch, 0 },
d0f5620b 11325
e68aa18b 11326 { zRpc_Xdr_Lvalue_Cast_AName, zRpc_Xdr_Lvalue_Cast_AList,
11327 apzRpc_Xdr_Lvalue_Cast_AMachs,
11328 RPC_XDR_LVALUE_CAST_A_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11329 aRpc_Xdr_Lvalue_Cast_ATests, apzRpc_Xdr_Lvalue_Cast_APatch, 0 },
11330
11331 { zRpc_Xdr_Lvalue_Cast_BName, zRpc_Xdr_Lvalue_Cast_BList,
11332 apzRpc_Xdr_Lvalue_Cast_BMachs,
11333 RPC_XDR_LVALUE_CAST_B_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11334 aRpc_Xdr_Lvalue_Cast_BTests, apzRpc_Xdr_Lvalue_Cast_BPatch, 0 },
11335
fdb8fb96 11336 { zRs6000_DoubleName, zRs6000_DoubleList,
6e791f25 11337 apzRs6000_DoubleMachs,
038a3e7a 11338 RS6000_DOUBLE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
ee70a29d 11339 aRs6000_DoubleTests, apzRs6000_DoublePatch, 0 },
fdb8fb96 11340
11341 { zRs6000_FchmodName, zRs6000_FchmodList,
6e791f25 11342 apzRs6000_FchmodMachs,
038a3e7a 11343 RS6000_FCHMOD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
ee70a29d 11344 aRs6000_FchmodTests, apzRs6000_FchmodPatch, 0 },
fdb8fb96 11345
11346 { zRs6000_ParamName, zRs6000_ParamList,
6e791f25 11347 apzRs6000_ParamMachs,
038a3e7a 11348 RS6000_PARAM_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
ee70a29d 11349 aRs6000_ParamTests, apzRs6000_ParamPatch, 0 },
fdb8fb96 11350
a6905708 11351 { zSolaris___RestrictName, zSolaris___RestrictList,
11352 apzSolaris___RestrictMachs,
11353 SOLARIS___RESTRICT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11354 aSolaris___RestrictTests, apzSolaris___RestrictPatch, 0 },
11355
aee500d5 11356 { zSolaris_ComplexName, zSolaris_ComplexList,
11357 apzSolaris_ComplexMachs,
11358 SOLARIS_COMPLEX_TEST_CT, FD_MACH_ONLY,
11359 aSolaris_ComplexTests, apzSolaris_ComplexPatch, 0 },
11360
a6905708 11361 { zSolaris_Complex_CxxName, zSolaris_Complex_CxxList,
11362 apzSolaris_Complex_CxxMachs,
11363 SOLARIS_COMPLEX_CXX_TEST_CT, FD_MACH_ONLY,
11364 aSolaris_Complex_CxxTests, apzSolaris_Complex_CxxPatch, 0 },
11365
5f7d4d97 11366 { zSolaris_Cxx_LinkageName, zSolaris_Cxx_LinkageList,
11367 apzSolaris_Cxx_LinkageMachs,
11368 SOLARIS_CXX_LINKAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11369 aSolaris_Cxx_LinkageTests, apzSolaris_Cxx_LinkagePatch, 0 },
11370
11371 { zSolaris_Getc_Strict_StdcName, zSolaris_Getc_Strict_StdcList,
11372 apzSolaris_Getc_Strict_StdcMachs,
11373 SOLARIS_GETC_STRICT_STDC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11374 aSolaris_Getc_Strict_StdcTests, apzSolaris_Getc_Strict_StdcPatch, 0 },
11375
3c017b47 11376 { zSolaris_Gets_C11Name, zSolaris_Gets_C11List,
11377 apzSolaris_Gets_C11Machs,
11378 SOLARIS_GETS_C11_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11379 aSolaris_Gets_C11Tests, apzSolaris_Gets_C11Patch, 0 },
11380
11381 { zSolaris_Gets_Cxx14Name, zSolaris_Gets_Cxx14List,
11382 apzSolaris_Gets_Cxx14Machs,
11383 SOLARIS_GETS_CXX14_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11384 aSolaris_Gets_Cxx14Tests, apzSolaris_Gets_Cxx14Patch, 0 },
11385
d1ed71e5 11386 { zSolaris_Int_ConstName, zSolaris_Int_ConstList,
11387 apzSolaris_Int_ConstMachs,
11388 SOLARIS_INT_CONST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11389 aSolaris_Int_ConstTests, apzSolaris_Int_ConstPatch, 0 },
11390
11391 { zSolaris_Int_Limits_1Name, zSolaris_Int_Limits_1List,
11392 apzSolaris_Int_Limits_1Machs,
11393 SOLARIS_INT_LIMITS_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11394 aSolaris_Int_Limits_1Tests, apzSolaris_Int_Limits_1Patch, 0 },
11395
11396 { zSolaris_Int_Limits_2Name, zSolaris_Int_Limits_2List,
11397 apzSolaris_Int_Limits_2Machs,
11398 SOLARIS_INT_LIMITS_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11399 aSolaris_Int_Limits_2Tests, apzSolaris_Int_Limits_2Patch, 0 },
11400
11401 { zSolaris_Int_Limits_3Name, zSolaris_Int_Limits_3List,
11402 apzSolaris_Int_Limits_3Machs,
11403 SOLARIS_INT_LIMITS_3_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11404 aSolaris_Int_Limits_3Tests, apzSolaris_Int_Limits_3Patch, 0 },
11405
e849ea70 11406 { zSolaris_Math_1Name, zSolaris_Math_1List,
11407 apzSolaris_Math_1Machs,
11408 SOLARIS_MATH_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11409 aSolaris_Math_1Tests, apzSolaris_Math_1Patch, 0 },
11410
d1ed71e5 11411 { zSolaris_Math_10Name, zSolaris_Math_10List,
11412 apzSolaris_Math_10Machs,
11413 SOLARIS_MATH_10_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11414 aSolaris_Math_10Tests, apzSolaris_Math_10Patch, 0 },
11415
e849ea70 11416 { zSolaris_Math_2Name, zSolaris_Math_2List,
11417 apzSolaris_Math_2Machs,
11418 SOLARIS_MATH_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11419 aSolaris_Math_2Tests, apzSolaris_Math_2Patch, 0 },
11420
11421 { zSolaris_Math_3Name, zSolaris_Math_3List,
11422 apzSolaris_Math_3Machs,
11423 SOLARIS_MATH_3_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11424 aSolaris_Math_3Tests, apzSolaris_Math_3Patch, 0 },
11425
11426 { zSolaris_Math_4Name, zSolaris_Math_4List,
11427 apzSolaris_Math_4Machs,
11428 SOLARIS_MATH_4_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11429 aSolaris_Math_4Tests, apzSolaris_Math_4Patch, 0 },
11430
e849ea70 11431 { zSolaris_Math_8Name, zSolaris_Math_8List,
11432 apzSolaris_Math_8Machs,
11433 SOLARIS_MATH_8_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11434 aSolaris_Math_8Tests, apzSolaris_Math_8Patch, 0 },
11435
11436 { zSolaris_Math_9Name, zSolaris_Math_9List,
11437 apzSolaris_Math_9Machs,
11438 SOLARIS_MATH_9_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11439 aSolaris_Math_9Tests, apzSolaris_Math_9Patch, 0 },
11440
59600e4c 11441 { zSolaris_Math_11Name, zSolaris_Math_11List,
11442 apzSolaris_Math_11Machs,
11443 SOLARIS_MATH_11_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11444 aSolaris_Math_11Tests, apzSolaris_Math_11Patch, 0 },
11445
13d9a983 11446 { zSolaris_Math_12Name, zSolaris_Math_12List,
11447 apzSolaris_Math_12Machs,
11448 SOLARIS_MATH_12_TEST_CT, FD_MACH_ONLY,
11449 aSolaris_Math_12Tests, apzSolaris_Math_12Patch, 0 },
11450
458caa24 11451 { zSolaris_Once_Init_1Name, zSolaris_Once_Init_1List,
11452 apzSolaris_Once_Init_1Machs,
11453 SOLARIS_ONCE_INIT_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11454 aSolaris_Once_Init_1Tests, apzSolaris_Once_Init_1Patch, 0 },
11455
69c86aa4 11456 { zSolaris_Posix_Spawn_RestrictName, zSolaris_Posix_Spawn_RestrictList,
11457 apzSolaris_Posix_Spawn_RestrictMachs,
11458 SOLARIS_POSIX_SPAWN_RESTRICT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11459 aSolaris_Posix_Spawn_RestrictTests, apzSolaris_Posix_Spawn_RestrictPatch, 0 },
11460
d1ed71e5 11461 { zSolaris_Pow_Int_OverloadName, zSolaris_Pow_Int_OverloadList,
11462 apzSolaris_Pow_Int_OverloadMachs,
11463 SOLARIS_POW_INT_OVERLOAD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11464 aSolaris_Pow_Int_OverloadTests, apzSolaris_Pow_Int_OverloadPatch, 0 },
11465
11466 { zSolaris_Rwlock_Init_1Name, zSolaris_Rwlock_Init_1List,
11467 apzSolaris_Rwlock_Init_1Machs,
11468 SOLARIS_RWLOCK_INIT_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11469 aSolaris_Rwlock_Init_1Tests, apzSolaris_Rwlock_Init_1Patch, 0 },
11470
5f7d4d97 11471 { zSolaris_Std___FilbufName, zSolaris_Std___FilbufList,
11472 apzSolaris_Std___FilbufMachs,
11473 SOLARIS_STD___FILBUF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11474 aSolaris_Std___FilbufTests, apzSolaris_Std___FilbufPatch, 0 },
11475
3c017b47 11476 { zSolaris_Std_Gets_Cxx14Name, zSolaris_Std_Gets_Cxx14List,
11477 apzSolaris_Std_Gets_Cxx14Machs,
11478 SOLARIS_STD_GETS_CXX14_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11479 aSolaris_Std_Gets_Cxx14Tests, apzSolaris_Std_Gets_Cxx14Patch, 0 },
11480
91eb7bbc 11481 { zSolaris_Stdio_TagName, zSolaris_Stdio_TagList,
11482 apzSolaris_Stdio_TagMachs,
11483 SOLARIS_STDIO_TAG_TEST_CT, FD_MACH_ONLY,
11484 aSolaris_Stdio_TagTests, apzSolaris_Stdio_TagPatch, 0 },
11485
3c017b47 11486 { zSolaris_Stdlib_NoreturnName, zSolaris_Stdlib_NoreturnList,
11487 apzSolaris_Stdlib_NoreturnMachs,
11488 SOLARIS_STDLIB_NORETURN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11489 aSolaris_Stdlib_NoreturnTests, apzSolaris_Stdlib_NoreturnPatch, 0 },
11490
fdb8fb96 11491 { zStatsswtchName, zStatsswtchList,
6e791f25 11492 apzStatsswtchMachs,
038a3e7a 11493 STATSSWTCH_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
ee70a29d 11494 aStatsswtchTests, apzStatsswtchPatch, 0 },
fdb8fb96 11495
d4c4b01d 11496 { zStdio_Stdarg_HName, zStdio_Stdarg_HList,
6e791f25 11497 apzStdio_Stdarg_HMachs,
09a31484 11498 STDIO_STDARG_H_TEST_CT, FD_MACH_IFNOT | FD_SUBROUTINE,
ee70a29d 11499 aStdio_Stdarg_HTests, apzStdio_Stdarg_HPatch, 0 },
d4c4b01d 11500
fdb8fb96 11501 { zStdio_Va_ListName, zStdio_Va_ListList,
6e791f25 11502 apzStdio_Va_ListMachs,
09a31484 11503 STDIO_VA_LIST_TEST_CT, FD_MACH_IFNOT,
ee70a29d 11504 aStdio_Va_ListTests, apzStdio_Va_ListPatch, 0 },
fdb8fb96 11505
925b9291 11506 { zStdio_Va_List_ClientsName, zStdio_Va_List_ClientsList,
11507 apzStdio_Va_List_ClientsMachs,
11508 STDIO_VA_LIST_CLIENTS_TEST_CT, FD_MACH_ONLY,
11509 aStdio_Va_List_ClientsTests, apzStdio_Va_List_ClientsPatch, 0 },
11510
3072d11f 11511 { zStrict_Ansi_NotName, zStrict_Ansi_NotList,
11512 apzStrict_Ansi_NotMachs,
11513 STRICT_ANSI_NOT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11514 aStrict_Ansi_NotTests, apzStrict_Ansi_NotPatch, 0 },
11515
11516 { zStrict_Ansi_Not_CtdName, zStrict_Ansi_Not_CtdList,
11517 apzStrict_Ansi_Not_CtdMachs,
11518 STRICT_ANSI_NOT_CTD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11519 aStrict_Ansi_Not_CtdTests, apzStrict_Ansi_Not_CtdPatch, 0 },
11520
11521 { zStrict_Ansi_OnlyName, zStrict_Ansi_OnlyList,
11522 apzStrict_Ansi_OnlyMachs,
11523 STRICT_ANSI_ONLY_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11524 aStrict_Ansi_OnlyTests, apzStrict_Ansi_OnlyPatch, 0 },
11525
cfe5be71 11526 { zStruct_FileName, zStruct_FileList,
11527 apzStruct_FileMachs,
11528 STRUCT_FILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
ee70a29d 11529 aStruct_FileTests, apzStruct_FilePatch, 0 },
cfe5be71 11530
11531 { zStruct_SockaddrName, zStruct_SockaddrList,
11532 apzStruct_SockaddrMachs,
11533 STRUCT_SOCKADDR_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
ee70a29d 11534 aStruct_SockaddrTests, apzStruct_SockaddrPatch, 0 },
cfe5be71 11535
a712e12c 11536 { zSun_Auth_ProtoName, zSun_Auth_ProtoList,
6e791f25 11537 apzSun_Auth_ProtoMachs,
038a3e7a 11538 SUN_AUTH_PROTO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
ee70a29d 11539 aSun_Auth_ProtoTests, apzSun_Auth_ProtoPatch, 0 },
a712e12c 11540
fdb8fb96 11541 { zSun_Bogus_IfdefName, zSun_Bogus_IfdefList,
6e791f25 11542 apzSun_Bogus_IfdefMachs,
038a3e7a 11543 SUN_BOGUS_IFDEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
ee70a29d 11544 aSun_Bogus_IfdefTests, apzSun_Bogus_IfdefPatch, 0 },
fdb8fb96 11545
fdb8fb96 11546 { zSun_CatmacroName, zSun_CatmacroList,
6e791f25 11547 apzSun_CatmacroMachs,
038a3e7a 11548 SUN_CATMACRO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
ee70a29d 11549 aSun_CatmacroTests, apzSun_CatmacroPatch, 0 },
fdb8fb96 11550
11551 { zSun_MallocName, zSun_MallocList,
6e791f25 11552 apzSun_MallocMachs,
fdb8fb96 11553 SUN_MALLOC_TEST_CT, FD_MACH_ONLY,
ee70a29d 11554 aSun_MallocTests, apzSun_MallocPatch, 0 },
fdb8fb96 11555
fdb8fb96 11556 { zSun_Rusers_SemiName, zSun_Rusers_SemiList,
6e791f25 11557 apzSun_Rusers_SemiMachs,
fdb8fb96 11558 SUN_RUSERS_SEMI_TEST_CT, FD_MACH_ONLY,
ee70a29d 11559 aSun_Rusers_SemiTests, apzSun_Rusers_SemiPatch, 0 },
fdb8fb96 11560
11561 { zSun_SignalName, zSun_SignalList,
6e791f25 11562 apzSun_SignalMachs,
038a3e7a 11563 SUN_SIGNAL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
ee70a29d 11564 aSun_SignalTests, apzSun_SignalPatch, 0 },
fdb8fb96 11565
fdb8fb96 11566 { zSunos_StrlenName, zSunos_StrlenList,
6e791f25 11567 apzSunos_StrlenMachs,
038a3e7a 11568 SUNOS_STRLEN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
ee70a29d 11569 aSunos_StrlenTests, apzSunos_StrlenPatch, 0 },
fdb8fb96 11570
d4a8ec92 11571 { zSuse_Linux_Vt_CxxName, zSuse_Linux_Vt_CxxList,
11572 apzSuse_Linux_Vt_CxxMachs,
11573 SUSE_LINUX_VT_CXX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11574 aSuse_Linux_Vt_CxxTests, apzSuse_Linux_Vt_CxxPatch, 0 },
11575
3c04ceca 11576 { zSvr4_Disable_OptName, zSvr4_Disable_OptList,
11577 apzSvr4_Disable_OptMachs,
11578 SVR4_DISABLE_OPT_TEST_CT, FD_MACH_ONLY,
11579 aSvr4_Disable_OptTests, apzSvr4_Disable_OptPatch, 0 },
11580
a712e12c 11581 { zSvr4_GetcwdName, zSvr4_GetcwdList,
6e791f25 11582 apzSvr4_GetcwdMachs,
038a3e7a 11583 SVR4_GETCWD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
ee70a29d 11584 aSvr4_GetcwdTests, apzSvr4_GetcwdPatch, 0 },
a712e12c 11585
11586 { zSvr4_ProfilName, zSvr4_ProfilList,
6e791f25 11587 apzSvr4_ProfilMachs,
038a3e7a 11588 SVR4_PROFIL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
ee70a29d 11589 aSvr4_ProfilTests, apzSvr4_ProfilPatch, 0 },
a712e12c 11590
d23689b2 11591 { zSvr4_Sighandler_TypeName, zSvr4_Sighandler_TypeList,
11592 apzSvr4_Sighandler_TypeMachs,
11593 SVR4_SIGHANDLER_TYPE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11594 aSvr4_Sighandler_TypeTests, apzSvr4_Sighandler_TypePatch, 0 },
11595
630af039 11596 { zSvr4_Undeclared_GetrngeName, zSvr4_Undeclared_GetrngeList,
11597 apzSvr4_Undeclared_GetrngeMachs,
11598 SVR4_UNDECLARED_GETRNGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11599 aSvr4_Undeclared_GetrngeTests, apzSvr4_Undeclared_GetrngePatch, 0 },
11600
fdb8fb96 11601 { zSysv68_StringName, zSysv68_StringList,
6e791f25 11602 apzSysv68_StringMachs,
fdb8fb96 11603 SYSV68_STRING_TEST_CT, FD_MACH_ONLY,
ee70a29d 11604 aSysv68_StringTests, apzSysv68_StringPatch, 0 },
fdb8fb96 11605
11606 { zSysz_Stdlib_For_SunName, zSysz_Stdlib_For_SunList,
6e791f25 11607 apzSysz_Stdlib_For_SunMachs,
038a3e7a 11608 SYSZ_STDLIB_FOR_SUN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
ee70a29d 11609 aSysz_Stdlib_For_SunTests, apzSysz_Stdlib_For_SunPatch, 0 },
fdb8fb96 11610
2a6f0f81 11611 { zThread_KeywordName, zThread_KeywordList,
11612 apzThread_KeywordMachs,
77f26774 11613 THREAD_KEYWORD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
2a6f0f81 11614 aThread_KeywordTests, apzThread_KeywordPatch, 0 },
11615
fdb8fb96 11616 { zTinfo_CplusplusName, zTinfo_CplusplusList,
6e791f25 11617 apzTinfo_CplusplusMachs,
f74d6549 11618 TINFO_CPLUSPLUS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
ee70a29d 11619 aTinfo_CplusplusTests, apzTinfo_CplusplusPatch, 0 },
fdb8fb96 11620
fdb8fb96 11621 { zUltrix_ConstName, zUltrix_ConstList,
6e791f25 11622 apzUltrix_ConstMachs,
f74d6549 11623 ULTRIX_CONST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
ee70a29d 11624 aUltrix_ConstTests, apzUltrix_ConstPatch, 0 },
fdb8fb96 11625
f74d6549 11626 { zUltrix_Const2Name, zUltrix_Const2List,
11627 apzUltrix_Const2Machs,
11628 ULTRIX_CONST2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
ee70a29d 11629 aUltrix_Const2Tests, apzUltrix_Const2Patch, 0 },
f74d6549 11630
fdb8fb96 11631 { zVa_I960_MacroName, zVa_I960_MacroList,
6e791f25 11632 apzVa_I960_MacroMachs,
f74d6549 11633 VA_I960_MACRO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
ee70a29d 11634 aVa_I960_MacroTests, apzVa_I960_MacroPatch, 0 },
fdb8fb96 11635
d1ed71e5 11636 { zVms_Add_Missing_BracesName, zVms_Add_Missing_BracesList,
11637 apzVms_Add_Missing_BracesMachs,
11638 VMS_ADD_MISSING_BRACES_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11639 aVms_Add_Missing_BracesTests, apzVms_Add_Missing_BracesPatch, 0 },
11640
11641 { zVms_Decc_BuiltinName, zVms_Decc_BuiltinList,
11642 apzVms_Decc_BuiltinMachs,
11643 VMS_DECC_BUILTIN_TEST_CT, FD_MACH_ONLY,
11644 aVms_Decc_BuiltinTests, apzVms_Decc_BuiltinPatch, 0 },
11645
f13b86b8 11646 { zVms_Define_Can_Use_Extern_PrefixName, zVms_Define_Can_Use_Extern_PrefixList,
11647 apzVms_Define_Can_Use_Extern_PrefixMachs,
11648 VMS_DEFINE_CAN_USE_EXTERN_PREFIX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11649 aVms_Define_Can_Use_Extern_PrefixTests, apzVms_Define_Can_Use_Extern_PrefixPatch, 0 },
11650
f13b86b8 11651 { zVms_Disable_Decc_String_BuiltinsName, zVms_Disable_Decc_String_BuiltinsList,
11652 apzVms_Disable_Decc_String_BuiltinsMachs,
11653 VMS_DISABLE_DECC_STRING_BUILTINS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11654 aVms_Disable_Decc_String_BuiltinsTests, apzVms_Disable_Decc_String_BuiltinsPatch, 0 },
11655
1e6cd7f6 11656 { zVms_Do_Not_Redeclare_HostaliasName, zVms_Do_Not_Redeclare_HostaliasList,
11657 apzVms_Do_Not_Redeclare_HostaliasMachs,
11658 VMS_DO_NOT_REDECLARE_HOSTALIAS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11659 aVms_Do_Not_Redeclare_HostaliasTests, apzVms_Do_Not_Redeclare_HostaliasPatch, 0 },
11660
d1ed71e5 11661 { zVms_Forward_Declare_StructName, zVms_Forward_Declare_StructList,
11662 apzVms_Forward_Declare_StructMachs,
11663 VMS_FORWARD_DECLARE_STRUCT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11664 aVms_Forward_Declare_StructTests, apzVms_Forward_Declare_StructPatch, 0 },
1e6cd7f6 11665
11666 { zVms_No_64bit_GetoptName, zVms_No_64bit_GetoptList,
11667 apzVms_No_64bit_GetoptMachs,
11668 VMS_NO_64BIT_GETOPT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11669 aVms_No_64bit_GetoptTests, apzVms_No_64bit_GetoptPatch, 0 },
11670
1e6cd7f6 11671 { zVms_Use_Fast_SetjmpName, zVms_Use_Fast_SetjmpList,
11672 apzVms_Use_Fast_SetjmpMachs,
11673 VMS_USE_FAST_SETJMP_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11674 aVms_Use_Fast_SetjmpTests, apzVms_Use_Fast_SetjmpPatch, 0 },
11675
d1ed71e5 11676 { zVms_Use_Pragma_Extern_ModelName, zVms_Use_Pragma_Extern_ModelList,
11677 apzVms_Use_Pragma_Extern_ModelMachs,
11678 VMS_USE_PRAGMA_EXTERN_MODEL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11679 aVms_Use_Pragma_Extern_ModelTests, apzVms_Use_Pragma_Extern_ModelPatch, 0 },
11680
11681 { zVms_Use_Quoted_IncludeName, zVms_Use_Quoted_IncludeList,
11682 apzVms_Use_Quoted_IncludeMachs,
11683 VMS_USE_QUOTED_INCLUDE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11684 aVms_Use_Quoted_IncludeTests, apzVms_Use_Quoted_IncludePatch, 0 },
11685
fdb8fb96 11686 { zVoid_NullName, zVoid_NullList,
6e791f25 11687 apzVoid_NullMachs,
f74d6549 11688 VOID_NULL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
ee70a29d 11689 aVoid_NullTests, apzVoid_NullPatch, 0 },
fdb8fb96 11690
11691 { zVxworks_Gcc_ProblemName, zVxworks_Gcc_ProblemList,
6e791f25 11692 apzVxworks_Gcc_ProblemMachs,
fdb8fb96 11693 VXWORKS_GCC_PROBLEM_TEST_CT, FD_MACH_ONLY,
ee70a29d 11694 aVxworks_Gcc_ProblemTests, apzVxworks_Gcc_ProblemPatch, 0 },
fdb8fb96 11695
32f37500 11696 { zVxworks_Ioctl_MacroName, zVxworks_Ioctl_MacroList,
11697 apzVxworks_Ioctl_MacroMachs,
11698 VXWORKS_IOCTL_MACRO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11699 aVxworks_Ioctl_MacroTests, apzVxworks_Ioctl_MacroPatch, 0 },
11700
11701 { zVxworks_Mkdir_MacroName, zVxworks_Mkdir_MacroList,
11702 apzVxworks_Mkdir_MacroMachs,
11703 VXWORKS_MKDIR_MACRO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11704 aVxworks_Mkdir_MacroTests, apzVxworks_Mkdir_MacroPatch, 0 },
11705
fdb8fb96 11706 { zVxworks_Needs_VxtypesName, zVxworks_Needs_VxtypesList,
6e791f25 11707 apzVxworks_Needs_VxtypesMachs,
f74d6549 11708 VXWORKS_NEEDS_VXTYPES_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
ee70a29d 11709 aVxworks_Needs_VxtypesTests, apzVxworks_Needs_VxtypesPatch, 0 },
fdb8fb96 11710
11711 { zVxworks_Needs_VxworksName, zVxworks_Needs_VxworksList,
6e791f25 11712 apzVxworks_Needs_VxworksMachs,
fdb8fb96 11713 VXWORKS_NEEDS_VXWORKS_TEST_CT, FD_MACH_ONLY,
ee70a29d 11714 aVxworks_Needs_VxworksTests, apzVxworks_Needs_VxworksPatch, 0 },
fdb8fb96 11715
32f37500 11716 { zVxworks_RegsName, zVxworks_RegsList,
11717 apzVxworks_RegsMachs,
11718 VXWORKS_REGS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11719 aVxworks_RegsTests, apzVxworks_RegsPatch, 0 },
11720
fdb8fb96 11721 { zVxworks_TimeName, zVxworks_TimeList,
6e791f25 11722 apzVxworks_TimeMachs,
f74d6549 11723 VXWORKS_TIME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
ee70a29d 11724 aVxworks_TimeTests, apzVxworks_TimePatch, 0 },
fdb8fb96 11725
32f37500 11726 { zVxworks_Write_ConstName, zVxworks_Write_ConstList,
11727 apzVxworks_Write_ConstMachs,
11728 VXWORKS_WRITE_CONST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11729 aVxworks_Write_ConstTests, apzVxworks_Write_ConstPatch, 0 },
11730
3d2d7dab 11731 { zVxworks_Iolib_Include_UnistdName, zVxworks_Iolib_Include_UnistdList,
11732 apzVxworks_Iolib_Include_UnistdMachs,
11733 VXWORKS_IOLIB_INCLUDE_UNISTD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11734 aVxworks_Iolib_Include_UnistdTests, apzVxworks_Iolib_Include_UnistdPatch, 0 },
11735
fdb8fb96 11736 { zX11_ClassName, zX11_ClassList,
6e791f25 11737 apzX11_ClassMachs,
e7ae4397 11738 X11_CLASS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
ee70a29d 11739 aX11_ClassTests, apzX11_ClassPatch, 0 },
fdb8fb96 11740
11741 { zX11_Class_UsageName, zX11_Class_UsageList,
6e791f25 11742 apzX11_Class_UsageMachs,
f74d6549 11743 X11_CLASS_USAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
ee70a29d 11744 aX11_Class_UsageTests, apzX11_Class_UsagePatch, 0 },
fdb8fb96 11745
11746 { zX11_NewName, zX11_NewList,
6e791f25 11747 apzX11_NewMachs,
fdb8fb96 11748 X11_NEW_TEST_CT, FD_MACH_ONLY,
ee70a29d 11749 aX11_NewTests, apzX11_NewPatch, 0 },
fdb8fb96 11750
11751 { zX11_SprintfName, zX11_SprintfList,
6e791f25 11752 apzX11_SprintfMachs,
f74d6549 11753 X11_SPRINTF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
d1ed71e5 11754 aX11_SprintfTests, apzX11_SprintfPatch, 0 }
fdb8fb96 11755};