remove obsolete fixes
[gcc.git] / gcc / fixinc / fixincl.x
1 /*
2 * DO NOT EDIT THIS FILE - it has been generated
3 *
4 * Install modified versions of certain ANSI-incompatible system header
5 * files which are fixed to work correctly with ANSI C and placed in a
6 * directory that GNU C will search.
7 *
8 * This file contains 138 fixup descriptions.
9 *
10 * See README for more information.
11 *
12 * inclhack copyright (c) 1998, 1999, 2000, 2001
13 * The Free Software Foundation, Inc.
14 *
15 * inclhack is free software.
16 *
17 * You may redistribute it and/or modify it under the terms of the
18 * GNU General Public License, as published by the Free Software
19 * Foundation; either version 2, or (at your option) any later version.
20 *
21 * inclhack is distributed in the hope that it will be useful,
22 * but WITHOUT ANY WARRANTY; without even the implied warranty of
23 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
24 * See the GNU General Public License for more details.
25 *
26 * You should have received a copy of the GNU General Public License
27 * along with inclhack. See the file "COPYING". If not,
28 * write to: The Free Software Foundation, Inc.,
29 * 59 Temple Place - Suite 330,
30 * Boston, MA 02111-1307, USA.
31 */
32
33 /* * * * * * * * * * * * * * * * * * * * * * * * * *
34 *
35 * Description of Aab_Fd_Zero_Asm_Posix_Types_H fix
36 */
37 tSCC zAab_Fd_Zero_Asm_Posix_Types_HName[] =
38 "AAB_fd_zero_asm_posix_types_h";
39
40 /*
41 * File name selection pattern
42 */
43 tSCC zAab_Fd_Zero_Asm_Posix_Types_HList[] =
44 "|asm/posix_types.h|";
45 /*
46 * Machine/OS name selection pattern
47 */
48 tSCC* apzAab_Fd_Zero_Asm_Posix_Types_HMachs[] = {
49 "i[34567]86-*-linux*",
50 (const char*)NULL };
51
52 /*
53 * content bypass pattern - skip fix if pattern found
54 */
55 tSCC zAab_Fd_Zero_Asm_Posix_Types_HBypass0[] =
56 "} while";
57
58 #define AAB_FD_ZERO_ASM_POSIX_TYPES_H_TEST_CT 1
59 static tTestDesc aAab_Fd_Zero_Asm_Posix_Types_HTests[] = {
60 { TT_NEGREP, zAab_Fd_Zero_Asm_Posix_Types_HBypass0, (regex_t*)NULL }, };
61
62 /*
63 * Fix Command Arguments for Aab_Fd_Zero_Asm_Posix_Types_H
64 */
65 static const char* apzAab_Fd_Zero_Asm_Posix_Types_HPatch[] = {
66 "/* This file fixes a bug in the __FD_ZERO macro\n\
67 for older versions of the Linux kernel. */\n\
68 #ifndef _POSIX_TYPES_H_WRAPPER\n\
69 #include <features.h>\n\
70 #include_next <asm/posix_types.h>\n\n\
71 #if defined(__FD_ZERO) && !defined(__GLIBC__)\n\
72 #undef __FD_ZERO\n\
73 #define __FD_ZERO(fdsetp) \\\n\
74 do { \\\n\
75 int __d0, __d1; \\\n\
76 __asm__ __volatile__(\"cld ; rep ; stosl\" \\\n\
77 : \"=&c\" (__d0), \"=&D\" (__d1) \\\n\
78 : \"a\" (0), \"0\" (__FDSET_LONGS), \\\n\
79 \"1\" ((__kernel_fd_set *) (fdsetp)) :\"memory\"); \\\n\
80 } while (0)\n\
81 #endif\n\n\
82 #define _POSIX_TYPES_H_WRAPPER\n\
83 #endif /* _POSIX_TYPES_H_WRAPPER */",
84 (char*)NULL };
85
86 /* * * * * * * * * * * * * * * * * * * * * * * * * *
87 *
88 * Description of Aab_Fd_Zero_Gnu_Types_H fix
89 */
90 tSCC zAab_Fd_Zero_Gnu_Types_HName[] =
91 "AAB_fd_zero_gnu_types_h";
92
93 /*
94 * File name selection pattern
95 */
96 tSCC zAab_Fd_Zero_Gnu_Types_HList[] =
97 "|gnu/types.h|";
98 /*
99 * Machine/OS name selection pattern
100 */
101 tSCC* apzAab_Fd_Zero_Gnu_Types_HMachs[] = {
102 "i[34567]86-*-linux*",
103 (const char*)NULL };
104 #define AAB_FD_ZERO_GNU_TYPES_H_TEST_CT 0
105 #define aAab_Fd_Zero_Gnu_Types_HTests (tTestDesc*)NULL
106
107 /*
108 * Fix Command Arguments for Aab_Fd_Zero_Gnu_Types_H
109 */
110 static const char* apzAab_Fd_Zero_Gnu_Types_HPatch[] = {
111 "/* This file fixes a bug in the __FD_ZERO macro present in glibc 1.x. */\n\
112 #ifndef _TYPES_H_WRAPPER\n\
113 #include <features.h>\n\
114 #include_next <gnu/types.h>\n\n\
115 #if defined(__FD_ZERO) && !defined(__GLIBC__)\n\
116 #undef __FD_ZERO\n\
117 # define __FD_ZERO(fdsetp) \\\\\n\
118 do { \\\\\n\
119 int __d0, __d1; \\\\\n\
120 __asm__ __volatile__(\"cld ; rep ; stosl\" \\\\\n\
121 \t: \"=&c\" (__d0), \"=&D\" (__d1) \\\\\n\
122 \t: \"a\" (0), \"0\" (__FDSET_LONGS), \\\\\n\
123 \"1\" ((__fd_set *) (fdsetp)) :\"memory\"); \\\\\n\
124 } while (0)\n\
125 #endif\n\n\
126 #define _TYPES_H_WRAPPER\n\
127 #endif /* _TYPES_H_WRAPPER */",
128 (char*)NULL };
129
130 /* * * * * * * * * * * * * * * * * * * * * * * * * *
131 *
132 * Description of Aab_Fd_Zero_Selectbits_H fix
133 */
134 tSCC zAab_Fd_Zero_Selectbits_HName[] =
135 "AAB_fd_zero_selectbits_h";
136
137 /*
138 * File name selection pattern
139 */
140 tSCC zAab_Fd_Zero_Selectbits_HList[] =
141 "|selectbits.h|";
142 /*
143 * Machine/OS name selection pattern
144 */
145 tSCC* apzAab_Fd_Zero_Selectbits_HMachs[] = {
146 "i[34567]86-*-linux*",
147 (const char*)NULL };
148 #define AAB_FD_ZERO_SELECTBITS_H_TEST_CT 0
149 #define aAab_Fd_Zero_Selectbits_HTests (tTestDesc*)NULL
150
151 /*
152 * Fix Command Arguments for Aab_Fd_Zero_Selectbits_H
153 */
154 static const char* apzAab_Fd_Zero_Selectbits_HPatch[] = {
155 "/* This file fixes a bug in the __FD_ZERO macro present in glibc 2.0.x. */\n\
156 #ifndef _SELECTBITS_H_WRAPPER\n\
157 #include <features.h>\n\
158 #include_next <selectbits.h>\n\n\
159 #if defined(__FD_ZERO) && defined(__GLIBC__) \\\\\n\
160 && defined(__GLIBC_MINOR__) && __GLIBC__ == 2 \\\\\n\
161 && __GLIBC_MINOR__ == 0\n\
162 #undef __FD_ZERO\n\
163 #define __FD_ZERO(fdsetp) \\\\\n\
164 do { \\\\\n\
165 int __d0, __d1; \\\\\n\
166 __asm__ __volatile__ (\"cld; rep; stosl\" \\\\\n\
167 : \"=&c\" (__d0), \"=&D\" (__d1) \\\\\n\
168 : \"a\" (0), \"0\" (sizeof (__fd_set) \\\\\n\
169 / sizeof (__fd_mask)), \\\\\n\
170 \"1\" ((__fd_mask *) (fdsetp)) \\\\\n\
171 : \"memory\"); \\\\\n\
172 } while (0)\n\
173 #endif\n\n\
174 #define _SELECTBITS_H_WRAPPER\n\
175 #endif /* _SELECTBITS_H_WRAPPER */",
176 (char*)NULL };
177
178 /* * * * * * * * * * * * * * * * * * * * * * * * * *
179 *
180 * Description of Aab_Solaris_Sys_Varargs_H fix
181 */
182 tSCC zAab_Solaris_Sys_Varargs_HName[] =
183 "AAB_solaris_sys_varargs_h";
184
185 /*
186 * File name selection pattern
187 */
188 tSCC zAab_Solaris_Sys_Varargs_HList[] =
189 "|sys/varargs.h|";
190 /*
191 * Machine/OS name selection pattern
192 */
193 tSCC* apzAab_Solaris_Sys_Varargs_HMachs[] = {
194 "*-*-solaris*",
195 (const char*)NULL };
196 #define AAB_SOLARIS_SYS_VARARGS_H_TEST_CT 0
197 #define aAab_Solaris_Sys_Varargs_HTests (tTestDesc*)NULL
198
199 /*
200 * Fix Command Arguments for Aab_Solaris_Sys_Varargs_H
201 */
202 static const char* apzAab_Solaris_Sys_Varargs_HPatch[] = {
203 "#ifdef __STDC__\n\
204 #include <stdarg.h>\n\
205 #else\n\
206 #include <varargs.h>\n\
207 #endif",
208 (char*)NULL };
209
210 /* * * * * * * * * * * * * * * * * * * * * * * * * *
211 *
212 * Description of Aab_Sun_Memcpy fix
213 */
214 tSCC zAab_Sun_MemcpyName[] =
215 "AAB_sun_memcpy";
216
217 /*
218 * File name selection pattern
219 */
220 tSCC zAab_Sun_MemcpyList[] =
221 "|memory.h|";
222 /*
223 * Machine/OS name selection pattern
224 */
225 #define apzAab_Sun_MemcpyMachs (const char**)NULL
226
227 /*
228 * content selection pattern - do fix if pattern found
229 */
230 tSCC zAab_Sun_MemcpySelect0[] =
231 "/\\*\t@\\(#\\)(head/memory.h\t50.1\t |memory\\.h 1\\.[2-4] 8./../.. SMI; from S5R2 1\\.2\t)\\*/";
232
233 #define AAB_SUN_MEMCPY_TEST_CT 1
234 static tTestDesc aAab_Sun_MemcpyTests[] = {
235 { TT_EGREP, zAab_Sun_MemcpySelect0, (regex_t*)NULL }, };
236
237 /*
238 * Fix Command Arguments for Aab_Sun_Memcpy
239 */
240 static const char* apzAab_Sun_MemcpyPatch[] = {
241 "/* This file was generated by fixincludes */\n\
242 #ifndef __memory_h__\n\
243 #define __memory_h__\n\n\
244 #ifdef __STDC__\n\
245 extern void *memccpy();\n\
246 extern void *memchr();\n\
247 extern void *memcpy();\n\
248 extern void *memset();\n\
249 #else\n\
250 extern char *memccpy();\n\
251 extern char *memchr();\n\
252 extern char *memcpy();\n\
253 extern char *memset();\n\
254 #endif /* __STDC__ */\n\n\
255 extern int memcmp();\n\n\
256 #endif /* __memory_h__ */\n\
257 _EndOfHeader;\n\
258 };\n\n\n\
259 /*\n\
260 * Completely replace <sys/varargs.h> with a file that includes gcc's\n\
261 * stdarg.h or varargs.h files as appropriate.\n\
262 */\n\
263 #ifdef SVR4\n\
264 fix = {\n\
265 hackname = AAB_svr4_no_varargs;\n\
266 files = sys/varargs.h;\n\
267 replace = \"/* This file was generated by fixincludes. */\\n\"\n\
268 \"#ifndef _SYS_VARARGS_H\\n\"\n\
269 \"#define _SYS_VARARGS_H\\n\\n\"\n\
270 \n\
271 \"#ifdef __STDC__\\n\"\n\
272 \"#include <stdarg.h>\\n\"\n\
273 \"#else\\n\"\n\
274 \"#include <varargs.h>\\n\"\n\
275 \"#endif\\n\\n\"\n\
276 \n\
277 \"#endif /* _SYS_VARARGS_H */\\n\";\n\
278 };\n\
279 #endif\n\n\n\
280 /*\n\
281 * Completely replace <sys/byteorder.h>; with a file that implements gcc's\n\
282 * optimized byteswapping. Restricted to \"SVR4\" machines until either\n\
283 * it is shown to be safe to replace this file always, or we get bolder ;-)\n\
284 */\n\
285 fix = {\n\
286 hackname = AAB_svr4_replace_byteorder;\n\
287 #ifndef SVR5\n\
288 mach = \"*-*-sysv4*\";\n\
289 mach = \"i[34567]86-*-sysv5*\";\n\
290 mach = \"i[34567]86-*-udk*\";\n\
291 mach = \"i[34567]86-*-solaris2.[0-4]\";\n\
292 mach = \"powerpcle-*-solaris2.[0-4]\";\n\
293 mach = \"sparc-*-solaris2.[0-4]\";\n\
294 #endif /* SVR5 */\n\
295 files = sys/byteorder.h;\n\
296 replace = <<- _EndOfHeader_\n\
297 #ifndef _SYS_BYTEORDER_H\n\
298 #define _SYS_BYTEORDER_H\n\n\
299 /* Functions to convert `short\\' and `long\\' quantities from host byte order\n\
300 to (internet) network byte order (i.e. big-endian).\n\n\
301 Written by Ron Guilmette (rfg@ncd.com).\n\n\
302 This isn\\'t actually used by GCC. It is installed by fixinc.svr4.\n\n\
303 For big-endian machines these functions are essentially no-ops.\n\n\
304 For little-endian machines, we define the functions using specialized\n\
305 asm sequences in cases where doing so yields better code (e.g. i386). */\n\n\
306 #if !defined (__GNUC__) && !defined (__GNUG__)\n\
307 #error You lose! This file is only useful with GNU compilers.\n\
308 #endif\n\n\
309 #ifndef __BYTE_ORDER__\n\
310 /* Byte order defines. These are as defined on UnixWare 1.1, but with\n\
311 double underscores added at the front and back. */\n\
312 #define __LITTLE_ENDIAN__ 1234\n\
313 #define __BIG_ENDIAN__ 4321\n\
314 #define __PDP_ENDIAN__ 3412\n\
315 #endif\n\n\
316 #ifdef __STDC__\n\
317 static __inline__ unsigned long htonl (unsigned long);\n\
318 static __inline__ unsigned short htons (unsigned int);\n\
319 static __inline__ unsigned long ntohl (unsigned long);\n\
320 static __inline__ unsigned short ntohs (unsigned int);\n\
321 #endif /* defined (__STDC__) */\n\n\
322 #if defined (__i386__)\n\n\
323 #ifndef __BYTE_ORDER__\n\
324 #define __BYTE_ORDER__ __LITTLE_ENDIAN__\n\
325 #endif\n\n\
326 /* Convert a host long to a network long. */\n\n\
327 /* We must use a new-style function definition, so that this will also\n\
328 be valid for C++. */\n\
329 static __inline__ unsigned long\n\
330 htonl (unsigned long __arg)\n\
331 {\n\
332 register unsigned long __result;\n\n\
333 __asm__ (\"xchg%B0 %b0,%h0\n\
334 ror%L0 $16,%0\n\
335 xchg%B0 %b0,%h0\" : \"=q\" (__result) : \"0\" (__arg));\n\
336 return __result;\n\
337 }\n\n\
338 /* Convert a host short to a network short. */\n\n\
339 static __inline__ unsigned short\n\
340 htons (unsigned int __arg)\n\
341 {\n\
342 register unsigned short __result;\n\n\
343 __asm__ (\"xchg%B0 %b0,%h0\" : \"=q\" (__result) : \"0\" (__arg));\n\
344 return __result;\n\
345 }\n\n\
346 #elif (defined (__ns32k__) || defined (__vax__) || defined (__arm__))\n\n\
347 #ifndef __BYTE_ORDER__\n\
348 #define __BYTE_ORDER__ __LITTLE_ENDIAN__\n\
349 #endif\n\n\
350 /* For other little-endian machines, using C code is just as efficient as\n\
351 using assembly code. */\n\n\
352 /* Convert a host long to a network long. */\n\n\
353 static __inline__ unsigned long\n\
354 htonl (unsigned long __arg)\n\
355 {\n\
356 register unsigned long __result;\n\n\
357 __result = (__arg >> 24) & 0x000000ff;\n\
358 __result |= (__arg >> 8) & 0x0000ff00;\n\
359 __result |= (__arg << 8) & 0x00ff0000;\n\
360 __result |= (__arg << 24) & 0xff000000;\n\
361 return __result;\n\
362 }\n\n\
363 /* Convert a host short to a network short. */\n\n\
364 static __inline__ unsigned short\n\
365 htons (unsigned int __arg)\n\
366 {\n\
367 register unsigned short __result;\n\n\
368 __result = (__arg << 8) & 0xff00;\n\
369 __result |= (__arg >> 8) & 0x00ff;\n\
370 return __result;\n\
371 }\n\n\
372 #else /* must be a big-endian machine */\n\n\
373 #ifndef __BYTE_ORDER__\n\
374 #define __BYTE_ORDER__ __BIG_ENDIAN__\n\
375 #endif\n\n\
376 /* Convert a host long to a network long. */\n\n\
377 static __inline__ unsigned long\n\
378 htonl (unsigned long __arg)\n\
379 {\n\
380 return __arg;\n\
381 }\n\n\
382 /* Convert a host short to a network short. */\n\n\
383 static __inline__ unsigned short\n\
384 htons (unsigned int __arg)\n\
385 {\n\
386 return __arg;\n\
387 }\n\n\
388 #endif /* big-endian */\n\n\
389 /* Convert a network long to a host long. */\n\n\
390 static __inline__ unsigned long\n\
391 ntohl (unsigned long __arg)\n\
392 {\n\
393 return htonl (__arg);\n\
394 }\n\n\
395 /* Convert a network short to a host short. */\n\n\
396 static __inline__ unsigned short\n\
397 ntohs (unsigned int __arg)\n\
398 {\n\
399 return htons (__arg);\n\
400 }\n\
401 #endif",
402 (char*)NULL };
403
404 /* * * * * * * * * * * * * * * * * * * * * * * * * *
405 *
406 * Description of Aab_Ultrix_Ansi_Compat fix
407 */
408 tSCC zAab_Ultrix_Ansi_CompatName[] =
409 "AAB_ultrix_ansi_compat";
410
411 /*
412 * File name selection pattern
413 */
414 tSCC zAab_Ultrix_Ansi_CompatList[] =
415 "|ansi_compat.h|";
416 /*
417 * Machine/OS name selection pattern
418 */
419 #define apzAab_Ultrix_Ansi_CompatMachs (const char**)NULL
420
421 /*
422 * content selection pattern - do fix if pattern found
423 */
424 tSCC zAab_Ultrix_Ansi_CompatSelect0[] =
425 "ULTRIX";
426
427 #define AAB_ULTRIX_ANSI_COMPAT_TEST_CT 1
428 static tTestDesc aAab_Ultrix_Ansi_CompatTests[] = {
429 { TT_EGREP, zAab_Ultrix_Ansi_CompatSelect0, (regex_t*)NULL }, };
430
431 /*
432 * Fix Command Arguments for Aab_Ultrix_Ansi_Compat
433 */
434 static const char* apzAab_Ultrix_Ansi_CompatPatch[] = {
435 "/* This file intentionally left blank. */\n",
436 (char*)NULL };
437
438 /* * * * * * * * * * * * * * * * * * * * * * * * * *
439 *
440 * Description of Aab_Ultrix_Limits fix
441 */
442 tSCC zAab_Ultrix_LimitsName[] =
443 "AAB_ultrix_limits";
444
445 /*
446 * File name selection pattern
447 */
448 tSCC zAab_Ultrix_LimitsList[] =
449 "|limits.h|";
450 /*
451 * Machine/OS name selection pattern
452 */
453 tSCC* apzAab_Ultrix_LimitsMachs[] = {
454 "*-*-ultrix4.3",
455 (const char*)NULL };
456 #define AAB_ULTRIX_LIMITS_TEST_CT 0
457 #define aAab_Ultrix_LimitsTests (tTestDesc*)NULL
458
459 /*
460 * Fix Command Arguments for Aab_Ultrix_Limits
461 */
462 static const char* apzAab_Ultrix_LimitsPatch[] = {
463 "#ifndef _LIMITS_INCLUDED\n\
464 #define _LIMITS_INCLUDED\n\
465 #include <sys/limits.h>\n\
466 #endif /* _LIMITS_INCLUDED */",
467 (char*)NULL };
468
469 /* * * * * * * * * * * * * * * * * * * * * * * * * *
470 *
471 * Description of Aab_Ultrix_Memory fix
472 */
473 tSCC zAab_Ultrix_MemoryName[] =
474 "AAB_ultrix_memory";
475
476 /*
477 * File name selection pattern
478 */
479 tSCC zAab_Ultrix_MemoryList[] =
480 "|memory.h|";
481 /*
482 * Machine/OS name selection pattern
483 */
484 tSCC* apzAab_Ultrix_MemoryMachs[] = {
485 "*-*-ultrix4.3",
486 (const char*)NULL };
487 #define AAB_ULTRIX_MEMORY_TEST_CT 0
488 #define aAab_Ultrix_MemoryTests (tTestDesc*)NULL
489
490 /*
491 * Fix Command Arguments for Aab_Ultrix_Memory
492 */
493 static const char* apzAab_Ultrix_MemoryPatch[] = {
494 "#ifndef _MEMORY_INCLUDED\n\
495 #define _MEMORY_INCLUDED\n\
496 #include <strings.h>\n\
497 #endif /* _MEMORY_INCLUDED */",
498 (char*)NULL };
499
500 /* * * * * * * * * * * * * * * * * * * * * * * * * *
501 *
502 * Description of Aab_Ultrix_String fix
503 */
504 tSCC zAab_Ultrix_StringName[] =
505 "AAB_ultrix_string";
506
507 /*
508 * File name selection pattern
509 */
510 tSCC zAab_Ultrix_StringList[] =
511 "|string.h|";
512 /*
513 * Machine/OS name selection pattern
514 */
515 tSCC* apzAab_Ultrix_StringMachs[] = {
516 "*-*-ultrix4.3",
517 (const char*)NULL };
518 #define AAB_ULTRIX_STRING_TEST_CT 0
519 #define aAab_Ultrix_StringTests (tTestDesc*)NULL
520
521 /*
522 * Fix Command Arguments for Aab_Ultrix_String
523 */
524 static const char* apzAab_Ultrix_StringPatch[] = {
525 "#ifndef _STRING_INCLUDED\n\
526 #define _STRING_INCLUDED\n\
527 #include <strings.h>\n\
528 #endif /* _STRING_INCLUDED */",
529 (char*)NULL };
530
531 /* * * * * * * * * * * * * * * * * * * * * * * * * *
532 *
533 * Description of Aix_Pthread fix
534 */
535 tSCC zAix_PthreadName[] =
536 "aix_pthread";
537
538 /*
539 * File name selection pattern
540 */
541 tSCC zAix_PthreadList[] =
542 "|pthread.h|";
543 /*
544 * Machine/OS name selection pattern
545 */
546 #define apzAix_PthreadMachs (const char**)NULL
547
548 /*
549 * content selection pattern - do fix if pattern found
550 */
551 tSCC zAix_PthreadSelect0[] =
552 "(#define [A-Za-z_0-9]+)(\\\\\n\
553 [^A-Za-z_0-9 \t\n\
554 (])";
555
556 #define AIX_PTHREAD_TEST_CT 1
557 static tTestDesc aAix_PthreadTests[] = {
558 { TT_EGREP, zAix_PthreadSelect0, (regex_t*)NULL }, };
559
560 /*
561 * Fix Command Arguments for Aix_Pthread
562 */
563 static const char* apzAix_PthreadPatch[] = {
564 "format",
565 "%1 %2",
566 (char*)NULL };
567
568 /* * * * * * * * * * * * * * * * * * * * * * * * * *
569 *
570 * Description of Aix_Sysmachine fix
571 */
572 tSCC zAix_SysmachineName[] =
573 "aix_sysmachine";
574
575 /*
576 * File name selection pattern
577 */
578 tSCC zAix_SysmachineList[] =
579 "|sys/machine.h|";
580 /*
581 * Machine/OS name selection pattern
582 */
583 #define apzAix_SysmachineMachs (const char**)NULL
584
585 /*
586 * content selection pattern - do fix if pattern found
587 */
588 tSCC zAix_SysmachineSelect0[] =
589 "\\\\ +\n";
590
591 #define AIX_SYSMACHINE_TEST_CT 1
592 static tTestDesc aAix_SysmachineTests[] = {
593 { TT_EGREP, zAix_SysmachineSelect0, (regex_t*)NULL }, };
594
595 /*
596 * Fix Command Arguments for Aix_Sysmachine
597 */
598 static const char* apzAix_SysmachinePatch[] = {
599 "format",
600 "\\\n",
601 (char*)NULL };
602
603 /* * * * * * * * * * * * * * * * * * * * * * * * * *
604 *
605 * Description of Aix_Syswait fix
606 */
607 tSCC zAix_SyswaitName[] =
608 "aix_syswait";
609
610 /*
611 * File name selection pattern
612 */
613 tSCC zAix_SyswaitList[] =
614 "|sys/wait.h|";
615 /*
616 * Machine/OS name selection pattern
617 */
618 #define apzAix_SyswaitMachs (const char**)NULL
619
620 /*
621 * content selection pattern - do fix if pattern found
622 */
623 tSCC zAix_SyswaitSelect0[] =
624 "^extern pid_t wait3\\(\\);\n";
625 tSCC zAix_SyswaitSelect1[] =
626 "bos325,";
627
628 #define AIX_SYSWAIT_TEST_CT 2
629 static tTestDesc aAix_SyswaitTests[] = {
630 { TT_EGREP, zAix_SyswaitSelect0, (regex_t*)NULL },
631 { TT_EGREP, zAix_SyswaitSelect1, (regex_t*)NULL }, };
632
633 /*
634 * Fix Command Arguments for Aix_Syswait
635 */
636 static const char* apzAix_SyswaitPatch[] = {
637 "format",
638 "struct rusage;\n\
639 %0",
640 (char*)NULL };
641
642 /* * * * * * * * * * * * * * * * * * * * * * * * * *
643 *
644 * Description of Aix_Volatile fix
645 */
646 tSCC zAix_VolatileName[] =
647 "aix_volatile";
648
649 /*
650 * File name selection pattern
651 */
652 tSCC zAix_VolatileList[] =
653 "|sys/signal.h|";
654 /*
655 * Machine/OS name selection pattern
656 */
657 #define apzAix_VolatileMachs (const char**)NULL
658
659 /*
660 * content selection pattern - do fix if pattern found
661 */
662 tSCC zAix_VolatileSelect0[] =
663 "typedef volatile int sig_atomic_t";
664
665 #define AIX_VOLATILE_TEST_CT 1
666 static tTestDesc aAix_VolatileTests[] = {
667 { TT_EGREP, zAix_VolatileSelect0, (regex_t*)NULL }, };
668
669 /*
670 * Fix Command Arguments for Aix_Volatile
671 */
672 static const char* apzAix_VolatilePatch[] = {
673 "format",
674 "typedef int sig_atomic_t",
675 (char*)NULL };
676
677 /* * * * * * * * * * * * * * * * * * * * * * * * * *
678 *
679 * Description of Alpha___Assert fix
680 */
681 tSCC zAlpha___AssertName[] =
682 "alpha___assert";
683
684 /*
685 * File name selection pattern
686 */
687 tSCC zAlpha___AssertList[] =
688 "|assert.h|";
689 /*
690 * Machine/OS name selection pattern
691 */
692 #define apzAlpha___AssertMachs (const char**)NULL
693
694 /*
695 * content selection pattern - do fix if pattern found
696 */
697 tSCC zAlpha___AssertSelect0[] =
698 "__assert\\(char \\*, char \\*, int\\)";
699
700 #define ALPHA___ASSERT_TEST_CT 1
701 static tTestDesc aAlpha___AssertTests[] = {
702 { TT_EGREP, zAlpha___AssertSelect0, (regex_t*)NULL }, };
703
704 /*
705 * Fix Command Arguments for Alpha___Assert
706 */
707 static const char* apzAlpha___AssertPatch[] = {
708 "format",
709 "__assert(const char *, const char *, int)",
710 (char*)NULL };
711
712 /* * * * * * * * * * * * * * * * * * * * * * * * * *
713 *
714 * Description of Alpha_Assert fix
715 */
716 tSCC zAlpha_AssertName[] =
717 "alpha_assert";
718
719 /*
720 * File name selection pattern
721 */
722 tSCC zAlpha_AssertList[] =
723 "|assert.h|";
724 /*
725 * Machine/OS name selection pattern
726 */
727 #define apzAlpha_AssertMachs (const char**)NULL
728
729 /*
730 * content selection pattern - do fix if pattern found
731 */
732 tSCC zAlpha_AssertSelect0[] =
733 "(#define assert\\(EX\\).*)\\(\\(int\\) \\(EX\\)\\)";
734
735 #define ALPHA_ASSERT_TEST_CT 1
736 static tTestDesc aAlpha_AssertTests[] = {
737 { TT_EGREP, zAlpha_AssertSelect0, (regex_t*)NULL }, };
738
739 /*
740 * Fix Command Arguments for Alpha_Assert
741 */
742 static const char* apzAlpha_AssertPatch[] = {
743 "format",
744 "%1(EX)",
745 (char*)NULL };
746
747 /* * * * * * * * * * * * * * * * * * * * * * * * * *
748 *
749 * Description of Alpha_Getopt fix
750 */
751 tSCC zAlpha_GetoptName[] =
752 "alpha_getopt";
753
754 /*
755 * File name selection pattern
756 */
757 tSCC zAlpha_GetoptList[] =
758 "|stdio.h|stdlib.h|";
759 /*
760 * Machine/OS name selection pattern
761 */
762 #define apzAlpha_GetoptMachs (const char**)NULL
763
764 /*
765 * content selection pattern - do fix if pattern found
766 */
767 tSCC zAlpha_GetoptSelect0[] =
768 "getopt\\(int, char \\*\\[\\], *char \\*\\)";
769
770 #define ALPHA_GETOPT_TEST_CT 1
771 static tTestDesc aAlpha_GetoptTests[] = {
772 { TT_EGREP, zAlpha_GetoptSelect0, (regex_t*)NULL }, };
773
774 /*
775 * Fix Command Arguments for Alpha_Getopt
776 */
777 static const char* apzAlpha_GetoptPatch[] = {
778 "format",
779 "getopt(int, char *const[], const char *)",
780 (char*)NULL };
781
782 /* * * * * * * * * * * * * * * * * * * * * * * * * *
783 *
784 * Description of Alpha_Parens fix
785 */
786 tSCC zAlpha_ParensName[] =
787 "alpha_parens";
788
789 /*
790 * File name selection pattern
791 */
792 tSCC zAlpha_ParensList[] =
793 "|sym.h|";
794 /*
795 * Machine/OS name selection pattern
796 */
797 #define apzAlpha_ParensMachs (const char**)NULL
798
799 /*
800 * content selection pattern - do fix if pattern found
801 */
802 tSCC zAlpha_ParensSelect0[] =
803 "#ifndef\\(__mips64\\)";
804
805 #define ALPHA_PARENS_TEST_CT 1
806 static tTestDesc aAlpha_ParensTests[] = {
807 { TT_EGREP, zAlpha_ParensSelect0, (regex_t*)NULL }, };
808
809 /*
810 * Fix Command Arguments for Alpha_Parens
811 */
812 static const char* apzAlpha_ParensPatch[] = {
813 "format",
814 "#ifndef __mips64",
815 (char*)NULL };
816
817 /* * * * * * * * * * * * * * * * * * * * * * * * * *
818 *
819 * Description of Alpha_Sbrk fix
820 */
821 tSCC zAlpha_SbrkName[] =
822 "alpha_sbrk";
823
824 /*
825 * File name selection pattern
826 */
827 tSCC zAlpha_SbrkList[] =
828 "|unistd.h|";
829 /*
830 * Machine/OS name selection pattern
831 */
832 #define apzAlpha_SbrkMachs (const char**)NULL
833
834 /*
835 * content selection pattern - do fix if pattern found
836 */
837 tSCC zAlpha_SbrkSelect0[] =
838 "char[ \t]*\\*[\t ]*sbrk[ \t]*\\(";
839
840 #define ALPHA_SBRK_TEST_CT 1
841 static tTestDesc aAlpha_SbrkTests[] = {
842 { TT_EGREP, zAlpha_SbrkSelect0, (regex_t*)NULL }, };
843
844 /*
845 * Fix Command Arguments for Alpha_Sbrk
846 */
847 static const char* apzAlpha_SbrkPatch[] = {
848 "format",
849 "void *sbrk(",
850 (char*)NULL };
851
852 /* * * * * * * * * * * * * * * * * * * * * * * * * *
853 *
854 * Description of Avoid_Bool_Define fix
855 */
856 tSCC zAvoid_Bool_DefineName[] =
857 "avoid_bool_define";
858
859 /*
860 * File name selection pattern
861 */
862 tSCC zAvoid_Bool_DefineList[] =
863 "|curses.h|curses_colr/curses.h|term.h|tinfo.h|";
864 /*
865 * Machine/OS name selection pattern
866 */
867 #define apzAvoid_Bool_DefineMachs (const char**)NULL
868
869 /*
870 * content selection pattern - do fix if pattern found
871 */
872 tSCC zAvoid_Bool_DefineSelect0[] =
873 "#[ \t]*define[ \t]+bool[ \t]";
874
875 /*
876 * content bypass pattern - skip fix if pattern found
877 */
878 tSCC zAvoid_Bool_DefineBypass0[] =
879 "we must use the C\\+\\+ compiler's type";
880
881 #define AVOID_BOOL_DEFINE_TEST_CT 2
882 static tTestDesc aAvoid_Bool_DefineTests[] = {
883 { TT_NEGREP, zAvoid_Bool_DefineBypass0, (regex_t*)NULL },
884 { TT_EGREP, zAvoid_Bool_DefineSelect0, (regex_t*)NULL }, };
885
886 /*
887 * Fix Command Arguments for Avoid_Bool_Define
888 */
889 static const char* apzAvoid_Bool_DefinePatch[] = {
890 "format",
891 "#ifndef __cplusplus\n\
892 %0\n\
893 #endif",
894 "^[ \t]*#[ \t]*define[ \t]+bool[ \t].*",
895 (char*)NULL };
896
897 /* * * * * * * * * * * * * * * * * * * * * * * * * *
898 *
899 * Description of Avoid_Bool_Type fix
900 */
901 tSCC zAvoid_Bool_TypeName[] =
902 "avoid_bool_type";
903
904 /*
905 * File name selection pattern
906 */
907 tSCC zAvoid_Bool_TypeList[] =
908 "|curses.h|curses_colr/curses.h|term.h|tinfo.h|";
909 /*
910 * Machine/OS name selection pattern
911 */
912 #define apzAvoid_Bool_TypeMachs (const char**)NULL
913
914 /*
915 * content selection pattern - do fix if pattern found
916 */
917 tSCC zAvoid_Bool_TypeSelect0[] =
918 "^[ \t]*typedef[ \t].*[ \t]bool[ \t]*;";
919
920 /*
921 * content bypass pattern - skip fix if pattern found
922 */
923 tSCC zAvoid_Bool_TypeBypass0[] =
924 "we must use the C\\+\\+ compiler's type";
925
926 #define AVOID_BOOL_TYPE_TEST_CT 2
927 static tTestDesc aAvoid_Bool_TypeTests[] = {
928 { TT_NEGREP, zAvoid_Bool_TypeBypass0, (regex_t*)NULL },
929 { TT_EGREP, zAvoid_Bool_TypeSelect0, (regex_t*)NULL }, };
930
931 /*
932 * Fix Command Arguments for Avoid_Bool_Type
933 */
934 static const char* apzAvoid_Bool_TypePatch[] = {
935 "format",
936 "#ifndef __cplusplus\n\
937 %0\n\
938 #endif",
939 (char*)NULL };
940
941 /* * * * * * * * * * * * * * * * * * * * * * * * * *
942 *
943 * Description of Avoid_Wchar_T_Type fix
944 */
945 tSCC zAvoid_Wchar_T_TypeName[] =
946 "avoid_wchar_t_type";
947
948 /*
949 * File name selection pattern
950 */
951 #define zAvoid_Wchar_T_TypeList (char*)NULL
952 /*
953 * Machine/OS name selection pattern
954 */
955 #define apzAvoid_Wchar_T_TypeMachs (const char**)NULL
956
957 /*
958 * content selection pattern - do fix if pattern found
959 */
960 tSCC zAvoid_Wchar_T_TypeSelect0[] =
961 "^[ \t]*typedef[ \t].*[ \t]wchar_t[ \t]*;";
962
963 #define AVOID_WCHAR_T_TYPE_TEST_CT 1
964 static tTestDesc aAvoid_Wchar_T_TypeTests[] = {
965 { TT_EGREP, zAvoid_Wchar_T_TypeSelect0, (regex_t*)NULL }, };
966
967 /*
968 * Fix Command Arguments for Avoid_Wchar_T_Type
969 */
970 static const char* apzAvoid_Wchar_T_TypePatch[] = {
971 "format",
972 "#ifndef __cplusplus\n\
973 %0\n\
974 #endif",
975 (char*)NULL };
976
977 /* * * * * * * * * * * * * * * * * * * * * * * * * *
978 *
979 * Description of Bad_Lval fix
980 */
981 tSCC zBad_LvalName[] =
982 "bad_lval";
983
984 /*
985 * File name selection pattern
986 */
987 tSCC zBad_LvalList[] =
988 "|libgen.h|dirent.h|ftw.h|grp.h|ndbm.h|pthread.h|pwd.h|signal.h|standards.h|stdlib.h|string.h|stropts.h|time.h|unistd.h|";
989 /*
990 * Machine/OS name selection pattern
991 */
992 #define apzBad_LvalMachs (const char**)NULL
993
994 /*
995 * content selection pattern - do fix if pattern found
996 */
997 tSCC zBad_LvalSelect0[] =
998 "^[ \t]*#[ \t]*pragma[ \t]+extern_prefix";
999
1000 #define BAD_LVAL_TEST_CT 1
1001 static tTestDesc aBad_LvalTests[] = {
1002 { TT_EGREP, zBad_LvalSelect0, (regex_t*)NULL }, };
1003
1004 /*
1005 * Fix Command Arguments for Bad_Lval
1006 */
1007 static const char* apzBad_LvalPatch[] = { "sed",
1008 "-e", "s/^[ \t]*#[ \t]*define[ \t][ \t]*\\([^(]*\\)\\(([^)]*)\\)[ \t]*\\(_.*\\)\\1\\2[ \t]*$/#define \\1 \\3\\1/",
1009 (char*)NULL };
1010
1011 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1012 *
1013 * Description of Bad_Struct_Term fix
1014 */
1015 tSCC zBad_Struct_TermName[] =
1016 "bad_struct_term";
1017
1018 /*
1019 * File name selection pattern
1020 */
1021 tSCC zBad_Struct_TermList[] =
1022 "|curses.h|";
1023 /*
1024 * Machine/OS name selection pattern
1025 */
1026 #define apzBad_Struct_TermMachs (const char**)NULL
1027
1028 /*
1029 * content selection pattern - do fix if pattern found
1030 */
1031 tSCC zBad_Struct_TermSelect0[] =
1032 "^[ \t]*typedef[ \t]+struct[ \t]+term[ \t]*;";
1033
1034 #define BAD_STRUCT_TERM_TEST_CT 1
1035 static tTestDesc aBad_Struct_TermTests[] = {
1036 { TT_EGREP, zBad_Struct_TermSelect0, (regex_t*)NULL }, };
1037
1038 /*
1039 * Fix Command Arguments for Bad_Struct_Term
1040 */
1041 static const char* apzBad_Struct_TermPatch[] = {
1042 "format",
1043 "struct term;",
1044 (char*)NULL };
1045
1046 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1047 *
1048 * Description of Badquote fix
1049 */
1050 tSCC zBadquoteName[] =
1051 "badquote";
1052
1053 /*
1054 * File name selection pattern
1055 */
1056 tSCC zBadquoteList[] =
1057 "|sundev/vuid_event.h|";
1058 /*
1059 * Machine/OS name selection pattern
1060 */
1061 #define apzBadquoteMachs (const char**)NULL
1062
1063 /*
1064 * content selection pattern - do fix if pattern found
1065 */
1066 tSCC zBadquoteSelect0[] =
1067 "doesn't";
1068
1069 #define BADQUOTE_TEST_CT 1
1070 static tTestDesc aBadquoteTests[] = {
1071 { TT_EGREP, zBadquoteSelect0, (regex_t*)NULL }, };
1072
1073 /*
1074 * Fix Command Arguments for Badquote
1075 */
1076 static const char* apzBadquotePatch[] = {
1077 "format",
1078 "does not",
1079 (char*)NULL };
1080
1081 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1082 *
1083 * Description of Broken_Assert_Stdio fix
1084 */
1085 tSCC zBroken_Assert_StdioName[] =
1086 "broken_assert_stdio";
1087
1088 /*
1089 * File name selection pattern
1090 */
1091 tSCC zBroken_Assert_StdioList[] =
1092 "|assert.h|";
1093 /*
1094 * Machine/OS name selection pattern
1095 */
1096 #define apzBroken_Assert_StdioMachs (const char**)NULL
1097
1098 /*
1099 * content selection pattern - do fix if pattern found
1100 */
1101 tSCC zBroken_Assert_StdioSelect0[] =
1102 "stderr";
1103
1104 /*
1105 * content bypass pattern - skip fix if pattern found
1106 */
1107 tSCC zBroken_Assert_StdioBypass0[] =
1108 "include.*stdio\\.h";
1109
1110 #define BROKEN_ASSERT_STDIO_TEST_CT 2
1111 static tTestDesc aBroken_Assert_StdioTests[] = {
1112 { TT_NEGREP, zBroken_Assert_StdioBypass0, (regex_t*)NULL },
1113 { TT_EGREP, zBroken_Assert_StdioSelect0, (regex_t*)NULL }, };
1114
1115 /*
1116 * Fix Command Arguments for Broken_Assert_Stdio
1117 */
1118 static const char* apzBroken_Assert_StdioPatch[] = {
1119 "wrap",
1120 "#include <stdio.h>\n",
1121 (char*)NULL };
1122
1123 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1124 *
1125 * Description of Broken_Assert_Stdlib fix
1126 */
1127 tSCC zBroken_Assert_StdlibName[] =
1128 "broken_assert_stdlib";
1129
1130 /*
1131 * File name selection pattern
1132 */
1133 tSCC zBroken_Assert_StdlibList[] =
1134 "|assert.h|";
1135 /*
1136 * Machine/OS name selection pattern
1137 */
1138 #define apzBroken_Assert_StdlibMachs (const char**)NULL
1139
1140 /*
1141 * content selection pattern - do fix if pattern found
1142 */
1143 tSCC zBroken_Assert_StdlibSelect0[] =
1144 "exit *\\(|abort *\\(";
1145
1146 /*
1147 * content bypass pattern - skip fix if pattern found
1148 */
1149 tSCC zBroken_Assert_StdlibBypass0[] =
1150 "include.*stdlib\\.h";
1151
1152 #define BROKEN_ASSERT_STDLIB_TEST_CT 2
1153 static tTestDesc aBroken_Assert_StdlibTests[] = {
1154 { TT_NEGREP, zBroken_Assert_StdlibBypass0, (regex_t*)NULL },
1155 { TT_EGREP, zBroken_Assert_StdlibSelect0, (regex_t*)NULL }, };
1156
1157 /*
1158 * Fix Command Arguments for Broken_Assert_Stdlib
1159 */
1160 static const char* apzBroken_Assert_StdlibPatch[] = {
1161 "wrap",
1162 "#ifdef __cplusplus\n\
1163 #include <stdlib.h>\n\
1164 #endif\n",
1165 (char*)NULL };
1166
1167 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1168 *
1169 * Description of Broken_Cabs fix
1170 */
1171 tSCC zBroken_CabsName[] =
1172 "broken_cabs";
1173
1174 /*
1175 * File name selection pattern
1176 */
1177 tSCC zBroken_CabsList[] =
1178 "|math.h|";
1179 /*
1180 * Machine/OS name selection pattern
1181 */
1182 #define apzBroken_CabsMachs (const char**)NULL
1183
1184 /*
1185 * content selection pattern - do fix if pattern found
1186 */
1187 tSCC zBroken_CabsSelect0[] =
1188 "^extern[ \\t]+double[ \\t]+cabs";
1189
1190 #define BROKEN_CABS_TEST_CT 1
1191 static tTestDesc aBroken_CabsTests[] = {
1192 { TT_EGREP, zBroken_CabsSelect0, (regex_t*)NULL }, };
1193
1194 /*
1195 * Fix Command Arguments for Broken_Cabs
1196 */
1197 static const char* apzBroken_CabsPatch[] = {
1198 "format",
1199 "",
1200 "^extern[ \t]+double[ \t]+cabs\\((struct dbl_hypot|)\\);",
1201 (char*)NULL };
1202
1203 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1204 *
1205 * Description of Ctrl_Quotes_Def fix
1206 */
1207 tSCC zCtrl_Quotes_DefName[] =
1208 "ctrl_quotes_def";
1209
1210 /*
1211 * File name selection pattern
1212 */
1213 #define zCtrl_Quotes_DefList (char*)NULL
1214 /*
1215 * Machine/OS name selection pattern
1216 */
1217 #define apzCtrl_Quotes_DefMachs (const char**)NULL
1218
1219 /*
1220 * content selection pattern - do fix if pattern found
1221 */
1222 tSCC zCtrl_Quotes_DefSelect0[] =
1223 "define[ \t]+[A-Z0-9_]+CTRL\\([a-zA-Z][,)]";
1224
1225 #define CTRL_QUOTES_DEF_TEST_CT 1
1226 static tTestDesc aCtrl_Quotes_DefTests[] = {
1227 { TT_EGREP, zCtrl_Quotes_DefSelect0, (regex_t*)NULL }, };
1228
1229 /*
1230 * Fix Command Arguments for Ctrl_Quotes_Def
1231 */
1232 static const char* apzCtrl_Quotes_DefPatch[] = {
1233 "char_macro_def",
1234 "CTRL",
1235 (char*)NULL };
1236
1237 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1238 *
1239 * Description of Ctrl_Quotes_Use fix
1240 */
1241 tSCC zCtrl_Quotes_UseName[] =
1242 "ctrl_quotes_use";
1243
1244 /*
1245 * File name selection pattern
1246 */
1247 #define zCtrl_Quotes_UseList (char*)NULL
1248 /*
1249 * Machine/OS name selection pattern
1250 */
1251 #define apzCtrl_Quotes_UseMachs (const char**)NULL
1252
1253 /*
1254 * content selection pattern - do fix if pattern found
1255 */
1256 tSCC zCtrl_Quotes_UseSelect0[] =
1257 "define[ \t]+[A-Z0-9_]+[ \t]+[A-Z0-9_]+CTRL[ \t]*\\( *[^,']";
1258
1259 #define CTRL_QUOTES_USE_TEST_CT 1
1260 static tTestDesc aCtrl_Quotes_UseTests[] = {
1261 { TT_EGREP, zCtrl_Quotes_UseSelect0, (regex_t*)NULL }, };
1262
1263 /*
1264 * Fix Command Arguments for Ctrl_Quotes_Use
1265 */
1266 static const char* apzCtrl_Quotes_UsePatch[] = {
1267 "char_macro_use",
1268 "CTRL",
1269 (char*)NULL };
1270
1271 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1272 *
1273 * Description of Cxx_Unready fix
1274 */
1275 tSCC zCxx_UnreadyName[] =
1276 "cxx_unready";
1277
1278 /*
1279 * File name selection pattern
1280 */
1281 tSCC zCxx_UnreadyList[] =
1282 "|sys/mman.h|rpc/types.h|";
1283 /*
1284 * Machine/OS name selection pattern
1285 */
1286 #define apzCxx_UnreadyMachs (const char**)NULL
1287
1288 /*
1289 * content selection pattern - do fix if pattern found
1290 */
1291 tSCC zCxx_UnreadySelect0[] =
1292 "[^#]+malloc.*;";
1293
1294 /*
1295 * content bypass pattern - skip fix if pattern found
1296 */
1297 tSCC zCxx_UnreadyBypass0[] =
1298 "\"C\"|__BEGIN_DECLS";
1299
1300 #define CXX_UNREADY_TEST_CT 2
1301 static tTestDesc aCxx_UnreadyTests[] = {
1302 { TT_NEGREP, zCxx_UnreadyBypass0, (regex_t*)NULL },
1303 { TT_EGREP, zCxx_UnreadySelect0, (regex_t*)NULL }, };
1304
1305 /*
1306 * Fix Command Arguments for Cxx_Unready
1307 */
1308 static const char* apzCxx_UnreadyPatch[] = {
1309 "wrap",
1310 "#ifdef __cplusplus\n\
1311 extern \"C\" {\n\
1312 #endif\n",
1313 "#ifdef __cplusplus\n\
1314 }\n\
1315 #endif\n",
1316 (char*)NULL };
1317
1318 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1319 *
1320 * Description of Dec_Intern_Asm fix
1321 */
1322 tSCC zDec_Intern_AsmName[] =
1323 "dec_intern_asm";
1324
1325 /*
1326 * File name selection pattern
1327 */
1328 tSCC zDec_Intern_AsmList[] =
1329 "|c_asm.h|";
1330 /*
1331 * Machine/OS name selection pattern
1332 */
1333 #define apzDec_Intern_AsmMachs (const char**)NULL
1334 #define DEC_INTERN_ASM_TEST_CT 0
1335 #define aDec_Intern_AsmTests (tTestDesc*)NULL
1336
1337 /*
1338 * Fix Command Arguments for Dec_Intern_Asm
1339 */
1340 static const char* apzDec_Intern_AsmPatch[] = { "sed",
1341 "-e", "/^[ \t]*float[ \t]*fasm/i\\\n\
1342 #ifdef __DECC\n",
1343 "-e", "/^[ \t]*#[ \t]*pragma[ \t]*intrinsic([ \t]*dasm/a\\\n\
1344 #endif\n",
1345 (char*)NULL };
1346
1347 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1348 *
1349 * Description of Djgpp_Wchar_H fix
1350 */
1351 tSCC zDjgpp_Wchar_HName[] =
1352 "djgpp_wchar_h";
1353
1354 /*
1355 * File name selection pattern
1356 */
1357 #define zDjgpp_Wchar_HList (char*)NULL
1358 /*
1359 * Machine/OS name selection pattern
1360 */
1361 #define apzDjgpp_Wchar_HMachs (const char**)NULL
1362
1363 /*
1364 * content selection pattern - do fix if pattern found
1365 */
1366 tSCC zDjgpp_Wchar_HSelect0[] =
1367 "__DJ_wint_t";
1368
1369 /*
1370 * content bypass pattern - skip fix if pattern found
1371 */
1372 tSCC zDjgpp_Wchar_HBypass0[] =
1373 "sys/djtypes.h";
1374
1375 #define DJGPP_WCHAR_H_TEST_CT 2
1376 static tTestDesc aDjgpp_Wchar_HTests[] = {
1377 { TT_NEGREP, zDjgpp_Wchar_HBypass0, (regex_t*)NULL },
1378 { TT_EGREP, zDjgpp_Wchar_HSelect0, (regex_t*)NULL }, };
1379
1380 /*
1381 * Fix Command Arguments for Djgpp_Wchar_H
1382 */
1383 static const char* apzDjgpp_Wchar_HPatch[] = {
1384 "format",
1385 "%0\n\
1386 #include <sys/djtypes.h>",
1387 "#include <stddef.h>",
1388 (char*)NULL };
1389
1390 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1391 *
1392 * Description of Ecd_Cursor fix
1393 */
1394 tSCC zEcd_CursorName[] =
1395 "ecd_cursor";
1396
1397 /*
1398 * File name selection pattern
1399 */
1400 tSCC zEcd_CursorList[] =
1401 "|sunwindow/win_lock.h|sunwindow/win_cursor.h|";
1402 /*
1403 * Machine/OS name selection pattern
1404 */
1405 #define apzEcd_CursorMachs (const char**)NULL
1406
1407 /*
1408 * content selection pattern - do fix if pattern found
1409 */
1410 tSCC zEcd_CursorSelect0[] =
1411 "ecd\\.cursor";
1412
1413 #define ECD_CURSOR_TEST_CT 1
1414 static tTestDesc aEcd_CursorTests[] = {
1415 { TT_EGREP, zEcd_CursorSelect0, (regex_t*)NULL }, };
1416
1417 /*
1418 * Fix Command Arguments for Ecd_Cursor
1419 */
1420 static const char* apzEcd_CursorPatch[] = {
1421 "format",
1422 "ecd_cursor",
1423 (char*)NULL };
1424
1425 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1426 *
1427 * Description of Freebsd_Gcc3_Breakage fix
1428 */
1429 tSCC zFreebsd_Gcc3_BreakageName[] =
1430 "freebsd_gcc3_breakage";
1431
1432 /*
1433 * File name selection pattern
1434 */
1435 tSCC zFreebsd_Gcc3_BreakageList[] =
1436 "|sys/cdefs.h|";
1437 /*
1438 * Machine/OS name selection pattern
1439 */
1440 tSCC* apzFreebsd_Gcc3_BreakageMachs[] = {
1441 "*-*-freebsd*",
1442 (const char*)NULL };
1443
1444 /*
1445 * content selection pattern - do fix if pattern found
1446 */
1447 tSCC zFreebsd_Gcc3_BreakageSelect0[] =
1448 "^#if __GNUC__ == 2 && __GNUC_MINOR__ >= 7$";
1449
1450 /*
1451 * content bypass pattern - skip fix if pattern found
1452 */
1453 tSCC zFreebsd_Gcc3_BreakageBypass0[] =
1454 "__GNUC__[ \\t]*([>=]=[ \\t]*[3-9]|>[ \\t]*2)";
1455
1456 #define FREEBSD_GCC3_BREAKAGE_TEST_CT 2
1457 static tTestDesc aFreebsd_Gcc3_BreakageTests[] = {
1458 { TT_NEGREP, zFreebsd_Gcc3_BreakageBypass0, (regex_t*)NULL },
1459 { TT_EGREP, zFreebsd_Gcc3_BreakageSelect0, (regex_t*)NULL }, };
1460
1461 /*
1462 * Fix Command Arguments for Freebsd_Gcc3_Breakage
1463 */
1464 static const char* apzFreebsd_Gcc3_BreakagePatch[] = {
1465 "format",
1466 "%0 || __GNUC__ >= 3",
1467 (char*)NULL };
1468
1469 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1470 *
1471 * Description of Gnu_Types fix
1472 */
1473 tSCC zGnu_TypesName[] =
1474 "gnu_types";
1475
1476 /*
1477 * File name selection pattern
1478 */
1479 tSCC zGnu_TypesList[] =
1480 "|sys/types.h|stdlib.h|sys/stdtypes.h|stddef.h|memory.h|unistd.h|";
1481 /*
1482 * Machine/OS name selection pattern
1483 */
1484 #define apzGnu_TypesMachs (const char**)NULL
1485
1486 /*
1487 * content selection pattern - do fix if pattern found
1488 */
1489 tSCC zGnu_TypesSelect0[] =
1490 "^[ \t]*typedef[ \t]+.*[ \t](ptrdiff|size|wchar)_t;";
1491
1492 /*
1493 * content bypass pattern - skip fix if pattern found
1494 */
1495 tSCC zGnu_TypesBypass0[] =
1496 "_GCC_(PTRDIFF|SIZE|WCHAR)_T";
1497
1498 #define GNU_TYPES_TEST_CT 2
1499 static tTestDesc aGnu_TypesTests[] = {
1500 { TT_NEGREP, zGnu_TypesBypass0, (regex_t*)NULL },
1501 { TT_EGREP, zGnu_TypesSelect0, (regex_t*)NULL }, };
1502
1503 /*
1504 * Fix Command Arguments for Gnu_Types
1505 */
1506 static const char* apzGnu_TypesPatch[] = {
1507 "gnu_type",
1508 (char*)NULL };
1509
1510 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1511 *
1512 * Description of Hp_Inline fix
1513 */
1514 tSCC zHp_InlineName[] =
1515 "hp_inline";
1516
1517 /*
1518 * File name selection pattern
1519 */
1520 tSCC zHp_InlineList[] =
1521 "|sys/spinlock.h|machine/machparam.h|";
1522 /*
1523 * Machine/OS name selection pattern
1524 */
1525 #define apzHp_InlineMachs (const char**)NULL
1526
1527 /*
1528 * content selection pattern - do fix if pattern found
1529 */
1530 tSCC zHp_InlineSelect0[] =
1531 "[ \t]*#[ \t]*include[ \t]+\"\\.\\./machine/";
1532
1533 #define HP_INLINE_TEST_CT 1
1534 static tTestDesc aHp_InlineTests[] = {
1535 { TT_EGREP, zHp_InlineSelect0, (regex_t*)NULL }, };
1536
1537 /*
1538 * Fix Command Arguments for Hp_Inline
1539 */
1540 static const char* apzHp_InlinePatch[] = {
1541 "format",
1542 "%1<machine/%2.h>",
1543 "([ \t]*#[ \t]*include[ \t]+)\"\\.\\./machine/([a-z]+)\\.h\"",
1544 (char*)NULL };
1545
1546 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1547 *
1548 * Description of Hp_Sysfile fix
1549 */
1550 tSCC zHp_SysfileName[] =
1551 "hp_sysfile";
1552
1553 /*
1554 * File name selection pattern
1555 */
1556 tSCC zHp_SysfileList[] =
1557 "|sys/file.h|";
1558 /*
1559 * Machine/OS name selection pattern
1560 */
1561 #define apzHp_SysfileMachs (const char**)NULL
1562
1563 /*
1564 * content selection pattern - do fix if pattern found
1565 */
1566 tSCC zHp_SysfileSelect0[] =
1567 "HPUX_SOURCE";
1568
1569 #define HP_SYSFILE_TEST_CT 1
1570 static tTestDesc aHp_SysfileTests[] = {
1571 { TT_EGREP, zHp_SysfileSelect0, (regex_t*)NULL }, };
1572
1573 /*
1574 * Fix Command Arguments for Hp_Sysfile
1575 */
1576 static const char* apzHp_SysfilePatch[] = {
1577 "format",
1578 "(struct file *, ...)",
1579 "\\(\\.\\.\\.\\)",
1580 (char*)NULL };
1581
1582 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1583 *
1584 * Description of Hpux10_Cpp_Pow_Inline fix
1585 */
1586 tSCC zHpux10_Cpp_Pow_InlineName[] =
1587 "hpux10_cpp_pow_inline";
1588
1589 /*
1590 * File name selection pattern
1591 */
1592 tSCC zHpux10_Cpp_Pow_InlineList[] =
1593 "|fixinc-test-limits.h|math.h|";
1594 /*
1595 * Machine/OS name selection pattern
1596 */
1597 #define apzHpux10_Cpp_Pow_InlineMachs (const char**)NULL
1598
1599 /*
1600 * content selection pattern - do fix if pattern found
1601 */
1602 tSCC zHpux10_Cpp_Pow_InlineSelect0[] =
1603 "^# +ifdef +__cplusplus\n\
1604 +}\n\
1605 +inline +double +pow\\(double +__d,int +__expon\\) +{\n\
1606 [ \t]+return +pow\\(__d,\\(double\\)__expon\\);\n\
1607 +}\n\
1608 +extern +\"C\" +{\n\
1609 #else\n\
1610 # +endif";
1611
1612 #define HPUX10_CPP_POW_INLINE_TEST_CT 1
1613 static tTestDesc aHpux10_Cpp_Pow_InlineTests[] = {
1614 { TT_EGREP, zHpux10_Cpp_Pow_InlineSelect0, (regex_t*)NULL }, };
1615
1616 /*
1617 * Fix Command Arguments for Hpux10_Cpp_Pow_Inline
1618 */
1619 static const char* apzHpux10_Cpp_Pow_InlinePatch[] = {
1620 "format",
1621 "",
1622 (char*)NULL };
1623
1624 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1625 *
1626 * Description of Hpux11_Cpp_Pow_Inline fix
1627 */
1628 tSCC zHpux11_Cpp_Pow_InlineName[] =
1629 "hpux11_cpp_pow_inline";
1630
1631 /*
1632 * File name selection pattern
1633 */
1634 tSCC zHpux11_Cpp_Pow_InlineList[] =
1635 "|math.h|";
1636 /*
1637 * Machine/OS name selection pattern
1638 */
1639 #define apzHpux11_Cpp_Pow_InlineMachs (const char**)NULL
1640
1641 /*
1642 * content selection pattern - do fix if pattern found
1643 */
1644 tSCC zHpux11_Cpp_Pow_InlineSelect0[] =
1645 " +inline double pow\\(double d,int expon\\) {\n\
1646 +return pow\\(d, \\(double\\)expon\\);\n\
1647 +}\n";
1648
1649 #define HPUX11_CPP_POW_INLINE_TEST_CT 1
1650 static tTestDesc aHpux11_Cpp_Pow_InlineTests[] = {
1651 { TT_EGREP, zHpux11_Cpp_Pow_InlineSelect0, (regex_t*)NULL }, };
1652
1653 /*
1654 * Fix Command Arguments for Hpux11_Cpp_Pow_Inline
1655 */
1656 static const char* apzHpux11_Cpp_Pow_InlinePatch[] = {
1657 "format",
1658 "",
1659 (char*)NULL };
1660
1661 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1662 *
1663 * Description of Hpux11_Abs fix
1664 */
1665 tSCC zHpux11_AbsName[] =
1666 "hpux11_abs";
1667
1668 /*
1669 * File name selection pattern
1670 */
1671 tSCC zHpux11_AbsList[] =
1672 "|stdlib.h|";
1673 /*
1674 * Machine/OS name selection pattern
1675 */
1676 tSCC* apzHpux11_AbsMachs[] = {
1677 "ia64-hp-hpux11*",
1678 (const char*)NULL };
1679
1680 /*
1681 * content selection pattern - do fix if pattern found
1682 */
1683 tSCC zHpux11_AbsSelect0[] =
1684 "ifndef _MATH_INCLUDED";
1685
1686 #define HPUX11_ABS_TEST_CT 1
1687 static tTestDesc aHpux11_AbsTests[] = {
1688 { TT_EGREP, zHpux11_AbsSelect0, (regex_t*)NULL }, };
1689
1690 /*
1691 * Fix Command Arguments for Hpux11_Abs
1692 */
1693 static const char* apzHpux11_AbsPatch[] = {
1694 "format",
1695 "if !defined(_MATH_INCLUDED) || defined(__GNUG__)",
1696 (char*)NULL };
1697
1698 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1699 *
1700 * Description of Hpux11_Fabsf fix
1701 */
1702 tSCC zHpux11_FabsfName[] =
1703 "hpux11_fabsf";
1704
1705 /*
1706 * File name selection pattern
1707 */
1708 tSCC zHpux11_FabsfList[] =
1709 "|math.h|";
1710 /*
1711 * Machine/OS name selection pattern
1712 */
1713 #define apzHpux11_FabsfMachs (const char**)NULL
1714
1715 /*
1716 * content selection pattern - do fix if pattern found
1717 */
1718 tSCC zHpux11_FabsfSelect0[] =
1719 "^[ \t]*#[ \t]*define[ \t]+fabsf\\(.*";
1720
1721 /*
1722 * content bypass pattern - skip fix if pattern found
1723 */
1724 tSCC zHpux11_FabsfBypass0[] =
1725 "__cplusplus";
1726
1727 #define HPUX11_FABSF_TEST_CT 2
1728 static tTestDesc aHpux11_FabsfTests[] = {
1729 { TT_NEGREP, zHpux11_FabsfBypass0, (regex_t*)NULL },
1730 { TT_EGREP, zHpux11_FabsfSelect0, (regex_t*)NULL }, };
1731
1732 /*
1733 * Fix Command Arguments for Hpux11_Fabsf
1734 */
1735 static const char* apzHpux11_FabsfPatch[] = {
1736 "format",
1737 "#ifndef __cplusplus\n\
1738 %0\n\
1739 #endif",
1740 (char*)NULL };
1741
1742 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1743 *
1744 * Description of Hpux11_Size_T fix
1745 */
1746 tSCC zHpux11_Size_TName[] =
1747 "hpux11_size_t";
1748
1749 /*
1750 * File name selection pattern
1751 */
1752 #define zHpux11_Size_TList (char*)NULL
1753 /*
1754 * Machine/OS name selection pattern
1755 */
1756 tSCC* apzHpux11_Size_TMachs[] = {
1757 "*-hp-hpux11*",
1758 (const char*)NULL };
1759
1760 /*
1761 * content selection pattern - do fix if pattern found
1762 */
1763 tSCC zHpux11_Size_TSelect0[] =
1764 "__size_t";
1765
1766 #define HPUX11_SIZE_T_TEST_CT 1
1767 static tTestDesc aHpux11_Size_TTests[] = {
1768 { TT_EGREP, zHpux11_Size_TSelect0, (regex_t*)NULL }, };
1769
1770 /*
1771 * Fix Command Arguments for Hpux11_Size_T
1772 */
1773 static const char* apzHpux11_Size_TPatch[] = {
1774 "format",
1775 "_hpux_size_t",
1776 (char*)NULL };
1777
1778 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1779 *
1780 * Description of Hpux11_Uint32_C fix
1781 */
1782 tSCC zHpux11_Uint32_CName[] =
1783 "hpux11_uint32_c";
1784
1785 /*
1786 * File name selection pattern
1787 */
1788 tSCC zHpux11_Uint32_CList[] =
1789 "|inttypes.h|";
1790 /*
1791 * Machine/OS name selection pattern
1792 */
1793 #define apzHpux11_Uint32_CMachs (const char**)NULL
1794
1795 /*
1796 * content selection pattern - do fix if pattern found
1797 */
1798 tSCC zHpux11_Uint32_CSelect0[] =
1799 "^#define UINT32_C\\(__c\\)[ \t]*__CONCAT__\\(__CONCAT_U__\\(__c\\),l\\)";
1800
1801 #define HPUX11_UINT32_C_TEST_CT 1
1802 static tTestDesc aHpux11_Uint32_CTests[] = {
1803 { TT_EGREP, zHpux11_Uint32_CSelect0, (regex_t*)NULL }, };
1804
1805 /*
1806 * Fix Command Arguments for Hpux11_Uint32_C
1807 */
1808 static const char* apzHpux11_Uint32_CPatch[] = {
1809 "format",
1810 "#define UINT32_C(__c) __CONCAT__(__c,ul)",
1811 (char*)NULL };
1812
1813 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1814 *
1815 * Description of Hpux11_Vsnprintf fix
1816 */
1817 tSCC zHpux11_VsnprintfName[] =
1818 "hpux11_vsnprintf";
1819
1820 /*
1821 * File name selection pattern
1822 */
1823 tSCC zHpux11_VsnprintfList[] =
1824 "|stdio.h|";
1825 /*
1826 * Machine/OS name selection pattern
1827 */
1828 #define apzHpux11_VsnprintfMachs (const char**)NULL
1829
1830 /*
1831 * content selection pattern - do fix if pattern found
1832 */
1833 tSCC zHpux11_VsnprintfSelect0[] =
1834 "(extern int vsnprintf\\(char \\*, _[hpux]*_size_t, const char \\*,) __va__list\\);";
1835
1836 #define HPUX11_VSNPRINTF_TEST_CT 1
1837 static tTestDesc aHpux11_VsnprintfTests[] = {
1838 { TT_EGREP, zHpux11_VsnprintfSelect0, (regex_t*)NULL }, };
1839
1840 /*
1841 * Fix Command Arguments for Hpux11_Vsnprintf
1842 */
1843 static const char* apzHpux11_VsnprintfPatch[] = {
1844 "format",
1845 "%1 __va_list);",
1846 (char*)NULL };
1847
1848 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1849 *
1850 * Description of Hpux8_Bogus_Inlines fix
1851 */
1852 tSCC zHpux8_Bogus_InlinesName[] =
1853 "hpux8_bogus_inlines";
1854
1855 /*
1856 * File name selection pattern
1857 */
1858 tSCC zHpux8_Bogus_InlinesList[] =
1859 "|math.h|";
1860 /*
1861 * Machine/OS name selection pattern
1862 */
1863 #define apzHpux8_Bogus_InlinesMachs (const char**)NULL
1864
1865 /*
1866 * content selection pattern - do fix if pattern found
1867 */
1868 tSCC zHpux8_Bogus_InlinesSelect0[] =
1869 "inline";
1870
1871 #define HPUX8_BOGUS_INLINES_TEST_CT 1
1872 static tTestDesc aHpux8_Bogus_InlinesTests[] = {
1873 { TT_EGREP, zHpux8_Bogus_InlinesSelect0, (regex_t*)NULL }, };
1874
1875 /*
1876 * Fix Command Arguments for Hpux8_Bogus_Inlines
1877 */
1878 static const char* apzHpux8_Bogus_InlinesPatch[] = { "sed",
1879 "-e", "s@inline int abs(int [a-z][a-z]*) {.*}@extern \"C\" int abs(int);@",
1880 "-e", "s@inline double abs(double [a-z][a-z]*) {.*}@@",
1881 "-e", "s@inline int sqr(int [a-z][a-z]*) {.*}@@",
1882 "-e", "s@inline double sqr(double [a-z][a-z]*) {.*}@@",
1883 (char*)NULL };
1884
1885 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1886 *
1887 * Description of Hpux_Maxint fix
1888 */
1889 tSCC zHpux_MaxintName[] =
1890 "hpux_maxint";
1891
1892 /*
1893 * File name selection pattern
1894 */
1895 tSCC zHpux_MaxintList[] =
1896 "|sys/param.h|values.h|";
1897 /*
1898 * Machine/OS name selection pattern
1899 */
1900 #define apzHpux_MaxintMachs (const char**)NULL
1901
1902 /*
1903 * content selection pattern - do fix if pattern found
1904 */
1905 tSCC zHpux_MaxintSelect0[] =
1906 "^#[ \t]*define[ \t]+MAXINT[ \t]";
1907
1908 /*
1909 * content bypass pattern - skip fix if pattern found
1910 */
1911 tSCC zHpux_MaxintBypass0[] =
1912 "^#[ \t]*ifndef[ \t]+MAXINT";
1913
1914 /*
1915 * perform the 'test' shell command - do fix on success
1916 */
1917 tSCC zHpux_MaxintTest0[] =
1918 "-n \"`egrep '#[ \t]*define[ \t]+MAXINT[ \t]' sys/param.h`\"";
1919
1920 #define HPUX_MAXINT_TEST_CT 3
1921 static tTestDesc aHpux_MaxintTests[] = {
1922 { TT_TEST, zHpux_MaxintTest0, 0 /* unused */ },
1923 { TT_NEGREP, zHpux_MaxintBypass0, (regex_t*)NULL },
1924 { TT_EGREP, zHpux_MaxintSelect0, (regex_t*)NULL }, };
1925
1926 /*
1927 * Fix Command Arguments for Hpux_Maxint
1928 */
1929 static const char* apzHpux_MaxintPatch[] = {
1930 "format",
1931 "#ifndef MAXINT\n\
1932 %0\n\
1933 #endif",
1934 "^#[ \t]*define[ \t]+MAXINT[ \t].*",
1935 (char*)NULL };
1936
1937 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1938 *
1939 * Description of Hpux_Systime fix
1940 */
1941 tSCC zHpux_SystimeName[] =
1942 "hpux_systime";
1943
1944 /*
1945 * File name selection pattern
1946 */
1947 tSCC zHpux_SystimeList[] =
1948 "|sys/time.h|";
1949 /*
1950 * Machine/OS name selection pattern
1951 */
1952 #define apzHpux_SystimeMachs (const char**)NULL
1953
1954 /*
1955 * content selection pattern - do fix if pattern found
1956 */
1957 tSCC zHpux_SystimeSelect0[] =
1958 "^extern struct sigevent;";
1959
1960 #define HPUX_SYSTIME_TEST_CT 1
1961 static tTestDesc aHpux_SystimeTests[] = {
1962 { TT_EGREP, zHpux_SystimeSelect0, (regex_t*)NULL }, };
1963
1964 /*
1965 * Fix Command Arguments for Hpux_Systime
1966 */
1967 static const char* apzHpux_SystimePatch[] = {
1968 "format",
1969 "struct sigevent;",
1970 (char*)NULL };
1971
1972 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1973 *
1974 * Description of Int_Abort_Free_And_Exit fix
1975 */
1976 tSCC zInt_Abort_Free_And_ExitName[] =
1977 "int_abort_free_and_exit";
1978
1979 /*
1980 * File name selection pattern
1981 */
1982 tSCC zInt_Abort_Free_And_ExitList[] =
1983 "|stdlib.h|";
1984 /*
1985 * Machine/OS name selection pattern
1986 */
1987 #define apzInt_Abort_Free_And_ExitMachs (const char**)NULL
1988
1989 /*
1990 * content selection pattern - do fix if pattern found
1991 */
1992 tSCC zInt_Abort_Free_And_ExitSelect0[] =
1993 "int[ \t]+(abort|free|exit)[ \t]*\\(";
1994
1995 #define INT_ABORT_FREE_AND_EXIT_TEST_CT 1
1996 static tTestDesc aInt_Abort_Free_And_ExitTests[] = {
1997 { TT_EGREP, zInt_Abort_Free_And_ExitSelect0, (regex_t*)NULL }, };
1998
1999 /*
2000 * Fix Command Arguments for Int_Abort_Free_And_Exit
2001 */
2002 static const char* apzInt_Abort_Free_And_ExitPatch[] = {
2003 "format",
2004 "void\t%1(",
2005 (char*)NULL };
2006
2007 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2008 *
2009 * Description of Io_Quotes_Def fix
2010 */
2011 tSCC zIo_Quotes_DefName[] =
2012 "io_quotes_def";
2013
2014 /*
2015 * File name selection pattern
2016 */
2017 #define zIo_Quotes_DefList (char*)NULL
2018 /*
2019 * Machine/OS name selection pattern
2020 */
2021 #define apzIo_Quotes_DefMachs (const char**)NULL
2022
2023 /*
2024 * content selection pattern - do fix if pattern found
2025 */
2026 tSCC zIo_Quotes_DefSelect0[] =
2027 "define[ \t]+[A-Z0-9_]+IO[A-Z]*\\([a-zA-Z][,)]";
2028
2029 #define IO_QUOTES_DEF_TEST_CT 1
2030 static tTestDesc aIo_Quotes_DefTests[] = {
2031 { TT_EGREP, zIo_Quotes_DefSelect0, (regex_t*)NULL }, };
2032
2033 /*
2034 * Fix Command Arguments for Io_Quotes_Def
2035 */
2036 static const char* apzIo_Quotes_DefPatch[] = {
2037 "char_macro_def",
2038 "IO",
2039 (char*)NULL };
2040
2041 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2042 *
2043 * Description of Io_Quotes_Use fix
2044 */
2045 tSCC zIo_Quotes_UseName[] =
2046 "io_quotes_use";
2047
2048 /*
2049 * File name selection pattern
2050 */
2051 #define zIo_Quotes_UseList (char*)NULL
2052 /*
2053 * Machine/OS name selection pattern
2054 */
2055 #define apzIo_Quotes_UseMachs (const char**)NULL
2056
2057 /*
2058 * content selection pattern - do fix if pattern found
2059 */
2060 tSCC zIo_Quotes_UseSelect0[] =
2061 "define[ \t]+[A-Z0-9_]+[ \t]+[A-Z0-9_]+IO[A-Z]*[ \t]*\\( *[^,']";
2062
2063 #define IO_QUOTES_USE_TEST_CT 1
2064 static tTestDesc aIo_Quotes_UseTests[] = {
2065 { TT_EGREP, zIo_Quotes_UseSelect0, (regex_t*)NULL }, };
2066
2067 /*
2068 * Fix Command Arguments for Io_Quotes_Use
2069 */
2070 static const char* apzIo_Quotes_UsePatch[] = {
2071 "char_macro_use",
2072 "IO",
2073 (char*)NULL };
2074
2075 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2076 *
2077 * Description of Ip_Missing_Semi fix
2078 */
2079 tSCC zIp_Missing_SemiName[] =
2080 "ip_missing_semi";
2081
2082 /*
2083 * File name selection pattern
2084 */
2085 tSCC zIp_Missing_SemiList[] =
2086 "|netinet/ip.h|";
2087 /*
2088 * Machine/OS name selection pattern
2089 */
2090 #define apzIp_Missing_SemiMachs (const char**)NULL
2091
2092 /*
2093 * content selection pattern - do fix if pattern found
2094 */
2095 tSCC zIp_Missing_SemiSelect0[] =
2096 "}$";
2097
2098 #define IP_MISSING_SEMI_TEST_CT 1
2099 static tTestDesc aIp_Missing_SemiTests[] = {
2100 { TT_EGREP, zIp_Missing_SemiSelect0, (regex_t*)NULL }, };
2101
2102 /*
2103 * Fix Command Arguments for Ip_Missing_Semi
2104 */
2105 static const char* apzIp_Missing_SemiPatch[] = { "sed",
2106 "-e", "/^struct/,/^};/s/}$/};/",
2107 (char*)NULL };
2108
2109 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2110 *
2111 * Description of Irix_Asm_Apostrophe fix
2112 */
2113 tSCC zIrix_Asm_ApostropheName[] =
2114 "irix_asm_apostrophe";
2115
2116 /*
2117 * File name selection pattern
2118 */
2119 tSCC zIrix_Asm_ApostropheList[] =
2120 "|sys/asm.h|";
2121 /*
2122 * Machine/OS name selection pattern
2123 */
2124 #define apzIrix_Asm_ApostropheMachs (const char**)NULL
2125
2126 /*
2127 * content selection pattern - do fix if pattern found
2128 */
2129 tSCC zIrix_Asm_ApostropheSelect0[] =
2130 "^[ \t]*#.*[Ww]e're";
2131
2132 #define IRIX_ASM_APOSTROPHE_TEST_CT 1
2133 static tTestDesc aIrix_Asm_ApostropheTests[] = {
2134 { TT_EGREP, zIrix_Asm_ApostropheSelect0, (regex_t*)NULL }, };
2135
2136 /*
2137 * Fix Command Arguments for Irix_Asm_Apostrophe
2138 */
2139 static const char* apzIrix_Asm_ApostrophePatch[] = {
2140 "format",
2141 "%1 are",
2142 "^([ \t]*#.*[Ww]e)'re",
2143 (char*)NULL };
2144
2145 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2146 *
2147 * Description of Irix_Limits_Const fix
2148 */
2149 tSCC zIrix_Limits_ConstName[] =
2150 "irix_limits_const";
2151
2152 /*
2153 * File name selection pattern
2154 */
2155 tSCC zIrix_Limits_ConstList[] =
2156 "|fixinc-test-limits.h|limits.h|";
2157 /*
2158 * Machine/OS name selection pattern
2159 */
2160 #define apzIrix_Limits_ConstMachs (const char**)NULL
2161
2162 /*
2163 * content selection pattern - do fix if pattern found
2164 */
2165 tSCC zIrix_Limits_ConstSelect0[] =
2166 "^extern const ";
2167
2168 #define IRIX_LIMITS_CONST_TEST_CT 1
2169 static tTestDesc aIrix_Limits_ConstTests[] = {
2170 { TT_EGREP, zIrix_Limits_ConstSelect0, (regex_t*)NULL }, };
2171
2172 /*
2173 * Fix Command Arguments for Irix_Limits_Const
2174 */
2175 static const char* apzIrix_Limits_ConstPatch[] = {
2176 "format",
2177 "extern __const ",
2178 (char*)NULL };
2179
2180 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2181 *
2182 * Description of Irix_Stdio_Va_List fix
2183 */
2184 tSCC zIrix_Stdio_Va_ListName[] =
2185 "irix_stdio_va_list";
2186
2187 /*
2188 * File name selection pattern
2189 */
2190 tSCC zIrix_Stdio_Va_ListList[] =
2191 "|stdio.h|";
2192 /*
2193 * Machine/OS name selection pattern
2194 */
2195 #define apzIrix_Stdio_Va_ListMachs (const char**)NULL
2196
2197 /*
2198 * content selection pattern - do fix if pattern found
2199 */
2200 tSCC zIrix_Stdio_Va_ListSelect0[] =
2201 "(printf\\(.*), /\\* va_list \\*/ char \\*";
2202
2203 #define IRIX_STDIO_VA_LIST_TEST_CT 1
2204 static tTestDesc aIrix_Stdio_Va_ListTests[] = {
2205 { TT_EGREP, zIrix_Stdio_Va_ListSelect0, (regex_t*)NULL }, };
2206
2207 /*
2208 * Fix Command Arguments for Irix_Stdio_Va_List
2209 */
2210 static const char* apzIrix_Stdio_Va_ListPatch[] = {
2211 "format",
2212 "%1, __gnuc_va_list",
2213 (char*)NULL };
2214
2215 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2216 *
2217 * Description of Isc_Fmod fix
2218 */
2219 tSCC zIsc_FmodName[] =
2220 "isc_fmod";
2221
2222 /*
2223 * File name selection pattern
2224 */
2225 tSCC zIsc_FmodList[] =
2226 "|math.h|";
2227 /*
2228 * Machine/OS name selection pattern
2229 */
2230 #define apzIsc_FmodMachs (const char**)NULL
2231
2232 /*
2233 * content selection pattern - do fix if pattern found
2234 */
2235 tSCC zIsc_FmodSelect0[] =
2236 "fmod\\(double\\)";
2237
2238 #define ISC_FMOD_TEST_CT 1
2239 static tTestDesc aIsc_FmodTests[] = {
2240 { TT_EGREP, zIsc_FmodSelect0, (regex_t*)NULL }, };
2241
2242 /*
2243 * Fix Command Arguments for Isc_Fmod
2244 */
2245 static const char* apzIsc_FmodPatch[] = {
2246 "format",
2247 "fmod(double, double)",
2248 (char*)NULL };
2249
2250 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2251 *
2252 * Description of Isc_Omits_With_Stdc fix
2253 */
2254 tSCC zIsc_Omits_With_StdcName[] =
2255 "isc_omits_with_stdc";
2256
2257 /*
2258 * File name selection pattern
2259 */
2260 tSCC zIsc_Omits_With_StdcList[] =
2261 "|stdio.h|math.h|ctype.h|sys/limits.h|sys/fcntl.h|sys/dirent.h|";
2262 /*
2263 * Machine/OS name selection pattern
2264 */
2265 #define apzIsc_Omits_With_StdcMachs (const char**)NULL
2266
2267 /*
2268 * content selection pattern - do fix if pattern found
2269 */
2270 tSCC zIsc_Omits_With_StdcSelect0[] =
2271 "!defined\\(__STDC__\\) && !defined\\(_POSIX_SOURCE\\)";
2272
2273 #define ISC_OMITS_WITH_STDC_TEST_CT 1
2274 static tTestDesc aIsc_Omits_With_StdcTests[] = {
2275 { TT_EGREP, zIsc_Omits_With_StdcSelect0, (regex_t*)NULL }, };
2276
2277 /*
2278 * Fix Command Arguments for Isc_Omits_With_Stdc
2279 */
2280 static const char* apzIsc_Omits_With_StdcPatch[] = {
2281 "format",
2282 "!defined(_POSIX_SOURCE)",
2283 (char*)NULL };
2284
2285 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2286 *
2287 * Description of Kandr_Concat fix
2288 */
2289 tSCC zKandr_ConcatName[] =
2290 "kandr_concat";
2291
2292 /*
2293 * File name selection pattern
2294 */
2295 tSCC zKandr_ConcatList[] =
2296 "|sparc/asm_linkage.h|sun3/asm_linkage.h|sun3x/asm_linkage.h|sun4/asm_linkage.h|sun4c/asm_linkage.h|sun4m/asm_linkage.h|sun4c/debug/asm_linkage.h|sun4m/debug/asm_linkage.h|arm/as_support.h|arm/mc_type.h|arm/xcb.h|dev/chardefmac.h|dev/ps_irq.h|dev/screen.h|dev/scsi.h|sys/tty.h|Xm.acorn/XmP.h|bsd43/bsd43_.h|";
2297 /*
2298 * Machine/OS name selection pattern
2299 */
2300 #define apzKandr_ConcatMachs (const char**)NULL
2301
2302 /*
2303 * content selection pattern - do fix if pattern found
2304 */
2305 tSCC zKandr_ConcatSelect0[] =
2306 "/\\*\\*/";
2307
2308 #define KANDR_CONCAT_TEST_CT 1
2309 static tTestDesc aKandr_ConcatTests[] = {
2310 { TT_EGREP, zKandr_ConcatSelect0, (regex_t*)NULL }, };
2311
2312 /*
2313 * Fix Command Arguments for Kandr_Concat
2314 */
2315 static const char* apzKandr_ConcatPatch[] = {
2316 "format",
2317 "##",
2318 (char*)NULL };
2319
2320 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2321 *
2322 * Description of Libc1_G_Va_List fix
2323 */
2324 tSCC zLibc1_G_Va_ListName[] =
2325 "libc1_G_va_list";
2326
2327 /*
2328 * File name selection pattern
2329 */
2330 tSCC zLibc1_G_Va_ListList[] =
2331 "|_G_config.h|";
2332 /*
2333 * Machine/OS name selection pattern
2334 */
2335 tSCC* apzLibc1_G_Va_ListMachs[] = {
2336 "*-*-linux*libc1",
2337 (const char*)NULL };
2338
2339 /*
2340 * content selection pattern - do fix if pattern found
2341 */
2342 tSCC zLibc1_G_Va_ListSelect0[] =
2343 "typedef void \\* _G_va_list;";
2344
2345 #define LIBC1_G_VA_LIST_TEST_CT 1
2346 static tTestDesc aLibc1_G_Va_ListTests[] = {
2347 { TT_EGREP, zLibc1_G_Va_ListSelect0, (regex_t*)NULL }, };
2348
2349 /*
2350 * Fix Command Arguments for Libc1_G_Va_List
2351 */
2352 static const char* apzLibc1_G_Va_ListPatch[] = {
2353 "format",
2354 "typedef __builtin_va_list _G_va_list;",
2355 (char*)NULL };
2356
2357 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2358 *
2359 * Description of Libc1_Ifdefd_Memx fix
2360 */
2361 tSCC zLibc1_Ifdefd_MemxName[] =
2362 "libc1_ifdefd_memx";
2363
2364 /*
2365 * File name selection pattern
2366 */
2367 tSCC zLibc1_Ifdefd_MemxList[] =
2368 "|testing.h|string.h|";
2369 /*
2370 * Machine/OS name selection pattern
2371 */
2372 #define apzLibc1_Ifdefd_MemxMachs (const char**)NULL
2373
2374 /*
2375 * content selection pattern - do fix if pattern found
2376 */
2377 tSCC zLibc1_Ifdefd_MemxSelect0[] =
2378 "' is a built-in function for gcc 2\\.x\\. \\*/";
2379
2380 /*
2381 * content bypass pattern - skip fix if pattern found
2382 */
2383 tSCC zLibc1_Ifdefd_MemxBypass0[] =
2384 "__cplusplus";
2385
2386 #define LIBC1_IFDEFD_MEMX_TEST_CT 2
2387 static tTestDesc aLibc1_Ifdefd_MemxTests[] = {
2388 { TT_NEGREP, zLibc1_Ifdefd_MemxBypass0, (regex_t*)NULL },
2389 { TT_EGREP, zLibc1_Ifdefd_MemxSelect0, (regex_t*)NULL }, };
2390
2391 /*
2392 * Fix Command Arguments for Libc1_Ifdefd_Memx
2393 */
2394 static const char* apzLibc1_Ifdefd_MemxPatch[] = {
2395 "format",
2396 "%1",
2397 "/\\* `mem...' is a built-in function for gcc 2\\.x\\. \\*/\n\
2398 #if defined\\(__STDC__\\) && __GNUC__ < 2\n\
2399 (/\\* .* \\*/\n\
2400 extern [a-z_]+ mem.*(\n\
2401 [^#].*)*;)\n\
2402 #endif",
2403 (char*)NULL };
2404
2405 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2406 *
2407 * Description of Limits_Ifndefs fix
2408 */
2409 tSCC zLimits_IfndefsName[] =
2410 "limits_ifndefs";
2411
2412 /*
2413 * File name selection pattern
2414 */
2415 tSCC zLimits_IfndefsList[] =
2416 "|sys/limits.h|limits.h|";
2417 /*
2418 * Machine/OS name selection pattern
2419 */
2420 #define apzLimits_IfndefsMachs (const char**)NULL
2421
2422 /*
2423 * content bypass pattern - skip fix if pattern found
2424 */
2425 tSCC zLimits_IfndefsBypass0[] =
2426 "ifndef[ \t]+FLT_MIN";
2427
2428 #define LIMITS_IFNDEFS_TEST_CT 1
2429 static tTestDesc aLimits_IfndefsTests[] = {
2430 { TT_NEGREP, zLimits_IfndefsBypass0, (regex_t*)NULL }, };
2431
2432 /*
2433 * Fix Command Arguments for Limits_Ifndefs
2434 */
2435 static const char* apzLimits_IfndefsPatch[] = {
2436 "format",
2437 "#ifndef %1\n\
2438 %0\n\
2439 #endif",
2440 "^[ \t]*#[ \t]*define[ \t]+((FLT|DBL)_(MIN|MAX|DIG))[ \t].*",
2441 (char*)NULL };
2442
2443 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2444 *
2445 * Description of Lynx_Void_Int fix
2446 */
2447 tSCC zLynx_Void_IntName[] =
2448 "lynx_void_int";
2449
2450 /*
2451 * File name selection pattern
2452 */
2453 tSCC zLynx_Void_IntList[] =
2454 "|curses.h|";
2455 /*
2456 * Machine/OS name selection pattern
2457 */
2458 #define apzLynx_Void_IntMachs (const char**)NULL
2459
2460 /*
2461 * content selection pattern - do fix if pattern found
2462 */
2463 tSCC zLynx_Void_IntSelect0[] =
2464 "#[ \t]*define[ \t]+void[ \t]+int[ \t]*";
2465
2466 #define LYNX_VOID_INT_TEST_CT 1
2467 static tTestDesc aLynx_Void_IntTests[] = {
2468 { TT_EGREP, zLynx_Void_IntSelect0, (regex_t*)NULL }, };
2469
2470 /*
2471 * Fix Command Arguments for Lynx_Void_Int
2472 */
2473 static const char* apzLynx_Void_IntPatch[] = {
2474 "format",
2475 "",
2476 (char*)NULL };
2477
2478 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2479 *
2480 * Description of Lynxos_Fcntl_Proto fix
2481 */
2482 tSCC zLynxos_Fcntl_ProtoName[] =
2483 "lynxos_fcntl_proto";
2484
2485 /*
2486 * File name selection pattern
2487 */
2488 tSCC zLynxos_Fcntl_ProtoList[] =
2489 "|fcntl.h|";
2490 /*
2491 * Machine/OS name selection pattern
2492 */
2493 #define apzLynxos_Fcntl_ProtoMachs (const char**)NULL
2494
2495 /*
2496 * content selection pattern - do fix if pattern found
2497 */
2498 tSCC zLynxos_Fcntl_ProtoSelect0[] =
2499 "fcntl[ \t]*\\(int, int, int\\)";
2500
2501 #define LYNXOS_FCNTL_PROTO_TEST_CT 1
2502 static tTestDesc aLynxos_Fcntl_ProtoTests[] = {
2503 { TT_EGREP, zLynxos_Fcntl_ProtoSelect0, (regex_t*)NULL }, };
2504
2505 /*
2506 * Fix Command Arguments for Lynxos_Fcntl_Proto
2507 */
2508 static const char* apzLynxos_Fcntl_ProtoPatch[] = {
2509 "format",
2510 "%1...)",
2511 "(fcntl[ \t]*\\(int, int, )int\\)",
2512 (char*)NULL };
2513
2514 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2515 *
2516 * Description of Machine_Ansi_H_Va_List fix
2517 */
2518 tSCC zMachine_Ansi_H_Va_ListName[] =
2519 "machine_ansi_h_va_list";
2520
2521 /*
2522 * File name selection pattern
2523 */
2524 #define zMachine_Ansi_H_Va_ListList (char*)NULL
2525 /*
2526 * Machine/OS name selection pattern
2527 */
2528 #define apzMachine_Ansi_H_Va_ListMachs (const char**)NULL
2529
2530 /*
2531 * content selection pattern - do fix if pattern found
2532 */
2533 tSCC zMachine_Ansi_H_Va_ListSelect0[] =
2534 "define[ \t]+_BSD_VA_LIST_[ \t]";
2535
2536 /*
2537 * content bypass pattern - skip fix if pattern found
2538 */
2539 tSCC zMachine_Ansi_H_Va_ListBypass0[] =
2540 "__builtin_va_list";
2541
2542 #define MACHINE_ANSI_H_VA_LIST_TEST_CT 2
2543 static tTestDesc aMachine_Ansi_H_Va_ListTests[] = {
2544 { TT_NEGREP, zMachine_Ansi_H_Va_ListBypass0, (regex_t*)NULL },
2545 { TT_EGREP, zMachine_Ansi_H_Va_ListSelect0, (regex_t*)NULL }, };
2546
2547 /*
2548 * Fix Command Arguments for Machine_Ansi_H_Va_List
2549 */
2550 static const char* apzMachine_Ansi_H_Va_ListPatch[] = {
2551 "format",
2552 "%1__builtin_va_list",
2553 "(define[ \t]+_BSD_VA_LIST_[ \t]+).*",
2554 (char*)NULL };
2555
2556 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2557 *
2558 * Description of Machine_Name fix
2559 */
2560 tSCC zMachine_NameName[] =
2561 "machine_name";
2562
2563 /*
2564 * File name selection pattern
2565 */
2566 #define zMachine_NameList (char*)NULL
2567 /*
2568 * Machine/OS name selection pattern
2569 */
2570 #define apzMachine_NameMachs (const char**)NULL
2571
2572 /*
2573 * perform the C function call test
2574 */
2575 tSCC zMachine_NameFTst0[] = "machine_name";
2576
2577 #define MACHINE_NAME_TEST_CT 1
2578 static tTestDesc aMachine_NameTests[] = {
2579 { TT_FUNCTION, zMachine_NameFTst0, 0 /* unused */ }, };
2580
2581 /*
2582 * Fix Command Arguments for Machine_Name
2583 */
2584 static const char* apzMachine_NamePatch[] = {
2585 "machine_name",
2586 (char*)NULL };
2587
2588 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2589 *
2590 * Description of Math_Exception fix
2591 */
2592 tSCC zMath_ExceptionName[] =
2593 "math_exception";
2594
2595 /*
2596 * File name selection pattern
2597 */
2598 tSCC zMath_ExceptionList[] =
2599 "|math.h|";
2600 /*
2601 * Machine/OS name selection pattern
2602 */
2603 #define apzMath_ExceptionMachs (const char**)NULL
2604
2605 /*
2606 * content selection pattern - do fix if pattern found
2607 */
2608 tSCC zMath_ExceptionSelect0[] =
2609 "struct exception";
2610
2611 /*
2612 * content bypass pattern - skip fix if pattern found
2613 */
2614 tSCC zMath_ExceptionBypass0[] =
2615 "We have a problem when using C\\+\\+";
2616
2617 #define MATH_EXCEPTION_TEST_CT 2
2618 static tTestDesc aMath_ExceptionTests[] = {
2619 { TT_NEGREP, zMath_ExceptionBypass0, (regex_t*)NULL },
2620 { TT_EGREP, zMath_ExceptionSelect0, (regex_t*)NULL }, };
2621
2622 /*
2623 * Fix Command Arguments for Math_Exception
2624 */
2625 static const char* apzMath_ExceptionPatch[] = {
2626 "wrap",
2627 "#ifdef __cplusplus\n\
2628 #define exception __math_exception\n\
2629 #endif\n",
2630 "#ifdef __cplusplus\n\
2631 #undef exception\n\
2632 #endif\n",
2633 (char*)NULL };
2634
2635 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2636 *
2637 * Description of Math_Huge_Val_From_Dbl_Max fix
2638 */
2639 tSCC zMath_Huge_Val_From_Dbl_MaxName[] =
2640 "math_huge_val_from_dbl_max";
2641
2642 /*
2643 * File name selection pattern
2644 */
2645 tSCC zMath_Huge_Val_From_Dbl_MaxList[] =
2646 "|math.h|";
2647 /*
2648 * Machine/OS name selection pattern
2649 */
2650 #define apzMath_Huge_Val_From_Dbl_MaxMachs (const char**)NULL
2651
2652 /*
2653 * content selection pattern - do fix if pattern found
2654 */
2655 tSCC zMath_Huge_Val_From_Dbl_MaxSelect0[] =
2656 "define[ \t]+HUGE_VAL[ \t]+DBL_MAX";
2657
2658 /*
2659 * content bypass pattern - skip fix if pattern found
2660 */
2661 tSCC zMath_Huge_Val_From_Dbl_MaxBypass0[] =
2662 "define[ \t]+DBL_MAX";
2663
2664 #define MATH_HUGE_VAL_FROM_DBL_MAX_TEST_CT 2
2665 static tTestDesc aMath_Huge_Val_From_Dbl_MaxTests[] = {
2666 { TT_NEGREP, zMath_Huge_Val_From_Dbl_MaxBypass0, (regex_t*)NULL },
2667 { TT_EGREP, zMath_Huge_Val_From_Dbl_MaxSelect0, (regex_t*)NULL }, };
2668
2669 /*
2670 * Fix Command Arguments for Math_Huge_Val_From_Dbl_Max
2671 */
2672 static const char* apzMath_Huge_Val_From_Dbl_MaxPatch[] = { "sh", "-c",
2673 "\tdbl_max_def=`egrep 'define[ \t]+DBL_MAX[ \t]+.*' float.h | sed 's/.*DBL_MAX[ \t]*//' 2>/dev/null`\n\n\
2674 \tif ( test -n \"${dbl_max_def}\" ) > /dev/null 2>&1\n\
2675 \tthen sed -e '/define[ \t]*HUGE_VAL[ \t]*DBL_MAX/s@DBL_MAX@'\"$dbl_max_def@\"\n\
2676 \telse cat\n\
2677 \tfi",
2678 (char*)NULL };
2679
2680 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2681 *
2682 * Description of Math_Huge_Val_Ifndef fix
2683 */
2684 tSCC zMath_Huge_Val_IfndefName[] =
2685 "math_huge_val_ifndef";
2686
2687 /*
2688 * File name selection pattern
2689 */
2690 tSCC zMath_Huge_Val_IfndefList[] =
2691 "|math.h|math/math.h|";
2692 /*
2693 * Machine/OS name selection pattern
2694 */
2695 #define apzMath_Huge_Val_IfndefMachs (const char**)NULL
2696
2697 /*
2698 * content selection pattern - do fix if pattern found
2699 */
2700 tSCC zMath_Huge_Val_IfndefSelect0[] =
2701 "define[ \t]+HUGE_VAL";
2702
2703 #define MATH_HUGE_VAL_IFNDEF_TEST_CT 1
2704 static tTestDesc aMath_Huge_Val_IfndefTests[] = {
2705 { TT_EGREP, zMath_Huge_Val_IfndefSelect0, (regex_t*)NULL }, };
2706
2707 /*
2708 * Fix Command Arguments for Math_Huge_Val_Ifndef
2709 */
2710 static const char* apzMath_Huge_Val_IfndefPatch[] = {
2711 "format",
2712 "#ifndef HUGE_VAL\n\
2713 %0\n\
2714 #endif",
2715 "^[ \t]*#[ \t]*define[ \t]+HUGE_VAL[ \t].*",
2716 (char*)NULL };
2717
2718 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2719 *
2720 * Description of Nested_Auth_Des fix
2721 */
2722 tSCC zNested_Auth_DesName[] =
2723 "nested_auth_des";
2724
2725 /*
2726 * File name selection pattern
2727 */
2728 tSCC zNested_Auth_DesList[] =
2729 "|rpc/rpc.h|";
2730 /*
2731 * Machine/OS name selection pattern
2732 */
2733 #define apzNested_Auth_DesMachs (const char**)NULL
2734
2735 /*
2736 * content selection pattern - do fix if pattern found
2737 */
2738 tSCC zNested_Auth_DesSelect0[] =
2739 "(/\\*.*rpc/auth_des\\.h>.*)/\\*";
2740
2741 #define NESTED_AUTH_DES_TEST_CT 1
2742 static tTestDesc aNested_Auth_DesTests[] = {
2743 { TT_EGREP, zNested_Auth_DesSelect0, (regex_t*)NULL }, };
2744
2745 /*
2746 * Fix Command Arguments for Nested_Auth_Des
2747 */
2748 static const char* apzNested_Auth_DesPatch[] = {
2749 "format",
2750 "%1*/ /*",
2751 (char*)NULL };
2752
2753 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2754 *
2755 * Description of Nested_Motorola fix
2756 */
2757 tSCC zNested_MotorolaName[] =
2758 "nested_motorola";
2759
2760 /*
2761 * File name selection pattern
2762 */
2763 tSCC zNested_MotorolaList[] =
2764 "|sys/limits.h|limits.h|";
2765 /*
2766 * Machine/OS name selection pattern
2767 */
2768 tSCC* apzNested_MotorolaMachs[] = {
2769 "m68k-motorola-sysv*",
2770 (const char*)NULL };
2771
2772 /*
2773 * content selection pattern - do fix if pattern found
2774 */
2775 tSCC zNested_MotorolaSelect0[] =
2776 "max # bytes atomic in write|error value returned by Math lib";
2777
2778 #define NESTED_MOTOROLA_TEST_CT 1
2779 static tTestDesc aNested_MotorolaTests[] = {
2780 { TT_EGREP, zNested_MotorolaSelect0, (regex_t*)NULL }, };
2781
2782 /*
2783 * Fix Command Arguments for Nested_Motorola
2784 */
2785 static const char* apzNested_MotorolaPatch[] = { "sed",
2786 "-e", "s@^\\(#undef[ \t][ \t]*PIPE_BUF[ \t]*/\\* max # bytes atomic in write to a\\)$@\\1 */@",
2787 "-e", "s@\\(/\\*#define\tHUGE_VAL\t3.[0-9e+]* \\)\\(/\\*error value returned by Math lib\\*/\\)$@\\1*/ \\2@",
2788 (char*)NULL };
2789
2790 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2791 *
2792 * Description of Nested_Sys_Limits fix
2793 */
2794 tSCC zNested_Sys_LimitsName[] =
2795 "nested_sys_limits";
2796
2797 /*
2798 * File name selection pattern
2799 */
2800 tSCC zNested_Sys_LimitsList[] =
2801 "|sys/limits.h|";
2802 /*
2803 * Machine/OS name selection pattern
2804 */
2805 #define apzNested_Sys_LimitsMachs (const char**)NULL
2806
2807 /*
2808 * content selection pattern - do fix if pattern found
2809 */
2810 tSCC zNested_Sys_LimitsSelect0[] =
2811 "CHILD_MAX";
2812
2813 #define NESTED_SYS_LIMITS_TEST_CT 1
2814 static tTestDesc aNested_Sys_LimitsTests[] = {
2815 { TT_EGREP, zNested_Sys_LimitsSelect0, (regex_t*)NULL }, };
2816
2817 /*
2818 * Fix Command Arguments for Nested_Sys_Limits
2819 */
2820 static const char* apzNested_Sys_LimitsPatch[] = { "sed",
2821 "-e", "/CHILD_MAX/s,/\\* Max, Max,",
2822 "-e", "/OPEN_MAX/s,/\\* Max, Max,",
2823 (char*)NULL };
2824
2825 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2826 *
2827 * Description of Next_Math_Prefix fix
2828 */
2829 tSCC zNext_Math_PrefixName[] =
2830 "next_math_prefix";
2831
2832 /*
2833 * File name selection pattern
2834 */
2835 tSCC zNext_Math_PrefixList[] =
2836 "|ansi/math.h|";
2837 /*
2838 * Machine/OS name selection pattern
2839 */
2840 #define apzNext_Math_PrefixMachs (const char**)NULL
2841
2842 /*
2843 * content selection pattern - do fix if pattern found
2844 */
2845 tSCC zNext_Math_PrefixSelect0[] =
2846 "^extern[ \t]+double[ \t]+__const__[ \t]";
2847
2848 #define NEXT_MATH_PREFIX_TEST_CT 1
2849 static tTestDesc aNext_Math_PrefixTests[] = {
2850 { TT_EGREP, zNext_Math_PrefixSelect0, (regex_t*)NULL }, };
2851
2852 /*
2853 * Fix Command Arguments for Next_Math_Prefix
2854 */
2855 static const char* apzNext_Math_PrefixPatch[] = {
2856 "format",
2857 "extern double %1(",
2858 "^extern[ \t]+double[ \t]+__const__[ \t]+([a-z]+)\\(",
2859 (char*)NULL };
2860
2861 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2862 *
2863 * Description of Next_Template fix
2864 */
2865 tSCC zNext_TemplateName[] =
2866 "next_template";
2867
2868 /*
2869 * File name selection pattern
2870 */
2871 tSCC zNext_TemplateList[] =
2872 "|bsd/libc.h|";
2873 /*
2874 * Machine/OS name selection pattern
2875 */
2876 #define apzNext_TemplateMachs (const char**)NULL
2877
2878 /*
2879 * content selection pattern - do fix if pattern found
2880 */
2881 tSCC zNext_TemplateSelect0[] =
2882 "[ \t]template\\)";
2883
2884 #define NEXT_TEMPLATE_TEST_CT 1
2885 static tTestDesc aNext_TemplateTests[] = {
2886 { TT_EGREP, zNext_TemplateSelect0, (regex_t*)NULL }, };
2887
2888 /*
2889 * Fix Command Arguments for Next_Template
2890 */
2891 static const char* apzNext_TemplatePatch[] = {
2892 "format",
2893 "(%1)",
2894 "\\(([^)]*)[ \t]template\\)",
2895 (char*)NULL };
2896
2897 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2898 *
2899 * Description of Next_Volitile fix
2900 */
2901 tSCC zNext_VolitileName[] =
2902 "next_volitile";
2903
2904 /*
2905 * File name selection pattern
2906 */
2907 tSCC zNext_VolitileList[] =
2908 "|ansi/stdlib.h|";
2909 /*
2910 * Machine/OS name selection pattern
2911 */
2912 #define apzNext_VolitileMachs (const char**)NULL
2913
2914 /*
2915 * content selection pattern - do fix if pattern found
2916 */
2917 tSCC zNext_VolitileSelect0[] =
2918 "^extern[ \t]+volatile[ \t]+void[ \t]";
2919
2920 #define NEXT_VOLITILE_TEST_CT 1
2921 static tTestDesc aNext_VolitileTests[] = {
2922 { TT_EGREP, zNext_VolitileSelect0, (regex_t*)NULL }, };
2923
2924 /*
2925 * Fix Command Arguments for Next_Volitile
2926 */
2927 static const char* apzNext_VolitilePatch[] = {
2928 "format",
2929 "extern void %1(",
2930 "^extern[ \t]+volatile[ \t]+void[ \t]+(exit|abort)\\(",
2931 (char*)NULL };
2932
2933 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2934 *
2935 * Description of Next_Wait_Union fix
2936 */
2937 tSCC zNext_Wait_UnionName[] =
2938 "next_wait_union";
2939
2940 /*
2941 * File name selection pattern
2942 */
2943 tSCC zNext_Wait_UnionList[] =
2944 "|sys/wait.h|";
2945 /*
2946 * Machine/OS name selection pattern
2947 */
2948 #define apzNext_Wait_UnionMachs (const char**)NULL
2949
2950 /*
2951 * content selection pattern - do fix if pattern found
2952 */
2953 tSCC zNext_Wait_UnionSelect0[] =
2954 "wait\\(union wait";
2955
2956 #define NEXT_WAIT_UNION_TEST_CT 1
2957 static tTestDesc aNext_Wait_UnionTests[] = {
2958 { TT_EGREP, zNext_Wait_UnionSelect0, (regex_t*)NULL }, };
2959
2960 /*
2961 * Fix Command Arguments for Next_Wait_Union
2962 */
2963 static const char* apzNext_Wait_UnionPatch[] = {
2964 "format",
2965 "wait(void",
2966 (char*)NULL };
2967
2968 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2969 *
2970 * Description of Nodeent_Syntax fix
2971 */
2972 tSCC zNodeent_SyntaxName[] =
2973 "nodeent_syntax";
2974
2975 /*
2976 * File name selection pattern
2977 */
2978 tSCC zNodeent_SyntaxList[] =
2979 "|netdnet/dnetdb.h|";
2980 /*
2981 * Machine/OS name selection pattern
2982 */
2983 #define apzNodeent_SyntaxMachs (const char**)NULL
2984
2985 /*
2986 * content selection pattern - do fix if pattern found
2987 */
2988 tSCC zNodeent_SyntaxSelect0[] =
2989 "char[ \t]*\\*na_addr[ \t]*$";
2990
2991 #define NODEENT_SYNTAX_TEST_CT 1
2992 static tTestDesc aNodeent_SyntaxTests[] = {
2993 { TT_EGREP, zNodeent_SyntaxSelect0, (regex_t*)NULL }, };
2994
2995 /*
2996 * Fix Command Arguments for Nodeent_Syntax
2997 */
2998 static const char* apzNodeent_SyntaxPatch[] = {
2999 "format",
3000 "%0;",
3001 (char*)NULL };
3002
3003 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3004 *
3005 * Description of Osf_Namespace_A fix
3006 */
3007 tSCC zOsf_Namespace_AName[] =
3008 "osf_namespace_a";
3009
3010 /*
3011 * File name selection pattern
3012 */
3013 tSCC zOsf_Namespace_AList[] =
3014 "|reg_types.h|sys/lc_core.h|";
3015 /*
3016 * Machine/OS name selection pattern
3017 */
3018 #define apzOsf_Namespace_AMachs (const char**)NULL
3019
3020 /*
3021 * perform the 'test' shell command - do fix on success
3022 */
3023 tSCC zOsf_Namespace_ATest0[] =
3024 " -r reg_types.h";
3025 tSCC zOsf_Namespace_ATest1[] =
3026 " -r sys/lc_core.h";
3027 tSCC zOsf_Namespace_ATest2[] =
3028 " -n \"`grep '} regex_t;' reg_types.h`\"";
3029 tSCC zOsf_Namespace_ATest3[] =
3030 " -z \"`grep __regex_t regex.h`\"";
3031
3032 #define OSF_NAMESPACE_A_TEST_CT 4
3033 static tTestDesc aOsf_Namespace_ATests[] = {
3034 { TT_TEST, zOsf_Namespace_ATest0, 0 /* unused */ },
3035 { TT_TEST, zOsf_Namespace_ATest1, 0 /* unused */ },
3036 { TT_TEST, zOsf_Namespace_ATest2, 0 /* unused */ },
3037 { TT_TEST, zOsf_Namespace_ATest3, 0 /* unused */ }, };
3038
3039 /*
3040 * Fix Command Arguments for Osf_Namespace_A
3041 */
3042 static const char* apzOsf_Namespace_APatch[] = {
3043 "format",
3044 "__%0",
3045 "reg(ex|off|match)_t",
3046 (char*)NULL };
3047
3048 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3049 *
3050 * Description of Osf_Namespace_C fix
3051 */
3052 tSCC zOsf_Namespace_CName[] =
3053 "osf_namespace_c";
3054
3055 /*
3056 * File name selection pattern
3057 */
3058 tSCC zOsf_Namespace_CList[] =
3059 "|regex.h|";
3060 /*
3061 * Machine/OS name selection pattern
3062 */
3063 #define apzOsf_Namespace_CMachs (const char**)NULL
3064
3065 /*
3066 * content selection pattern - do fix if pattern found
3067 */
3068 tSCC zOsf_Namespace_CSelect0[] =
3069 "#include <reg_types.h>.*";
3070
3071 /*
3072 * perform the 'test' shell command - do fix on success
3073 */
3074 tSCC zOsf_Namespace_CTest0[] =
3075 " -r reg_types.h";
3076 tSCC zOsf_Namespace_CTest1[] =
3077 " -r sys/lc_core.h";
3078 tSCC zOsf_Namespace_CTest2[] =
3079 " -n \"`grep '} regex_t;' reg_types.h`\"";
3080 tSCC zOsf_Namespace_CTest3[] =
3081 " -z \"`grep __regex_t regex.h`\"";
3082
3083 #define OSF_NAMESPACE_C_TEST_CT 5
3084 static tTestDesc aOsf_Namespace_CTests[] = {
3085 { TT_TEST, zOsf_Namespace_CTest0, 0 /* unused */ },
3086 { TT_TEST, zOsf_Namespace_CTest1, 0 /* unused */ },
3087 { TT_TEST, zOsf_Namespace_CTest2, 0 /* unused */ },
3088 { TT_TEST, zOsf_Namespace_CTest3, 0 /* unused */ },
3089 { TT_EGREP, zOsf_Namespace_CSelect0, (regex_t*)NULL }, };
3090
3091 /*
3092 * Fix Command Arguments for Osf_Namespace_C
3093 */
3094 static const char* apzOsf_Namespace_CPatch[] = {
3095 "format",
3096 "%0\n\
3097 typedef __regex_t\tregex_t;\n\
3098 typedef __regoff_t\tregoff_t;\n\
3099 typedef __regmatch_t\tregmatch_t;",
3100 (char*)NULL };
3101
3102 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3103 *
3104 * Description of Pthread_Page_Size fix
3105 */
3106 tSCC zPthread_Page_SizeName[] =
3107 "pthread_page_size";
3108
3109 /*
3110 * File name selection pattern
3111 */
3112 tSCC zPthread_Page_SizeList[] =
3113 "|pthread.h|";
3114 /*
3115 * Machine/OS name selection pattern
3116 */
3117 #define apzPthread_Page_SizeMachs (const char**)NULL
3118
3119 /*
3120 * content selection pattern - do fix if pattern found
3121 */
3122 tSCC zPthread_Page_SizeSelect0[] =
3123 "^int __page_size";
3124
3125 #define PTHREAD_PAGE_SIZE_TEST_CT 1
3126 static tTestDesc aPthread_Page_SizeTests[] = {
3127 { TT_EGREP, zPthread_Page_SizeSelect0, (regex_t*)NULL }, };
3128
3129 /*
3130 * Fix Command Arguments for Pthread_Page_Size
3131 */
3132 static const char* apzPthread_Page_SizePatch[] = {
3133 "format",
3134 "extern %0",
3135 (char*)NULL };
3136
3137 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3138 *
3139 * Description of Read_Ret_Type fix
3140 */
3141 tSCC zRead_Ret_TypeName[] =
3142 "read_ret_type";
3143
3144 /*
3145 * File name selection pattern
3146 */
3147 tSCC zRead_Ret_TypeList[] =
3148 "|stdio.h|";
3149 /*
3150 * Machine/OS name selection pattern
3151 */
3152 #define apzRead_Ret_TypeMachs (const char**)NULL
3153
3154 /*
3155 * content selection pattern - do fix if pattern found
3156 */
3157 tSCC zRead_Ret_TypeSelect0[] =
3158 "extern int\t.*, fread\\(\\), fwrite\\(\\)";
3159
3160 #define READ_RET_TYPE_TEST_CT 1
3161 static tTestDesc aRead_Ret_TypeTests[] = {
3162 { TT_EGREP, zRead_Ret_TypeSelect0, (regex_t*)NULL }, };
3163
3164 /*
3165 * Fix Command Arguments for Read_Ret_Type
3166 */
3167 static const char* apzRead_Ret_TypePatch[] = {
3168 "format",
3169 "extern unsigned int fread(), fwrite();\n\
3170 %1%2",
3171 "(extern int\t.*), fread\\(\\), fwrite\\(\\)(.*)",
3172 (char*)NULL };
3173
3174 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3175 *
3176 * Description of Rs6000_Double fix
3177 */
3178 tSCC zRs6000_DoubleName[] =
3179 "rs6000_double";
3180
3181 /*
3182 * File name selection pattern
3183 */
3184 tSCC zRs6000_DoubleList[] =
3185 "|math.h|";
3186 /*
3187 * Machine/OS name selection pattern
3188 */
3189 #define apzRs6000_DoubleMachs (const char**)NULL
3190
3191 /*
3192 * content selection pattern - do fix if pattern found
3193 */
3194 tSCC zRs6000_DoubleSelect0[] =
3195 "[^a-zA-Z_]class\\(";
3196
3197 #define RS6000_DOUBLE_TEST_CT 1
3198 static tTestDesc aRs6000_DoubleTests[] = {
3199 { TT_EGREP, zRs6000_DoubleSelect0, (regex_t*)NULL }, };
3200
3201 /*
3202 * Fix Command Arguments for Rs6000_Double
3203 */
3204 static const char* apzRs6000_DoublePatch[] = {
3205 "format",
3206 "#ifndef __cplusplus\n\
3207 %0\n\
3208 #endif",
3209 "^.*[^a-zA-Z_]class\\(.*",
3210 (char*)NULL };
3211
3212 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3213 *
3214 * Description of Rs6000_Fchmod fix
3215 */
3216 tSCC zRs6000_FchmodName[] =
3217 "rs6000_fchmod";
3218
3219 /*
3220 * File name selection pattern
3221 */
3222 tSCC zRs6000_FchmodList[] =
3223 "|sys/stat.h|";
3224 /*
3225 * Machine/OS name selection pattern
3226 */
3227 #define apzRs6000_FchmodMachs (const char**)NULL
3228
3229 /*
3230 * content selection pattern - do fix if pattern found
3231 */
3232 tSCC zRs6000_FchmodSelect0[] =
3233 "fchmod\\(char \\*";
3234
3235 #define RS6000_FCHMOD_TEST_CT 1
3236 static tTestDesc aRs6000_FchmodTests[] = {
3237 { TT_EGREP, zRs6000_FchmodSelect0, (regex_t*)NULL }, };
3238
3239 /*
3240 * Fix Command Arguments for Rs6000_Fchmod
3241 */
3242 static const char* apzRs6000_FchmodPatch[] = {
3243 "format",
3244 "fchmod(int",
3245 (char*)NULL };
3246
3247 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3248 *
3249 * Description of Rs6000_Param fix
3250 */
3251 tSCC zRs6000_ParamName[] =
3252 "rs6000_param";
3253
3254 /*
3255 * File name selection pattern
3256 */
3257 tSCC zRs6000_ParamList[] =
3258 "|stdio.h|unistd.h|";
3259 /*
3260 * Machine/OS name selection pattern
3261 */
3262 #define apzRs6000_ParamMachs (const char**)NULL
3263
3264 /*
3265 * content selection pattern - do fix if pattern found
3266 */
3267 tSCC zRs6000_ParamSelect0[] =
3268 "rename\\(const char \\*old, const char \\*new\\)";
3269
3270 #define RS6000_PARAM_TEST_CT 1
3271 static tTestDesc aRs6000_ParamTests[] = {
3272 { TT_EGREP, zRs6000_ParamSelect0, (regex_t*)NULL }, };
3273
3274 /*
3275 * Fix Command Arguments for Rs6000_Param
3276 */
3277 static const char* apzRs6000_ParamPatch[] = {
3278 "format",
3279 "rename(const char *_old, const char *_new)",
3280 (char*)NULL };
3281
3282 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3283 *
3284 * Description of Sco_Static_Func fix
3285 */
3286 tSCC zSco_Static_FuncName[] =
3287 "sco_static_func";
3288
3289 /*
3290 * File name selection pattern
3291 */
3292 tSCC zSco_Static_FuncList[] =
3293 "|sys/stat.h|";
3294 /*
3295 * Machine/OS name selection pattern
3296 */
3297 tSCC* apzSco_Static_FuncMachs[] = {
3298 "i?86-*-sco3.2*",
3299 (const char*)NULL };
3300
3301 /*
3302 * content selection pattern - do fix if pattern found
3303 */
3304 tSCC zSco_Static_FuncSelect0[] =
3305 "^static int";
3306
3307 #define SCO_STATIC_FUNC_TEST_CT 1
3308 static tTestDesc aSco_Static_FuncTests[] = {
3309 { TT_EGREP, zSco_Static_FuncSelect0, (regex_t*)NULL }, };
3310
3311 /*
3312 * Fix Command Arguments for Sco_Static_Func
3313 */
3314 static const char* apzSco_Static_FuncPatch[] = { "sed",
3315 "-e", "/^static int/i\\\n\
3316 #if __cplusplus\\\n\
3317 extern \"C\" {\\\n\
3318 #endif /* __cplusplus */",
3319 "-e", "/^}$/a\\\n\
3320 #if __cplusplus\\\n\
3321 }\\\n\
3322 #endif /* __cplusplus */",
3323 (char*)NULL };
3324
3325 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3326 *
3327 * Description of Sco_Utime fix
3328 */
3329 tSCC zSco_UtimeName[] =
3330 "sco_utime";
3331
3332 /*
3333 * File name selection pattern
3334 */
3335 tSCC zSco_UtimeList[] =
3336 "|sys/times.h|";
3337 /*
3338 * Machine/OS name selection pattern
3339 */
3340 tSCC* apzSco_UtimeMachs[] = {
3341 "i?86-*-sco3.2v4*",
3342 (const char*)NULL };
3343
3344 /*
3345 * content selection pattern - do fix if pattern found
3346 */
3347 tSCC zSco_UtimeSelect0[] =
3348 "\\(const char \\*, struct utimbuf \\*\\);";
3349
3350 #define SCO_UTIME_TEST_CT 1
3351 static tTestDesc aSco_UtimeTests[] = {
3352 { TT_EGREP, zSco_UtimeSelect0, (regex_t*)NULL }, };
3353
3354 /*
3355 * Fix Command Arguments for Sco_Utime
3356 */
3357 static const char* apzSco_UtimePatch[] = {
3358 "format",
3359 "(const char *, const struct utimbuf *);",
3360 (char*)NULL };
3361
3362 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3363 *
3364 * Description of Solaris_Mutex_Init fix
3365 */
3366 tSCC zSolaris_Mutex_InitName[] =
3367 "solaris_mutex_init";
3368
3369 /*
3370 * File name selection pattern
3371 */
3372 tSCC zSolaris_Mutex_InitList[] =
3373 "|pthread.h|";
3374 /*
3375 * Machine/OS name selection pattern
3376 */
3377 #define apzSolaris_Mutex_InitMachs (const char**)NULL
3378
3379 /*
3380 * content selection pattern - do fix if pattern found
3381 */
3382 tSCC zSolaris_Mutex_InitSelect0[] =
3383 "@\\(#\\)pthread.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
3384
3385 #define SOLARIS_MUTEX_INIT_TEST_CT 1
3386 static tTestDesc aSolaris_Mutex_InitTests[] = {
3387 { TT_EGREP, zSolaris_Mutex_InitSelect0, (regex_t*)NULL }, };
3388
3389 /*
3390 * Fix Command Arguments for Solaris_Mutex_Init
3391 */
3392 static const char* apzSolaris_Mutex_InitPatch[] = {
3393 "format",
3394 "#if __STDC__ - 0 == 0 && !defined(_NO_LONGLONG)\n\
3395 %0\n\
3396 #else\n\
3397 %1, {0}}%3\n\
3398 #endif",
3399 "(^#define[ \t]+PTHREAD_(MUTEX|COND)_INITIALIZER[ \t]+{.*),[ \t]*0}(|[ \t].*)$",
3400 (char*)NULL };
3401
3402 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3403 *
3404 * Description of Solaris_Stdio_Tag fix
3405 */
3406 tSCC zSolaris_Stdio_TagName[] =
3407 "solaris_stdio_tag";
3408
3409 /*
3410 * File name selection pattern
3411 */
3412 tSCC zSolaris_Stdio_TagList[] =
3413 "|stdio_tag.h|";
3414 /*
3415 * Machine/OS name selection pattern
3416 */
3417 #define apzSolaris_Stdio_TagMachs (const char**)NULL
3418
3419 /*
3420 * content selection pattern - do fix if pattern found
3421 */
3422 tSCC zSolaris_Stdio_TagSelect0[] =
3423 "__cplusplus < 54321L";
3424
3425 #define SOLARIS_STDIO_TAG_TEST_CT 1
3426 static tTestDesc aSolaris_Stdio_TagTests[] = {
3427 { TT_EGREP, zSolaris_Stdio_TagSelect0, (regex_t*)NULL }, };
3428
3429 /*
3430 * Fix Command Arguments for Solaris_Stdio_Tag
3431 */
3432 static const char* apzSolaris_Stdio_TagPatch[] = { "sed",
3433 "-e", "s/defined(__cplusplus) && (__cplusplus < 54321L)/0/",
3434 (char*)NULL };
3435
3436 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3437 *
3438 * Description of Solaris_Widec fix
3439 */
3440 tSCC zSolaris_WidecName[] =
3441 "solaris_widec";
3442
3443 /*
3444 * File name selection pattern
3445 */
3446 tSCC zSolaris_WidecList[] =
3447 "|widec.h|";
3448 /*
3449 * Machine/OS name selection pattern
3450 */
3451 tSCC* apzSolaris_WidecMachs[] = {
3452 "*-*-solaris2.[0-5]*",
3453 (const char*)NULL };
3454
3455 /*
3456 * content selection pattern - do fix if pattern found
3457 */
3458 tSCC zSolaris_WidecSelect0[] =
3459 "#include <euc.h>";
3460
3461 /*
3462 * content bypass pattern - skip fix if pattern found
3463 */
3464 tSCC zSolaris_WidecBypass0[] =
3465 "include.*wchar\\.h";
3466
3467 #define SOLARIS_WIDEC_TEST_CT 2
3468 static tTestDesc aSolaris_WidecTests[] = {
3469 { TT_NEGREP, zSolaris_WidecBypass0, (regex_t*)NULL },
3470 { TT_EGREP, zSolaris_WidecSelect0, (regex_t*)NULL }, };
3471
3472 /*
3473 * Fix Command Arguments for Solaris_Widec
3474 */
3475 static const char* apzSolaris_WidecPatch[] = {
3476 "format",
3477 "%0\n\
3478 #include <wchar.h>",
3479 (char*)NULL };
3480
3481 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3482 *
3483 * Description of Statsswtch fix
3484 */
3485 tSCC zStatsswtchName[] =
3486 "statsswtch";
3487
3488 /*
3489 * File name selection pattern
3490 */
3491 tSCC zStatsswtchList[] =
3492 "|rpcsvc/rstat.h|";
3493 /*
3494 * Machine/OS name selection pattern
3495 */
3496 #define apzStatsswtchMachs (const char**)NULL
3497
3498 /*
3499 * content selection pattern - do fix if pattern found
3500 */
3501 tSCC zStatsswtchSelect0[] =
3502 "boottime$";
3503
3504 #define STATSSWTCH_TEST_CT 1
3505 static tTestDesc aStatsswtchTests[] = {
3506 { TT_EGREP, zStatsswtchSelect0, (regex_t*)NULL }, };
3507
3508 /*
3509 * Fix Command Arguments for Statsswtch
3510 */
3511 static const char* apzStatsswtchPatch[] = {
3512 "format",
3513 "boottime;",
3514 (char*)NULL };
3515
3516 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3517 *
3518 * Description of Stdio_Stdarg_H fix
3519 */
3520 tSCC zStdio_Stdarg_HName[] =
3521 "stdio_stdarg_h";
3522
3523 /*
3524 * File name selection pattern
3525 */
3526 tSCC zStdio_Stdarg_HList[] =
3527 "|stdio.h|";
3528 /*
3529 * Machine/OS name selection pattern
3530 */
3531 #define apzStdio_Stdarg_HMachs (const char**)NULL
3532
3533 /*
3534 * content bypass pattern - skip fix if pattern found
3535 */
3536 tSCC zStdio_Stdarg_HBypass0[] =
3537 "include.*(stdarg.h|machine/ansi.h)";
3538
3539 #define STDIO_STDARG_H_TEST_CT 1
3540 static tTestDesc aStdio_Stdarg_HTests[] = {
3541 { TT_NEGREP, zStdio_Stdarg_HBypass0, (regex_t*)NULL }, };
3542
3543 /*
3544 * Fix Command Arguments for Stdio_Stdarg_H
3545 */
3546 static const char* apzStdio_Stdarg_HPatch[] = {
3547 "wrap",
3548 "#define __need___va_list\n\
3549 #include <stdarg.h>\n",
3550 (char*)NULL };
3551
3552 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3553 *
3554 * Description of Stdio_Va_List fix
3555 */
3556 tSCC zStdio_Va_ListName[] =
3557 "stdio_va_list";
3558
3559 /*
3560 * File name selection pattern
3561 */
3562 tSCC zStdio_Va_ListList[] =
3563 "|stdio.h|";
3564 /*
3565 * Machine/OS name selection pattern
3566 */
3567 #define apzStdio_Va_ListMachs (const char**)NULL
3568
3569 /*
3570 * content bypass pattern - skip fix if pattern found
3571 */
3572 tSCC zStdio_Va_ListBypass0[] =
3573 "__gnuc_va_list|_BSD_VA_LIST_|__DJ_va_list";
3574
3575 #define STDIO_VA_LIST_TEST_CT 1
3576 static tTestDesc aStdio_Va_ListTests[] = {
3577 { TT_NEGREP, zStdio_Va_ListBypass0, (regex_t*)NULL }, };
3578
3579 /*
3580 * Fix Command Arguments for Stdio_Va_List
3581 */
3582 static const char* apzStdio_Va_ListPatch[] = { "sed",
3583 "-e", "s@ va_list @ __gnuc_va_list @\n\
3584 s@ va_list)@ __gnuc_va_list)@\n\
3585 s@ _VA_LIST_));@ __gnuc_va_list));@\n\
3586 s@ __VA_LIST__));@ __gnuc_va_list));@\n\
3587 s@ va_list@ __not_va_list__@\n\
3588 s@\\*va_list@*__not_va_list__@\n\
3589 s@ __va_list)@ __gnuc_va_list)@\n\
3590 s@typedef[ \t]\\(.*\\)[ \t]va_list[ \t]*;@typedef \\1 __not_va_list__;@\n\
3591 s@typedef[ \t]*__va_list__@typedef __gnuc_va_list@\n\
3592 s@GNUC_VA_LIST@GNUC_Va_LIST@\n\
3593 s@_NEED___VA_LIST@_NEED___Va_LIST@\n\
3594 s@VA_LIST@DUMMY_VA_LIST@\n\
3595 s@_Va_LIST@_VA_LIST@",
3596 (char*)NULL };
3597
3598 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3599 *
3600 * Description of Strict_Ansi_Not fix
3601 */
3602 tSCC zStrict_Ansi_NotName[] =
3603 "strict_ansi_not";
3604
3605 /*
3606 * File name selection pattern
3607 */
3608 #define zStrict_Ansi_NotList (char*)NULL
3609 /*
3610 * Machine/OS name selection pattern
3611 */
3612 #define apzStrict_Ansi_NotMachs (const char**)NULL
3613
3614 /*
3615 * content selection pattern - do fix if pattern found
3616 */
3617 tSCC zStrict_Ansi_NotSelect0[] =
3618 "^([ \t]*#[ \t]*if.*)(!__STDC__|__STDC__[ \t]*==[ \t]*0|__STDC__[ \t]*!=[ \t]*1|__STDC__[ \t]*-[ \t]*0[ \t]*==[ \t]*0)";
3619
3620 /*
3621 * content bypass pattern - skip fix if pattern found
3622 */
3623 tSCC zStrict_Ansi_NotBypass0[] =
3624 "GNU and MIPS C compilers define __STDC__ differently";
3625
3626 /*
3627 * perform the C function call test
3628 */
3629 tSCC zStrict_Ansi_NotFTst0[] = "stdc_0_in_system_headers";
3630
3631 #define STRICT_ANSI_NOT_TEST_CT 3
3632 static tTestDesc aStrict_Ansi_NotTests[] = {
3633 { TT_FUNCTION, zStrict_Ansi_NotFTst0, 0 /* unused */ },
3634 { TT_NEGREP, zStrict_Ansi_NotBypass0, (regex_t*)NULL },
3635 { TT_EGREP, zStrict_Ansi_NotSelect0, (regex_t*)NULL }, };
3636
3637 /*
3638 * Fix Command Arguments for Strict_Ansi_Not
3639 */
3640 static const char* apzStrict_Ansi_NotPatch[] = {
3641 "format",
3642 "%1 !defined(__STRICT_ANSI__)",
3643 (char*)NULL };
3644
3645 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3646 *
3647 * Description of Strict_Ansi_Not_Ctd fix
3648 */
3649 tSCC zStrict_Ansi_Not_CtdName[] =
3650 "strict_ansi_not_ctd";
3651
3652 /*
3653 * File name selection pattern
3654 */
3655 tSCC zStrict_Ansi_Not_CtdList[] =
3656 "|math.h|limits.h|stdio.h|signal.h|stdlib.h|sys/signal.h|time.h|";
3657 /*
3658 * Machine/OS name selection pattern
3659 */
3660 #define apzStrict_Ansi_Not_CtdMachs (const char**)NULL
3661
3662 /*
3663 * content selection pattern - do fix if pattern found
3664 */
3665 tSCC zStrict_Ansi_Not_CtdSelect0[] =
3666 "^([ \t]*(\\(|&&|\\|\\|)([ \t(]*!*[ \t]*defined\\([a-zA-Z_0-9]+\\)[ \t]*[|&][|&])*[ \t(]*)(__STDC__[ \t]*(|-[ \t]*0[ \t]*)==[ \t]*0)";
3667
3668 /*
3669 * perform the C function call test
3670 */
3671 tSCC zStrict_Ansi_Not_CtdFTst0[] = "stdc_0_in_system_headers";
3672
3673 #define STRICT_ANSI_NOT_CTD_TEST_CT 2
3674 static tTestDesc aStrict_Ansi_Not_CtdTests[] = {
3675 { TT_FUNCTION, zStrict_Ansi_Not_CtdFTst0, 0 /* unused */ },
3676 { TT_EGREP, zStrict_Ansi_Not_CtdSelect0, (regex_t*)NULL }, };
3677
3678 /*
3679 * Fix Command Arguments for Strict_Ansi_Not_Ctd
3680 */
3681 static const char* apzStrict_Ansi_Not_CtdPatch[] = {
3682 "format",
3683 "%1 !defined(__STRICT_ANSI__)",
3684 (char*)NULL };
3685
3686 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3687 *
3688 * Description of Strict_Ansi_Only fix
3689 */
3690 tSCC zStrict_Ansi_OnlyName[] =
3691 "strict_ansi_only";
3692
3693 /*
3694 * File name selection pattern
3695 */
3696 #define zStrict_Ansi_OnlyList (char*)NULL
3697 /*
3698 * Machine/OS name selection pattern
3699 */
3700 #define apzStrict_Ansi_OnlyMachs (const char**)NULL
3701
3702 /*
3703 * content selection pattern - do fix if pattern found
3704 */
3705 tSCC zStrict_Ansi_OnlySelect0[] =
3706 "^([ \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)";
3707
3708 /*
3709 * perform the C function call test
3710 */
3711 tSCC zStrict_Ansi_OnlyFTst0[] = "stdc_0_in_system_headers";
3712
3713 #define STRICT_ANSI_ONLY_TEST_CT 2
3714 static tTestDesc aStrict_Ansi_OnlyTests[] = {
3715 { TT_FUNCTION, zStrict_Ansi_OnlyFTst0, 0 /* unused */ },
3716 { TT_EGREP, zStrict_Ansi_OnlySelect0, (regex_t*)NULL }, };
3717
3718 /*
3719 * Fix Command Arguments for Strict_Ansi_Only
3720 */
3721 static const char* apzStrict_Ansi_OnlyPatch[] = {
3722 "format",
3723 "%1 defined(__STRICT_ANSI__)",
3724 (char*)NULL };
3725
3726 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3727 *
3728 * Description of Struct_File fix
3729 */
3730 tSCC zStruct_FileName[] =
3731 "struct_file";
3732
3733 /*
3734 * File name selection pattern
3735 */
3736 tSCC zStruct_FileList[] =
3737 "|rpc/xdr.h|";
3738 /*
3739 * Machine/OS name selection pattern
3740 */
3741 #define apzStruct_FileMachs (const char**)NULL
3742
3743 /*
3744 * content selection pattern - do fix if pattern found
3745 */
3746 tSCC zStruct_FileSelect0[] =
3747 "^.*xdrstdio_create.*struct __file_s";
3748
3749 #define STRUCT_FILE_TEST_CT 1
3750 static tTestDesc aStruct_FileTests[] = {
3751 { TT_EGREP, zStruct_FileSelect0, (regex_t*)NULL }, };
3752
3753 /*
3754 * Fix Command Arguments for Struct_File
3755 */
3756 static const char* apzStruct_FilePatch[] = {
3757 "format",
3758 "struct __file_s;\n\
3759 %0",
3760 (char*)NULL };
3761
3762 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3763 *
3764 * Description of Struct_Sockaddr fix
3765 */
3766 tSCC zStruct_SockaddrName[] =
3767 "struct_sockaddr";
3768
3769 /*
3770 * File name selection pattern
3771 */
3772 tSCC zStruct_SockaddrList[] =
3773 "|rpc/auth.h|";
3774 /*
3775 * Machine/OS name selection pattern
3776 */
3777 #define apzStruct_SockaddrMachs (const char**)NULL
3778
3779 /*
3780 * content selection pattern - do fix if pattern found
3781 */
3782 tSCC zStruct_SockaddrSelect0[] =
3783 "^.*authdes_create.*struct sockaddr";
3784
3785 /*
3786 * content bypass pattern - skip fix if pattern found
3787 */
3788 tSCC zStruct_SockaddrBypass0[] =
3789 "<sys/socket.h>";
3790
3791 #define STRUCT_SOCKADDR_TEST_CT 2
3792 static tTestDesc aStruct_SockaddrTests[] = {
3793 { TT_NEGREP, zStruct_SockaddrBypass0, (regex_t*)NULL },
3794 { TT_EGREP, zStruct_SockaddrSelect0, (regex_t*)NULL }, };
3795
3796 /*
3797 * Fix Command Arguments for Struct_Sockaddr
3798 */
3799 static const char* apzStruct_SockaddrPatch[] = {
3800 "format",
3801 "struct sockaddr;\n\
3802 %0",
3803 (char*)NULL };
3804
3805 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3806 *
3807 * Description of Sun_Auth_Proto fix
3808 */
3809 tSCC zSun_Auth_ProtoName[] =
3810 "sun_auth_proto";
3811
3812 /*
3813 * File name selection pattern
3814 */
3815 tSCC zSun_Auth_ProtoList[] =
3816 "|rpc/auth.h|rpc/clnt.h|rpc/svc.h|rpc/xdr.h|";
3817 /*
3818 * Machine/OS name selection pattern
3819 */
3820 #define apzSun_Auth_ProtoMachs (const char**)NULL
3821
3822 /*
3823 * content selection pattern - do fix if pattern found
3824 */
3825 tSCC zSun_Auth_ProtoSelect0[] =
3826 "\\(\\*[a-z][a-z_]*\\)\\(\\)";
3827
3828 #define SUN_AUTH_PROTO_TEST_CT 1
3829 static tTestDesc aSun_Auth_ProtoTests[] = {
3830 { TT_EGREP, zSun_Auth_ProtoSelect0, (regex_t*)NULL }, };
3831
3832 /*
3833 * Fix Command Arguments for Sun_Auth_Proto
3834 */
3835 static const char* apzSun_Auth_ProtoPatch[] = {
3836 "format",
3837 "#ifdef __cplusplus\n\
3838 %1(...);%2\n\
3839 #else\n\
3840 %1();%2\n\
3841 #endif",
3842 "(.*\\(\\*[a-z][a-z_]*\\))\\(\\);(.*)",
3843 (char*)NULL };
3844
3845 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3846 *
3847 * Description of Sun_Bogus_Ifdef fix
3848 */
3849 tSCC zSun_Bogus_IfdefName[] =
3850 "sun_bogus_ifdef";
3851
3852 /*
3853 * File name selection pattern
3854 */
3855 tSCC zSun_Bogus_IfdefList[] =
3856 "|hsfs/hsfs_spec.h|hsfs/iso_spec.h|";
3857 /*
3858 * Machine/OS name selection pattern
3859 */
3860 #define apzSun_Bogus_IfdefMachs (const char**)NULL
3861
3862 /*
3863 * content selection pattern - do fix if pattern found
3864 */
3865 tSCC zSun_Bogus_IfdefSelect0[] =
3866 "#ifdef(.*\\|\\|.*)";
3867
3868 #define SUN_BOGUS_IFDEF_TEST_CT 1
3869 static tTestDesc aSun_Bogus_IfdefTests[] = {
3870 { TT_EGREP, zSun_Bogus_IfdefSelect0, (regex_t*)NULL }, };
3871
3872 /*
3873 * Fix Command Arguments for Sun_Bogus_Ifdef
3874 */
3875 static const char* apzSun_Bogus_IfdefPatch[] = {
3876 "format",
3877 "#if%1",
3878 (char*)NULL };
3879
3880 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3881 *
3882 * Description of Sun_Catmacro fix
3883 */
3884 tSCC zSun_CatmacroName[] =
3885 "sun_catmacro";
3886
3887 /*
3888 * File name selection pattern
3889 */
3890 tSCC zSun_CatmacroList[] =
3891 "|pixrect/memvar.h|";
3892 /*
3893 * Machine/OS name selection pattern
3894 */
3895 #define apzSun_CatmacroMachs (const char**)NULL
3896
3897 /*
3898 * content selection pattern - do fix if pattern found
3899 */
3900 tSCC zSun_CatmacroSelect0[] =
3901 "^#define[ \t]+CAT\\(a,b\\).*";
3902
3903 #define SUN_CATMACRO_TEST_CT 1
3904 static tTestDesc aSun_CatmacroTests[] = {
3905 { TT_EGREP, zSun_CatmacroSelect0, (regex_t*)NULL }, };
3906
3907 /*
3908 * Fix Command Arguments for Sun_Catmacro
3909 */
3910 static const char* apzSun_CatmacroPatch[] = {
3911 "format",
3912 "#ifdef __STDC__\n\
3913 # define CAT(a,b) a##b\n\
3914 #else\n\
3915 %0\n\
3916 #endif",
3917 (char*)NULL };
3918
3919 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3920 *
3921 * Description of Sun_Malloc fix
3922 */
3923 tSCC zSun_MallocName[] =
3924 "sun_malloc";
3925
3926 /*
3927 * File name selection pattern
3928 */
3929 tSCC zSun_MallocList[] =
3930 "|malloc.h|";
3931 /*
3932 * Machine/OS name selection pattern
3933 */
3934 #define apzSun_MallocMachs (const char**)NULL
3935 #define SUN_MALLOC_TEST_CT 0
3936 #define aSun_MallocTests (tTestDesc*)NULL
3937
3938 /*
3939 * Fix Command Arguments for Sun_Malloc
3940 */
3941 static const char* apzSun_MallocPatch[] = { "sed",
3942 "-e", "s/typedef[ \t]char \\*\tmalloc_t/typedef void \\*\tmalloc_t/g",
3943 "-e", "s/int[ \t][ \t]*free/void\tfree/g",
3944 "-e", "s/char\\([ \t]*\\*[ \t]*malloc\\)/void\\1/g",
3945 "-e", "s/char\\([ \t]*\\*[ \t]*realloc\\)/void\\1/g",
3946 "-e", "s/char\\([ \t]*\\*[ \t]*calloc\\)/void\\1/g",
3947 (char*)NULL };
3948
3949 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3950 *
3951 * Description of Sun_Rusers_Semi fix
3952 */
3953 tSCC zSun_Rusers_SemiName[] =
3954 "sun_rusers_semi";
3955
3956 /*
3957 * File name selection pattern
3958 */
3959 tSCC zSun_Rusers_SemiList[] =
3960 "|rpcsvc/rusers.h|";
3961 /*
3962 * Machine/OS name selection pattern
3963 */
3964 #define apzSun_Rusers_SemiMachs (const char**)NULL
3965
3966 /*
3967 * content selection pattern - do fix if pattern found
3968 */
3969 tSCC zSun_Rusers_SemiSelect0[] =
3970 "_cnt$";
3971
3972 #define SUN_RUSERS_SEMI_TEST_CT 1
3973 static tTestDesc aSun_Rusers_SemiTests[] = {
3974 { TT_EGREP, zSun_Rusers_SemiSelect0, (regex_t*)NULL }, };
3975
3976 /*
3977 * Fix Command Arguments for Sun_Rusers_Semi
3978 */
3979 static const char* apzSun_Rusers_SemiPatch[] = { "sed",
3980 "-e", "/^struct/,/^};/s/_cnt$/_cnt;/",
3981 (char*)NULL };
3982
3983 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3984 *
3985 * Description of Sun_Signal fix
3986 */
3987 tSCC zSun_SignalName[] =
3988 "sun_signal";
3989
3990 /*
3991 * File name selection pattern
3992 */
3993 tSCC zSun_SignalList[] =
3994 "|sys/signal.h|signal.h|";
3995 /*
3996 * Machine/OS name selection pattern
3997 */
3998 #define apzSun_SignalMachs (const char**)NULL
3999
4000 /*
4001 * content selection pattern - do fix if pattern found
4002 */
4003 tSCC zSun_SignalSelect0[] =
4004 "^void\t\\(\\*signal\\(\\)\\)\\(\\);.*";
4005
4006 #define SUN_SIGNAL_TEST_CT 1
4007 static tTestDesc aSun_SignalTests[] = {
4008 { TT_EGREP, zSun_SignalSelect0, (regex_t*)NULL }, };
4009
4010 /*
4011 * Fix Command Arguments for Sun_Signal
4012 */
4013 static const char* apzSun_SignalPatch[] = {
4014 "format",
4015 "#ifdef __cplusplus\n\
4016 void\t(*signal(...))(...);\n\
4017 #else\n\
4018 %0\n\
4019 #endif",
4020 (char*)NULL };
4021
4022 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4023 *
4024 * Description of Sunos_Matherr_Decl fix
4025 */
4026 tSCC zSunos_Matherr_DeclName[] =
4027 "sunos_matherr_decl";
4028
4029 /*
4030 * File name selection pattern
4031 */
4032 tSCC zSunos_Matherr_DeclList[] =
4033 "|math.h|";
4034 /*
4035 * Machine/OS name selection pattern
4036 */
4037 #define apzSunos_Matherr_DeclMachs (const char**)NULL
4038
4039 /*
4040 * content selection pattern - do fix if pattern found
4041 */
4042 tSCC zSunos_Matherr_DeclSelect0[] =
4043 "matherr";
4044
4045 /*
4046 * content bypass pattern - skip fix if pattern found
4047 */
4048 tSCC zSunos_Matherr_DeclBypass0[] =
4049 "matherr.*(struct exception|__MATH_EXCEPTION)";
4050
4051 #define SUNOS_MATHERR_DECL_TEST_CT 2
4052 static tTestDesc aSunos_Matherr_DeclTests[] = {
4053 { TT_NEGREP, zSunos_Matherr_DeclBypass0, (regex_t*)NULL },
4054 { TT_EGREP, zSunos_Matherr_DeclSelect0, (regex_t*)NULL }, };
4055
4056 /*
4057 * Fix Command Arguments for Sunos_Matherr_Decl
4058 */
4059 static const char* apzSunos_Matherr_DeclPatch[] = {
4060 "wrap",
4061 "struct exception;\n",
4062 (char*)NULL };
4063
4064 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4065 *
4066 * Description of Sunos_Strlen fix
4067 */
4068 tSCC zSunos_StrlenName[] =
4069 "sunos_strlen";
4070
4071 /*
4072 * File name selection pattern
4073 */
4074 tSCC zSunos_StrlenList[] =
4075 "|strings.h|";
4076 /*
4077 * Machine/OS name selection pattern
4078 */
4079 #define apzSunos_StrlenMachs (const char**)NULL
4080
4081 /*
4082 * content selection pattern - do fix if pattern found
4083 */
4084 tSCC zSunos_StrlenSelect0[] =
4085 "int[ \t]*strlen\\(\\);(.*)";
4086
4087 #define SUNOS_STRLEN_TEST_CT 1
4088 static tTestDesc aSunos_StrlenTests[] = {
4089 { TT_EGREP, zSunos_StrlenSelect0, (regex_t*)NULL }, };
4090
4091 /*
4092 * Fix Command Arguments for Sunos_Strlen
4093 */
4094 static const char* apzSunos_StrlenPatch[] = {
4095 "format",
4096 "__SIZE_TYPE__ strlen();%1",
4097 (char*)NULL };
4098
4099 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4100 *
4101 * Description of Svr4__P fix
4102 */
4103 tSCC zSvr4__PName[] =
4104 "svr4__p";
4105
4106 /*
4107 * File name selection pattern
4108 */
4109 tSCC zSvr4__PList[] =
4110 "|math.h|floatingpoint.h|";
4111 /*
4112 * Machine/OS name selection pattern
4113 */
4114 #define apzSvr4__PMachs (const char**)NULL
4115
4116 /*
4117 * content selection pattern - do fix if pattern found
4118 */
4119 tSCC zSvr4__PSelect0[] =
4120 "^#define[ \t]+__P.*";
4121
4122 #define SVR4__P_TEST_CT 1
4123 static tTestDesc aSvr4__PTests[] = {
4124 { TT_EGREP, zSvr4__PSelect0, (regex_t*)NULL }, };
4125
4126 /*
4127 * Fix Command Arguments for Svr4__P
4128 */
4129 static const char* apzSvr4__PPatch[] = {
4130 "format",
4131 "#ifndef __P\n\
4132 %0\n\
4133 #endif",
4134 (char*)NULL };
4135
4136 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4137 *
4138 * Description of Svr4_Getcwd fix
4139 */
4140 tSCC zSvr4_GetcwdName[] =
4141 "svr4_getcwd";
4142
4143 /*
4144 * File name selection pattern
4145 */
4146 tSCC zSvr4_GetcwdList[] =
4147 "|stdlib.h|unistd.h|prototypes.h|";
4148 /*
4149 * Machine/OS name selection pattern
4150 */
4151 #define apzSvr4_GetcwdMachs (const char**)NULL
4152
4153 /*
4154 * content selection pattern - do fix if pattern found
4155 */
4156 tSCC zSvr4_GetcwdSelect0[] =
4157 "getcwd\\(char \\*, int\\)";
4158
4159 #define SVR4_GETCWD_TEST_CT 1
4160 static tTestDesc aSvr4_GetcwdTests[] = {
4161 { TT_EGREP, zSvr4_GetcwdSelect0, (regex_t*)NULL }, };
4162
4163 /*
4164 * Fix Command Arguments for Svr4_Getcwd
4165 */
4166 static const char* apzSvr4_GetcwdPatch[] = {
4167 "format",
4168 "getcwd(char *, size_t)",
4169 (char*)NULL };
4170
4171 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4172 *
4173 * Description of Svr4_Profil fix
4174 */
4175 tSCC zSvr4_ProfilName[] =
4176 "svr4_profil";
4177
4178 /*
4179 * File name selection pattern
4180 */
4181 tSCC zSvr4_ProfilList[] =
4182 "|stdlib.h|unistd.h|";
4183 /*
4184 * Machine/OS name selection pattern
4185 */
4186 #define apzSvr4_ProfilMachs (const char**)NULL
4187
4188 /*
4189 * content selection pattern - do fix if pattern found
4190 */
4191 tSCC zSvr4_ProfilSelect0[] =
4192 "profil\\(unsigned short \\*, unsigned int, unsigned int, unsigned int\\)";
4193
4194 #define SVR4_PROFIL_TEST_CT 1
4195 static tTestDesc aSvr4_ProfilTests[] = {
4196 { TT_EGREP, zSvr4_ProfilSelect0, (regex_t*)NULL }, };
4197
4198 /*
4199 * Fix Command Arguments for Svr4_Profil
4200 */
4201 static const char* apzSvr4_ProfilPatch[] = {
4202 "format",
4203 "profil(unsigned short *, size_t, int, unsigned int)",
4204 (char*)NULL };
4205
4206 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4207 *
4208 * Description of Sysv68_String fix
4209 */
4210 tSCC zSysv68_StringName[] =
4211 "sysv68_string";
4212
4213 /*
4214 * File name selection pattern
4215 */
4216 tSCC zSysv68_StringList[] =
4217 "|testing.h|string.h|";
4218 /*
4219 * Machine/OS name selection pattern
4220 */
4221 #define apzSysv68_StringMachs (const char**)NULL
4222 #define SYSV68_STRING_TEST_CT 0
4223 #define aSysv68_StringTests (tTestDesc*)NULL
4224
4225 /*
4226 * Fix Command Arguments for Sysv68_String
4227 */
4228 static const char* apzSysv68_StringPatch[] = { "sed",
4229 "-e", "s/extern[ \t]*int[ \t]*strlen();/extern unsigned int strlen();/",
4230 "-e", "s/extern[ \t]*int[ \t]*ffs[ \t]*(long);/extern int ffs(int);/",
4231 "-e", "s/strdup(char \\*s1);/strdup(const char *s1);/",
4232 "-e", "/^extern char$/N",
4233 "-e", "s/^extern char\\(\\n\t\\*memccpy(),\\)$/extern void\\1/",
4234 "-e", "/^extern int$/N",
4235 "-e", "s/^extern int\\(\\n\tstrlen(),\\)/extern size_t\\1/",
4236 "-e", "/^\tstrncmp(),$/N",
4237 "-e", "s/^\\(\tstrncmp()\\),\\n\\(\tstrlen(),\\)$/\\1;\\\n\
4238 extern unsigned int\\\n\
4239 \\2/",
4240 (char*)NULL };
4241
4242 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4243 *
4244 * Description of Sysz_Stdlib_For_Sun fix
4245 */
4246 tSCC zSysz_Stdlib_For_SunName[] =
4247 "sysz_stdlib_for_sun";
4248
4249 /*
4250 * File name selection pattern
4251 */
4252 tSCC zSysz_Stdlib_For_SunList[] =
4253 "|stdlib.h|";
4254 /*
4255 * Machine/OS name selection pattern
4256 */
4257 #define apzSysz_Stdlib_For_SunMachs (const char**)NULL
4258
4259 /*
4260 * content selection pattern - do fix if pattern found
4261 */
4262 tSCC zSysz_Stdlib_For_SunSelect0[] =
4263 "char[ \t]*\\*[ \t]*(calloc|malloc|realloc|bsearch)[ \t]*\\(";
4264
4265 #define SYSZ_STDLIB_FOR_SUN_TEST_CT 1
4266 static tTestDesc aSysz_Stdlib_For_SunTests[] = {
4267 { TT_EGREP, zSysz_Stdlib_For_SunSelect0, (regex_t*)NULL }, };
4268
4269 /*
4270 * Fix Command Arguments for Sysz_Stdlib_For_Sun
4271 */
4272 static const char* apzSysz_Stdlib_For_SunPatch[] = {
4273 "format",
4274 "void *\t%1(",
4275 (char*)NULL };
4276
4277 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4278 *
4279 * Description of Thread_Keyword fix
4280 */
4281 tSCC zThread_KeywordName[] =
4282 "thread_keyword";
4283
4284 /*
4285 * File name selection pattern
4286 */
4287 tSCC zThread_KeywordList[] =
4288 "|pthread.h|bits/sigthread.h|";
4289 /*
4290 * Machine/OS name selection pattern
4291 */
4292 #define apzThread_KeywordMachs (const char**)NULL
4293
4294 /*
4295 * content selection pattern - do fix if pattern found
4296 */
4297 tSCC zThread_KeywordSelect0[] =
4298 "([* ])__thread([,)])";
4299
4300 #define THREAD_KEYWORD_TEST_CT 1
4301 static tTestDesc aThread_KeywordTests[] = {
4302 { TT_EGREP, zThread_KeywordSelect0, (regex_t*)NULL }, };
4303
4304 /*
4305 * Fix Command Arguments for Thread_Keyword
4306 */
4307 static const char* apzThread_KeywordPatch[] = {
4308 "format",
4309 "%1__thr%2",
4310 (char*)NULL };
4311
4312 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4313 *
4314 * Description of Tinfo_Cplusplus fix
4315 */
4316 tSCC zTinfo_CplusplusName[] =
4317 "tinfo_cplusplus";
4318
4319 /*
4320 * File name selection pattern
4321 */
4322 tSCC zTinfo_CplusplusList[] =
4323 "|tinfo.h|";
4324 /*
4325 * Machine/OS name selection pattern
4326 */
4327 #define apzTinfo_CplusplusMachs (const char**)NULL
4328
4329 /*
4330 * content selection pattern - do fix if pattern found
4331 */
4332 tSCC zTinfo_CplusplusSelect0[] =
4333 "[ \t]_cplusplus";
4334
4335 #define TINFO_CPLUSPLUS_TEST_CT 1
4336 static tTestDesc aTinfo_CplusplusTests[] = {
4337 { TT_EGREP, zTinfo_CplusplusSelect0, (regex_t*)NULL }, };
4338
4339 /*
4340 * Fix Command Arguments for Tinfo_Cplusplus
4341 */
4342 static const char* apzTinfo_CplusplusPatch[] = {
4343 "format",
4344 " __cplusplus",
4345 (char*)NULL };
4346
4347 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4348 *
4349 * Description of Ultrix_Atexit_Param fix
4350 */
4351 tSCC zUltrix_Atexit_ParamName[] =
4352 "ultrix_atexit_param";
4353
4354 /*
4355 * File name selection pattern
4356 */
4357 tSCC zUltrix_Atexit_ParamList[] =
4358 "|stdlib.h|";
4359 /*
4360 * Machine/OS name selection pattern
4361 */
4362 #define apzUltrix_Atexit_ParamMachs (const char**)NULL
4363
4364 /*
4365 * content selection pattern - do fix if pattern found
4366 */
4367 tSCC zUltrix_Atexit_ParamSelect0[] =
4368 "atexit\\(.*\\(\\)";
4369
4370 #define ULTRIX_ATEXIT_PARAM_TEST_CT 1
4371 static tTestDesc aUltrix_Atexit_ParamTests[] = {
4372 { TT_EGREP, zUltrix_Atexit_ParamSelect0, (regex_t*)NULL }, };
4373
4374 /*
4375 * Fix Command Arguments for Ultrix_Atexit_Param
4376 */
4377 static const char* apzUltrix_Atexit_ParamPatch[] = {
4378 "format",
4379 "atexit( void (*__func)( void )",
4380 (char*)NULL };
4381
4382 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4383 *
4384 * Description of Ultrix_Atof_Param fix
4385 */
4386 tSCC zUltrix_Atof_ParamName[] =
4387 "ultrix_atof_param";
4388
4389 /*
4390 * File name selection pattern
4391 */
4392 tSCC zUltrix_Atof_ParamList[] =
4393 "|math.h|";
4394 /*
4395 * Machine/OS name selection pattern
4396 */
4397 #define apzUltrix_Atof_ParamMachs (const char**)NULL
4398
4399 /*
4400 * content selection pattern - do fix if pattern found
4401 */
4402 tSCC zUltrix_Atof_ParamSelect0[] =
4403 "atof\\([ \t]*char";
4404
4405 #define ULTRIX_ATOF_PARAM_TEST_CT 1
4406 static tTestDesc aUltrix_Atof_ParamTests[] = {
4407 { TT_EGREP, zUltrix_Atof_ParamSelect0, (regex_t*)NULL }, };
4408
4409 /*
4410 * Fix Command Arguments for Ultrix_Atof_Param
4411 */
4412 static const char* apzUltrix_Atof_ParamPatch[] = {
4413 "format",
4414 "atof(const char",
4415 (char*)NULL };
4416
4417 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4418 *
4419 * Description of Ultrix_Const fix
4420 */
4421 tSCC zUltrix_ConstName[] =
4422 "ultrix_const";
4423
4424 /*
4425 * File name selection pattern
4426 */
4427 tSCC zUltrix_ConstList[] =
4428 "|stdio.h|";
4429 /*
4430 * Machine/OS name selection pattern
4431 */
4432 #define apzUltrix_ConstMachs (const char**)NULL
4433
4434 /*
4435 * content selection pattern - do fix if pattern found
4436 */
4437 tSCC zUltrix_ConstSelect0[] =
4438 "perror\\( char \\*";
4439
4440 #define ULTRIX_CONST_TEST_CT 1
4441 static tTestDesc aUltrix_ConstTests[] = {
4442 { TT_EGREP, zUltrix_ConstSelect0, (regex_t*)NULL }, };
4443
4444 /*
4445 * Fix Command Arguments for Ultrix_Const
4446 */
4447 static const char* apzUltrix_ConstPatch[] = {
4448 "format",
4449 "%1 const %3 *__",
4450 "([ \t*](perror|fputs|fwrite|scanf|fscanf)\\(.*)[ \t]+(char|void) \\*__",
4451 (char*)NULL };
4452
4453 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4454 *
4455 * Description of Ultrix_Const2 fix
4456 */
4457 tSCC zUltrix_Const2Name[] =
4458 "ultrix_const2";
4459
4460 /*
4461 * File name selection pattern
4462 */
4463 tSCC zUltrix_Const2List[] =
4464 "|stdio.h|";
4465 /*
4466 * Machine/OS name selection pattern
4467 */
4468 #define apzUltrix_Const2Machs (const char**)NULL
4469
4470 /*
4471 * content selection pattern - do fix if pattern found
4472 */
4473 tSCC zUltrix_Const2Select0[] =
4474 "\\*fopen\\( char \\*";
4475
4476 #define ULTRIX_CONST2_TEST_CT 1
4477 static tTestDesc aUltrix_Const2Tests[] = {
4478 { TT_EGREP, zUltrix_Const2Select0, (regex_t*)NULL }, };
4479
4480 /*
4481 * Fix Command Arguments for Ultrix_Const2
4482 */
4483 static const char* apzUltrix_Const2Patch[] = {
4484 "format",
4485 "%1( const char *%3, const char *",
4486 "([ \t*](fopen|sscanf|popen|tempnam))\\([ \t]*char[ \t]*\\*([^,]*),[ \t]*char[ \t]*\\*[ \t]*",
4487 (char*)NULL };
4488
4489 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4490 *
4491 * Description of Ultrix_Fix_Fixproto fix
4492 */
4493 tSCC zUltrix_Fix_FixprotoName[] =
4494 "ultrix_fix_fixproto";
4495
4496 /*
4497 * File name selection pattern
4498 */
4499 tSCC zUltrix_Fix_FixprotoList[] =
4500 "|sys/utsname.h|";
4501 /*
4502 * Machine/OS name selection pattern
4503 */
4504 #define apzUltrix_Fix_FixprotoMachs (const char**)NULL
4505
4506 /*
4507 * content selection pattern - do fix if pattern found
4508 */
4509 tSCC zUltrix_Fix_FixprotoSelect0[] =
4510 "ULTRIX";
4511
4512 #define ULTRIX_FIX_FIXPROTO_TEST_CT 1
4513 static tTestDesc aUltrix_Fix_FixprotoTests[] = {
4514 { TT_EGREP, zUltrix_Fix_FixprotoSelect0, (regex_t*)NULL }, };
4515
4516 /*
4517 * Fix Command Arguments for Ultrix_Fix_Fixproto
4518 */
4519 static const char* apzUltrix_Fix_FixprotoPatch[] = {
4520 "format",
4521 "struct utsname;\n\
4522 %0",
4523 "^[ \t]*extern[ \t]*int[ \t]*uname\\(\\);",
4524 (char*)NULL };
4525
4526 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4527 *
4528 * Description of Ultrix_Ifdef fix
4529 */
4530 tSCC zUltrix_IfdefName[] =
4531 "ultrix_ifdef";
4532
4533 /*
4534 * File name selection pattern
4535 */
4536 tSCC zUltrix_IfdefList[] =
4537 "|sys/file.h|";
4538 /*
4539 * Machine/OS name selection pattern
4540 */
4541 #define apzUltrix_IfdefMachs (const char**)NULL
4542
4543 /*
4544 * content selection pattern - do fix if pattern found
4545 */
4546 tSCC zUltrix_IfdefSelect0[] =
4547 "^#ifdef KERNEL[ \t]+&&";
4548
4549 #define ULTRIX_IFDEF_TEST_CT 1
4550 static tTestDesc aUltrix_IfdefTests[] = {
4551 { TT_EGREP, zUltrix_IfdefSelect0, (regex_t*)NULL }, };
4552
4553 /*
4554 * Fix Command Arguments for Ultrix_Ifdef
4555 */
4556 static const char* apzUltrix_IfdefPatch[] = {
4557 "format",
4558 "#if defined(KERNEL) &&",
4559 (char*)NULL };
4560
4561 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4562 *
4563 * Description of Ultrix_Math_Ifdef fix
4564 */
4565 tSCC zUltrix_Math_IfdefName[] =
4566 "ultrix_math_ifdef";
4567
4568 /*
4569 * File name selection pattern
4570 */
4571 tSCC zUltrix_Math_IfdefList[] =
4572 "|sys/limits.h|float.h|math.h|";
4573 /*
4574 * Machine/OS name selection pattern
4575 */
4576 #define apzUltrix_Math_IfdefMachs (const char**)NULL
4577
4578 /*
4579 * content selection pattern - do fix if pattern found
4580 */
4581 tSCC zUltrix_Math_IfdefSelect0[] =
4582 "^(#if.*)\\|\\|[ \t]+CC\\$[a-z]+";
4583
4584 #define ULTRIX_MATH_IFDEF_TEST_CT 1
4585 static tTestDesc aUltrix_Math_IfdefTests[] = {
4586 { TT_EGREP, zUltrix_Math_IfdefSelect0, (regex_t*)NULL }, };
4587
4588 /*
4589 * Fix Command Arguments for Ultrix_Math_Ifdef
4590 */
4591 static const char* apzUltrix_Math_IfdefPatch[] = {
4592 "format",
4593 "%1",
4594 (char*)NULL };
4595
4596 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4597 *
4598 * Description of Ultrix_Nested_Ioctl fix
4599 */
4600 tSCC zUltrix_Nested_IoctlName[] =
4601 "ultrix_nested_ioctl";
4602
4603 /*
4604 * File name selection pattern
4605 */
4606 tSCC zUltrix_Nested_IoctlList[] =
4607 "|sys/ioctl.h|";
4608 /*
4609 * Machine/OS name selection pattern
4610 */
4611 #define apzUltrix_Nested_IoctlMachs (const char**)NULL
4612
4613 /*
4614 * content selection pattern - do fix if pattern found
4615 */
4616 tSCC zUltrix_Nested_IoctlSelect0[] =
4617 "^/\\* #define SIOCSCREEN";
4618
4619 #define ULTRIX_NESTED_IOCTL_TEST_CT 1
4620 static tTestDesc aUltrix_Nested_IoctlTests[] = {
4621 { TT_EGREP, zUltrix_Nested_IoctlSelect0, (regex_t*)NULL }, };
4622
4623 /*
4624 * Fix Command Arguments for Ultrix_Nested_Ioctl
4625 */
4626 static const char* apzUltrix_Nested_IoctlPatch[] = { "sed",
4627 "-e", "/^\\/\\* #define SIOCSCREEN/s@/\\* screend@*//* screend@",
4628 (char*)NULL };
4629
4630 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4631 *
4632 * Description of Ultrix_Nested_Svc fix
4633 */
4634 tSCC zUltrix_Nested_SvcName[] =
4635 "ultrix_nested_svc";
4636
4637 /*
4638 * File name selection pattern
4639 */
4640 tSCC zUltrix_Nested_SvcList[] =
4641 "|rpc/svc.h|";
4642 /*
4643 * Machine/OS name selection pattern
4644 */
4645 #define apzUltrix_Nested_SvcMachs (const char**)NULL
4646
4647 /*
4648 * content selection pattern - do fix if pattern found
4649 */
4650 tSCC zUltrix_Nested_SvcSelect0[] =
4651 "^ \\*[ \t]*int protocol; */\\*";
4652
4653 #define ULTRIX_NESTED_SVC_TEST_CT 1
4654 static tTestDesc aUltrix_Nested_SvcTests[] = {
4655 { TT_EGREP, zUltrix_Nested_SvcSelect0, (regex_t*)NULL }, };
4656
4657 /*
4658 * Fix Command Arguments for Ultrix_Nested_Svc
4659 */
4660 static const char* apzUltrix_Nested_SvcPatch[] = { "sed",
4661 "-e", "s@^\\( \\*\tint protocol; \\)/\\*@\\1*/ /*@",
4662 (char*)NULL };
4663
4664 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4665 *
4666 * Description of Ultrix_Stat fix
4667 */
4668 tSCC zUltrix_StatName[] =
4669 "ultrix_stat";
4670
4671 /*
4672 * File name selection pattern
4673 */
4674 tSCC zUltrix_StatList[] =
4675 "|sys/stat.h|";
4676 /*
4677 * Machine/OS name selection pattern
4678 */
4679 #define apzUltrix_StatMachs (const char**)NULL
4680
4681 /*
4682 * content selection pattern - do fix if pattern found
4683 */
4684 tSCC zUltrix_StatSelect0[] =
4685 "@\\(#\\)stat\\.h.*6\\.1.*\\(ULTRIX\\)";
4686
4687 #define ULTRIX_STAT_TEST_CT 1
4688 static tTestDesc aUltrix_StatTests[] = {
4689 { TT_EGREP, zUltrix_StatSelect0, (regex_t*)NULL }, };
4690
4691 /*
4692 * Fix Command Arguments for Ultrix_Stat
4693 */
4694 static const char* apzUltrix_StatPatch[] = { "sed",
4695 "-e", "/^#define[ \t]S_IFPORT[ \t]*S_IFIFO$/a\\\n\
4696 \\\n\
4697 /* macro to test for symbolic link */\\\n\
4698 #define S_ISLNK(mode) (((mode) & S_IFMT) == S_IFLNK)\\\n\n",
4699 "-e", "/^[ \t]*fstat(),$/a\\\n\
4700 \tlstat(),\n",
4701 (char*)NULL };
4702
4703 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4704 *
4705 * Description of Ultrix_Static fix
4706 */
4707 tSCC zUltrix_StaticName[] =
4708 "ultrix_static";
4709
4710 /*
4711 * File name selection pattern
4712 */
4713 tSCC zUltrix_StaticList[] =
4714 "|machine/cpu.h|";
4715 /*
4716 * Machine/OS name selection pattern
4717 */
4718 #define apzUltrix_StaticMachs (const char**)NULL
4719
4720 /*
4721 * content selection pattern - do fix if pattern found
4722 */
4723 tSCC zUltrix_StaticSelect0[] =
4724 "#include \"r[34]_cpu";
4725
4726 #define ULTRIX_STATIC_TEST_CT 1
4727 static tTestDesc aUltrix_StaticTests[] = {
4728 { TT_EGREP, zUltrix_StaticSelect0, (regex_t*)NULL }, };
4729
4730 /*
4731 * Fix Command Arguments for Ultrix_Static
4732 */
4733 static const char* apzUltrix_StaticPatch[] = { "sed",
4734 "-e", "s/^static struct tlb_pid_state/struct tlb_pid_state/",
4735 "-e", "s/^#include \"r3_cpu\\.h\"$/#include <machine\\/r3_cpu\\.h>/",
4736 "-e", "s/^#include \"r4_cpu\\.h\"$/#include <machine\\/r4_cpu\\.h>/",
4737 (char*)NULL };
4738
4739 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4740 *
4741 * Description of Ultrix_Strings fix
4742 */
4743 tSCC zUltrix_StringsName[] =
4744 "ultrix_strings";
4745
4746 /*
4747 * File name selection pattern
4748 */
4749 tSCC zUltrix_StringsList[] =
4750 "|strings.h|";
4751 /*
4752 * Machine/OS name selection pattern
4753 */
4754 #define apzUltrix_StringsMachs (const char**)NULL
4755
4756 /*
4757 * content selection pattern - do fix if pattern found
4758 */
4759 tSCC zUltrix_StringsSelect0[] =
4760 "@\\(#\\)strings\\.h.*6\\.1.*\\(ULTRIX\\)";
4761
4762 #define ULTRIX_STRINGS_TEST_CT 1
4763 static tTestDesc aUltrix_StringsTests[] = {
4764 { TT_EGREP, zUltrix_StringsSelect0, (regex_t*)NULL }, };
4765
4766 /*
4767 * Fix Command Arguments for Ultrix_Strings
4768 */
4769 static const char* apzUltrix_StringsPatch[] = {
4770 "wrap",
4771 (char*)NULL };
4772
4773 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4774 *
4775 * Description of Undefine_Null fix
4776 */
4777 tSCC zUndefine_NullName[] =
4778 "undefine_null";
4779
4780 /*
4781 * File name selection pattern
4782 */
4783 #define zUndefine_NullList (char*)NULL
4784 /*
4785 * Machine/OS name selection pattern
4786 */
4787 #define apzUndefine_NullMachs (const char**)NULL
4788
4789 /*
4790 * content selection pattern - do fix if pattern found
4791 */
4792 tSCC zUndefine_NullSelect0[] =
4793 "^#[ \t]*define[ \t]+NULL[ \t]";
4794
4795 /*
4796 * content bypass pattern - skip fix if pattern found
4797 */
4798 tSCC zUndefine_NullBypass0[] =
4799 "#[ \t]*(ifn|un)def[ \t]+NULL($|[ \t\r])";
4800
4801 #define UNDEFINE_NULL_TEST_CT 2
4802 static tTestDesc aUndefine_NullTests[] = {
4803 { TT_NEGREP, zUndefine_NullBypass0, (regex_t*)NULL },
4804 { TT_EGREP, zUndefine_NullSelect0, (regex_t*)NULL }, };
4805
4806 /*
4807 * Fix Command Arguments for Undefine_Null
4808 */
4809 static const char* apzUndefine_NullPatch[] = {
4810 "format",
4811 "#ifndef NULL%2\n\
4812 #define NULL%1%2\n\
4813 #endif%2\n",
4814 "^#[ \t]*define[ \t]*[ \t]NULL([^\r\n\
4815 ]+)([\r]*)\n",
4816 (char*)NULL };
4817
4818 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4819 *
4820 * Description of Unicosmk_Restrict fix
4821 */
4822 tSCC zUnicosmk_RestrictName[] =
4823 "unicosmk_restrict";
4824
4825 /*
4826 * File name selection pattern
4827 */
4828 tSCC zUnicosmk_RestrictList[] =
4829 "|stdio.h|stdlib.h|wchar.h|";
4830 /*
4831 * Machine/OS name selection pattern
4832 */
4833 tSCC* apzUnicosmk_RestrictMachs[] = {
4834 "*-*-unicosmk*",
4835 (const char*)NULL };
4836
4837 /*
4838 * content selection pattern - do fix if pattern found
4839 */
4840 tSCC zUnicosmk_RestrictSelect0[] =
4841 "(\\*[ \t]*)restrict([ \t]+)";
4842
4843 #define UNICOSMK_RESTRICT_TEST_CT 1
4844 static tTestDesc aUnicosmk_RestrictTests[] = {
4845 { TT_EGREP, zUnicosmk_RestrictSelect0, (regex_t*)NULL }, };
4846
4847 /*
4848 * Fix Command Arguments for Unicosmk_Restrict
4849 */
4850 static const char* apzUnicosmk_RestrictPatch[] = {
4851 "format",
4852 "%1__restrict__%2",
4853 (char*)NULL };
4854
4855 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4856 *
4857 * Description of Uw7_Byteorder_Fix fix
4858 */
4859 tSCC zUw7_Byteorder_FixName[] =
4860 "uw7_byteorder_fix";
4861
4862 /*
4863 * File name selection pattern
4864 */
4865 tSCC zUw7_Byteorder_FixList[] =
4866 "|arpa/inet.h|";
4867 /*
4868 * Machine/OS name selection pattern
4869 */
4870 tSCC* apzUw7_Byteorder_FixMachs[] = {
4871 "*-*-sysv4*",
4872 "i?86-*-sysv5*",
4873 "i?86-*-udk*",
4874 "i?86-*-solaris2.[0-4]",
4875 "powerpcle-*-solaris2.[0-4]",
4876 "sparc-*-solaris2.[0-4]",
4877 (const char*)NULL };
4878
4879 /*
4880 * content selection pattern - do fix if pattern found
4881 */
4882 tSCC zUw7_Byteorder_FixSelect0[] =
4883 "in_port_t";
4884
4885 /*
4886 * perform the 'test' shell command - do fix on success
4887 */
4888 tSCC zUw7_Byteorder_FixTest0[] =
4889 "-f sys/byteorder.h";
4890
4891 #define UW7_BYTEORDER_FIX_TEST_CT 2
4892 static tTestDesc aUw7_Byteorder_FixTests[] = {
4893 { TT_TEST, zUw7_Byteorder_FixTest0, 0 /* unused */ },
4894 { TT_EGREP, zUw7_Byteorder_FixSelect0, (regex_t*)NULL }, };
4895
4896 /*
4897 * Fix Command Arguments for Uw7_Byteorder_Fix
4898 */
4899 static const char* apzUw7_Byteorder_FixPatch[] = {
4900 "format",
4901 "",
4902 "^extern.*[ \t](htons|ntohs).*\\(in_port_t\\).*;",
4903 (char*)NULL };
4904
4905 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4906 *
4907 * Description of Va_I960_Macro fix
4908 */
4909 tSCC zVa_I960_MacroName[] =
4910 "va_i960_macro";
4911
4912 /*
4913 * File name selection pattern
4914 */
4915 tSCC zVa_I960_MacroList[] =
4916 "|arch/i960/archI960.h|";
4917 /*
4918 * Machine/OS name selection pattern
4919 */
4920 #define apzVa_I960_MacroMachs (const char**)NULL
4921
4922 /*
4923 * content selection pattern - do fix if pattern found
4924 */
4925 tSCC zVa_I960_MacroSelect0[] =
4926 "__(vsiz|vali|vpad|alignof__)";
4927
4928 #define VA_I960_MACRO_TEST_CT 1
4929 static tTestDesc aVa_I960_MacroTests[] = {
4930 { TT_EGREP, zVa_I960_MacroSelect0, (regex_t*)NULL }, };
4931
4932 /*
4933 * Fix Command Arguments for Va_I960_Macro
4934 */
4935 static const char* apzVa_I960_MacroPatch[] = {
4936 "format",
4937 "__vx%1",
4938 (char*)NULL };
4939
4940 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4941 *
4942 * Description of Void_Null fix
4943 */
4944 tSCC zVoid_NullName[] =
4945 "void_null";
4946
4947 /*
4948 * File name selection pattern
4949 */
4950 tSCC zVoid_NullList[] =
4951 "|curses.h|dbm.h|locale.h|stdio.h|stdlib.h|string.h|time.h|unistd.h|sys/dir.h|sys/param.h|sys/types.h|";
4952 /*
4953 * Machine/OS name selection pattern
4954 */
4955 #define apzVoid_NullMachs (const char**)NULL
4956
4957 /*
4958 * content selection pattern - do fix if pattern found
4959 */
4960 tSCC zVoid_NullSelect0[] =
4961 "^#[ \t]*define[ \t]+NULL[ \t]+\\(\\(void[ \t]*\\*\\)0\\)";
4962
4963 #define VOID_NULL_TEST_CT 1
4964 static tTestDesc aVoid_NullTests[] = {
4965 { TT_EGREP, zVoid_NullSelect0, (regex_t*)NULL }, };
4966
4967 /*
4968 * Fix Command Arguments for Void_Null
4969 */
4970 static const char* apzVoid_NullPatch[] = {
4971 "format",
4972 "#define NULL 0",
4973 (char*)NULL };
4974
4975 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4976 *
4977 * Description of Vxworks_Gcc_Problem fix
4978 */
4979 tSCC zVxworks_Gcc_ProblemName[] =
4980 "vxworks_gcc_problem";
4981
4982 /*
4983 * File name selection pattern
4984 */
4985 tSCC zVxworks_Gcc_ProblemList[] =
4986 "|types/vxTypesBase.h|";
4987 /*
4988 * Machine/OS name selection pattern
4989 */
4990 #define apzVxworks_Gcc_ProblemMachs (const char**)NULL
4991
4992 /*
4993 * content selection pattern - do fix if pattern found
4994 */
4995 tSCC zVxworks_Gcc_ProblemSelect0[] =
4996 "__GNUC_TYPEOF_FEATURE_BROKEN_USE_DEFAULT_UNTIL_FIXED__";
4997
4998 #define VXWORKS_GCC_PROBLEM_TEST_CT 1
4999 static tTestDesc aVxworks_Gcc_ProblemTests[] = {
5000 { TT_EGREP, zVxworks_Gcc_ProblemSelect0, (regex_t*)NULL }, };
5001
5002 /*
5003 * Fix Command Arguments for Vxworks_Gcc_Problem
5004 */
5005 static const char* apzVxworks_Gcc_ProblemPatch[] = { "sed",
5006 "-e", "s/#ifdef __GNUC_TYPEOF_FEATURE_BROKEN_USE_DEFAULT_UNTIL_FIXED__/#if 1/",
5007 "-e", "/[ \t]size_t/i\\\n\
5008 #ifndef _GCC_SIZE_T\\\n\
5009 #define _GCC_SIZE_T\n",
5010 "-e", "/[ \t]size_t/a\\\n\
5011 #endif\n",
5012 "-e", "/[ \t]ptrdiff_t/i\\\n\
5013 #ifndef _GCC_PTRDIFF_T\\\n\
5014 #define _GCC_PTRDIFF_T\n",
5015 "-e", "/[ \t]ptrdiff_t/a\\\n\
5016 #endif\n",
5017 "-e", "/[ \t]wchar_t/i\\\n\
5018 #ifndef _GCC_WCHAR_T\\\n\
5019 #define _GCC_WCHAR_T\n",
5020 "-e", "/[ \t]wchar_t/a\\\n\
5021 #endif\n",
5022 (char*)NULL };
5023
5024 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5025 *
5026 * Description of Vxworks_Needs_Vxtypes fix
5027 */
5028 tSCC zVxworks_Needs_VxtypesName[] =
5029 "vxworks_needs_vxtypes";
5030
5031 /*
5032 * File name selection pattern
5033 */
5034 tSCC zVxworks_Needs_VxtypesList[] =
5035 "|time.h|";
5036 /*
5037 * Machine/OS name selection pattern
5038 */
5039 #define apzVxworks_Needs_VxtypesMachs (const char**)NULL
5040
5041 /*
5042 * content selection pattern - do fix if pattern found
5043 */
5044 tSCC zVxworks_Needs_VxtypesSelect0[] =
5045 "uint_t([ \t]+_clocks_per_sec)";
5046
5047 #define VXWORKS_NEEDS_VXTYPES_TEST_CT 1
5048 static tTestDesc aVxworks_Needs_VxtypesTests[] = {
5049 { TT_EGREP, zVxworks_Needs_VxtypesSelect0, (regex_t*)NULL }, };
5050
5051 /*
5052 * Fix Command Arguments for Vxworks_Needs_Vxtypes
5053 */
5054 static const char* apzVxworks_Needs_VxtypesPatch[] = {
5055 "format",
5056 "unsigned int%1",
5057 (char*)NULL };
5058
5059 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5060 *
5061 * Description of Vxworks_Needs_Vxworks fix
5062 */
5063 tSCC zVxworks_Needs_VxworksName[] =
5064 "vxworks_needs_vxworks";
5065
5066 /*
5067 * File name selection pattern
5068 */
5069 tSCC zVxworks_Needs_VxworksList[] =
5070 "|sys/stat.h|";
5071 /*
5072 * Machine/OS name selection pattern
5073 */
5074 #define apzVxworks_Needs_VxworksMachs (const char**)NULL
5075
5076 /*
5077 * content selection pattern - do fix if pattern found
5078 */
5079 tSCC zVxworks_Needs_VxworksSelect0[] =
5080 "#[ \t]define[ \t]+__INCstath";
5081
5082 /*
5083 * perform the 'test' shell command - do fix on success
5084 */
5085 tSCC zVxworks_Needs_VxworksTest0[] =
5086 " -r types/vxTypesOld.h";
5087 tSCC zVxworks_Needs_VxworksTest1[] =
5088 " -n \"`egrep '#include' $file`\"";
5089 tSCC zVxworks_Needs_VxworksTest2[] =
5090 " -n \"`egrep ULONG $file`\"";
5091
5092 #define VXWORKS_NEEDS_VXWORKS_TEST_CT 4
5093 static tTestDesc aVxworks_Needs_VxworksTests[] = {
5094 { TT_TEST, zVxworks_Needs_VxworksTest0, 0 /* unused */ },
5095 { TT_TEST, zVxworks_Needs_VxworksTest1, 0 /* unused */ },
5096 { TT_TEST, zVxworks_Needs_VxworksTest2, 0 /* unused */ },
5097 { TT_EGREP, zVxworks_Needs_VxworksSelect0, (regex_t*)NULL }, };
5098
5099 /*
5100 * Fix Command Arguments for Vxworks_Needs_Vxworks
5101 */
5102 static const char* apzVxworks_Needs_VxworksPatch[] = { "sed",
5103 "-e", "/#[ \t]define[ \t][ \t]*__INCstath/a\\\n\
5104 #include <types/vxTypesOld.h>\n",
5105 (char*)NULL };
5106
5107 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5108 *
5109 * Description of Vxworks_Time fix
5110 */
5111 tSCC zVxworks_TimeName[] =
5112 "vxworks_time";
5113
5114 /*
5115 * File name selection pattern
5116 */
5117 tSCC zVxworks_TimeList[] =
5118 "|time.h|";
5119 /*
5120 * Machine/OS name selection pattern
5121 */
5122 #define apzVxworks_TimeMachs (const char**)NULL
5123
5124 /*
5125 * content selection pattern - do fix if pattern found
5126 */
5127 tSCC zVxworks_TimeSelect0[] =
5128 "#[ \t]*define[ \t]+VOIDFUNCPTR[ \t].*";
5129
5130 /*
5131 * perform the 'test' shell command - do fix on success
5132 */
5133 tSCC zVxworks_TimeTest0[] =
5134 " -r vxWorks.h";
5135
5136 #define VXWORKS_TIME_TEST_CT 2
5137 static tTestDesc aVxworks_TimeTests[] = {
5138 { TT_TEST, zVxworks_TimeTest0, 0 /* unused */ },
5139 { TT_EGREP, zVxworks_TimeSelect0, (regex_t*)NULL }, };
5140
5141 /*
5142 * Fix Command Arguments for Vxworks_Time
5143 */
5144 static const char* apzVxworks_TimePatch[] = {
5145 "format",
5146 "#ifndef __gcc_VOIDFUNCPTR_defined\n\
5147 #ifdef __cplusplus\n\
5148 typedef void (*__gcc_VOIDFUNCPTR) (...);\n\
5149 #else\n\
5150 typedef void (*__gcc_VOIDFUNCPTR) ();\n\
5151 #endif\n\
5152 #define __gcc_VOIDFUNCPTR_defined\n\
5153 #endif\n\
5154 #define VOIDFUNCPTR __gcc_VOIDFUNCPTR",
5155 (char*)NULL };
5156
5157 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5158 *
5159 * Description of Windiss_Math1 fix
5160 */
5161 tSCC zWindiss_Math1Name[] =
5162 "windiss_math1";
5163
5164 /*
5165 * File name selection pattern
5166 */
5167 tSCC zWindiss_Math1List[] =
5168 "|math.h|";
5169 /*
5170 * Machine/OS name selection pattern
5171 */
5172 tSCC* apzWindiss_Math1Machs[] = {
5173 "*-*-windiss",
5174 (const char*)NULL };
5175 #define WINDISS_MATH1_TEST_CT 0
5176 #define aWindiss_Math1Tests (tTestDesc*)NULL
5177
5178 /*
5179 * Fix Command Arguments for Windiss_Math1
5180 */
5181 static const char* apzWindiss_Math1Patch[] = { "sed",
5182 "-e", "s|inline long double cosl.*|#ifndef __GNUC__|",
5183 (char*)NULL };
5184
5185 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5186 *
5187 * Description of Windiss_Math2 fix
5188 */
5189 tSCC zWindiss_Math2Name[] =
5190 "windiss_math2";
5191
5192 /*
5193 * File name selection pattern
5194 */
5195 tSCC zWindiss_Math2List[] =
5196 "|math.h|";
5197 /*
5198 * Machine/OS name selection pattern
5199 */
5200 tSCC* apzWindiss_Math2Machs[] = {
5201 "*-*-windiss",
5202 (const char*)NULL };
5203 #define WINDISS_MATH2_TEST_CT 0
5204 #define aWindiss_Math2Tests (tTestDesc*)NULL
5205
5206 /*
5207 * Fix Command Arguments for Windiss_Math2
5208 */
5209 static const char* apzWindiss_Math2Patch[] = { "sed",
5210 "-e", "s|/\\* long double declarations \\*/|#endif /* __GNUC__ */|",
5211 (char*)NULL };
5212
5213 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5214 *
5215 * Description of Windiss_Valist fix
5216 */
5217 tSCC zWindiss_ValistName[] =
5218 "windiss_valist";
5219
5220 /*
5221 * File name selection pattern
5222 */
5223 #define zWindiss_ValistList (char*)NULL
5224 /*
5225 * Machine/OS name selection pattern
5226 */
5227 tSCC* apzWindiss_ValistMachs[] = {
5228 "*-*-windiss",
5229 (const char*)NULL };
5230
5231 /*
5232 * content selection pattern - do fix if pattern found
5233 */
5234 tSCC zWindiss_ValistSelect0[] =
5235 "(#include.*)diab/va_list.h";
5236
5237 #define WINDISS_VALIST_TEST_CT 1
5238 static tTestDesc aWindiss_ValistTests[] = {
5239 { TT_EGREP, zWindiss_ValistSelect0, (regex_t*)NULL }, };
5240
5241 /*
5242 * Fix Command Arguments for Windiss_Valist
5243 */
5244 static const char* apzWindiss_ValistPatch[] = { "sed",
5245 "-e", "s|diab/va_list.h|stdarg.h|",
5246 (char*)NULL };
5247
5248 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5249 *
5250 * Description of X11_Class fix
5251 */
5252 tSCC zX11_ClassName[] =
5253 "x11_class";
5254
5255 /*
5256 * File name selection pattern
5257 */
5258 tSCC zX11_ClassList[] =
5259 "|X11/ShellP.h|";
5260 /*
5261 * Machine/OS name selection pattern
5262 */
5263 #define apzX11_ClassMachs (const char**)NULL
5264
5265 /*
5266 * content selection pattern - do fix if pattern found
5267 */
5268 tSCC zX11_ClassSelect0[] =
5269 "^([ \t]*char \\*)class;(.*)";
5270
5271 /*
5272 * content bypass pattern - skip fix if pattern found
5273 */
5274 tSCC zX11_ClassBypass0[] =
5275 "__cplusplus";
5276
5277 #define X11_CLASS_TEST_CT 2
5278 static tTestDesc aX11_ClassTests[] = {
5279 { TT_NEGREP, zX11_ClassBypass0, (regex_t*)NULL },
5280 { TT_EGREP, zX11_ClassSelect0, (regex_t*)NULL }, };
5281
5282 /*
5283 * Fix Command Arguments for X11_Class
5284 */
5285 static const char* apzX11_ClassPatch[] = {
5286 "format",
5287 "#ifdef __cplusplus\n\
5288 %1c_class;%2\n\
5289 #else\n\
5290 %1class;%2\n\
5291 #endif",
5292 (char*)NULL };
5293
5294 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5295 *
5296 * Description of X11_Class_Usage fix
5297 */
5298 tSCC zX11_Class_UsageName[] =
5299 "x11_class_usage";
5300
5301 /*
5302 * File name selection pattern
5303 */
5304 tSCC zX11_Class_UsageList[] =
5305 "|Xm/BaseClassI.h|";
5306 /*
5307 * Machine/OS name selection pattern
5308 */
5309 #define apzX11_Class_UsageMachs (const char**)NULL
5310
5311 /*
5312 * content selection pattern - do fix if pattern found
5313 */
5314 tSCC zX11_Class_UsageSelect0[] =
5315 " class\\)";
5316
5317 /*
5318 * content bypass pattern - skip fix if pattern found
5319 */
5320 tSCC zX11_Class_UsageBypass0[] =
5321 "__cplusplus";
5322
5323 #define X11_CLASS_USAGE_TEST_CT 2
5324 static tTestDesc aX11_Class_UsageTests[] = {
5325 { TT_NEGREP, zX11_Class_UsageBypass0, (regex_t*)NULL },
5326 { TT_EGREP, zX11_Class_UsageSelect0, (regex_t*)NULL }, };
5327
5328 /*
5329 * Fix Command Arguments for X11_Class_Usage
5330 */
5331 static const char* apzX11_Class_UsagePatch[] = {
5332 "format",
5333 " c_class)",
5334 (char*)NULL };
5335
5336 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5337 *
5338 * Description of X11_New fix
5339 */
5340 tSCC zX11_NewName[] =
5341 "x11_new";
5342
5343 /*
5344 * File name selection pattern
5345 */
5346 tSCC zX11_NewList[] =
5347 "|Xm/Traversal.h|";
5348 /*
5349 * Machine/OS name selection pattern
5350 */
5351 #define apzX11_NewMachs (const char**)NULL
5352
5353 /*
5354 * content bypass pattern - skip fix if pattern found
5355 */
5356 tSCC zX11_NewBypass0[] =
5357 "__cplusplus";
5358
5359 #define X11_NEW_TEST_CT 1
5360 static tTestDesc aX11_NewTests[] = {
5361 { TT_NEGREP, zX11_NewBypass0, (regex_t*)NULL }, };
5362
5363 /*
5364 * Fix Command Arguments for X11_New
5365 */
5366 static const char* apzX11_NewPatch[] = { "sed",
5367 "-e", "/Widget\told, new;/i\\\n\
5368 #ifdef __cplusplus\\\n\
5369 \tWidget\told, c_new;\\\n\
5370 #else\n",
5371 "-e", "/Widget\told, new;/a\\\n\
5372 #endif\n",
5373 "-e", "s/Widget new,/Widget c_new,/g",
5374 (char*)NULL };
5375
5376 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5377 *
5378 * Description of X11_Sprintf fix
5379 */
5380 tSCC zX11_SprintfName[] =
5381 "x11_sprintf";
5382
5383 /*
5384 * File name selection pattern
5385 */
5386 tSCC zX11_SprintfList[] =
5387 "|X11/Xmu.h|X11/Xmu/Xmu.h|";
5388 /*
5389 * Machine/OS name selection pattern
5390 */
5391 #define apzX11_SprintfMachs (const char**)NULL
5392
5393 /*
5394 * content selection pattern - do fix if pattern found
5395 */
5396 tSCC zX11_SprintfSelect0[] =
5397 "^extern char \\*\tsprintf\\(\\);$";
5398
5399 #define X11_SPRINTF_TEST_CT 1
5400 static tTestDesc aX11_SprintfTests[] = {
5401 { TT_EGREP, zX11_SprintfSelect0, (regex_t*)NULL }, };
5402
5403 /*
5404 * Fix Command Arguments for X11_Sprintf
5405 */
5406 static const char* apzX11_SprintfPatch[] = {
5407 "format",
5408 "#ifndef __STDC__\n\
5409 %0\n\
5410 #endif /* !defined __STDC__ */",
5411 (char*)NULL };
5412
5413
5414 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5415 *
5416 * List of all fixes
5417 */
5418 #define REGEX_COUNT 147
5419 #define MACH_LIST_SIZE_LIMIT 261
5420 #define FIX_COUNT 138
5421
5422 /*
5423 * Enumerate the fixes
5424 */
5425 typedef enum {
5426 AAB_FD_ZERO_ASM_POSIX_TYPES_H_FIXIDX,
5427 AAB_FD_ZERO_GNU_TYPES_H_FIXIDX,
5428 AAB_FD_ZERO_SELECTBITS_H_FIXIDX,
5429 AAB_SOLARIS_SYS_VARARGS_H_FIXIDX,
5430 AAB_SUN_MEMCPY_FIXIDX,
5431 AAB_ULTRIX_ANSI_COMPAT_FIXIDX,
5432 AAB_ULTRIX_LIMITS_FIXIDX,
5433 AAB_ULTRIX_MEMORY_FIXIDX,
5434 AAB_ULTRIX_STRING_FIXIDX,
5435 AIX_PTHREAD_FIXIDX,
5436 AIX_SYSMACHINE_FIXIDX,
5437 AIX_SYSWAIT_FIXIDX,
5438 AIX_VOLATILE_FIXIDX,
5439 ALPHA___ASSERT_FIXIDX,
5440 ALPHA_ASSERT_FIXIDX,
5441 ALPHA_GETOPT_FIXIDX,
5442 ALPHA_PARENS_FIXIDX,
5443 ALPHA_SBRK_FIXIDX,
5444 AVOID_BOOL_DEFINE_FIXIDX,
5445 AVOID_BOOL_TYPE_FIXIDX,
5446 AVOID_WCHAR_T_TYPE_FIXIDX,
5447 BAD_LVAL_FIXIDX,
5448 BAD_STRUCT_TERM_FIXIDX,
5449 BADQUOTE_FIXIDX,
5450 BROKEN_ASSERT_STDIO_FIXIDX,
5451 BROKEN_ASSERT_STDLIB_FIXIDX,
5452 BROKEN_CABS_FIXIDX,
5453 CTRL_QUOTES_DEF_FIXIDX,
5454 CTRL_QUOTES_USE_FIXIDX,
5455 CXX_UNREADY_FIXIDX,
5456 DEC_INTERN_ASM_FIXIDX,
5457 DJGPP_WCHAR_H_FIXIDX,
5458 ECD_CURSOR_FIXIDX,
5459 FREEBSD_GCC3_BREAKAGE_FIXIDX,
5460 GNU_TYPES_FIXIDX,
5461 HP_INLINE_FIXIDX,
5462 HP_SYSFILE_FIXIDX,
5463 HPUX10_CPP_POW_INLINE_FIXIDX,
5464 HPUX11_CPP_POW_INLINE_FIXIDX,
5465 HPUX11_ABS_FIXIDX,
5466 HPUX11_FABSF_FIXIDX,
5467 HPUX11_SIZE_T_FIXIDX,
5468 HPUX11_UINT32_C_FIXIDX,
5469 HPUX11_VSNPRINTF_FIXIDX,
5470 HPUX8_BOGUS_INLINES_FIXIDX,
5471 HPUX_MAXINT_FIXIDX,
5472 HPUX_SYSTIME_FIXIDX,
5473 INT_ABORT_FREE_AND_EXIT_FIXIDX,
5474 IO_QUOTES_DEF_FIXIDX,
5475 IO_QUOTES_USE_FIXIDX,
5476 IP_MISSING_SEMI_FIXIDX,
5477 IRIX_ASM_APOSTROPHE_FIXIDX,
5478 IRIX_LIMITS_CONST_FIXIDX,
5479 IRIX_STDIO_VA_LIST_FIXIDX,
5480 ISC_FMOD_FIXIDX,
5481 ISC_OMITS_WITH_STDC_FIXIDX,
5482 KANDR_CONCAT_FIXIDX,
5483 LIBC1_G_VA_LIST_FIXIDX,
5484 LIBC1_IFDEFD_MEMX_FIXIDX,
5485 LIMITS_IFNDEFS_FIXIDX,
5486 LYNX_VOID_INT_FIXIDX,
5487 LYNXOS_FCNTL_PROTO_FIXIDX,
5488 MACHINE_ANSI_H_VA_LIST_FIXIDX,
5489 MACHINE_NAME_FIXIDX,
5490 MATH_EXCEPTION_FIXIDX,
5491 MATH_HUGE_VAL_FROM_DBL_MAX_FIXIDX,
5492 MATH_HUGE_VAL_IFNDEF_FIXIDX,
5493 NESTED_AUTH_DES_FIXIDX,
5494 NESTED_MOTOROLA_FIXIDX,
5495 NESTED_SYS_LIMITS_FIXIDX,
5496 NEXT_MATH_PREFIX_FIXIDX,
5497 NEXT_TEMPLATE_FIXIDX,
5498 NEXT_VOLITILE_FIXIDX,
5499 NEXT_WAIT_UNION_FIXIDX,
5500 NODEENT_SYNTAX_FIXIDX,
5501 OSF_NAMESPACE_A_FIXIDX,
5502 OSF_NAMESPACE_C_FIXIDX,
5503 PTHREAD_PAGE_SIZE_FIXIDX,
5504 READ_RET_TYPE_FIXIDX,
5505 RS6000_DOUBLE_FIXIDX,
5506 RS6000_FCHMOD_FIXIDX,
5507 RS6000_PARAM_FIXIDX,
5508 SCO_STATIC_FUNC_FIXIDX,
5509 SCO_UTIME_FIXIDX,
5510 SOLARIS_MUTEX_INIT_FIXIDX,
5511 SOLARIS_STDIO_TAG_FIXIDX,
5512 SOLARIS_WIDEC_FIXIDX,
5513 STATSSWTCH_FIXIDX,
5514 STDIO_STDARG_H_FIXIDX,
5515 STDIO_VA_LIST_FIXIDX,
5516 STRICT_ANSI_NOT_FIXIDX,
5517 STRICT_ANSI_NOT_CTD_FIXIDX,
5518 STRICT_ANSI_ONLY_FIXIDX,
5519 STRUCT_FILE_FIXIDX,
5520 STRUCT_SOCKADDR_FIXIDX,
5521 SUN_AUTH_PROTO_FIXIDX,
5522 SUN_BOGUS_IFDEF_FIXIDX,
5523 SUN_CATMACRO_FIXIDX,
5524 SUN_MALLOC_FIXIDX,
5525 SUN_RUSERS_SEMI_FIXIDX,
5526 SUN_SIGNAL_FIXIDX,
5527 SUNOS_MATHERR_DECL_FIXIDX,
5528 SUNOS_STRLEN_FIXIDX,
5529 SVR4__P_FIXIDX,
5530 SVR4_GETCWD_FIXIDX,
5531 SVR4_PROFIL_FIXIDX,
5532 SYSV68_STRING_FIXIDX,
5533 SYSZ_STDLIB_FOR_SUN_FIXIDX,
5534 THREAD_KEYWORD_FIXIDX,
5535 TINFO_CPLUSPLUS_FIXIDX,
5536 ULTRIX_ATEXIT_PARAM_FIXIDX,
5537 ULTRIX_ATOF_PARAM_FIXIDX,
5538 ULTRIX_CONST_FIXIDX,
5539 ULTRIX_CONST2_FIXIDX,
5540 ULTRIX_FIX_FIXPROTO_FIXIDX,
5541 ULTRIX_IFDEF_FIXIDX,
5542 ULTRIX_MATH_IFDEF_FIXIDX,
5543 ULTRIX_NESTED_IOCTL_FIXIDX,
5544 ULTRIX_NESTED_SVC_FIXIDX,
5545 ULTRIX_STAT_FIXIDX,
5546 ULTRIX_STATIC_FIXIDX,
5547 ULTRIX_STRINGS_FIXIDX,
5548 UNDEFINE_NULL_FIXIDX,
5549 UNICOSMK_RESTRICT_FIXIDX,
5550 UW7_BYTEORDER_FIX_FIXIDX,
5551 VA_I960_MACRO_FIXIDX,
5552 VOID_NULL_FIXIDX,
5553 VXWORKS_GCC_PROBLEM_FIXIDX,
5554 VXWORKS_NEEDS_VXTYPES_FIXIDX,
5555 VXWORKS_NEEDS_VXWORKS_FIXIDX,
5556 VXWORKS_TIME_FIXIDX,
5557 WINDISS_MATH1_FIXIDX,
5558 WINDISS_MATH2_FIXIDX,
5559 WINDISS_VALIST_FIXIDX,
5560 X11_CLASS_FIXIDX,
5561 X11_CLASS_USAGE_FIXIDX,
5562 X11_NEW_FIXIDX,
5563 X11_SPRINTF_FIXIDX
5564 } t_fixinc_idx;
5565
5566 tFixDesc fixDescList[ FIX_COUNT ] = {
5567 { zAab_Fd_Zero_Asm_Posix_Types_HName, zAab_Fd_Zero_Asm_Posix_Types_HList,
5568 apzAab_Fd_Zero_Asm_Posix_Types_HMachs,
5569 AAB_FD_ZERO_ASM_POSIX_TYPES_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
5570 aAab_Fd_Zero_Asm_Posix_Types_HTests, apzAab_Fd_Zero_Asm_Posix_Types_HPatch, 0 },
5571
5572 { zAab_Fd_Zero_Gnu_Types_HName, zAab_Fd_Zero_Gnu_Types_HList,
5573 apzAab_Fd_Zero_Gnu_Types_HMachs,
5574 AAB_FD_ZERO_GNU_TYPES_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
5575 aAab_Fd_Zero_Gnu_Types_HTests, apzAab_Fd_Zero_Gnu_Types_HPatch, 0 },
5576
5577 { zAab_Fd_Zero_Selectbits_HName, zAab_Fd_Zero_Selectbits_HList,
5578 apzAab_Fd_Zero_Selectbits_HMachs,
5579 AAB_FD_ZERO_SELECTBITS_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
5580 aAab_Fd_Zero_Selectbits_HTests, apzAab_Fd_Zero_Selectbits_HPatch, 0 },
5581
5582 { zAab_Solaris_Sys_Varargs_HName, zAab_Solaris_Sys_Varargs_HList,
5583 apzAab_Solaris_Sys_Varargs_HMachs,
5584 AAB_SOLARIS_SYS_VARARGS_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
5585 aAab_Solaris_Sys_Varargs_HTests, apzAab_Solaris_Sys_Varargs_HPatch, 0 },
5586
5587 { zAab_Sun_MemcpyName, zAab_Sun_MemcpyList,
5588 apzAab_Sun_MemcpyMachs,
5589 AAB_SUN_MEMCPY_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
5590 aAab_Sun_MemcpyTests, apzAab_Sun_MemcpyPatch, 0 },
5591
5592 { zAab_Ultrix_Ansi_CompatName, zAab_Ultrix_Ansi_CompatList,
5593 apzAab_Ultrix_Ansi_CompatMachs,
5594 AAB_ULTRIX_ANSI_COMPAT_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
5595 aAab_Ultrix_Ansi_CompatTests, apzAab_Ultrix_Ansi_CompatPatch, 0 },
5596
5597 { zAab_Ultrix_LimitsName, zAab_Ultrix_LimitsList,
5598 apzAab_Ultrix_LimitsMachs,
5599 AAB_ULTRIX_LIMITS_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
5600 aAab_Ultrix_LimitsTests, apzAab_Ultrix_LimitsPatch, 0 },
5601
5602 { zAab_Ultrix_MemoryName, zAab_Ultrix_MemoryList,
5603 apzAab_Ultrix_MemoryMachs,
5604 AAB_ULTRIX_MEMORY_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
5605 aAab_Ultrix_MemoryTests, apzAab_Ultrix_MemoryPatch, 0 },
5606
5607 { zAab_Ultrix_StringName, zAab_Ultrix_StringList,
5608 apzAab_Ultrix_StringMachs,
5609 AAB_ULTRIX_STRING_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
5610 aAab_Ultrix_StringTests, apzAab_Ultrix_StringPatch, 0 },
5611
5612 { zAix_PthreadName, zAix_PthreadList,
5613 apzAix_PthreadMachs,
5614 AIX_PTHREAD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5615 aAix_PthreadTests, apzAix_PthreadPatch, 0 },
5616
5617 { zAix_SysmachineName, zAix_SysmachineList,
5618 apzAix_SysmachineMachs,
5619 AIX_SYSMACHINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5620 aAix_SysmachineTests, apzAix_SysmachinePatch, 0 },
5621
5622 { zAix_SyswaitName, zAix_SyswaitList,
5623 apzAix_SyswaitMachs,
5624 AIX_SYSWAIT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5625 aAix_SyswaitTests, apzAix_SyswaitPatch, 0 },
5626
5627 { zAix_VolatileName, zAix_VolatileList,
5628 apzAix_VolatileMachs,
5629 AIX_VOLATILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5630 aAix_VolatileTests, apzAix_VolatilePatch, 0 },
5631
5632 { zAlpha___AssertName, zAlpha___AssertList,
5633 apzAlpha___AssertMachs,
5634 ALPHA___ASSERT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5635 aAlpha___AssertTests, apzAlpha___AssertPatch, 0 },
5636
5637 { zAlpha_AssertName, zAlpha_AssertList,
5638 apzAlpha_AssertMachs,
5639 ALPHA_ASSERT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5640 aAlpha_AssertTests, apzAlpha_AssertPatch, 0 },
5641
5642 { zAlpha_GetoptName, zAlpha_GetoptList,
5643 apzAlpha_GetoptMachs,
5644 ALPHA_GETOPT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5645 aAlpha_GetoptTests, apzAlpha_GetoptPatch, 0 },
5646
5647 { zAlpha_ParensName, zAlpha_ParensList,
5648 apzAlpha_ParensMachs,
5649 ALPHA_PARENS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5650 aAlpha_ParensTests, apzAlpha_ParensPatch, 0 },
5651
5652 { zAlpha_SbrkName, zAlpha_SbrkList,
5653 apzAlpha_SbrkMachs,
5654 ALPHA_SBRK_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5655 aAlpha_SbrkTests, apzAlpha_SbrkPatch, 0 },
5656
5657 { zAvoid_Bool_DefineName, zAvoid_Bool_DefineList,
5658 apzAvoid_Bool_DefineMachs,
5659 AVOID_BOOL_DEFINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5660 aAvoid_Bool_DefineTests, apzAvoid_Bool_DefinePatch, 0 },
5661
5662 { zAvoid_Bool_TypeName, zAvoid_Bool_TypeList,
5663 apzAvoid_Bool_TypeMachs,
5664 AVOID_BOOL_TYPE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5665 aAvoid_Bool_TypeTests, apzAvoid_Bool_TypePatch, 0 },
5666
5667 { zAvoid_Wchar_T_TypeName, zAvoid_Wchar_T_TypeList,
5668 apzAvoid_Wchar_T_TypeMachs,
5669 AVOID_WCHAR_T_TYPE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5670 aAvoid_Wchar_T_TypeTests, apzAvoid_Wchar_T_TypePatch, 0 },
5671
5672 { zBad_LvalName, zBad_LvalList,
5673 apzBad_LvalMachs,
5674 BAD_LVAL_TEST_CT, FD_MACH_ONLY,
5675 aBad_LvalTests, apzBad_LvalPatch, 0 },
5676
5677 { zBad_Struct_TermName, zBad_Struct_TermList,
5678 apzBad_Struct_TermMachs,
5679 BAD_STRUCT_TERM_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5680 aBad_Struct_TermTests, apzBad_Struct_TermPatch, 0 },
5681
5682 { zBadquoteName, zBadquoteList,
5683 apzBadquoteMachs,
5684 BADQUOTE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5685 aBadquoteTests, apzBadquotePatch, 0 },
5686
5687 { zBroken_Assert_StdioName, zBroken_Assert_StdioList,
5688 apzBroken_Assert_StdioMachs,
5689 BROKEN_ASSERT_STDIO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5690 aBroken_Assert_StdioTests, apzBroken_Assert_StdioPatch, 0 },
5691
5692 { zBroken_Assert_StdlibName, zBroken_Assert_StdlibList,
5693 apzBroken_Assert_StdlibMachs,
5694 BROKEN_ASSERT_STDLIB_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5695 aBroken_Assert_StdlibTests, apzBroken_Assert_StdlibPatch, 0 },
5696
5697 { zBroken_CabsName, zBroken_CabsList,
5698 apzBroken_CabsMachs,
5699 BROKEN_CABS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5700 aBroken_CabsTests, apzBroken_CabsPatch, 0 },
5701
5702 { zCtrl_Quotes_DefName, zCtrl_Quotes_DefList,
5703 apzCtrl_Quotes_DefMachs,
5704 CTRL_QUOTES_DEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5705 aCtrl_Quotes_DefTests, apzCtrl_Quotes_DefPatch, 0 },
5706
5707 { zCtrl_Quotes_UseName, zCtrl_Quotes_UseList,
5708 apzCtrl_Quotes_UseMachs,
5709 CTRL_QUOTES_USE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5710 aCtrl_Quotes_UseTests, apzCtrl_Quotes_UsePatch, 0 },
5711
5712 { zCxx_UnreadyName, zCxx_UnreadyList,
5713 apzCxx_UnreadyMachs,
5714 CXX_UNREADY_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5715 aCxx_UnreadyTests, apzCxx_UnreadyPatch, 0 },
5716
5717 { zDec_Intern_AsmName, zDec_Intern_AsmList,
5718 apzDec_Intern_AsmMachs,
5719 DEC_INTERN_ASM_TEST_CT, FD_MACH_ONLY,
5720 aDec_Intern_AsmTests, apzDec_Intern_AsmPatch, 0 },
5721
5722 { zDjgpp_Wchar_HName, zDjgpp_Wchar_HList,
5723 apzDjgpp_Wchar_HMachs,
5724 DJGPP_WCHAR_H_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5725 aDjgpp_Wchar_HTests, apzDjgpp_Wchar_HPatch, 0 },
5726
5727 { zEcd_CursorName, zEcd_CursorList,
5728 apzEcd_CursorMachs,
5729 ECD_CURSOR_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5730 aEcd_CursorTests, apzEcd_CursorPatch, 0 },
5731
5732 { zFreebsd_Gcc3_BreakageName, zFreebsd_Gcc3_BreakageList,
5733 apzFreebsd_Gcc3_BreakageMachs,
5734 FREEBSD_GCC3_BREAKAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5735 aFreebsd_Gcc3_BreakageTests, apzFreebsd_Gcc3_BreakagePatch, 0 },
5736
5737 { zGnu_TypesName, zGnu_TypesList,
5738 apzGnu_TypesMachs,
5739 GNU_TYPES_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5740 aGnu_TypesTests, apzGnu_TypesPatch, 0 },
5741
5742 { zHp_InlineName, zHp_InlineList,
5743 apzHp_InlineMachs,
5744 HP_INLINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5745 aHp_InlineTests, apzHp_InlinePatch, 0 },
5746
5747 { zHp_SysfileName, zHp_SysfileList,
5748 apzHp_SysfileMachs,
5749 HP_SYSFILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5750 aHp_SysfileTests, apzHp_SysfilePatch, 0 },
5751
5752 { zHpux10_Cpp_Pow_InlineName, zHpux10_Cpp_Pow_InlineList,
5753 apzHpux10_Cpp_Pow_InlineMachs,
5754 HPUX10_CPP_POW_INLINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5755 aHpux10_Cpp_Pow_InlineTests, apzHpux10_Cpp_Pow_InlinePatch, 0 },
5756
5757 { zHpux11_Cpp_Pow_InlineName, zHpux11_Cpp_Pow_InlineList,
5758 apzHpux11_Cpp_Pow_InlineMachs,
5759 HPUX11_CPP_POW_INLINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5760 aHpux11_Cpp_Pow_InlineTests, apzHpux11_Cpp_Pow_InlinePatch, 0 },
5761
5762 { zHpux11_AbsName, zHpux11_AbsList,
5763 apzHpux11_AbsMachs,
5764 HPUX11_ABS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5765 aHpux11_AbsTests, apzHpux11_AbsPatch, 0 },
5766
5767 { zHpux11_FabsfName, zHpux11_FabsfList,
5768 apzHpux11_FabsfMachs,
5769 HPUX11_FABSF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5770 aHpux11_FabsfTests, apzHpux11_FabsfPatch, 0 },
5771
5772 { zHpux11_Size_TName, zHpux11_Size_TList,
5773 apzHpux11_Size_TMachs,
5774 HPUX11_SIZE_T_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5775 aHpux11_Size_TTests, apzHpux11_Size_TPatch, 0 },
5776
5777 { zHpux11_Uint32_CName, zHpux11_Uint32_CList,
5778 apzHpux11_Uint32_CMachs,
5779 HPUX11_UINT32_C_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5780 aHpux11_Uint32_CTests, apzHpux11_Uint32_CPatch, 0 },
5781
5782 { zHpux11_VsnprintfName, zHpux11_VsnprintfList,
5783 apzHpux11_VsnprintfMachs,
5784 HPUX11_VSNPRINTF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5785 aHpux11_VsnprintfTests, apzHpux11_VsnprintfPatch, 0 },
5786
5787 { zHpux8_Bogus_InlinesName, zHpux8_Bogus_InlinesList,
5788 apzHpux8_Bogus_InlinesMachs,
5789 HPUX8_BOGUS_INLINES_TEST_CT, FD_MACH_ONLY,
5790 aHpux8_Bogus_InlinesTests, apzHpux8_Bogus_InlinesPatch, 0 },
5791
5792 { zHpux_MaxintName, zHpux_MaxintList,
5793 apzHpux_MaxintMachs,
5794 HPUX_MAXINT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5795 aHpux_MaxintTests, apzHpux_MaxintPatch, 0 },
5796
5797 { zHpux_SystimeName, zHpux_SystimeList,
5798 apzHpux_SystimeMachs,
5799 HPUX_SYSTIME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5800 aHpux_SystimeTests, apzHpux_SystimePatch, 0 },
5801
5802 { zInt_Abort_Free_And_ExitName, zInt_Abort_Free_And_ExitList,
5803 apzInt_Abort_Free_And_ExitMachs,
5804 INT_ABORT_FREE_AND_EXIT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5805 aInt_Abort_Free_And_ExitTests, apzInt_Abort_Free_And_ExitPatch, 0 },
5806
5807 { zIo_Quotes_DefName, zIo_Quotes_DefList,
5808 apzIo_Quotes_DefMachs,
5809 IO_QUOTES_DEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5810 aIo_Quotes_DefTests, apzIo_Quotes_DefPatch, 0 },
5811
5812 { zIo_Quotes_UseName, zIo_Quotes_UseList,
5813 apzIo_Quotes_UseMachs,
5814 IO_QUOTES_USE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5815 aIo_Quotes_UseTests, apzIo_Quotes_UsePatch, 0 },
5816
5817 { zIp_Missing_SemiName, zIp_Missing_SemiList,
5818 apzIp_Missing_SemiMachs,
5819 IP_MISSING_SEMI_TEST_CT, FD_MACH_ONLY,
5820 aIp_Missing_SemiTests, apzIp_Missing_SemiPatch, 0 },
5821
5822 { zIrix_Asm_ApostropheName, zIrix_Asm_ApostropheList,
5823 apzIrix_Asm_ApostropheMachs,
5824 IRIX_ASM_APOSTROPHE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5825 aIrix_Asm_ApostropheTests, apzIrix_Asm_ApostrophePatch, 0 },
5826
5827 { zIrix_Limits_ConstName, zIrix_Limits_ConstList,
5828 apzIrix_Limits_ConstMachs,
5829 IRIX_LIMITS_CONST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5830 aIrix_Limits_ConstTests, apzIrix_Limits_ConstPatch, 0 },
5831
5832 { zIrix_Stdio_Va_ListName, zIrix_Stdio_Va_ListList,
5833 apzIrix_Stdio_Va_ListMachs,
5834 IRIX_STDIO_VA_LIST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5835 aIrix_Stdio_Va_ListTests, apzIrix_Stdio_Va_ListPatch, 0 },
5836
5837 { zIsc_FmodName, zIsc_FmodList,
5838 apzIsc_FmodMachs,
5839 ISC_FMOD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5840 aIsc_FmodTests, apzIsc_FmodPatch, 0 },
5841
5842 { zIsc_Omits_With_StdcName, zIsc_Omits_With_StdcList,
5843 apzIsc_Omits_With_StdcMachs,
5844 ISC_OMITS_WITH_STDC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5845 aIsc_Omits_With_StdcTests, apzIsc_Omits_With_StdcPatch, 0 },
5846
5847 { zKandr_ConcatName, zKandr_ConcatList,
5848 apzKandr_ConcatMachs,
5849 KANDR_CONCAT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5850 aKandr_ConcatTests, apzKandr_ConcatPatch, 0 },
5851
5852 { zLibc1_G_Va_ListName, zLibc1_G_Va_ListList,
5853 apzLibc1_G_Va_ListMachs,
5854 LIBC1_G_VA_LIST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5855 aLibc1_G_Va_ListTests, apzLibc1_G_Va_ListPatch, 0 },
5856
5857 { zLibc1_Ifdefd_MemxName, zLibc1_Ifdefd_MemxList,
5858 apzLibc1_Ifdefd_MemxMachs,
5859 LIBC1_IFDEFD_MEMX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5860 aLibc1_Ifdefd_MemxTests, apzLibc1_Ifdefd_MemxPatch, 0 },
5861
5862 { zLimits_IfndefsName, zLimits_IfndefsList,
5863 apzLimits_IfndefsMachs,
5864 LIMITS_IFNDEFS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5865 aLimits_IfndefsTests, apzLimits_IfndefsPatch, 0 },
5866
5867 { zLynx_Void_IntName, zLynx_Void_IntList,
5868 apzLynx_Void_IntMachs,
5869 LYNX_VOID_INT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5870 aLynx_Void_IntTests, apzLynx_Void_IntPatch, 0 },
5871
5872 { zLynxos_Fcntl_ProtoName, zLynxos_Fcntl_ProtoList,
5873 apzLynxos_Fcntl_ProtoMachs,
5874 LYNXOS_FCNTL_PROTO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5875 aLynxos_Fcntl_ProtoTests, apzLynxos_Fcntl_ProtoPatch, 0 },
5876
5877 { zMachine_Ansi_H_Va_ListName, zMachine_Ansi_H_Va_ListList,
5878 apzMachine_Ansi_H_Va_ListMachs,
5879 MACHINE_ANSI_H_VA_LIST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5880 aMachine_Ansi_H_Va_ListTests, apzMachine_Ansi_H_Va_ListPatch, 0 },
5881
5882 { zMachine_NameName, zMachine_NameList,
5883 apzMachine_NameMachs,
5884 MACHINE_NAME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5885 aMachine_NameTests, apzMachine_NamePatch, 0 },
5886
5887 { zMath_ExceptionName, zMath_ExceptionList,
5888 apzMath_ExceptionMachs,
5889 MATH_EXCEPTION_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5890 aMath_ExceptionTests, apzMath_ExceptionPatch, 0 },
5891
5892 { zMath_Huge_Val_From_Dbl_MaxName, zMath_Huge_Val_From_Dbl_MaxList,
5893 apzMath_Huge_Val_From_Dbl_MaxMachs,
5894 MATH_HUGE_VAL_FROM_DBL_MAX_TEST_CT, FD_MACH_ONLY | FD_SHELL_SCRIPT,
5895 aMath_Huge_Val_From_Dbl_MaxTests, apzMath_Huge_Val_From_Dbl_MaxPatch, 0 },
5896
5897 { zMath_Huge_Val_IfndefName, zMath_Huge_Val_IfndefList,
5898 apzMath_Huge_Val_IfndefMachs,
5899 MATH_HUGE_VAL_IFNDEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5900 aMath_Huge_Val_IfndefTests, apzMath_Huge_Val_IfndefPatch, 0 },
5901
5902 { zNested_Auth_DesName, zNested_Auth_DesList,
5903 apzNested_Auth_DesMachs,
5904 NESTED_AUTH_DES_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5905 aNested_Auth_DesTests, apzNested_Auth_DesPatch, 0 },
5906
5907 { zNested_MotorolaName, zNested_MotorolaList,
5908 apzNested_MotorolaMachs,
5909 NESTED_MOTOROLA_TEST_CT, FD_MACH_ONLY,
5910 aNested_MotorolaTests, apzNested_MotorolaPatch, 0 },
5911
5912 { zNested_Sys_LimitsName, zNested_Sys_LimitsList,
5913 apzNested_Sys_LimitsMachs,
5914 NESTED_SYS_LIMITS_TEST_CT, FD_MACH_ONLY,
5915 aNested_Sys_LimitsTests, apzNested_Sys_LimitsPatch, 0 },
5916
5917 { zNext_Math_PrefixName, zNext_Math_PrefixList,
5918 apzNext_Math_PrefixMachs,
5919 NEXT_MATH_PREFIX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5920 aNext_Math_PrefixTests, apzNext_Math_PrefixPatch, 0 },
5921
5922 { zNext_TemplateName, zNext_TemplateList,
5923 apzNext_TemplateMachs,
5924 NEXT_TEMPLATE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5925 aNext_TemplateTests, apzNext_TemplatePatch, 0 },
5926
5927 { zNext_VolitileName, zNext_VolitileList,
5928 apzNext_VolitileMachs,
5929 NEXT_VOLITILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5930 aNext_VolitileTests, apzNext_VolitilePatch, 0 },
5931
5932 { zNext_Wait_UnionName, zNext_Wait_UnionList,
5933 apzNext_Wait_UnionMachs,
5934 NEXT_WAIT_UNION_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5935 aNext_Wait_UnionTests, apzNext_Wait_UnionPatch, 0 },
5936
5937 { zNodeent_SyntaxName, zNodeent_SyntaxList,
5938 apzNodeent_SyntaxMachs,
5939 NODEENT_SYNTAX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5940 aNodeent_SyntaxTests, apzNodeent_SyntaxPatch, 0 },
5941
5942 { zOsf_Namespace_AName, zOsf_Namespace_AList,
5943 apzOsf_Namespace_AMachs,
5944 OSF_NAMESPACE_A_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5945 aOsf_Namespace_ATests, apzOsf_Namespace_APatch, 0 },
5946
5947 { zOsf_Namespace_CName, zOsf_Namespace_CList,
5948 apzOsf_Namespace_CMachs,
5949 OSF_NAMESPACE_C_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5950 aOsf_Namespace_CTests, apzOsf_Namespace_CPatch, 0 },
5951
5952 { zPthread_Page_SizeName, zPthread_Page_SizeList,
5953 apzPthread_Page_SizeMachs,
5954 PTHREAD_PAGE_SIZE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5955 aPthread_Page_SizeTests, apzPthread_Page_SizePatch, 0 },
5956
5957 { zRead_Ret_TypeName, zRead_Ret_TypeList,
5958 apzRead_Ret_TypeMachs,
5959 READ_RET_TYPE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5960 aRead_Ret_TypeTests, apzRead_Ret_TypePatch, 0 },
5961
5962 { zRs6000_DoubleName, zRs6000_DoubleList,
5963 apzRs6000_DoubleMachs,
5964 RS6000_DOUBLE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5965 aRs6000_DoubleTests, apzRs6000_DoublePatch, 0 },
5966
5967 { zRs6000_FchmodName, zRs6000_FchmodList,
5968 apzRs6000_FchmodMachs,
5969 RS6000_FCHMOD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5970 aRs6000_FchmodTests, apzRs6000_FchmodPatch, 0 },
5971
5972 { zRs6000_ParamName, zRs6000_ParamList,
5973 apzRs6000_ParamMachs,
5974 RS6000_PARAM_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5975 aRs6000_ParamTests, apzRs6000_ParamPatch, 0 },
5976
5977 { zSco_Static_FuncName, zSco_Static_FuncList,
5978 apzSco_Static_FuncMachs,
5979 SCO_STATIC_FUNC_TEST_CT, FD_MACH_ONLY,
5980 aSco_Static_FuncTests, apzSco_Static_FuncPatch, 0 },
5981
5982 { zSco_UtimeName, zSco_UtimeList,
5983 apzSco_UtimeMachs,
5984 SCO_UTIME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5985 aSco_UtimeTests, apzSco_UtimePatch, 0 },
5986
5987 { zSolaris_Mutex_InitName, zSolaris_Mutex_InitList,
5988 apzSolaris_Mutex_InitMachs,
5989 SOLARIS_MUTEX_INIT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5990 aSolaris_Mutex_InitTests, apzSolaris_Mutex_InitPatch, 0 },
5991
5992 { zSolaris_Stdio_TagName, zSolaris_Stdio_TagList,
5993 apzSolaris_Stdio_TagMachs,
5994 SOLARIS_STDIO_TAG_TEST_CT, FD_MACH_ONLY,
5995 aSolaris_Stdio_TagTests, apzSolaris_Stdio_TagPatch, 0 },
5996
5997 { zSolaris_WidecName, zSolaris_WidecList,
5998 apzSolaris_WidecMachs,
5999 SOLARIS_WIDEC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6000 aSolaris_WidecTests, apzSolaris_WidecPatch, 0 },
6001
6002 { zStatsswtchName, zStatsswtchList,
6003 apzStatsswtchMachs,
6004 STATSSWTCH_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6005 aStatsswtchTests, apzStatsswtchPatch, 0 },
6006
6007 { zStdio_Stdarg_HName, zStdio_Stdarg_HList,
6008 apzStdio_Stdarg_HMachs,
6009 STDIO_STDARG_H_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6010 aStdio_Stdarg_HTests, apzStdio_Stdarg_HPatch, 0 },
6011
6012 { zStdio_Va_ListName, zStdio_Va_ListList,
6013 apzStdio_Va_ListMachs,
6014 STDIO_VA_LIST_TEST_CT, FD_MACH_ONLY,
6015 aStdio_Va_ListTests, apzStdio_Va_ListPatch, 0 },
6016
6017 { zStrict_Ansi_NotName, zStrict_Ansi_NotList,
6018 apzStrict_Ansi_NotMachs,
6019 STRICT_ANSI_NOT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6020 aStrict_Ansi_NotTests, apzStrict_Ansi_NotPatch, 0 },
6021
6022 { zStrict_Ansi_Not_CtdName, zStrict_Ansi_Not_CtdList,
6023 apzStrict_Ansi_Not_CtdMachs,
6024 STRICT_ANSI_NOT_CTD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6025 aStrict_Ansi_Not_CtdTests, apzStrict_Ansi_Not_CtdPatch, 0 },
6026
6027 { zStrict_Ansi_OnlyName, zStrict_Ansi_OnlyList,
6028 apzStrict_Ansi_OnlyMachs,
6029 STRICT_ANSI_ONLY_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6030 aStrict_Ansi_OnlyTests, apzStrict_Ansi_OnlyPatch, 0 },
6031
6032 { zStruct_FileName, zStruct_FileList,
6033 apzStruct_FileMachs,
6034 STRUCT_FILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6035 aStruct_FileTests, apzStruct_FilePatch, 0 },
6036
6037 { zStruct_SockaddrName, zStruct_SockaddrList,
6038 apzStruct_SockaddrMachs,
6039 STRUCT_SOCKADDR_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6040 aStruct_SockaddrTests, apzStruct_SockaddrPatch, 0 },
6041
6042 { zSun_Auth_ProtoName, zSun_Auth_ProtoList,
6043 apzSun_Auth_ProtoMachs,
6044 SUN_AUTH_PROTO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6045 aSun_Auth_ProtoTests, apzSun_Auth_ProtoPatch, 0 },
6046
6047 { zSun_Bogus_IfdefName, zSun_Bogus_IfdefList,
6048 apzSun_Bogus_IfdefMachs,
6049 SUN_BOGUS_IFDEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6050 aSun_Bogus_IfdefTests, apzSun_Bogus_IfdefPatch, 0 },
6051
6052 { zSun_CatmacroName, zSun_CatmacroList,
6053 apzSun_CatmacroMachs,
6054 SUN_CATMACRO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6055 aSun_CatmacroTests, apzSun_CatmacroPatch, 0 },
6056
6057 { zSun_MallocName, zSun_MallocList,
6058 apzSun_MallocMachs,
6059 SUN_MALLOC_TEST_CT, FD_MACH_ONLY,
6060 aSun_MallocTests, apzSun_MallocPatch, 0 },
6061
6062 { zSun_Rusers_SemiName, zSun_Rusers_SemiList,
6063 apzSun_Rusers_SemiMachs,
6064 SUN_RUSERS_SEMI_TEST_CT, FD_MACH_ONLY,
6065 aSun_Rusers_SemiTests, apzSun_Rusers_SemiPatch, 0 },
6066
6067 { zSun_SignalName, zSun_SignalList,
6068 apzSun_SignalMachs,
6069 SUN_SIGNAL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6070 aSun_SignalTests, apzSun_SignalPatch, 0 },
6071
6072 { zSunos_Matherr_DeclName, zSunos_Matherr_DeclList,
6073 apzSunos_Matherr_DeclMachs,
6074 SUNOS_MATHERR_DECL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6075 aSunos_Matherr_DeclTests, apzSunos_Matherr_DeclPatch, 0 },
6076
6077 { zSunos_StrlenName, zSunos_StrlenList,
6078 apzSunos_StrlenMachs,
6079 SUNOS_STRLEN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6080 aSunos_StrlenTests, apzSunos_StrlenPatch, 0 },
6081
6082 { zSvr4__PName, zSvr4__PList,
6083 apzSvr4__PMachs,
6084 SVR4__P_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6085 aSvr4__PTests, apzSvr4__PPatch, 0 },
6086
6087 { zSvr4_GetcwdName, zSvr4_GetcwdList,
6088 apzSvr4_GetcwdMachs,
6089 SVR4_GETCWD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6090 aSvr4_GetcwdTests, apzSvr4_GetcwdPatch, 0 },
6091
6092 { zSvr4_ProfilName, zSvr4_ProfilList,
6093 apzSvr4_ProfilMachs,
6094 SVR4_PROFIL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6095 aSvr4_ProfilTests, apzSvr4_ProfilPatch, 0 },
6096
6097 { zSysv68_StringName, zSysv68_StringList,
6098 apzSysv68_StringMachs,
6099 SYSV68_STRING_TEST_CT, FD_MACH_ONLY,
6100 aSysv68_StringTests, apzSysv68_StringPatch, 0 },
6101
6102 { zSysz_Stdlib_For_SunName, zSysz_Stdlib_For_SunList,
6103 apzSysz_Stdlib_For_SunMachs,
6104 SYSZ_STDLIB_FOR_SUN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6105 aSysz_Stdlib_For_SunTests, apzSysz_Stdlib_For_SunPatch, 0 },
6106
6107 { zThread_KeywordName, zThread_KeywordList,
6108 apzThread_KeywordMachs,
6109 THREAD_KEYWORD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6110 aThread_KeywordTests, apzThread_KeywordPatch, 0 },
6111
6112 { zTinfo_CplusplusName, zTinfo_CplusplusList,
6113 apzTinfo_CplusplusMachs,
6114 TINFO_CPLUSPLUS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6115 aTinfo_CplusplusTests, apzTinfo_CplusplusPatch, 0 },
6116
6117 { zUltrix_Atexit_ParamName, zUltrix_Atexit_ParamList,
6118 apzUltrix_Atexit_ParamMachs,
6119 ULTRIX_ATEXIT_PARAM_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6120 aUltrix_Atexit_ParamTests, apzUltrix_Atexit_ParamPatch, 0 },
6121
6122 { zUltrix_Atof_ParamName, zUltrix_Atof_ParamList,
6123 apzUltrix_Atof_ParamMachs,
6124 ULTRIX_ATOF_PARAM_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6125 aUltrix_Atof_ParamTests, apzUltrix_Atof_ParamPatch, 0 },
6126
6127 { zUltrix_ConstName, zUltrix_ConstList,
6128 apzUltrix_ConstMachs,
6129 ULTRIX_CONST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6130 aUltrix_ConstTests, apzUltrix_ConstPatch, 0 },
6131
6132 { zUltrix_Const2Name, zUltrix_Const2List,
6133 apzUltrix_Const2Machs,
6134 ULTRIX_CONST2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6135 aUltrix_Const2Tests, apzUltrix_Const2Patch, 0 },
6136
6137 { zUltrix_Fix_FixprotoName, zUltrix_Fix_FixprotoList,
6138 apzUltrix_Fix_FixprotoMachs,
6139 ULTRIX_FIX_FIXPROTO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6140 aUltrix_Fix_FixprotoTests, apzUltrix_Fix_FixprotoPatch, 0 },
6141
6142 { zUltrix_IfdefName, zUltrix_IfdefList,
6143 apzUltrix_IfdefMachs,
6144 ULTRIX_IFDEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6145 aUltrix_IfdefTests, apzUltrix_IfdefPatch, 0 },
6146
6147 { zUltrix_Math_IfdefName, zUltrix_Math_IfdefList,
6148 apzUltrix_Math_IfdefMachs,
6149 ULTRIX_MATH_IFDEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6150 aUltrix_Math_IfdefTests, apzUltrix_Math_IfdefPatch, 0 },
6151
6152 { zUltrix_Nested_IoctlName, zUltrix_Nested_IoctlList,
6153 apzUltrix_Nested_IoctlMachs,
6154 ULTRIX_NESTED_IOCTL_TEST_CT, FD_MACH_ONLY,
6155 aUltrix_Nested_IoctlTests, apzUltrix_Nested_IoctlPatch, 0 },
6156
6157 { zUltrix_Nested_SvcName, zUltrix_Nested_SvcList,
6158 apzUltrix_Nested_SvcMachs,
6159 ULTRIX_NESTED_SVC_TEST_CT, FD_MACH_ONLY,
6160 aUltrix_Nested_SvcTests, apzUltrix_Nested_SvcPatch, 0 },
6161
6162 { zUltrix_StatName, zUltrix_StatList,
6163 apzUltrix_StatMachs,
6164 ULTRIX_STAT_TEST_CT, FD_MACH_ONLY,
6165 aUltrix_StatTests, apzUltrix_StatPatch, 0 },
6166
6167 { zUltrix_StaticName, zUltrix_StaticList,
6168 apzUltrix_StaticMachs,
6169 ULTRIX_STATIC_TEST_CT, FD_MACH_ONLY,
6170 aUltrix_StaticTests, apzUltrix_StaticPatch, 0 },
6171
6172 { zUltrix_StringsName, zUltrix_StringsList,
6173 apzUltrix_StringsMachs,
6174 ULTRIX_STRINGS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6175 aUltrix_StringsTests, apzUltrix_StringsPatch, 0 },
6176
6177 { zUndefine_NullName, zUndefine_NullList,
6178 apzUndefine_NullMachs,
6179 UNDEFINE_NULL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6180 aUndefine_NullTests, apzUndefine_NullPatch, 0 },
6181
6182 { zUnicosmk_RestrictName, zUnicosmk_RestrictList,
6183 apzUnicosmk_RestrictMachs,
6184 UNICOSMK_RESTRICT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6185 aUnicosmk_RestrictTests, apzUnicosmk_RestrictPatch, 0 },
6186
6187 { zUw7_Byteorder_FixName, zUw7_Byteorder_FixList,
6188 apzUw7_Byteorder_FixMachs,
6189 UW7_BYTEORDER_FIX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6190 aUw7_Byteorder_FixTests, apzUw7_Byteorder_FixPatch, 0 },
6191
6192 { zVa_I960_MacroName, zVa_I960_MacroList,
6193 apzVa_I960_MacroMachs,
6194 VA_I960_MACRO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6195 aVa_I960_MacroTests, apzVa_I960_MacroPatch, 0 },
6196
6197 { zVoid_NullName, zVoid_NullList,
6198 apzVoid_NullMachs,
6199 VOID_NULL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6200 aVoid_NullTests, apzVoid_NullPatch, 0 },
6201
6202 { zVxworks_Gcc_ProblemName, zVxworks_Gcc_ProblemList,
6203 apzVxworks_Gcc_ProblemMachs,
6204 VXWORKS_GCC_PROBLEM_TEST_CT, FD_MACH_ONLY,
6205 aVxworks_Gcc_ProblemTests, apzVxworks_Gcc_ProblemPatch, 0 },
6206
6207 { zVxworks_Needs_VxtypesName, zVxworks_Needs_VxtypesList,
6208 apzVxworks_Needs_VxtypesMachs,
6209 VXWORKS_NEEDS_VXTYPES_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6210 aVxworks_Needs_VxtypesTests, apzVxworks_Needs_VxtypesPatch, 0 },
6211
6212 { zVxworks_Needs_VxworksName, zVxworks_Needs_VxworksList,
6213 apzVxworks_Needs_VxworksMachs,
6214 VXWORKS_NEEDS_VXWORKS_TEST_CT, FD_MACH_ONLY,
6215 aVxworks_Needs_VxworksTests, apzVxworks_Needs_VxworksPatch, 0 },
6216
6217 { zVxworks_TimeName, zVxworks_TimeList,
6218 apzVxworks_TimeMachs,
6219 VXWORKS_TIME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6220 aVxworks_TimeTests, apzVxworks_TimePatch, 0 },
6221
6222 { zWindiss_Math1Name, zWindiss_Math1List,
6223 apzWindiss_Math1Machs,
6224 WINDISS_MATH1_TEST_CT, FD_MACH_ONLY,
6225 aWindiss_Math1Tests, apzWindiss_Math1Patch, 0 },
6226
6227 { zWindiss_Math2Name, zWindiss_Math2List,
6228 apzWindiss_Math2Machs,
6229 WINDISS_MATH2_TEST_CT, FD_MACH_ONLY,
6230 aWindiss_Math2Tests, apzWindiss_Math2Patch, 0 },
6231
6232 { zWindiss_ValistName, zWindiss_ValistList,
6233 apzWindiss_ValistMachs,
6234 WINDISS_VALIST_TEST_CT, FD_MACH_ONLY,
6235 aWindiss_ValistTests, apzWindiss_ValistPatch, 0 },
6236
6237 { zX11_ClassName, zX11_ClassList,
6238 apzX11_ClassMachs,
6239 X11_CLASS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6240 aX11_ClassTests, apzX11_ClassPatch, 0 },
6241
6242 { zX11_Class_UsageName, zX11_Class_UsageList,
6243 apzX11_Class_UsageMachs,
6244 X11_CLASS_USAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6245 aX11_Class_UsageTests, apzX11_Class_UsagePatch, 0 },
6246
6247 { zX11_NewName, zX11_NewList,
6248 apzX11_NewMachs,
6249 X11_NEW_TEST_CT, FD_MACH_ONLY,
6250 aX11_NewTests, apzX11_NewPatch, 0 },
6251
6252 { zX11_SprintfName, zX11_SprintfList,
6253 apzX11_SprintfMachs,
6254 X11_SPRINTF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6255 aX11_SprintfTests, apzX11_SprintfPatch, 0 }
6256 };