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