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