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