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