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