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