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