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