d6957846ff51ac35f0c6f762acd6e82f877256ae
[gcc.git] / fixincludes / fixincl.x
1 /* -*- buffer-read-only: t -*- vi: set ro:
2 *
3 * DO NOT EDIT THIS FILE (fixincl.x)
4 *
5 * It has been AutoGen-ed Tuesday October 3, 2006 at 07:43:53 AM CEST
6 * From the definitions inclhack.def
7 * and the template file fixincl
8 */
9 /* DO NOT CVS-MERGE THIS FILE, EITHER Tue Oct 3 07:43:53 CEST 2006
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 200 fixup descriptions.
19 *
20 * See README for more information.
21 *
22 * inclhack copyright (c) 1998, 1999, 2000, 2001
23 * The Free Software Foundation, Inc.
24 *
25 * inclhack is free software.
26 *
27 * You may redistribute it and/or modify it under the terms of the
28 * GNU General Public License, as published by the Free Software
29 * Foundation; either version 2, or (at your option) any later version.
30 *
31 * inclhack is distributed in the hope that it will be useful,
32 * but 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
37 * along with inclhack. See the file "COPYING". If not,
38 * write to: The Free Software Foundation, Inc.,
39 * 59 Temple Place - Suite 330,
40 * Boston, MA 02111-1307, USA.
41 */
42
43 /* * * * * * * * * * * * * * * * * * * * * * * * * *
44 *
45 * Description of Aab_Darwin7_9_Long_Double_Funcs fix
46 */
47 tSCC zAab_Darwin7_9_Long_Double_FuncsName[] =
48 "AAB_darwin7_9_long_double_funcs";
49
50 /*
51 * File name selection pattern
52 */
53 tSCC zAab_Darwin7_9_Long_Double_FuncsList[] =
54 "|architecture/ppc/math.h|";
55 /*
56 * Machine/OS name selection pattern
57 */
58 tSCC* apzAab_Darwin7_9_Long_Double_FuncsMachs[] = {
59 "*-*-darwin7.9*",
60 (const char*)NULL };
61
62 /*
63 * content bypass pattern - skip fix if pattern found
64 */
65 tSCC zAab_Darwin7_9_Long_Double_FuncsBypass0[] =
66 "powl";
67
68 #define AAB_DARWIN7_9_LONG_DOUBLE_FUNCS_TEST_CT 1
69 static tTestDesc aAab_Darwin7_9_Long_Double_FuncsTests[] = {
70 { TT_NEGREP, zAab_Darwin7_9_Long_Double_FuncsBypass0, (regex_t*)NULL }, };
71
72 /*
73 * Fix Command Arguments for Aab_Darwin7_9_Long_Double_Funcs
74 */
75 static const char* apzAab_Darwin7_9_Long_Double_FuncsPatch[] = {
76 "/* This file prototypes the long double functions available on Mac OS\n\
77 10.3.9. */\n\
78 #ifndef __MATH__\n\
79 # undef __APPLE_CC__\n\
80 # define __APPLE_CC__ 1345\n\
81 # include_next <architecture/ppc/math.h>\n\
82 # undef __APPLE_CC__\n\
83 # define __APPLE_CC__ 1\n\
84 # ifndef __LIBMLDBL_COMPAT\n\
85 # ifdef __LONG_DOUBLE_128__\n\
86 # define __LIBMLDBL_COMPAT(sym) __asm(\"_\" #sym \"$LDBL128\")\n\
87 # else\n\
88 # define __LIBMLDBL_COMPAT(sym)\n\
89 # endif /* __LONG_DOUBLE_128__ */\n\
90 # endif /* __LIBMLDBL_COMPAT */\n\
91 # ifdef __cplusplus\n\
92 extern \"C\" {\n\
93 # endif\n\
94 extern long double acosl( long double ) __LIBMLDBL_COMPAT(acosl);\n\
95 extern long double asinl( long double ) __LIBMLDBL_COMPAT(asinl);\n\
96 extern long double atanl( long double ) __LIBMLDBL_COMPAT(atanl);\n\
97 extern long double atan2l( long double, long double ) __LIBMLDBL_COMPAT(atan2l);\n\
98 extern long double cosl( long double ) __LIBMLDBL_COMPAT(cosl);\n\
99 extern long double sinl( long double ) __LIBMLDBL_COMPAT(sinl);\n\
100 extern long double tanl( long double ) __LIBMLDBL_COMPAT(tanl);\n\
101 extern long double acoshl( long double ) __LIBMLDBL_COMPAT(acoshl);\n\
102 extern long double asinhl( long double ) __LIBMLDBL_COMPAT(asinhl);\n\
103 extern long double atanhl( long double ) __LIBMLDBL_COMPAT(atanhl);\n\
104 extern long double coshl( long double ) __LIBMLDBL_COMPAT(coshl);\n\
105 extern long double sinhl( long double ) __LIBMLDBL_COMPAT(sinhl);\n\
106 extern long double tanhl( long double ) __LIBMLDBL_COMPAT(tanhl);\n\
107 extern long double expl( long double ) __LIBMLDBL_COMPAT(expl);\n\
108 extern long double exp2l( long double ) __LIBMLDBL_COMPAT(exp2l);\n\
109 extern long double expm1l( long double ) __LIBMLDBL_COMPAT(expm1l);\n\
110 extern long double logl( long double ) __LIBMLDBL_COMPAT(logl);\n\
111 extern long double log10l( long double ) __LIBMLDBL_COMPAT(log10l);\n\
112 extern long double log2l( long double ) __LIBMLDBL_COMPAT(log2l);\n\
113 extern long double log1pl( long double ) __LIBMLDBL_COMPAT(log1pl);\n\
114 extern long double logbl( long double ) __LIBMLDBL_COMPAT(logbl);\n\
115 extern long double modfl( long double, long double * ) __LIBMLDBL_COMPAT(modfl);\n\
116 extern long double ldexpl( long double, int ) __LIBMLDBL_COMPAT(ldexpl);\n\
117 extern long double frexpl( long double, int * ) __LIBMLDBL_COMPAT(frexpl);\n\
118 extern int ilogbl( long double ) __LIBMLDBL_COMPAT(ilogbl);\n\
119 extern long double scalbnl( long double, int ) __LIBMLDBL_COMPAT(scalbnl);\n\
120 extern long double scalblnl( long double, long int ) __LIBMLDBL_COMPAT(scalblnl);\n\
121 extern long double fabsl( long double ) __LIBMLDBL_COMPAT(fabsl);\n\
122 extern long double cbrtl( long double ) __LIBMLDBL_COMPAT(cbrtl);\n\
123 extern long double hypotl( long double, long double ) __LIBMLDBL_COMPAT(hypotl);\n\
124 extern long double powl( long double, long double ) __LIBMLDBL_COMPAT(powl);\n\
125 extern long double sqrtl( long double ) __LIBMLDBL_COMPAT(sqrtl);\n\
126 extern long double erfl( long double ) __LIBMLDBL_COMPAT(erfl);\n\
127 extern long double erfcl( long double ) __LIBMLDBL_COMPAT(erfcl);\n\
128 extern long double lgammal( long double ) __LIBMLDBL_COMPAT(lgammal);\n\
129 extern long double tgammal( long double ) __LIBMLDBL_COMPAT(tgammal);\n\
130 extern long double ceill( long double ) __LIBMLDBL_COMPAT(ceill);\n\
131 extern long double floorl( long double ) __LIBMLDBL_COMPAT(floorl);\n\
132 extern long double nearbyintl( long double ) __LIBMLDBL_COMPAT(nearbyintl);\n\
133 extern long double rintl( long double ) __LIBMLDBL_COMPAT(rintl);\n\
134 extern long int lrintl( long double ) __LIBMLDBL_COMPAT(lrintl);\n\
135 extern long long int llrintl( long double ) __LIBMLDBL_COMPAT(llrintl);\n\
136 extern long double roundl( long double ) __LIBMLDBL_COMPAT(roundl);\n\
137 extern long int lroundl( long double ) __LIBMLDBL_COMPAT(lroundl);\n\
138 extern long long int llroundl( long double ) __LIBMLDBL_COMPAT(llroundl);\n\
139 extern long double truncl( long double ) __LIBMLDBL_COMPAT(truncl);\n\
140 extern long double fmodl( long double, long double) __LIBMLDBL_COMPAT(fmodl);\n\
141 extern long double remainderl( long double, long double ) __LIBMLDBL_COMPAT(remainderl);\n\
142 extern long double remquol( long double, long double, int * ) __LIBMLDBL_COMPAT(remquol);\n\
143 extern long double copysignl( long double, long double ) __LIBMLDBL_COMPAT(copysignl);\n\
144 extern long double nanl( const char * ) __LIBMLDBL_COMPAT(nanl);\n\
145 extern long double nextafterl( long double, long double ) __LIBMLDBL_COMPAT(nextafterl);\n\
146 extern long double nexttowardl( long double, long double ) __LIBMLDBL_COMPAT(nexttowardl);\n\
147 extern long double fdiml( long double, long double ) __LIBMLDBL_COMPAT(fdiml);\n\
148 extern long double fmaxl( long double, long double ) __LIBMLDBL_COMPAT(fmaxl);\n\
149 extern long double fminl( long double, long double ) __LIBMLDBL_COMPAT(fminl);\n\
150 extern long double fmal( long double, long double, long double ) __LIBMLDBL_COMPAT(fmal);\n\
151 # ifdef __cplusplus\n\
152 }\n\
153 # endif\n\
154 #endif /* __MATH__ */",
155 (char*)NULL };
156
157 /* * * * * * * * * * * * * * * * * * * * * * * * * *
158 *
159 * Description of Aab_Darwin7_9_Long_Double_Funcs_2 fix
160 */
161 tSCC zAab_Darwin7_9_Long_Double_Funcs_2Name[] =
162 "AAB_darwin7_9_long_double_funcs_2";
163
164 /*
165 * File name selection pattern
166 */
167 tSCC zAab_Darwin7_9_Long_Double_Funcs_2List[] =
168 "|math.h|";
169 /*
170 * Machine/OS name selection pattern
171 */
172 tSCC* apzAab_Darwin7_9_Long_Double_Funcs_2Machs[] = {
173 "*-*-darwin7.9*",
174 (const char*)NULL };
175
176 /*
177 * content selection pattern - do fix if pattern found
178 */
179 tSCC zAab_Darwin7_9_Long_Double_Funcs_2Select0[] =
180 "#include[ \\t]+\\\"";
181
182 #define AAB_DARWIN7_9_LONG_DOUBLE_FUNCS_2_TEST_CT 1
183 static tTestDesc aAab_Darwin7_9_Long_Double_Funcs_2Tests[] = {
184 { TT_EGREP, zAab_Darwin7_9_Long_Double_Funcs_2Select0, (regex_t*)NULL }, };
185
186 /*
187 * Fix Command Arguments for Aab_Darwin7_9_Long_Double_Funcs_2
188 */
189 static const char* apzAab_Darwin7_9_Long_Double_Funcs_2Patch[] = {
190 "format",
191 "%1<%2.h>",
192 "([ \\t]*#[ \\t]*include[ \\t]+)\"([a-z0-9/]+)\\.h\"",
193 (char*)NULL };
194
195 /* * * * * * * * * * * * * * * * * * * * * * * * * *
196 *
197 * Description of Aab_Fd_Zero_Asm_Posix_Types_H fix
198 */
199 tSCC zAab_Fd_Zero_Asm_Posix_Types_HName[] =
200 "AAB_fd_zero_asm_posix_types_h";
201
202 /*
203 * File name selection pattern
204 */
205 tSCC zAab_Fd_Zero_Asm_Posix_Types_HList[] =
206 "|asm/posix_types.h|";
207 /*
208 * Machine/OS name selection pattern
209 */
210 tSCC* apzAab_Fd_Zero_Asm_Posix_Types_HMachs[] = {
211 "i[34567]86-*-linux*",
212 (const char*)NULL };
213
214 /*
215 * content bypass pattern - skip fix if pattern found
216 */
217 tSCC zAab_Fd_Zero_Asm_Posix_Types_HBypass0[] =
218 "} while";
219
220 #define AAB_FD_ZERO_ASM_POSIX_TYPES_H_TEST_CT 1
221 static tTestDesc aAab_Fd_Zero_Asm_Posix_Types_HTests[] = {
222 { TT_NEGREP, zAab_Fd_Zero_Asm_Posix_Types_HBypass0, (regex_t*)NULL }, };
223
224 /*
225 * Fix Command Arguments for Aab_Fd_Zero_Asm_Posix_Types_H
226 */
227 static const char* apzAab_Fd_Zero_Asm_Posix_Types_HPatch[] = {
228 "/* This file fixes a bug in the __FD_ZERO macro\n\
229 for older versions of the Linux kernel. */\n\
230 #ifndef _POSIX_TYPES_H_WRAPPER\n\
231 #include <features.h>\n\
232 #include_next <asm/posix_types.h>\n\n\
233 #if defined(__FD_ZERO) && !defined(__GLIBC__)\n\
234 #undef __FD_ZERO\n\
235 #define __FD_ZERO(fdsetp) \\\n\
236 do { \\\n\
237 int __d0, __d1; \\\n\
238 __asm__ __volatile__(\"cld ; rep ; stosl\" \\\n\
239 : \"=&c\" (__d0), \"=&D\" (__d1) \\\n\
240 : \"a\" (0), \"0\" (__FDSET_LONGS), \\\n\
241 \"1\" ((__kernel_fd_set *) (fdsetp)) :\"memory\"); \\\n\
242 } while (0)\n\
243 #endif\n\n\
244 #define _POSIX_TYPES_H_WRAPPER\n\
245 #endif /* _POSIX_TYPES_H_WRAPPER */",
246 (char*)NULL };
247
248 /* * * * * * * * * * * * * * * * * * * * * * * * * *
249 *
250 * Description of Aab_Fd_Zero_Gnu_Types_H fix
251 */
252 tSCC zAab_Fd_Zero_Gnu_Types_HName[] =
253 "AAB_fd_zero_gnu_types_h";
254
255 /*
256 * File name selection pattern
257 */
258 tSCC zAab_Fd_Zero_Gnu_Types_HList[] =
259 "|gnu/types.h|";
260 /*
261 * Machine/OS name selection pattern
262 */
263 tSCC* apzAab_Fd_Zero_Gnu_Types_HMachs[] = {
264 "i[34567]86-*-linux*",
265 (const char*)NULL };
266 #define AAB_FD_ZERO_GNU_TYPES_H_TEST_CT 0
267 #define aAab_Fd_Zero_Gnu_Types_HTests (tTestDesc*)NULL
268
269 /*
270 * Fix Command Arguments for Aab_Fd_Zero_Gnu_Types_H
271 */
272 static const char* apzAab_Fd_Zero_Gnu_Types_HPatch[] = {
273 "/* This file fixes a bug in the __FD_ZERO macro present in glibc 1.x. */\n\
274 #ifndef _TYPES_H_WRAPPER\n\
275 #include <features.h>\n\
276 #include_next <gnu/types.h>\n\n\
277 #if defined(__FD_ZERO) && !defined(__GLIBC__)\n\
278 #undef __FD_ZERO\n\
279 # define __FD_ZERO(fdsetp) \\\n\
280 do { \\\n\
281 int __d0, __d1; \\\n\
282 __asm__ __volatile__(\"cld ; rep ; stosl\" \\\n\
283 : \"=&c\" (__d0), \"=&D\" (__d1) \\\n\
284 : \"a\" (0), \"0\" (__FDSET_LONGS), \\\n\
285 \"1\" ((__fd_set *) (fdsetp)) :\"memory\"); \\\n\
286 } while (0)\n\
287 #endif\n\n\
288 #define _TYPES_H_WRAPPER\n\
289 #endif /* _TYPES_H_WRAPPER */",
290 (char*)NULL };
291
292 /* * * * * * * * * * * * * * * * * * * * * * * * * *
293 *
294 * Description of Aab_Fd_Zero_Selectbits_H fix
295 */
296 tSCC zAab_Fd_Zero_Selectbits_HName[] =
297 "AAB_fd_zero_selectbits_h";
298
299 /*
300 * File name selection pattern
301 */
302 tSCC zAab_Fd_Zero_Selectbits_HList[] =
303 "|selectbits.h|";
304 /*
305 * Machine/OS name selection pattern
306 */
307 tSCC* apzAab_Fd_Zero_Selectbits_HMachs[] = {
308 "i[34567]86-*-linux*",
309 (const char*)NULL };
310 #define AAB_FD_ZERO_SELECTBITS_H_TEST_CT 0
311 #define aAab_Fd_Zero_Selectbits_HTests (tTestDesc*)NULL
312
313 /*
314 * Fix Command Arguments for Aab_Fd_Zero_Selectbits_H
315 */
316 static const char* apzAab_Fd_Zero_Selectbits_HPatch[] = {
317 "/* This file fixes a bug in the __FD_ZERO macro present in glibc 2.0.x. */\n\
318 #ifndef _SELECTBITS_H_WRAPPER\n\
319 #include <features.h>\n\
320 #include_next <selectbits.h>\n\n\
321 #if defined(__FD_ZERO) && defined(__GLIBC__) \\\\\n\
322 && defined(__GLIBC_MINOR__) && __GLIBC__ == 2 \\\\\n\
323 && __GLIBC_MINOR__ == 0\n\
324 #undef __FD_ZERO\n\
325 #define __FD_ZERO(fdsetp) \\\\\n\
326 do { \\\\\n\
327 int __d0, __d1; \\\\\n\
328 __asm__ __volatile__ (\"cld; rep; stosl\" \\\\\n\
329 : \"=&c\" (__d0), \"=&D\" (__d1) \\\\\n\
330 : \"a\" (0), \"0\" (sizeof (__fd_set) \\\\\n\
331 / sizeof (__fd_mask)), \\\\\n\
332 \"1\" ((__fd_mask *) (fdsetp)) \\\\\n\
333 : \"memory\"); \\\\\n\
334 } while (0)\n\
335 #endif\n\n\
336 #define _SELECTBITS_H_WRAPPER\n\
337 #endif /* _SELECTBITS_H_WRAPPER */",
338 (char*)NULL };
339
340 /* * * * * * * * * * * * * * * * * * * * * * * * * *
341 *
342 * Description of Aab_Solaris_Sys_Varargs_H fix
343 */
344 tSCC zAab_Solaris_Sys_Varargs_HName[] =
345 "AAB_solaris_sys_varargs_h";
346
347 /*
348 * File name selection pattern
349 */
350 tSCC zAab_Solaris_Sys_Varargs_HList[] =
351 "|sys/varargs.h|";
352 /*
353 * Machine/OS name selection pattern
354 */
355 tSCC* apzAab_Solaris_Sys_Varargs_HMachs[] = {
356 "*-*-solaris*",
357 (const char*)NULL };
358 #define AAB_SOLARIS_SYS_VARARGS_H_TEST_CT 0
359 #define aAab_Solaris_Sys_Varargs_HTests (tTestDesc*)NULL
360
361 /*
362 * Fix Command Arguments for Aab_Solaris_Sys_Varargs_H
363 */
364 static const char* apzAab_Solaris_Sys_Varargs_HPatch[] = {
365 "#ifdef __STDC__\n\
366 #include <stdarg.h>\n\
367 #else\n\
368 #include <varargs.h>\n\
369 #endif",
370 (char*)NULL };
371
372 /* * * * * * * * * * * * * * * * * * * * * * * * * *
373 *
374 * Description of Aab_Sun_Memcpy fix
375 */
376 tSCC zAab_Sun_MemcpyName[] =
377 "AAB_sun_memcpy";
378
379 /*
380 * File name selection pattern
381 */
382 tSCC zAab_Sun_MemcpyList[] =
383 "|memory.h|";
384 /*
385 * Machine/OS name selection pattern
386 */
387 #define apzAab_Sun_MemcpyMachs (const char**)NULL
388
389 /*
390 * content selection pattern - do fix if pattern found
391 */
392 tSCC zAab_Sun_MemcpySelect0[] =
393 "/\\*\t@\\(#\\)(head/memory.h\t50.1\t |memory\\.h 1\\.[2-4] 8./../.. SMI; from S5R2 1\\.2\t)\\*/";
394
395 #define AAB_SUN_MEMCPY_TEST_CT 1
396 static tTestDesc aAab_Sun_MemcpyTests[] = {
397 { TT_EGREP, zAab_Sun_MemcpySelect0, (regex_t*)NULL }, };
398
399 /*
400 * Fix Command Arguments for Aab_Sun_Memcpy
401 */
402 static const char* apzAab_Sun_MemcpyPatch[] = {
403 "/* This file was generated by fixincludes */\n\
404 #ifndef __memory_h__\n\
405 #define __memory_h__\n\n\
406 #ifdef __STDC__\n\
407 extern void *memccpy();\n\
408 extern void *memchr();\n\
409 extern void *memcpy();\n\
410 extern void *memset();\n\
411 #else\n\
412 extern char *memccpy();\n\
413 extern char *memchr();\n\
414 extern char *memcpy();\n\
415 extern char *memset();\n\
416 #endif /* __STDC__ */\n\n\
417 extern int memcmp();\n\n\
418 #endif /* __memory_h__ */\n\
419 _EndOfHeader;\n\
420 };\n\n\n\
421 /*\n\
422 * Completely replace <sys/varargs.h> with a file that includes gcc's\n\
423 * stdarg.h or varargs.h files as appropriate.\n\
424 */\n\
425 #ifdef SVR4\n\
426 fix = {\n\
427 hackname = AAB_svr4_no_varargs;\n\
428 files = sys/varargs.h;\n\
429 replace = \"/* This file was generated by fixincludes. */\\n\"\n\
430 \"#ifndef _SYS_VARARGS_H\\n\"\n\
431 \"#define _SYS_VARARGS_H\\n\\n\"\n\n\
432 \"#ifdef __STDC__\\n\"\n\
433 \"#include <stdarg.h>\\n\"\n\
434 \"#else\\n\"\n\
435 \"#include <varargs.h>\\n\"\n\
436 \"#endif\\n\\n\"\n\n\
437 \"#endif /* _SYS_VARARGS_H */\\n\";\n\
438 };\n\
439 #endif\n\n\n\
440 /*\n\
441 * Completely replace <sys/byteorder.h> with a file that implements gcc's\n\
442 * optimized byteswapping. (The original probably implemented some\n\
443 * incompatible optimized byteswapping.)\n\
444 */\n\
445 fix = {\n\
446 hackname = AAB_svr4_replace_byteorder;\n\
447 mach = \"*-*-sysv4*\";\n\
448 mach = \"i[34567]86-*-sysv5*\";\n\
449 mach = \"i[34567]86-*-sco3.2v5*\";\n\
450 mach = \"i[34567]86-*-udk*\";\n\
451 mach = \"i[34567]86-*-solaris2.[0-4]\";\n\
452 mach = \"powerpcle-*-solaris2.[0-4]\";\n\
453 mach = \"sparc-*-solaris2.[0-4]\";\n\
454 mach = \"i[34567]86-sequent-ptx*\";\n\
455 files = sys/byteorder.h;\n\
456 replace = <<- _EndOfHeader_\n\
457 #ifndef _SYS_BYTEORDER_H\n\
458 #define _SYS_BYTEORDER_H\n\n\
459 /* Functions to convert `short' and `long' quantities from host byte order\n\
460 to (internet) network byte order (i.e. big-endian).\n\n\
461 Written by Ron Guilmette (rfg@ncd.com).\n\n\
462 This isn't actually used by GCC. It is installed by fixinc.svr4.\n\n\
463 For big-endian machines these functions are essentially no-ops.\n\n\
464 For little-endian machines, we define the functions using specialized\n\
465 asm sequences in cases where doing so yields better code (e.g. i386). */\n\n\
466 #if !defined (__GNUC__) && !defined (__GNUG__)\n\
467 #error You lose! This file is only useful with GNU compilers.\n\
468 #endif\n\n\
469 #ifndef __BYTE_ORDER__\n\
470 /* Byte order defines. These are as defined on UnixWare 1.1, but with\n\
471 double underscores added at the front and back. */\n\
472 #define __LITTLE_ENDIAN__ 1234\n\
473 #define __BIG_ENDIAN__ 4321\n\
474 #define __PDP_ENDIAN__ 3412\n\
475 #endif\n\n\
476 #ifdef __STDC__\n\
477 static __inline__ unsigned long htonl (unsigned long);\n\
478 static __inline__ unsigned short htons (unsigned int);\n\
479 static __inline__ unsigned long ntohl (unsigned long);\n\
480 static __inline__ unsigned short ntohs (unsigned int);\n\
481 #endif /* defined (__STDC__) */\n\n\
482 #if defined (__i386__)\n\n\
483 #ifndef __BYTE_ORDER__\n\
484 #define __BYTE_ORDER__ __LITTLE_ENDIAN__\n\
485 #endif\n\n\
486 /* Convert a host long to a network long. */\n\n\
487 /* We must use a new-style function definition, so that this will also\n\
488 be valid for C++. */\n\
489 static __inline__ unsigned long\n\
490 htonl (unsigned long __arg)\n\
491 {\n\
492 register unsigned long __result;\n\n\
493 __asm__ (\"xchg%B0 %b0,%h0\n\
494 ror%L0 $16,%0\n\
495 xchg%B0 %b0,%h0\" : \"=q\" (__result) : \"0\" (__arg));\n\
496 return __result;\n\
497 }\n\n\
498 /* Convert a host short to a network short. */\n\n\
499 static __inline__ unsigned short\n\
500 htons (unsigned int __arg)\n\
501 {\n\
502 register unsigned short __result;\n\n\
503 __asm__ (\"xchg%B0 %b0,%h0\" : \"=q\" (__result) : \"0\" (__arg));\n\
504 return __result;\n\
505 }\n\n\
506 #elif (defined (__ns32k__) || defined (__vax__) || defined (__arm__))\n\n\
507 #ifndef __BYTE_ORDER__\n\
508 #define __BYTE_ORDER__ __LITTLE_ENDIAN__\n\
509 #endif\n\n\
510 /* For other little-endian machines, using C code is just as efficient as\n\
511 using assembly code. */\n\n\
512 /* Convert a host long to a network long. */\n\n\
513 static __inline__ unsigned long\n\
514 htonl (unsigned long __arg)\n\
515 {\n\
516 register unsigned long __result;\n\n\
517 __result = (__arg >> 24) & 0x000000ff;\n\
518 __result |= (__arg >> 8) & 0x0000ff00;\n\
519 __result |= (__arg << 8) & 0x00ff0000;\n\
520 __result |= (__arg << 24) & 0xff000000;\n\
521 return __result;\n\
522 }\n\n\
523 /* Convert a host short to a network short. */\n\n\
524 static __inline__ unsigned short\n\
525 htons (unsigned int __arg)\n\
526 {\n\
527 register unsigned short __result;\n\n\
528 __result = (__arg << 8) & 0xff00;\n\
529 __result |= (__arg >> 8) & 0x00ff;\n\
530 return __result;\n\
531 }\n\n\
532 #else /* must be a big-endian machine */\n\n\
533 #ifndef __BYTE_ORDER__\n\
534 #define __BYTE_ORDER__ __BIG_ENDIAN__\n\
535 #endif\n\n\
536 /* Convert a host long to a network long. */\n\n\
537 static __inline__ unsigned long\n\
538 htonl (unsigned long __arg)\n\
539 {\n\
540 return __arg;\n\
541 }\n\n\
542 /* Convert a host short to a network short. */\n\n\
543 static __inline__ unsigned short\n\
544 htons (unsigned int __arg)\n\
545 {\n\
546 return __arg;\n\
547 }\n\n\
548 #endif /* big-endian */\n\n\
549 /* Convert a network long to a host long. */\n\n\
550 static __inline__ unsigned long\n\
551 ntohl (unsigned long __arg)\n\
552 {\n\
553 return htonl (__arg);\n\
554 }\n\n\
555 /* Convert a network short to a host short. */\n\n\
556 static __inline__ unsigned short\n\
557 ntohs (unsigned int __arg)\n\
558 {\n\
559 return htons (__arg);\n\
560 }\n\
561 #endif",
562 (char*)NULL };
563
564 /* * * * * * * * * * * * * * * * * * * * * * * * * *
565 *
566 * Description of Aab_Ultrix_Ansi_Compat fix
567 */
568 tSCC zAab_Ultrix_Ansi_CompatName[] =
569 "AAB_ultrix_ansi_compat";
570
571 /*
572 * File name selection pattern
573 */
574 tSCC zAab_Ultrix_Ansi_CompatList[] =
575 "|ansi_compat.h|";
576 /*
577 * Machine/OS name selection pattern
578 */
579 #define apzAab_Ultrix_Ansi_CompatMachs (const char**)NULL
580
581 /*
582 * content selection pattern - do fix if pattern found
583 */
584 tSCC zAab_Ultrix_Ansi_CompatSelect0[] =
585 "ULTRIX";
586
587 #define AAB_ULTRIX_ANSI_COMPAT_TEST_CT 1
588 static tTestDesc aAab_Ultrix_Ansi_CompatTests[] = {
589 { TT_EGREP, zAab_Ultrix_Ansi_CompatSelect0, (regex_t*)NULL }, };
590
591 /*
592 * Fix Command Arguments for Aab_Ultrix_Ansi_Compat
593 */
594 static const char* apzAab_Ultrix_Ansi_CompatPatch[] = {
595 "/* This file intentionally left blank. */\n",
596 (char*)NULL };
597
598 /* * * * * * * * * * * * * * * * * * * * * * * * * *
599 *
600 * Description of Aab_Ultrix_Limits fix
601 */
602 tSCC zAab_Ultrix_LimitsName[] =
603 "AAB_ultrix_limits";
604
605 /*
606 * File name selection pattern
607 */
608 tSCC zAab_Ultrix_LimitsList[] =
609 "|limits.h|";
610 /*
611 * Machine/OS name selection pattern
612 */
613 tSCC* apzAab_Ultrix_LimitsMachs[] = {
614 "*-*-ultrix4.3",
615 (const char*)NULL };
616 #define AAB_ULTRIX_LIMITS_TEST_CT 0
617 #define aAab_Ultrix_LimitsTests (tTestDesc*)NULL
618
619 /*
620 * Fix Command Arguments for Aab_Ultrix_Limits
621 */
622 static const char* apzAab_Ultrix_LimitsPatch[] = {
623 "#ifndef _LIMITS_INCLUDED\n\
624 #define _LIMITS_INCLUDED\n\
625 #include <sys/limits.h>\n\
626 #endif /* _LIMITS_INCLUDED */",
627 (char*)NULL };
628
629 /* * * * * * * * * * * * * * * * * * * * * * * * * *
630 *
631 * Description of Aab_Ultrix_Memory fix
632 */
633 tSCC zAab_Ultrix_MemoryName[] =
634 "AAB_ultrix_memory";
635
636 /*
637 * File name selection pattern
638 */
639 tSCC zAab_Ultrix_MemoryList[] =
640 "|memory.h|";
641 /*
642 * Machine/OS name selection pattern
643 */
644 tSCC* apzAab_Ultrix_MemoryMachs[] = {
645 "*-*-ultrix4.3",
646 (const char*)NULL };
647 #define AAB_ULTRIX_MEMORY_TEST_CT 0
648 #define aAab_Ultrix_MemoryTests (tTestDesc*)NULL
649
650 /*
651 * Fix Command Arguments for Aab_Ultrix_Memory
652 */
653 static const char* apzAab_Ultrix_MemoryPatch[] = {
654 "#ifndef _MEMORY_INCLUDED\n\
655 #define _MEMORY_INCLUDED\n\
656 #include <strings.h>\n\
657 #endif /* _MEMORY_INCLUDED */",
658 (char*)NULL };
659
660 /* * * * * * * * * * * * * * * * * * * * * * * * * *
661 *
662 * Description of Aab_Ultrix_String fix
663 */
664 tSCC zAab_Ultrix_StringName[] =
665 "AAB_ultrix_string";
666
667 /*
668 * File name selection pattern
669 */
670 tSCC zAab_Ultrix_StringList[] =
671 "|string.h|";
672 /*
673 * Machine/OS name selection pattern
674 */
675 tSCC* apzAab_Ultrix_StringMachs[] = {
676 "*-*-ultrix4.3",
677 (const char*)NULL };
678 #define AAB_ULTRIX_STRING_TEST_CT 0
679 #define aAab_Ultrix_StringTests (tTestDesc*)NULL
680
681 /*
682 * Fix Command Arguments for Aab_Ultrix_String
683 */
684 static const char* apzAab_Ultrix_StringPatch[] = {
685 "#ifndef _STRING_INCLUDED\n\
686 #define _STRING_INCLUDED\n\
687 #include <strings.h>\n\
688 #endif /* _STRING_INCLUDED */",
689 (char*)NULL };
690
691 /* * * * * * * * * * * * * * * * * * * * * * * * * *
692 *
693 * Description of Aix_Pthread fix
694 */
695 tSCC zAix_PthreadName[] =
696 "aix_pthread";
697
698 /*
699 * File name selection pattern
700 */
701 tSCC zAix_PthreadList[] =
702 "|pthread.h|";
703 /*
704 * Machine/OS name selection pattern
705 */
706 #define apzAix_PthreadMachs (const char**)NULL
707
708 /*
709 * content selection pattern - do fix if pattern found
710 */
711 tSCC zAix_PthreadSelect0[] =
712 "(#define [A-Za-z_0-9]+)(\\\\\n\
713 [^A-Za-z_0-9 \t\n\
714 (])";
715
716 #define AIX_PTHREAD_TEST_CT 1
717 static tTestDesc aAix_PthreadTests[] = {
718 { TT_EGREP, zAix_PthreadSelect0, (regex_t*)NULL }, };
719
720 /*
721 * Fix Command Arguments for Aix_Pthread
722 */
723 static const char* apzAix_PthreadPatch[] = {
724 "format",
725 "%1 %2",
726 (char*)NULL };
727
728 /* * * * * * * * * * * * * * * * * * * * * * * * * *
729 *
730 * Description of Aix_Sysmachine fix
731 */
732 tSCC zAix_SysmachineName[] =
733 "aix_sysmachine";
734
735 /*
736 * File name selection pattern
737 */
738 tSCC zAix_SysmachineList[] =
739 "|sys/machine.h|";
740 /*
741 * Machine/OS name selection pattern
742 */
743 #define apzAix_SysmachineMachs (const char**)NULL
744
745 /*
746 * content selection pattern - do fix if pattern found
747 */
748 tSCC zAix_SysmachineSelect0[] =
749 "\\\\ +\n";
750
751 #define AIX_SYSMACHINE_TEST_CT 1
752 static tTestDesc aAix_SysmachineTests[] = {
753 { TT_EGREP, zAix_SysmachineSelect0, (regex_t*)NULL }, };
754
755 /*
756 * Fix Command Arguments for Aix_Sysmachine
757 */
758 static const char* apzAix_SysmachinePatch[] = {
759 "format",
760 "\\\n",
761 (char*)NULL };
762
763 /* * * * * * * * * * * * * * * * * * * * * * * * * *
764 *
765 * Description of Aix_Syswait fix
766 */
767 tSCC zAix_SyswaitName[] =
768 "aix_syswait";
769
770 /*
771 * File name selection pattern
772 */
773 tSCC zAix_SyswaitList[] =
774 "|sys/wait.h|";
775 /*
776 * Machine/OS name selection pattern
777 */
778 #define apzAix_SyswaitMachs (const char**)NULL
779
780 /*
781 * content selection pattern - do fix if pattern found
782 */
783 tSCC zAix_SyswaitSelect0[] =
784 "^extern pid_t wait3\\(\\);\n";
785 tSCC zAix_SyswaitSelect1[] =
786 "bos325,";
787
788 #define AIX_SYSWAIT_TEST_CT 2
789 static tTestDesc aAix_SyswaitTests[] = {
790 { TT_EGREP, zAix_SyswaitSelect0, (regex_t*)NULL },
791 { TT_EGREP, zAix_SyswaitSelect1, (regex_t*)NULL }, };
792
793 /*
794 * Fix Command Arguments for Aix_Syswait
795 */
796 static const char* apzAix_SyswaitPatch[] = {
797 "format",
798 "struct rusage;\n\
799 %0",
800 (char*)NULL };
801
802 /* * * * * * * * * * * * * * * * * * * * * * * * * *
803 *
804 * Description of Aix_Syswait_2 fix
805 */
806 tSCC zAix_Syswait_2Name[] =
807 "aix_syswait_2";
808
809 /*
810 * File name selection pattern
811 */
812 tSCC zAix_Syswait_2List[] =
813 "|sys/wait.h|";
814 /*
815 * Machine/OS name selection pattern
816 */
817 #define apzAix_Syswait_2Machs (const char**)NULL
818
819 /*
820 * content selection pattern - do fix if pattern found
821 */
822 tSCC zAix_Syswait_2Select0[] =
823 "\\? (\\(\\(\\(\\(unsigned[^)]*\\)[^)]*\\) >> [^)]*\\) \\& 0xff\\) : -1)";
824
825 #define AIX_SYSWAIT_2_TEST_CT 1
826 static tTestDesc aAix_Syswait_2Tests[] = {
827 { TT_EGREP, zAix_Syswait_2Select0, (regex_t*)NULL }, };
828
829 /*
830 * Fix Command Arguments for Aix_Syswait_2
831 */
832 static const char* apzAix_Syswait_2Patch[] = {
833 "format",
834 "? (int)%1",
835 (char*)NULL };
836
837 /* * * * * * * * * * * * * * * * * * * * * * * * * *
838 *
839 * Description of Aix_Volatile fix
840 */
841 tSCC zAix_VolatileName[] =
842 "aix_volatile";
843
844 /*
845 * File name selection pattern
846 */
847 tSCC zAix_VolatileList[] =
848 "|sys/signal.h|";
849 /*
850 * Machine/OS name selection pattern
851 */
852 #define apzAix_VolatileMachs (const char**)NULL
853
854 /*
855 * content selection pattern - do fix if pattern found
856 */
857 tSCC zAix_VolatileSelect0[] =
858 "typedef volatile int sig_atomic_t";
859
860 #define AIX_VOLATILE_TEST_CT 1
861 static tTestDesc aAix_VolatileTests[] = {
862 { TT_EGREP, zAix_VolatileSelect0, (regex_t*)NULL }, };
863
864 /*
865 * Fix Command Arguments for Aix_Volatile
866 */
867 static const char* apzAix_VolatilePatch[] = {
868 "format",
869 "typedef int sig_atomic_t",
870 (char*)NULL };
871
872 /* * * * * * * * * * * * * * * * * * * * * * * * * *
873 *
874 * Description of Alpha___Assert fix
875 */
876 tSCC zAlpha___AssertName[] =
877 "alpha___assert";
878
879 /*
880 * File name selection pattern
881 */
882 tSCC zAlpha___AssertList[] =
883 "|assert.h|";
884 /*
885 * Machine/OS name selection pattern
886 */
887 #define apzAlpha___AssertMachs (const char**)NULL
888
889 /*
890 * content selection pattern - do fix if pattern found
891 */
892 tSCC zAlpha___AssertSelect0[] =
893 "__assert\\(char \\*, char \\*, int\\)";
894
895 #define ALPHA___ASSERT_TEST_CT 1
896 static tTestDesc aAlpha___AssertTests[] = {
897 { TT_EGREP, zAlpha___AssertSelect0, (regex_t*)NULL }, };
898
899 /*
900 * Fix Command Arguments for Alpha___Assert
901 */
902 static const char* apzAlpha___AssertPatch[] = {
903 "format",
904 "__assert(const char *, const char *, int)",
905 (char*)NULL };
906
907 /* * * * * * * * * * * * * * * * * * * * * * * * * *
908 *
909 * Description of Alpha___Extern_Prefix fix
910 */
911 tSCC zAlpha___Extern_PrefixName[] =
912 "alpha___extern_prefix";
913
914 /*
915 * File name selection pattern
916 */
917 #define zAlpha___Extern_PrefixList (char*)NULL
918 /*
919 * Machine/OS name selection pattern
920 */
921 tSCC* apzAlpha___Extern_PrefixMachs[] = {
922 "alpha*-dec-osf*",
923 (const char*)NULL };
924
925 /*
926 * content selection pattern - do fix if pattern found
927 */
928 tSCC zAlpha___Extern_PrefixSelect0[] =
929 "(.*)(defined\\(__DECC\\)|def[ \t]*__DECC)[ \t]*\n\
930 (#[ \t]*pragma[ \t]*extern_prefix.*)";
931
932 #define ALPHA___EXTERN_PREFIX_TEST_CT 1
933 static tTestDesc aAlpha___Extern_PrefixTests[] = {
934 { TT_EGREP, zAlpha___Extern_PrefixSelect0, (regex_t*)NULL }, };
935
936 /*
937 * Fix Command Arguments for Alpha___Extern_Prefix
938 */
939 static const char* apzAlpha___Extern_PrefixPatch[] = {
940 "format",
941 "%1 (defined(__DECC) || defined(__PRAGMA_EXTERN_PREFIX))\n\
942 %3",
943 (char*)NULL };
944
945 /* * * * * * * * * * * * * * * * * * * * * * * * * *
946 *
947 * Description of Alpha___Extern_Prefix_Standards fix
948 */
949 tSCC zAlpha___Extern_Prefix_StandardsName[] =
950 "alpha___extern_prefix_standards";
951
952 /*
953 * File name selection pattern
954 */
955 tSCC zAlpha___Extern_Prefix_StandardsList[] =
956 "|standards.h|";
957 /*
958 * Machine/OS name selection pattern
959 */
960 tSCC* apzAlpha___Extern_Prefix_StandardsMachs[] = {
961 "alpha*-dec-osf*",
962 (const char*)NULL };
963
964 /*
965 * content selection pattern - do fix if pattern found
966 */
967 tSCC zAlpha___Extern_Prefix_StandardsSelect0[] =
968 ".*!defined\\(_LIBC_POLLUTION_H_\\) && !defined\\(__DECC\\)";
969
970 #define ALPHA___EXTERN_PREFIX_STANDARDS_TEST_CT 1
971 static tTestDesc aAlpha___Extern_Prefix_StandardsTests[] = {
972 { TT_EGREP, zAlpha___Extern_Prefix_StandardsSelect0, (regex_t*)NULL }, };
973
974 /*
975 * Fix Command Arguments for Alpha___Extern_Prefix_Standards
976 */
977 static const char* apzAlpha___Extern_Prefix_StandardsPatch[] = {
978 "format",
979 "%0 && !defined(__PRAGMA_EXTERN_PREFIX)",
980 (char*)NULL };
981
982 /* * * * * * * * * * * * * * * * * * * * * * * * * *
983 *
984 * Description of Alpha___Extern_Prefix_Sys_Stat fix
985 */
986 tSCC zAlpha___Extern_Prefix_Sys_StatName[] =
987 "alpha___extern_prefix_sys_stat";
988
989 /*
990 * File name selection pattern
991 */
992 tSCC zAlpha___Extern_Prefix_Sys_StatList[] =
993 "|sys/stat.h|sys/mount.h|";
994 /*
995 * Machine/OS name selection pattern
996 */
997 tSCC* apzAlpha___Extern_Prefix_Sys_StatMachs[] = {
998 "alpha*-dec-osf5*",
999 (const char*)NULL };
1000
1001 /*
1002 * content selection pattern - do fix if pattern found
1003 */
1004 tSCC zAlpha___Extern_Prefix_Sys_StatSelect0[] =
1005 "#[ \t]*if[ \t]*defined\\(__DECC\\)";
1006
1007 #define ALPHA___EXTERN_PREFIX_SYS_STAT_TEST_CT 1
1008 static tTestDesc aAlpha___Extern_Prefix_Sys_StatTests[] = {
1009 { TT_EGREP, zAlpha___Extern_Prefix_Sys_StatSelect0, (regex_t*)NULL }, };
1010
1011 /*
1012 * Fix Command Arguments for Alpha___Extern_Prefix_Sys_Stat
1013 */
1014 static const char* apzAlpha___Extern_Prefix_Sys_StatPatch[] = {
1015 "format",
1016 "%0 || defined(__PRAGMA_EXTERN_PREFIX)",
1017 (char*)NULL };
1018
1019 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1020 *
1021 * Description of Alpha_Assert fix
1022 */
1023 tSCC zAlpha_AssertName[] =
1024 "alpha_assert";
1025
1026 /*
1027 * File name selection pattern
1028 */
1029 tSCC zAlpha_AssertList[] =
1030 "|assert.h|";
1031 /*
1032 * Machine/OS name selection pattern
1033 */
1034 #define apzAlpha_AssertMachs (const char**)NULL
1035
1036 /*
1037 * content selection pattern - do fix if pattern found
1038 */
1039 tSCC zAlpha_AssertSelect0[] =
1040 "(#define assert\\(EX\\).*)\\(\\(int\\) \\(EX\\)\\)";
1041
1042 #define ALPHA_ASSERT_TEST_CT 1
1043 static tTestDesc aAlpha_AssertTests[] = {
1044 { TT_EGREP, zAlpha_AssertSelect0, (regex_t*)NULL }, };
1045
1046 /*
1047 * Fix Command Arguments for Alpha_Assert
1048 */
1049 static const char* apzAlpha_AssertPatch[] = {
1050 "format",
1051 "%1(EX)",
1052 (char*)NULL };
1053
1054 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1055 *
1056 * Description of Alpha_Bad_Lval fix
1057 */
1058 tSCC zAlpha_Bad_LvalName[] =
1059 "alpha_bad_lval";
1060
1061 /*
1062 * File name selection pattern
1063 */
1064 #define zAlpha_Bad_LvalList (char*)NULL
1065 /*
1066 * Machine/OS name selection pattern
1067 */
1068 tSCC* apzAlpha_Bad_LvalMachs[] = {
1069 "alpha*-dec-osf*",
1070 (const char*)NULL };
1071
1072 /*
1073 * content selection pattern - do fix if pattern found
1074 */
1075 tSCC zAlpha_Bad_LvalSelect0[] =
1076 "^[ \t]*#[ \t]*pragma[ \t]+extern_prefix";
1077
1078 #define ALPHA_BAD_LVAL_TEST_CT 1
1079 static tTestDesc aAlpha_Bad_LvalTests[] = {
1080 { TT_EGREP, zAlpha_Bad_LvalSelect0, (regex_t*)NULL }, };
1081
1082 /*
1083 * Fix Command Arguments for Alpha_Bad_Lval
1084 */
1085 static const char* apzAlpha_Bad_LvalPatch[] = { "sed",
1086 "-e", "s/^[ \t]*#[ \t]*define[ \t][ \t]*\\([^(]*\\)\\(([^)]*)\\)[ \t]*\\(_.*\\)\\1\\2[ \t]*$/#define \\1 \\3\\1/",
1087 (char*)NULL };
1088
1089 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1090 *
1091 * Description of Alpha_Getopt fix
1092 */
1093 tSCC zAlpha_GetoptName[] =
1094 "alpha_getopt";
1095
1096 /*
1097 * File name selection pattern
1098 */
1099 tSCC zAlpha_GetoptList[] =
1100 "|stdio.h|stdlib.h|";
1101 /*
1102 * Machine/OS name selection pattern
1103 */
1104 #define apzAlpha_GetoptMachs (const char**)NULL
1105
1106 /*
1107 * content selection pattern - do fix if pattern found
1108 */
1109 tSCC zAlpha_GetoptSelect0[] =
1110 "getopt\\(int, char \\*\\[\\], *char \\*\\)";
1111
1112 #define ALPHA_GETOPT_TEST_CT 1
1113 static tTestDesc aAlpha_GetoptTests[] = {
1114 { TT_EGREP, zAlpha_GetoptSelect0, (regex_t*)NULL }, };
1115
1116 /*
1117 * Fix Command Arguments for Alpha_Getopt
1118 */
1119 static const char* apzAlpha_GetoptPatch[] = {
1120 "format",
1121 "getopt(int, char *const[], const char *)",
1122 (char*)NULL };
1123
1124 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1125 *
1126 * Description of Alpha_Parens fix
1127 */
1128 tSCC zAlpha_ParensName[] =
1129 "alpha_parens";
1130
1131 /*
1132 * File name selection pattern
1133 */
1134 tSCC zAlpha_ParensList[] =
1135 "|sym.h|";
1136 /*
1137 * Machine/OS name selection pattern
1138 */
1139 #define apzAlpha_ParensMachs (const char**)NULL
1140
1141 /*
1142 * content selection pattern - do fix if pattern found
1143 */
1144 tSCC zAlpha_ParensSelect0[] =
1145 "#ifndef\\(__mips64\\)";
1146
1147 #define ALPHA_PARENS_TEST_CT 1
1148 static tTestDesc aAlpha_ParensTests[] = {
1149 { TT_EGREP, zAlpha_ParensSelect0, (regex_t*)NULL }, };
1150
1151 /*
1152 * Fix Command Arguments for Alpha_Parens
1153 */
1154 static const char* apzAlpha_ParensPatch[] = {
1155 "format",
1156 "#ifndef __mips64",
1157 (char*)NULL };
1158
1159 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1160 *
1161 * Description of Alpha_Pthread fix
1162 */
1163 tSCC zAlpha_PthreadName[] =
1164 "alpha_pthread";
1165
1166 /*
1167 * File name selection pattern
1168 */
1169 tSCC zAlpha_PthreadList[] =
1170 "|pthread.h|";
1171 /*
1172 * Machine/OS name selection pattern
1173 */
1174 tSCC* apzAlpha_PthreadMachs[] = {
1175 "alpha*-dec-osf*",
1176 (const char*)NULL };
1177
1178 /*
1179 * content selection pattern - do fix if pattern found
1180 */
1181 tSCC zAlpha_PthreadSelect0[] =
1182 "((#[ \t]*if)([ \t]*defined[ \t]*\\(_PTHREAD_ENV_DECC\\)|def _PTHREAD_ENV_DECC)(.*))\n\
1183 (#[ \t]*define _PTHREAD_USE_PTDNAM_)";
1184
1185 #define ALPHA_PTHREAD_TEST_CT 1
1186 static tTestDesc aAlpha_PthreadTests[] = {
1187 { TT_EGREP, zAlpha_PthreadSelect0, (regex_t*)NULL }, };
1188
1189 /*
1190 * Fix Command Arguments for Alpha_Pthread
1191 */
1192 static const char* apzAlpha_PthreadPatch[] = {
1193 "format",
1194 "%2 defined (_PTHREAD_ENV_DECC)%4 || defined (__PRAGMA_EXTERN_PREFIX)\n\
1195 %5",
1196 (char*)NULL };
1197
1198 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1199 *
1200 * Description of Alpha_Pthread_Gcc fix
1201 */
1202 tSCC zAlpha_Pthread_GccName[] =
1203 "alpha_pthread_gcc";
1204
1205 /*
1206 * File name selection pattern
1207 */
1208 tSCC zAlpha_Pthread_GccList[] =
1209 "|pthread.h|";
1210 /*
1211 * Machine/OS name selection pattern
1212 */
1213 tSCC* apzAlpha_Pthread_GccMachs[] = {
1214 "alpha*-dec-osf*",
1215 (const char*)NULL };
1216
1217 /*
1218 * content selection pattern - do fix if pattern found
1219 */
1220 tSCC zAlpha_Pthread_GccSelect0[] =
1221 "#else\n\
1222 # error <pthread.h>: unrecognized compiler.";
1223
1224 #define ALPHA_PTHREAD_GCC_TEST_CT 1
1225 static tTestDesc aAlpha_Pthread_GccTests[] = {
1226 { TT_EGREP, zAlpha_Pthread_GccSelect0, (regex_t*)NULL }, };
1227
1228 /*
1229 * Fix Command Arguments for Alpha_Pthread_Gcc
1230 */
1231 static const char* apzAlpha_Pthread_GccPatch[] = {
1232 "format",
1233 "#elif defined (__GNUC__)\n\
1234 # define _PTHREAD_ENV_GCC\n\
1235 %0",
1236 (char*)NULL };
1237
1238 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1239 *
1240 * Description of Alpha_Pthread_Init fix
1241 */
1242 tSCC zAlpha_Pthread_InitName[] =
1243 "alpha_pthread_init";
1244
1245 /*
1246 * File name selection pattern
1247 */
1248 tSCC zAlpha_Pthread_InitList[] =
1249 "|pthread.h|";
1250 /*
1251 * Machine/OS name selection pattern
1252 */
1253 tSCC* apzAlpha_Pthread_InitMachs[] = {
1254 "alpha*-dec-osf*",
1255 (const char*)NULL };
1256
1257 /*
1258 * content selection pattern - do fix if pattern found
1259 */
1260 tSCC zAlpha_Pthread_InitSelect0[] =
1261 " \\* @\\(#\\).RCSfile: pthread\\.h,v \\$ .Revision: 1\\.1\\.33\\.21 \\$ \\(DEC\\) .Date: 2000/08/15 15:30:13 \\$";
1262
1263 #define ALPHA_PTHREAD_INIT_TEST_CT 1
1264 static tTestDesc aAlpha_Pthread_InitTests[] = {
1265 { TT_EGREP, zAlpha_Pthread_InitSelect0, (regex_t*)NULL }, };
1266
1267 /*
1268 * Fix Command Arguments for Alpha_Pthread_Init
1269 */
1270 static const char* apzAlpha_Pthread_InitPatch[] = { "sed",
1271 "-e", "s@MVALID\\(.*\\)A}@MVALID\\1A, 0, 0, 0, 0, 0, 0 }@\n\
1272 s@MVALID\\(.*\\)_}@MVALID\\1_, 0, 0, 0, 0 }@\n\
1273 s@CVALID\\(.*\\)A}@CVALID\\1A, 0, 0, 0, 0 }@\n\
1274 s@CVALID\\(.*\\)_}@CVALID\\1_, 0, 0 }@\n\
1275 s@WVALID\\(.*\\)A}@WVALID\\1A, 0, 0, 0, 0, 0, 0, 0, 0, 0 }@\n\
1276 s@WVALID\\(.*\\)_}@WVALID\\1_, 0, 0, 0, 0, 0, 0, 0 }@\n",
1277 (char*)NULL };
1278
1279 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1280 *
1281 * Description of Alpha_Sbrk fix
1282 */
1283 tSCC zAlpha_SbrkName[] =
1284 "alpha_sbrk";
1285
1286 /*
1287 * File name selection pattern
1288 */
1289 tSCC zAlpha_SbrkList[] =
1290 "|unistd.h|";
1291 /*
1292 * Machine/OS name selection pattern
1293 */
1294 #define apzAlpha_SbrkMachs (const char**)NULL
1295
1296 /*
1297 * content selection pattern - do fix if pattern found
1298 */
1299 tSCC zAlpha_SbrkSelect0[] =
1300 "char[ \t]*\\*[\t ]*sbrk[ \t]*\\(";
1301
1302 #define ALPHA_SBRK_TEST_CT 1
1303 static tTestDesc aAlpha_SbrkTests[] = {
1304 { TT_EGREP, zAlpha_SbrkSelect0, (regex_t*)NULL }, };
1305
1306 /*
1307 * Fix Command Arguments for Alpha_Sbrk
1308 */
1309 static const char* apzAlpha_SbrkPatch[] = {
1310 "format",
1311 "void *sbrk(",
1312 (char*)NULL };
1313
1314 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1315 *
1316 * Description of Alpha_Wchar fix
1317 */
1318 tSCC zAlpha_WcharName[] =
1319 "alpha_wchar";
1320
1321 /*
1322 * File name selection pattern
1323 */
1324 tSCC zAlpha_WcharList[] =
1325 "|wchar.h|";
1326 /*
1327 * Machine/OS name selection pattern
1328 */
1329 tSCC* apzAlpha_WcharMachs[] = {
1330 "alpha*-dec-osf4*",
1331 (const char*)NULL };
1332
1333 /*
1334 * content selection pattern - do fix if pattern found
1335 */
1336 tSCC zAlpha_WcharSelect0[] =
1337 "#define wcstok wcstok_r";
1338
1339 #define ALPHA_WCHAR_TEST_CT 1
1340 static tTestDesc aAlpha_WcharTests[] = {
1341 { TT_EGREP, zAlpha_WcharSelect0, (regex_t*)NULL }, };
1342
1343 /*
1344 * Fix Command Arguments for Alpha_Wchar
1345 */
1346 static const char* apzAlpha_WcharPatch[] = { "sed",
1347 "-e", "s@#define wcstok wcstok_r@extern wchar_t *wcstok __((wchar_t *, const wchar_t *, wchar_t **)) __asm__(\"wcstok_r\");@",
1348 "-e", "s@#define wcsftime __wcsftime_isoc@extern size_t wcsftime __((wchar_t *, size_t, const wchar_t *, const struct tm *)) __asm__(\"__wcsftime_isoc\");@",
1349 (char*)NULL };
1350
1351 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1352 *
1353 * Description of Avoid_Bool_Define fix
1354 */
1355 tSCC zAvoid_Bool_DefineName[] =
1356 "avoid_bool_define";
1357
1358 /*
1359 * File name selection pattern
1360 */
1361 tSCC zAvoid_Bool_DefineList[] =
1362 "|curses.h|curses_colr/curses.h|term.h|tinfo.h|";
1363 /*
1364 * Machine/OS name selection pattern
1365 */
1366 #define apzAvoid_Bool_DefineMachs (const char**)NULL
1367
1368 /*
1369 * content selection pattern - do fix if pattern found
1370 */
1371 tSCC zAvoid_Bool_DefineSelect0[] =
1372 "#[ \t]*define[ \t]+bool[ \t]";
1373
1374 /*
1375 * content bypass pattern - skip fix if pattern found
1376 */
1377 tSCC zAvoid_Bool_DefineBypass0[] =
1378 "__cplusplus";
1379
1380 #define AVOID_BOOL_DEFINE_TEST_CT 2
1381 static tTestDesc aAvoid_Bool_DefineTests[] = {
1382 { TT_NEGREP, zAvoid_Bool_DefineBypass0, (regex_t*)NULL },
1383 { TT_EGREP, zAvoid_Bool_DefineSelect0, (regex_t*)NULL }, };
1384
1385 /*
1386 * Fix Command Arguments for Avoid_Bool_Define
1387 */
1388 static const char* apzAvoid_Bool_DefinePatch[] = {
1389 "format",
1390 "#ifndef __cplusplus\n\
1391 %0\n\
1392 #endif",
1393 "^[ \t]*#[ \t]*define[ \t]+bool[ \t].*",
1394 (char*)NULL };
1395
1396 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1397 *
1398 * Description of Avoid_Bool_Type fix
1399 */
1400 tSCC zAvoid_Bool_TypeName[] =
1401 "avoid_bool_type";
1402
1403 /*
1404 * File name selection pattern
1405 */
1406 tSCC zAvoid_Bool_TypeList[] =
1407 "|curses.h|curses_colr/curses.h|term.h|tinfo.h|";
1408 /*
1409 * Machine/OS name selection pattern
1410 */
1411 #define apzAvoid_Bool_TypeMachs (const char**)NULL
1412
1413 /*
1414 * content selection pattern - do fix if pattern found
1415 */
1416 tSCC zAvoid_Bool_TypeSelect0[] =
1417 "^[ \t]*typedef[ \t].*[ \t]bool[ \t]*;";
1418
1419 /*
1420 * content bypass pattern - skip fix if pattern found
1421 */
1422 tSCC zAvoid_Bool_TypeBypass0[] =
1423 "__cplusplus";
1424
1425 #define AVOID_BOOL_TYPE_TEST_CT 2
1426 static tTestDesc aAvoid_Bool_TypeTests[] = {
1427 { TT_NEGREP, zAvoid_Bool_TypeBypass0, (regex_t*)NULL },
1428 { TT_EGREP, zAvoid_Bool_TypeSelect0, (regex_t*)NULL }, };
1429
1430 /*
1431 * Fix Command Arguments for Avoid_Bool_Type
1432 */
1433 static const char* apzAvoid_Bool_TypePatch[] = {
1434 "format",
1435 "#ifndef __cplusplus\n\
1436 %0\n\
1437 #endif",
1438 (char*)NULL };
1439
1440 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1441 *
1442 * Description of Avoid_Wchar_T_Type fix
1443 */
1444 tSCC zAvoid_Wchar_T_TypeName[] =
1445 "avoid_wchar_t_type";
1446
1447 /*
1448 * File name selection pattern
1449 */
1450 #define zAvoid_Wchar_T_TypeList (char*)NULL
1451 /*
1452 * Machine/OS name selection pattern
1453 */
1454 #define apzAvoid_Wchar_T_TypeMachs (const char**)NULL
1455
1456 /*
1457 * content selection pattern - do fix if pattern found
1458 */
1459 tSCC zAvoid_Wchar_T_TypeSelect0[] =
1460 "^[ \t]*typedef[ \t].*[ \t]wchar_t[ \t]*;";
1461
1462 /*
1463 * content bypass pattern - skip fix if pattern found
1464 */
1465 tSCC zAvoid_Wchar_T_TypeBypass0[] =
1466 "__cplusplus";
1467 tSCC zAvoid_Wchar_T_TypeBypass1[] =
1468 "_LINUX_NLS_H";
1469 tSCC zAvoid_Wchar_T_TypeBypass2[] =
1470 "XFree86: xc/lib/X11/Xlib\\.h";
1471
1472 #define AVOID_WCHAR_T_TYPE_TEST_CT 4
1473 static tTestDesc aAvoid_Wchar_T_TypeTests[] = {
1474 { TT_NEGREP, zAvoid_Wchar_T_TypeBypass0, (regex_t*)NULL },
1475 { TT_NEGREP, zAvoid_Wchar_T_TypeBypass1, (regex_t*)NULL },
1476 { TT_NEGREP, zAvoid_Wchar_T_TypeBypass2, (regex_t*)NULL },
1477 { TT_EGREP, zAvoid_Wchar_T_TypeSelect0, (regex_t*)NULL }, };
1478
1479 /*
1480 * Fix Command Arguments for Avoid_Wchar_T_Type
1481 */
1482 static const char* apzAvoid_Wchar_T_TypePatch[] = {
1483 "format",
1484 "#ifndef __cplusplus\n\
1485 %0\n\
1486 #endif",
1487 (char*)NULL };
1488
1489 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1490 *
1491 * Description of Bad_Struct_Term fix
1492 */
1493 tSCC zBad_Struct_TermName[] =
1494 "bad_struct_term";
1495
1496 /*
1497 * File name selection pattern
1498 */
1499 tSCC zBad_Struct_TermList[] =
1500 "|curses.h|";
1501 /*
1502 * Machine/OS name selection pattern
1503 */
1504 #define apzBad_Struct_TermMachs (const char**)NULL
1505
1506 /*
1507 * content selection pattern - do fix if pattern found
1508 */
1509 tSCC zBad_Struct_TermSelect0[] =
1510 "^[ \t]*typedef[ \t]+struct[ \t]+term[ \t]*;";
1511
1512 #define BAD_STRUCT_TERM_TEST_CT 1
1513 static tTestDesc aBad_Struct_TermTests[] = {
1514 { TT_EGREP, zBad_Struct_TermSelect0, (regex_t*)NULL }, };
1515
1516 /*
1517 * Fix Command Arguments for Bad_Struct_Term
1518 */
1519 static const char* apzBad_Struct_TermPatch[] = {
1520 "format",
1521 "struct term;",
1522 (char*)NULL };
1523
1524 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1525 *
1526 * Description of Badquote fix
1527 */
1528 tSCC zBadquoteName[] =
1529 "badquote";
1530
1531 /*
1532 * File name selection pattern
1533 */
1534 tSCC zBadquoteList[] =
1535 "|sundev/vuid_event.h|";
1536 /*
1537 * Machine/OS name selection pattern
1538 */
1539 #define apzBadquoteMachs (const char**)NULL
1540
1541 /*
1542 * content selection pattern - do fix if pattern found
1543 */
1544 tSCC zBadquoteSelect0[] =
1545 "doesn't";
1546
1547 #define BADQUOTE_TEST_CT 1
1548 static tTestDesc aBadquoteTests[] = {
1549 { TT_EGREP, zBadquoteSelect0, (regex_t*)NULL }, };
1550
1551 /*
1552 * Fix Command Arguments for Badquote
1553 */
1554 static const char* apzBadquotePatch[] = {
1555 "format",
1556 "does not",
1557 (char*)NULL };
1558
1559 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1560 *
1561 * Description of Broken_Assert_Stdio fix
1562 */
1563 tSCC zBroken_Assert_StdioName[] =
1564 "broken_assert_stdio";
1565
1566 /*
1567 * File name selection pattern
1568 */
1569 tSCC zBroken_Assert_StdioList[] =
1570 "|assert.h|";
1571 /*
1572 * Machine/OS name selection pattern
1573 */
1574 #define apzBroken_Assert_StdioMachs (const char**)NULL
1575
1576 /*
1577 * content selection pattern - do fix if pattern found
1578 */
1579 tSCC zBroken_Assert_StdioSelect0[] =
1580 "stderr";
1581
1582 /*
1583 * content bypass pattern - skip fix if pattern found
1584 */
1585 tSCC zBroken_Assert_StdioBypass0[] =
1586 "include.*stdio\\.h";
1587
1588 #define BROKEN_ASSERT_STDIO_TEST_CT 2
1589 static tTestDesc aBroken_Assert_StdioTests[] = {
1590 { TT_NEGREP, zBroken_Assert_StdioBypass0, (regex_t*)NULL },
1591 { TT_EGREP, zBroken_Assert_StdioSelect0, (regex_t*)NULL }, };
1592
1593 /*
1594 * Fix Command Arguments for Broken_Assert_Stdio
1595 */
1596 static const char* apzBroken_Assert_StdioPatch[] = {
1597 "wrap",
1598 "#include <stdio.h>\n",
1599 (char*)NULL };
1600
1601 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1602 *
1603 * Description of Broken_Assert_Stdlib fix
1604 */
1605 tSCC zBroken_Assert_StdlibName[] =
1606 "broken_assert_stdlib";
1607
1608 /*
1609 * File name selection pattern
1610 */
1611 tSCC zBroken_Assert_StdlibList[] =
1612 "|assert.h|";
1613 /*
1614 * Machine/OS name selection pattern
1615 */
1616 #define apzBroken_Assert_StdlibMachs (const char**)NULL
1617
1618 /*
1619 * content selection pattern - do fix if pattern found
1620 */
1621 tSCC zBroken_Assert_StdlibSelect0[] =
1622 "exit *\\(|abort *\\(";
1623
1624 /*
1625 * content bypass pattern - skip fix if pattern found
1626 */
1627 tSCC zBroken_Assert_StdlibBypass0[] =
1628 "include.*stdlib\\.h";
1629
1630 #define BROKEN_ASSERT_STDLIB_TEST_CT 2
1631 static tTestDesc aBroken_Assert_StdlibTests[] = {
1632 { TT_NEGREP, zBroken_Assert_StdlibBypass0, (regex_t*)NULL },
1633 { TT_EGREP, zBroken_Assert_StdlibSelect0, (regex_t*)NULL }, };
1634
1635 /*
1636 * Fix Command Arguments for Broken_Assert_Stdlib
1637 */
1638 static const char* apzBroken_Assert_StdlibPatch[] = {
1639 "wrap",
1640 "#ifdef __cplusplus\n\
1641 #include <stdlib.h>\n\
1642 #endif\n",
1643 (char*)NULL };
1644
1645 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1646 *
1647 * Description of Broken_Cabs fix
1648 */
1649 tSCC zBroken_CabsName[] =
1650 "broken_cabs";
1651
1652 /*
1653 * File name selection pattern
1654 */
1655 tSCC zBroken_CabsList[] =
1656 "|math.h|architecture/ppc/math.h|architecture/i386/math.h|";
1657 /*
1658 * Machine/OS name selection pattern
1659 */
1660 #define apzBroken_CabsMachs (const char**)NULL
1661
1662 /*
1663 * content selection pattern - do fix if pattern found
1664 */
1665 tSCC zBroken_CabsSelect0[] =
1666 "^extern[ \t]+double[ \t]+cabs";
1667
1668 #define BROKEN_CABS_TEST_CT 1
1669 static tTestDesc aBroken_CabsTests[] = {
1670 { TT_EGREP, zBroken_CabsSelect0, (regex_t*)NULL }, };
1671
1672 /*
1673 * Fix Command Arguments for Broken_Cabs
1674 */
1675 static const char* apzBroken_CabsPatch[] = {
1676 "format",
1677 "",
1678 "^extern[ \t]+double[ \t]+cabs[ \t]*\\([^\\)]*\\);",
1679 (char*)NULL };
1680
1681 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1682 *
1683 * Description of Broken_Nan fix
1684 */
1685 tSCC zBroken_NanName[] =
1686 "broken_nan";
1687
1688 /*
1689 * File name selection pattern
1690 */
1691 tSCC zBroken_NanList[] =
1692 "|architecture/ppc/math.h|architecture/i386/math.h|";
1693 /*
1694 * Machine/OS name selection pattern
1695 */
1696 #define apzBroken_NanMachs (const char**)NULL
1697
1698 /*
1699 * content selection pattern - do fix if pattern found
1700 */
1701 tSCC zBroken_NanSelect0[] =
1702 "#if defined(__APPLE_CC__) && (__APPLE_CC__ >= 1345)";
1703
1704 /*
1705 * content bypass pattern - skip fix if pattern found
1706 */
1707 tSCC zBroken_NanBypass0[] =
1708 "powl";
1709
1710 #define BROKEN_NAN_TEST_CT 2
1711 static tTestDesc aBroken_NanTests[] = {
1712 { TT_NEGREP, zBroken_NanBypass0, (regex_t*)NULL },
1713 { TT_EGREP, zBroken_NanSelect0, (regex_t*)NULL }, };
1714
1715 /*
1716 * Fix Command Arguments for Broken_Nan
1717 */
1718 static const char* apzBroken_NanPatch[] = {
1719 "format",
1720 "#if 1",
1721 (char*)NULL };
1722
1723 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1724 *
1725 * Description of Bsd_Stdio_Attrs_Conflict fix
1726 */
1727 tSCC zBsd_Stdio_Attrs_ConflictName[] =
1728 "bsd_stdio_attrs_conflict";
1729
1730 /*
1731 * File name selection pattern
1732 */
1733 tSCC zBsd_Stdio_Attrs_ConflictList[] =
1734 "|stdio.h|";
1735 /*
1736 * Machine/OS name selection pattern
1737 */
1738 tSCC* apzBsd_Stdio_Attrs_ConflictMachs[] = {
1739 "*-*-*bsd*",
1740 "*-*-*darwin*",
1741 (const char*)NULL };
1742
1743 /*
1744 * content selection pattern - do fix if pattern found
1745 */
1746 tSCC zBsd_Stdio_Attrs_ConflictSelect0[] =
1747 "^#define[ \t]*vfscanf[ \t]*__svfscanf[ \t]*$";
1748
1749 #define BSD_STDIO_ATTRS_CONFLICT_TEST_CT 1
1750 static tTestDesc aBsd_Stdio_Attrs_ConflictTests[] = {
1751 { TT_EGREP, zBsd_Stdio_Attrs_ConflictSelect0, (regex_t*)NULL }, };
1752
1753 /*
1754 * Fix Command Arguments for Bsd_Stdio_Attrs_Conflict
1755 */
1756 static const char* apzBsd_Stdio_Attrs_ConflictPatch[] = {
1757 "format",
1758 "#define _BSD_STRING(_BSD_X) _BSD_STRINGX(_BSD_X)\n\
1759 #define _BSD_STRINGX(_BSD_X) #_BSD_X\n\
1760 int vfscanf(FILE *, const char *, __builtin_va_list) __asm__ (_BSD_STRING(__USER_LABEL_PREFIX__) \"__svfscanf\");",
1761 (char*)NULL };
1762
1763 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1764 *
1765 * Description of Ctrl_Quotes_Def fix
1766 */
1767 tSCC zCtrl_Quotes_DefName[] =
1768 "ctrl_quotes_def";
1769
1770 /*
1771 * File name selection pattern
1772 */
1773 #define zCtrl_Quotes_DefList (char*)NULL
1774 /*
1775 * Machine/OS name selection pattern
1776 */
1777 #define apzCtrl_Quotes_DefMachs (const char**)NULL
1778
1779 /*
1780 * content selection pattern - do fix if pattern found
1781 */
1782 tSCC zCtrl_Quotes_DefSelect0[] =
1783 "define[ \t]+[A-Z0-9_]+CTRL\\([a-zA-Z][,)]";
1784
1785 #define CTRL_QUOTES_DEF_TEST_CT 1
1786 static tTestDesc aCtrl_Quotes_DefTests[] = {
1787 { TT_EGREP, zCtrl_Quotes_DefSelect0, (regex_t*)NULL }, };
1788
1789 /*
1790 * Fix Command Arguments for Ctrl_Quotes_Def
1791 */
1792 static const char* apzCtrl_Quotes_DefPatch[] = {
1793 "char_macro_def",
1794 "CTRL",
1795 (char*)NULL };
1796
1797 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1798 *
1799 * Description of Ctrl_Quotes_Use fix
1800 */
1801 tSCC zCtrl_Quotes_UseName[] =
1802 "ctrl_quotes_use";
1803
1804 /*
1805 * File name selection pattern
1806 */
1807 #define zCtrl_Quotes_UseList (char*)NULL
1808 /*
1809 * Machine/OS name selection pattern
1810 */
1811 #define apzCtrl_Quotes_UseMachs (const char**)NULL
1812
1813 /*
1814 * content selection pattern - do fix if pattern found
1815 */
1816 tSCC zCtrl_Quotes_UseSelect0[] =
1817 "define[ \t]+[A-Z0-9_]+[ \t]+[A-Z0-9_]+CTRL[ \t]*\\( *[^,']";
1818
1819 #define CTRL_QUOTES_USE_TEST_CT 1
1820 static tTestDesc aCtrl_Quotes_UseTests[] = {
1821 { TT_EGREP, zCtrl_Quotes_UseSelect0, (regex_t*)NULL }, };
1822
1823 /*
1824 * Fix Command Arguments for Ctrl_Quotes_Use
1825 */
1826 static const char* apzCtrl_Quotes_UsePatch[] = {
1827 "char_macro_use",
1828 "CTRL",
1829 (char*)NULL };
1830
1831 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1832 *
1833 * Description of Cxx_Unready fix
1834 */
1835 tSCC zCxx_UnreadyName[] =
1836 "cxx_unready";
1837
1838 /*
1839 * File name selection pattern
1840 */
1841 tSCC zCxx_UnreadyList[] =
1842 "|sys/mman.h|rpc/types.h|";
1843 /*
1844 * Machine/OS name selection pattern
1845 */
1846 #define apzCxx_UnreadyMachs (const char**)NULL
1847
1848 /*
1849 * content selection pattern - do fix if pattern found
1850 */
1851 tSCC zCxx_UnreadySelect0[] =
1852 "[^#]+malloc.*;";
1853
1854 /*
1855 * content bypass pattern - skip fix if pattern found
1856 */
1857 tSCC zCxx_UnreadyBypass0[] =
1858 "\"C\"|__BEGIN_DECLS";
1859
1860 #define CXX_UNREADY_TEST_CT 2
1861 static tTestDesc aCxx_UnreadyTests[] = {
1862 { TT_NEGREP, zCxx_UnreadyBypass0, (regex_t*)NULL },
1863 { TT_EGREP, zCxx_UnreadySelect0, (regex_t*)NULL }, };
1864
1865 /*
1866 * Fix Command Arguments for Cxx_Unready
1867 */
1868 static const char* apzCxx_UnreadyPatch[] = {
1869 "wrap",
1870 "#ifdef __cplusplus\n\
1871 extern \"C\" {\n\
1872 #endif\n",
1873 "#ifdef __cplusplus\n\
1874 }\n\
1875 #endif\n",
1876 (char*)NULL };
1877
1878 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1879 *
1880 * Description of Darwin_Gcc4_Breakage fix
1881 */
1882 tSCC zDarwin_Gcc4_BreakageName[] =
1883 "darwin_gcc4_breakage";
1884
1885 /*
1886 * File name selection pattern
1887 */
1888 tSCC zDarwin_Gcc4_BreakageList[] =
1889 "|AvailabilityMacros.h|";
1890 /*
1891 * Machine/OS name selection pattern
1892 */
1893 tSCC* apzDarwin_Gcc4_BreakageMachs[] = {
1894 "*-*-darwin*",
1895 (const char*)NULL };
1896
1897 /*
1898 * content selection pattern - do fix if pattern found
1899 */
1900 tSCC zDarwin_Gcc4_BreakageSelect0[] =
1901 "\\(__GNUC__ >= 3\\) && \\(__GNUC_MINOR__ >= 1\\)";
1902
1903 #define DARWIN_GCC4_BREAKAGE_TEST_CT 1
1904 static tTestDesc aDarwin_Gcc4_BreakageTests[] = {
1905 { TT_EGREP, zDarwin_Gcc4_BreakageSelect0, (regex_t*)NULL }, };
1906
1907 /*
1908 * Fix Command Arguments for Darwin_Gcc4_Breakage
1909 */
1910 static const char* apzDarwin_Gcc4_BreakagePatch[] = {
1911 "format",
1912 "((__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 1))",
1913 (char*)NULL };
1914
1915 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1916 *
1917 * Description of Darwin_Private_Extern fix
1918 */
1919 tSCC zDarwin_Private_ExternName[] =
1920 "darwin_private_extern";
1921
1922 /*
1923 * File name selection pattern
1924 */
1925 tSCC zDarwin_Private_ExternList[] =
1926 "|mach-o/dyld.h|";
1927 /*
1928 * Machine/OS name selection pattern
1929 */
1930 tSCC* apzDarwin_Private_ExternMachs[] = {
1931 "*-*-darwin*",
1932 (const char*)NULL };
1933
1934 /*
1935 * content selection pattern - do fix if pattern found
1936 */
1937 tSCC zDarwin_Private_ExternSelect0[] =
1938 "__private_extern__ [a-z_]+ _dyld_";
1939
1940 #define DARWIN_PRIVATE_EXTERN_TEST_CT 1
1941 static tTestDesc aDarwin_Private_ExternTests[] = {
1942 { TT_EGREP, zDarwin_Private_ExternSelect0, (regex_t*)NULL }, };
1943
1944 /*
1945 * Fix Command Arguments for Darwin_Private_Extern
1946 */
1947 static const char* apzDarwin_Private_ExternPatch[] = {
1948 "format",
1949 "extern",
1950 "__private_extern__",
1951 (char*)NULL };
1952
1953 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1954 *
1955 * Description of Dec_Intern_Asm fix
1956 */
1957 tSCC zDec_Intern_AsmName[] =
1958 "dec_intern_asm";
1959
1960 /*
1961 * File name selection pattern
1962 */
1963 tSCC zDec_Intern_AsmList[] =
1964 "|c_asm.h|";
1965 /*
1966 * Machine/OS name selection pattern
1967 */
1968 #define apzDec_Intern_AsmMachs (const char**)NULL
1969 #define DEC_INTERN_ASM_TEST_CT 0
1970 #define aDec_Intern_AsmTests (tTestDesc*)NULL
1971
1972 /*
1973 * Fix Command Arguments for Dec_Intern_Asm
1974 */
1975 static const char* apzDec_Intern_AsmPatch[] = { "sed",
1976 "-e", "/^[ \t]*float[ \t]*fasm/i\\\n\
1977 #ifdef __DECC\n",
1978 "-e", "/^[ \t]*#[ \t]*pragma[ \t]*intrinsic([ \t]*dasm/a\\\n\
1979 #endif\n",
1980 (char*)NULL };
1981
1982 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1983 *
1984 * Description of Djgpp_Wchar_H fix
1985 */
1986 tSCC zDjgpp_Wchar_HName[] =
1987 "djgpp_wchar_h";
1988
1989 /*
1990 * File name selection pattern
1991 */
1992 #define zDjgpp_Wchar_HList (char*)NULL
1993 /*
1994 * Machine/OS name selection pattern
1995 */
1996 #define apzDjgpp_Wchar_HMachs (const char**)NULL
1997
1998 /*
1999 * content selection pattern - do fix if pattern found
2000 */
2001 tSCC zDjgpp_Wchar_HSelect0[] =
2002 "__DJ_wint_t";
2003
2004 /*
2005 * content bypass pattern - skip fix if pattern found
2006 */
2007 tSCC zDjgpp_Wchar_HBypass0[] =
2008 "sys/djtypes.h";
2009
2010 #define DJGPP_WCHAR_H_TEST_CT 2
2011 static tTestDesc aDjgpp_Wchar_HTests[] = {
2012 { TT_NEGREP, zDjgpp_Wchar_HBypass0, (regex_t*)NULL },
2013 { TT_EGREP, zDjgpp_Wchar_HSelect0, (regex_t*)NULL }, };
2014
2015 /*
2016 * Fix Command Arguments for Djgpp_Wchar_H
2017 */
2018 static const char* apzDjgpp_Wchar_HPatch[] = {
2019 "format",
2020 "%0\n\
2021 #include <sys/djtypes.h>",
2022 "#include <stddef.h>",
2023 (char*)NULL };
2024
2025 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2026 *
2027 * Description of Ecd_Cursor fix
2028 */
2029 tSCC zEcd_CursorName[] =
2030 "ecd_cursor";
2031
2032 /*
2033 * File name selection pattern
2034 */
2035 tSCC zEcd_CursorList[] =
2036 "|sunwindow/win_lock.h|sunwindow/win_cursor.h|";
2037 /*
2038 * Machine/OS name selection pattern
2039 */
2040 #define apzEcd_CursorMachs (const char**)NULL
2041
2042 /*
2043 * content selection pattern - do fix if pattern found
2044 */
2045 tSCC zEcd_CursorSelect0[] =
2046 "ecd\\.cursor";
2047
2048 #define ECD_CURSOR_TEST_CT 1
2049 static tTestDesc aEcd_CursorTests[] = {
2050 { TT_EGREP, zEcd_CursorSelect0, (regex_t*)NULL }, };
2051
2052 /*
2053 * Fix Command Arguments for Ecd_Cursor
2054 */
2055 static const char* apzEcd_CursorPatch[] = {
2056 "format",
2057 "ecd_cursor",
2058 (char*)NULL };
2059
2060 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2061 *
2062 * Description of Exception_Structure fix
2063 */
2064 tSCC zException_StructureName[] =
2065 "exception_structure";
2066
2067 /*
2068 * File name selection pattern
2069 */
2070 tSCC zException_StructureList[] =
2071 "|math.h|";
2072 /*
2073 * Machine/OS name selection pattern
2074 */
2075 #define apzException_StructureMachs (const char**)NULL
2076
2077 /*
2078 * content selection pattern - do fix if pattern found
2079 */
2080 tSCC zException_StructureSelect0[] =
2081 "matherr";
2082
2083 /*
2084 * content bypass pattern - skip fix if pattern found
2085 */
2086 tSCC zException_StructureBypass0[] =
2087 "matherr.*(struct exception|__MATH_EXCEPTION|[ \\t]*__FP_EXCEPTION[ \\t]*\\*[ \\t]*)";
2088
2089 #define EXCEPTION_STRUCTURE_TEST_CT 2
2090 static tTestDesc aException_StructureTests[] = {
2091 { TT_NEGREP, zException_StructureBypass0, (regex_t*)NULL },
2092 { TT_EGREP, zException_StructureSelect0, (regex_t*)NULL }, };
2093
2094 /*
2095 * Fix Command Arguments for Exception_Structure
2096 */
2097 static const char* apzException_StructurePatch[] = {
2098 "wrap",
2099 "struct exception;\n",
2100 (char*)NULL };
2101
2102 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2103 *
2104 * Description of Freebsd_Gcc3_Breakage fix
2105 */
2106 tSCC zFreebsd_Gcc3_BreakageName[] =
2107 "freebsd_gcc3_breakage";
2108
2109 /*
2110 * File name selection pattern
2111 */
2112 tSCC zFreebsd_Gcc3_BreakageList[] =
2113 "|sys/cdefs.h|";
2114 /*
2115 * Machine/OS name selection pattern
2116 */
2117 tSCC* apzFreebsd_Gcc3_BreakageMachs[] = {
2118 "*-*-freebsd*",
2119 (const char*)NULL };
2120
2121 /*
2122 * content selection pattern - do fix if pattern found
2123 */
2124 tSCC zFreebsd_Gcc3_BreakageSelect0[] =
2125 "^#if __GNUC__ == 2 && __GNUC_MINOR__ >= 7$";
2126
2127 /*
2128 * content bypass pattern - skip fix if pattern found
2129 */
2130 tSCC zFreebsd_Gcc3_BreakageBypass0[] =
2131 "__GNUC__[ \\t]*([>=]=[ \\t]*[3-9]|>[ \\t]*2)";
2132
2133 #define FREEBSD_GCC3_BREAKAGE_TEST_CT 2
2134 static tTestDesc aFreebsd_Gcc3_BreakageTests[] = {
2135 { TT_NEGREP, zFreebsd_Gcc3_BreakageBypass0, (regex_t*)NULL },
2136 { TT_EGREP, zFreebsd_Gcc3_BreakageSelect0, (regex_t*)NULL }, };
2137
2138 /*
2139 * Fix Command Arguments for Freebsd_Gcc3_Breakage
2140 */
2141 static const char* apzFreebsd_Gcc3_BreakagePatch[] = {
2142 "format",
2143 "%0 || __GNUC__ >= 3",
2144 (char*)NULL };
2145
2146 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2147 *
2148 * Description of Freebsd_Gcc4_Breakage fix
2149 */
2150 tSCC zFreebsd_Gcc4_BreakageName[] =
2151 "freebsd_gcc4_breakage";
2152
2153 /*
2154 * File name selection pattern
2155 */
2156 tSCC zFreebsd_Gcc4_BreakageList[] =
2157 "|sys/cdefs.h|";
2158 /*
2159 * Machine/OS name selection pattern
2160 */
2161 tSCC* apzFreebsd_Gcc4_BreakageMachs[] = {
2162 "*-*-freebsd*",
2163 (const char*)NULL };
2164
2165 /*
2166 * content selection pattern - do fix if pattern found
2167 */
2168 tSCC zFreebsd_Gcc4_BreakageSelect0[] =
2169 "^#if __GNUC__ == 2 && __GNUC_MINOR__ >= 7 \\|\\| __GNUC__ == 3$";
2170
2171 #define FREEBSD_GCC4_BREAKAGE_TEST_CT 1
2172 static tTestDesc aFreebsd_Gcc4_BreakageTests[] = {
2173 { TT_EGREP, zFreebsd_Gcc4_BreakageSelect0, (regex_t*)NULL }, };
2174
2175 /*
2176 * Fix Command Arguments for Freebsd_Gcc4_Breakage
2177 */
2178 static const char* apzFreebsd_Gcc4_BreakagePatch[] = {
2179 "format",
2180 "#if __GNUC__ == 2 && __GNUC_MINOR__ >= 7 || __GNUC__ >= 3",
2181 (char*)NULL };
2182
2183 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2184 *
2185 * Description of Glibc_Mutex_Init fix
2186 */
2187 tSCC zGlibc_Mutex_InitName[] =
2188 "glibc_mutex_init";
2189
2190 /*
2191 * File name selection pattern
2192 */
2193 tSCC zGlibc_Mutex_InitList[] =
2194 "|pthread.h|";
2195 /*
2196 * Machine/OS name selection pattern
2197 */
2198 #define apzGlibc_Mutex_InitMachs (const char**)NULL
2199
2200 /*
2201 * content selection pattern - do fix if pattern found
2202 */
2203 tSCC zGlibc_Mutex_InitSelect0[] =
2204 "\\{ *\\{ *0, *\\} *\\}";
2205
2206 #define GLIBC_MUTEX_INIT_TEST_CT 1
2207 static tTestDesc aGlibc_Mutex_InitTests[] = {
2208 { TT_EGREP, zGlibc_Mutex_InitSelect0, (regex_t*)NULL }, };
2209
2210 /*
2211 * Fix Command Arguments for Glibc_Mutex_Init
2212 */
2213 static const char* apzGlibc_Mutex_InitPatch[] = { "sed",
2214 "-e", "/define[ \t]\\+PTHREAD_MUTEX_INITIALIZER[ \t]*\\\\/,+1s/{ { 0, } }/{ { 0, 0, 0, 0, 0, 0 } }/",
2215 "-e", "s/{ \\(0, 0, 0, 0, PTHREAD_MUTEX_\\(RECURSIVE\\|ERRORCHECK\\|ADAPTIVE\\)_NP\\) }/{ \\1, 0 }/",
2216 "-e", "s/{ \\(0, 0, 0, PTHREAD_MUTEX_\\(RECURSIVE\\|ERRORCHECK\\|ADAPTIVE\\)_NP\\) }/{ \\1, 0, 0 }/",
2217 "-e", "/define[ \t]\\+PTHREAD_RWLOCK_INITIALIZER[ \t]*\\\\/N;s/^[ \t]*#[ \t]*\\(define[ \t]\\+PTHREAD_RWLOCK_INITIALIZER[ \t]*\\\\\\)\\n[ \t]*{ { 0, } }/# if __WORDSIZE == 64\\n# \\1\\n { { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 } }\\n# else\\n# \\1\\n { { 0, 0, 0, 0, 0, 0, 0, 0 } }\\n# endif/",
2218 "-e", "s/{ \\(0, 0, 0, 0, 0, 0, PTHREAD_RWLOCK_PREFER_WRITER_NONRECURSIVE_NP\\) }/{ \\1, 0 }/",
2219 "-e", "/define[ \t]\\+PTHREAD_COND_INITIALIZER/s/{ { 0, } }/{ { 0, 0, 0, 0, 0, (void *) 0, 0, 0 } }/",
2220 (char*)NULL };
2221
2222 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2223 *
2224 * Description of Gnu_Types fix
2225 */
2226 tSCC zGnu_TypesName[] =
2227 "gnu_types";
2228
2229 /*
2230 * File name selection pattern
2231 */
2232 tSCC zGnu_TypesList[] =
2233 "|sys/types.h|stdlib.h|sys/stdtypes.h|stddef.h|memory.h|unistd.h|";
2234 /*
2235 * Machine/OS name selection pattern
2236 */
2237 tSCC* apzGnu_TypesMachs[] = {
2238 "*-*-solaris2.1[0-9]*",
2239 (const char*)NULL };
2240
2241 /*
2242 * content selection pattern - do fix if pattern found
2243 */
2244 tSCC zGnu_TypesSelect0[] =
2245 "^[ \t]*typedef[ \t]+.*[ \t](ptrdiff|size|wchar)_t;";
2246
2247 /*
2248 * content bypass pattern - skip fix if pattern found
2249 */
2250 tSCC zGnu_TypesBypass0[] =
2251 "_GCC_(PTRDIFF|SIZE|WCHAR)_T";
2252
2253 #define GNU_TYPES_TEST_CT 2
2254 static tTestDesc aGnu_TypesTests[] = {
2255 { TT_NEGREP, zGnu_TypesBypass0, (regex_t*)NULL },
2256 { TT_EGREP, zGnu_TypesSelect0, (regex_t*)NULL }, };
2257
2258 /*
2259 * Fix Command Arguments for Gnu_Types
2260 */
2261 static const char* apzGnu_TypesPatch[] = {
2262 "gnu_type",
2263 (char*)NULL };
2264
2265 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2266 *
2267 * Description of Hp_Inline fix
2268 */
2269 tSCC zHp_InlineName[] =
2270 "hp_inline";
2271
2272 /*
2273 * File name selection pattern
2274 */
2275 tSCC zHp_InlineList[] =
2276 "|sys/spinlock.h|machine/machparam.h|";
2277 /*
2278 * Machine/OS name selection pattern
2279 */
2280 #define apzHp_InlineMachs (const char**)NULL
2281
2282 /*
2283 * content selection pattern - do fix if pattern found
2284 */
2285 tSCC zHp_InlineSelect0[] =
2286 "[ \t]*#[ \t]*include[ \t]+\"\\.\\./machine/";
2287
2288 #define HP_INLINE_TEST_CT 1
2289 static tTestDesc aHp_InlineTests[] = {
2290 { TT_EGREP, zHp_InlineSelect0, (regex_t*)NULL }, };
2291
2292 /*
2293 * Fix Command Arguments for Hp_Inline
2294 */
2295 static const char* apzHp_InlinePatch[] = {
2296 "format",
2297 "%1<machine/%2.h>",
2298 "([ \t]*#[ \t]*include[ \t]+)\"\\.\\./machine/([a-z]+)\\.h\"",
2299 (char*)NULL };
2300
2301 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2302 *
2303 * Description of Hp_Sysfile fix
2304 */
2305 tSCC zHp_SysfileName[] =
2306 "hp_sysfile";
2307
2308 /*
2309 * File name selection pattern
2310 */
2311 tSCC zHp_SysfileList[] =
2312 "|sys/file.h|";
2313 /*
2314 * Machine/OS name selection pattern
2315 */
2316 #define apzHp_SysfileMachs (const char**)NULL
2317
2318 /*
2319 * content selection pattern - do fix if pattern found
2320 */
2321 tSCC zHp_SysfileSelect0[] =
2322 "HPUX_SOURCE";
2323
2324 #define HP_SYSFILE_TEST_CT 1
2325 static tTestDesc aHp_SysfileTests[] = {
2326 { TT_EGREP, zHp_SysfileSelect0, (regex_t*)NULL }, };
2327
2328 /*
2329 * Fix Command Arguments for Hp_Sysfile
2330 */
2331 static const char* apzHp_SysfilePatch[] = {
2332 "format",
2333 "(struct file *, ...)",
2334 "\\(\\.\\.\\.\\)",
2335 (char*)NULL };
2336
2337 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2338 *
2339 * Description of Hpux10_Cpp_Pow_Inline fix
2340 */
2341 tSCC zHpux10_Cpp_Pow_InlineName[] =
2342 "hpux10_cpp_pow_inline";
2343
2344 /*
2345 * File name selection pattern
2346 */
2347 tSCC zHpux10_Cpp_Pow_InlineList[] =
2348 "|fixinc-test-limits.h|math.h|";
2349 /*
2350 * Machine/OS name selection pattern
2351 */
2352 #define apzHpux10_Cpp_Pow_InlineMachs (const char**)NULL
2353
2354 /*
2355 * content selection pattern - do fix if pattern found
2356 */
2357 tSCC zHpux10_Cpp_Pow_InlineSelect0[] =
2358 "^# +ifdef +__cplusplus\n\
2359 +\\}\n\
2360 +inline +double +pow\\(double +__d,int +__expon\\) +\\{\n\
2361 [ \t]+return +pow\\(__d,\\(double\\)__expon\\);\n\
2362 +\\}\n\
2363 +extern +\"C\" +\\{\n\
2364 #else\n\
2365 # +endif";
2366
2367 #define HPUX10_CPP_POW_INLINE_TEST_CT 1
2368 static tTestDesc aHpux10_Cpp_Pow_InlineTests[] = {
2369 { TT_EGREP, zHpux10_Cpp_Pow_InlineSelect0, (regex_t*)NULL }, };
2370
2371 /*
2372 * Fix Command Arguments for Hpux10_Cpp_Pow_Inline
2373 */
2374 static const char* apzHpux10_Cpp_Pow_InlinePatch[] = {
2375 "format",
2376 "",
2377 (char*)NULL };
2378
2379 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2380 *
2381 * Description of Hpux11_Cpp_Pow_Inline fix
2382 */
2383 tSCC zHpux11_Cpp_Pow_InlineName[] =
2384 "hpux11_cpp_pow_inline";
2385
2386 /*
2387 * File name selection pattern
2388 */
2389 tSCC zHpux11_Cpp_Pow_InlineList[] =
2390 "|math.h|";
2391 /*
2392 * Machine/OS name selection pattern
2393 */
2394 #define apzHpux11_Cpp_Pow_InlineMachs (const char**)NULL
2395
2396 /*
2397 * content selection pattern - do fix if pattern found
2398 */
2399 tSCC zHpux11_Cpp_Pow_InlineSelect0[] =
2400 " +inline double pow\\(double d,int expon\\) \\{\n\
2401 +return pow\\(d, \\(double\\)expon\\);\n\
2402 +\\}\n";
2403
2404 #define HPUX11_CPP_POW_INLINE_TEST_CT 1
2405 static tTestDesc aHpux11_Cpp_Pow_InlineTests[] = {
2406 { TT_EGREP, zHpux11_Cpp_Pow_InlineSelect0, (regex_t*)NULL }, };
2407
2408 /*
2409 * Fix Command Arguments for Hpux11_Cpp_Pow_Inline
2410 */
2411 static const char* apzHpux11_Cpp_Pow_InlinePatch[] = {
2412 "format",
2413 "",
2414 (char*)NULL };
2415
2416 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2417 *
2418 * Description of Hpux10_Ctype_Declarations1 fix
2419 */
2420 tSCC zHpux10_Ctype_Declarations1Name[] =
2421 "hpux10_ctype_declarations1";
2422
2423 /*
2424 * File name selection pattern
2425 */
2426 tSCC zHpux10_Ctype_Declarations1List[] =
2427 "|ctype.h|";
2428 /*
2429 * Machine/OS name selection pattern
2430 */
2431 #define apzHpux10_Ctype_Declarations1Machs (const char**)NULL
2432
2433 /*
2434 * content selection pattern - do fix if pattern found
2435 */
2436 tSCC zHpux10_Ctype_Declarations1Select0[] =
2437 "^#[ \t]*define _toupper\\(__c\\)[ \t]*__toupper\\(__c\\)";
2438
2439 /*
2440 * content bypass pattern - skip fix if pattern found
2441 */
2442 tSCC zHpux10_Ctype_Declarations1Bypass0[] =
2443 "^[ \t]*extern[ \t]*int[ \t]*__tolower[ \t]*\\(";
2444
2445 #define HPUX10_CTYPE_DECLARATIONS1_TEST_CT 2
2446 static tTestDesc aHpux10_Ctype_Declarations1Tests[] = {
2447 { TT_NEGREP, zHpux10_Ctype_Declarations1Bypass0, (regex_t*)NULL },
2448 { TT_EGREP, zHpux10_Ctype_Declarations1Select0, (regex_t*)NULL }, };
2449
2450 /*
2451 * Fix Command Arguments for Hpux10_Ctype_Declarations1
2452 */
2453 static const char* apzHpux10_Ctype_Declarations1Patch[] = {
2454 "format",
2455 "#ifdef _PROTOTYPES\n\
2456 extern int __tolower(int);\n\
2457 extern int __toupper(int);\n\
2458 #else /* NOT _PROTOTYPES */\n\
2459 extern int __tolower();\n\
2460 extern int __toupper();\n\
2461 #endif /* _PROTOTYPES */\n\n\
2462 %0\n",
2463 (char*)NULL };
2464
2465 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2466 *
2467 * Description of Hpux10_Ctype_Declarations2 fix
2468 */
2469 tSCC zHpux10_Ctype_Declarations2Name[] =
2470 "hpux10_ctype_declarations2";
2471
2472 /*
2473 * File name selection pattern
2474 */
2475 tSCC zHpux10_Ctype_Declarations2List[] =
2476 "|ctype.h|";
2477 /*
2478 * Machine/OS name selection pattern
2479 */
2480 #define apzHpux10_Ctype_Declarations2Machs (const char**)NULL
2481
2482 /*
2483 * content selection pattern - do fix if pattern found
2484 */
2485 tSCC zHpux10_Ctype_Declarations2Select0[] =
2486 "^# if defined\\(_SB_CTYPE_MACROS\\) && \\!defined\\(__lint\\)";
2487
2488 /*
2489 * content bypass pattern - skip fix if pattern found
2490 */
2491 tSCC zHpux10_Ctype_Declarations2Bypass0[] =
2492 "^[ \t]*extern[ \t]*int[ \t]*_isalnum[ \t]*\\(";
2493
2494 #define HPUX10_CTYPE_DECLARATIONS2_TEST_CT 2
2495 static tTestDesc aHpux10_Ctype_Declarations2Tests[] = {
2496 { TT_NEGREP, zHpux10_Ctype_Declarations2Bypass0, (regex_t*)NULL },
2497 { TT_EGREP, zHpux10_Ctype_Declarations2Select0, (regex_t*)NULL }, };
2498
2499 /*
2500 * Fix Command Arguments for Hpux10_Ctype_Declarations2
2501 */
2502 static const char* apzHpux10_Ctype_Declarations2Patch[] = {
2503 "format",
2504 "%0\n\n\
2505 #ifdef _PROTOTYPES\n\
2506 extern int _isalnum(int);\n\
2507 extern int _isalpha(int);\n\
2508 extern int _iscntrl(int);\n\
2509 extern int _isdigit(int);\n\
2510 extern int _isgraph(int);\n\
2511 extern int _islower(int);\n\
2512 extern int _isprint(int);\n\
2513 extern int _ispunct(int);\n\
2514 extern int _isspace(int);\n\
2515 extern int _isupper(int);\n\
2516 extern int _isxdigit(int);\n\
2517 # else /* not _PROTOTYPES */\n\
2518 extern int _isalnum();\n\
2519 extern int _isalpha();\n\
2520 extern int _iscntrl();\n\
2521 extern int _isdigit();\n\
2522 extern int _isgraph();\n\
2523 extern int _islower();\n\
2524 extern int _isprint();\n\
2525 extern int _ispunct();\n\
2526 extern int _isspace();\n\
2527 extern int _isupper();\n\
2528 extern int _isxdigit();\n\
2529 #endif /* _PROTOTYPES */\n",
2530 (char*)NULL };
2531
2532 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2533 *
2534 * Description of Hpux10_Stdio_Declarations fix
2535 */
2536 tSCC zHpux10_Stdio_DeclarationsName[] =
2537 "hpux10_stdio_declarations";
2538
2539 /*
2540 * File name selection pattern
2541 */
2542 tSCC zHpux10_Stdio_DeclarationsList[] =
2543 "|stdio.h|";
2544 /*
2545 * Machine/OS name selection pattern
2546 */
2547 #define apzHpux10_Stdio_DeclarationsMachs (const char**)NULL
2548
2549 /*
2550 * content selection pattern - do fix if pattern found
2551 */
2552 tSCC zHpux10_Stdio_DeclarationsSelect0[] =
2553 "^#[ \t]*define _iob[ \t]*__iob";
2554
2555 /*
2556 * content bypass pattern - skip fix if pattern found
2557 */
2558 tSCC zHpux10_Stdio_DeclarationsBypass0[] =
2559 "^[ \t]*extern[ \t]*int[ \t]*vsnprintf[ \t]*\\(";
2560
2561 #define HPUX10_STDIO_DECLARATIONS_TEST_CT 2
2562 static tTestDesc aHpux10_Stdio_DeclarationsTests[] = {
2563 { TT_NEGREP, zHpux10_Stdio_DeclarationsBypass0, (regex_t*)NULL },
2564 { TT_EGREP, zHpux10_Stdio_DeclarationsSelect0, (regex_t*)NULL }, };
2565
2566 /*
2567 * Fix Command Arguments for Hpux10_Stdio_Declarations
2568 */
2569 static const char* apzHpux10_Stdio_DeclarationsPatch[] = {
2570 "format",
2571 "%0\n\n\
2572 # if defined(__STDC__) || defined(__cplusplus)\n\
2573 extern int snprintf(char *, size_t, const char *, ...);\n\
2574 extern int vsnprintf(char *, size_t, const char *, __va_list);\n\
2575 # else /* not __STDC__) || __cplusplus */\n\
2576 extern int snprintf();\n\
2577 extern int vsnprintf();\n\
2578 # endif /* __STDC__) || __cplusplus */\n",
2579 (char*)NULL };
2580
2581 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2582 *
2583 * Description of Hpux11_Abs fix
2584 */
2585 tSCC zHpux11_AbsName[] =
2586 "hpux11_abs";
2587
2588 /*
2589 * File name selection pattern
2590 */
2591 tSCC zHpux11_AbsList[] =
2592 "|stdlib.h|";
2593 /*
2594 * Machine/OS name selection pattern
2595 */
2596 tSCC* apzHpux11_AbsMachs[] = {
2597 "ia64-hp-hpux11*",
2598 (const char*)NULL };
2599
2600 /*
2601 * content selection pattern - do fix if pattern found
2602 */
2603 tSCC zHpux11_AbsSelect0[] =
2604 "ifndef _MATH_INCLUDED";
2605
2606 #define HPUX11_ABS_TEST_CT 1
2607 static tTestDesc aHpux11_AbsTests[] = {
2608 { TT_EGREP, zHpux11_AbsSelect0, (regex_t*)NULL }, };
2609
2610 /*
2611 * Fix Command Arguments for Hpux11_Abs
2612 */
2613 static const char* apzHpux11_AbsPatch[] = {
2614 "format",
2615 "if !defined(_MATH_INCLUDED) || defined(__GNUG__)",
2616 (char*)NULL };
2617
2618 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2619 *
2620 * Description of Hpux11_Fabsf fix
2621 */
2622 tSCC zHpux11_FabsfName[] =
2623 "hpux11_fabsf";
2624
2625 /*
2626 * File name selection pattern
2627 */
2628 tSCC zHpux11_FabsfList[] =
2629 "|math.h|";
2630 /*
2631 * Machine/OS name selection pattern
2632 */
2633 #define apzHpux11_FabsfMachs (const char**)NULL
2634
2635 /*
2636 * content selection pattern - do fix if pattern found
2637 */
2638 tSCC zHpux11_FabsfSelect0[] =
2639 "^[ \t]*#[ \t]*define[ \t]+fabsf\\(.*";
2640
2641 /*
2642 * content bypass pattern - skip fix if pattern found
2643 */
2644 tSCC zHpux11_FabsfBypass0[] =
2645 "__cplusplus";
2646
2647 #define HPUX11_FABSF_TEST_CT 2
2648 static tTestDesc aHpux11_FabsfTests[] = {
2649 { TT_NEGREP, zHpux11_FabsfBypass0, (regex_t*)NULL },
2650 { TT_EGREP, zHpux11_FabsfSelect0, (regex_t*)NULL }, };
2651
2652 /*
2653 * Fix Command Arguments for Hpux11_Fabsf
2654 */
2655 static const char* apzHpux11_FabsfPatch[] = {
2656 "format",
2657 "#ifndef __cplusplus\n\
2658 %0\n\
2659 #endif",
2660 (char*)NULL };
2661
2662 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2663 *
2664 * Description of Hpux11_Size_T fix
2665 */
2666 tSCC zHpux11_Size_TName[] =
2667 "hpux11_size_t";
2668
2669 /*
2670 * File name selection pattern
2671 */
2672 #define zHpux11_Size_TList (char*)NULL
2673 /*
2674 * Machine/OS name selection pattern
2675 */
2676 tSCC* apzHpux11_Size_TMachs[] = {
2677 "*-hp-hpux11*",
2678 (const char*)NULL };
2679
2680 /*
2681 * content selection pattern - do fix if pattern found
2682 */
2683 tSCC zHpux11_Size_TSelect0[] =
2684 "__size_t";
2685
2686 #define HPUX11_SIZE_T_TEST_CT 1
2687 static tTestDesc aHpux11_Size_TTests[] = {
2688 { TT_EGREP, zHpux11_Size_TSelect0, (regex_t*)NULL }, };
2689
2690 /*
2691 * Fix Command Arguments for Hpux11_Size_T
2692 */
2693 static const char* apzHpux11_Size_TPatch[] = {
2694 "format",
2695 "_hpux_size_t",
2696 (char*)NULL };
2697
2698 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2699 *
2700 * Description of Hpux11_Snprintf fix
2701 */
2702 tSCC zHpux11_SnprintfName[] =
2703 "hpux11_snprintf";
2704
2705 /*
2706 * File name selection pattern
2707 */
2708 tSCC zHpux11_SnprintfList[] =
2709 "|stdio.h|";
2710 /*
2711 * Machine/OS name selection pattern
2712 */
2713 #define apzHpux11_SnprintfMachs (const char**)NULL
2714
2715 /*
2716 * content selection pattern - do fix if pattern found
2717 */
2718 tSCC zHpux11_SnprintfSelect0[] =
2719 "(extern int snprintf *\\(char *\\*, *(|__|_hpux_)size_t,) *(char *\\*, *\\.\\.\\.\\);)";
2720
2721 #define HPUX11_SNPRINTF_TEST_CT 1
2722 static tTestDesc aHpux11_SnprintfTests[] = {
2723 { TT_EGREP, zHpux11_SnprintfSelect0, (regex_t*)NULL }, };
2724
2725 /*
2726 * Fix Command Arguments for Hpux11_Snprintf
2727 */
2728 static const char* apzHpux11_SnprintfPatch[] = {
2729 "format",
2730 "%1 const %3",
2731 (char*)NULL };
2732
2733 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2734 *
2735 * Description of Hpux11_Uint32_C fix
2736 */
2737 tSCC zHpux11_Uint32_CName[] =
2738 "hpux11_uint32_c";
2739
2740 /*
2741 * File name selection pattern
2742 */
2743 tSCC zHpux11_Uint32_CList[] =
2744 "|inttypes.h|";
2745 /*
2746 * Machine/OS name selection pattern
2747 */
2748 #define apzHpux11_Uint32_CMachs (const char**)NULL
2749
2750 /*
2751 * content selection pattern - do fix if pattern found
2752 */
2753 tSCC zHpux11_Uint32_CSelect0[] =
2754 "^#define UINT32_C\\(__c\\)[ \t]*__CONCAT__\\(__CONCAT_U__\\(__c\\),l\\)";
2755
2756 #define HPUX11_UINT32_C_TEST_CT 1
2757 static tTestDesc aHpux11_Uint32_CTests[] = {
2758 { TT_EGREP, zHpux11_Uint32_CSelect0, (regex_t*)NULL }, };
2759
2760 /*
2761 * Fix Command Arguments for Hpux11_Uint32_C
2762 */
2763 static const char* apzHpux11_Uint32_CPatch[] = {
2764 "format",
2765 "#define UINT32_C(__c) __CONCAT__(__c,ul)",
2766 (char*)NULL };
2767
2768 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2769 *
2770 * Description of Hpux11_Vsnprintf fix
2771 */
2772 tSCC zHpux11_VsnprintfName[] =
2773 "hpux11_vsnprintf";
2774
2775 /*
2776 * File name selection pattern
2777 */
2778 tSCC zHpux11_VsnprintfList[] =
2779 "|stdio.h|";
2780 /*
2781 * Machine/OS name selection pattern
2782 */
2783 #define apzHpux11_VsnprintfMachs (const char**)NULL
2784
2785 /*
2786 * content selection pattern - do fix if pattern found
2787 */
2788 tSCC zHpux11_VsnprintfSelect0[] =
2789 "(extern int vsnprintf\\(char \\*, _[hpux]*_size_t, const char \\*,) __va__list\\);";
2790
2791 #define HPUX11_VSNPRINTF_TEST_CT 1
2792 static tTestDesc aHpux11_VsnprintfTests[] = {
2793 { TT_EGREP, zHpux11_VsnprintfSelect0, (regex_t*)NULL }, };
2794
2795 /*
2796 * Fix Command Arguments for Hpux11_Vsnprintf
2797 */
2798 static const char* apzHpux11_VsnprintfPatch[] = {
2799 "format",
2800 "%1 __va_list);",
2801 (char*)NULL };
2802
2803 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2804 *
2805 * Description of Hpux8_Bogus_Inlines fix
2806 */
2807 tSCC zHpux8_Bogus_InlinesName[] =
2808 "hpux8_bogus_inlines";
2809
2810 /*
2811 * File name selection pattern
2812 */
2813 tSCC zHpux8_Bogus_InlinesList[] =
2814 "|math.h|";
2815 /*
2816 * Machine/OS name selection pattern
2817 */
2818 #define apzHpux8_Bogus_InlinesMachs (const char**)NULL
2819
2820 /*
2821 * content selection pattern - do fix if pattern found
2822 */
2823 tSCC zHpux8_Bogus_InlinesSelect0[] =
2824 "inline";
2825
2826 /*
2827 * content bypass pattern - skip fix if pattern found
2828 */
2829 tSCC zHpux8_Bogus_InlinesBypass0[] =
2830 "__GNUG__";
2831
2832 #define HPUX8_BOGUS_INLINES_TEST_CT 2
2833 static tTestDesc aHpux8_Bogus_InlinesTests[] = {
2834 { TT_NEGREP, zHpux8_Bogus_InlinesBypass0, (regex_t*)NULL },
2835 { TT_EGREP, zHpux8_Bogus_InlinesSelect0, (regex_t*)NULL }, };
2836
2837 /*
2838 * Fix Command Arguments for Hpux8_Bogus_Inlines
2839 */
2840 static const char* apzHpux8_Bogus_InlinesPatch[] = { "sed",
2841 "-e", "s@inline int abs(int [a-z][a-z]*) {.*}@extern \"C\" int abs(int);@",
2842 "-e", "s@inline double abs(double [a-z][a-z]*) {.*}@@",
2843 "-e", "s@inline int sqr(int [a-z][a-z]*) {.*}@@",
2844 "-e", "s@inline double sqr(double [a-z][a-z]*) {.*}@@",
2845 (char*)NULL };
2846
2847 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2848 *
2849 * Description of Hpux_Ctype_Macros fix
2850 */
2851 tSCC zHpux_Ctype_MacrosName[] =
2852 "hpux_ctype_macros";
2853
2854 /*
2855 * File name selection pattern
2856 */
2857 tSCC zHpux_Ctype_MacrosList[] =
2858 "|ctype.h|";
2859 /*
2860 * Machine/OS name selection pattern
2861 */
2862 #define apzHpux_Ctype_MacrosMachs (const char**)NULL
2863
2864 /*
2865 * content selection pattern - do fix if pattern found
2866 */
2867 tSCC zHpux_Ctype_MacrosSelect0[] =
2868 "((: |\\()__SB_masks \\? )(__SB_masks\\[__(alnum|c)\\] & _IS)";
2869
2870 #define HPUX_CTYPE_MACROS_TEST_CT 1
2871 static tTestDesc aHpux_Ctype_MacrosTests[] = {
2872 { TT_EGREP, zHpux_Ctype_MacrosSelect0, (regex_t*)NULL }, };
2873
2874 /*
2875 * Fix Command Arguments for Hpux_Ctype_Macros
2876 */
2877 static const char* apzHpux_Ctype_MacrosPatch[] = {
2878 "format",
2879 "%1(int)%3",
2880 (char*)NULL };
2881
2882 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2883 *
2884 * Description of Hpux_Htonl fix
2885 */
2886 tSCC zHpux_HtonlName[] =
2887 "hpux_htonl";
2888
2889 /*
2890 * File name selection pattern
2891 */
2892 tSCC zHpux_HtonlList[] =
2893 "|netinet/in.h|";
2894 /*
2895 * Machine/OS name selection pattern
2896 */
2897 #define apzHpux_HtonlMachs (const char**)NULL
2898
2899 /*
2900 * content selection pattern - do fix if pattern found
2901 */
2902 tSCC zHpux_HtonlSelect0[] =
2903 "#ifndef _XOPEN_SOURCE_EXTENDED\n\
2904 (/\\*\n\
2905 \\* Macros for number representation conversion\\.\n\
2906 \\*/\n\
2907 #ifndef ntohl)";
2908
2909 #define HPUX_HTONL_TEST_CT 1
2910 static tTestDesc aHpux_HtonlTests[] = {
2911 { TT_EGREP, zHpux_HtonlSelect0, (regex_t*)NULL }, };
2912
2913 /*
2914 * Fix Command Arguments for Hpux_Htonl
2915 */
2916 static const char* apzHpux_HtonlPatch[] = {
2917 "format",
2918 "#if 1\n\
2919 %1",
2920 (char*)NULL };
2921
2922 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2923 *
2924 * Description of Hpux_Long_Double fix
2925 */
2926 tSCC zHpux_Long_DoubleName[] =
2927 "hpux_long_double";
2928
2929 /*
2930 * File name selection pattern
2931 */
2932 tSCC zHpux_Long_DoubleList[] =
2933 "|stdlib.h|";
2934 /*
2935 * Machine/OS name selection pattern
2936 */
2937 #define apzHpux_Long_DoubleMachs (const char**)NULL
2938
2939 /*
2940 * content selection pattern - do fix if pattern found
2941 */
2942 tSCC zHpux_Long_DoubleSelect0[] =
2943 "extern[ \t]long_double[ \t]strtold";
2944
2945 /*
2946 * content bypass pattern - skip fix if pattern found
2947 */
2948 tSCC zHpux_Long_DoubleBypass0[] =
2949 "long_double_t";
2950
2951 #define HPUX_LONG_DOUBLE_TEST_CT 2
2952 static tTestDesc aHpux_Long_DoubleTests[] = {
2953 { TT_NEGREP, zHpux_Long_DoubleBypass0, (regex_t*)NULL },
2954 { TT_EGREP, zHpux_Long_DoubleSelect0, (regex_t*)NULL }, };
2955
2956 /*
2957 * Fix Command Arguments for Hpux_Long_Double
2958 */
2959 static const char* apzHpux_Long_DoublePatch[] = { "sed",
2960 "-e", "/^#[ \t]*ifndef _LONG_DOUBLE/,/\\/\\* _LONG_DOUBLE \\*\\//D",
2961 "-e", "s/long_double/long double/g",
2962 (char*)NULL };
2963
2964 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2965 *
2966 * Description of Hpux_Systime fix
2967 */
2968 tSCC zHpux_SystimeName[] =
2969 "hpux_systime";
2970
2971 /*
2972 * File name selection pattern
2973 */
2974 tSCC zHpux_SystimeList[] =
2975 "|sys/time.h|";
2976 /*
2977 * Machine/OS name selection pattern
2978 */
2979 #define apzHpux_SystimeMachs (const char**)NULL
2980
2981 /*
2982 * content selection pattern - do fix if pattern found
2983 */
2984 tSCC zHpux_SystimeSelect0[] =
2985 "^extern struct sigevent;";
2986
2987 #define HPUX_SYSTIME_TEST_CT 1
2988 static tTestDesc aHpux_SystimeTests[] = {
2989 { TT_EGREP, zHpux_SystimeSelect0, (regex_t*)NULL }, };
2990
2991 /*
2992 * Fix Command Arguments for Hpux_Systime
2993 */
2994 static const char* apzHpux_SystimePatch[] = {
2995 "format",
2996 "struct sigevent;",
2997 (char*)NULL };
2998
2999 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3000 *
3001 * Description of Hpux_Spu_Info fix
3002 */
3003 tSCC zHpux_Spu_InfoName[] =
3004 "hpux_spu_info";
3005
3006 /*
3007 * File name selection pattern
3008 */
3009 tSCC zHpux_Spu_InfoList[] =
3010 "|ia64/sys/getppdp.h|";
3011 /*
3012 * Machine/OS name selection pattern
3013 */
3014 tSCC* apzHpux_Spu_InfoMachs[] = {
3015 "*-hp-hpux*",
3016 (const char*)NULL };
3017
3018 /*
3019 * content selection pattern - do fix if pattern found
3020 */
3021 tSCC zHpux_Spu_InfoSelect0[] =
3022 "^.*extern.*spu_info.*";
3023
3024 #define HPUX_SPU_INFO_TEST_CT 1
3025 static tTestDesc aHpux_Spu_InfoTests[] = {
3026 { TT_EGREP, zHpux_Spu_InfoSelect0, (regex_t*)NULL }, };
3027
3028 /*
3029 * Fix Command Arguments for Hpux_Spu_Info
3030 */
3031 static const char* apzHpux_Spu_InfoPatch[] = {
3032 "format",
3033 "#ifdef _KERNEL\n\
3034 %0\n\
3035 #endif",
3036 (char*)NULL };
3037
3038 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3039 *
3040 * Description of Hpux_Extern_Errno fix
3041 */
3042 tSCC zHpux_Extern_ErrnoName[] =
3043 "hpux_extern_errno";
3044
3045 /*
3046 * File name selection pattern
3047 */
3048 tSCC zHpux_Extern_ErrnoList[] =
3049 "|errno.h|";
3050 /*
3051 * Machine/OS name selection pattern
3052 */
3053 tSCC* apzHpux_Extern_ErrnoMachs[] = {
3054 "*-hp-hpux10.*",
3055 "*-hp-hpux11.[0-2]*",
3056 (const char*)NULL };
3057
3058 /*
3059 * content selection pattern - do fix if pattern found
3060 */
3061 tSCC zHpux_Extern_ErrnoSelect0[] =
3062 "^[ \t]*extern int errno;$";
3063
3064 #define HPUX_EXTERN_ERRNO_TEST_CT 1
3065 static tTestDesc aHpux_Extern_ErrnoTests[] = {
3066 { TT_EGREP, zHpux_Extern_ErrnoSelect0, (regex_t*)NULL }, };
3067
3068 /*
3069 * Fix Command Arguments for Hpux_Extern_Errno
3070 */
3071 static const char* apzHpux_Extern_ErrnoPatch[] = {
3072 "format",
3073 "#ifdef __cplusplus\n\
3074 extern \"C\" {\n\
3075 #endif\n\
3076 %0\n\
3077 #ifdef __cplusplus\n\
3078 }\n\
3079 #endif",
3080 (char*)NULL };
3081
3082 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3083 *
3084 * Description of Huge_Val_Hex fix
3085 */
3086 tSCC zHuge_Val_HexName[] =
3087 "huge_val_hex";
3088
3089 /*
3090 * File name selection pattern
3091 */
3092 tSCC zHuge_Val_HexList[] =
3093 "|bits/huge_val.h|";
3094 /*
3095 * Machine/OS name selection pattern
3096 */
3097 #define apzHuge_Val_HexMachs (const char**)NULL
3098
3099 /*
3100 * content selection pattern - do fix if pattern found
3101 */
3102 tSCC zHuge_Val_HexSelect0[] =
3103 "^#[ \t]*define[ \t]*HUGE_VAL[ \t].*0x1\\.0p.*";
3104
3105 /*
3106 * content bypass pattern - skip fix if pattern found
3107 */
3108 tSCC zHuge_Val_HexBypass0[] =
3109 "__builtin_huge_val";
3110
3111 #define HUGE_VAL_HEX_TEST_CT 2
3112 static tTestDesc aHuge_Val_HexTests[] = {
3113 { TT_NEGREP, zHuge_Val_HexBypass0, (regex_t*)NULL },
3114 { TT_EGREP, zHuge_Val_HexSelect0, (regex_t*)NULL }, };
3115
3116 /*
3117 * Fix Command Arguments for Huge_Val_Hex
3118 */
3119 static const char* apzHuge_Val_HexPatch[] = {
3120 "format",
3121 "#define HUGE_VAL (__builtin_huge_val())\n",
3122 (char*)NULL };
3123
3124 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3125 *
3126 * Description of Huge_Valf_Hex fix
3127 */
3128 tSCC zHuge_Valf_HexName[] =
3129 "huge_valf_hex";
3130
3131 /*
3132 * File name selection pattern
3133 */
3134 tSCC zHuge_Valf_HexList[] =
3135 "|bits/huge_val.h|";
3136 /*
3137 * Machine/OS name selection pattern
3138 */
3139 #define apzHuge_Valf_HexMachs (const char**)NULL
3140
3141 /*
3142 * content selection pattern - do fix if pattern found
3143 */
3144 tSCC zHuge_Valf_HexSelect0[] =
3145 "^#[ \t]*define[ \t]*HUGE_VALF[ \t].*0x1\\.0p.*";
3146
3147 /*
3148 * content bypass pattern - skip fix if pattern found
3149 */
3150 tSCC zHuge_Valf_HexBypass0[] =
3151 "__builtin_huge_valf";
3152
3153 #define HUGE_VALF_HEX_TEST_CT 2
3154 static tTestDesc aHuge_Valf_HexTests[] = {
3155 { TT_NEGREP, zHuge_Valf_HexBypass0, (regex_t*)NULL },
3156 { TT_EGREP, zHuge_Valf_HexSelect0, (regex_t*)NULL }, };
3157
3158 /*
3159 * Fix Command Arguments for Huge_Valf_Hex
3160 */
3161 static const char* apzHuge_Valf_HexPatch[] = {
3162 "format",
3163 "#define HUGE_VALF (__builtin_huge_valf())\n",
3164 (char*)NULL };
3165
3166 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3167 *
3168 * Description of Huge_Vall_Hex fix
3169 */
3170 tSCC zHuge_Vall_HexName[] =
3171 "huge_vall_hex";
3172
3173 /*
3174 * File name selection pattern
3175 */
3176 tSCC zHuge_Vall_HexList[] =
3177 "|bits/huge_val.h|";
3178 /*
3179 * Machine/OS name selection pattern
3180 */
3181 #define apzHuge_Vall_HexMachs (const char**)NULL
3182
3183 /*
3184 * content selection pattern - do fix if pattern found
3185 */
3186 tSCC zHuge_Vall_HexSelect0[] =
3187 "^#[ \t]*define[ \t]*HUGE_VALL[ \t].*0x1\\.0p.*";
3188
3189 /*
3190 * content bypass pattern - skip fix if pattern found
3191 */
3192 tSCC zHuge_Vall_HexBypass0[] =
3193 "__builtin_huge_vall";
3194
3195 #define HUGE_VALL_HEX_TEST_CT 2
3196 static tTestDesc aHuge_Vall_HexTests[] = {
3197 { TT_NEGREP, zHuge_Vall_HexBypass0, (regex_t*)NULL },
3198 { TT_EGREP, zHuge_Vall_HexSelect0, (regex_t*)NULL }, };
3199
3200 /*
3201 * Fix Command Arguments for Huge_Vall_Hex
3202 */
3203 static const char* apzHuge_Vall_HexPatch[] = {
3204 "format",
3205 "#define HUGE_VALL (__builtin_huge_vall())\n",
3206 (char*)NULL };
3207
3208 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3209 *
3210 * Description of Int_Abort_Free_And_Exit fix
3211 */
3212 tSCC zInt_Abort_Free_And_ExitName[] =
3213 "int_abort_free_and_exit";
3214
3215 /*
3216 * File name selection pattern
3217 */
3218 tSCC zInt_Abort_Free_And_ExitList[] =
3219 "|stdlib.h|";
3220 /*
3221 * Machine/OS name selection pattern
3222 */
3223 #define apzInt_Abort_Free_And_ExitMachs (const char**)NULL
3224
3225 /*
3226 * content selection pattern - do fix if pattern found
3227 */
3228 tSCC zInt_Abort_Free_And_ExitSelect0[] =
3229 "int[ \t]+(abort|free|exit)[ \t]*\\(";
3230
3231 /*
3232 * content bypass pattern - skip fix if pattern found
3233 */
3234 tSCC zInt_Abort_Free_And_ExitBypass0[] =
3235 "_CLASSIC_ANSI_TYPES";
3236
3237 #define INT_ABORT_FREE_AND_EXIT_TEST_CT 2
3238 static tTestDesc aInt_Abort_Free_And_ExitTests[] = {
3239 { TT_NEGREP, zInt_Abort_Free_And_ExitBypass0, (regex_t*)NULL },
3240 { TT_EGREP, zInt_Abort_Free_And_ExitSelect0, (regex_t*)NULL }, };
3241
3242 /*
3243 * Fix Command Arguments for Int_Abort_Free_And_Exit
3244 */
3245 static const char* apzInt_Abort_Free_And_ExitPatch[] = {
3246 "format",
3247 "void\t%1(",
3248 (char*)NULL };
3249
3250 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3251 *
3252 * Description of Io_Quotes_Def fix
3253 */
3254 tSCC zIo_Quotes_DefName[] =
3255 "io_quotes_def";
3256
3257 /*
3258 * File name selection pattern
3259 */
3260 #define zIo_Quotes_DefList (char*)NULL
3261 /*
3262 * Machine/OS name selection pattern
3263 */
3264 #define apzIo_Quotes_DefMachs (const char**)NULL
3265
3266 /*
3267 * content selection pattern - do fix if pattern found
3268 */
3269 tSCC zIo_Quotes_DefSelect0[] =
3270 "define[ \t]+[A-Z0-9_]+IO[A-Z]*\\([a-zA-Z][,)]";
3271
3272 #define IO_QUOTES_DEF_TEST_CT 1
3273 static tTestDesc aIo_Quotes_DefTests[] = {
3274 { TT_EGREP, zIo_Quotes_DefSelect0, (regex_t*)NULL }, };
3275
3276 /*
3277 * Fix Command Arguments for Io_Quotes_Def
3278 */
3279 static const char* apzIo_Quotes_DefPatch[] = {
3280 "char_macro_def",
3281 "IO",
3282 (char*)NULL };
3283
3284 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3285 *
3286 * Description of Io_Quotes_Use fix
3287 */
3288 tSCC zIo_Quotes_UseName[] =
3289 "io_quotes_use";
3290
3291 /*
3292 * File name selection pattern
3293 */
3294 #define zIo_Quotes_UseList (char*)NULL
3295 /*
3296 * Machine/OS name selection pattern
3297 */
3298 #define apzIo_Quotes_UseMachs (const char**)NULL
3299
3300 /*
3301 * content selection pattern - do fix if pattern found
3302 */
3303 tSCC zIo_Quotes_UseSelect0[] =
3304 "define[ \t]+[A-Z0-9_]+[ \t]+[A-Z0-9_]+IO[A-Z]*[ \t]*\\( *[^,']";
3305
3306 #define IO_QUOTES_USE_TEST_CT 1
3307 static tTestDesc aIo_Quotes_UseTests[] = {
3308 { TT_EGREP, zIo_Quotes_UseSelect0, (regex_t*)NULL }, };
3309
3310 /*
3311 * Fix Command Arguments for Io_Quotes_Use
3312 */
3313 static const char* apzIo_Quotes_UsePatch[] = {
3314 "char_macro_use",
3315 "IO",
3316 (char*)NULL };
3317
3318 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3319 *
3320 * Description of Ip_Missing_Semi fix
3321 */
3322 tSCC zIp_Missing_SemiName[] =
3323 "ip_missing_semi";
3324
3325 /*
3326 * File name selection pattern
3327 */
3328 tSCC zIp_Missing_SemiList[] =
3329 "|netinet/ip.h|";
3330 /*
3331 * Machine/OS name selection pattern
3332 */
3333 #define apzIp_Missing_SemiMachs (const char**)NULL
3334
3335 /*
3336 * content selection pattern - do fix if pattern found
3337 */
3338 tSCC zIp_Missing_SemiSelect0[] =
3339 "}$";
3340
3341 #define IP_MISSING_SEMI_TEST_CT 1
3342 static tTestDesc aIp_Missing_SemiTests[] = {
3343 { TT_EGREP, zIp_Missing_SemiSelect0, (regex_t*)NULL }, };
3344
3345 /*
3346 * Fix Command Arguments for Ip_Missing_Semi
3347 */
3348 static const char* apzIp_Missing_SemiPatch[] = { "sed",
3349 "-e", "/^struct/,/^};/s/}$/};/",
3350 (char*)NULL };
3351
3352 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3353 *
3354 * Description of Irix___Restrict fix
3355 */
3356 tSCC zIrix___RestrictName[] =
3357 "irix___restrict";
3358
3359 /*
3360 * File name selection pattern
3361 */
3362 tSCC zIrix___RestrictList[] =
3363 "|internal/sgimacros.h|";
3364 /*
3365 * Machine/OS name selection pattern
3366 */
3367 tSCC* apzIrix___RestrictMachs[] = {
3368 "mips-sgi-irix6.5",
3369 (const char*)NULL };
3370
3371 /*
3372 * content selection pattern - do fix if pattern found
3373 */
3374 tSCC zIrix___RestrictSelect0[] =
3375 "(#ifdef __c99\n\
3376 )(#[ \t]*define __restrict restrict)";
3377
3378 #define IRIX___RESTRICT_TEST_CT 1
3379 static tTestDesc aIrix___RestrictTests[] = {
3380 { TT_EGREP, zIrix___RestrictSelect0, (regex_t*)NULL }, };
3381
3382 /*
3383 * Fix Command Arguments for Irix___Restrict
3384 */
3385 static const char* apzIrix___RestrictPatch[] = {
3386 "format",
3387 "%1# ifndef __cplusplus\n\
3388 %2\n\
3389 # endif",
3390 (char*)NULL };
3391
3392 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3393 *
3394 * Description of Irix___Generic1 fix
3395 */
3396 tSCC zIrix___Generic1Name[] =
3397 "irix___generic1";
3398
3399 /*
3400 * File name selection pattern
3401 */
3402 tSCC zIrix___Generic1List[] =
3403 "|internal/math_core.h|";
3404 /*
3405 * Machine/OS name selection pattern
3406 */
3407 tSCC* apzIrix___Generic1Machs[] = {
3408 "mips-sgi-irix6.5",
3409 (const char*)NULL };
3410
3411 /*
3412 * content selection pattern - do fix if pattern found
3413 */
3414 tSCC zIrix___Generic1Select0[] =
3415 "#define ([a-z]+)\\(x\\) *__generic.*";
3416
3417 #define IRIX___GENERIC1_TEST_CT 1
3418 static tTestDesc aIrix___Generic1Tests[] = {
3419 { TT_EGREP, zIrix___Generic1Select0, (regex_t*)NULL }, };
3420
3421 /*
3422 * Fix Command Arguments for Irix___Generic1
3423 */
3424 static const char* apzIrix___Generic1Patch[] = {
3425 "format",
3426 "extern int %1(double);\n\
3427 extern int %1f(float);\n\
3428 extern int %1l(long double);\n\
3429 #define %1(x) (sizeof(x) == sizeof(double) ? _%1(x) \\\n\
3430 : sizeof(x) == sizeof(float) ? _%1f(x) \\\n\
3431 : _%1l(x))\n",
3432 (char*)NULL };
3433
3434 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3435 *
3436 * Description of Irix___Generic2 fix
3437 */
3438 tSCC zIrix___Generic2Name[] =
3439 "irix___generic2";
3440
3441 /*
3442 * File name selection pattern
3443 */
3444 tSCC zIrix___Generic2List[] =
3445 "|internal/math_core.h|";
3446 /*
3447 * Machine/OS name selection pattern
3448 */
3449 tSCC* apzIrix___Generic2Machs[] = {
3450 "mips-sgi-irix6.5",
3451 (const char*)NULL };
3452
3453 /*
3454 * content selection pattern - do fix if pattern found
3455 */
3456 tSCC zIrix___Generic2Select0[] =
3457 "#define ([a-z]+)\\(x,y\\) *__generic.*";
3458
3459 #define IRIX___GENERIC2_TEST_CT 1
3460 static tTestDesc aIrix___Generic2Tests[] = {
3461 { TT_EGREP, zIrix___Generic2Select0, (regex_t*)NULL }, };
3462
3463 /*
3464 * Fix Command Arguments for Irix___Generic2
3465 */
3466 static const char* apzIrix___Generic2Patch[] = {
3467 "format",
3468 "#define %1(x,y) \\\n\
3469 ((sizeof(x)<=4 && sizeof(y)<=4) ? _%1f(x,y) \\\n\
3470 : (sizeof(x)<=8 && sizeof(y)<=8) ? _%1(x,y) \\\n\
3471 : _%1l(x,y))\n",
3472 (char*)NULL };
3473
3474 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3475 *
3476 * Description of Irix_Asm_Apostrophe fix
3477 */
3478 tSCC zIrix_Asm_ApostropheName[] =
3479 "irix_asm_apostrophe";
3480
3481 /*
3482 * File name selection pattern
3483 */
3484 tSCC zIrix_Asm_ApostropheList[] =
3485 "|sys/asm.h|";
3486 /*
3487 * Machine/OS name selection pattern
3488 */
3489 #define apzIrix_Asm_ApostropheMachs (const char**)NULL
3490
3491 /*
3492 * content selection pattern - do fix if pattern found
3493 */
3494 tSCC zIrix_Asm_ApostropheSelect0[] =
3495 "^[ \t]*#.*[Ww]e're";
3496
3497 #define IRIX_ASM_APOSTROPHE_TEST_CT 1
3498 static tTestDesc aIrix_Asm_ApostropheTests[] = {
3499 { TT_EGREP, zIrix_Asm_ApostropheSelect0, (regex_t*)NULL }, };
3500
3501 /*
3502 * Fix Command Arguments for Irix_Asm_Apostrophe
3503 */
3504 static const char* apzIrix_Asm_ApostrophePatch[] = {
3505 "format",
3506 "%1 are",
3507 "^([ \t]*#.*[Ww]e)'re",
3508 (char*)NULL };
3509
3510 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3511 *
3512 * Description of Irix_Limits_Const fix
3513 */
3514 tSCC zIrix_Limits_ConstName[] =
3515 "irix_limits_const";
3516
3517 /*
3518 * File name selection pattern
3519 */
3520 tSCC zIrix_Limits_ConstList[] =
3521 "|fixinc-test-limits.h|limits.h|";
3522 /*
3523 * Machine/OS name selection pattern
3524 */
3525 #define apzIrix_Limits_ConstMachs (const char**)NULL
3526
3527 /*
3528 * content selection pattern - do fix if pattern found
3529 */
3530 tSCC zIrix_Limits_ConstSelect0[] =
3531 "^extern const ";
3532
3533 #define IRIX_LIMITS_CONST_TEST_CT 1
3534 static tTestDesc aIrix_Limits_ConstTests[] = {
3535 { TT_EGREP, zIrix_Limits_ConstSelect0, (regex_t*)NULL }, };
3536
3537 /*
3538 * Fix Command Arguments for Irix_Limits_Const
3539 */
3540 static const char* apzIrix_Limits_ConstPatch[] = {
3541 "format",
3542 "extern __const ",
3543 (char*)NULL };
3544
3545 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3546 *
3547 * Description of Irix_Socklen_T fix
3548 */
3549 tSCC zIrix_Socklen_TName[] =
3550 "irix_socklen_t";
3551
3552 /*
3553 * File name selection pattern
3554 */
3555 tSCC zIrix_Socklen_TList[] =
3556 "|sys/socket.h|";
3557 /*
3558 * Machine/OS name selection pattern
3559 */
3560 tSCC* apzIrix_Socklen_TMachs[] = {
3561 "mips-sgi-irix6.5",
3562 (const char*)NULL };
3563
3564 /*
3565 * content selection pattern - do fix if pattern found
3566 */
3567 tSCC zIrix_Socklen_TSelect0[] =
3568 "(#define _SOCKLEN_T\n\
3569 )(typedef u_int32_t socklen_t;)";
3570
3571 #define IRIX_SOCKLEN_T_TEST_CT 1
3572 static tTestDesc aIrix_Socklen_TTests[] = {
3573 { TT_EGREP, zIrix_Socklen_TSelect0, (regex_t*)NULL }, };
3574
3575 /*
3576 * Fix Command Arguments for Irix_Socklen_T
3577 */
3578 static const char* apzIrix_Socklen_TPatch[] = {
3579 "format",
3580 "%1#if _NO_XOPEN4 && _NO_XOPEN5\n\
3581 typedef int socklen_t;\n\
3582 #else\n\
3583 %2\n\
3584 #endif /* _NO_XOPEN4 && _NO_XOPEN5 */",
3585 (char*)NULL };
3586
3587 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3588 *
3589 * Description of Irix_Stdio_Va_List fix
3590 */
3591 tSCC zIrix_Stdio_Va_ListName[] =
3592 "irix_stdio_va_list";
3593
3594 /*
3595 * File name selection pattern
3596 */
3597 tSCC zIrix_Stdio_Va_ListList[] =
3598 "|stdio.h|internal/stdio_core.h|";
3599 /*
3600 * Machine/OS name selection pattern
3601 */
3602 #define apzIrix_Stdio_Va_ListMachs (const char**)NULL
3603
3604 /*
3605 * content selection pattern - do fix if pattern found
3606 */
3607 tSCC zIrix_Stdio_Va_ListSelect0[] =
3608 "/\\* va_list \\*/ char \\*";
3609
3610 #define IRIX_STDIO_VA_LIST_TEST_CT 1
3611 static tTestDesc aIrix_Stdio_Va_ListTests[] = {
3612 { TT_EGREP, zIrix_Stdio_Va_ListSelect0, (regex_t*)NULL }, };
3613
3614 /*
3615 * Fix Command Arguments for Irix_Stdio_Va_List
3616 */
3617 static const char* apzIrix_Stdio_Va_ListPatch[] = {
3618 "format",
3619 "__gnuc_va_list",
3620 (char*)NULL };
3621
3622 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3623 *
3624 * Description of Irix_Wcsftime fix
3625 */
3626 tSCC zIrix_WcsftimeName[] =
3627 "irix_wcsftime";
3628
3629 /*
3630 * File name selection pattern
3631 */
3632 tSCC zIrix_WcsftimeList[] =
3633 "|internal/wchar_core.h|";
3634 /*
3635 * Machine/OS name selection pattern
3636 */
3637 tSCC* apzIrix_WcsftimeMachs[] = {
3638 "mips-sgi-irix6.5",
3639 (const char*)NULL };
3640
3641 /*
3642 * content selection pattern - do fix if pattern found
3643 */
3644 tSCC zIrix_WcsftimeSelect0[] =
3645 "#if _NO_XOPEN5\n\
3646 (extern size_t[ \t]+wcsftime.*const char *.*)";
3647
3648 #define IRIX_WCSFTIME_TEST_CT 1
3649 static tTestDesc aIrix_WcsftimeTests[] = {
3650 { TT_EGREP, zIrix_WcsftimeSelect0, (regex_t*)NULL }, };
3651
3652 /*
3653 * Fix Command Arguments for Irix_Wcsftime
3654 */
3655 static const char* apzIrix_WcsftimePatch[] = {
3656 "format",
3657 "#if _NO_XOPEN5 && !defined(__c99)\n\
3658 %1",
3659 (char*)NULL };
3660
3661 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3662 *
3663 * Description of Isc_Fmod fix
3664 */
3665 tSCC zIsc_FmodName[] =
3666 "isc_fmod";
3667
3668 /*
3669 * File name selection pattern
3670 */
3671 tSCC zIsc_FmodList[] =
3672 "|math.h|";
3673 /*
3674 * Machine/OS name selection pattern
3675 */
3676 #define apzIsc_FmodMachs (const char**)NULL
3677
3678 /*
3679 * content selection pattern - do fix if pattern found
3680 */
3681 tSCC zIsc_FmodSelect0[] =
3682 "fmod\\(double\\)";
3683
3684 #define ISC_FMOD_TEST_CT 1
3685 static tTestDesc aIsc_FmodTests[] = {
3686 { TT_EGREP, zIsc_FmodSelect0, (regex_t*)NULL }, };
3687
3688 /*
3689 * Fix Command Arguments for Isc_Fmod
3690 */
3691 static const char* apzIsc_FmodPatch[] = {
3692 "format",
3693 "fmod(double, double)",
3694 (char*)NULL };
3695
3696 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3697 *
3698 * Description of Isc_Omits_With_Stdc fix
3699 */
3700 tSCC zIsc_Omits_With_StdcName[] =
3701 "isc_omits_with_stdc";
3702
3703 /*
3704 * File name selection pattern
3705 */
3706 tSCC zIsc_Omits_With_StdcList[] =
3707 "|stdio.h|math.h|ctype.h|sys/limits.h|sys/fcntl.h|sys/dirent.h|";
3708 /*
3709 * Machine/OS name selection pattern
3710 */
3711 #define apzIsc_Omits_With_StdcMachs (const char**)NULL
3712
3713 /*
3714 * content selection pattern - do fix if pattern found
3715 */
3716 tSCC zIsc_Omits_With_StdcSelect0[] =
3717 "!defined\\(__STDC__\\) && !defined\\(_POSIX_SOURCE\\)";
3718
3719 #define ISC_OMITS_WITH_STDC_TEST_CT 1
3720 static tTestDesc aIsc_Omits_With_StdcTests[] = {
3721 { TT_EGREP, zIsc_Omits_With_StdcSelect0, (regex_t*)NULL }, };
3722
3723 /*
3724 * Fix Command Arguments for Isc_Omits_With_Stdc
3725 */
3726 static const char* apzIsc_Omits_With_StdcPatch[] = {
3727 "format",
3728 "!defined(_POSIX_SOURCE)",
3729 (char*)NULL };
3730
3731 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3732 *
3733 * Description of Kandr_Concat fix
3734 */
3735 tSCC zKandr_ConcatName[] =
3736 "kandr_concat";
3737
3738 /*
3739 * File name selection pattern
3740 */
3741 tSCC zKandr_ConcatList[] =
3742 "|sparc/asm_linkage.h|sun3/asm_linkage.h|sun3x/asm_linkage.h|sun4/asm_linkage.h|sun4c/asm_linkage.h|sun4m/asm_linkage.h|sun4c/debug/asm_linkage.h|sun4m/debug/asm_linkage.h|arm/as_support.h|arm/mc_type.h|arm/xcb.h|dev/chardefmac.h|dev/ps_irq.h|dev/screen.h|dev/scsi.h|sys/tty.h|Xm.acorn/XmP.h|bsd43/bsd43_.h|";
3743 /*
3744 * Machine/OS name selection pattern
3745 */
3746 #define apzKandr_ConcatMachs (const char**)NULL
3747
3748 /*
3749 * content selection pattern - do fix if pattern found
3750 */
3751 tSCC zKandr_ConcatSelect0[] =
3752 "/\\*\\*/";
3753
3754 #define KANDR_CONCAT_TEST_CT 1
3755 static tTestDesc aKandr_ConcatTests[] = {
3756 { TT_EGREP, zKandr_ConcatSelect0, (regex_t*)NULL }, };
3757
3758 /*
3759 * Fix Command Arguments for Kandr_Concat
3760 */
3761 static const char* apzKandr_ConcatPatch[] = {
3762 "format",
3763 "##",
3764 (char*)NULL };
3765
3766 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3767 *
3768 * Description of Libc1_G_Va_List fix
3769 */
3770 tSCC zLibc1_G_Va_ListName[] =
3771 "libc1_G_va_list";
3772
3773 /*
3774 * File name selection pattern
3775 */
3776 tSCC zLibc1_G_Va_ListList[] =
3777 "|_G_config.h|";
3778 /*
3779 * Machine/OS name selection pattern
3780 */
3781 tSCC* apzLibc1_G_Va_ListMachs[] = {
3782 "*-*-linux*libc1",
3783 (const char*)NULL };
3784
3785 /*
3786 * content selection pattern - do fix if pattern found
3787 */
3788 tSCC zLibc1_G_Va_ListSelect0[] =
3789 "typedef void \\* _G_va_list;";
3790
3791 #define LIBC1_G_VA_LIST_TEST_CT 1
3792 static tTestDesc aLibc1_G_Va_ListTests[] = {
3793 { TT_EGREP, zLibc1_G_Va_ListSelect0, (regex_t*)NULL }, };
3794
3795 /*
3796 * Fix Command Arguments for Libc1_G_Va_List
3797 */
3798 static const char* apzLibc1_G_Va_ListPatch[] = {
3799 "format",
3800 "typedef __builtin_va_list _G_va_list;",
3801 (char*)NULL };
3802
3803 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3804 *
3805 * Description of Libc1_Ifdefd_Memx fix
3806 */
3807 tSCC zLibc1_Ifdefd_MemxName[] =
3808 "libc1_ifdefd_memx";
3809
3810 /*
3811 * File name selection pattern
3812 */
3813 tSCC zLibc1_Ifdefd_MemxList[] =
3814 "|testing.h|string.h|";
3815 /*
3816 * Machine/OS name selection pattern
3817 */
3818 #define apzLibc1_Ifdefd_MemxMachs (const char**)NULL
3819
3820 /*
3821 * content selection pattern - do fix if pattern found
3822 */
3823 tSCC zLibc1_Ifdefd_MemxSelect0[] =
3824 "' is a built-in function for gcc 2\\.x\\. \\*/";
3825
3826 /*
3827 * content bypass pattern - skip fix if pattern found
3828 */
3829 tSCC zLibc1_Ifdefd_MemxBypass0[] =
3830 "__cplusplus";
3831
3832 #define LIBC1_IFDEFD_MEMX_TEST_CT 2
3833 static tTestDesc aLibc1_Ifdefd_MemxTests[] = {
3834 { TT_NEGREP, zLibc1_Ifdefd_MemxBypass0, (regex_t*)NULL },
3835 { TT_EGREP, zLibc1_Ifdefd_MemxSelect0, (regex_t*)NULL }, };
3836
3837 /*
3838 * Fix Command Arguments for Libc1_Ifdefd_Memx
3839 */
3840 static const char* apzLibc1_Ifdefd_MemxPatch[] = {
3841 "format",
3842 "%1",
3843 "/\\* `mem...' is a built-in function for gcc 2\\.x\\. \\*/\n\
3844 #if defined\\(__STDC__\\) && __GNUC__ < 2\n\
3845 (/\\* .* \\*/\n\
3846 extern [a-z_]+ mem.*(\n\
3847 [^#].*)*;)\n\
3848 #endif",
3849 (char*)NULL };
3850
3851 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3852 *
3853 * Description of Linux_Ia64_Ucontext fix
3854 */
3855 tSCC zLinux_Ia64_UcontextName[] =
3856 "linux_ia64_ucontext";
3857
3858 /*
3859 * File name selection pattern
3860 */
3861 tSCC zLinux_Ia64_UcontextList[] =
3862 "|sys/ucontext.h|";
3863 /*
3864 * Machine/OS name selection pattern
3865 */
3866 tSCC* apzLinux_Ia64_UcontextMachs[] = {
3867 "ia64-*-linux*",
3868 (const char*)NULL };
3869
3870 /*
3871 * content selection pattern - do fix if pattern found
3872 */
3873 tSCC zLinux_Ia64_UcontextSelect0[] =
3874 "\\(\\(\\(char \\*\\) &\\(\\(struct sigcontext \\*\\) 0\\)->sc_gr\\[0\\]\\) - \\(char \\*\\) 0\\)";
3875
3876 #define LINUX_IA64_UCONTEXT_TEST_CT 1
3877 static tTestDesc aLinux_Ia64_UcontextTests[] = {
3878 { TT_EGREP, zLinux_Ia64_UcontextSelect0, (regex_t*)NULL }, };
3879
3880 /*
3881 * Fix Command Arguments for Linux_Ia64_Ucontext
3882 */
3883 static const char* apzLinux_Ia64_UcontextPatch[] = {
3884 "format",
3885 "__builtin_offsetof (struct sigcontext, sc_gr[0])",
3886 (char*)NULL };
3887
3888 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3889 *
3890 * Description of Lynxos_No_Warning_In_Sys_Time_H fix
3891 */
3892 tSCC zLynxos_No_Warning_In_Sys_Time_HName[] =
3893 "lynxos_no_warning_in_sys_time_h";
3894
3895 /*
3896 * File name selection pattern
3897 */
3898 tSCC zLynxos_No_Warning_In_Sys_Time_HList[] =
3899 "|sys/time.h|";
3900 /*
3901 * Machine/OS name selection pattern
3902 */
3903 #define apzLynxos_No_Warning_In_Sys_Time_HMachs (const char**)NULL
3904
3905 /*
3906 * content selection pattern - do fix if pattern found
3907 */
3908 tSCC zLynxos_No_Warning_In_Sys_Time_HSelect0[] =
3909 "#warning[ \t]+Using <time.h> instead of <sys/time.h>";
3910
3911 #define LYNXOS_NO_WARNING_IN_SYS_TIME_H_TEST_CT 1
3912 static tTestDesc aLynxos_No_Warning_In_Sys_Time_HTests[] = {
3913 { TT_EGREP, zLynxos_No_Warning_In_Sys_Time_HSelect0, (regex_t*)NULL }, };
3914
3915 /*
3916 * Fix Command Arguments for Lynxos_No_Warning_In_Sys_Time_H
3917 */
3918 static const char* apzLynxos_No_Warning_In_Sys_Time_HPatch[] = {
3919 "format",
3920 "",
3921 (char*)NULL };
3922
3923 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3924 *
3925 * Description of Lynxos_Missing_Putenv fix
3926 */
3927 tSCC zLynxos_Missing_PutenvName[] =
3928 "lynxos_missing_putenv";
3929
3930 /*
3931 * File name selection pattern
3932 */
3933 tSCC zLynxos_Missing_PutenvList[] =
3934 "|stdlib.h|";
3935 /*
3936 * Machine/OS name selection pattern
3937 */
3938 tSCC* apzLynxos_Missing_PutenvMachs[] = {
3939 "*-*-lynxos*",
3940 (const char*)NULL };
3941
3942 /*
3943 * content selection pattern - do fix if pattern found
3944 */
3945 tSCC zLynxos_Missing_PutenvSelect0[] =
3946 "extern char \\*getenv[ \t]*_AP\\(\\(const char \\*\\)\\);";
3947
3948 /*
3949 * content bypass pattern - skip fix if pattern found
3950 */
3951 tSCC zLynxos_Missing_PutenvBypass0[] =
3952 "putenv[ \\t]*\\(";
3953
3954 #define LYNXOS_MISSING_PUTENV_TEST_CT 2
3955 static tTestDesc aLynxos_Missing_PutenvTests[] = {
3956 { TT_NEGREP, zLynxos_Missing_PutenvBypass0, (regex_t*)NULL },
3957 { TT_EGREP, zLynxos_Missing_PutenvSelect0, (regex_t*)NULL }, };
3958
3959 /*
3960 * Fix Command Arguments for Lynxos_Missing_Putenv
3961 */
3962 static const char* apzLynxos_Missing_PutenvPatch[] = {
3963 "format",
3964 "%0\n\
3965 extern int putenv\t\t\t\t_AP((char *));",
3966 "extern char \\*getenv[ \t]*_AP\\(\\(const char \\*\\)\\);",
3967 (char*)NULL };
3968
3969 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3970 *
3971 * Description of Machine_Ansi_H_Va_List fix
3972 */
3973 tSCC zMachine_Ansi_H_Va_ListName[] =
3974 "machine_ansi_h_va_list";
3975
3976 /*
3977 * File name selection pattern
3978 */
3979 #define zMachine_Ansi_H_Va_ListList (char*)NULL
3980 /*
3981 * Machine/OS name selection pattern
3982 */
3983 #define apzMachine_Ansi_H_Va_ListMachs (const char**)NULL
3984
3985 /*
3986 * content selection pattern - do fix if pattern found
3987 */
3988 tSCC zMachine_Ansi_H_Va_ListSelect0[] =
3989 "define[ \t]+_BSD_VA_LIST_[ \t]";
3990
3991 /*
3992 * content bypass pattern - skip fix if pattern found
3993 */
3994 tSCC zMachine_Ansi_H_Va_ListBypass0[] =
3995 "__builtin_va_list";
3996
3997 #define MACHINE_ANSI_H_VA_LIST_TEST_CT 2
3998 static tTestDesc aMachine_Ansi_H_Va_ListTests[] = {
3999 { TT_NEGREP, zMachine_Ansi_H_Va_ListBypass0, (regex_t*)NULL },
4000 { TT_EGREP, zMachine_Ansi_H_Va_ListSelect0, (regex_t*)NULL }, };
4001
4002 /*
4003 * Fix Command Arguments for Machine_Ansi_H_Va_List
4004 */
4005 static const char* apzMachine_Ansi_H_Va_ListPatch[] = {
4006 "format",
4007 "%1__builtin_va_list",
4008 "(define[ \t]+_BSD_VA_LIST_[ \t]+).*",
4009 (char*)NULL };
4010
4011 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4012 *
4013 * Description of Machine_Name fix
4014 */
4015 tSCC zMachine_NameName[] =
4016 "machine_name";
4017
4018 /*
4019 * File name selection pattern
4020 */
4021 #define zMachine_NameList (char*)NULL
4022 /*
4023 * Machine/OS name selection pattern
4024 */
4025 #define apzMachine_NameMachs (const char**)NULL
4026
4027 /*
4028 * perform the C function call test
4029 */
4030 tSCC zMachine_NameFTst0[] = "machine_name";
4031
4032 #define MACHINE_NAME_TEST_CT 1
4033 static tTestDesc aMachine_NameTests[] = {
4034 { TT_FUNCTION, zMachine_NameFTst0, 0 /* unused */ }, };
4035
4036 /*
4037 * Fix Command Arguments for Machine_Name
4038 */
4039 static const char* apzMachine_NamePatch[] = {
4040 "machine_name",
4041 (char*)NULL };
4042
4043 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4044 *
4045 * Description of Math_Exception fix
4046 */
4047 tSCC zMath_ExceptionName[] =
4048 "math_exception";
4049
4050 /*
4051 * File name selection pattern
4052 */
4053 tSCC zMath_ExceptionList[] =
4054 "|math.h|";
4055 /*
4056 * Machine/OS name selection pattern
4057 */
4058 #define apzMath_ExceptionMachs (const char**)NULL
4059
4060 /*
4061 * content selection pattern - do fix if pattern found
4062 */
4063 tSCC zMath_ExceptionSelect0[] =
4064 "struct exception";
4065
4066 /*
4067 * content bypass pattern - skip fix if pattern found
4068 */
4069 tSCC zMath_ExceptionBypass0[] =
4070 "We have a problem when using C\\+\\+|for C\\+\\+, _[a-z0-9A-Z_]+_exception; for C, exception";
4071
4072 #define MATH_EXCEPTION_TEST_CT 2
4073 static tTestDesc aMath_ExceptionTests[] = {
4074 { TT_NEGREP, zMath_ExceptionBypass0, (regex_t*)NULL },
4075 { TT_EGREP, zMath_ExceptionSelect0, (regex_t*)NULL }, };
4076
4077 /*
4078 * Fix Command Arguments for Math_Exception
4079 */
4080 static const char* apzMath_ExceptionPatch[] = {
4081 "wrap",
4082 "#ifdef __cplusplus\n\
4083 #define exception __math_exception\n\
4084 #endif\n",
4085 "#ifdef __cplusplus\n\
4086 #undef exception\n\
4087 #endif\n",
4088 (char*)NULL };
4089
4090 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4091 *
4092 * Description of Math_Huge_Val_From_Dbl_Max fix
4093 */
4094 tSCC zMath_Huge_Val_From_Dbl_MaxName[] =
4095 "math_huge_val_from_dbl_max";
4096
4097 /*
4098 * File name selection pattern
4099 */
4100 tSCC zMath_Huge_Val_From_Dbl_MaxList[] =
4101 "|math.h|";
4102 /*
4103 * Machine/OS name selection pattern
4104 */
4105 #define apzMath_Huge_Val_From_Dbl_MaxMachs (const char**)NULL
4106
4107 /*
4108 * content selection pattern - do fix if pattern found
4109 */
4110 tSCC zMath_Huge_Val_From_Dbl_MaxSelect0[] =
4111 "define[ \t]+HUGE_VAL[ \t]+DBL_MAX";
4112
4113 /*
4114 * content bypass pattern - skip fix if pattern found
4115 */
4116 tSCC zMath_Huge_Val_From_Dbl_MaxBypass0[] =
4117 "define[ \t]+DBL_MAX";
4118
4119 #define MATH_HUGE_VAL_FROM_DBL_MAX_TEST_CT 2
4120 static tTestDesc aMath_Huge_Val_From_Dbl_MaxTests[] = {
4121 { TT_NEGREP, zMath_Huge_Val_From_Dbl_MaxBypass0, (regex_t*)NULL },
4122 { TT_EGREP, zMath_Huge_Val_From_Dbl_MaxSelect0, (regex_t*)NULL }, };
4123
4124 /*
4125 * Fix Command Arguments for Math_Huge_Val_From_Dbl_Max
4126 */
4127 static const char* apzMath_Huge_Val_From_Dbl_MaxPatch[] = { "sh", "-c",
4128 "\tdbl_max_def=`egrep 'define[ \t]+DBL_MAX[ \t]+.*' float.h | sed 's/.*DBL_MAX[ \t]*//' 2>/dev/null`\n\n\
4129 \tif ( test -n \"${dbl_max_def}\" ) > /dev/null 2>&1\n\
4130 \tthen sed -e '/define[ \t]*HUGE_VAL[ \t]*DBL_MAX/s@DBL_MAX@'\"$dbl_max_def@\"\n\
4131 \telse cat\n\
4132 \tfi",
4133 (char*)NULL };
4134
4135 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4136 *
4137 * Description of Nested_Auth_Des fix
4138 */
4139 tSCC zNested_Auth_DesName[] =
4140 "nested_auth_des";
4141
4142 /*
4143 * File name selection pattern
4144 */
4145 tSCC zNested_Auth_DesList[] =
4146 "|rpc/rpc.h|";
4147 /*
4148 * Machine/OS name selection pattern
4149 */
4150 #define apzNested_Auth_DesMachs (const char**)NULL
4151
4152 /*
4153 * content selection pattern - do fix if pattern found
4154 */
4155 tSCC zNested_Auth_DesSelect0[] =
4156 "(/\\*.*rpc/auth_des\\.h>.*)/\\*";
4157
4158 #define NESTED_AUTH_DES_TEST_CT 1
4159 static tTestDesc aNested_Auth_DesTests[] = {
4160 { TT_EGREP, zNested_Auth_DesSelect0, (regex_t*)NULL }, };
4161
4162 /*
4163 * Fix Command Arguments for Nested_Auth_Des
4164 */
4165 static const char* apzNested_Auth_DesPatch[] = {
4166 "format",
4167 "%1*/ /*",
4168 (char*)NULL };
4169
4170 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4171 *
4172 * Description of Nested_Motorola fix
4173 */
4174 tSCC zNested_MotorolaName[] =
4175 "nested_motorola";
4176
4177 /*
4178 * File name selection pattern
4179 */
4180 tSCC zNested_MotorolaList[] =
4181 "|sys/limits.h|limits.h|";
4182 /*
4183 * Machine/OS name selection pattern
4184 */
4185 tSCC* apzNested_MotorolaMachs[] = {
4186 "m68k-motorola-sysv*",
4187 (const char*)NULL };
4188
4189 /*
4190 * content selection pattern - do fix if pattern found
4191 */
4192 tSCC zNested_MotorolaSelect0[] =
4193 "max # bytes atomic in write|error value returned by Math lib";
4194
4195 #define NESTED_MOTOROLA_TEST_CT 1
4196 static tTestDesc aNested_MotorolaTests[] = {
4197 { TT_EGREP, zNested_MotorolaSelect0, (regex_t*)NULL }, };
4198
4199 /*
4200 * Fix Command Arguments for Nested_Motorola
4201 */
4202 static const char* apzNested_MotorolaPatch[] = { "sed",
4203 "-e", "s@^\\(#undef[ \t][ \t]*PIPE_BUF[ \t]*/\\* max # bytes atomic in write to a\\)$@\\1 */@",
4204 "-e", "s@\\(/\\*#define\tHUGE_VAL\t3.[0-9e+]* \\)\\(/\\*error value returned by Math lib\\*/\\)$@\\1*/ \\2@",
4205 (char*)NULL };
4206
4207 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4208 *
4209 * Description of Nested_Sys_Limits fix
4210 */
4211 tSCC zNested_Sys_LimitsName[] =
4212 "nested_sys_limits";
4213
4214 /*
4215 * File name selection pattern
4216 */
4217 tSCC zNested_Sys_LimitsList[] =
4218 "|sys/limits.h|";
4219 /*
4220 * Machine/OS name selection pattern
4221 */
4222 #define apzNested_Sys_LimitsMachs (const char**)NULL
4223
4224 /*
4225 * content selection pattern - do fix if pattern found
4226 */
4227 tSCC zNested_Sys_LimitsSelect0[] =
4228 "CHILD_MAX";
4229
4230 #define NESTED_SYS_LIMITS_TEST_CT 1
4231 static tTestDesc aNested_Sys_LimitsTests[] = {
4232 { TT_EGREP, zNested_Sys_LimitsSelect0, (regex_t*)NULL }, };
4233
4234 /*
4235 * Fix Command Arguments for Nested_Sys_Limits
4236 */
4237 static const char* apzNested_Sys_LimitsPatch[] = { "sed",
4238 "-e", "/CHILD_MAX/s,/\\* Max, Max,",
4239 "-e", "/OPEN_MAX/s,/\\* Max, Max,",
4240 (char*)NULL };
4241
4242 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4243 *
4244 * Description of Netbsd_Extra_Semicolon fix
4245 */
4246 tSCC zNetbsd_Extra_SemicolonName[] =
4247 "netbsd_extra_semicolon";
4248
4249 /*
4250 * File name selection pattern
4251 */
4252 tSCC zNetbsd_Extra_SemicolonList[] =
4253 "|sys/cdefs.h|";
4254 /*
4255 * Machine/OS name selection pattern
4256 */
4257 tSCC* apzNetbsd_Extra_SemicolonMachs[] = {
4258 "*-*-netbsd*",
4259 (const char*)NULL };
4260
4261 /*
4262 * content selection pattern - do fix if pattern found
4263 */
4264 tSCC zNetbsd_Extra_SemicolonSelect0[] =
4265 "#define[ \t]*__END_DECLS[ \t]*};";
4266
4267 #define NETBSD_EXTRA_SEMICOLON_TEST_CT 1
4268 static tTestDesc aNetbsd_Extra_SemicolonTests[] = {
4269 { TT_EGREP, zNetbsd_Extra_SemicolonSelect0, (regex_t*)NULL }, };
4270
4271 /*
4272 * Fix Command Arguments for Netbsd_Extra_Semicolon
4273 */
4274 static const char* apzNetbsd_Extra_SemicolonPatch[] = {
4275 "format",
4276 "#define __END_DECLS }",
4277 (char*)NULL };
4278
4279 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4280 *
4281 * Description of Next_Math_Prefix fix
4282 */
4283 tSCC zNext_Math_PrefixName[] =
4284 "next_math_prefix";
4285
4286 /*
4287 * File name selection pattern
4288 */
4289 tSCC zNext_Math_PrefixList[] =
4290 "|ansi/math.h|";
4291 /*
4292 * Machine/OS name selection pattern
4293 */
4294 #define apzNext_Math_PrefixMachs (const char**)NULL
4295
4296 /*
4297 * content selection pattern - do fix if pattern found
4298 */
4299 tSCC zNext_Math_PrefixSelect0[] =
4300 "^extern[ \t]+double[ \t]+__const__[ \t]";
4301
4302 #define NEXT_MATH_PREFIX_TEST_CT 1
4303 static tTestDesc aNext_Math_PrefixTests[] = {
4304 { TT_EGREP, zNext_Math_PrefixSelect0, (regex_t*)NULL }, };
4305
4306 /*
4307 * Fix Command Arguments for Next_Math_Prefix
4308 */
4309 static const char* apzNext_Math_PrefixPatch[] = {
4310 "format",
4311 "extern double %1(",
4312 "^extern[ \t]+double[ \t]+__const__[ \t]+([a-z]+)\\(",
4313 (char*)NULL };
4314
4315 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4316 *
4317 * Description of Next_Template fix
4318 */
4319 tSCC zNext_TemplateName[] =
4320 "next_template";
4321
4322 /*
4323 * File name selection pattern
4324 */
4325 tSCC zNext_TemplateList[] =
4326 "|bsd/libc.h|";
4327 /*
4328 * Machine/OS name selection pattern
4329 */
4330 #define apzNext_TemplateMachs (const char**)NULL
4331
4332 /*
4333 * content selection pattern - do fix if pattern found
4334 */
4335 tSCC zNext_TemplateSelect0[] =
4336 "[ \t]template\\)";
4337
4338 #define NEXT_TEMPLATE_TEST_CT 1
4339 static tTestDesc aNext_TemplateTests[] = {
4340 { TT_EGREP, zNext_TemplateSelect0, (regex_t*)NULL }, };
4341
4342 /*
4343 * Fix Command Arguments for Next_Template
4344 */
4345 static const char* apzNext_TemplatePatch[] = {
4346 "format",
4347 "(%1)",
4348 "\\(([^)]*)[ \t]template\\)",
4349 (char*)NULL };
4350
4351 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4352 *
4353 * Description of Next_Volitile fix
4354 */
4355 tSCC zNext_VolitileName[] =
4356 "next_volitile";
4357
4358 /*
4359 * File name selection pattern
4360 */
4361 tSCC zNext_VolitileList[] =
4362 "|ansi/stdlib.h|";
4363 /*
4364 * Machine/OS name selection pattern
4365 */
4366 #define apzNext_VolitileMachs (const char**)NULL
4367
4368 /*
4369 * content selection pattern - do fix if pattern found
4370 */
4371 tSCC zNext_VolitileSelect0[] =
4372 "^extern[ \t]+volatile[ \t]+void[ \t]";
4373
4374 #define NEXT_VOLITILE_TEST_CT 1
4375 static tTestDesc aNext_VolitileTests[] = {
4376 { TT_EGREP, zNext_VolitileSelect0, (regex_t*)NULL }, };
4377
4378 /*
4379 * Fix Command Arguments for Next_Volitile
4380 */
4381 static const char* apzNext_VolitilePatch[] = {
4382 "format",
4383 "extern void %1(",
4384 "^extern[ \t]+volatile[ \t]+void[ \t]+(exit|abort)\\(",
4385 (char*)NULL };
4386
4387 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4388 *
4389 * Description of Next_Wait_Union fix
4390 */
4391 tSCC zNext_Wait_UnionName[] =
4392 "next_wait_union";
4393
4394 /*
4395 * File name selection pattern
4396 */
4397 tSCC zNext_Wait_UnionList[] =
4398 "|sys/wait.h|";
4399 /*
4400 * Machine/OS name selection pattern
4401 */
4402 #define apzNext_Wait_UnionMachs (const char**)NULL
4403
4404 /*
4405 * content selection pattern - do fix if pattern found
4406 */
4407 tSCC zNext_Wait_UnionSelect0[] =
4408 "wait\\(union wait";
4409
4410 #define NEXT_WAIT_UNION_TEST_CT 1
4411 static tTestDesc aNext_Wait_UnionTests[] = {
4412 { TT_EGREP, zNext_Wait_UnionSelect0, (regex_t*)NULL }, };
4413
4414 /*
4415 * Fix Command Arguments for Next_Wait_Union
4416 */
4417 static const char* apzNext_Wait_UnionPatch[] = {
4418 "format",
4419 "wait(void",
4420 (char*)NULL };
4421
4422 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4423 *
4424 * Description of Nodeent_Syntax fix
4425 */
4426 tSCC zNodeent_SyntaxName[] =
4427 "nodeent_syntax";
4428
4429 /*
4430 * File name selection pattern
4431 */
4432 tSCC zNodeent_SyntaxList[] =
4433 "|netdnet/dnetdb.h|";
4434 /*
4435 * Machine/OS name selection pattern
4436 */
4437 #define apzNodeent_SyntaxMachs (const char**)NULL
4438
4439 /*
4440 * content selection pattern - do fix if pattern found
4441 */
4442 tSCC zNodeent_SyntaxSelect0[] =
4443 "char[ \t]*\\*na_addr[ \t]*$";
4444
4445 #define NODEENT_SYNTAX_TEST_CT 1
4446 static tTestDesc aNodeent_SyntaxTests[] = {
4447 { TT_EGREP, zNodeent_SyntaxSelect0, (regex_t*)NULL }, };
4448
4449 /*
4450 * Fix Command Arguments for Nodeent_Syntax
4451 */
4452 static const char* apzNodeent_SyntaxPatch[] = {
4453 "format",
4454 "%0;",
4455 (char*)NULL };
4456
4457 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4458 *
4459 * Description of Obstack_Lvalue_Cast fix
4460 */
4461 tSCC zObstack_Lvalue_CastName[] =
4462 "obstack_lvalue_cast";
4463
4464 /*
4465 * File name selection pattern
4466 */
4467 tSCC zObstack_Lvalue_CastList[] =
4468 "|obstack.h|";
4469 /*
4470 * Machine/OS name selection pattern
4471 */
4472 #define apzObstack_Lvalue_CastMachs (const char**)NULL
4473
4474 /*
4475 * content selection pattern - do fix if pattern found
4476 */
4477 tSCC zObstack_Lvalue_CastSelect0[] =
4478 "\\*\\(\\(([^()]*)\\*\\)(.*)\\)\\+\\+ = \\(([^()]*)\\)";
4479
4480 #define OBSTACK_LVALUE_CAST_TEST_CT 1
4481 static tTestDesc aObstack_Lvalue_CastTests[] = {
4482 { TT_EGREP, zObstack_Lvalue_CastSelect0, (regex_t*)NULL }, };
4483
4484 /*
4485 * Fix Command Arguments for Obstack_Lvalue_Cast
4486 */
4487 static const char* apzObstack_Lvalue_CastPatch[] = {
4488 "format",
4489 "((*((%1*)%2) = (%3)), (%2 += sizeof (%1)))",
4490 (char*)NULL };
4491
4492 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4493 *
4494 * Description of Osf_Namespace_A fix
4495 */
4496 tSCC zOsf_Namespace_AName[] =
4497 "osf_namespace_a";
4498
4499 /*
4500 * File name selection pattern
4501 */
4502 tSCC zOsf_Namespace_AList[] =
4503 "|reg_types.h|sys/lc_core.h|";
4504 /*
4505 * Machine/OS name selection pattern
4506 */
4507 #define apzOsf_Namespace_AMachs (const char**)NULL
4508
4509 /*
4510 * perform the 'test' shell command - do fix on success
4511 */
4512 tSCC zOsf_Namespace_ATest0[] =
4513 " -r reg_types.h";
4514 tSCC zOsf_Namespace_ATest1[] =
4515 " -r sys/lc_core.h";
4516 tSCC zOsf_Namespace_ATest2[] =
4517 " -n \"`grep '} regex_t;' reg_types.h`\"";
4518 tSCC zOsf_Namespace_ATest3[] =
4519 " -z \"`grep __regex_t regex.h`\"";
4520
4521 #define OSF_NAMESPACE_A_TEST_CT 4
4522 static tTestDesc aOsf_Namespace_ATests[] = {
4523 { TT_TEST, zOsf_Namespace_ATest0, 0 /* unused */ },
4524 { TT_TEST, zOsf_Namespace_ATest1, 0 /* unused */ },
4525 { TT_TEST, zOsf_Namespace_ATest2, 0 /* unused */ },
4526 { TT_TEST, zOsf_Namespace_ATest3, 0 /* unused */ }, };
4527
4528 /*
4529 * Fix Command Arguments for Osf_Namespace_A
4530 */
4531 static const char* apzOsf_Namespace_APatch[] = {
4532 "format",
4533 "__%0",
4534 "reg(ex|off|match)_t",
4535 (char*)NULL };
4536
4537 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4538 *
4539 * Description of Osf_Namespace_C fix
4540 */
4541 tSCC zOsf_Namespace_CName[] =
4542 "osf_namespace_c";
4543
4544 /*
4545 * File name selection pattern
4546 */
4547 tSCC zOsf_Namespace_CList[] =
4548 "|regex.h|";
4549 /*
4550 * Machine/OS name selection pattern
4551 */
4552 #define apzOsf_Namespace_CMachs (const char**)NULL
4553
4554 /*
4555 * content selection pattern - do fix if pattern found
4556 */
4557 tSCC zOsf_Namespace_CSelect0[] =
4558 "#include <reg_types.h>.*";
4559
4560 /*
4561 * perform the 'test' shell command - do fix on success
4562 */
4563 tSCC zOsf_Namespace_CTest0[] =
4564 " -r reg_types.h";
4565 tSCC zOsf_Namespace_CTest1[] =
4566 " -r sys/lc_core.h";
4567 tSCC zOsf_Namespace_CTest2[] =
4568 " -n \"`grep '} regex_t;' reg_types.h`\"";
4569 tSCC zOsf_Namespace_CTest3[] =
4570 " -z \"`grep __regex_t regex.h`\"";
4571
4572 #define OSF_NAMESPACE_C_TEST_CT 5
4573 static tTestDesc aOsf_Namespace_CTests[] = {
4574 { TT_TEST, zOsf_Namespace_CTest0, 0 /* unused */ },
4575 { TT_TEST, zOsf_Namespace_CTest1, 0 /* unused */ },
4576 { TT_TEST, zOsf_Namespace_CTest2, 0 /* unused */ },
4577 { TT_TEST, zOsf_Namespace_CTest3, 0 /* unused */ },
4578 { TT_EGREP, zOsf_Namespace_CSelect0, (regex_t*)NULL }, };
4579
4580 /*
4581 * Fix Command Arguments for Osf_Namespace_C
4582 */
4583 static const char* apzOsf_Namespace_CPatch[] = {
4584 "format",
4585 "%0\n\
4586 typedef __regex_t\tregex_t;\n\
4587 typedef __regoff_t\tregoff_t;\n\
4588 typedef __regmatch_t\tregmatch_t;",
4589 (char*)NULL };
4590
4591 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4592 *
4593 * Description of Pthread_Page_Size fix
4594 */
4595 tSCC zPthread_Page_SizeName[] =
4596 "pthread_page_size";
4597
4598 /*
4599 * File name selection pattern
4600 */
4601 tSCC zPthread_Page_SizeList[] =
4602 "|pthread.h|";
4603 /*
4604 * Machine/OS name selection pattern
4605 */
4606 #define apzPthread_Page_SizeMachs (const char**)NULL
4607
4608 /*
4609 * content selection pattern - do fix if pattern found
4610 */
4611 tSCC zPthread_Page_SizeSelect0[] =
4612 "^int __page_size";
4613
4614 #define PTHREAD_PAGE_SIZE_TEST_CT 1
4615 static tTestDesc aPthread_Page_SizeTests[] = {
4616 { TT_EGREP, zPthread_Page_SizeSelect0, (regex_t*)NULL }, };
4617
4618 /*
4619 * Fix Command Arguments for Pthread_Page_Size
4620 */
4621 static const char* apzPthread_Page_SizePatch[] = {
4622 "format",
4623 "extern %0",
4624 (char*)NULL };
4625
4626 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4627 *
4628 * Description of Pthread_Incomplete_Struct_Argument fix
4629 */
4630 tSCC zPthread_Incomplete_Struct_ArgumentName[] =
4631 "pthread_incomplete_struct_argument";
4632
4633 /*
4634 * File name selection pattern
4635 */
4636 tSCC zPthread_Incomplete_Struct_ArgumentList[] =
4637 "|pthread.h|";
4638 /*
4639 * Machine/OS name selection pattern
4640 */
4641 #define apzPthread_Incomplete_Struct_ArgumentMachs (const char**)NULL
4642
4643 /*
4644 * content selection pattern - do fix if pattern found
4645 */
4646 tSCC zPthread_Incomplete_Struct_ArgumentSelect0[] =
4647 "struct __jmp_buf_tag";
4648
4649 #define PTHREAD_INCOMPLETE_STRUCT_ARGUMENT_TEST_CT 1
4650 static tTestDesc aPthread_Incomplete_Struct_ArgumentTests[] = {
4651 { TT_EGREP, zPthread_Incomplete_Struct_ArgumentSelect0, (regex_t*)NULL }, };
4652
4653 /*
4654 * Fix Command Arguments for Pthread_Incomplete_Struct_Argument
4655 */
4656 static const char* apzPthread_Incomplete_Struct_ArgumentPatch[] = {
4657 "format",
4658 "%1 *%2%3",
4659 "^(extern int __sigsetjmp \\(struct __jmp_buf_tag) (__env)\\[1\\](.*)$",
4660 (char*)NULL };
4661
4662 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4663 *
4664 * Description of Read_Ret_Type fix
4665 */
4666 tSCC zRead_Ret_TypeName[] =
4667 "read_ret_type";
4668
4669 /*
4670 * File name selection pattern
4671 */
4672 tSCC zRead_Ret_TypeList[] =
4673 "|stdio.h|";
4674 /*
4675 * Machine/OS name selection pattern
4676 */
4677 #define apzRead_Ret_TypeMachs (const char**)NULL
4678
4679 /*
4680 * content selection pattern - do fix if pattern found
4681 */
4682 tSCC zRead_Ret_TypeSelect0[] =
4683 "extern int\t.*, fread\\(\\), fwrite\\(\\)";
4684
4685 #define READ_RET_TYPE_TEST_CT 1
4686 static tTestDesc aRead_Ret_TypeTests[] = {
4687 { TT_EGREP, zRead_Ret_TypeSelect0, (regex_t*)NULL }, };
4688
4689 /*
4690 * Fix Command Arguments for Read_Ret_Type
4691 */
4692 static const char* apzRead_Ret_TypePatch[] = {
4693 "format",
4694 "extern unsigned int fread(), fwrite();\n\
4695 %1%2",
4696 "(extern int\t.*), fread\\(\\), fwrite\\(\\)(.*)",
4697 (char*)NULL };
4698
4699 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4700 *
4701 * Description of Rpc_Xdr_Lvalue_Cast_A fix
4702 */
4703 tSCC zRpc_Xdr_Lvalue_Cast_AName[] =
4704 "rpc_xdr_lvalue_cast_a";
4705
4706 /*
4707 * File name selection pattern
4708 */
4709 tSCC zRpc_Xdr_Lvalue_Cast_AList[] =
4710 "|rpc/xdr.h|";
4711 /*
4712 * Machine/OS name selection pattern
4713 */
4714 #define apzRpc_Xdr_Lvalue_Cast_AMachs (const char**)NULL
4715
4716 /*
4717 * content selection pattern - do fix if pattern found
4718 */
4719 tSCC zRpc_Xdr_Lvalue_Cast_ASelect0[] =
4720 "#define[ \t]*IXDR_GET_LONG.*\\\\\n\
4721 .*__extension__.*";
4722
4723 #define RPC_XDR_LVALUE_CAST_A_TEST_CT 1
4724 static tTestDesc aRpc_Xdr_Lvalue_Cast_ATests[] = {
4725 { TT_EGREP, zRpc_Xdr_Lvalue_Cast_ASelect0, (regex_t*)NULL }, };
4726
4727 /*
4728 * Fix Command Arguments for Rpc_Xdr_Lvalue_Cast_A
4729 */
4730 static const char* apzRpc_Xdr_Lvalue_Cast_APatch[] = {
4731 "format",
4732 "#define IXDR_GET_LONG(buf) ((long)IXDR_GET_U_INT32(buf))",
4733 (char*)NULL };
4734
4735 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4736 *
4737 * Description of Rpc_Xdr_Lvalue_Cast_B fix
4738 */
4739 tSCC zRpc_Xdr_Lvalue_Cast_BName[] =
4740 "rpc_xdr_lvalue_cast_b";
4741
4742 /*
4743 * File name selection pattern
4744 */
4745 tSCC zRpc_Xdr_Lvalue_Cast_BList[] =
4746 "|rpc/xdr.h|";
4747 /*
4748 * Machine/OS name selection pattern
4749 */
4750 #define apzRpc_Xdr_Lvalue_Cast_BMachs (const char**)NULL
4751
4752 /*
4753 * content selection pattern - do fix if pattern found
4754 */
4755 tSCC zRpc_Xdr_Lvalue_Cast_BSelect0[] =
4756 "#define[ \t]*IXDR_PUT_LONG.*\\\\\n\
4757 .*__extension__.*";
4758
4759 #define RPC_XDR_LVALUE_CAST_B_TEST_CT 1
4760 static tTestDesc aRpc_Xdr_Lvalue_Cast_BTests[] = {
4761 { TT_EGREP, zRpc_Xdr_Lvalue_Cast_BSelect0, (regex_t*)NULL }, };
4762
4763 /*
4764 * Fix Command Arguments for Rpc_Xdr_Lvalue_Cast_B
4765 */
4766 static const char* apzRpc_Xdr_Lvalue_Cast_BPatch[] = {
4767 "format",
4768 "#define IXDR_PUT_LONG(buf, v) ((long)IXDR_PUT_INT32(buf, (long)(v)))",
4769 (char*)NULL };
4770
4771 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4772 *
4773 * Description of Rs6000_Double fix
4774 */
4775 tSCC zRs6000_DoubleName[] =
4776 "rs6000_double";
4777
4778 /*
4779 * File name selection pattern
4780 */
4781 tSCC zRs6000_DoubleList[] =
4782 "|math.h|";
4783 /*
4784 * Machine/OS name selection pattern
4785 */
4786 #define apzRs6000_DoubleMachs (const char**)NULL
4787
4788 /*
4789 * content selection pattern - do fix if pattern found
4790 */
4791 tSCC zRs6000_DoubleSelect0[] =
4792 "[^a-zA-Z_]class\\(";
4793
4794 #define RS6000_DOUBLE_TEST_CT 1
4795 static tTestDesc aRs6000_DoubleTests[] = {
4796 { TT_EGREP, zRs6000_DoubleSelect0, (regex_t*)NULL }, };
4797
4798 /*
4799 * Fix Command Arguments for Rs6000_Double
4800 */
4801 static const char* apzRs6000_DoublePatch[] = {
4802 "format",
4803 "#ifndef __cplusplus\n\
4804 %0\n\
4805 #endif",
4806 "^.*[^a-zA-Z_]class\\(.*",
4807 (char*)NULL };
4808
4809 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4810 *
4811 * Description of Rs6000_Fchmod fix
4812 */
4813 tSCC zRs6000_FchmodName[] =
4814 "rs6000_fchmod";
4815
4816 /*
4817 * File name selection pattern
4818 */
4819 tSCC zRs6000_FchmodList[] =
4820 "|sys/stat.h|";
4821 /*
4822 * Machine/OS name selection pattern
4823 */
4824 #define apzRs6000_FchmodMachs (const char**)NULL
4825
4826 /*
4827 * content selection pattern - do fix if pattern found
4828 */
4829 tSCC zRs6000_FchmodSelect0[] =
4830 "fchmod\\(char \\*";
4831
4832 #define RS6000_FCHMOD_TEST_CT 1
4833 static tTestDesc aRs6000_FchmodTests[] = {
4834 { TT_EGREP, zRs6000_FchmodSelect0, (regex_t*)NULL }, };
4835
4836 /*
4837 * Fix Command Arguments for Rs6000_Fchmod
4838 */
4839 static const char* apzRs6000_FchmodPatch[] = {
4840 "format",
4841 "fchmod(int",
4842 (char*)NULL };
4843
4844 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4845 *
4846 * Description of Rs6000_Param fix
4847 */
4848 tSCC zRs6000_ParamName[] =
4849 "rs6000_param";
4850
4851 /*
4852 * File name selection pattern
4853 */
4854 tSCC zRs6000_ParamList[] =
4855 "|stdio.h|unistd.h|";
4856 /*
4857 * Machine/OS name selection pattern
4858 */
4859 #define apzRs6000_ParamMachs (const char**)NULL
4860
4861 /*
4862 * content selection pattern - do fix if pattern found
4863 */
4864 tSCC zRs6000_ParamSelect0[] =
4865 "rename\\(const char \\*old, const char \\*new\\)";
4866
4867 #define RS6000_PARAM_TEST_CT 1
4868 static tTestDesc aRs6000_ParamTests[] = {
4869 { TT_EGREP, zRs6000_ParamSelect0, (regex_t*)NULL }, };
4870
4871 /*
4872 * Fix Command Arguments for Rs6000_Param
4873 */
4874 static const char* apzRs6000_ParamPatch[] = {
4875 "format",
4876 "rename(const char *_old, const char *_new)",
4877 (char*)NULL };
4878
4879 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4880 *
4881 * Description of Sco_Math fix
4882 */
4883 tSCC zSco_MathName[] =
4884 "sco_math";
4885
4886 /*
4887 * File name selection pattern
4888 */
4889 tSCC zSco_MathList[] =
4890 "|math.h|ansi/math.h|posix/math.h|xpg4/math.h|xpg4v2/math.h|xpg4plus/math.h|ods_30_compat/math.h|oldstyle/math.h|";
4891 /*
4892 * Machine/OS name selection pattern
4893 */
4894 #define apzSco_MathMachs (const char**)NULL
4895
4896 /*
4897 * content selection pattern - do fix if pattern found
4898 */
4899 tSCC zSco_MathSelect0[] =
4900 "inline double abs";
4901
4902 /*
4903 * content bypass pattern - skip fix if pattern found
4904 */
4905 tSCC zSco_MathBypass0[] =
4906 "__GNUG__";
4907
4908 #define SCO_MATH_TEST_CT 2
4909 static tTestDesc aSco_MathTests[] = {
4910 { TT_NEGREP, zSco_MathBypass0, (regex_t*)NULL },
4911 { TT_EGREP, zSco_MathSelect0, (regex_t*)NULL }, };
4912
4913 /*
4914 * Fix Command Arguments for Sco_Math
4915 */
4916 static const char* apzSco_MathPatch[] = { "sed",
4917 "-e", "/#define.*__fp_class(a) \\\\/i\\\n\
4918 #ifndef __GNUC__\n",
4919 "-e", "/.*__builtin_generic/a\\\n\
4920 #else\\\n\
4921 #define __fp_class(a) \\\\\\\n\
4922 __builtin_choose_expr(__builtin_types_compatible_p(typeof(a),long double),\\\\\\\n\
4923 __fpclassifyl(a), \\\\\\\n\
4924 __builtin_choose_expr(__builtin_types_compatible_p(typeof(a), float), \\\\\\\n\
4925 __fpclassifyf(a),__fpclassify(a)))\\\n\
4926 #endif",
4927 "-e", "/extern \"C\\+\\+\"/N;/inline double abs/i\\\n\
4928 #ifndef __GNUC__\n",
4929 "-e", "/inline long double trunc/N;/inline long double trunc.*}.*extern \"C\\+\\+\"/a\\\n\
4930 #endif /* ! __GNUC__ */",
4931 (char*)NULL };
4932
4933 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4934 *
4935 * Description of Sco_Regset fix
4936 */
4937 tSCC zSco_RegsetName[] =
4938 "sco_regset";
4939
4940 /*
4941 * File name selection pattern
4942 */
4943 tSCC zSco_RegsetList[] =
4944 "|sys/regset.h|";
4945 /*
4946 * Machine/OS name selection pattern
4947 */
4948 tSCC* apzSco_RegsetMachs[] = {
4949 "*-*-sco3.2v5*",
4950 (const char*)NULL };
4951
4952 /*
4953 * content selection pattern - do fix if pattern found
4954 */
4955 tSCC zSco_RegsetSelect0[] =
4956 "(struct[ \t]+.*)fpstate";
4957
4958 #define SCO_REGSET_TEST_CT 1
4959 static tTestDesc aSco_RegsetTests[] = {
4960 { TT_EGREP, zSco_RegsetSelect0, (regex_t*)NULL }, };
4961
4962 /*
4963 * Fix Command Arguments for Sco_Regset
4964 */
4965 static const char* apzSco_RegsetPatch[] = {
4966 "format",
4967 "%1rsfpstate",
4968 (char*)NULL };
4969
4970 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4971 *
4972 * Description of Sco_Static_Func fix
4973 */
4974 tSCC zSco_Static_FuncName[] =
4975 "sco_static_func";
4976
4977 /*
4978 * File name selection pattern
4979 */
4980 tSCC zSco_Static_FuncList[] =
4981 "|sys/stat.h|";
4982 /*
4983 * Machine/OS name selection pattern
4984 */
4985 tSCC* apzSco_Static_FuncMachs[] = {
4986 "i?86-*-sco3.2*",
4987 (const char*)NULL };
4988
4989 /*
4990 * content selection pattern - do fix if pattern found
4991 */
4992 tSCC zSco_Static_FuncSelect0[] =
4993 "^static int";
4994
4995 #define SCO_STATIC_FUNC_TEST_CT 1
4996 static tTestDesc aSco_Static_FuncTests[] = {
4997 { TT_EGREP, zSco_Static_FuncSelect0, (regex_t*)NULL }, };
4998
4999 /*
5000 * Fix Command Arguments for Sco_Static_Func
5001 */
5002 static const char* apzSco_Static_FuncPatch[] = { "sed",
5003 "-e", "/^static int/i\\\n\
5004 #if __cplusplus\\\n\
5005 extern \"C\" {\\\n\
5006 #endif /* __cplusplus */",
5007 "-e", "/^}$/a\\\n\
5008 #if __cplusplus\\\n\
5009 }\\\n\
5010 #endif /* __cplusplus */",
5011 (char*)NULL };
5012
5013 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5014 *
5015 * Description of Sco_Utime fix
5016 */
5017 tSCC zSco_UtimeName[] =
5018 "sco_utime";
5019
5020 /*
5021 * File name selection pattern
5022 */
5023 tSCC zSco_UtimeList[] =
5024 "|sys/times.h|";
5025 /*
5026 * Machine/OS name selection pattern
5027 */
5028 tSCC* apzSco_UtimeMachs[] = {
5029 "i?86-*-sco3.2v4*",
5030 (const char*)NULL };
5031
5032 /*
5033 * content selection pattern - do fix if pattern found
5034 */
5035 tSCC zSco_UtimeSelect0[] =
5036 "\\(const char \\*, struct utimbuf \\*\\);";
5037
5038 #define SCO_UTIME_TEST_CT 1
5039 static tTestDesc aSco_UtimeTests[] = {
5040 { TT_EGREP, zSco_UtimeSelect0, (regex_t*)NULL }, };
5041
5042 /*
5043 * Fix Command Arguments for Sco_Utime
5044 */
5045 static const char* apzSco_UtimePatch[] = {
5046 "format",
5047 "(const char *, const struct utimbuf *);",
5048 (char*)NULL };
5049
5050 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5051 *
5052 * Description of Solaris_Math_1 fix
5053 */
5054 tSCC zSolaris_Math_1Name[] =
5055 "solaris_math_1";
5056
5057 /*
5058 * File name selection pattern
5059 */
5060 tSCC zSolaris_Math_1List[] =
5061 "|iso/math_c99.h|";
5062 /*
5063 * Machine/OS name selection pattern
5064 */
5065 #define apzSolaris_Math_1Machs (const char**)NULL
5066
5067 /*
5068 * content selection pattern - do fix if pattern found
5069 */
5070 tSCC zSolaris_Math_1Select0[] =
5071 "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
5072
5073 /*
5074 * content bypass pattern - skip fix if pattern found
5075 */
5076 tSCC zSolaris_Math_1Bypass0[] =
5077 "__GNUC__";
5078
5079 #define SOLARIS_MATH_1_TEST_CT 2
5080 static tTestDesc aSolaris_Math_1Tests[] = {
5081 { TT_NEGREP, zSolaris_Math_1Bypass0, (regex_t*)NULL },
5082 { TT_EGREP, zSolaris_Math_1Select0, (regex_t*)NULL }, };
5083
5084 /*
5085 * Fix Command Arguments for Solaris_Math_1
5086 */
5087 static const char* apzSolaris_Math_1Patch[] = {
5088 "format",
5089 "#define\tHUGE_VA%1\t(__builtin_huge_va%2())",
5090 "^#define[ \t]+HUGE_VA([LF]+)[ \t]+__builtin_huge_va([lf]+)",
5091 (char*)NULL };
5092
5093 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5094 *
5095 * Description of Solaris_Math_2 fix
5096 */
5097 tSCC zSolaris_Math_2Name[] =
5098 "solaris_math_2";
5099
5100 /*
5101 * File name selection pattern
5102 */
5103 tSCC zSolaris_Math_2List[] =
5104 "|iso/math_c99.h|";
5105 /*
5106 * Machine/OS name selection pattern
5107 */
5108 #define apzSolaris_Math_2Machs (const char**)NULL
5109
5110 /*
5111 * content selection pattern - do fix if pattern found
5112 */
5113 tSCC zSolaris_Math_2Select0[] =
5114 "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
5115
5116 /*
5117 * content bypass pattern - skip fix if pattern found
5118 */
5119 tSCC zSolaris_Math_2Bypass0[] =
5120 "__GNUC__";
5121
5122 #define SOLARIS_MATH_2_TEST_CT 2
5123 static tTestDesc aSolaris_Math_2Tests[] = {
5124 { TT_NEGREP, zSolaris_Math_2Bypass0, (regex_t*)NULL },
5125 { TT_EGREP, zSolaris_Math_2Select0, (regex_t*)NULL }, };
5126
5127 /*
5128 * Fix Command Arguments for Solaris_Math_2
5129 */
5130 static const char* apzSolaris_Math_2Patch[] = {
5131 "format",
5132 "#define\tINFINITY\t(__builtin_inff())",
5133 "^#define[ \t]+INFINITY[ \t]+__builtin_infinity",
5134 (char*)NULL };
5135
5136 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5137 *
5138 * Description of Solaris_Math_3 fix
5139 */
5140 tSCC zSolaris_Math_3Name[] =
5141 "solaris_math_3";
5142
5143 /*
5144 * File name selection pattern
5145 */
5146 tSCC zSolaris_Math_3List[] =
5147 "|iso/math_c99.h|";
5148 /*
5149 * Machine/OS name selection pattern
5150 */
5151 #define apzSolaris_Math_3Machs (const char**)NULL
5152
5153 /*
5154 * content selection pattern - do fix if pattern found
5155 */
5156 tSCC zSolaris_Math_3Select0[] =
5157 "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
5158
5159 /*
5160 * content bypass pattern - skip fix if pattern found
5161 */
5162 tSCC zSolaris_Math_3Bypass0[] =
5163 "__GNUC__";
5164
5165 #define SOLARIS_MATH_3_TEST_CT 2
5166 static tTestDesc aSolaris_Math_3Tests[] = {
5167 { TT_NEGREP, zSolaris_Math_3Bypass0, (regex_t*)NULL },
5168 { TT_EGREP, zSolaris_Math_3Select0, (regex_t*)NULL }, };
5169
5170 /*
5171 * Fix Command Arguments for Solaris_Math_3
5172 */
5173 static const char* apzSolaris_Math_3Patch[] = {
5174 "format",
5175 "#define\tNAN\t\t(__builtin_nanf(\"\"))",
5176 "^#define[ \t]+NAN[ \t]+__builtin_nan",
5177 (char*)NULL };
5178
5179 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5180 *
5181 * Description of Solaris_Math_4 fix
5182 */
5183 tSCC zSolaris_Math_4Name[] =
5184 "solaris_math_4";
5185
5186 /*
5187 * File name selection pattern
5188 */
5189 tSCC zSolaris_Math_4List[] =
5190 "|iso/math_c99.h|";
5191 /*
5192 * Machine/OS name selection pattern
5193 */
5194 #define apzSolaris_Math_4Machs (const char**)NULL
5195
5196 /*
5197 * content selection pattern - do fix if pattern found
5198 */
5199 tSCC zSolaris_Math_4Select0[] =
5200 "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
5201
5202 /*
5203 * content bypass pattern - skip fix if pattern found
5204 */
5205 tSCC zSolaris_Math_4Bypass0[] =
5206 "__GNUC__";
5207
5208 #define SOLARIS_MATH_4_TEST_CT 2
5209 static tTestDesc aSolaris_Math_4Tests[] = {
5210 { TT_NEGREP, zSolaris_Math_4Bypass0, (regex_t*)NULL },
5211 { TT_EGREP, zSolaris_Math_4Select0, (regex_t*)NULL }, };
5212
5213 /*
5214 * Fix Command Arguments for Solaris_Math_4
5215 */
5216 static const char* apzSolaris_Math_4Patch[] = {
5217 "format",
5218 "#define\tfpclassify(x) \\\n\
5219 __extension__ ({ __typeof(x) __x_fp = (x); \\\n\
5220 \t\t isnan(__x_fp) \\\n\
5221 \t\t ? FP_NAN \\\n\
5222 \t\t : isinf(__x_fp) \\\n\
5223 \t\t ? FP_INFINITE \\\n\
5224 \t\t : isnormal(__x_fp) \\\n\
5225 \t\t\t ? FP_NORMAL \\\n\
5226 \t\t\t : __x_fp == 0.0 \\\n\
5227 \t\t\t ? FP_ZERO \\\n\
5228 \t\t\t : FP_SUBNORMAL; })",
5229 "^#define[ \t]+fpclassify\\(x\\)[ \t]+__builtin_fpclassify\\(x\\)",
5230 (char*)NULL };
5231
5232 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5233 *
5234 * Description of Solaris_Math_5 fix
5235 */
5236 tSCC zSolaris_Math_5Name[] =
5237 "solaris_math_5";
5238
5239 /*
5240 * File name selection pattern
5241 */
5242 tSCC zSolaris_Math_5List[] =
5243 "|iso/math_c99.h|";
5244 /*
5245 * Machine/OS name selection pattern
5246 */
5247 #define apzSolaris_Math_5Machs (const char**)NULL
5248
5249 /*
5250 * content selection pattern - do fix if pattern found
5251 */
5252 tSCC zSolaris_Math_5Select0[] =
5253 "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
5254
5255 /*
5256 * content bypass pattern - skip fix if pattern found
5257 */
5258 tSCC zSolaris_Math_5Bypass0[] =
5259 "__GNUC__";
5260
5261 #define SOLARIS_MATH_5_TEST_CT 2
5262 static tTestDesc aSolaris_Math_5Tests[] = {
5263 { TT_NEGREP, zSolaris_Math_5Bypass0, (regex_t*)NULL },
5264 { TT_EGREP, zSolaris_Math_5Select0, (regex_t*)NULL }, };
5265
5266 /*
5267 * Fix Command Arguments for Solaris_Math_5
5268 */
5269 static const char* apzSolaris_Math_5Patch[] = {
5270 "format",
5271 "#define\tisfinite(x) \\\n\
5272 __extension__ ({ __typeof (x) __x_f = (x); \\\n\
5273 \t\t __builtin_expect(!isnan(__x_f - __x_f), 1); })",
5274 "^#define[ \t]+isfinite\\(x\\)[ \t]+__builtin_isfinite\\(x\\)",
5275 (char*)NULL };
5276
5277 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5278 *
5279 * Description of Solaris_Math_6 fix
5280 */
5281 tSCC zSolaris_Math_6Name[] =
5282 "solaris_math_6";
5283
5284 /*
5285 * File name selection pattern
5286 */
5287 tSCC zSolaris_Math_6List[] =
5288 "|iso/math_c99.h|";
5289 /*
5290 * Machine/OS name selection pattern
5291 */
5292 #define apzSolaris_Math_6Machs (const char**)NULL
5293
5294 /*
5295 * content selection pattern - do fix if pattern found
5296 */
5297 tSCC zSolaris_Math_6Select0[] =
5298 "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
5299
5300 /*
5301 * content bypass pattern - skip fix if pattern found
5302 */
5303 tSCC zSolaris_Math_6Bypass0[] =
5304 "__GNUC__";
5305
5306 #define SOLARIS_MATH_6_TEST_CT 2
5307 static tTestDesc aSolaris_Math_6Tests[] = {
5308 { TT_NEGREP, zSolaris_Math_6Bypass0, (regex_t*)NULL },
5309 { TT_EGREP, zSolaris_Math_6Select0, (regex_t*)NULL }, };
5310
5311 /*
5312 * Fix Command Arguments for Solaris_Math_6
5313 */
5314 static const char* apzSolaris_Math_6Patch[] = {
5315 "format",
5316 "#define\tisinf(x) \\\n\
5317 __extension__ ({ __typeof (x) __x_i = (x); \\\n\
5318 \t\t __builtin_expect(!isnan(__x_i) && !isfinite(__x_i), 0); })",
5319 "^#define[ \t]+isinf\\(x\\)[ \t]+__builtin_isinf\\(x\\)",
5320 (char*)NULL };
5321
5322 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5323 *
5324 * Description of Solaris_Math_7 fix
5325 */
5326 tSCC zSolaris_Math_7Name[] =
5327 "solaris_math_7";
5328
5329 /*
5330 * File name selection pattern
5331 */
5332 tSCC zSolaris_Math_7List[] =
5333 "|iso/math_c99.h|";
5334 /*
5335 * Machine/OS name selection pattern
5336 */
5337 #define apzSolaris_Math_7Machs (const char**)NULL
5338
5339 /*
5340 * content selection pattern - do fix if pattern found
5341 */
5342 tSCC zSolaris_Math_7Select0[] =
5343 "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
5344
5345 /*
5346 * content bypass pattern - skip fix if pattern found
5347 */
5348 tSCC zSolaris_Math_7Bypass0[] =
5349 "__GNUC__";
5350
5351 #define SOLARIS_MATH_7_TEST_CT 2
5352 static tTestDesc aSolaris_Math_7Tests[] = {
5353 { TT_NEGREP, zSolaris_Math_7Bypass0, (regex_t*)NULL },
5354 { TT_EGREP, zSolaris_Math_7Select0, (regex_t*)NULL }, };
5355
5356 /*
5357 * Fix Command Arguments for Solaris_Math_7
5358 */
5359 static const char* apzSolaris_Math_7Patch[] = {
5360 "format",
5361 "#define\tisnormal(x) \\\n\
5362 __extension__ ({ __typeof(x) __x_n = (x); \\\n\
5363 \t\t if (__x_n < 0.0) __x_n = -__x_n; \\\n\
5364 \t\t __builtin_expect(isfinite(__x_n) \\\n\
5365 \t\t\t\t && (sizeof(__x_n) == sizeof(float) \\\n\
5366 \t\t\t\t\t ? __x_n >= __FLT_MIN__ \\\n\
5367 \t\t\t\t\t : sizeof(__x_n) == sizeof(long double) \\\n\
5368 \t\t\t\t\t ? __x_n >= __LDBL_MIN__ \\\n\
5369 \t\t\t\t\t : __x_n >= __DBL_MIN__), 1); })",
5370 "^#define[ \t]+isnormal\\(x\\)[ \t]+__builtin_isnormal\\(x\\)",
5371 (char*)NULL };
5372
5373 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5374 *
5375 * Description of Solaris_Math_8 fix
5376 */
5377 tSCC zSolaris_Math_8Name[] =
5378 "solaris_math_8";
5379
5380 /*
5381 * File name selection pattern
5382 */
5383 tSCC zSolaris_Math_8List[] =
5384 "|iso/math_c99.h|";
5385 /*
5386 * Machine/OS name selection pattern
5387 */
5388 #define apzSolaris_Math_8Machs (const char**)NULL
5389
5390 /*
5391 * content selection pattern - do fix if pattern found
5392 */
5393 tSCC zSolaris_Math_8Select0[] =
5394 "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
5395
5396 /*
5397 * content bypass pattern - skip fix if pattern found
5398 */
5399 tSCC zSolaris_Math_8Bypass0[] =
5400 "__GNUC__";
5401
5402 #define SOLARIS_MATH_8_TEST_CT 2
5403 static tTestDesc aSolaris_Math_8Tests[] = {
5404 { TT_NEGREP, zSolaris_Math_8Bypass0, (regex_t*)NULL },
5405 { TT_EGREP, zSolaris_Math_8Select0, (regex_t*)NULL }, };
5406
5407 /*
5408 * Fix Command Arguments for Solaris_Math_8
5409 */
5410 static const char* apzSolaris_Math_8Patch[] = {
5411 "format",
5412 "#define\tsignbit(x)\t(sizeof(x) == sizeof(float) \\\n\
5413 \t\t\t ? __builtin_signbitf(x) \\\n\
5414 \t\t\t : sizeof(x) == sizeof(long double) \\\n\
5415 \t\t\t ? __builtin_signbitl(x) \\\n\
5416 \t\t\t : __builtin_signbit(x))",
5417 "^#define[ \t]+signbit\\(x\\)[ \t]+__builtin_signbit\\(x\\)",
5418 (char*)NULL };
5419
5420 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5421 *
5422 * Description of Solaris_Math_9 fix
5423 */
5424 tSCC zSolaris_Math_9Name[] =
5425 "solaris_math_9";
5426
5427 /*
5428 * File name selection pattern
5429 */
5430 tSCC zSolaris_Math_9List[] =
5431 "|iso/math_c99.h|";
5432 /*
5433 * Machine/OS name selection pattern
5434 */
5435 #define apzSolaris_Math_9Machs (const char**)NULL
5436
5437 /*
5438 * content selection pattern - do fix if pattern found
5439 */
5440 tSCC zSolaris_Math_9Select0[] =
5441 "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
5442
5443 /*
5444 * content bypass pattern - skip fix if pattern found
5445 */
5446 tSCC zSolaris_Math_9Bypass0[] =
5447 "__GNUC__";
5448
5449 #define SOLARIS_MATH_9_TEST_CT 2
5450 static tTestDesc aSolaris_Math_9Tests[] = {
5451 { TT_NEGREP, zSolaris_Math_9Bypass0, (regex_t*)NULL },
5452 { TT_EGREP, zSolaris_Math_9Select0, (regex_t*)NULL }, };
5453
5454 /*
5455 * Fix Command Arguments for Solaris_Math_9
5456 */
5457 static const char* apzSolaris_Math_9Patch[] = {
5458 "format",
5459 "#define\t%1(x, y)%2__builtin_%1(x, y)",
5460 "^#define[ \t]+([a-z]+)\\(x, y\\)([ \t]+)\\(\\(x\\) __builtin_[a-z]+\\(y\\)\\)",
5461 (char*)NULL };
5462
5463 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5464 *
5465 * Description of Solaris_Mutex_Init_1 fix
5466 */
5467 tSCC zSolaris_Mutex_Init_1Name[] =
5468 "solaris_mutex_init_1";
5469
5470 /*
5471 * File name selection pattern
5472 */
5473 tSCC zSolaris_Mutex_Init_1List[] =
5474 "|pthread.h|";
5475 /*
5476 * Machine/OS name selection pattern
5477 */
5478 #define apzSolaris_Mutex_Init_1Machs (const char**)NULL
5479
5480 /*
5481 * content selection pattern - do fix if pattern found
5482 */
5483 tSCC zSolaris_Mutex_Init_1Select0[] =
5484 "@\\(#\\)pthread.h[ \t]+1.1[0-9][ \t]+9[567]/[0-9/]+ SMI";
5485
5486 #define SOLARIS_MUTEX_INIT_1_TEST_CT 1
5487 static tTestDesc aSolaris_Mutex_Init_1Tests[] = {
5488 { TT_EGREP, zSolaris_Mutex_Init_1Select0, (regex_t*)NULL }, };
5489
5490 /*
5491 * Fix Command Arguments for Solaris_Mutex_Init_1
5492 */
5493 static const char* apzSolaris_Mutex_Init_1Patch[] = { "sed",
5494 "-e", "/define[ \t]*PTHREAD_MUTEX_INI/s/{0, 0,/{{{0}, 0}, {{{0}}},/\n\
5495 /define[ \t]*PTHREAD_COND_INI/s/{0,/{{{0},0},/",
5496 (char*)NULL };
5497
5498 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5499 *
5500 * Description of Solaris_Mutex_Init_2 fix
5501 */
5502 tSCC zSolaris_Mutex_Init_2Name[] =
5503 "solaris_mutex_init_2";
5504
5505 /*
5506 * File name selection pattern
5507 */
5508 tSCC zSolaris_Mutex_Init_2List[] =
5509 "|pthread.h|";
5510 /*
5511 * Machine/OS name selection pattern
5512 */
5513 tSCC* apzSolaris_Mutex_Init_2Machs[] = {
5514 "*-*-solaris2.[0-9]",
5515 "*-*-solaris2.[0-9][!0-9]*",
5516 (const char*)NULL };
5517
5518 /*
5519 * content selection pattern - do fix if pattern found
5520 */
5521 tSCC zSolaris_Mutex_Init_2Select0[] =
5522 "@\\(#\\)pthread.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
5523
5524 #define SOLARIS_MUTEX_INIT_2_TEST_CT 1
5525 static tTestDesc aSolaris_Mutex_Init_2Tests[] = {
5526 { TT_EGREP, zSolaris_Mutex_Init_2Select0, (regex_t*)NULL }, };
5527
5528 /*
5529 * Fix Command Arguments for Solaris_Mutex_Init_2
5530 */
5531 static const char* apzSolaris_Mutex_Init_2Patch[] = {
5532 "format",
5533 "#if __STDC__ - 0 == 0 && !defined(_NO_LONGLONG)\n\
5534 %0\n\
5535 #else\n\
5536 %1, {0}}%4\n\
5537 #endif",
5538 "(^#define[ \t]+PTHREAD_(MUTEX|COND)_INITIALIZER[ \t]+(|/*.**/[ \t]*\\\\\n\
5539 [ \t]*)\\{.*),[ \t]*0\\}(|[ \t].*)$",
5540 (char*)NULL };
5541
5542 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5543 *
5544 * Description of Solaris_Rwlock_Init_1 fix
5545 */
5546 tSCC zSolaris_Rwlock_Init_1Name[] =
5547 "solaris_rwlock_init_1";
5548
5549 /*
5550 * File name selection pattern
5551 */
5552 tSCC zSolaris_Rwlock_Init_1List[] =
5553 "|pthread.h|";
5554 /*
5555 * Machine/OS name selection pattern
5556 */
5557 tSCC* apzSolaris_Rwlock_Init_1Machs[] = {
5558 "*-*-solaris*",
5559 (const char*)NULL };
5560
5561 /*
5562 * content selection pattern - do fix if pattern found
5563 */
5564 tSCC zSolaris_Rwlock_Init_1Select0[] =
5565 "@\\(#\\)pthread.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
5566
5567 #define SOLARIS_RWLOCK_INIT_1_TEST_CT 1
5568 static tTestDesc aSolaris_Rwlock_Init_1Tests[] = {
5569 { TT_EGREP, zSolaris_Rwlock_Init_1Select0, (regex_t*)NULL }, };
5570
5571 /*
5572 * Fix Command Arguments for Solaris_Rwlock_Init_1
5573 */
5574 static const char* apzSolaris_Rwlock_Init_1Patch[] = {
5575 "format",
5576 "#if __STDC__ - 0 == 0 && !defined(_NO_LONGLONG)\n\
5577 %0\n\
5578 #else\n\
5579 %1{0, 0, 0, {{0}, {0}, {0}}, {{0}, {0}}, {{0}, {0}}}\n\
5580 #endif",
5581 "(^#define[ \t]+PTHREAD_RWLOCK_INITIALIZER[ \t]+)\\{0, 0, 0, \\{0, 0, 0\\}, \\{0, 0\\}, \\{0, 0\\}\\}[ \t]*$",
5582 (char*)NULL };
5583
5584 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5585 *
5586 * Description of Solaris_Once_Init_1 fix
5587 */
5588 tSCC zSolaris_Once_Init_1Name[] =
5589 "solaris_once_init_1";
5590
5591 /*
5592 * File name selection pattern
5593 */
5594 tSCC zSolaris_Once_Init_1List[] =
5595 "|pthread.h|";
5596 /*
5597 * Machine/OS name selection pattern
5598 */
5599 tSCC* apzSolaris_Once_Init_1Machs[] = {
5600 "*-*-solaris*",
5601 (const char*)NULL };
5602
5603 /*
5604 * content selection pattern - do fix if pattern found
5605 */
5606 tSCC zSolaris_Once_Init_1Select0[] =
5607 "@\\(#\\)pthread.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
5608
5609 #define SOLARIS_ONCE_INIT_1_TEST_CT 1
5610 static tTestDesc aSolaris_Once_Init_1Tests[] = {
5611 { TT_EGREP, zSolaris_Once_Init_1Select0, (regex_t*)NULL }, };
5612
5613 /*
5614 * Fix Command Arguments for Solaris_Once_Init_1
5615 */
5616 static const char* apzSolaris_Once_Init_1Patch[] = {
5617 "format",
5618 "%1{%2}%3",
5619 "(^#define[ \t]+PTHREAD_ONCE_INIT[ \t]+\\{)([^}]+)(\\})[ \t]*$",
5620 (char*)NULL };
5621
5622 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5623 *
5624 * Description of Solaris_Once_Init_2 fix
5625 */
5626 tSCC zSolaris_Once_Init_2Name[] =
5627 "solaris_once_init_2";
5628
5629 /*
5630 * File name selection pattern
5631 */
5632 tSCC zSolaris_Once_Init_2List[] =
5633 "|pthread.h|";
5634 /*
5635 * Machine/OS name selection pattern
5636 */
5637 tSCC* apzSolaris_Once_Init_2Machs[] = {
5638 "*-*-solaris2.[0-9]",
5639 "*-*-solaris2.[0-9][!0-9]*",
5640 (const char*)NULL };
5641
5642 /*
5643 * content selection pattern - do fix if pattern found
5644 */
5645 tSCC zSolaris_Once_Init_2Select0[] =
5646 "@\\(#\\)pthread.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
5647
5648 #define SOLARIS_ONCE_INIT_2_TEST_CT 1
5649 static tTestDesc aSolaris_Once_Init_2Tests[] = {
5650 { TT_EGREP, zSolaris_Once_Init_2Select0, (regex_t*)NULL }, };
5651
5652 /*
5653 * Fix Command Arguments for Solaris_Once_Init_2
5654 */
5655 static const char* apzSolaris_Once_Init_2Patch[] = {
5656 "format",
5657 "#if __STDC__ - 0 == 0 && !defined(_NO_LONGLONG)\n\
5658 %0\n\
5659 #else\n\
5660 %1{0}, {0}, {0}, {%3}%4\n\
5661 #endif",
5662 "(^#define[ \t]+PTHREAD_ONCE_INIT[ \t]+\\{\\{)(0, 0, 0, )(PTHREAD_[A-Z_]+)(\\}\\})[ \t]*$",
5663 (char*)NULL };
5664
5665 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5666 *
5667 * Description of Solaris_Socket fix
5668 */
5669 tSCC zSolaris_SocketName[] =
5670 "solaris_socket";
5671
5672 /*
5673 * File name selection pattern
5674 */
5675 tSCC zSolaris_SocketList[] =
5676 "|sys/socket.h|";
5677 /*
5678 * Machine/OS name selection pattern
5679 */
5680 #define apzSolaris_SocketMachs (const char**)NULL
5681
5682 /*
5683 * content selection pattern - do fix if pattern found
5684 */
5685 tSCC zSolaris_SocketSelect0[] =
5686 "@\\(#\\)socket.h[ \t]+1.[123][0-9][ \t]+9[567]/[0-9/]+ SMI";
5687
5688 #define SOLARIS_SOCKET_TEST_CT 1
5689 static tTestDesc aSolaris_SocketTests[] = {
5690 { TT_EGREP, zSolaris_SocketSelect0, (regex_t*)NULL }, };
5691
5692 /*
5693 * Fix Command Arguments for Solaris_Socket
5694 */
5695 static const char* apzSolaris_SocketPatch[] = {
5696 "format",
5697 "extern int %1(int, %2void *, int, int);",
5698 "^extern int (recv|send)\\(int, (const )*char \\*, int, int\\);",
5699 (char*)NULL };
5700
5701 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5702 *
5703 * Description of Solaris_Stdio_Tag fix
5704 */
5705 tSCC zSolaris_Stdio_TagName[] =
5706 "solaris_stdio_tag";
5707
5708 /*
5709 * File name selection pattern
5710 */
5711 tSCC zSolaris_Stdio_TagList[] =
5712 "|stdio_tag.h|";
5713 /*
5714 * Machine/OS name selection pattern
5715 */
5716 #define apzSolaris_Stdio_TagMachs (const char**)NULL
5717
5718 /*
5719 * content selection pattern - do fix if pattern found
5720 */
5721 tSCC zSolaris_Stdio_TagSelect0[] =
5722 "__cplusplus < 54321L";
5723
5724 /*
5725 * content bypass pattern - skip fix if pattern found
5726 */
5727 tSCC zSolaris_Stdio_TagBypass0[] =
5728 "__GNUC__";
5729
5730 #define SOLARIS_STDIO_TAG_TEST_CT 2
5731 static tTestDesc aSolaris_Stdio_TagTests[] = {
5732 { TT_NEGREP, zSolaris_Stdio_TagBypass0, (regex_t*)NULL },
5733 { TT_EGREP, zSolaris_Stdio_TagSelect0, (regex_t*)NULL }, };
5734
5735 /*
5736 * Fix Command Arguments for Solaris_Stdio_Tag
5737 */
5738 static const char* apzSolaris_Stdio_TagPatch[] = { "sed",
5739 "-e", "s/defined(__cplusplus) && (__cplusplus < 54321L)/0/",
5740 (char*)NULL };
5741
5742 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5743 *
5744 * Description of Solaris_Unistd fix
5745 */
5746 tSCC zSolaris_UnistdName[] =
5747 "solaris_unistd";
5748
5749 /*
5750 * File name selection pattern
5751 */
5752 tSCC zSolaris_UnistdList[] =
5753 "|unistd.h|";
5754 /*
5755 * Machine/OS name selection pattern
5756 */
5757 #define apzSolaris_UnistdMachs (const char**)NULL
5758
5759 /*
5760 * content selection pattern - do fix if pattern found
5761 */
5762 tSCC zSolaris_UnistdSelect0[] =
5763 "@\\(#\\)unistd.h[ \t]+1.3[0-9][ \t]+9[567]/[0-9/]+ SMI";
5764
5765 /*
5766 * content bypass pattern - skip fix if pattern found
5767 */
5768 tSCC zSolaris_UnistdBypass0[] =
5769 "getpagesize";
5770
5771 #define SOLARIS_UNISTD_TEST_CT 2
5772 static tTestDesc aSolaris_UnistdTests[] = {
5773 { TT_NEGREP, zSolaris_UnistdBypass0, (regex_t*)NULL },
5774 { TT_EGREP, zSolaris_UnistdSelect0, (regex_t*)NULL }, };
5775
5776 /*
5777 * Fix Command Arguments for Solaris_Unistd
5778 */
5779 static const char* apzSolaris_UnistdPatch[] = {
5780 "format",
5781 "extern int getpagesize();\n\
5782 %0",
5783 "^extern (pid_t|int) getpgid\\(.*\\);",
5784 (char*)NULL };
5785
5786 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5787 *
5788 * Description of Solaris_Widec fix
5789 */
5790 tSCC zSolaris_WidecName[] =
5791 "solaris_widec";
5792
5793 /*
5794 * File name selection pattern
5795 */
5796 tSCC zSolaris_WidecList[] =
5797 "|widec.h|";
5798 /*
5799 * Machine/OS name selection pattern
5800 */
5801 tSCC* apzSolaris_WidecMachs[] = {
5802 "*-*-solaris2.[0-5]",
5803 "*-*-solaris2.[0-5].*",
5804 (const char*)NULL };
5805
5806 /*
5807 * content selection pattern - do fix if pattern found
5808 */
5809 tSCC zSolaris_WidecSelect0[] =
5810 "#include <euc.h>";
5811
5812 /*
5813 * content bypass pattern - skip fix if pattern found
5814 */
5815 tSCC zSolaris_WidecBypass0[] =
5816 "include.*wchar\\.h";
5817
5818 #define SOLARIS_WIDEC_TEST_CT 2
5819 static tTestDesc aSolaris_WidecTests[] = {
5820 { TT_NEGREP, zSolaris_WidecBypass0, (regex_t*)NULL },
5821 { TT_EGREP, zSolaris_WidecSelect0, (regex_t*)NULL }, };
5822
5823 /*
5824 * Fix Command Arguments for Solaris_Widec
5825 */
5826 static const char* apzSolaris_WidecPatch[] = {
5827 "format",
5828 "%0\n\
5829 #include <wchar.h>",
5830 (char*)NULL };
5831
5832 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5833 *
5834 * Description of Statsswtch fix
5835 */
5836 tSCC zStatsswtchName[] =
5837 "statsswtch";
5838
5839 /*
5840 * File name selection pattern
5841 */
5842 tSCC zStatsswtchList[] =
5843 "|rpcsvc/rstat.h|";
5844 /*
5845 * Machine/OS name selection pattern
5846 */
5847 #define apzStatsswtchMachs (const char**)NULL
5848
5849 /*
5850 * content selection pattern - do fix if pattern found
5851 */
5852 tSCC zStatsswtchSelect0[] =
5853 "boottime$";
5854
5855 #define STATSSWTCH_TEST_CT 1
5856 static tTestDesc aStatsswtchTests[] = {
5857 { TT_EGREP, zStatsswtchSelect0, (regex_t*)NULL }, };
5858
5859 /*
5860 * Fix Command Arguments for Statsswtch
5861 */
5862 static const char* apzStatsswtchPatch[] = {
5863 "format",
5864 "boottime;",
5865 (char*)NULL };
5866
5867 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5868 *
5869 * Description of Stdio_Stdarg_H fix
5870 */
5871 tSCC zStdio_Stdarg_HName[] =
5872 "stdio_stdarg_h";
5873
5874 /*
5875 * File name selection pattern
5876 */
5877 tSCC zStdio_Stdarg_HList[] =
5878 "|stdio.h|";
5879 /*
5880 * Machine/OS name selection pattern
5881 */
5882 tSCC* apzStdio_Stdarg_HMachs[] = {
5883 "*-*-solaris2.1[0-9]*",
5884 (const char*)NULL };
5885
5886 /*
5887 * content bypass pattern - skip fix if pattern found
5888 */
5889 tSCC zStdio_Stdarg_HBypass0[] =
5890 "include.*(stdarg.h|machine/ansi.h)";
5891
5892 #define STDIO_STDARG_H_TEST_CT 1
5893 static tTestDesc aStdio_Stdarg_HTests[] = {
5894 { TT_NEGREP, zStdio_Stdarg_HBypass0, (regex_t*)NULL }, };
5895
5896 /*
5897 * Fix Command Arguments for Stdio_Stdarg_H
5898 */
5899 static const char* apzStdio_Stdarg_HPatch[] = {
5900 "wrap",
5901 "#define __need___va_list\n\
5902 #include <stdarg.h>\n",
5903 (char*)NULL };
5904
5905 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5906 *
5907 * Description of Stdio_Va_List fix
5908 */
5909 tSCC zStdio_Va_ListName[] =
5910 "stdio_va_list";
5911
5912 /*
5913 * File name selection pattern
5914 */
5915 tSCC zStdio_Va_ListList[] =
5916 "|stdio.h|internal/stdio_core.h|internal/wchar_core.h|";
5917 /*
5918 * Machine/OS name selection pattern
5919 */
5920 tSCC* apzStdio_Va_ListMachs[] = {
5921 "*-*-solaris2.1[0-9]*",
5922 (const char*)NULL };
5923
5924 /*
5925 * content bypass pattern - skip fix if pattern found
5926 */
5927 tSCC zStdio_Va_ListBypass0[] =
5928 "__gnuc_va_list|_BSD_VA_LIST_|__DJ_va_list|_G_va_list";
5929
5930 #define STDIO_VA_LIST_TEST_CT 1
5931 static tTestDesc aStdio_Va_ListTests[] = {
5932 { TT_NEGREP, zStdio_Va_ListBypass0, (regex_t*)NULL }, };
5933
5934 /*
5935 * Fix Command Arguments for Stdio_Va_List
5936 */
5937 static const char* apzStdio_Va_ListPatch[] = { "sed",
5938 "-e", "s@[ \t]va_list\\([ \t)]\\)@ __gnuc_va_list\\1@\n\
5939 s@(va_list)&@(__gnuc_va_list)\\&@\n\
5940 s@ _VA_LIST_));@ __gnuc_va_list));@\n\
5941 s@ __VA_LIST__));@ __gnuc_va_list));@\n\
5942 s@ va_list@ __not_va_list__@\n\
5943 s@\\*va_list@*__not_va_list__@\n\
5944 s@ __va_list)@ __gnuc_va_list)@\n\
5945 s@typedef[ \t]\\(.*\\)[ \t]va_list[ \t]*;@typedef \\1 __not_va_list__;@\n\
5946 s@typedef[ \t]*__va_list__@typedef __gnuc_va_list@\n\
5947 s@GNUC_VA_LIST@GNUC_Va_LIST@\n\
5948 s@_VA_LIST_DEFINED@_Va_LIST_DEFINED@\n\
5949 s@_NEED___VA_LIST@_NEED___Va_LIST@\n\
5950 s@VA_LIST@DUMMY_VA_LIST@\n\
5951 s@_Va_LIST@_VA_LIST@",
5952 (char*)NULL };
5953
5954 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5955 *
5956 * Description of Stdio_Va_List_Clients fix
5957 */
5958 tSCC zStdio_Va_List_ClientsName[] =
5959 "stdio_va_list_clients";
5960
5961 /*
5962 * File name selection pattern
5963 */
5964 tSCC zStdio_Va_List_ClientsList[] =
5965 "|com_err.h|cps.h|curses.h|krb5.h|lc_core.h|pfmt.h|wchar.h|curses_colr/curses.h|";
5966 /*
5967 * Machine/OS name selection pattern
5968 */
5969 #define apzStdio_Va_List_ClientsMachs (const char**)NULL
5970
5971 /*
5972 * content bypass pattern - skip fix if pattern found
5973 */
5974 tSCC zStdio_Va_List_ClientsBypass0[] =
5975 "__gnuc_va_list|_BSD_VA_LIST_|__DJ_va_list|_G_va_list";
5976 tSCC zStdio_Va_List_ClientsBypass1[] =
5977 "include <stdarg\\.h>|#ifdef va_start";
5978
5979 #define STDIO_VA_LIST_CLIENTS_TEST_CT 2
5980 static tTestDesc aStdio_Va_List_ClientsTests[] = {
5981 { TT_NEGREP, zStdio_Va_List_ClientsBypass0, (regex_t*)NULL },
5982 { TT_NEGREP, zStdio_Va_List_ClientsBypass1, (regex_t*)NULL }, };
5983
5984 /*
5985 * Fix Command Arguments for Stdio_Va_List_Clients
5986 */
5987 static const char* apzStdio_Va_List_ClientsPatch[] = { "sed",
5988 "-e", "s@[ \t]va_list\\([ \t)]\\)@ __gnuc_va_list\\1@\n\
5989 s@(va_list)&@(__gnuc_va_list)\\&@\n\
5990 s@ _VA_LIST_));@ __gnuc_va_list));@\n\
5991 s@ __VA_LIST__));@ __gnuc_va_list));@\n\
5992 s@ va_list@ __not_va_list__@\n\
5993 s@\\*va_list@*__not_va_list__@\n\
5994 s@ __va_list)@ __gnuc_va_list)@\n\
5995 s@typedef[ \t]\\(.*\\)[ \t]va_list[ \t]*;@typedef \\1 __not_va_list__;@\n\
5996 s@typedef[ \t]*__va_list__@typedef __gnuc_va_list@\n\
5997 s@GNUC_VA_LIST@GNUC_Va_LIST@\n\
5998 s@_VA_LIST_DEFINED@_Va_LIST_DEFINED@\n\
5999 s@_NEED___VA_LIST@_NEED___Va_LIST@\n\
6000 s@VA_LIST@DUMMY_VA_LIST@\n\
6001 s@_Va_LIST@_VA_LIST@",
6002 (char*)NULL };
6003
6004 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6005 *
6006 * Description of Strict_Ansi_Not fix
6007 */
6008 tSCC zStrict_Ansi_NotName[] =
6009 "strict_ansi_not";
6010
6011 /*
6012 * File name selection pattern
6013 */
6014 #define zStrict_Ansi_NotList (char*)NULL
6015 /*
6016 * Machine/OS name selection pattern
6017 */
6018 #define apzStrict_Ansi_NotMachs (const char**)NULL
6019
6020 /*
6021 * content selection pattern - do fix if pattern found
6022 */
6023 tSCC zStrict_Ansi_NotSelect0[] =
6024 "^([ \t]*#[ \t]*if.*)(!__STDC__|__STDC__[ \t]*==[ \t]*0|__STDC__[ \t]*!=[ \t]*1|__STDC__[ \t]*-[ \t]*0[ \t]*==[ \t]*0)";
6025
6026 /*
6027 * content bypass pattern - skip fix if pattern found
6028 */
6029 tSCC zStrict_Ansi_NotBypass0[] =
6030 "GNU and MIPS C compilers define __STDC__ differently";
6031 tSCC zStrict_Ansi_NotBypass1[] =
6032 "__SCO_VERSION__.*__STDC__ != 1";
6033
6034 /*
6035 * perform the C function call test
6036 */
6037 tSCC zStrict_Ansi_NotFTst0[] = "stdc_0_in_system_headers";
6038
6039 #define STRICT_ANSI_NOT_TEST_CT 4
6040 static tTestDesc aStrict_Ansi_NotTests[] = {
6041 { TT_FUNCTION, zStrict_Ansi_NotFTst0, 0 /* unused */ },
6042 { TT_NEGREP, zStrict_Ansi_NotBypass0, (regex_t*)NULL },
6043 { TT_NEGREP, zStrict_Ansi_NotBypass1, (regex_t*)NULL },
6044 { TT_EGREP, zStrict_Ansi_NotSelect0, (regex_t*)NULL }, };
6045
6046 /*
6047 * Fix Command Arguments for Strict_Ansi_Not
6048 */
6049 static const char* apzStrict_Ansi_NotPatch[] = {
6050 "format",
6051 "%1 !defined(__STRICT_ANSI__)",
6052 (char*)NULL };
6053
6054 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6055 *
6056 * Description of Strict_Ansi_Not_Ctd fix
6057 */
6058 tSCC zStrict_Ansi_Not_CtdName[] =
6059 "strict_ansi_not_ctd";
6060
6061 /*
6062 * File name selection pattern
6063 */
6064 tSCC zStrict_Ansi_Not_CtdList[] =
6065 "|math.h|limits.h|stdio.h|signal.h|stdlib.h|sys/signal.h|time.h|";
6066 /*
6067 * Machine/OS name selection pattern
6068 */
6069 #define apzStrict_Ansi_Not_CtdMachs (const char**)NULL
6070
6071 /*
6072 * content selection pattern - do fix if pattern found
6073 */
6074 tSCC zStrict_Ansi_Not_CtdSelect0[] =
6075 "^([ \t]*(\\(|&&|\\|\\|)([ \t(]*!*[ \t]*defined\\([a-zA-Z_0-9]+\\)[ \t]*[|&][|&])*[ \t(]*)(__STDC__[ \t]*(|-[ \t]*0[ \t]*)==[ \t]*0)";
6076
6077 /*
6078 * perform the C function call test
6079 */
6080 tSCC zStrict_Ansi_Not_CtdFTst0[] = "stdc_0_in_system_headers";
6081
6082 #define STRICT_ANSI_NOT_CTD_TEST_CT 2
6083 static tTestDesc aStrict_Ansi_Not_CtdTests[] = {
6084 { TT_FUNCTION, zStrict_Ansi_Not_CtdFTst0, 0 /* unused */ },
6085 { TT_EGREP, zStrict_Ansi_Not_CtdSelect0, (regex_t*)NULL }, };
6086
6087 /*
6088 * Fix Command Arguments for Strict_Ansi_Not_Ctd
6089 */
6090 static const char* apzStrict_Ansi_Not_CtdPatch[] = {
6091 "format",
6092 "%1 !defined(__STRICT_ANSI__)",
6093 (char*)NULL };
6094
6095 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6096 *
6097 * Description of Strict_Ansi_Only fix
6098 */
6099 tSCC zStrict_Ansi_OnlyName[] =
6100 "strict_ansi_only";
6101
6102 /*
6103 * File name selection pattern
6104 */
6105 #define zStrict_Ansi_OnlyList (char*)NULL
6106 /*
6107 * Machine/OS name selection pattern
6108 */
6109 #define apzStrict_Ansi_OnlyMachs (const char**)NULL
6110
6111 /*
6112 * content selection pattern - do fix if pattern found
6113 */
6114 tSCC zStrict_Ansi_OnlySelect0[] =
6115 "^([ \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)";
6116
6117 /*
6118 * perform the C function call test
6119 */
6120 tSCC zStrict_Ansi_OnlyFTst0[] = "stdc_0_in_system_headers";
6121
6122 #define STRICT_ANSI_ONLY_TEST_CT 2
6123 static tTestDesc aStrict_Ansi_OnlyTests[] = {
6124 { TT_FUNCTION, zStrict_Ansi_OnlyFTst0, 0 /* unused */ },
6125 { TT_EGREP, zStrict_Ansi_OnlySelect0, (regex_t*)NULL }, };
6126
6127 /*
6128 * Fix Command Arguments for Strict_Ansi_Only
6129 */
6130 static const char* apzStrict_Ansi_OnlyPatch[] = {
6131 "format",
6132 "%1 defined(__STRICT_ANSI__)",
6133 (char*)NULL };
6134
6135 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6136 *
6137 * Description of Struct_File fix
6138 */
6139 tSCC zStruct_FileName[] =
6140 "struct_file";
6141
6142 /*
6143 * File name selection pattern
6144 */
6145 tSCC zStruct_FileList[] =
6146 "|rpc/xdr.h|";
6147 /*
6148 * Machine/OS name selection pattern
6149 */
6150 #define apzStruct_FileMachs (const char**)NULL
6151
6152 /*
6153 * content selection pattern - do fix if pattern found
6154 */
6155 tSCC zStruct_FileSelect0[] =
6156 "^.*xdrstdio_create.*struct __file_s";
6157
6158 #define STRUCT_FILE_TEST_CT 1
6159 static tTestDesc aStruct_FileTests[] = {
6160 { TT_EGREP, zStruct_FileSelect0, (regex_t*)NULL }, };
6161
6162 /*
6163 * Fix Command Arguments for Struct_File
6164 */
6165 static const char* apzStruct_FilePatch[] = {
6166 "format",
6167 "struct __file_s;\n\
6168 %0",
6169 (char*)NULL };
6170
6171 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6172 *
6173 * Description of Struct_Sockaddr fix
6174 */
6175 tSCC zStruct_SockaddrName[] =
6176 "struct_sockaddr";
6177
6178 /*
6179 * File name selection pattern
6180 */
6181 tSCC zStruct_SockaddrList[] =
6182 "|rpc/auth.h|";
6183 /*
6184 * Machine/OS name selection pattern
6185 */
6186 #define apzStruct_SockaddrMachs (const char**)NULL
6187
6188 /*
6189 * content selection pattern - do fix if pattern found
6190 */
6191 tSCC zStruct_SockaddrSelect0[] =
6192 "^.*authdes_create.*struct sockaddr[^_]";
6193
6194 /*
6195 * content bypass pattern - skip fix if pattern found
6196 */
6197 tSCC zStruct_SockaddrBypass0[] =
6198 "<sys/socket.h>";
6199 tSCC zStruct_SockaddrBypass1[] =
6200 "struct sockaddr;\n";
6201
6202 #define STRUCT_SOCKADDR_TEST_CT 3
6203 static tTestDesc aStruct_SockaddrTests[] = {
6204 { TT_NEGREP, zStruct_SockaddrBypass0, (regex_t*)NULL },
6205 { TT_NEGREP, zStruct_SockaddrBypass1, (regex_t*)NULL },
6206 { TT_EGREP, zStruct_SockaddrSelect0, (regex_t*)NULL }, };
6207
6208 /*
6209 * Fix Command Arguments for Struct_Sockaddr
6210 */
6211 static const char* apzStruct_SockaddrPatch[] = {
6212 "format",
6213 "struct sockaddr;\n\
6214 %0",
6215 (char*)NULL };
6216
6217 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6218 *
6219 * Description of Sun_Auth_Proto fix
6220 */
6221 tSCC zSun_Auth_ProtoName[] =
6222 "sun_auth_proto";
6223
6224 /*
6225 * File name selection pattern
6226 */
6227 tSCC zSun_Auth_ProtoList[] =
6228 "|rpc/auth.h|rpc/clnt.h|rpc/svc.h|rpc/xdr.h|";
6229 /*
6230 * Machine/OS name selection pattern
6231 */
6232 #define apzSun_Auth_ProtoMachs (const char**)NULL
6233
6234 /*
6235 * content selection pattern - do fix if pattern found
6236 */
6237 tSCC zSun_Auth_ProtoSelect0[] =
6238 "\\(\\*[a-z][a-z_]*\\)\\(\\)";
6239
6240 /*
6241 * content bypass pattern - skip fix if pattern found
6242 */
6243 tSCC zSun_Auth_ProtoBypass0[] =
6244 "__cplusplus";
6245
6246 #define SUN_AUTH_PROTO_TEST_CT 2
6247 static tTestDesc aSun_Auth_ProtoTests[] = {
6248 { TT_NEGREP, zSun_Auth_ProtoBypass0, (regex_t*)NULL },
6249 { TT_EGREP, zSun_Auth_ProtoSelect0, (regex_t*)NULL }, };
6250
6251 /*
6252 * Fix Command Arguments for Sun_Auth_Proto
6253 */
6254 static const char* apzSun_Auth_ProtoPatch[] = {
6255 "format",
6256 "#ifdef __cplusplus\n\
6257 %1(...);%2\n\
6258 #else\n\
6259 %1();%2\n\
6260 #endif",
6261 "(.*\\(\\*[a-z][a-z_]*\\))\\(\\);(.*)",
6262 (char*)NULL };
6263
6264 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6265 *
6266 * Description of Sun_Bogus_Ifdef fix
6267 */
6268 tSCC zSun_Bogus_IfdefName[] =
6269 "sun_bogus_ifdef";
6270
6271 /*
6272 * File name selection pattern
6273 */
6274 tSCC zSun_Bogus_IfdefList[] =
6275 "|hsfs/hsfs_spec.h|hsfs/iso_spec.h|";
6276 /*
6277 * Machine/OS name selection pattern
6278 */
6279 #define apzSun_Bogus_IfdefMachs (const char**)NULL
6280
6281 /*
6282 * content selection pattern - do fix if pattern found
6283 */
6284 tSCC zSun_Bogus_IfdefSelect0[] =
6285 "#ifdef(.*\\|\\|.*)";
6286
6287 #define SUN_BOGUS_IFDEF_TEST_CT 1
6288 static tTestDesc aSun_Bogus_IfdefTests[] = {
6289 { TT_EGREP, zSun_Bogus_IfdefSelect0, (regex_t*)NULL }, };
6290
6291 /*
6292 * Fix Command Arguments for Sun_Bogus_Ifdef
6293 */
6294 static const char* apzSun_Bogus_IfdefPatch[] = {
6295 "format",
6296 "#if%1",
6297 (char*)NULL };
6298
6299 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6300 *
6301 * Description of Sun_Catmacro fix
6302 */
6303 tSCC zSun_CatmacroName[] =
6304 "sun_catmacro";
6305
6306 /*
6307 * File name selection pattern
6308 */
6309 tSCC zSun_CatmacroList[] =
6310 "|pixrect/memvar.h|";
6311 /*
6312 * Machine/OS name selection pattern
6313 */
6314 #define apzSun_CatmacroMachs (const char**)NULL
6315
6316 /*
6317 * content selection pattern - do fix if pattern found
6318 */
6319 tSCC zSun_CatmacroSelect0[] =
6320 "^#define[ \t]+CAT\\(a,b\\).*";
6321
6322 #define SUN_CATMACRO_TEST_CT 1
6323 static tTestDesc aSun_CatmacroTests[] = {
6324 { TT_EGREP, zSun_CatmacroSelect0, (regex_t*)NULL }, };
6325
6326 /*
6327 * Fix Command Arguments for Sun_Catmacro
6328 */
6329 static const char* apzSun_CatmacroPatch[] = {
6330 "format",
6331 "#ifdef __STDC__\n\
6332 # define CAT(a,b) a##b\n\
6333 #else\n\
6334 %0\n\
6335 #endif",
6336 (char*)NULL };
6337
6338 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6339 *
6340 * Description of Sun_Malloc fix
6341 */
6342 tSCC zSun_MallocName[] =
6343 "sun_malloc";
6344
6345 /*
6346 * File name selection pattern
6347 */
6348 tSCC zSun_MallocList[] =
6349 "|malloc.h|";
6350 /*
6351 * Machine/OS name selection pattern
6352 */
6353 #define apzSun_MallocMachs (const char**)NULL
6354
6355 /*
6356 * content bypass pattern - skip fix if pattern found
6357 */
6358 tSCC zSun_MallocBypass0[] =
6359 "_CLASSIC_ANSI_TYPES";
6360
6361 #define SUN_MALLOC_TEST_CT 1
6362 static tTestDesc aSun_MallocTests[] = {
6363 { TT_NEGREP, zSun_MallocBypass0, (regex_t*)NULL }, };
6364
6365 /*
6366 * Fix Command Arguments for Sun_Malloc
6367 */
6368 static const char* apzSun_MallocPatch[] = { "sed",
6369 "-e", "s/typedef[ \t]char \\*\tmalloc_t/typedef void \\*\tmalloc_t/g",
6370 "-e", "s/int[ \t][ \t]*free/void\tfree/g",
6371 "-e", "s/char\\([ \t]*\\*[ \t]*malloc\\)/void\\1/g",
6372 "-e", "s/char\\([ \t]*\\*[ \t]*realloc\\)/void\\1/g",
6373 "-e", "s/char\\([ \t]*\\*[ \t]*calloc\\)/void\\1/g",
6374 (char*)NULL };
6375
6376 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6377 *
6378 * Description of Sun_Rusers_Semi fix
6379 */
6380 tSCC zSun_Rusers_SemiName[] =
6381 "sun_rusers_semi";
6382
6383 /*
6384 * File name selection pattern
6385 */
6386 tSCC zSun_Rusers_SemiList[] =
6387 "|rpcsvc/rusers.h|";
6388 /*
6389 * Machine/OS name selection pattern
6390 */
6391 #define apzSun_Rusers_SemiMachs (const char**)NULL
6392
6393 /*
6394 * content selection pattern - do fix if pattern found
6395 */
6396 tSCC zSun_Rusers_SemiSelect0[] =
6397 "_cnt$";
6398
6399 #define SUN_RUSERS_SEMI_TEST_CT 1
6400 static tTestDesc aSun_Rusers_SemiTests[] = {
6401 { TT_EGREP, zSun_Rusers_SemiSelect0, (regex_t*)NULL }, };
6402
6403 /*
6404 * Fix Command Arguments for Sun_Rusers_Semi
6405 */
6406 static const char* apzSun_Rusers_SemiPatch[] = { "sed",
6407 "-e", "/^struct/,/^};/s/_cnt$/_cnt;/",
6408 (char*)NULL };
6409
6410 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6411 *
6412 * Description of Sun_Signal fix
6413 */
6414 tSCC zSun_SignalName[] =
6415 "sun_signal";
6416
6417 /*
6418 * File name selection pattern
6419 */
6420 tSCC zSun_SignalList[] =
6421 "|sys/signal.h|signal.h|";
6422 /*
6423 * Machine/OS name selection pattern
6424 */
6425 #define apzSun_SignalMachs (const char**)NULL
6426
6427 /*
6428 * content selection pattern - do fix if pattern found
6429 */
6430 tSCC zSun_SignalSelect0[] =
6431 "^void\t\\(\\*signal\\(\\)\\)\\(\\);.*";
6432
6433 #define SUN_SIGNAL_TEST_CT 1
6434 static tTestDesc aSun_SignalTests[] = {
6435 { TT_EGREP, zSun_SignalSelect0, (regex_t*)NULL }, };
6436
6437 /*
6438 * Fix Command Arguments for Sun_Signal
6439 */
6440 static const char* apzSun_SignalPatch[] = {
6441 "format",
6442 "#ifdef __cplusplus\n\
6443 void\t(*signal(...))(...);\n\
6444 #else\n\
6445 %0\n\
6446 #endif",
6447 (char*)NULL };
6448
6449 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6450 *
6451 * Description of Sunos_Strlen fix
6452 */
6453 tSCC zSunos_StrlenName[] =
6454 "sunos_strlen";
6455
6456 /*
6457 * File name selection pattern
6458 */
6459 tSCC zSunos_StrlenList[] =
6460 "|strings.h|";
6461 /*
6462 * Machine/OS name selection pattern
6463 */
6464 #define apzSunos_StrlenMachs (const char**)NULL
6465
6466 /*
6467 * content selection pattern - do fix if pattern found
6468 */
6469 tSCC zSunos_StrlenSelect0[] =
6470 "int[ \t]*strlen\\(\\);(.*)";
6471
6472 #define SUNOS_STRLEN_TEST_CT 1
6473 static tTestDesc aSunos_StrlenTests[] = {
6474 { TT_EGREP, zSunos_StrlenSelect0, (regex_t*)NULL }, };
6475
6476 /*
6477 * Fix Command Arguments for Sunos_Strlen
6478 */
6479 static const char* apzSunos_StrlenPatch[] = {
6480 "format",
6481 "__SIZE_TYPE__ strlen();%1",
6482 (char*)NULL };
6483
6484 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6485 *
6486 * Description of Svr4_Disable_Opt fix
6487 */
6488 tSCC zSvr4_Disable_OptName[] =
6489 "svr4_disable_opt";
6490
6491 /*
6492 * File name selection pattern
6493 */
6494 tSCC zSvr4_Disable_OptList[] =
6495 "|string.h|";
6496 /*
6497 * Machine/OS name selection pattern
6498 */
6499 #define apzSvr4_Disable_OptMachs (const char**)NULL
6500
6501 /*
6502 * content selection pattern - do fix if pattern found
6503 */
6504 tSCC zSvr4_Disable_OptSelect0[] =
6505 "#define.*__std_hdr_";
6506
6507 #define SVR4_DISABLE_OPT_TEST_CT 1
6508 static tTestDesc aSvr4_Disable_OptTests[] = {
6509 { TT_EGREP, zSvr4_Disable_OptSelect0, (regex_t*)NULL }, };
6510
6511 /*
6512 * Fix Command Arguments for Svr4_Disable_Opt
6513 */
6514 static const char* apzSvr4_Disable_OptPatch[] = { "sed",
6515 "-e", "/#define.*__std_hdr_/d",
6516 (char*)NULL };
6517
6518 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6519 *
6520 * Description of Svr4_Getcwd fix
6521 */
6522 tSCC zSvr4_GetcwdName[] =
6523 "svr4_getcwd";
6524
6525 /*
6526 * File name selection pattern
6527 */
6528 tSCC zSvr4_GetcwdList[] =
6529 "|stdlib.h|unistd.h|prototypes.h|";
6530 /*
6531 * Machine/OS name selection pattern
6532 */
6533 #define apzSvr4_GetcwdMachs (const char**)NULL
6534
6535 /*
6536 * content selection pattern - do fix if pattern found
6537 */
6538 tSCC zSvr4_GetcwdSelect0[] =
6539 "getcwd\\(char \\*, int\\)";
6540
6541 #define SVR4_GETCWD_TEST_CT 1
6542 static tTestDesc aSvr4_GetcwdTests[] = {
6543 { TT_EGREP, zSvr4_GetcwdSelect0, (regex_t*)NULL }, };
6544
6545 /*
6546 * Fix Command Arguments for Svr4_Getcwd
6547 */
6548 static const char* apzSvr4_GetcwdPatch[] = {
6549 "format",
6550 "getcwd(char *, size_t)",
6551 (char*)NULL };
6552
6553 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6554 *
6555 * Description of Svr4_Krnl fix
6556 */
6557 tSCC zSvr4_KrnlName[] =
6558 "svr4_krnl";
6559
6560 /*
6561 * File name selection pattern
6562 */
6563 tSCC zSvr4_KrnlList[] =
6564 "|fs/rfs/rf_cache.h|sys/erec.h|sys/err.h|sys/char.h|sys/getpages.h|sys/map.h|sys/cmn_err.h|sys/kdebugger.h|";
6565 /*
6566 * Machine/OS name selection pattern
6567 */
6568 tSCC* apzSvr4_KrnlMachs[] = {
6569 "*-*-sysv4*",
6570 "i?86-sequent-ptx*",
6571 (const char*)NULL };
6572
6573 /*
6574 * content bypass pattern - skip fix if pattern found
6575 */
6576 tSCC zSvr4_KrnlBypass0[] =
6577 "_KERNEL";
6578
6579 #define SVR4_KRNL_TEST_CT 1
6580 static tTestDesc aSvr4_KrnlTests[] = {
6581 { TT_NEGREP, zSvr4_KrnlBypass0, (regex_t*)NULL }, };
6582
6583 /*
6584 * Fix Command Arguments for Svr4_Krnl
6585 */
6586 static const char* apzSvr4_KrnlPatch[] = {
6587 "wrap",
6588 "#ifdef _KERNEL\n",
6589 "#endif /* _KERNEL */\n",
6590 (char*)NULL };
6591
6592 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6593 *
6594 * Description of Svr4_Profil fix
6595 */
6596 tSCC zSvr4_ProfilName[] =
6597 "svr4_profil";
6598
6599 /*
6600 * File name selection pattern
6601 */
6602 tSCC zSvr4_ProfilList[] =
6603 "|stdlib.h|unistd.h|";
6604 /*
6605 * Machine/OS name selection pattern
6606 */
6607 #define apzSvr4_ProfilMachs (const char**)NULL
6608
6609 /*
6610 * content selection pattern - do fix if pattern found
6611 */
6612 tSCC zSvr4_ProfilSelect0[] =
6613 "profil\\(unsigned short \\*, unsigned int, unsigned int, unsigned int\\)";
6614
6615 /*
6616 * content bypass pattern - skip fix if pattern found
6617 */
6618 tSCC zSvr4_ProfilBypass0[] =
6619 "Silicon Graphics";
6620
6621 #define SVR4_PROFIL_TEST_CT 2
6622 static tTestDesc aSvr4_ProfilTests[] = {
6623 { TT_NEGREP, zSvr4_ProfilBypass0, (regex_t*)NULL },
6624 { TT_EGREP, zSvr4_ProfilSelect0, (regex_t*)NULL }, };
6625
6626 /*
6627 * Fix Command Arguments for Svr4_Profil
6628 */
6629 static const char* apzSvr4_ProfilPatch[] = {
6630 "format",
6631 "profil(unsigned short *, size_t, int, unsigned int)",
6632 (char*)NULL };
6633
6634 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6635 *
6636 * Description of Svr4_Sighandler_Type fix
6637 */
6638 tSCC zSvr4_Sighandler_TypeName[] =
6639 "svr4_sighandler_type";
6640
6641 /*
6642 * File name selection pattern
6643 */
6644 tSCC zSvr4_Sighandler_TypeList[] =
6645 "|sys/signal.h|";
6646 /*
6647 * Machine/OS name selection pattern
6648 */
6649 #define apzSvr4_Sighandler_TypeMachs (const char**)NULL
6650
6651 /*
6652 * content selection pattern - do fix if pattern found
6653 */
6654 tSCC zSvr4_Sighandler_TypeSelect0[] =
6655 "void *\\(\\*\\)\\(\\)";
6656
6657 #define SVR4_SIGHANDLER_TYPE_TEST_CT 1
6658 static tTestDesc aSvr4_Sighandler_TypeTests[] = {
6659 { TT_EGREP, zSvr4_Sighandler_TypeSelect0, (regex_t*)NULL }, };
6660
6661 /*
6662 * Fix Command Arguments for Svr4_Sighandler_Type
6663 */
6664 static const char* apzSvr4_Sighandler_TypePatch[] = {
6665 "format",
6666 "void (*)(int)",
6667 (char*)NULL };
6668
6669 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6670 *
6671 * Description of Svr4_Undeclared_Getrnge fix
6672 */
6673 tSCC zSvr4_Undeclared_GetrngeName[] =
6674 "svr4_undeclared_getrnge";
6675
6676 /*
6677 * File name selection pattern
6678 */
6679 tSCC zSvr4_Undeclared_GetrngeList[] =
6680 "|regexp.h|";
6681 /*
6682 * Machine/OS name selection pattern
6683 */
6684 #define apzSvr4_Undeclared_GetrngeMachs (const char**)NULL
6685
6686 /*
6687 * content selection pattern - do fix if pattern found
6688 */
6689 tSCC zSvr4_Undeclared_GetrngeSelect0[] =
6690 "getrnge";
6691
6692 /*
6693 * content bypass pattern - skip fix if pattern found
6694 */
6695 tSCC zSvr4_Undeclared_GetrngeBypass0[] =
6696 "static void getrnge";
6697
6698 #define SVR4_UNDECLARED_GETRNGE_TEST_CT 2
6699 static tTestDesc aSvr4_Undeclared_GetrngeTests[] = {
6700 { TT_NEGREP, zSvr4_Undeclared_GetrngeBypass0, (regex_t*)NULL },
6701 { TT_EGREP, zSvr4_Undeclared_GetrngeSelect0, (regex_t*)NULL }, };
6702
6703 /*
6704 * Fix Command Arguments for Svr4_Undeclared_Getrnge
6705 */
6706 static const char* apzSvr4_Undeclared_GetrngePatch[] = {
6707 "format",
6708 "%0\n\
6709 static int getrnge ();",
6710 "^static int[ \t]+size;",
6711 (char*)NULL };
6712
6713 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6714 *
6715 * Description of Sysv68_String fix
6716 */
6717 tSCC zSysv68_StringName[] =
6718 "sysv68_string";
6719
6720 /*
6721 * File name selection pattern
6722 */
6723 tSCC zSysv68_StringList[] =
6724 "|testing.h|string.h|";
6725 /*
6726 * Machine/OS name selection pattern
6727 */
6728 #define apzSysv68_StringMachs (const char**)NULL
6729
6730 /*
6731 * content bypass pattern - skip fix if pattern found
6732 */
6733 tSCC zSysv68_StringBypass0[] =
6734 "_CLASSIC_ANSI_TYPES";
6735
6736 #define SYSV68_STRING_TEST_CT 1
6737 static tTestDesc aSysv68_StringTests[] = {
6738 { TT_NEGREP, zSysv68_StringBypass0, (regex_t*)NULL }, };
6739
6740 /*
6741 * Fix Command Arguments for Sysv68_String
6742 */
6743 static const char* apzSysv68_StringPatch[] = { "sed",
6744 "-e", "s/extern[ \t]*int[ \t]*strlen();/extern unsigned int strlen();/",
6745 "-e", "s/extern[ \t]*int[ \t]*ffs[ \t]*(long);/extern int ffs(int);/",
6746 "-e", "s/strdup(char \\*s1);/strdup(const char *s1);/",
6747 "-e", "/^extern char$/N",
6748 "-e", "s/^extern char\\(\\n\t\\*memccpy(),\\)$/extern void\\1/",
6749 "-e", "/^extern int$/N",
6750 "-e", "s/^extern int\\(\\n\tstrlen(),\\)/extern size_t\\1/",
6751 "-e", "/^\tstrncmp(),$/N",
6752 "-e", "s/^\\(\tstrncmp()\\),\\n\\(\tstrlen(),\\)$/\\1;\\\n\
6753 extern unsigned int\\\n\
6754 \\2/",
6755 (char*)NULL };
6756
6757 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6758 *
6759 * Description of Sysz_Stdlib_For_Sun fix
6760 */
6761 tSCC zSysz_Stdlib_For_SunName[] =
6762 "sysz_stdlib_for_sun";
6763
6764 /*
6765 * File name selection pattern
6766 */
6767 tSCC zSysz_Stdlib_For_SunList[] =
6768 "|stdlib.h|";
6769 /*
6770 * Machine/OS name selection pattern
6771 */
6772 #define apzSysz_Stdlib_For_SunMachs (const char**)NULL
6773
6774 /*
6775 * content selection pattern - do fix if pattern found
6776 */
6777 tSCC zSysz_Stdlib_For_SunSelect0[] =
6778 "char[ \t]*\\*[ \t]*(calloc|malloc|realloc|bsearch)[ \t]*\\(";
6779
6780 /*
6781 * content bypass pattern - skip fix if pattern found
6782 */
6783 tSCC zSysz_Stdlib_For_SunBypass0[] =
6784 "_CLASSIC_ANSI_TYPES";
6785
6786 #define SYSZ_STDLIB_FOR_SUN_TEST_CT 2
6787 static tTestDesc aSysz_Stdlib_For_SunTests[] = {
6788 { TT_NEGREP, zSysz_Stdlib_For_SunBypass0, (regex_t*)NULL },
6789 { TT_EGREP, zSysz_Stdlib_For_SunSelect0, (regex_t*)NULL }, };
6790
6791 /*
6792 * Fix Command Arguments for Sysz_Stdlib_For_Sun
6793 */
6794 static const char* apzSysz_Stdlib_For_SunPatch[] = {
6795 "format",
6796 "void *\t%1(",
6797 (char*)NULL };
6798
6799 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6800 *
6801 * Description of Thread_Keyword fix
6802 */
6803 tSCC zThread_KeywordName[] =
6804 "thread_keyword";
6805
6806 /*
6807 * File name selection pattern
6808 */
6809 tSCC zThread_KeywordList[] =
6810 "|pthread.h|bits/sigthread.h|";
6811 /*
6812 * Machine/OS name selection pattern
6813 */
6814 #define apzThread_KeywordMachs (const char**)NULL
6815
6816 /*
6817 * content selection pattern - do fix if pattern found
6818 */
6819 tSCC zThread_KeywordSelect0[] =
6820 "([* ])__thread([,)])";
6821
6822 #define THREAD_KEYWORD_TEST_CT 1
6823 static tTestDesc aThread_KeywordTests[] = {
6824 { TT_EGREP, zThread_KeywordSelect0, (regex_t*)NULL }, };
6825
6826 /*
6827 * Fix Command Arguments for Thread_Keyword
6828 */
6829 static const char* apzThread_KeywordPatch[] = {
6830 "format",
6831 "%1__thr%2",
6832 (char*)NULL };
6833
6834 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6835 *
6836 * Description of Tinfo_Cplusplus fix
6837 */
6838 tSCC zTinfo_CplusplusName[] =
6839 "tinfo_cplusplus";
6840
6841 /*
6842 * File name selection pattern
6843 */
6844 tSCC zTinfo_CplusplusList[] =
6845 "|tinfo.h|";
6846 /*
6847 * Machine/OS name selection pattern
6848 */
6849 #define apzTinfo_CplusplusMachs (const char**)NULL
6850
6851 /*
6852 * content selection pattern - do fix if pattern found
6853 */
6854 tSCC zTinfo_CplusplusSelect0[] =
6855 "[ \t]_cplusplus";
6856
6857 #define TINFO_CPLUSPLUS_TEST_CT 1
6858 static tTestDesc aTinfo_CplusplusTests[] = {
6859 { TT_EGREP, zTinfo_CplusplusSelect0, (regex_t*)NULL }, };
6860
6861 /*
6862 * Fix Command Arguments for Tinfo_Cplusplus
6863 */
6864 static const char* apzTinfo_CplusplusPatch[] = {
6865 "format",
6866 " __cplusplus",
6867 (char*)NULL };
6868
6869 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6870 *
6871 * Description of Ultrix_Atexit_Param fix
6872 */
6873 tSCC zUltrix_Atexit_ParamName[] =
6874 "ultrix_atexit_param";
6875
6876 /*
6877 * File name selection pattern
6878 */
6879 tSCC zUltrix_Atexit_ParamList[] =
6880 "|stdlib.h|";
6881 /*
6882 * Machine/OS name selection pattern
6883 */
6884 #define apzUltrix_Atexit_ParamMachs (const char**)NULL
6885
6886 /*
6887 * content selection pattern - do fix if pattern found
6888 */
6889 tSCC zUltrix_Atexit_ParamSelect0[] =
6890 "atexit\\(.*\\(\\)";
6891
6892 #define ULTRIX_ATEXIT_PARAM_TEST_CT 1
6893 static tTestDesc aUltrix_Atexit_ParamTests[] = {
6894 { TT_EGREP, zUltrix_Atexit_ParamSelect0, (regex_t*)NULL }, };
6895
6896 /*
6897 * Fix Command Arguments for Ultrix_Atexit_Param
6898 */
6899 static const char* apzUltrix_Atexit_ParamPatch[] = {
6900 "format",
6901 "atexit( void (*__func)( void )",
6902 (char*)NULL };
6903
6904 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6905 *
6906 * Description of Ultrix_Atof_Param fix
6907 */
6908 tSCC zUltrix_Atof_ParamName[] =
6909 "ultrix_atof_param";
6910
6911 /*
6912 * File name selection pattern
6913 */
6914 tSCC zUltrix_Atof_ParamList[] =
6915 "|math.h|";
6916 /*
6917 * Machine/OS name selection pattern
6918 */
6919 #define apzUltrix_Atof_ParamMachs (const char**)NULL
6920
6921 /*
6922 * content selection pattern - do fix if pattern found
6923 */
6924 tSCC zUltrix_Atof_ParamSelect0[] =
6925 "atof\\([ \t]*char";
6926
6927 #define ULTRIX_ATOF_PARAM_TEST_CT 1
6928 static tTestDesc aUltrix_Atof_ParamTests[] = {
6929 { TT_EGREP, zUltrix_Atof_ParamSelect0, (regex_t*)NULL }, };
6930
6931 /*
6932 * Fix Command Arguments for Ultrix_Atof_Param
6933 */
6934 static const char* apzUltrix_Atof_ParamPatch[] = {
6935 "format",
6936 "atof(const char",
6937 (char*)NULL };
6938
6939 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6940 *
6941 * Description of Ultrix_Const fix
6942 */
6943 tSCC zUltrix_ConstName[] =
6944 "ultrix_const";
6945
6946 /*
6947 * File name selection pattern
6948 */
6949 tSCC zUltrix_ConstList[] =
6950 "|stdio.h|";
6951 /*
6952 * Machine/OS name selection pattern
6953 */
6954 #define apzUltrix_ConstMachs (const char**)NULL
6955
6956 /*
6957 * content selection pattern - do fix if pattern found
6958 */
6959 tSCC zUltrix_ConstSelect0[] =
6960 "perror\\( char \\*";
6961
6962 #define ULTRIX_CONST_TEST_CT 1
6963 static tTestDesc aUltrix_ConstTests[] = {
6964 { TT_EGREP, zUltrix_ConstSelect0, (regex_t*)NULL }, };
6965
6966 /*
6967 * Fix Command Arguments for Ultrix_Const
6968 */
6969 static const char* apzUltrix_ConstPatch[] = {
6970 "format",
6971 "%1 const %3 *__",
6972 "([ \t*](perror|fputs|fwrite|scanf|fscanf)\\(.*)[ \t]+(char|void) \\*__",
6973 (char*)NULL };
6974
6975 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6976 *
6977 * Description of Ultrix_Const2 fix
6978 */
6979 tSCC zUltrix_Const2Name[] =
6980 "ultrix_const2";
6981
6982 /*
6983 * File name selection pattern
6984 */
6985 tSCC zUltrix_Const2List[] =
6986 "|stdio.h|";
6987 /*
6988 * Machine/OS name selection pattern
6989 */
6990 #define apzUltrix_Const2Machs (const char**)NULL
6991
6992 /*
6993 * content selection pattern - do fix if pattern found
6994 */
6995 tSCC zUltrix_Const2Select0[] =
6996 "\\*fopen\\( char \\*";
6997
6998 #define ULTRIX_CONST2_TEST_CT 1
6999 static tTestDesc aUltrix_Const2Tests[] = {
7000 { TT_EGREP, zUltrix_Const2Select0, (regex_t*)NULL }, };
7001
7002 /*
7003 * Fix Command Arguments for Ultrix_Const2
7004 */
7005 static const char* apzUltrix_Const2Patch[] = {
7006 "format",
7007 "%1( const char *%3, const char *",
7008 "([ \t*](fopen|sscanf|popen|tempnam))\\([ \t]*char[ \t]*\\*([^,]*),[ \t]*char[ \t]*\\*[ \t]*",
7009 (char*)NULL };
7010
7011 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7012 *
7013 * Description of Ultrix_Const3 fix
7014 */
7015 tSCC zUltrix_Const3Name[] =
7016 "ultrix_const3";
7017
7018 /*
7019 * File name selection pattern
7020 */
7021 tSCC zUltrix_Const3List[] =
7022 "|stdio.h|";
7023 /*
7024 * Machine/OS name selection pattern
7025 */
7026 #define apzUltrix_Const3Machs (const char**)NULL
7027
7028 /*
7029 * content selection pattern - do fix if pattern found
7030 */
7031 tSCC zUltrix_Const3Select0[] =
7032 "fdopen\\( .*, char \\*";
7033
7034 #define ULTRIX_CONST3_TEST_CT 1
7035 static tTestDesc aUltrix_Const3Tests[] = {
7036 { TT_EGREP, zUltrix_Const3Select0, (regex_t*)NULL }, };
7037
7038 /*
7039 * Fix Command Arguments for Ultrix_Const3
7040 */
7041 static const char* apzUltrix_Const3Patch[] = {
7042 "format",
7043 "%1 const %3 *__",
7044 "([ \t*](fdopen)\\(.*)[ \t]+(char|void) \\*__",
7045 (char*)NULL };
7046
7047 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7048 *
7049 * Description of Ultrix_Fix_Fixproto fix
7050 */
7051 tSCC zUltrix_Fix_FixprotoName[] =
7052 "ultrix_fix_fixproto";
7053
7054 /*
7055 * File name selection pattern
7056 */
7057 tSCC zUltrix_Fix_FixprotoList[] =
7058 "|sys/utsname.h|";
7059 /*
7060 * Machine/OS name selection pattern
7061 */
7062 #define apzUltrix_Fix_FixprotoMachs (const char**)NULL
7063
7064 /*
7065 * content selection pattern - do fix if pattern found
7066 */
7067 tSCC zUltrix_Fix_FixprotoSelect0[] =
7068 "ULTRIX";
7069
7070 #define ULTRIX_FIX_FIXPROTO_TEST_CT 1
7071 static tTestDesc aUltrix_Fix_FixprotoTests[] = {
7072 { TT_EGREP, zUltrix_Fix_FixprotoSelect0, (regex_t*)NULL }, };
7073
7074 /*
7075 * Fix Command Arguments for Ultrix_Fix_Fixproto
7076 */
7077 static const char* apzUltrix_Fix_FixprotoPatch[] = {
7078 "format",
7079 "struct utsname;\n\
7080 %0",
7081 "^[ \t]*extern[ \t]*int[ \t]*uname\\(\\);",
7082 (char*)NULL };
7083
7084 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7085 *
7086 * Description of Ultrix_Ifdef fix
7087 */
7088 tSCC zUltrix_IfdefName[] =
7089 "ultrix_ifdef";
7090
7091 /*
7092 * File name selection pattern
7093 */
7094 tSCC zUltrix_IfdefList[] =
7095 "|sys/file.h|";
7096 /*
7097 * Machine/OS name selection pattern
7098 */
7099 #define apzUltrix_IfdefMachs (const char**)NULL
7100
7101 /*
7102 * content selection pattern - do fix if pattern found
7103 */
7104 tSCC zUltrix_IfdefSelect0[] =
7105 "^#ifdef KERNEL[ \t]+&&";
7106
7107 #define ULTRIX_IFDEF_TEST_CT 1
7108 static tTestDesc aUltrix_IfdefTests[] = {
7109 { TT_EGREP, zUltrix_IfdefSelect0, (regex_t*)NULL }, };
7110
7111 /*
7112 * Fix Command Arguments for Ultrix_Ifdef
7113 */
7114 static const char* apzUltrix_IfdefPatch[] = {
7115 "format",
7116 "#if defined(KERNEL) &&",
7117 (char*)NULL };
7118
7119 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7120 *
7121 * Description of Ultrix_Locale fix
7122 */
7123 tSCC zUltrix_LocaleName[] =
7124 "ultrix_locale";
7125
7126 /*
7127 * File name selection pattern
7128 */
7129 tSCC zUltrix_LocaleList[] =
7130 "|locale.h|";
7131 /*
7132 * Machine/OS name selection pattern
7133 */
7134 #define apzUltrix_LocaleMachs (const char**)NULL
7135
7136 /*
7137 * content selection pattern - do fix if pattern found
7138 */
7139 tSCC zUltrix_LocaleSelect0[] =
7140 "@\\(#\\)locale\\.h.*6\\.1.*\\(ULTRIX\\)";
7141
7142 #define ULTRIX_LOCALE_TEST_CT 1
7143 static tTestDesc aUltrix_LocaleTests[] = {
7144 { TT_EGREP, zUltrix_LocaleSelect0, (regex_t*)NULL }, };
7145
7146 /*
7147 * Fix Command Arguments for Ultrix_Locale
7148 */
7149 static const char* apzUltrix_LocalePatch[] = {
7150 "wrap",
7151 (char*)NULL };
7152
7153 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7154 *
7155 * Description of Ultrix_Math_Ifdef fix
7156 */
7157 tSCC zUltrix_Math_IfdefName[] =
7158 "ultrix_math_ifdef";
7159
7160 /*
7161 * File name selection pattern
7162 */
7163 tSCC zUltrix_Math_IfdefList[] =
7164 "|sys/limits.h|float.h|math.h|";
7165 /*
7166 * Machine/OS name selection pattern
7167 */
7168 #define apzUltrix_Math_IfdefMachs (const char**)NULL
7169
7170 /*
7171 * content selection pattern - do fix if pattern found
7172 */
7173 tSCC zUltrix_Math_IfdefSelect0[] =
7174 "^(#if.*)\\|\\|[ \t]+CC\\$[a-z]+";
7175
7176 #define ULTRIX_MATH_IFDEF_TEST_CT 1
7177 static tTestDesc aUltrix_Math_IfdefTests[] = {
7178 { TT_EGREP, zUltrix_Math_IfdefSelect0, (regex_t*)NULL }, };
7179
7180 /*
7181 * Fix Command Arguments for Ultrix_Math_Ifdef
7182 */
7183 static const char* apzUltrix_Math_IfdefPatch[] = {
7184 "format",
7185 "%1",
7186 (char*)NULL };
7187
7188 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7189 *
7190 * Description of Ultrix_Nested_Ioctl fix
7191 */
7192 tSCC zUltrix_Nested_IoctlName[] =
7193 "ultrix_nested_ioctl";
7194
7195 /*
7196 * File name selection pattern
7197 */
7198 tSCC zUltrix_Nested_IoctlList[] =
7199 "|sys/ioctl.h|";
7200 /*
7201 * Machine/OS name selection pattern
7202 */
7203 #define apzUltrix_Nested_IoctlMachs (const char**)NULL
7204
7205 /*
7206 * content selection pattern - do fix if pattern found
7207 */
7208 tSCC zUltrix_Nested_IoctlSelect0[] =
7209 "^/\\* #define SIOCSCREEN";
7210
7211 #define ULTRIX_NESTED_IOCTL_TEST_CT 1
7212 static tTestDesc aUltrix_Nested_IoctlTests[] = {
7213 { TT_EGREP, zUltrix_Nested_IoctlSelect0, (regex_t*)NULL }, };
7214
7215 /*
7216 * Fix Command Arguments for Ultrix_Nested_Ioctl
7217 */
7218 static const char* apzUltrix_Nested_IoctlPatch[] = { "sed",
7219 "-e", "/^\\/\\* #define SIOCSCREEN/s@/\\* screend@*//* screend@",
7220 (char*)NULL };
7221
7222 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7223 *
7224 * Description of Ultrix_Nested_Svc fix
7225 */
7226 tSCC zUltrix_Nested_SvcName[] =
7227 "ultrix_nested_svc";
7228
7229 /*
7230 * File name selection pattern
7231 */
7232 tSCC zUltrix_Nested_SvcList[] =
7233 "|rpc/svc.h|";
7234 /*
7235 * Machine/OS name selection pattern
7236 */
7237 #define apzUltrix_Nested_SvcMachs (const char**)NULL
7238
7239 /*
7240 * content selection pattern - do fix if pattern found
7241 */
7242 tSCC zUltrix_Nested_SvcSelect0[] =
7243 "^ \\*[ \t]*int protocol; */\\*";
7244
7245 #define ULTRIX_NESTED_SVC_TEST_CT 1
7246 static tTestDesc aUltrix_Nested_SvcTests[] = {
7247 { TT_EGREP, zUltrix_Nested_SvcSelect0, (regex_t*)NULL }, };
7248
7249 /*
7250 * Fix Command Arguments for Ultrix_Nested_Svc
7251 */
7252 static const char* apzUltrix_Nested_SvcPatch[] = { "sed",
7253 "-e", "s@^\\( \\*\tint protocol; \\)/\\*@\\1*/ /*@",
7254 (char*)NULL };
7255
7256 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7257 *
7258 * Description of Ultrix_Stat fix
7259 */
7260 tSCC zUltrix_StatName[] =
7261 "ultrix_stat";
7262
7263 /*
7264 * File name selection pattern
7265 */
7266 tSCC zUltrix_StatList[] =
7267 "|sys/stat.h|";
7268 /*
7269 * Machine/OS name selection pattern
7270 */
7271 #define apzUltrix_StatMachs (const char**)NULL
7272
7273 /*
7274 * content selection pattern - do fix if pattern found
7275 */
7276 tSCC zUltrix_StatSelect0[] =
7277 "@\\(#\\)stat\\.h.*6\\.1.*\\(ULTRIX\\)";
7278
7279 #define ULTRIX_STAT_TEST_CT 1
7280 static tTestDesc aUltrix_StatTests[] = {
7281 { TT_EGREP, zUltrix_StatSelect0, (regex_t*)NULL }, };
7282
7283 /*
7284 * Fix Command Arguments for Ultrix_Stat
7285 */
7286 static const char* apzUltrix_StatPatch[] = { "sed",
7287 "-e", "/^#define[ \t]S_IFPORT[ \t]*S_IFIFO$/a\\\n\
7288 \\\n\
7289 /* macro to test for symbolic link */\\\n\
7290 #define S_ISLNK(mode) (((mode) & S_IFMT) == S_IFLNK)\\\n\n",
7291 "-e", "/^[ \t]*fstat(),$/a\\\n\
7292 \tlstat(),\n",
7293 (char*)NULL };
7294
7295 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7296 *
7297 * Description of Ultrix_Static fix
7298 */
7299 tSCC zUltrix_StaticName[] =
7300 "ultrix_static";
7301
7302 /*
7303 * File name selection pattern
7304 */
7305 tSCC zUltrix_StaticList[] =
7306 "|machine/cpu.h|";
7307 /*
7308 * Machine/OS name selection pattern
7309 */
7310 #define apzUltrix_StaticMachs (const char**)NULL
7311
7312 /*
7313 * content selection pattern - do fix if pattern found
7314 */
7315 tSCC zUltrix_StaticSelect0[] =
7316 "#include \"r[34]_cpu";
7317
7318 #define ULTRIX_STATIC_TEST_CT 1
7319 static tTestDesc aUltrix_StaticTests[] = {
7320 { TT_EGREP, zUltrix_StaticSelect0, (regex_t*)NULL }, };
7321
7322 /*
7323 * Fix Command Arguments for Ultrix_Static
7324 */
7325 static const char* apzUltrix_StaticPatch[] = { "sed",
7326 "-e", "s/^static struct tlb_pid_state/struct tlb_pid_state/",
7327 "-e", "s/^#include \"r3_cpu\\.h\"$/#include <machine\\/r3_cpu\\.h>/",
7328 "-e", "s/^#include \"r4_cpu\\.h\"$/#include <machine\\/r4_cpu\\.h>/",
7329 (char*)NULL };
7330
7331 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7332 *
7333 * Description of Ultrix_Stdlib fix
7334 */
7335 tSCC zUltrix_StdlibName[] =
7336 "ultrix_stdlib";
7337
7338 /*
7339 * File name selection pattern
7340 */
7341 tSCC zUltrix_StdlibList[] =
7342 "|stdlib.h|";
7343 /*
7344 * Machine/OS name selection pattern
7345 */
7346 #define apzUltrix_StdlibMachs (const char**)NULL
7347
7348 /*
7349 * content selection pattern - do fix if pattern found
7350 */
7351 tSCC zUltrix_StdlibSelect0[] =
7352 "@\\(#\\)stdlib\\.h.*6\\.1.*\\(ULTRIX\\)";
7353
7354 #define ULTRIX_STDLIB_TEST_CT 1
7355 static tTestDesc aUltrix_StdlibTests[] = {
7356 { TT_EGREP, zUltrix_StdlibSelect0, (regex_t*)NULL }, };
7357
7358 /*
7359 * Fix Command Arguments for Ultrix_Stdlib
7360 */
7361 static const char* apzUltrix_StdlibPatch[] = { "sed",
7362 "-e", "/^char.*getenv( const char .* );.*$/a\\\n\
7363 int\t\tsetenv( const char *__name, const char *__val, int __ovrwrt );\\\n\
7364 void\t\tunsetenv( const char *__name );\\\n\
7365 int\t\tputenv( char *__s );\n",
7366 "-e", "/^char.*getenv();.*$/a\\\n\
7367 int\tsetenv();\\\n\
7368 void\tunsetenv();\\\n\
7369 int\tputenv();\n",
7370 (char*)NULL };
7371
7372 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7373 *
7374 * Description of Ultrix_Strings fix
7375 */
7376 tSCC zUltrix_StringsName[] =
7377 "ultrix_strings";
7378
7379 /*
7380 * File name selection pattern
7381 */
7382 tSCC zUltrix_StringsList[] =
7383 "|strings.h|";
7384 /*
7385 * Machine/OS name selection pattern
7386 */
7387 #define apzUltrix_StringsMachs (const char**)NULL
7388
7389 /*
7390 * content selection pattern - do fix if pattern found
7391 */
7392 tSCC zUltrix_StringsSelect0[] =
7393 "@\\(#\\)strings\\.h.*6\\.1.*\\(ULTRIX\\)";
7394
7395 #define ULTRIX_STRINGS_TEST_CT 1
7396 static tTestDesc aUltrix_StringsTests[] = {
7397 { TT_EGREP, zUltrix_StringsSelect0, (regex_t*)NULL }, };
7398
7399 /*
7400 * Fix Command Arguments for Ultrix_Strings
7401 */
7402 static const char* apzUltrix_StringsPatch[] = {
7403 "wrap",
7404 (char*)NULL };
7405
7406 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7407 *
7408 * Description of Ultrix_Strings2 fix
7409 */
7410 tSCC zUltrix_Strings2Name[] =
7411 "ultrix_strings2";
7412
7413 /*
7414 * File name selection pattern
7415 */
7416 tSCC zUltrix_Strings2List[] =
7417 "|strings.h|";
7418 /*
7419 * Machine/OS name selection pattern
7420 */
7421 #define apzUltrix_Strings2Machs (const char**)NULL
7422
7423 /*
7424 * content selection pattern - do fix if pattern found
7425 */
7426 tSCC zUltrix_Strings2Select0[] =
7427 "@\\(#\\)strings\\.h.*6\\.1.*\\(ULTRIX\\)";
7428
7429 #define ULTRIX_STRINGS2_TEST_CT 1
7430 static tTestDesc aUltrix_Strings2Tests[] = {
7431 { TT_EGREP, zUltrix_Strings2Select0, (regex_t*)NULL }, };
7432
7433 /*
7434 * Fix Command Arguments for Ultrix_Strings2
7435 */
7436 static const char* apzUltrix_Strings2Patch[] = { "sed",
7437 "-e", "/^.*strncmp( const .* );.*/a\\\n\
7438 \\\n\
7439 extern int\\\n\
7440 \tstrcasecmp( const char *__s1, const char *__s2),\\\n\
7441 \tstrncasecmp( const char *__s1, const char *__s2, size_t __n );\n",
7442 "-e", "/^.*strncmp();.*/a\\\n\
7443 extern int\\\n\
7444 \tstrcasecmp(),\\\n\
7445 \tstrncasecmp();\n",
7446 (char*)NULL };
7447
7448 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7449 *
7450 * Description of Ultrix_Sys_Time fix
7451 */
7452 tSCC zUltrix_Sys_TimeName[] =
7453 "ultrix_sys_time";
7454
7455 /*
7456 * File name selection pattern
7457 */
7458 tSCC zUltrix_Sys_TimeList[] =
7459 "|sys/time.h|";
7460 /*
7461 * Machine/OS name selection pattern
7462 */
7463 #define apzUltrix_Sys_TimeMachs (const char**)NULL
7464
7465 /*
7466 * content selection pattern - do fix if pattern found
7467 */
7468 tSCC zUltrix_Sys_TimeSelect0[] =
7469 "@\\(#\\)time\\.h.*6\\.1.*\\(ULTRIX\\)";
7470
7471 #define ULTRIX_SYS_TIME_TEST_CT 1
7472 static tTestDesc aUltrix_Sys_TimeTests[] = {
7473 { TT_EGREP, zUltrix_Sys_TimeSelect0, (regex_t*)NULL }, };
7474
7475 /*
7476 * Fix Command Arguments for Ultrix_Sys_Time
7477 */
7478 static const char* apzUltrix_Sys_TimePatch[] = { "sed",
7479 "-e", "/^extern.*time_t.*time( time_t .* );.*$/a\\\n\
7480 \\\n\
7481 extern int adjtime(struct timeval *, struct timeval *);\\\n\
7482 extern int getitimer(int, struct itimerval *);\\\n\
7483 extern int setitimer(int, struct itimerval *, struct itimerval *);\\\n\
7484 extern int gettimeofday(struct timeval *, struct timezone *);\\\n\
7485 extern int settimeofday(struct timeval *, struct timezone *);\\\n\
7486 extern void profil(const void *, size_t, size_t, unsigned int);\\\n\
7487 extern int stime(const time_t *);\\\n\
7488 extern int utimes(const char *, const struct timeval[2]);\\\n\
7489 extern int select(int, fd_set *, fd_set *, fd_set *, struct timeval *);\n",
7490 "-e", "/^extern.*double.*difftime();.*$/a\\\n\
7491 extern\tint adjtime();\\\n\
7492 extern\tint getitimer();\\\n\
7493 extern\tint setitimer();\\\n\
7494 extern\tint gettimeofday();\\\n\
7495 extern\tint settimeofday();\\\n\
7496 extern\tvoid profil();\\\n\
7497 extern\tint stime();\\\n\
7498 extern\tint utimes();\\\n\
7499 extern\tint select();\n",
7500 (char*)NULL };
7501
7502 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7503 *
7504 * Description of Ultrix_Unistd fix
7505 */
7506 tSCC zUltrix_UnistdName[] =
7507 "ultrix_unistd";
7508
7509 /*
7510 * File name selection pattern
7511 */
7512 tSCC zUltrix_UnistdList[] =
7513 "|unistd.h|";
7514 /*
7515 * Machine/OS name selection pattern
7516 */
7517 #define apzUltrix_UnistdMachs (const char**)NULL
7518
7519 /*
7520 * content selection pattern - do fix if pattern found
7521 */
7522 tSCC zUltrix_UnistdSelect0[] =
7523 "@\\(#\\)unistd\\.h.*6\\.1.*\\(ULTRIX\\)";
7524
7525 #define ULTRIX_UNISTD_TEST_CT 1
7526 static tTestDesc aUltrix_UnistdTests[] = {
7527 { TT_EGREP, zUltrix_UnistdSelect0, (regex_t*)NULL }, };
7528
7529 /*
7530 * Fix Command Arguments for Ultrix_Unistd
7531 */
7532 static const char* apzUltrix_UnistdPatch[] = { "sed",
7533 "-e", "/^[ \t]*getgroups(),.*$/a\\\n\
7534 \tgetpagesize(),\n",
7535 "-e", "/^[ \t]*fork(),.*$/a\\\n\
7536 \tvfork(),\n",
7537 (char*)NULL };
7538
7539 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7540 *
7541 * Description of Unicosmk_Restrict fix
7542 */
7543 tSCC zUnicosmk_RestrictName[] =
7544 "unicosmk_restrict";
7545
7546 /*
7547 * File name selection pattern
7548 */
7549 tSCC zUnicosmk_RestrictList[] =
7550 "|stdio.h|stdlib.h|wchar.h|";
7551 /*
7552 * Machine/OS name selection pattern
7553 */
7554 tSCC* apzUnicosmk_RestrictMachs[] = {
7555 "*-*-unicosmk*",
7556 (const char*)NULL };
7557
7558 /*
7559 * content selection pattern - do fix if pattern found
7560 */
7561 tSCC zUnicosmk_RestrictSelect0[] =
7562 "(\\*[ \t]*)restrict([ \t]+)";
7563
7564 #define UNICOSMK_RESTRICT_TEST_CT 1
7565 static tTestDesc aUnicosmk_RestrictTests[] = {
7566 { TT_EGREP, zUnicosmk_RestrictSelect0, (regex_t*)NULL }, };
7567
7568 /*
7569 * Fix Command Arguments for Unicosmk_Restrict
7570 */
7571 static const char* apzUnicosmk_RestrictPatch[] = {
7572 "format",
7573 "%1__restrict__%2",
7574 (char*)NULL };
7575
7576 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7577 *
7578 * Description of Uw7_Byteorder_Fix fix
7579 */
7580 tSCC zUw7_Byteorder_FixName[] =
7581 "uw7_byteorder_fix";
7582
7583 /*
7584 * File name selection pattern
7585 */
7586 tSCC zUw7_Byteorder_FixList[] =
7587 "|arpa/inet.h|";
7588 /*
7589 * Machine/OS name selection pattern
7590 */
7591 tSCC* apzUw7_Byteorder_FixMachs[] = {
7592 "*-*-sysv4*",
7593 "i?86-*-sysv5*",
7594 "i?86-*-udk*",
7595 "i?86-*-solaris2.[0-4]",
7596 "powerpcle-*-solaris2.[0-4]",
7597 "sparc-*-solaris2.[0-4]",
7598 (const char*)NULL };
7599
7600 /*
7601 * content selection pattern - do fix if pattern found
7602 */
7603 tSCC zUw7_Byteorder_FixSelect0[] =
7604 "in_port_t";
7605
7606 /*
7607 * perform the 'test' shell command - do fix on success
7608 */
7609 tSCC zUw7_Byteorder_FixTest0[] =
7610 "-f sys/byteorder.h";
7611
7612 #define UW7_BYTEORDER_FIX_TEST_CT 2
7613 static tTestDesc aUw7_Byteorder_FixTests[] = {
7614 { TT_TEST, zUw7_Byteorder_FixTest0, 0 /* unused */ },
7615 { TT_EGREP, zUw7_Byteorder_FixSelect0, (regex_t*)NULL }, };
7616
7617 /*
7618 * Fix Command Arguments for Uw7_Byteorder_Fix
7619 */
7620 static const char* apzUw7_Byteorder_FixPatch[] = {
7621 "format",
7622 "",
7623 "^extern.*[ \t](htons|ntohs).*\\(in_port_t\\).*;",
7624 (char*)NULL };
7625
7626 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7627 *
7628 * Description of Va_I960_Macro fix
7629 */
7630 tSCC zVa_I960_MacroName[] =
7631 "va_i960_macro";
7632
7633 /*
7634 * File name selection pattern
7635 */
7636 tSCC zVa_I960_MacroList[] =
7637 "|arch/i960/archI960.h|";
7638 /*
7639 * Machine/OS name selection pattern
7640 */
7641 #define apzVa_I960_MacroMachs (const char**)NULL
7642
7643 /*
7644 * content selection pattern - do fix if pattern found
7645 */
7646 tSCC zVa_I960_MacroSelect0[] =
7647 "__(vsiz|vali|vpad|alignof__)";
7648
7649 #define VA_I960_MACRO_TEST_CT 1
7650 static tTestDesc aVa_I960_MacroTests[] = {
7651 { TT_EGREP, zVa_I960_MacroSelect0, (regex_t*)NULL }, };
7652
7653 /*
7654 * Fix Command Arguments for Va_I960_Macro
7655 */
7656 static const char* apzVa_I960_MacroPatch[] = {
7657 "format",
7658 "__vx%1",
7659 (char*)NULL };
7660
7661 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7662 *
7663 * Description of Void_Null fix
7664 */
7665 tSCC zVoid_NullName[] =
7666 "void_null";
7667
7668 /*
7669 * File name selection pattern
7670 */
7671 tSCC zVoid_NullList[] =
7672 "|curses.h|dbm.h|locale.h|stdio.h|stdlib.h|string.h|time.h|unistd.h|sys/dir.h|sys/param.h|sys/types.h|";
7673 /*
7674 * Machine/OS name selection pattern
7675 */
7676 #define apzVoid_NullMachs (const char**)NULL
7677
7678 /*
7679 * content selection pattern - do fix if pattern found
7680 */
7681 tSCC zVoid_NullSelect0[] =
7682 "^#[ \t]*define[ \t]+NULL[ \t]+\\(\\(void[ \t]*\\*\\)0\\)";
7683
7684 /*
7685 * content bypass pattern - skip fix if pattern found
7686 */
7687 tSCC zVoid_NullBypass0[] =
7688 "__cplusplus";
7689
7690 #define VOID_NULL_TEST_CT 2
7691 static tTestDesc aVoid_NullTests[] = {
7692 { TT_NEGREP, zVoid_NullBypass0, (regex_t*)NULL },
7693 { TT_EGREP, zVoid_NullSelect0, (regex_t*)NULL }, };
7694
7695 /*
7696 * Fix Command Arguments for Void_Null
7697 */
7698 static const char* apzVoid_NullPatch[] = {
7699 "format",
7700 "#define NULL 0",
7701 (char*)NULL };
7702
7703 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7704 *
7705 * Description of Vxworks_Gcc_Problem fix
7706 */
7707 tSCC zVxworks_Gcc_ProblemName[] =
7708 "vxworks_gcc_problem";
7709
7710 /*
7711 * File name selection pattern
7712 */
7713 tSCC zVxworks_Gcc_ProblemList[] =
7714 "|types/vxTypesBase.h|";
7715 /*
7716 * Machine/OS name selection pattern
7717 */
7718 #define apzVxworks_Gcc_ProblemMachs (const char**)NULL
7719
7720 /*
7721 * content selection pattern - do fix if pattern found
7722 */
7723 tSCC zVxworks_Gcc_ProblemSelect0[] =
7724 "__GNUC_TYPEOF_FEATURE_BROKEN_USE_DEFAULT_UNTIL_FIXED__";
7725
7726 #define VXWORKS_GCC_PROBLEM_TEST_CT 1
7727 static tTestDesc aVxworks_Gcc_ProblemTests[] = {
7728 { TT_EGREP, zVxworks_Gcc_ProblemSelect0, (regex_t*)NULL }, };
7729
7730 /*
7731 * Fix Command Arguments for Vxworks_Gcc_Problem
7732 */
7733 static const char* apzVxworks_Gcc_ProblemPatch[] = { "sed",
7734 "-e", "s/#ifdef __GNUC_TYPEOF_FEATURE_BROKEN_USE_DEFAULT_UNTIL_FIXED__/#if 1/",
7735 "-e", "/[ \t]size_t/i\\\n\
7736 #ifndef _GCC_SIZE_T\\\n\
7737 #define _GCC_SIZE_T\n",
7738 "-e", "/[ \t]size_t/a\\\n\
7739 #endif\n",
7740 "-e", "/[ \t]ptrdiff_t/i\\\n\
7741 #ifndef _GCC_PTRDIFF_T\\\n\
7742 #define _GCC_PTRDIFF_T\n",
7743 "-e", "/[ \t]ptrdiff_t/a\\\n\
7744 #endif\n",
7745 "-e", "/[ \t]wchar_t/i\\\n\
7746 #ifndef _GCC_WCHAR_T\\\n\
7747 #define _GCC_WCHAR_T\n",
7748 "-e", "/[ \t]wchar_t/a\\\n\
7749 #endif\n",
7750 (char*)NULL };
7751
7752 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7753 *
7754 * Description of Vxworks_Needs_Vxtypes fix
7755 */
7756 tSCC zVxworks_Needs_VxtypesName[] =
7757 "vxworks_needs_vxtypes";
7758
7759 /*
7760 * File name selection pattern
7761 */
7762 tSCC zVxworks_Needs_VxtypesList[] =
7763 "|time.h|";
7764 /*
7765 * Machine/OS name selection pattern
7766 */
7767 #define apzVxworks_Needs_VxtypesMachs (const char**)NULL
7768
7769 /*
7770 * content selection pattern - do fix if pattern found
7771 */
7772 tSCC zVxworks_Needs_VxtypesSelect0[] =
7773 "uint_t([ \t]+_clocks_per_sec)";
7774
7775 #define VXWORKS_NEEDS_VXTYPES_TEST_CT 1
7776 static tTestDesc aVxworks_Needs_VxtypesTests[] = {
7777 { TT_EGREP, zVxworks_Needs_VxtypesSelect0, (regex_t*)NULL }, };
7778
7779 /*
7780 * Fix Command Arguments for Vxworks_Needs_Vxtypes
7781 */
7782 static const char* apzVxworks_Needs_VxtypesPatch[] = {
7783 "format",
7784 "unsigned int%1",
7785 (char*)NULL };
7786
7787 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7788 *
7789 * Description of Vxworks_Needs_Vxworks fix
7790 */
7791 tSCC zVxworks_Needs_VxworksName[] =
7792 "vxworks_needs_vxworks";
7793
7794 /*
7795 * File name selection pattern
7796 */
7797 tSCC zVxworks_Needs_VxworksList[] =
7798 "|sys/stat.h|";
7799 /*
7800 * Machine/OS name selection pattern
7801 */
7802 #define apzVxworks_Needs_VxworksMachs (const char**)NULL
7803
7804 /*
7805 * content selection pattern - do fix if pattern found
7806 */
7807 tSCC zVxworks_Needs_VxworksSelect0[] =
7808 "#[ \t]define[ \t]+__INCstath";
7809
7810 /*
7811 * perform the 'test' shell command - do fix on success
7812 */
7813 tSCC zVxworks_Needs_VxworksTest0[] =
7814 " -r types/vxTypesOld.h";
7815 tSCC zVxworks_Needs_VxworksTest1[] =
7816 " -n \"`egrep '#include' $file`\"";
7817 tSCC zVxworks_Needs_VxworksTest2[] =
7818 " -n \"`egrep ULONG $file`\"";
7819
7820 #define VXWORKS_NEEDS_VXWORKS_TEST_CT 4
7821 static tTestDesc aVxworks_Needs_VxworksTests[] = {
7822 { TT_TEST, zVxworks_Needs_VxworksTest0, 0 /* unused */ },
7823 { TT_TEST, zVxworks_Needs_VxworksTest1, 0 /* unused */ },
7824 { TT_TEST, zVxworks_Needs_VxworksTest2, 0 /* unused */ },
7825 { TT_EGREP, zVxworks_Needs_VxworksSelect0, (regex_t*)NULL }, };
7826
7827 /*
7828 * Fix Command Arguments for Vxworks_Needs_Vxworks
7829 */
7830 static const char* apzVxworks_Needs_VxworksPatch[] = { "sed",
7831 "-e", "/#[ \t]define[ \t][ \t]*__INCstath/a\\\n\
7832 #include <types/vxTypesOld.h>\n",
7833 (char*)NULL };
7834
7835 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7836 *
7837 * Description of Vxworks_Time fix
7838 */
7839 tSCC zVxworks_TimeName[] =
7840 "vxworks_time";
7841
7842 /*
7843 * File name selection pattern
7844 */
7845 tSCC zVxworks_TimeList[] =
7846 "|time.h|";
7847 /*
7848 * Machine/OS name selection pattern
7849 */
7850 #define apzVxworks_TimeMachs (const char**)NULL
7851
7852 /*
7853 * content selection pattern - do fix if pattern found
7854 */
7855 tSCC zVxworks_TimeSelect0[] =
7856 "#[ \t]*define[ \t]+VOIDFUNCPTR[ \t].*";
7857
7858 /*
7859 * perform the 'test' shell command - do fix on success
7860 */
7861 tSCC zVxworks_TimeTest0[] =
7862 " -r vxWorks.h";
7863
7864 #define VXWORKS_TIME_TEST_CT 2
7865 static tTestDesc aVxworks_TimeTests[] = {
7866 { TT_TEST, zVxworks_TimeTest0, 0 /* unused */ },
7867 { TT_EGREP, zVxworks_TimeSelect0, (regex_t*)NULL }, };
7868
7869 /*
7870 * Fix Command Arguments for Vxworks_Time
7871 */
7872 static const char* apzVxworks_TimePatch[] = {
7873 "format",
7874 "#ifndef __gcc_VOIDFUNCPTR_defined\n\
7875 #ifdef __cplusplus\n\
7876 typedef void (*__gcc_VOIDFUNCPTR) (...);\n\
7877 #else\n\
7878 typedef void (*__gcc_VOIDFUNCPTR) ();\n\
7879 #endif\n\
7880 #define __gcc_VOIDFUNCPTR_defined\n\
7881 #endif\n\
7882 #define VOIDFUNCPTR __gcc_VOIDFUNCPTR",
7883 (char*)NULL };
7884
7885 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7886 *
7887 * Description of Windiss_Math1 fix
7888 */
7889 tSCC zWindiss_Math1Name[] =
7890 "windiss_math1";
7891
7892 /*
7893 * File name selection pattern
7894 */
7895 tSCC zWindiss_Math1List[] =
7896 "|math.h|";
7897 /*
7898 * Machine/OS name selection pattern
7899 */
7900 tSCC* apzWindiss_Math1Machs[] = {
7901 "*-*-windiss",
7902 (const char*)NULL };
7903 #define WINDISS_MATH1_TEST_CT 0
7904 #define aWindiss_Math1Tests (tTestDesc*)NULL
7905
7906 /*
7907 * Fix Command Arguments for Windiss_Math1
7908 */
7909 static const char* apzWindiss_Math1Patch[] = { "sed",
7910 "-e", "s|inline long double cosl.*|#ifndef __GNUC__|",
7911 (char*)NULL };
7912
7913 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7914 *
7915 * Description of Windiss_Math2 fix
7916 */
7917 tSCC zWindiss_Math2Name[] =
7918 "windiss_math2";
7919
7920 /*
7921 * File name selection pattern
7922 */
7923 tSCC zWindiss_Math2List[] =
7924 "|math.h|";
7925 /*
7926 * Machine/OS name selection pattern
7927 */
7928 tSCC* apzWindiss_Math2Machs[] = {
7929 "*-*-windiss",
7930 (const char*)NULL };
7931 #define WINDISS_MATH2_TEST_CT 0
7932 #define aWindiss_Math2Tests (tTestDesc*)NULL
7933
7934 /*
7935 * Fix Command Arguments for Windiss_Math2
7936 */
7937 static const char* apzWindiss_Math2Patch[] = { "sed",
7938 "-e", "s|/\\* long double declarations \\*/|#endif /* __GNUC__ */|",
7939 (char*)NULL };
7940
7941 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7942 *
7943 * Description of Windiss_Valist fix
7944 */
7945 tSCC zWindiss_ValistName[] =
7946 "windiss_valist";
7947
7948 /*
7949 * File name selection pattern
7950 */
7951 #define zWindiss_ValistList (char*)NULL
7952 /*
7953 * Machine/OS name selection pattern
7954 */
7955 tSCC* apzWindiss_ValistMachs[] = {
7956 "*-*-windiss",
7957 (const char*)NULL };
7958
7959 /*
7960 * content selection pattern - do fix if pattern found
7961 */
7962 tSCC zWindiss_ValistSelect0[] =
7963 "(#include.*)diab/va_list.h";
7964
7965 #define WINDISS_VALIST_TEST_CT 1
7966 static tTestDesc aWindiss_ValistTests[] = {
7967 { TT_EGREP, zWindiss_ValistSelect0, (regex_t*)NULL }, };
7968
7969 /*
7970 * Fix Command Arguments for Windiss_Valist
7971 */
7972 static const char* apzWindiss_ValistPatch[] = { "sed",
7973 "-e", "s|diab/va_list.h|stdarg.h|",
7974 (char*)NULL };
7975
7976 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7977 *
7978 * Description of X11_Class fix
7979 */
7980 tSCC zX11_ClassName[] =
7981 "x11_class";
7982
7983 /*
7984 * File name selection pattern
7985 */
7986 tSCC zX11_ClassList[] =
7987 "|X11/ShellP.h|";
7988 /*
7989 * Machine/OS name selection pattern
7990 */
7991 #define apzX11_ClassMachs (const char**)NULL
7992
7993 /*
7994 * content selection pattern - do fix if pattern found
7995 */
7996 tSCC zX11_ClassSelect0[] =
7997 "^([ \t]*char \\*)class;(.*)";
7998
7999 /*
8000 * content bypass pattern - skip fix if pattern found
8001 */
8002 tSCC zX11_ClassBypass0[] =
8003 "__cplusplus";
8004
8005 #define X11_CLASS_TEST_CT 2
8006 static tTestDesc aX11_ClassTests[] = {
8007 { TT_NEGREP, zX11_ClassBypass0, (regex_t*)NULL },
8008 { TT_EGREP, zX11_ClassSelect0, (regex_t*)NULL }, };
8009
8010 /*
8011 * Fix Command Arguments for X11_Class
8012 */
8013 static const char* apzX11_ClassPatch[] = {
8014 "format",
8015 "#ifdef __cplusplus\n\
8016 %1c_class;%2\n\
8017 #else\n\
8018 %1class;%2\n\
8019 #endif",
8020 (char*)NULL };
8021
8022 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8023 *
8024 * Description of X11_Class_Usage fix
8025 */
8026 tSCC zX11_Class_UsageName[] =
8027 "x11_class_usage";
8028
8029 /*
8030 * File name selection pattern
8031 */
8032 tSCC zX11_Class_UsageList[] =
8033 "|Xm/BaseClassI.h|";
8034 /*
8035 * Machine/OS name selection pattern
8036 */
8037 #define apzX11_Class_UsageMachs (const char**)NULL
8038
8039 /*
8040 * content selection pattern - do fix if pattern found
8041 */
8042 tSCC zX11_Class_UsageSelect0[] =
8043 " class\\)";
8044
8045 /*
8046 * content bypass pattern - skip fix if pattern found
8047 */
8048 tSCC zX11_Class_UsageBypass0[] =
8049 "__cplusplus";
8050
8051 #define X11_CLASS_USAGE_TEST_CT 2
8052 static tTestDesc aX11_Class_UsageTests[] = {
8053 { TT_NEGREP, zX11_Class_UsageBypass0, (regex_t*)NULL },
8054 { TT_EGREP, zX11_Class_UsageSelect0, (regex_t*)NULL }, };
8055
8056 /*
8057 * Fix Command Arguments for X11_Class_Usage
8058 */
8059 static const char* apzX11_Class_UsagePatch[] = {
8060 "format",
8061 " c_class)",
8062 (char*)NULL };
8063
8064 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8065 *
8066 * Description of X11_New fix
8067 */
8068 tSCC zX11_NewName[] =
8069 "x11_new";
8070
8071 /*
8072 * File name selection pattern
8073 */
8074 tSCC zX11_NewList[] =
8075 "|Xm/Traversal.h|";
8076 /*
8077 * Machine/OS name selection pattern
8078 */
8079 #define apzX11_NewMachs (const char**)NULL
8080
8081 /*
8082 * content bypass pattern - skip fix if pattern found
8083 */
8084 tSCC zX11_NewBypass0[] =
8085 "__cplusplus";
8086
8087 #define X11_NEW_TEST_CT 1
8088 static tTestDesc aX11_NewTests[] = {
8089 { TT_NEGREP, zX11_NewBypass0, (regex_t*)NULL }, };
8090
8091 /*
8092 * Fix Command Arguments for X11_New
8093 */
8094 static const char* apzX11_NewPatch[] = { "sed",
8095 "-e", "/Widget\told, new;/i\\\n\
8096 #ifdef __cplusplus\\\n\
8097 \tWidget\told, c_new;\\\n\
8098 #else\n",
8099 "-e", "/Widget\told, new;/a\\\n\
8100 #endif\n",
8101 "-e", "s/Widget new,/Widget c_new,/g",
8102 (char*)NULL };
8103
8104 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8105 *
8106 * Description of X11_Sprintf fix
8107 */
8108 tSCC zX11_SprintfName[] =
8109 "x11_sprintf";
8110
8111 /*
8112 * File name selection pattern
8113 */
8114 tSCC zX11_SprintfList[] =
8115 "|X11/Xmu.h|X11/Xmu/Xmu.h|";
8116 /*
8117 * Machine/OS name selection pattern
8118 */
8119 #define apzX11_SprintfMachs (const char**)NULL
8120
8121 /*
8122 * content selection pattern - do fix if pattern found
8123 */
8124 tSCC zX11_SprintfSelect0[] =
8125 "^extern char \\*\tsprintf\\(\\);$";
8126
8127 #define X11_SPRINTF_TEST_CT 1
8128 static tTestDesc aX11_SprintfTests[] = {
8129 { TT_EGREP, zX11_SprintfSelect0, (regex_t*)NULL }, };
8130
8131 /*
8132 * Fix Command Arguments for X11_Sprintf
8133 */
8134 static const char* apzX11_SprintfPatch[] = {
8135 "format",
8136 "#ifndef __STDC__\n\
8137 %0\n\
8138 #endif /* !defined __STDC__ */",
8139 (char*)NULL };
8140
8141
8142 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8143 *
8144 * List of all fixes
8145 */
8146 #define REGEX_COUNT 243
8147 #define MACH_LIST_SIZE_LIMIT 261
8148 #define FIX_COUNT 200
8149
8150 /*
8151 * Enumerate the fixes
8152 */
8153 typedef enum {
8154 AAB_DARWIN7_9_LONG_DOUBLE_FUNCS_FIXIDX,
8155 AAB_DARWIN7_9_LONG_DOUBLE_FUNCS_2_FIXIDX,
8156 AAB_FD_ZERO_ASM_POSIX_TYPES_H_FIXIDX,
8157 AAB_FD_ZERO_GNU_TYPES_H_FIXIDX,
8158 AAB_FD_ZERO_SELECTBITS_H_FIXIDX,
8159 AAB_SOLARIS_SYS_VARARGS_H_FIXIDX,
8160 AAB_SUN_MEMCPY_FIXIDX,
8161 AAB_ULTRIX_ANSI_COMPAT_FIXIDX,
8162 AAB_ULTRIX_LIMITS_FIXIDX,
8163 AAB_ULTRIX_MEMORY_FIXIDX,
8164 AAB_ULTRIX_STRING_FIXIDX,
8165 AIX_PTHREAD_FIXIDX,
8166 AIX_SYSMACHINE_FIXIDX,
8167 AIX_SYSWAIT_FIXIDX,
8168 AIX_SYSWAIT_2_FIXIDX,
8169 AIX_VOLATILE_FIXIDX,
8170 ALPHA___ASSERT_FIXIDX,
8171 ALPHA___EXTERN_PREFIX_FIXIDX,
8172 ALPHA___EXTERN_PREFIX_STANDARDS_FIXIDX,
8173 ALPHA___EXTERN_PREFIX_SYS_STAT_FIXIDX,
8174 ALPHA_ASSERT_FIXIDX,
8175 ALPHA_BAD_LVAL_FIXIDX,
8176 ALPHA_GETOPT_FIXIDX,
8177 ALPHA_PARENS_FIXIDX,
8178 ALPHA_PTHREAD_FIXIDX,
8179 ALPHA_PTHREAD_GCC_FIXIDX,
8180 ALPHA_PTHREAD_INIT_FIXIDX,
8181 ALPHA_SBRK_FIXIDX,
8182 ALPHA_WCHAR_FIXIDX,
8183 AVOID_BOOL_DEFINE_FIXIDX,
8184 AVOID_BOOL_TYPE_FIXIDX,
8185 AVOID_WCHAR_T_TYPE_FIXIDX,
8186 BAD_STRUCT_TERM_FIXIDX,
8187 BADQUOTE_FIXIDX,
8188 BROKEN_ASSERT_STDIO_FIXIDX,
8189 BROKEN_ASSERT_STDLIB_FIXIDX,
8190 BROKEN_CABS_FIXIDX,
8191 BROKEN_NAN_FIXIDX,
8192 BSD_STDIO_ATTRS_CONFLICT_FIXIDX,
8193 CTRL_QUOTES_DEF_FIXIDX,
8194 CTRL_QUOTES_USE_FIXIDX,
8195 CXX_UNREADY_FIXIDX,
8196 DARWIN_GCC4_BREAKAGE_FIXIDX,
8197 DARWIN_PRIVATE_EXTERN_FIXIDX,
8198 DEC_INTERN_ASM_FIXIDX,
8199 DJGPP_WCHAR_H_FIXIDX,
8200 ECD_CURSOR_FIXIDX,
8201 EXCEPTION_STRUCTURE_FIXIDX,
8202 FREEBSD_GCC3_BREAKAGE_FIXIDX,
8203 FREEBSD_GCC4_BREAKAGE_FIXIDX,
8204 GLIBC_MUTEX_INIT_FIXIDX,
8205 GNU_TYPES_FIXIDX,
8206 HP_INLINE_FIXIDX,
8207 HP_SYSFILE_FIXIDX,
8208 HPUX10_CPP_POW_INLINE_FIXIDX,
8209 HPUX11_CPP_POW_INLINE_FIXIDX,
8210 HPUX10_CTYPE_DECLARATIONS1_FIXIDX,
8211 HPUX10_CTYPE_DECLARATIONS2_FIXIDX,
8212 HPUX10_STDIO_DECLARATIONS_FIXIDX,
8213 HPUX11_ABS_FIXIDX,
8214 HPUX11_FABSF_FIXIDX,
8215 HPUX11_SIZE_T_FIXIDX,
8216 HPUX11_SNPRINTF_FIXIDX,
8217 HPUX11_UINT32_C_FIXIDX,
8218 HPUX11_VSNPRINTF_FIXIDX,
8219 HPUX8_BOGUS_INLINES_FIXIDX,
8220 HPUX_CTYPE_MACROS_FIXIDX,
8221 HPUX_HTONL_FIXIDX,
8222 HPUX_LONG_DOUBLE_FIXIDX,
8223 HPUX_SYSTIME_FIXIDX,
8224 HPUX_SPU_INFO_FIXIDX,
8225 HPUX_EXTERN_ERRNO_FIXIDX,
8226 HUGE_VAL_HEX_FIXIDX,
8227 HUGE_VALF_HEX_FIXIDX,
8228 HUGE_VALL_HEX_FIXIDX,
8229 INT_ABORT_FREE_AND_EXIT_FIXIDX,
8230 IO_QUOTES_DEF_FIXIDX,
8231 IO_QUOTES_USE_FIXIDX,
8232 IP_MISSING_SEMI_FIXIDX,
8233 IRIX___RESTRICT_FIXIDX,
8234 IRIX___GENERIC1_FIXIDX,
8235 IRIX___GENERIC2_FIXIDX,
8236 IRIX_ASM_APOSTROPHE_FIXIDX,
8237 IRIX_LIMITS_CONST_FIXIDX,
8238 IRIX_SOCKLEN_T_FIXIDX,
8239 IRIX_STDIO_VA_LIST_FIXIDX,
8240 IRIX_WCSFTIME_FIXIDX,
8241 ISC_FMOD_FIXIDX,
8242 ISC_OMITS_WITH_STDC_FIXIDX,
8243 KANDR_CONCAT_FIXIDX,
8244 LIBC1_G_VA_LIST_FIXIDX,
8245 LIBC1_IFDEFD_MEMX_FIXIDX,
8246 LINUX_IA64_UCONTEXT_FIXIDX,
8247 LYNXOS_NO_WARNING_IN_SYS_TIME_H_FIXIDX,
8248 LYNXOS_MISSING_PUTENV_FIXIDX,
8249 MACHINE_ANSI_H_VA_LIST_FIXIDX,
8250 MACHINE_NAME_FIXIDX,
8251 MATH_EXCEPTION_FIXIDX,
8252 MATH_HUGE_VAL_FROM_DBL_MAX_FIXIDX,
8253 NESTED_AUTH_DES_FIXIDX,
8254 NESTED_MOTOROLA_FIXIDX,
8255 NESTED_SYS_LIMITS_FIXIDX,
8256 NETBSD_EXTRA_SEMICOLON_FIXIDX,
8257 NEXT_MATH_PREFIX_FIXIDX,
8258 NEXT_TEMPLATE_FIXIDX,
8259 NEXT_VOLITILE_FIXIDX,
8260 NEXT_WAIT_UNION_FIXIDX,
8261 NODEENT_SYNTAX_FIXIDX,
8262 OBSTACK_LVALUE_CAST_FIXIDX,
8263 OSF_NAMESPACE_A_FIXIDX,
8264 OSF_NAMESPACE_C_FIXIDX,
8265 PTHREAD_PAGE_SIZE_FIXIDX,
8266 PTHREAD_INCOMPLETE_STRUCT_ARGUMENT_FIXIDX,
8267 READ_RET_TYPE_FIXIDX,
8268 RPC_XDR_LVALUE_CAST_A_FIXIDX,
8269 RPC_XDR_LVALUE_CAST_B_FIXIDX,
8270 RS6000_DOUBLE_FIXIDX,
8271 RS6000_FCHMOD_FIXIDX,
8272 RS6000_PARAM_FIXIDX,
8273 SCO_MATH_FIXIDX,
8274 SCO_REGSET_FIXIDX,
8275 SCO_STATIC_FUNC_FIXIDX,
8276 SCO_UTIME_FIXIDX,
8277 SOLARIS_MATH_1_FIXIDX,
8278 SOLARIS_MATH_2_FIXIDX,
8279 SOLARIS_MATH_3_FIXIDX,
8280 SOLARIS_MATH_4_FIXIDX,
8281 SOLARIS_MATH_5_FIXIDX,
8282 SOLARIS_MATH_6_FIXIDX,
8283 SOLARIS_MATH_7_FIXIDX,
8284 SOLARIS_MATH_8_FIXIDX,
8285 SOLARIS_MATH_9_FIXIDX,
8286 SOLARIS_MUTEX_INIT_1_FIXIDX,
8287 SOLARIS_MUTEX_INIT_2_FIXIDX,
8288 SOLARIS_RWLOCK_INIT_1_FIXIDX,
8289 SOLARIS_ONCE_INIT_1_FIXIDX,
8290 SOLARIS_ONCE_INIT_2_FIXIDX,
8291 SOLARIS_SOCKET_FIXIDX,
8292 SOLARIS_STDIO_TAG_FIXIDX,
8293 SOLARIS_UNISTD_FIXIDX,
8294 SOLARIS_WIDEC_FIXIDX,
8295 STATSSWTCH_FIXIDX,
8296 STDIO_STDARG_H_FIXIDX,
8297 STDIO_VA_LIST_FIXIDX,
8298 STDIO_VA_LIST_CLIENTS_FIXIDX,
8299 STRICT_ANSI_NOT_FIXIDX,
8300 STRICT_ANSI_NOT_CTD_FIXIDX,
8301 STRICT_ANSI_ONLY_FIXIDX,
8302 STRUCT_FILE_FIXIDX,
8303 STRUCT_SOCKADDR_FIXIDX,
8304 SUN_AUTH_PROTO_FIXIDX,
8305 SUN_BOGUS_IFDEF_FIXIDX,
8306 SUN_CATMACRO_FIXIDX,
8307 SUN_MALLOC_FIXIDX,
8308 SUN_RUSERS_SEMI_FIXIDX,
8309 SUN_SIGNAL_FIXIDX,
8310 SUNOS_STRLEN_FIXIDX,
8311 SVR4_DISABLE_OPT_FIXIDX,
8312 SVR4_GETCWD_FIXIDX,
8313 SVR4_KRNL_FIXIDX,
8314 SVR4_PROFIL_FIXIDX,
8315 SVR4_SIGHANDLER_TYPE_FIXIDX,
8316 SVR4_UNDECLARED_GETRNGE_FIXIDX,
8317 SYSV68_STRING_FIXIDX,
8318 SYSZ_STDLIB_FOR_SUN_FIXIDX,
8319 THREAD_KEYWORD_FIXIDX,
8320 TINFO_CPLUSPLUS_FIXIDX,
8321 ULTRIX_ATEXIT_PARAM_FIXIDX,
8322 ULTRIX_ATOF_PARAM_FIXIDX,
8323 ULTRIX_CONST_FIXIDX,
8324 ULTRIX_CONST2_FIXIDX,
8325 ULTRIX_CONST3_FIXIDX,
8326 ULTRIX_FIX_FIXPROTO_FIXIDX,
8327 ULTRIX_IFDEF_FIXIDX,
8328 ULTRIX_LOCALE_FIXIDX,
8329 ULTRIX_MATH_IFDEF_FIXIDX,
8330 ULTRIX_NESTED_IOCTL_FIXIDX,
8331 ULTRIX_NESTED_SVC_FIXIDX,
8332 ULTRIX_STAT_FIXIDX,
8333 ULTRIX_STATIC_FIXIDX,
8334 ULTRIX_STDLIB_FIXIDX,
8335 ULTRIX_STRINGS_FIXIDX,
8336 ULTRIX_STRINGS2_FIXIDX,
8337 ULTRIX_SYS_TIME_FIXIDX,
8338 ULTRIX_UNISTD_FIXIDX,
8339 UNICOSMK_RESTRICT_FIXIDX,
8340 UW7_BYTEORDER_FIX_FIXIDX,
8341 VA_I960_MACRO_FIXIDX,
8342 VOID_NULL_FIXIDX,
8343 VXWORKS_GCC_PROBLEM_FIXIDX,
8344 VXWORKS_NEEDS_VXTYPES_FIXIDX,
8345 VXWORKS_NEEDS_VXWORKS_FIXIDX,
8346 VXWORKS_TIME_FIXIDX,
8347 WINDISS_MATH1_FIXIDX,
8348 WINDISS_MATH2_FIXIDX,
8349 WINDISS_VALIST_FIXIDX,
8350 X11_CLASS_FIXIDX,
8351 X11_CLASS_USAGE_FIXIDX,
8352 X11_NEW_FIXIDX,
8353 X11_SPRINTF_FIXIDX
8354 } t_fixinc_idx;
8355
8356 tFixDesc fixDescList[ FIX_COUNT ] = {
8357 { zAab_Darwin7_9_Long_Double_FuncsName, zAab_Darwin7_9_Long_Double_FuncsList,
8358 apzAab_Darwin7_9_Long_Double_FuncsMachs,
8359 AAB_DARWIN7_9_LONG_DOUBLE_FUNCS_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
8360 aAab_Darwin7_9_Long_Double_FuncsTests, apzAab_Darwin7_9_Long_Double_FuncsPatch, 0 },
8361
8362 { zAab_Darwin7_9_Long_Double_Funcs_2Name, zAab_Darwin7_9_Long_Double_Funcs_2List,
8363 apzAab_Darwin7_9_Long_Double_Funcs_2Machs,
8364 AAB_DARWIN7_9_LONG_DOUBLE_FUNCS_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8365 aAab_Darwin7_9_Long_Double_Funcs_2Tests, apzAab_Darwin7_9_Long_Double_Funcs_2Patch, 0 },
8366
8367 { zAab_Fd_Zero_Asm_Posix_Types_HName, zAab_Fd_Zero_Asm_Posix_Types_HList,
8368 apzAab_Fd_Zero_Asm_Posix_Types_HMachs,
8369 AAB_FD_ZERO_ASM_POSIX_TYPES_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
8370 aAab_Fd_Zero_Asm_Posix_Types_HTests, apzAab_Fd_Zero_Asm_Posix_Types_HPatch, 0 },
8371
8372 { zAab_Fd_Zero_Gnu_Types_HName, zAab_Fd_Zero_Gnu_Types_HList,
8373 apzAab_Fd_Zero_Gnu_Types_HMachs,
8374 AAB_FD_ZERO_GNU_TYPES_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
8375 aAab_Fd_Zero_Gnu_Types_HTests, apzAab_Fd_Zero_Gnu_Types_HPatch, 0 },
8376
8377 { zAab_Fd_Zero_Selectbits_HName, zAab_Fd_Zero_Selectbits_HList,
8378 apzAab_Fd_Zero_Selectbits_HMachs,
8379 AAB_FD_ZERO_SELECTBITS_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
8380 aAab_Fd_Zero_Selectbits_HTests, apzAab_Fd_Zero_Selectbits_HPatch, 0 },
8381
8382 { zAab_Solaris_Sys_Varargs_HName, zAab_Solaris_Sys_Varargs_HList,
8383 apzAab_Solaris_Sys_Varargs_HMachs,
8384 AAB_SOLARIS_SYS_VARARGS_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
8385 aAab_Solaris_Sys_Varargs_HTests, apzAab_Solaris_Sys_Varargs_HPatch, 0 },
8386
8387 { zAab_Sun_MemcpyName, zAab_Sun_MemcpyList,
8388 apzAab_Sun_MemcpyMachs,
8389 AAB_SUN_MEMCPY_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
8390 aAab_Sun_MemcpyTests, apzAab_Sun_MemcpyPatch, 0 },
8391
8392 { zAab_Ultrix_Ansi_CompatName, zAab_Ultrix_Ansi_CompatList,
8393 apzAab_Ultrix_Ansi_CompatMachs,
8394 AAB_ULTRIX_ANSI_COMPAT_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
8395 aAab_Ultrix_Ansi_CompatTests, apzAab_Ultrix_Ansi_CompatPatch, 0 },
8396
8397 { zAab_Ultrix_LimitsName, zAab_Ultrix_LimitsList,
8398 apzAab_Ultrix_LimitsMachs,
8399 AAB_ULTRIX_LIMITS_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
8400 aAab_Ultrix_LimitsTests, apzAab_Ultrix_LimitsPatch, 0 },
8401
8402 { zAab_Ultrix_MemoryName, zAab_Ultrix_MemoryList,
8403 apzAab_Ultrix_MemoryMachs,
8404 AAB_ULTRIX_MEMORY_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
8405 aAab_Ultrix_MemoryTests, apzAab_Ultrix_MemoryPatch, 0 },
8406
8407 { zAab_Ultrix_StringName, zAab_Ultrix_StringList,
8408 apzAab_Ultrix_StringMachs,
8409 AAB_ULTRIX_STRING_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
8410 aAab_Ultrix_StringTests, apzAab_Ultrix_StringPatch, 0 },
8411
8412 { zAix_PthreadName, zAix_PthreadList,
8413 apzAix_PthreadMachs,
8414 AIX_PTHREAD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8415 aAix_PthreadTests, apzAix_PthreadPatch, 0 },
8416
8417 { zAix_SysmachineName, zAix_SysmachineList,
8418 apzAix_SysmachineMachs,
8419 AIX_SYSMACHINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8420 aAix_SysmachineTests, apzAix_SysmachinePatch, 0 },
8421
8422 { zAix_SyswaitName, zAix_SyswaitList,
8423 apzAix_SyswaitMachs,
8424 AIX_SYSWAIT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8425 aAix_SyswaitTests, apzAix_SyswaitPatch, 0 },
8426
8427 { zAix_Syswait_2Name, zAix_Syswait_2List,
8428 apzAix_Syswait_2Machs,
8429 AIX_SYSWAIT_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8430 aAix_Syswait_2Tests, apzAix_Syswait_2Patch, 0 },
8431
8432 { zAix_VolatileName, zAix_VolatileList,
8433 apzAix_VolatileMachs,
8434 AIX_VOLATILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8435 aAix_VolatileTests, apzAix_VolatilePatch, 0 },
8436
8437 { zAlpha___AssertName, zAlpha___AssertList,
8438 apzAlpha___AssertMachs,
8439 ALPHA___ASSERT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8440 aAlpha___AssertTests, apzAlpha___AssertPatch, 0 },
8441
8442 { zAlpha___Extern_PrefixName, zAlpha___Extern_PrefixList,
8443 apzAlpha___Extern_PrefixMachs,
8444 ALPHA___EXTERN_PREFIX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8445 aAlpha___Extern_PrefixTests, apzAlpha___Extern_PrefixPatch, 0 },
8446
8447 { zAlpha___Extern_Prefix_StandardsName, zAlpha___Extern_Prefix_StandardsList,
8448 apzAlpha___Extern_Prefix_StandardsMachs,
8449 ALPHA___EXTERN_PREFIX_STANDARDS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8450 aAlpha___Extern_Prefix_StandardsTests, apzAlpha___Extern_Prefix_StandardsPatch, 0 },
8451
8452 { zAlpha___Extern_Prefix_Sys_StatName, zAlpha___Extern_Prefix_Sys_StatList,
8453 apzAlpha___Extern_Prefix_Sys_StatMachs,
8454 ALPHA___EXTERN_PREFIX_SYS_STAT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8455 aAlpha___Extern_Prefix_Sys_StatTests, apzAlpha___Extern_Prefix_Sys_StatPatch, 0 },
8456
8457 { zAlpha_AssertName, zAlpha_AssertList,
8458 apzAlpha_AssertMachs,
8459 ALPHA_ASSERT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8460 aAlpha_AssertTests, apzAlpha_AssertPatch, 0 },
8461
8462 { zAlpha_Bad_LvalName, zAlpha_Bad_LvalList,
8463 apzAlpha_Bad_LvalMachs,
8464 ALPHA_BAD_LVAL_TEST_CT, FD_MACH_ONLY,
8465 aAlpha_Bad_LvalTests, apzAlpha_Bad_LvalPatch, 0 },
8466
8467 { zAlpha_GetoptName, zAlpha_GetoptList,
8468 apzAlpha_GetoptMachs,
8469 ALPHA_GETOPT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8470 aAlpha_GetoptTests, apzAlpha_GetoptPatch, 0 },
8471
8472 { zAlpha_ParensName, zAlpha_ParensList,
8473 apzAlpha_ParensMachs,
8474 ALPHA_PARENS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8475 aAlpha_ParensTests, apzAlpha_ParensPatch, 0 },
8476
8477 { zAlpha_PthreadName, zAlpha_PthreadList,
8478 apzAlpha_PthreadMachs,
8479 ALPHA_PTHREAD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8480 aAlpha_PthreadTests, apzAlpha_PthreadPatch, 0 },
8481
8482 { zAlpha_Pthread_GccName, zAlpha_Pthread_GccList,
8483 apzAlpha_Pthread_GccMachs,
8484 ALPHA_PTHREAD_GCC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8485 aAlpha_Pthread_GccTests, apzAlpha_Pthread_GccPatch, 0 },
8486
8487 { zAlpha_Pthread_InitName, zAlpha_Pthread_InitList,
8488 apzAlpha_Pthread_InitMachs,
8489 ALPHA_PTHREAD_INIT_TEST_CT, FD_MACH_ONLY,
8490 aAlpha_Pthread_InitTests, apzAlpha_Pthread_InitPatch, 0 },
8491
8492 { zAlpha_SbrkName, zAlpha_SbrkList,
8493 apzAlpha_SbrkMachs,
8494 ALPHA_SBRK_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8495 aAlpha_SbrkTests, apzAlpha_SbrkPatch, 0 },
8496
8497 { zAlpha_WcharName, zAlpha_WcharList,
8498 apzAlpha_WcharMachs,
8499 ALPHA_WCHAR_TEST_CT, FD_MACH_ONLY,
8500 aAlpha_WcharTests, apzAlpha_WcharPatch, 0 },
8501
8502 { zAvoid_Bool_DefineName, zAvoid_Bool_DefineList,
8503 apzAvoid_Bool_DefineMachs,
8504 AVOID_BOOL_DEFINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8505 aAvoid_Bool_DefineTests, apzAvoid_Bool_DefinePatch, 0 },
8506
8507 { zAvoid_Bool_TypeName, zAvoid_Bool_TypeList,
8508 apzAvoid_Bool_TypeMachs,
8509 AVOID_BOOL_TYPE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8510 aAvoid_Bool_TypeTests, apzAvoid_Bool_TypePatch, 0 },
8511
8512 { zAvoid_Wchar_T_TypeName, zAvoid_Wchar_T_TypeList,
8513 apzAvoid_Wchar_T_TypeMachs,
8514 AVOID_WCHAR_T_TYPE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8515 aAvoid_Wchar_T_TypeTests, apzAvoid_Wchar_T_TypePatch, 0 },
8516
8517 { zBad_Struct_TermName, zBad_Struct_TermList,
8518 apzBad_Struct_TermMachs,
8519 BAD_STRUCT_TERM_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8520 aBad_Struct_TermTests, apzBad_Struct_TermPatch, 0 },
8521
8522 { zBadquoteName, zBadquoteList,
8523 apzBadquoteMachs,
8524 BADQUOTE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8525 aBadquoteTests, apzBadquotePatch, 0 },
8526
8527 { zBroken_Assert_StdioName, zBroken_Assert_StdioList,
8528 apzBroken_Assert_StdioMachs,
8529 BROKEN_ASSERT_STDIO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8530 aBroken_Assert_StdioTests, apzBroken_Assert_StdioPatch, 0 },
8531
8532 { zBroken_Assert_StdlibName, zBroken_Assert_StdlibList,
8533 apzBroken_Assert_StdlibMachs,
8534 BROKEN_ASSERT_STDLIB_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8535 aBroken_Assert_StdlibTests, apzBroken_Assert_StdlibPatch, 0 },
8536
8537 { zBroken_CabsName, zBroken_CabsList,
8538 apzBroken_CabsMachs,
8539 BROKEN_CABS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8540 aBroken_CabsTests, apzBroken_CabsPatch, 0 },
8541
8542 { zBroken_NanName, zBroken_NanList,
8543 apzBroken_NanMachs,
8544 BROKEN_NAN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8545 aBroken_NanTests, apzBroken_NanPatch, 0 },
8546
8547 { zBsd_Stdio_Attrs_ConflictName, zBsd_Stdio_Attrs_ConflictList,
8548 apzBsd_Stdio_Attrs_ConflictMachs,
8549 BSD_STDIO_ATTRS_CONFLICT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8550 aBsd_Stdio_Attrs_ConflictTests, apzBsd_Stdio_Attrs_ConflictPatch, 0 },
8551
8552 { zCtrl_Quotes_DefName, zCtrl_Quotes_DefList,
8553 apzCtrl_Quotes_DefMachs,
8554 CTRL_QUOTES_DEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8555 aCtrl_Quotes_DefTests, apzCtrl_Quotes_DefPatch, 0 },
8556
8557 { zCtrl_Quotes_UseName, zCtrl_Quotes_UseList,
8558 apzCtrl_Quotes_UseMachs,
8559 CTRL_QUOTES_USE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8560 aCtrl_Quotes_UseTests, apzCtrl_Quotes_UsePatch, 0 },
8561
8562 { zCxx_UnreadyName, zCxx_UnreadyList,
8563 apzCxx_UnreadyMachs,
8564 CXX_UNREADY_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8565 aCxx_UnreadyTests, apzCxx_UnreadyPatch, 0 },
8566
8567 { zDarwin_Gcc4_BreakageName, zDarwin_Gcc4_BreakageList,
8568 apzDarwin_Gcc4_BreakageMachs,
8569 DARWIN_GCC4_BREAKAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8570 aDarwin_Gcc4_BreakageTests, apzDarwin_Gcc4_BreakagePatch, 0 },
8571
8572 { zDarwin_Private_ExternName, zDarwin_Private_ExternList,
8573 apzDarwin_Private_ExternMachs,
8574 DARWIN_PRIVATE_EXTERN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8575 aDarwin_Private_ExternTests, apzDarwin_Private_ExternPatch, 0 },
8576
8577 { zDec_Intern_AsmName, zDec_Intern_AsmList,
8578 apzDec_Intern_AsmMachs,
8579 DEC_INTERN_ASM_TEST_CT, FD_MACH_ONLY,
8580 aDec_Intern_AsmTests, apzDec_Intern_AsmPatch, 0 },
8581
8582 { zDjgpp_Wchar_HName, zDjgpp_Wchar_HList,
8583 apzDjgpp_Wchar_HMachs,
8584 DJGPP_WCHAR_H_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8585 aDjgpp_Wchar_HTests, apzDjgpp_Wchar_HPatch, 0 },
8586
8587 { zEcd_CursorName, zEcd_CursorList,
8588 apzEcd_CursorMachs,
8589 ECD_CURSOR_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8590 aEcd_CursorTests, apzEcd_CursorPatch, 0 },
8591
8592 { zException_StructureName, zException_StructureList,
8593 apzException_StructureMachs,
8594 EXCEPTION_STRUCTURE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8595 aException_StructureTests, apzException_StructurePatch, 0 },
8596
8597 { zFreebsd_Gcc3_BreakageName, zFreebsd_Gcc3_BreakageList,
8598 apzFreebsd_Gcc3_BreakageMachs,
8599 FREEBSD_GCC3_BREAKAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8600 aFreebsd_Gcc3_BreakageTests, apzFreebsd_Gcc3_BreakagePatch, 0 },
8601
8602 { zFreebsd_Gcc4_BreakageName, zFreebsd_Gcc4_BreakageList,
8603 apzFreebsd_Gcc4_BreakageMachs,
8604 FREEBSD_GCC4_BREAKAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8605 aFreebsd_Gcc4_BreakageTests, apzFreebsd_Gcc4_BreakagePatch, 0 },
8606
8607 { zGlibc_Mutex_InitName, zGlibc_Mutex_InitList,
8608 apzGlibc_Mutex_InitMachs,
8609 GLIBC_MUTEX_INIT_TEST_CT, FD_MACH_ONLY,
8610 aGlibc_Mutex_InitTests, apzGlibc_Mutex_InitPatch, 0 },
8611
8612 { zGnu_TypesName, zGnu_TypesList,
8613 apzGnu_TypesMachs,
8614 GNU_TYPES_TEST_CT, FD_MACH_IFNOT | FD_SUBROUTINE,
8615 aGnu_TypesTests, apzGnu_TypesPatch, 0 },
8616
8617 { zHp_InlineName, zHp_InlineList,
8618 apzHp_InlineMachs,
8619 HP_INLINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8620 aHp_InlineTests, apzHp_InlinePatch, 0 },
8621
8622 { zHp_SysfileName, zHp_SysfileList,
8623 apzHp_SysfileMachs,
8624 HP_SYSFILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8625 aHp_SysfileTests, apzHp_SysfilePatch, 0 },
8626
8627 { zHpux10_Cpp_Pow_InlineName, zHpux10_Cpp_Pow_InlineList,
8628 apzHpux10_Cpp_Pow_InlineMachs,
8629 HPUX10_CPP_POW_INLINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8630 aHpux10_Cpp_Pow_InlineTests, apzHpux10_Cpp_Pow_InlinePatch, 0 },
8631
8632 { zHpux11_Cpp_Pow_InlineName, zHpux11_Cpp_Pow_InlineList,
8633 apzHpux11_Cpp_Pow_InlineMachs,
8634 HPUX11_CPP_POW_INLINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8635 aHpux11_Cpp_Pow_InlineTests, apzHpux11_Cpp_Pow_InlinePatch, 0 },
8636
8637 { zHpux10_Ctype_Declarations1Name, zHpux10_Ctype_Declarations1List,
8638 apzHpux10_Ctype_Declarations1Machs,
8639 HPUX10_CTYPE_DECLARATIONS1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8640 aHpux10_Ctype_Declarations1Tests, apzHpux10_Ctype_Declarations1Patch, 0 },
8641
8642 { zHpux10_Ctype_Declarations2Name, zHpux10_Ctype_Declarations2List,
8643 apzHpux10_Ctype_Declarations2Machs,
8644 HPUX10_CTYPE_DECLARATIONS2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8645 aHpux10_Ctype_Declarations2Tests, apzHpux10_Ctype_Declarations2Patch, 0 },
8646
8647 { zHpux10_Stdio_DeclarationsName, zHpux10_Stdio_DeclarationsList,
8648 apzHpux10_Stdio_DeclarationsMachs,
8649 HPUX10_STDIO_DECLARATIONS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8650 aHpux10_Stdio_DeclarationsTests, apzHpux10_Stdio_DeclarationsPatch, 0 },
8651
8652 { zHpux11_AbsName, zHpux11_AbsList,
8653 apzHpux11_AbsMachs,
8654 HPUX11_ABS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8655 aHpux11_AbsTests, apzHpux11_AbsPatch, 0 },
8656
8657 { zHpux11_FabsfName, zHpux11_FabsfList,
8658 apzHpux11_FabsfMachs,
8659 HPUX11_FABSF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8660 aHpux11_FabsfTests, apzHpux11_FabsfPatch, 0 },
8661
8662 { zHpux11_Size_TName, zHpux11_Size_TList,
8663 apzHpux11_Size_TMachs,
8664 HPUX11_SIZE_T_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8665 aHpux11_Size_TTests, apzHpux11_Size_TPatch, 0 },
8666
8667 { zHpux11_SnprintfName, zHpux11_SnprintfList,
8668 apzHpux11_SnprintfMachs,
8669 HPUX11_SNPRINTF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8670 aHpux11_SnprintfTests, apzHpux11_SnprintfPatch, 0 },
8671
8672 { zHpux11_Uint32_CName, zHpux11_Uint32_CList,
8673 apzHpux11_Uint32_CMachs,
8674 HPUX11_UINT32_C_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8675 aHpux11_Uint32_CTests, apzHpux11_Uint32_CPatch, 0 },
8676
8677 { zHpux11_VsnprintfName, zHpux11_VsnprintfList,
8678 apzHpux11_VsnprintfMachs,
8679 HPUX11_VSNPRINTF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8680 aHpux11_VsnprintfTests, apzHpux11_VsnprintfPatch, 0 },
8681
8682 { zHpux8_Bogus_InlinesName, zHpux8_Bogus_InlinesList,
8683 apzHpux8_Bogus_InlinesMachs,
8684 HPUX8_BOGUS_INLINES_TEST_CT, FD_MACH_ONLY,
8685 aHpux8_Bogus_InlinesTests, apzHpux8_Bogus_InlinesPatch, 0 },
8686
8687 { zHpux_Ctype_MacrosName, zHpux_Ctype_MacrosList,
8688 apzHpux_Ctype_MacrosMachs,
8689 HPUX_CTYPE_MACROS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8690 aHpux_Ctype_MacrosTests, apzHpux_Ctype_MacrosPatch, 0 },
8691
8692 { zHpux_HtonlName, zHpux_HtonlList,
8693 apzHpux_HtonlMachs,
8694 HPUX_HTONL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8695 aHpux_HtonlTests, apzHpux_HtonlPatch, 0 },
8696
8697 { zHpux_Long_DoubleName, zHpux_Long_DoubleList,
8698 apzHpux_Long_DoubleMachs,
8699 HPUX_LONG_DOUBLE_TEST_CT, FD_MACH_ONLY,
8700 aHpux_Long_DoubleTests, apzHpux_Long_DoublePatch, 0 },
8701
8702 { zHpux_SystimeName, zHpux_SystimeList,
8703 apzHpux_SystimeMachs,
8704 HPUX_SYSTIME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8705 aHpux_SystimeTests, apzHpux_SystimePatch, 0 },
8706
8707 { zHpux_Spu_InfoName, zHpux_Spu_InfoList,
8708 apzHpux_Spu_InfoMachs,
8709 HPUX_SPU_INFO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8710 aHpux_Spu_InfoTests, apzHpux_Spu_InfoPatch, 0 },
8711
8712 { zHpux_Extern_ErrnoName, zHpux_Extern_ErrnoList,
8713 apzHpux_Extern_ErrnoMachs,
8714 HPUX_EXTERN_ERRNO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8715 aHpux_Extern_ErrnoTests, apzHpux_Extern_ErrnoPatch, 0 },
8716
8717 { zHuge_Val_HexName, zHuge_Val_HexList,
8718 apzHuge_Val_HexMachs,
8719 HUGE_VAL_HEX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8720 aHuge_Val_HexTests, apzHuge_Val_HexPatch, 0 },
8721
8722 { zHuge_Valf_HexName, zHuge_Valf_HexList,
8723 apzHuge_Valf_HexMachs,
8724 HUGE_VALF_HEX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8725 aHuge_Valf_HexTests, apzHuge_Valf_HexPatch, 0 },
8726
8727 { zHuge_Vall_HexName, zHuge_Vall_HexList,
8728 apzHuge_Vall_HexMachs,
8729 HUGE_VALL_HEX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8730 aHuge_Vall_HexTests, apzHuge_Vall_HexPatch, 0 },
8731
8732 { zInt_Abort_Free_And_ExitName, zInt_Abort_Free_And_ExitList,
8733 apzInt_Abort_Free_And_ExitMachs,
8734 INT_ABORT_FREE_AND_EXIT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8735 aInt_Abort_Free_And_ExitTests, apzInt_Abort_Free_And_ExitPatch, 0 },
8736
8737 { zIo_Quotes_DefName, zIo_Quotes_DefList,
8738 apzIo_Quotes_DefMachs,
8739 IO_QUOTES_DEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8740 aIo_Quotes_DefTests, apzIo_Quotes_DefPatch, 0 },
8741
8742 { zIo_Quotes_UseName, zIo_Quotes_UseList,
8743 apzIo_Quotes_UseMachs,
8744 IO_QUOTES_USE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8745 aIo_Quotes_UseTests, apzIo_Quotes_UsePatch, 0 },
8746
8747 { zIp_Missing_SemiName, zIp_Missing_SemiList,
8748 apzIp_Missing_SemiMachs,
8749 IP_MISSING_SEMI_TEST_CT, FD_MACH_ONLY,
8750 aIp_Missing_SemiTests, apzIp_Missing_SemiPatch, 0 },
8751
8752 { zIrix___RestrictName, zIrix___RestrictList,
8753 apzIrix___RestrictMachs,
8754 IRIX___RESTRICT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8755 aIrix___RestrictTests, apzIrix___RestrictPatch, 0 },
8756
8757 { zIrix___Generic1Name, zIrix___Generic1List,
8758 apzIrix___Generic1Machs,
8759 IRIX___GENERIC1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8760 aIrix___Generic1Tests, apzIrix___Generic1Patch, 0 },
8761
8762 { zIrix___Generic2Name, zIrix___Generic2List,
8763 apzIrix___Generic2Machs,
8764 IRIX___GENERIC2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8765 aIrix___Generic2Tests, apzIrix___Generic2Patch, 0 },
8766
8767 { zIrix_Asm_ApostropheName, zIrix_Asm_ApostropheList,
8768 apzIrix_Asm_ApostropheMachs,
8769 IRIX_ASM_APOSTROPHE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8770 aIrix_Asm_ApostropheTests, apzIrix_Asm_ApostrophePatch, 0 },
8771
8772 { zIrix_Limits_ConstName, zIrix_Limits_ConstList,
8773 apzIrix_Limits_ConstMachs,
8774 IRIX_LIMITS_CONST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8775 aIrix_Limits_ConstTests, apzIrix_Limits_ConstPatch, 0 },
8776
8777 { zIrix_Socklen_TName, zIrix_Socklen_TList,
8778 apzIrix_Socklen_TMachs,
8779 IRIX_SOCKLEN_T_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8780 aIrix_Socklen_TTests, apzIrix_Socklen_TPatch, 0 },
8781
8782 { zIrix_Stdio_Va_ListName, zIrix_Stdio_Va_ListList,
8783 apzIrix_Stdio_Va_ListMachs,
8784 IRIX_STDIO_VA_LIST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8785 aIrix_Stdio_Va_ListTests, apzIrix_Stdio_Va_ListPatch, 0 },
8786
8787 { zIrix_WcsftimeName, zIrix_WcsftimeList,
8788 apzIrix_WcsftimeMachs,
8789 IRIX_WCSFTIME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8790 aIrix_WcsftimeTests, apzIrix_WcsftimePatch, 0 },
8791
8792 { zIsc_FmodName, zIsc_FmodList,
8793 apzIsc_FmodMachs,
8794 ISC_FMOD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8795 aIsc_FmodTests, apzIsc_FmodPatch, 0 },
8796
8797 { zIsc_Omits_With_StdcName, zIsc_Omits_With_StdcList,
8798 apzIsc_Omits_With_StdcMachs,
8799 ISC_OMITS_WITH_STDC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8800 aIsc_Omits_With_StdcTests, apzIsc_Omits_With_StdcPatch, 0 },
8801
8802 { zKandr_ConcatName, zKandr_ConcatList,
8803 apzKandr_ConcatMachs,
8804 KANDR_CONCAT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8805 aKandr_ConcatTests, apzKandr_ConcatPatch, 0 },
8806
8807 { zLibc1_G_Va_ListName, zLibc1_G_Va_ListList,
8808 apzLibc1_G_Va_ListMachs,
8809 LIBC1_G_VA_LIST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8810 aLibc1_G_Va_ListTests, apzLibc1_G_Va_ListPatch, 0 },
8811
8812 { zLibc1_Ifdefd_MemxName, zLibc1_Ifdefd_MemxList,
8813 apzLibc1_Ifdefd_MemxMachs,
8814 LIBC1_IFDEFD_MEMX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8815 aLibc1_Ifdefd_MemxTests, apzLibc1_Ifdefd_MemxPatch, 0 },
8816
8817 { zLinux_Ia64_UcontextName, zLinux_Ia64_UcontextList,
8818 apzLinux_Ia64_UcontextMachs,
8819 LINUX_IA64_UCONTEXT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8820 aLinux_Ia64_UcontextTests, apzLinux_Ia64_UcontextPatch, 0 },
8821
8822 { zLynxos_No_Warning_In_Sys_Time_HName, zLynxos_No_Warning_In_Sys_Time_HList,
8823 apzLynxos_No_Warning_In_Sys_Time_HMachs,
8824 LYNXOS_NO_WARNING_IN_SYS_TIME_H_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8825 aLynxos_No_Warning_In_Sys_Time_HTests, apzLynxos_No_Warning_In_Sys_Time_HPatch, 0 },
8826
8827 { zLynxos_Missing_PutenvName, zLynxos_Missing_PutenvList,
8828 apzLynxos_Missing_PutenvMachs,
8829 LYNXOS_MISSING_PUTENV_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8830 aLynxos_Missing_PutenvTests, apzLynxos_Missing_PutenvPatch, 0 },
8831
8832 { zMachine_Ansi_H_Va_ListName, zMachine_Ansi_H_Va_ListList,
8833 apzMachine_Ansi_H_Va_ListMachs,
8834 MACHINE_ANSI_H_VA_LIST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8835 aMachine_Ansi_H_Va_ListTests, apzMachine_Ansi_H_Va_ListPatch, 0 },
8836
8837 { zMachine_NameName, zMachine_NameList,
8838 apzMachine_NameMachs,
8839 MACHINE_NAME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8840 aMachine_NameTests, apzMachine_NamePatch, 0 },
8841
8842 { zMath_ExceptionName, zMath_ExceptionList,
8843 apzMath_ExceptionMachs,
8844 MATH_EXCEPTION_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8845 aMath_ExceptionTests, apzMath_ExceptionPatch, 0 },
8846
8847 { zMath_Huge_Val_From_Dbl_MaxName, zMath_Huge_Val_From_Dbl_MaxList,
8848 apzMath_Huge_Val_From_Dbl_MaxMachs,
8849 MATH_HUGE_VAL_FROM_DBL_MAX_TEST_CT, FD_MACH_ONLY | FD_SHELL_SCRIPT,
8850 aMath_Huge_Val_From_Dbl_MaxTests, apzMath_Huge_Val_From_Dbl_MaxPatch, 0 },
8851
8852 { zNested_Auth_DesName, zNested_Auth_DesList,
8853 apzNested_Auth_DesMachs,
8854 NESTED_AUTH_DES_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8855 aNested_Auth_DesTests, apzNested_Auth_DesPatch, 0 },
8856
8857 { zNested_MotorolaName, zNested_MotorolaList,
8858 apzNested_MotorolaMachs,
8859 NESTED_MOTOROLA_TEST_CT, FD_MACH_ONLY,
8860 aNested_MotorolaTests, apzNested_MotorolaPatch, 0 },
8861
8862 { zNested_Sys_LimitsName, zNested_Sys_LimitsList,
8863 apzNested_Sys_LimitsMachs,
8864 NESTED_SYS_LIMITS_TEST_CT, FD_MACH_ONLY,
8865 aNested_Sys_LimitsTests, apzNested_Sys_LimitsPatch, 0 },
8866
8867 { zNetbsd_Extra_SemicolonName, zNetbsd_Extra_SemicolonList,
8868 apzNetbsd_Extra_SemicolonMachs,
8869 NETBSD_EXTRA_SEMICOLON_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8870 aNetbsd_Extra_SemicolonTests, apzNetbsd_Extra_SemicolonPatch, 0 },
8871
8872 { zNext_Math_PrefixName, zNext_Math_PrefixList,
8873 apzNext_Math_PrefixMachs,
8874 NEXT_MATH_PREFIX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8875 aNext_Math_PrefixTests, apzNext_Math_PrefixPatch, 0 },
8876
8877 { zNext_TemplateName, zNext_TemplateList,
8878 apzNext_TemplateMachs,
8879 NEXT_TEMPLATE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8880 aNext_TemplateTests, apzNext_TemplatePatch, 0 },
8881
8882 { zNext_VolitileName, zNext_VolitileList,
8883 apzNext_VolitileMachs,
8884 NEXT_VOLITILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8885 aNext_VolitileTests, apzNext_VolitilePatch, 0 },
8886
8887 { zNext_Wait_UnionName, zNext_Wait_UnionList,
8888 apzNext_Wait_UnionMachs,
8889 NEXT_WAIT_UNION_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8890 aNext_Wait_UnionTests, apzNext_Wait_UnionPatch, 0 },
8891
8892 { zNodeent_SyntaxName, zNodeent_SyntaxList,
8893 apzNodeent_SyntaxMachs,
8894 NODEENT_SYNTAX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8895 aNodeent_SyntaxTests, apzNodeent_SyntaxPatch, 0 },
8896
8897 { zObstack_Lvalue_CastName, zObstack_Lvalue_CastList,
8898 apzObstack_Lvalue_CastMachs,
8899 OBSTACK_LVALUE_CAST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8900 aObstack_Lvalue_CastTests, apzObstack_Lvalue_CastPatch, 0 },
8901
8902 { zOsf_Namespace_AName, zOsf_Namespace_AList,
8903 apzOsf_Namespace_AMachs,
8904 OSF_NAMESPACE_A_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8905 aOsf_Namespace_ATests, apzOsf_Namespace_APatch, 0 },
8906
8907 { zOsf_Namespace_CName, zOsf_Namespace_CList,
8908 apzOsf_Namespace_CMachs,
8909 OSF_NAMESPACE_C_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8910 aOsf_Namespace_CTests, apzOsf_Namespace_CPatch, 0 },
8911
8912 { zPthread_Page_SizeName, zPthread_Page_SizeList,
8913 apzPthread_Page_SizeMachs,
8914 PTHREAD_PAGE_SIZE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8915 aPthread_Page_SizeTests, apzPthread_Page_SizePatch, 0 },
8916
8917 { zPthread_Incomplete_Struct_ArgumentName, zPthread_Incomplete_Struct_ArgumentList,
8918 apzPthread_Incomplete_Struct_ArgumentMachs,
8919 PTHREAD_INCOMPLETE_STRUCT_ARGUMENT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8920 aPthread_Incomplete_Struct_ArgumentTests, apzPthread_Incomplete_Struct_ArgumentPatch, 0 },
8921
8922 { zRead_Ret_TypeName, zRead_Ret_TypeList,
8923 apzRead_Ret_TypeMachs,
8924 READ_RET_TYPE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8925 aRead_Ret_TypeTests, apzRead_Ret_TypePatch, 0 },
8926
8927 { zRpc_Xdr_Lvalue_Cast_AName, zRpc_Xdr_Lvalue_Cast_AList,
8928 apzRpc_Xdr_Lvalue_Cast_AMachs,
8929 RPC_XDR_LVALUE_CAST_A_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8930 aRpc_Xdr_Lvalue_Cast_ATests, apzRpc_Xdr_Lvalue_Cast_APatch, 0 },
8931
8932 { zRpc_Xdr_Lvalue_Cast_BName, zRpc_Xdr_Lvalue_Cast_BList,
8933 apzRpc_Xdr_Lvalue_Cast_BMachs,
8934 RPC_XDR_LVALUE_CAST_B_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8935 aRpc_Xdr_Lvalue_Cast_BTests, apzRpc_Xdr_Lvalue_Cast_BPatch, 0 },
8936
8937 { zRs6000_DoubleName, zRs6000_DoubleList,
8938 apzRs6000_DoubleMachs,
8939 RS6000_DOUBLE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8940 aRs6000_DoubleTests, apzRs6000_DoublePatch, 0 },
8941
8942 { zRs6000_FchmodName, zRs6000_FchmodList,
8943 apzRs6000_FchmodMachs,
8944 RS6000_FCHMOD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8945 aRs6000_FchmodTests, apzRs6000_FchmodPatch, 0 },
8946
8947 { zRs6000_ParamName, zRs6000_ParamList,
8948 apzRs6000_ParamMachs,
8949 RS6000_PARAM_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8950 aRs6000_ParamTests, apzRs6000_ParamPatch, 0 },
8951
8952 { zSco_MathName, zSco_MathList,
8953 apzSco_MathMachs,
8954 SCO_MATH_TEST_CT, FD_MACH_ONLY,
8955 aSco_MathTests, apzSco_MathPatch, 0 },
8956
8957 { zSco_RegsetName, zSco_RegsetList,
8958 apzSco_RegsetMachs,
8959 SCO_REGSET_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8960 aSco_RegsetTests, apzSco_RegsetPatch, 0 },
8961
8962 { zSco_Static_FuncName, zSco_Static_FuncList,
8963 apzSco_Static_FuncMachs,
8964 SCO_STATIC_FUNC_TEST_CT, FD_MACH_ONLY,
8965 aSco_Static_FuncTests, apzSco_Static_FuncPatch, 0 },
8966
8967 { zSco_UtimeName, zSco_UtimeList,
8968 apzSco_UtimeMachs,
8969 SCO_UTIME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8970 aSco_UtimeTests, apzSco_UtimePatch, 0 },
8971
8972 { zSolaris_Math_1Name, zSolaris_Math_1List,
8973 apzSolaris_Math_1Machs,
8974 SOLARIS_MATH_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8975 aSolaris_Math_1Tests, apzSolaris_Math_1Patch, 0 },
8976
8977 { zSolaris_Math_2Name, zSolaris_Math_2List,
8978 apzSolaris_Math_2Machs,
8979 SOLARIS_MATH_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8980 aSolaris_Math_2Tests, apzSolaris_Math_2Patch, 0 },
8981
8982 { zSolaris_Math_3Name, zSolaris_Math_3List,
8983 apzSolaris_Math_3Machs,
8984 SOLARIS_MATH_3_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8985 aSolaris_Math_3Tests, apzSolaris_Math_3Patch, 0 },
8986
8987 { zSolaris_Math_4Name, zSolaris_Math_4List,
8988 apzSolaris_Math_4Machs,
8989 SOLARIS_MATH_4_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8990 aSolaris_Math_4Tests, apzSolaris_Math_4Patch, 0 },
8991
8992 { zSolaris_Math_5Name, zSolaris_Math_5List,
8993 apzSolaris_Math_5Machs,
8994 SOLARIS_MATH_5_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8995 aSolaris_Math_5Tests, apzSolaris_Math_5Patch, 0 },
8996
8997 { zSolaris_Math_6Name, zSolaris_Math_6List,
8998 apzSolaris_Math_6Machs,
8999 SOLARIS_MATH_6_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9000 aSolaris_Math_6Tests, apzSolaris_Math_6Patch, 0 },
9001
9002 { zSolaris_Math_7Name, zSolaris_Math_7List,
9003 apzSolaris_Math_7Machs,
9004 SOLARIS_MATH_7_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9005 aSolaris_Math_7Tests, apzSolaris_Math_7Patch, 0 },
9006
9007 { zSolaris_Math_8Name, zSolaris_Math_8List,
9008 apzSolaris_Math_8Machs,
9009 SOLARIS_MATH_8_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9010 aSolaris_Math_8Tests, apzSolaris_Math_8Patch, 0 },
9011
9012 { zSolaris_Math_9Name, zSolaris_Math_9List,
9013 apzSolaris_Math_9Machs,
9014 SOLARIS_MATH_9_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9015 aSolaris_Math_9Tests, apzSolaris_Math_9Patch, 0 },
9016
9017 { zSolaris_Mutex_Init_1Name, zSolaris_Mutex_Init_1List,
9018 apzSolaris_Mutex_Init_1Machs,
9019 SOLARIS_MUTEX_INIT_1_TEST_CT, FD_MACH_ONLY,
9020 aSolaris_Mutex_Init_1Tests, apzSolaris_Mutex_Init_1Patch, 0 },
9021
9022 { zSolaris_Mutex_Init_2Name, zSolaris_Mutex_Init_2List,
9023 apzSolaris_Mutex_Init_2Machs,
9024 SOLARIS_MUTEX_INIT_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9025 aSolaris_Mutex_Init_2Tests, apzSolaris_Mutex_Init_2Patch, 0 },
9026
9027 { zSolaris_Rwlock_Init_1Name, zSolaris_Rwlock_Init_1List,
9028 apzSolaris_Rwlock_Init_1Machs,
9029 SOLARIS_RWLOCK_INIT_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9030 aSolaris_Rwlock_Init_1Tests, apzSolaris_Rwlock_Init_1Patch, 0 },
9031
9032 { zSolaris_Once_Init_1Name, zSolaris_Once_Init_1List,
9033 apzSolaris_Once_Init_1Machs,
9034 SOLARIS_ONCE_INIT_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9035 aSolaris_Once_Init_1Tests, apzSolaris_Once_Init_1Patch, 0 },
9036
9037 { zSolaris_Once_Init_2Name, zSolaris_Once_Init_2List,
9038 apzSolaris_Once_Init_2Machs,
9039 SOLARIS_ONCE_INIT_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9040 aSolaris_Once_Init_2Tests, apzSolaris_Once_Init_2Patch, 0 },
9041
9042 { zSolaris_SocketName, zSolaris_SocketList,
9043 apzSolaris_SocketMachs,
9044 SOLARIS_SOCKET_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9045 aSolaris_SocketTests, apzSolaris_SocketPatch, 0 },
9046
9047 { zSolaris_Stdio_TagName, zSolaris_Stdio_TagList,
9048 apzSolaris_Stdio_TagMachs,
9049 SOLARIS_STDIO_TAG_TEST_CT, FD_MACH_ONLY,
9050 aSolaris_Stdio_TagTests, apzSolaris_Stdio_TagPatch, 0 },
9051
9052 { zSolaris_UnistdName, zSolaris_UnistdList,
9053 apzSolaris_UnistdMachs,
9054 SOLARIS_UNISTD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9055 aSolaris_UnistdTests, apzSolaris_UnistdPatch, 0 },
9056
9057 { zSolaris_WidecName, zSolaris_WidecList,
9058 apzSolaris_WidecMachs,
9059 SOLARIS_WIDEC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9060 aSolaris_WidecTests, apzSolaris_WidecPatch, 0 },
9061
9062 { zStatsswtchName, zStatsswtchList,
9063 apzStatsswtchMachs,
9064 STATSSWTCH_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9065 aStatsswtchTests, apzStatsswtchPatch, 0 },
9066
9067 { zStdio_Stdarg_HName, zStdio_Stdarg_HList,
9068 apzStdio_Stdarg_HMachs,
9069 STDIO_STDARG_H_TEST_CT, FD_MACH_IFNOT | FD_SUBROUTINE,
9070 aStdio_Stdarg_HTests, apzStdio_Stdarg_HPatch, 0 },
9071
9072 { zStdio_Va_ListName, zStdio_Va_ListList,
9073 apzStdio_Va_ListMachs,
9074 STDIO_VA_LIST_TEST_CT, FD_MACH_IFNOT,
9075 aStdio_Va_ListTests, apzStdio_Va_ListPatch, 0 },
9076
9077 { zStdio_Va_List_ClientsName, zStdio_Va_List_ClientsList,
9078 apzStdio_Va_List_ClientsMachs,
9079 STDIO_VA_LIST_CLIENTS_TEST_CT, FD_MACH_ONLY,
9080 aStdio_Va_List_ClientsTests, apzStdio_Va_List_ClientsPatch, 0 },
9081
9082 { zStrict_Ansi_NotName, zStrict_Ansi_NotList,
9083 apzStrict_Ansi_NotMachs,
9084 STRICT_ANSI_NOT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9085 aStrict_Ansi_NotTests, apzStrict_Ansi_NotPatch, 0 },
9086
9087 { zStrict_Ansi_Not_CtdName, zStrict_Ansi_Not_CtdList,
9088 apzStrict_Ansi_Not_CtdMachs,
9089 STRICT_ANSI_NOT_CTD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9090 aStrict_Ansi_Not_CtdTests, apzStrict_Ansi_Not_CtdPatch, 0 },
9091
9092 { zStrict_Ansi_OnlyName, zStrict_Ansi_OnlyList,
9093 apzStrict_Ansi_OnlyMachs,
9094 STRICT_ANSI_ONLY_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9095 aStrict_Ansi_OnlyTests, apzStrict_Ansi_OnlyPatch, 0 },
9096
9097 { zStruct_FileName, zStruct_FileList,
9098 apzStruct_FileMachs,
9099 STRUCT_FILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9100 aStruct_FileTests, apzStruct_FilePatch, 0 },
9101
9102 { zStruct_SockaddrName, zStruct_SockaddrList,
9103 apzStruct_SockaddrMachs,
9104 STRUCT_SOCKADDR_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9105 aStruct_SockaddrTests, apzStruct_SockaddrPatch, 0 },
9106
9107 { zSun_Auth_ProtoName, zSun_Auth_ProtoList,
9108 apzSun_Auth_ProtoMachs,
9109 SUN_AUTH_PROTO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9110 aSun_Auth_ProtoTests, apzSun_Auth_ProtoPatch, 0 },
9111
9112 { zSun_Bogus_IfdefName, zSun_Bogus_IfdefList,
9113 apzSun_Bogus_IfdefMachs,
9114 SUN_BOGUS_IFDEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9115 aSun_Bogus_IfdefTests, apzSun_Bogus_IfdefPatch, 0 },
9116
9117 { zSun_CatmacroName, zSun_CatmacroList,
9118 apzSun_CatmacroMachs,
9119 SUN_CATMACRO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9120 aSun_CatmacroTests, apzSun_CatmacroPatch, 0 },
9121
9122 { zSun_MallocName, zSun_MallocList,
9123 apzSun_MallocMachs,
9124 SUN_MALLOC_TEST_CT, FD_MACH_ONLY,
9125 aSun_MallocTests, apzSun_MallocPatch, 0 },
9126
9127 { zSun_Rusers_SemiName, zSun_Rusers_SemiList,
9128 apzSun_Rusers_SemiMachs,
9129 SUN_RUSERS_SEMI_TEST_CT, FD_MACH_ONLY,
9130 aSun_Rusers_SemiTests, apzSun_Rusers_SemiPatch, 0 },
9131
9132 { zSun_SignalName, zSun_SignalList,
9133 apzSun_SignalMachs,
9134 SUN_SIGNAL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9135 aSun_SignalTests, apzSun_SignalPatch, 0 },
9136
9137 { zSunos_StrlenName, zSunos_StrlenList,
9138 apzSunos_StrlenMachs,
9139 SUNOS_STRLEN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9140 aSunos_StrlenTests, apzSunos_StrlenPatch, 0 },
9141
9142 { zSvr4_Disable_OptName, zSvr4_Disable_OptList,
9143 apzSvr4_Disable_OptMachs,
9144 SVR4_DISABLE_OPT_TEST_CT, FD_MACH_ONLY,
9145 aSvr4_Disable_OptTests, apzSvr4_Disable_OptPatch, 0 },
9146
9147 { zSvr4_GetcwdName, zSvr4_GetcwdList,
9148 apzSvr4_GetcwdMachs,
9149 SVR4_GETCWD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9150 aSvr4_GetcwdTests, apzSvr4_GetcwdPatch, 0 },
9151
9152 { zSvr4_KrnlName, zSvr4_KrnlList,
9153 apzSvr4_KrnlMachs,
9154 SVR4_KRNL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9155 aSvr4_KrnlTests, apzSvr4_KrnlPatch, 0 },
9156
9157 { zSvr4_ProfilName, zSvr4_ProfilList,
9158 apzSvr4_ProfilMachs,
9159 SVR4_PROFIL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9160 aSvr4_ProfilTests, apzSvr4_ProfilPatch, 0 },
9161
9162 { zSvr4_Sighandler_TypeName, zSvr4_Sighandler_TypeList,
9163 apzSvr4_Sighandler_TypeMachs,
9164 SVR4_SIGHANDLER_TYPE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9165 aSvr4_Sighandler_TypeTests, apzSvr4_Sighandler_TypePatch, 0 },
9166
9167 { zSvr4_Undeclared_GetrngeName, zSvr4_Undeclared_GetrngeList,
9168 apzSvr4_Undeclared_GetrngeMachs,
9169 SVR4_UNDECLARED_GETRNGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9170 aSvr4_Undeclared_GetrngeTests, apzSvr4_Undeclared_GetrngePatch, 0 },
9171
9172 { zSysv68_StringName, zSysv68_StringList,
9173 apzSysv68_StringMachs,
9174 SYSV68_STRING_TEST_CT, FD_MACH_ONLY,
9175 aSysv68_StringTests, apzSysv68_StringPatch, 0 },
9176
9177 { zSysz_Stdlib_For_SunName, zSysz_Stdlib_For_SunList,
9178 apzSysz_Stdlib_For_SunMachs,
9179 SYSZ_STDLIB_FOR_SUN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9180 aSysz_Stdlib_For_SunTests, apzSysz_Stdlib_For_SunPatch, 0 },
9181
9182 { zThread_KeywordName, zThread_KeywordList,
9183 apzThread_KeywordMachs,
9184 THREAD_KEYWORD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9185 aThread_KeywordTests, apzThread_KeywordPatch, 0 },
9186
9187 { zTinfo_CplusplusName, zTinfo_CplusplusList,
9188 apzTinfo_CplusplusMachs,
9189 TINFO_CPLUSPLUS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9190 aTinfo_CplusplusTests, apzTinfo_CplusplusPatch, 0 },
9191
9192 { zUltrix_Atexit_ParamName, zUltrix_Atexit_ParamList,
9193 apzUltrix_Atexit_ParamMachs,
9194 ULTRIX_ATEXIT_PARAM_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9195 aUltrix_Atexit_ParamTests, apzUltrix_Atexit_ParamPatch, 0 },
9196
9197 { zUltrix_Atof_ParamName, zUltrix_Atof_ParamList,
9198 apzUltrix_Atof_ParamMachs,
9199 ULTRIX_ATOF_PARAM_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9200 aUltrix_Atof_ParamTests, apzUltrix_Atof_ParamPatch, 0 },
9201
9202 { zUltrix_ConstName, zUltrix_ConstList,
9203 apzUltrix_ConstMachs,
9204 ULTRIX_CONST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9205 aUltrix_ConstTests, apzUltrix_ConstPatch, 0 },
9206
9207 { zUltrix_Const2Name, zUltrix_Const2List,
9208 apzUltrix_Const2Machs,
9209 ULTRIX_CONST2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9210 aUltrix_Const2Tests, apzUltrix_Const2Patch, 0 },
9211
9212 { zUltrix_Const3Name, zUltrix_Const3List,
9213 apzUltrix_Const3Machs,
9214 ULTRIX_CONST3_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9215 aUltrix_Const3Tests, apzUltrix_Const3Patch, 0 },
9216
9217 { zUltrix_Fix_FixprotoName, zUltrix_Fix_FixprotoList,
9218 apzUltrix_Fix_FixprotoMachs,
9219 ULTRIX_FIX_FIXPROTO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9220 aUltrix_Fix_FixprotoTests, apzUltrix_Fix_FixprotoPatch, 0 },
9221
9222 { zUltrix_IfdefName, zUltrix_IfdefList,
9223 apzUltrix_IfdefMachs,
9224 ULTRIX_IFDEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9225 aUltrix_IfdefTests, apzUltrix_IfdefPatch, 0 },
9226
9227 { zUltrix_LocaleName, zUltrix_LocaleList,
9228 apzUltrix_LocaleMachs,
9229 ULTRIX_LOCALE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9230 aUltrix_LocaleTests, apzUltrix_LocalePatch, 0 },
9231
9232 { zUltrix_Math_IfdefName, zUltrix_Math_IfdefList,
9233 apzUltrix_Math_IfdefMachs,
9234 ULTRIX_MATH_IFDEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9235 aUltrix_Math_IfdefTests, apzUltrix_Math_IfdefPatch, 0 },
9236
9237 { zUltrix_Nested_IoctlName, zUltrix_Nested_IoctlList,
9238 apzUltrix_Nested_IoctlMachs,
9239 ULTRIX_NESTED_IOCTL_TEST_CT, FD_MACH_ONLY,
9240 aUltrix_Nested_IoctlTests, apzUltrix_Nested_IoctlPatch, 0 },
9241
9242 { zUltrix_Nested_SvcName, zUltrix_Nested_SvcList,
9243 apzUltrix_Nested_SvcMachs,
9244 ULTRIX_NESTED_SVC_TEST_CT, FD_MACH_ONLY,
9245 aUltrix_Nested_SvcTests, apzUltrix_Nested_SvcPatch, 0 },
9246
9247 { zUltrix_StatName, zUltrix_StatList,
9248 apzUltrix_StatMachs,
9249 ULTRIX_STAT_TEST_CT, FD_MACH_ONLY,
9250 aUltrix_StatTests, apzUltrix_StatPatch, 0 },
9251
9252 { zUltrix_StaticName, zUltrix_StaticList,
9253 apzUltrix_StaticMachs,
9254 ULTRIX_STATIC_TEST_CT, FD_MACH_ONLY,
9255 aUltrix_StaticTests, apzUltrix_StaticPatch, 0 },
9256
9257 { zUltrix_StdlibName, zUltrix_StdlibList,
9258 apzUltrix_StdlibMachs,
9259 ULTRIX_STDLIB_TEST_CT, FD_MACH_ONLY,
9260 aUltrix_StdlibTests, apzUltrix_StdlibPatch, 0 },
9261
9262 { zUltrix_StringsName, zUltrix_StringsList,
9263 apzUltrix_StringsMachs,
9264 ULTRIX_STRINGS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9265 aUltrix_StringsTests, apzUltrix_StringsPatch, 0 },
9266
9267 { zUltrix_Strings2Name, zUltrix_Strings2List,
9268 apzUltrix_Strings2Machs,
9269 ULTRIX_STRINGS2_TEST_CT, FD_MACH_ONLY,
9270 aUltrix_Strings2Tests, apzUltrix_Strings2Patch, 0 },
9271
9272 { zUltrix_Sys_TimeName, zUltrix_Sys_TimeList,
9273 apzUltrix_Sys_TimeMachs,
9274 ULTRIX_SYS_TIME_TEST_CT, FD_MACH_ONLY,
9275 aUltrix_Sys_TimeTests, apzUltrix_Sys_TimePatch, 0 },
9276
9277 { zUltrix_UnistdName, zUltrix_UnistdList,
9278 apzUltrix_UnistdMachs,
9279 ULTRIX_UNISTD_TEST_CT, FD_MACH_ONLY,
9280 aUltrix_UnistdTests, apzUltrix_UnistdPatch, 0 },
9281
9282 { zUnicosmk_RestrictName, zUnicosmk_RestrictList,
9283 apzUnicosmk_RestrictMachs,
9284 UNICOSMK_RESTRICT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9285 aUnicosmk_RestrictTests, apzUnicosmk_RestrictPatch, 0 },
9286
9287 { zUw7_Byteorder_FixName, zUw7_Byteorder_FixList,
9288 apzUw7_Byteorder_FixMachs,
9289 UW7_BYTEORDER_FIX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9290 aUw7_Byteorder_FixTests, apzUw7_Byteorder_FixPatch, 0 },
9291
9292 { zVa_I960_MacroName, zVa_I960_MacroList,
9293 apzVa_I960_MacroMachs,
9294 VA_I960_MACRO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9295 aVa_I960_MacroTests, apzVa_I960_MacroPatch, 0 },
9296
9297 { zVoid_NullName, zVoid_NullList,
9298 apzVoid_NullMachs,
9299 VOID_NULL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9300 aVoid_NullTests, apzVoid_NullPatch, 0 },
9301
9302 { zVxworks_Gcc_ProblemName, zVxworks_Gcc_ProblemList,
9303 apzVxworks_Gcc_ProblemMachs,
9304 VXWORKS_GCC_PROBLEM_TEST_CT, FD_MACH_ONLY,
9305 aVxworks_Gcc_ProblemTests, apzVxworks_Gcc_ProblemPatch, 0 },
9306
9307 { zVxworks_Needs_VxtypesName, zVxworks_Needs_VxtypesList,
9308 apzVxworks_Needs_VxtypesMachs,
9309 VXWORKS_NEEDS_VXTYPES_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9310 aVxworks_Needs_VxtypesTests, apzVxworks_Needs_VxtypesPatch, 0 },
9311
9312 { zVxworks_Needs_VxworksName, zVxworks_Needs_VxworksList,
9313 apzVxworks_Needs_VxworksMachs,
9314 VXWORKS_NEEDS_VXWORKS_TEST_CT, FD_MACH_ONLY,
9315 aVxworks_Needs_VxworksTests, apzVxworks_Needs_VxworksPatch, 0 },
9316
9317 { zVxworks_TimeName, zVxworks_TimeList,
9318 apzVxworks_TimeMachs,
9319 VXWORKS_TIME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9320 aVxworks_TimeTests, apzVxworks_TimePatch, 0 },
9321
9322 { zWindiss_Math1Name, zWindiss_Math1List,
9323 apzWindiss_Math1Machs,
9324 WINDISS_MATH1_TEST_CT, FD_MACH_ONLY,
9325 aWindiss_Math1Tests, apzWindiss_Math1Patch, 0 },
9326
9327 { zWindiss_Math2Name, zWindiss_Math2List,
9328 apzWindiss_Math2Machs,
9329 WINDISS_MATH2_TEST_CT, FD_MACH_ONLY,
9330 aWindiss_Math2Tests, apzWindiss_Math2Patch, 0 },
9331
9332 { zWindiss_ValistName, zWindiss_ValistList,
9333 apzWindiss_ValistMachs,
9334 WINDISS_VALIST_TEST_CT, FD_MACH_ONLY,
9335 aWindiss_ValistTests, apzWindiss_ValistPatch, 0 },
9336
9337 { zX11_ClassName, zX11_ClassList,
9338 apzX11_ClassMachs,
9339 X11_CLASS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9340 aX11_ClassTests, apzX11_ClassPatch, 0 },
9341
9342 { zX11_Class_UsageName, zX11_Class_UsageList,
9343 apzX11_Class_UsageMachs,
9344 X11_CLASS_USAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9345 aX11_Class_UsageTests, apzX11_Class_UsagePatch, 0 },
9346
9347 { zX11_NewName, zX11_NewList,
9348 apzX11_NewMachs,
9349 X11_NEW_TEST_CT, FD_MACH_ONLY,
9350 aX11_NewTests, apzX11_NewPatch, 0 },
9351
9352 { zX11_SprintfName, zX11_SprintfList,
9353 apzX11_SprintfMachs,
9354 X11_SPRINTF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9355 aX11_SprintfTests, apzX11_SprintfPatch, 0 }
9356 };