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