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