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