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