Debian Codegraph @

fixincludes/fixincl.x

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