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