obstack.h: Merge the following change from gnulib...
[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 Wednesday October 22, 2003 at 10:23:00 PM UTC
6 * From the definitions inclhack.def
7 * and the template file fixincl
8 */
9 /* DO NOT CVS-MERGE THIS FILE, EITHER Wed Oct 22 22:23:00 UTC 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 161 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 Hpux11_Snprintf fix
2144 */
2145 tSCC zHpux11_SnprintfName[] =
2146 "hpux11_snprintf";
2147
2148 /*
2149 * File name selection pattern
2150 */
2151 tSCC zHpux11_SnprintfList[] =
2152 "|stdio.h|";
2153 /*
2154 * Machine/OS name selection pattern
2155 */
2156 #define apzHpux11_SnprintfMachs (const char**)NULL
2157
2158 /*
2159 * content selection pattern - do fix if pattern found
2160 */
2161 tSCC zHpux11_SnprintfSelect0[] =
2162 "(extern int snprintf *\\(char *\\*, *(|__|_hpux_)size_t,) *(char *\\*, *\\.\\.\\.\\);)";
2163
2164 #define HPUX11_SNPRINTF_TEST_CT 1
2165 static tTestDesc aHpux11_SnprintfTests[] = {
2166 { TT_EGREP, zHpux11_SnprintfSelect0, (regex_t*)NULL }, };
2167
2168 /*
2169 * Fix Command Arguments for Hpux11_Snprintf
2170 */
2171 static const char* apzHpux11_SnprintfPatch[] = {
2172 "format",
2173 "%1 const %3",
2174 (char*)NULL };
2175
2176 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2177 *
2178 * Description of Hpux8_Bogus_Inlines fix
2179 */
2180 tSCC zHpux8_Bogus_InlinesName[] =
2181 "hpux8_bogus_inlines";
2182
2183 /*
2184 * File name selection pattern
2185 */
2186 tSCC zHpux8_Bogus_InlinesList[] =
2187 "|math.h|";
2188 /*
2189 * Machine/OS name selection pattern
2190 */
2191 #define apzHpux8_Bogus_InlinesMachs (const char**)NULL
2192
2193 /*
2194 * content selection pattern - do fix if pattern found
2195 */
2196 tSCC zHpux8_Bogus_InlinesSelect0[] =
2197 "inline";
2198
2199 #define HPUX8_BOGUS_INLINES_TEST_CT 1
2200 static tTestDesc aHpux8_Bogus_InlinesTests[] = {
2201 { TT_EGREP, zHpux8_Bogus_InlinesSelect0, (regex_t*)NULL }, };
2202
2203 /*
2204 * Fix Command Arguments for Hpux8_Bogus_Inlines
2205 */
2206 static const char* apzHpux8_Bogus_InlinesPatch[] = { "sed",
2207 "-e", "s@inline int abs(int [a-z][a-z]*) {.*}@extern \"C\" int abs(int);@",
2208 "-e", "s@inline double abs(double [a-z][a-z]*) {.*}@@",
2209 "-e", "s@inline int sqr(int [a-z][a-z]*) {.*}@@",
2210 "-e", "s@inline double sqr(double [a-z][a-z]*) {.*}@@",
2211 (char*)NULL };
2212
2213 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2214 *
2215 * Description of Hpux_Ctype_Macros fix
2216 */
2217 tSCC zHpux_Ctype_MacrosName[] =
2218 "hpux_ctype_macros";
2219
2220 /*
2221 * File name selection pattern
2222 */
2223 tSCC zHpux_Ctype_MacrosList[] =
2224 "|ctype.h|";
2225 /*
2226 * Machine/OS name selection pattern
2227 */
2228 #define apzHpux_Ctype_MacrosMachs (const char**)NULL
2229
2230 /*
2231 * content selection pattern - do fix if pattern found
2232 */
2233 tSCC zHpux_Ctype_MacrosSelect0[] =
2234 "((: |\\()__SB_masks \\? )(__SB_masks\\[__(alnum|c)\\] & _IS)";
2235
2236 #define HPUX_CTYPE_MACROS_TEST_CT 1
2237 static tTestDesc aHpux_Ctype_MacrosTests[] = {
2238 { TT_EGREP, zHpux_Ctype_MacrosSelect0, (regex_t*)NULL }, };
2239
2240 /*
2241 * Fix Command Arguments for Hpux_Ctype_Macros
2242 */
2243 static const char* apzHpux_Ctype_MacrosPatch[] = {
2244 "format",
2245 "%1(int)%3",
2246 (char*)NULL };
2247
2248 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2249 *
2250 * Description of Hpux_Long_Double fix
2251 */
2252 tSCC zHpux_Long_DoubleName[] =
2253 "hpux_long_double";
2254
2255 /*
2256 * File name selection pattern
2257 */
2258 tSCC zHpux_Long_DoubleList[] =
2259 "|stdlib.h|";
2260 /*
2261 * Machine/OS name selection pattern
2262 */
2263 #define apzHpux_Long_DoubleMachs (const char**)NULL
2264
2265 /*
2266 * content selection pattern - do fix if pattern found
2267 */
2268 tSCC zHpux_Long_DoubleSelect0[] =
2269 "extern[ \t]long_double[ \t]strtold";
2270
2271 /*
2272 * content bypass pattern - skip fix if pattern found
2273 */
2274 tSCC zHpux_Long_DoubleBypass0[] =
2275 "long_double_t";
2276
2277 #define HPUX_LONG_DOUBLE_TEST_CT 2
2278 static tTestDesc aHpux_Long_DoubleTests[] = {
2279 { TT_NEGREP, zHpux_Long_DoubleBypass0, (regex_t*)NULL },
2280 { TT_EGREP, zHpux_Long_DoubleSelect0, (regex_t*)NULL }, };
2281
2282 /*
2283 * Fix Command Arguments for Hpux_Long_Double
2284 */
2285 static const char* apzHpux_Long_DoublePatch[] = { "sed",
2286 "-e", "/^#[ \t]*ifndef _LONG_DOUBLE/,/\\/\\* _LONG_DOUBLE \\*\\//D",
2287 "-e", "s/long_double/long double/g",
2288 (char*)NULL };
2289
2290 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2291 *
2292 * Description of Hpux_Maxint fix
2293 */
2294 tSCC zHpux_MaxintName[] =
2295 "hpux_maxint";
2296
2297 /*
2298 * File name selection pattern
2299 */
2300 tSCC zHpux_MaxintList[] =
2301 "|sys/param.h|values.h|";
2302 /*
2303 * Machine/OS name selection pattern
2304 */
2305 #define apzHpux_MaxintMachs (const char**)NULL
2306
2307 /*
2308 * content selection pattern - do fix if pattern found
2309 */
2310 tSCC zHpux_MaxintSelect0[] =
2311 "^#[ \t]*define[ \t]+MAXINT[ \t]";
2312
2313 /*
2314 * content bypass pattern - skip fix if pattern found
2315 */
2316 tSCC zHpux_MaxintBypass0[] =
2317 "^#[ \t]*ifndef[ \t]+MAXINT";
2318
2319 /*
2320 * perform the 'test' shell command - do fix on success
2321 */
2322 tSCC zHpux_MaxintTest0[] =
2323 "-n \"`egrep '#[ \t]*define[ \t]+MAXINT[ \t]' sys/param.h`\"";
2324
2325 #define HPUX_MAXINT_TEST_CT 3
2326 static tTestDesc aHpux_MaxintTests[] = {
2327 { TT_TEST, zHpux_MaxintTest0, 0 /* unused */ },
2328 { TT_NEGREP, zHpux_MaxintBypass0, (regex_t*)NULL },
2329 { TT_EGREP, zHpux_MaxintSelect0, (regex_t*)NULL }, };
2330
2331 /*
2332 * Fix Command Arguments for Hpux_Maxint
2333 */
2334 static const char* apzHpux_MaxintPatch[] = {
2335 "format",
2336 "#ifndef MAXINT\n\
2337 %0\n\
2338 #endif",
2339 "^#[ \t]*define[ \t]+MAXINT[ \t].*",
2340 (char*)NULL };
2341
2342 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2343 *
2344 * Description of Hpux_Systime fix
2345 */
2346 tSCC zHpux_SystimeName[] =
2347 "hpux_systime";
2348
2349 /*
2350 * File name selection pattern
2351 */
2352 tSCC zHpux_SystimeList[] =
2353 "|sys/time.h|";
2354 /*
2355 * Machine/OS name selection pattern
2356 */
2357 #define apzHpux_SystimeMachs (const char**)NULL
2358
2359 /*
2360 * content selection pattern - do fix if pattern found
2361 */
2362 tSCC zHpux_SystimeSelect0[] =
2363 "^extern struct sigevent;";
2364
2365 #define HPUX_SYSTIME_TEST_CT 1
2366 static tTestDesc aHpux_SystimeTests[] = {
2367 { TT_EGREP, zHpux_SystimeSelect0, (regex_t*)NULL }, };
2368
2369 /*
2370 * Fix Command Arguments for Hpux_Systime
2371 */
2372 static const char* apzHpux_SystimePatch[] = {
2373 "format",
2374 "struct sigevent;",
2375 (char*)NULL };
2376
2377 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2378 *
2379 * Description of Int_Abort_Free_And_Exit fix
2380 */
2381 tSCC zInt_Abort_Free_And_ExitName[] =
2382 "int_abort_free_and_exit";
2383
2384 /*
2385 * File name selection pattern
2386 */
2387 tSCC zInt_Abort_Free_And_ExitList[] =
2388 "|stdlib.h|";
2389 /*
2390 * Machine/OS name selection pattern
2391 */
2392 #define apzInt_Abort_Free_And_ExitMachs (const char**)NULL
2393
2394 /*
2395 * content selection pattern - do fix if pattern found
2396 */
2397 tSCC zInt_Abort_Free_And_ExitSelect0[] =
2398 "int[ \t]+(abort|free|exit)[ \t]*\\(";
2399
2400 #define INT_ABORT_FREE_AND_EXIT_TEST_CT 1
2401 static tTestDesc aInt_Abort_Free_And_ExitTests[] = {
2402 { TT_EGREP, zInt_Abort_Free_And_ExitSelect0, (regex_t*)NULL }, };
2403
2404 /*
2405 * Fix Command Arguments for Int_Abort_Free_And_Exit
2406 */
2407 static const char* apzInt_Abort_Free_And_ExitPatch[] = {
2408 "format",
2409 "void\t%1(",
2410 (char*)NULL };
2411
2412 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2413 *
2414 * Description of Io_Quotes_Def fix
2415 */
2416 tSCC zIo_Quotes_DefName[] =
2417 "io_quotes_def";
2418
2419 /*
2420 * File name selection pattern
2421 */
2422 #define zIo_Quotes_DefList (char*)NULL
2423 /*
2424 * Machine/OS name selection pattern
2425 */
2426 #define apzIo_Quotes_DefMachs (const char**)NULL
2427
2428 /*
2429 * content selection pattern - do fix if pattern found
2430 */
2431 tSCC zIo_Quotes_DefSelect0[] =
2432 "define[ \t]+[A-Z0-9_]+IO[A-Z]*\\([a-zA-Z][,)]";
2433
2434 #define IO_QUOTES_DEF_TEST_CT 1
2435 static tTestDesc aIo_Quotes_DefTests[] = {
2436 { TT_EGREP, zIo_Quotes_DefSelect0, (regex_t*)NULL }, };
2437
2438 /*
2439 * Fix Command Arguments for Io_Quotes_Def
2440 */
2441 static const char* apzIo_Quotes_DefPatch[] = {
2442 "char_macro_def",
2443 "IO",
2444 (char*)NULL };
2445
2446 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2447 *
2448 * Description of Io_Quotes_Use fix
2449 */
2450 tSCC zIo_Quotes_UseName[] =
2451 "io_quotes_use";
2452
2453 /*
2454 * File name selection pattern
2455 */
2456 #define zIo_Quotes_UseList (char*)NULL
2457 /*
2458 * Machine/OS name selection pattern
2459 */
2460 #define apzIo_Quotes_UseMachs (const char**)NULL
2461
2462 /*
2463 * content selection pattern - do fix if pattern found
2464 */
2465 tSCC zIo_Quotes_UseSelect0[] =
2466 "define[ \t]+[A-Z0-9_]+[ \t]+[A-Z0-9_]+IO[A-Z]*[ \t]*\\( *[^,']";
2467
2468 #define IO_QUOTES_USE_TEST_CT 1
2469 static tTestDesc aIo_Quotes_UseTests[] = {
2470 { TT_EGREP, zIo_Quotes_UseSelect0, (regex_t*)NULL }, };
2471
2472 /*
2473 * Fix Command Arguments for Io_Quotes_Use
2474 */
2475 static const char* apzIo_Quotes_UsePatch[] = {
2476 "char_macro_use",
2477 "IO",
2478 (char*)NULL };
2479
2480 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2481 *
2482 * Description of Ip_Missing_Semi fix
2483 */
2484 tSCC zIp_Missing_SemiName[] =
2485 "ip_missing_semi";
2486
2487 /*
2488 * File name selection pattern
2489 */
2490 tSCC zIp_Missing_SemiList[] =
2491 "|netinet/ip.h|";
2492 /*
2493 * Machine/OS name selection pattern
2494 */
2495 #define apzIp_Missing_SemiMachs (const char**)NULL
2496
2497 /*
2498 * content selection pattern - do fix if pattern found
2499 */
2500 tSCC zIp_Missing_SemiSelect0[] =
2501 "}$";
2502
2503 #define IP_MISSING_SEMI_TEST_CT 1
2504 static tTestDesc aIp_Missing_SemiTests[] = {
2505 { TT_EGREP, zIp_Missing_SemiSelect0, (regex_t*)NULL }, };
2506
2507 /*
2508 * Fix Command Arguments for Ip_Missing_Semi
2509 */
2510 static const char* apzIp_Missing_SemiPatch[] = { "sed",
2511 "-e", "/^struct/,/^};/s/}$/};/",
2512 (char*)NULL };
2513
2514 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2515 *
2516 * Description of Irix___Restrict fix
2517 */
2518 tSCC zIrix___RestrictName[] =
2519 "irix___restrict";
2520
2521 /*
2522 * File name selection pattern
2523 */
2524 tSCC zIrix___RestrictList[] =
2525 "|internal/sgimacros.h|";
2526 /*
2527 * Machine/OS name selection pattern
2528 */
2529 tSCC* apzIrix___RestrictMachs[] = {
2530 "mips-sgi-irix6.5",
2531 (const char*)NULL };
2532
2533 /*
2534 * content selection pattern - do fix if pattern found
2535 */
2536 tSCC zIrix___RestrictSelect0[] =
2537 "(#ifdef __c99\n\
2538 )(#[ \t]*define __restrict restrict)";
2539
2540 #define IRIX___RESTRICT_TEST_CT 1
2541 static tTestDesc aIrix___RestrictTests[] = {
2542 { TT_EGREP, zIrix___RestrictSelect0, (regex_t*)NULL }, };
2543
2544 /*
2545 * Fix Command Arguments for Irix___Restrict
2546 */
2547 static const char* apzIrix___RestrictPatch[] = {
2548 "format",
2549 "%1# ifndef __cplusplus\n\
2550 %2\n\
2551 # endif",
2552 (char*)NULL };
2553
2554 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2555 *
2556 * Description of Irix_Asm_Apostrophe fix
2557 */
2558 tSCC zIrix_Asm_ApostropheName[] =
2559 "irix_asm_apostrophe";
2560
2561 /*
2562 * File name selection pattern
2563 */
2564 tSCC zIrix_Asm_ApostropheList[] =
2565 "|sys/asm.h|";
2566 /*
2567 * Machine/OS name selection pattern
2568 */
2569 #define apzIrix_Asm_ApostropheMachs (const char**)NULL
2570
2571 /*
2572 * content selection pattern - do fix if pattern found
2573 */
2574 tSCC zIrix_Asm_ApostropheSelect0[] =
2575 "^[ \t]*#.*[Ww]e're";
2576
2577 #define IRIX_ASM_APOSTROPHE_TEST_CT 1
2578 static tTestDesc aIrix_Asm_ApostropheTests[] = {
2579 { TT_EGREP, zIrix_Asm_ApostropheSelect0, (regex_t*)NULL }, };
2580
2581 /*
2582 * Fix Command Arguments for Irix_Asm_Apostrophe
2583 */
2584 static const char* apzIrix_Asm_ApostrophePatch[] = {
2585 "format",
2586 "%1 are",
2587 "^([ \t]*#.*[Ww]e)'re",
2588 (char*)NULL };
2589
2590 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2591 *
2592 * Description of Irix_Limits_Const fix
2593 */
2594 tSCC zIrix_Limits_ConstName[] =
2595 "irix_limits_const";
2596
2597 /*
2598 * File name selection pattern
2599 */
2600 tSCC zIrix_Limits_ConstList[] =
2601 "|fixinc-test-limits.h|limits.h|";
2602 /*
2603 * Machine/OS name selection pattern
2604 */
2605 #define apzIrix_Limits_ConstMachs (const char**)NULL
2606
2607 /*
2608 * content selection pattern - do fix if pattern found
2609 */
2610 tSCC zIrix_Limits_ConstSelect0[] =
2611 "^extern const ";
2612
2613 #define IRIX_LIMITS_CONST_TEST_CT 1
2614 static tTestDesc aIrix_Limits_ConstTests[] = {
2615 { TT_EGREP, zIrix_Limits_ConstSelect0, (regex_t*)NULL }, };
2616
2617 /*
2618 * Fix Command Arguments for Irix_Limits_Const
2619 */
2620 static const char* apzIrix_Limits_ConstPatch[] = {
2621 "format",
2622 "extern __const ",
2623 (char*)NULL };
2624
2625 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2626 *
2627 * Description of Irix_Socklen_T fix
2628 */
2629 tSCC zIrix_Socklen_TName[] =
2630 "irix_socklen_t";
2631
2632 /*
2633 * File name selection pattern
2634 */
2635 tSCC zIrix_Socklen_TList[] =
2636 "|sys/socket.h|";
2637 /*
2638 * Machine/OS name selection pattern
2639 */
2640 tSCC* apzIrix_Socklen_TMachs[] = {
2641 "mips-sgi-irix6.5",
2642 (const char*)NULL };
2643
2644 /*
2645 * content selection pattern - do fix if pattern found
2646 */
2647 tSCC zIrix_Socklen_TSelect0[] =
2648 "(#define _SOCKLEN_T\n\
2649 )(typedef u_int32_t socklen_t;)";
2650
2651 #define IRIX_SOCKLEN_T_TEST_CT 1
2652 static tTestDesc aIrix_Socklen_TTests[] = {
2653 { TT_EGREP, zIrix_Socklen_TSelect0, (regex_t*)NULL }, };
2654
2655 /*
2656 * Fix Command Arguments for Irix_Socklen_T
2657 */
2658 static const char* apzIrix_Socklen_TPatch[] = {
2659 "format",
2660 "%1#if _NO_XOPEN4 && _NO_XOPEN5\n\
2661 typedef int socklen_t;\n\
2662 #else\n\
2663 %2\n\
2664 #endif /* _NO_XOPEN4 && _NO_XOPEN5 */",
2665 (char*)NULL };
2666
2667 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2668 *
2669 * Description of Irix_Stdio_Va_List fix
2670 */
2671 tSCC zIrix_Stdio_Va_ListName[] =
2672 "irix_stdio_va_list";
2673
2674 /*
2675 * File name selection pattern
2676 */
2677 tSCC zIrix_Stdio_Va_ListList[] =
2678 "|stdio.h|internal/stdio_core.h|";
2679 /*
2680 * Machine/OS name selection pattern
2681 */
2682 #define apzIrix_Stdio_Va_ListMachs (const char**)NULL
2683
2684 /*
2685 * content selection pattern - do fix if pattern found
2686 */
2687 tSCC zIrix_Stdio_Va_ListSelect0[] =
2688 "/\\* va_list \\*/ char \\*";
2689
2690 #define IRIX_STDIO_VA_LIST_TEST_CT 1
2691 static tTestDesc aIrix_Stdio_Va_ListTests[] = {
2692 { TT_EGREP, zIrix_Stdio_Va_ListSelect0, (regex_t*)NULL }, };
2693
2694 /*
2695 * Fix Command Arguments for Irix_Stdio_Va_List
2696 */
2697 static const char* apzIrix_Stdio_Va_ListPatch[] = {
2698 "format",
2699 "__gnuc_va_list",
2700 (char*)NULL };
2701
2702 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2703 *
2704 * Description of Irix_Wcsftime fix
2705 */
2706 tSCC zIrix_WcsftimeName[] =
2707 "irix_wcsftime";
2708
2709 /*
2710 * File name selection pattern
2711 */
2712 tSCC zIrix_WcsftimeList[] =
2713 "|internal/wchar_core.h|";
2714 /*
2715 * Machine/OS name selection pattern
2716 */
2717 tSCC* apzIrix_WcsftimeMachs[] = {
2718 "mips-sgi-irix6.5",
2719 (const char*)NULL };
2720
2721 /*
2722 * content selection pattern - do fix if pattern found
2723 */
2724 tSCC zIrix_WcsftimeSelect0[] =
2725 "#if _NO_XOPEN5\n\
2726 (extern size_t[ \t]+wcsftime.*const char *.*)";
2727
2728 #define IRIX_WCSFTIME_TEST_CT 1
2729 static tTestDesc aIrix_WcsftimeTests[] = {
2730 { TT_EGREP, zIrix_WcsftimeSelect0, (regex_t*)NULL }, };
2731
2732 /*
2733 * Fix Command Arguments for Irix_Wcsftime
2734 */
2735 static const char* apzIrix_WcsftimePatch[] = {
2736 "format",
2737 "#if _NO_XOPEN5 && !defined(__c99)\n\
2738 %1",
2739 (char*)NULL };
2740
2741 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2742 *
2743 * Description of Isc_Fmod fix
2744 */
2745 tSCC zIsc_FmodName[] =
2746 "isc_fmod";
2747
2748 /*
2749 * File name selection pattern
2750 */
2751 tSCC zIsc_FmodList[] =
2752 "|math.h|";
2753 /*
2754 * Machine/OS name selection pattern
2755 */
2756 #define apzIsc_FmodMachs (const char**)NULL
2757
2758 /*
2759 * content selection pattern - do fix if pattern found
2760 */
2761 tSCC zIsc_FmodSelect0[] =
2762 "fmod\\(double\\)";
2763
2764 #define ISC_FMOD_TEST_CT 1
2765 static tTestDesc aIsc_FmodTests[] = {
2766 { TT_EGREP, zIsc_FmodSelect0, (regex_t*)NULL }, };
2767
2768 /*
2769 * Fix Command Arguments for Isc_Fmod
2770 */
2771 static const char* apzIsc_FmodPatch[] = {
2772 "format",
2773 "fmod(double, double)",
2774 (char*)NULL };
2775
2776 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2777 *
2778 * Description of Isc_Omits_With_Stdc fix
2779 */
2780 tSCC zIsc_Omits_With_StdcName[] =
2781 "isc_omits_with_stdc";
2782
2783 /*
2784 * File name selection pattern
2785 */
2786 tSCC zIsc_Omits_With_StdcList[] =
2787 "|stdio.h|math.h|ctype.h|sys/limits.h|sys/fcntl.h|sys/dirent.h|";
2788 /*
2789 * Machine/OS name selection pattern
2790 */
2791 #define apzIsc_Omits_With_StdcMachs (const char**)NULL
2792
2793 /*
2794 * content selection pattern - do fix if pattern found
2795 */
2796 tSCC zIsc_Omits_With_StdcSelect0[] =
2797 "!defined\\(__STDC__\\) && !defined\\(_POSIX_SOURCE\\)";
2798
2799 #define ISC_OMITS_WITH_STDC_TEST_CT 1
2800 static tTestDesc aIsc_Omits_With_StdcTests[] = {
2801 { TT_EGREP, zIsc_Omits_With_StdcSelect0, (regex_t*)NULL }, };
2802
2803 /*
2804 * Fix Command Arguments for Isc_Omits_With_Stdc
2805 */
2806 static const char* apzIsc_Omits_With_StdcPatch[] = {
2807 "format",
2808 "!defined(_POSIX_SOURCE)",
2809 (char*)NULL };
2810
2811 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2812 *
2813 * Description of Kandr_Concat fix
2814 */
2815 tSCC zKandr_ConcatName[] =
2816 "kandr_concat";
2817
2818 /*
2819 * File name selection pattern
2820 */
2821 tSCC zKandr_ConcatList[] =
2822 "|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|";
2823 /*
2824 * Machine/OS name selection pattern
2825 */
2826 #define apzKandr_ConcatMachs (const char**)NULL
2827
2828 /*
2829 * content selection pattern - do fix if pattern found
2830 */
2831 tSCC zKandr_ConcatSelect0[] =
2832 "/\\*\\*/";
2833
2834 #define KANDR_CONCAT_TEST_CT 1
2835 static tTestDesc aKandr_ConcatTests[] = {
2836 { TT_EGREP, zKandr_ConcatSelect0, (regex_t*)NULL }, };
2837
2838 /*
2839 * Fix Command Arguments for Kandr_Concat
2840 */
2841 static const char* apzKandr_ConcatPatch[] = {
2842 "format",
2843 "##",
2844 (char*)NULL };
2845
2846 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2847 *
2848 * Description of Libc1_G_Va_List fix
2849 */
2850 tSCC zLibc1_G_Va_ListName[] =
2851 "libc1_G_va_list";
2852
2853 /*
2854 * File name selection pattern
2855 */
2856 tSCC zLibc1_G_Va_ListList[] =
2857 "|_G_config.h|";
2858 /*
2859 * Machine/OS name selection pattern
2860 */
2861 tSCC* apzLibc1_G_Va_ListMachs[] = {
2862 "*-*-linux*libc1",
2863 (const char*)NULL };
2864
2865 /*
2866 * content selection pattern - do fix if pattern found
2867 */
2868 tSCC zLibc1_G_Va_ListSelect0[] =
2869 "typedef void \\* _G_va_list;";
2870
2871 #define LIBC1_G_VA_LIST_TEST_CT 1
2872 static tTestDesc aLibc1_G_Va_ListTests[] = {
2873 { TT_EGREP, zLibc1_G_Va_ListSelect0, (regex_t*)NULL }, };
2874
2875 /*
2876 * Fix Command Arguments for Libc1_G_Va_List
2877 */
2878 static const char* apzLibc1_G_Va_ListPatch[] = {
2879 "format",
2880 "typedef __builtin_va_list _G_va_list;",
2881 (char*)NULL };
2882
2883 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2884 *
2885 * Description of Libc1_Ifdefd_Memx fix
2886 */
2887 tSCC zLibc1_Ifdefd_MemxName[] =
2888 "libc1_ifdefd_memx";
2889
2890 /*
2891 * File name selection pattern
2892 */
2893 tSCC zLibc1_Ifdefd_MemxList[] =
2894 "|testing.h|string.h|";
2895 /*
2896 * Machine/OS name selection pattern
2897 */
2898 #define apzLibc1_Ifdefd_MemxMachs (const char**)NULL
2899
2900 /*
2901 * content selection pattern - do fix if pattern found
2902 */
2903 tSCC zLibc1_Ifdefd_MemxSelect0[] =
2904 "' is a built-in function for gcc 2\\.x\\. \\*/";
2905
2906 /*
2907 * content bypass pattern - skip fix if pattern found
2908 */
2909 tSCC zLibc1_Ifdefd_MemxBypass0[] =
2910 "__cplusplus";
2911
2912 #define LIBC1_IFDEFD_MEMX_TEST_CT 2
2913 static tTestDesc aLibc1_Ifdefd_MemxTests[] = {
2914 { TT_NEGREP, zLibc1_Ifdefd_MemxBypass0, (regex_t*)NULL },
2915 { TT_EGREP, zLibc1_Ifdefd_MemxSelect0, (regex_t*)NULL }, };
2916
2917 /*
2918 * Fix Command Arguments for Libc1_Ifdefd_Memx
2919 */
2920 static const char* apzLibc1_Ifdefd_MemxPatch[] = {
2921 "format",
2922 "%1",
2923 "/\\* `mem...' is a built-in function for gcc 2\\.x\\. \\*/\n\
2924 #if defined\\(__STDC__\\) && __GNUC__ < 2\n\
2925 (/\\* .* \\*/\n\
2926 extern [a-z_]+ mem.*(\n\
2927 [^#].*)*;)\n\
2928 #endif",
2929 (char*)NULL };
2930
2931 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2932 *
2933 * Description of Limits_Ifndefs fix
2934 */
2935 tSCC zLimits_IfndefsName[] =
2936 "limits_ifndefs";
2937
2938 /*
2939 * File name selection pattern
2940 */
2941 tSCC zLimits_IfndefsList[] =
2942 "|sys/limits.h|limits.h|";
2943 /*
2944 * Machine/OS name selection pattern
2945 */
2946 #define apzLimits_IfndefsMachs (const char**)NULL
2947
2948 /*
2949 * content selection pattern - do fix if pattern found
2950 */
2951 tSCC zLimits_IfndefsSelect0[] =
2952 "^[ \t]*#[ \t]*define[ \t]+((FLT|DBL)_(MIN|MAX|DIG))[ \t].*";
2953
2954 /*
2955 * content bypass pattern - skip fix if pattern found
2956 */
2957 tSCC zLimits_IfndefsBypass0[] =
2958 "ifndef[ \t]+FLT_(MIN|MAX)";
2959
2960 #define LIMITS_IFNDEFS_TEST_CT 2
2961 static tTestDesc aLimits_IfndefsTests[] = {
2962 { TT_NEGREP, zLimits_IfndefsBypass0, (regex_t*)NULL },
2963 { TT_EGREP, zLimits_IfndefsSelect0, (regex_t*)NULL }, };
2964
2965 /*
2966 * Fix Command Arguments for Limits_Ifndefs
2967 */
2968 static const char* apzLimits_IfndefsPatch[] = {
2969 "format",
2970 "#ifndef %1\n\
2971 %0\n\
2972 #endif",
2973 (char*)NULL };
2974
2975 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2976 *
2977 * Description of Lynx_Void_Int fix
2978 */
2979 tSCC zLynx_Void_IntName[] =
2980 "lynx_void_int";
2981
2982 /*
2983 * File name selection pattern
2984 */
2985 tSCC zLynx_Void_IntList[] =
2986 "|curses.h|";
2987 /*
2988 * Machine/OS name selection pattern
2989 */
2990 #define apzLynx_Void_IntMachs (const char**)NULL
2991
2992 /*
2993 * content selection pattern - do fix if pattern found
2994 */
2995 tSCC zLynx_Void_IntSelect0[] =
2996 "#[ \t]*define[ \t]+void[ \t]+int[ \t]*";
2997
2998 #define LYNX_VOID_INT_TEST_CT 1
2999 static tTestDesc aLynx_Void_IntTests[] = {
3000 { TT_EGREP, zLynx_Void_IntSelect0, (regex_t*)NULL }, };
3001
3002 /*
3003 * Fix Command Arguments for Lynx_Void_Int
3004 */
3005 static const char* apzLynx_Void_IntPatch[] = {
3006 "format",
3007 "",
3008 (char*)NULL };
3009
3010 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3011 *
3012 * Description of Lynxos_Fcntl_Proto fix
3013 */
3014 tSCC zLynxos_Fcntl_ProtoName[] =
3015 "lynxos_fcntl_proto";
3016
3017 /*
3018 * File name selection pattern
3019 */
3020 tSCC zLynxos_Fcntl_ProtoList[] =
3021 "|fcntl.h|";
3022 /*
3023 * Machine/OS name selection pattern
3024 */
3025 #define apzLynxos_Fcntl_ProtoMachs (const char**)NULL
3026
3027 /*
3028 * content selection pattern - do fix if pattern found
3029 */
3030 tSCC zLynxos_Fcntl_ProtoSelect0[] =
3031 "fcntl[ \t]*\\(int, int, int\\)";
3032
3033 #define LYNXOS_FCNTL_PROTO_TEST_CT 1
3034 static tTestDesc aLynxos_Fcntl_ProtoTests[] = {
3035 { TT_EGREP, zLynxos_Fcntl_ProtoSelect0, (regex_t*)NULL }, };
3036
3037 /*
3038 * Fix Command Arguments for Lynxos_Fcntl_Proto
3039 */
3040 static const char* apzLynxos_Fcntl_ProtoPatch[] = {
3041 "format",
3042 "%1...)",
3043 "(fcntl[ \t]*\\(int, int, )int\\)",
3044 (char*)NULL };
3045
3046 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3047 *
3048 * Description of Machine_Ansi_H_Va_List fix
3049 */
3050 tSCC zMachine_Ansi_H_Va_ListName[] =
3051 "machine_ansi_h_va_list";
3052
3053 /*
3054 * File name selection pattern
3055 */
3056 #define zMachine_Ansi_H_Va_ListList (char*)NULL
3057 /*
3058 * Machine/OS name selection pattern
3059 */
3060 #define apzMachine_Ansi_H_Va_ListMachs (const char**)NULL
3061
3062 /*
3063 * content selection pattern - do fix if pattern found
3064 */
3065 tSCC zMachine_Ansi_H_Va_ListSelect0[] =
3066 "define[ \t]+_BSD_VA_LIST_[ \t]";
3067
3068 /*
3069 * content bypass pattern - skip fix if pattern found
3070 */
3071 tSCC zMachine_Ansi_H_Va_ListBypass0[] =
3072 "__builtin_va_list";
3073
3074 #define MACHINE_ANSI_H_VA_LIST_TEST_CT 2
3075 static tTestDesc aMachine_Ansi_H_Va_ListTests[] = {
3076 { TT_NEGREP, zMachine_Ansi_H_Va_ListBypass0, (regex_t*)NULL },
3077 { TT_EGREP, zMachine_Ansi_H_Va_ListSelect0, (regex_t*)NULL }, };
3078
3079 /*
3080 * Fix Command Arguments for Machine_Ansi_H_Va_List
3081 */
3082 static const char* apzMachine_Ansi_H_Va_ListPatch[] = {
3083 "format",
3084 "%1__builtin_va_list",
3085 "(define[ \t]+_BSD_VA_LIST_[ \t]+).*",
3086 (char*)NULL };
3087
3088 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3089 *
3090 * Description of Machine_Name fix
3091 */
3092 tSCC zMachine_NameName[] =
3093 "machine_name";
3094
3095 /*
3096 * File name selection pattern
3097 */
3098 #define zMachine_NameList (char*)NULL
3099 /*
3100 * Machine/OS name selection pattern
3101 */
3102 #define apzMachine_NameMachs (const char**)NULL
3103
3104 /*
3105 * perform the C function call test
3106 */
3107 tSCC zMachine_NameFTst0[] = "machine_name";
3108
3109 #define MACHINE_NAME_TEST_CT 1
3110 static tTestDesc aMachine_NameTests[] = {
3111 { TT_FUNCTION, zMachine_NameFTst0, 0 /* unused */ }, };
3112
3113 /*
3114 * Fix Command Arguments for Machine_Name
3115 */
3116 static const char* apzMachine_NamePatch[] = {
3117 "machine_name",
3118 (char*)NULL };
3119
3120 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3121 *
3122 * Description of Math_Exception fix
3123 */
3124 tSCC zMath_ExceptionName[] =
3125 "math_exception";
3126
3127 /*
3128 * File name selection pattern
3129 */
3130 tSCC zMath_ExceptionList[] =
3131 "|math.h|";
3132 /*
3133 * Machine/OS name selection pattern
3134 */
3135 #define apzMath_ExceptionMachs (const char**)NULL
3136
3137 /*
3138 * content selection pattern - do fix if pattern found
3139 */
3140 tSCC zMath_ExceptionSelect0[] =
3141 "struct exception";
3142
3143 /*
3144 * content bypass pattern - skip fix if pattern found
3145 */
3146 tSCC zMath_ExceptionBypass0[] =
3147 "__cplusplus";
3148
3149 #define MATH_EXCEPTION_TEST_CT 2
3150 static tTestDesc aMath_ExceptionTests[] = {
3151 { TT_NEGREP, zMath_ExceptionBypass0, (regex_t*)NULL },
3152 { TT_EGREP, zMath_ExceptionSelect0, (regex_t*)NULL }, };
3153
3154 /*
3155 * Fix Command Arguments for Math_Exception
3156 */
3157 static const char* apzMath_ExceptionPatch[] = {
3158 "wrap",
3159 "#ifdef __cplusplus\n\
3160 #define exception __math_exception\n\
3161 #endif\n",
3162 "#ifdef __cplusplus\n\
3163 #undef exception\n\
3164 #endif\n",
3165 (char*)NULL };
3166
3167 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3168 *
3169 * Description of Math_Huge_Val_From_Dbl_Max fix
3170 */
3171 tSCC zMath_Huge_Val_From_Dbl_MaxName[] =
3172 "math_huge_val_from_dbl_max";
3173
3174 /*
3175 * File name selection pattern
3176 */
3177 tSCC zMath_Huge_Val_From_Dbl_MaxList[] =
3178 "|math.h|";
3179 /*
3180 * Machine/OS name selection pattern
3181 */
3182 #define apzMath_Huge_Val_From_Dbl_MaxMachs (const char**)NULL
3183
3184 /*
3185 * content selection pattern - do fix if pattern found
3186 */
3187 tSCC zMath_Huge_Val_From_Dbl_MaxSelect0[] =
3188 "define[ \t]+HUGE_VAL[ \t]+DBL_MAX";
3189
3190 /*
3191 * content bypass pattern - skip fix if pattern found
3192 */
3193 tSCC zMath_Huge_Val_From_Dbl_MaxBypass0[] =
3194 "define[ \t]+DBL_MAX";
3195
3196 #define MATH_HUGE_VAL_FROM_DBL_MAX_TEST_CT 2
3197 static tTestDesc aMath_Huge_Val_From_Dbl_MaxTests[] = {
3198 { TT_NEGREP, zMath_Huge_Val_From_Dbl_MaxBypass0, (regex_t*)NULL },
3199 { TT_EGREP, zMath_Huge_Val_From_Dbl_MaxSelect0, (regex_t*)NULL }, };
3200
3201 /*
3202 * Fix Command Arguments for Math_Huge_Val_From_Dbl_Max
3203 */
3204 static const char* apzMath_Huge_Val_From_Dbl_MaxPatch[] = { "sh", "-c",
3205 "\tdbl_max_def=`egrep 'define[ \t]+DBL_MAX[ \t]+.*' float.h | sed 's/.*DBL_MAX[ \t]*//' 2>/dev/null`\n\n\
3206 \tif ( test -n \"${dbl_max_def}\" ) > /dev/null 2>&1\n\
3207 \tthen sed -e '/define[ \t]*HUGE_VAL[ \t]*DBL_MAX/s@DBL_MAX@'\"$dbl_max_def@\"\n\
3208 \telse cat\n\
3209 \tfi",
3210 (char*)NULL };
3211
3212 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3213 *
3214 * Description of Math_Huge_Val_Ifndef fix
3215 */
3216 tSCC zMath_Huge_Val_IfndefName[] =
3217 "math_huge_val_ifndef";
3218
3219 /*
3220 * File name selection pattern
3221 */
3222 tSCC zMath_Huge_Val_IfndefList[] =
3223 "|math.h|math/math.h|";
3224 /*
3225 * Machine/OS name selection pattern
3226 */
3227 #define apzMath_Huge_Val_IfndefMachs (const char**)NULL
3228
3229 /*
3230 * content selection pattern - do fix if pattern found
3231 */
3232 tSCC zMath_Huge_Val_IfndefSelect0[] =
3233 "define[ \t]+HUGE_VAL";
3234
3235 #define MATH_HUGE_VAL_IFNDEF_TEST_CT 1
3236 static tTestDesc aMath_Huge_Val_IfndefTests[] = {
3237 { TT_EGREP, zMath_Huge_Val_IfndefSelect0, (regex_t*)NULL }, };
3238
3239 /*
3240 * Fix Command Arguments for Math_Huge_Val_Ifndef
3241 */
3242 static const char* apzMath_Huge_Val_IfndefPatch[] = {
3243 "format",
3244 "#ifndef HUGE_VAL\n\
3245 %0\n\
3246 #endif",
3247 "^[ \t]*#[ \t]*define[ \t]+HUGE_VAL[ \t].*",
3248 (char*)NULL };
3249
3250 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3251 *
3252 * Description of Nested_Auth_Des fix
3253 */
3254 tSCC zNested_Auth_DesName[] =
3255 "nested_auth_des";
3256
3257 /*
3258 * File name selection pattern
3259 */
3260 tSCC zNested_Auth_DesList[] =
3261 "|rpc/rpc.h|";
3262 /*
3263 * Machine/OS name selection pattern
3264 */
3265 #define apzNested_Auth_DesMachs (const char**)NULL
3266
3267 /*
3268 * content selection pattern - do fix if pattern found
3269 */
3270 tSCC zNested_Auth_DesSelect0[] =
3271 "(/\\*.*rpc/auth_des\\.h>.*)/\\*";
3272
3273 #define NESTED_AUTH_DES_TEST_CT 1
3274 static tTestDesc aNested_Auth_DesTests[] = {
3275 { TT_EGREP, zNested_Auth_DesSelect0, (regex_t*)NULL }, };
3276
3277 /*
3278 * Fix Command Arguments for Nested_Auth_Des
3279 */
3280 static const char* apzNested_Auth_DesPatch[] = {
3281 "format",
3282 "%1*/ /*",
3283 (char*)NULL };
3284
3285 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3286 *
3287 * Description of Nested_Motorola fix
3288 */
3289 tSCC zNested_MotorolaName[] =
3290 "nested_motorola";
3291
3292 /*
3293 * File name selection pattern
3294 */
3295 tSCC zNested_MotorolaList[] =
3296 "|sys/limits.h|limits.h|";
3297 /*
3298 * Machine/OS name selection pattern
3299 */
3300 tSCC* apzNested_MotorolaMachs[] = {
3301 "m68k-motorola-sysv*",
3302 (const char*)NULL };
3303
3304 /*
3305 * content selection pattern - do fix if pattern found
3306 */
3307 tSCC zNested_MotorolaSelect0[] =
3308 "max # bytes atomic in write|error value returned by Math lib";
3309
3310 #define NESTED_MOTOROLA_TEST_CT 1
3311 static tTestDesc aNested_MotorolaTests[] = {
3312 { TT_EGREP, zNested_MotorolaSelect0, (regex_t*)NULL }, };
3313
3314 /*
3315 * Fix Command Arguments for Nested_Motorola
3316 */
3317 static const char* apzNested_MotorolaPatch[] = { "sed",
3318 "-e", "s@^\\(#undef[ \t][ \t]*PIPE_BUF[ \t]*/\\* max # bytes atomic in write to a\\)$@\\1 */@",
3319 "-e", "s@\\(/\\*#define\tHUGE_VAL\t3.[0-9e+]* \\)\\(/\\*error value returned by Math lib\\*/\\)$@\\1*/ \\2@",
3320 (char*)NULL };
3321
3322 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3323 *
3324 * Description of Nested_Sys_Limits fix
3325 */
3326 tSCC zNested_Sys_LimitsName[] =
3327 "nested_sys_limits";
3328
3329 /*
3330 * File name selection pattern
3331 */
3332 tSCC zNested_Sys_LimitsList[] =
3333 "|sys/limits.h|";
3334 /*
3335 * Machine/OS name selection pattern
3336 */
3337 #define apzNested_Sys_LimitsMachs (const char**)NULL
3338
3339 /*
3340 * content selection pattern - do fix if pattern found
3341 */
3342 tSCC zNested_Sys_LimitsSelect0[] =
3343 "CHILD_MAX";
3344
3345 #define NESTED_SYS_LIMITS_TEST_CT 1
3346 static tTestDesc aNested_Sys_LimitsTests[] = {
3347 { TT_EGREP, zNested_Sys_LimitsSelect0, (regex_t*)NULL }, };
3348
3349 /*
3350 * Fix Command Arguments for Nested_Sys_Limits
3351 */
3352 static const char* apzNested_Sys_LimitsPatch[] = { "sed",
3353 "-e", "/CHILD_MAX/s,/\\* Max, Max,",
3354 "-e", "/OPEN_MAX/s,/\\* Max, Max,",
3355 (char*)NULL };
3356
3357 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3358 *
3359 * Description of Netbsd_Extra_Semicolon fix
3360 */
3361 tSCC zNetbsd_Extra_SemicolonName[] =
3362 "netbsd_extra_semicolon";
3363
3364 /*
3365 * File name selection pattern
3366 */
3367 tSCC zNetbsd_Extra_SemicolonList[] =
3368 "|sys/cdefs.h|";
3369 /*
3370 * Machine/OS name selection pattern
3371 */
3372 tSCC* apzNetbsd_Extra_SemicolonMachs[] = {
3373 "*-*-netbsd*",
3374 (const char*)NULL };
3375
3376 /*
3377 * content selection pattern - do fix if pattern found
3378 */
3379 tSCC zNetbsd_Extra_SemicolonSelect0[] =
3380 "#define[ \t]*__END_DECLS[ \t]*};";
3381
3382 #define NETBSD_EXTRA_SEMICOLON_TEST_CT 1
3383 static tTestDesc aNetbsd_Extra_SemicolonTests[] = {
3384 { TT_EGREP, zNetbsd_Extra_SemicolonSelect0, (regex_t*)NULL }, };
3385
3386 /*
3387 * Fix Command Arguments for Netbsd_Extra_Semicolon
3388 */
3389 static const char* apzNetbsd_Extra_SemicolonPatch[] = {
3390 "format",
3391 "#define __END_DECLS }",
3392 (char*)NULL };
3393
3394 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3395 *
3396 * Description of Next_Math_Prefix fix
3397 */
3398 tSCC zNext_Math_PrefixName[] =
3399 "next_math_prefix";
3400
3401 /*
3402 * File name selection pattern
3403 */
3404 tSCC zNext_Math_PrefixList[] =
3405 "|ansi/math.h|";
3406 /*
3407 * Machine/OS name selection pattern
3408 */
3409 #define apzNext_Math_PrefixMachs (const char**)NULL
3410
3411 /*
3412 * content selection pattern - do fix if pattern found
3413 */
3414 tSCC zNext_Math_PrefixSelect0[] =
3415 "^extern[ \t]+double[ \t]+__const__[ \t]";
3416
3417 #define NEXT_MATH_PREFIX_TEST_CT 1
3418 static tTestDesc aNext_Math_PrefixTests[] = {
3419 { TT_EGREP, zNext_Math_PrefixSelect0, (regex_t*)NULL }, };
3420
3421 /*
3422 * Fix Command Arguments for Next_Math_Prefix
3423 */
3424 static const char* apzNext_Math_PrefixPatch[] = {
3425 "format",
3426 "extern double %1(",
3427 "^extern[ \t]+double[ \t]+__const__[ \t]+([a-z]+)\\(",
3428 (char*)NULL };
3429
3430 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3431 *
3432 * Description of Next_Template fix
3433 */
3434 tSCC zNext_TemplateName[] =
3435 "next_template";
3436
3437 /*
3438 * File name selection pattern
3439 */
3440 tSCC zNext_TemplateList[] =
3441 "|bsd/libc.h|";
3442 /*
3443 * Machine/OS name selection pattern
3444 */
3445 #define apzNext_TemplateMachs (const char**)NULL
3446
3447 /*
3448 * content selection pattern - do fix if pattern found
3449 */
3450 tSCC zNext_TemplateSelect0[] =
3451 "[ \t]template\\)";
3452
3453 #define NEXT_TEMPLATE_TEST_CT 1
3454 static tTestDesc aNext_TemplateTests[] = {
3455 { TT_EGREP, zNext_TemplateSelect0, (regex_t*)NULL }, };
3456
3457 /*
3458 * Fix Command Arguments for Next_Template
3459 */
3460 static const char* apzNext_TemplatePatch[] = {
3461 "format",
3462 "(%1)",
3463 "\\(([^)]*)[ \t]template\\)",
3464 (char*)NULL };
3465
3466 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3467 *
3468 * Description of Next_Volitile fix
3469 */
3470 tSCC zNext_VolitileName[] =
3471 "next_volitile";
3472
3473 /*
3474 * File name selection pattern
3475 */
3476 tSCC zNext_VolitileList[] =
3477 "|ansi/stdlib.h|";
3478 /*
3479 * Machine/OS name selection pattern
3480 */
3481 #define apzNext_VolitileMachs (const char**)NULL
3482
3483 /*
3484 * content selection pattern - do fix if pattern found
3485 */
3486 tSCC zNext_VolitileSelect0[] =
3487 "^extern[ \t]+volatile[ \t]+void[ \t]";
3488
3489 #define NEXT_VOLITILE_TEST_CT 1
3490 static tTestDesc aNext_VolitileTests[] = {
3491 { TT_EGREP, zNext_VolitileSelect0, (regex_t*)NULL }, };
3492
3493 /*
3494 * Fix Command Arguments for Next_Volitile
3495 */
3496 static const char* apzNext_VolitilePatch[] = {
3497 "format",
3498 "extern void %1(",
3499 "^extern[ \t]+volatile[ \t]+void[ \t]+(exit|abort)\\(",
3500 (char*)NULL };
3501
3502 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3503 *
3504 * Description of Next_Wait_Union fix
3505 */
3506 tSCC zNext_Wait_UnionName[] =
3507 "next_wait_union";
3508
3509 /*
3510 * File name selection pattern
3511 */
3512 tSCC zNext_Wait_UnionList[] =
3513 "|sys/wait.h|";
3514 /*
3515 * Machine/OS name selection pattern
3516 */
3517 #define apzNext_Wait_UnionMachs (const char**)NULL
3518
3519 /*
3520 * content selection pattern - do fix if pattern found
3521 */
3522 tSCC zNext_Wait_UnionSelect0[] =
3523 "wait\\(union wait";
3524
3525 #define NEXT_WAIT_UNION_TEST_CT 1
3526 static tTestDesc aNext_Wait_UnionTests[] = {
3527 { TT_EGREP, zNext_Wait_UnionSelect0, (regex_t*)NULL }, };
3528
3529 /*
3530 * Fix Command Arguments for Next_Wait_Union
3531 */
3532 static const char* apzNext_Wait_UnionPatch[] = {
3533 "format",
3534 "wait(void",
3535 (char*)NULL };
3536
3537 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3538 *
3539 * Description of Nodeent_Syntax fix
3540 */
3541 tSCC zNodeent_SyntaxName[] =
3542 "nodeent_syntax";
3543
3544 /*
3545 * File name selection pattern
3546 */
3547 tSCC zNodeent_SyntaxList[] =
3548 "|netdnet/dnetdb.h|";
3549 /*
3550 * Machine/OS name selection pattern
3551 */
3552 #define apzNodeent_SyntaxMachs (const char**)NULL
3553
3554 /*
3555 * content selection pattern - do fix if pattern found
3556 */
3557 tSCC zNodeent_SyntaxSelect0[] =
3558 "char[ \t]*\\*na_addr[ \t]*$";
3559
3560 #define NODEENT_SYNTAX_TEST_CT 1
3561 static tTestDesc aNodeent_SyntaxTests[] = {
3562 { TT_EGREP, zNodeent_SyntaxSelect0, (regex_t*)NULL }, };
3563
3564 /*
3565 * Fix Command Arguments for Nodeent_Syntax
3566 */
3567 static const char* apzNodeent_SyntaxPatch[] = {
3568 "format",
3569 "%0;",
3570 (char*)NULL };
3571
3572 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3573 *
3574 * Description of Obstack_Lvalue_Cast fix
3575 */
3576 tSCC zObstack_Lvalue_CastName[] =
3577 "obstack_lvalue_cast";
3578
3579 /*
3580 * File name selection pattern
3581 */
3582 tSCC zObstack_Lvalue_CastList[] =
3583 "|obstack.h|";
3584 /*
3585 * Machine/OS name selection pattern
3586 */
3587 #define apzObstack_Lvalue_CastMachs (const char**)NULL
3588
3589 /*
3590 * content selection pattern - do fix if pattern found
3591 */
3592 tSCC zObstack_Lvalue_CastSelect0[] =
3593 "\\*\\(\\(([^()]*)\\*\\)(.*)\\)\\+\\+ = \\(([^()]*)\\)";
3594
3595 #define OBSTACK_LVALUE_CAST_TEST_CT 1
3596 static tTestDesc aObstack_Lvalue_CastTests[] = {
3597 { TT_EGREP, zObstack_Lvalue_CastSelect0, (regex_t*)NULL }, };
3598
3599 /*
3600 * Fix Command Arguments for Obstack_Lvalue_Cast
3601 */
3602 static const char* apzObstack_Lvalue_CastPatch[] = {
3603 "format",
3604 "((*((%1*)%2) = (%3)), (%2 += sizeof (%1)))",
3605 (char*)NULL };
3606
3607 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3608 *
3609 * Description of Osf_Namespace_A fix
3610 */
3611 tSCC zOsf_Namespace_AName[] =
3612 "osf_namespace_a";
3613
3614 /*
3615 * File name selection pattern
3616 */
3617 tSCC zOsf_Namespace_AList[] =
3618 "|reg_types.h|sys/lc_core.h|";
3619 /*
3620 * Machine/OS name selection pattern
3621 */
3622 #define apzOsf_Namespace_AMachs (const char**)NULL
3623
3624 /*
3625 * perform the 'test' shell command - do fix on success
3626 */
3627 tSCC zOsf_Namespace_ATest0[] =
3628 " -r reg_types.h";
3629 tSCC zOsf_Namespace_ATest1[] =
3630 " -r sys/lc_core.h";
3631 tSCC zOsf_Namespace_ATest2[] =
3632 " -n \"`grep '} regex_t;' reg_types.h`\"";
3633 tSCC zOsf_Namespace_ATest3[] =
3634 " -z \"`grep __regex_t regex.h`\"";
3635
3636 #define OSF_NAMESPACE_A_TEST_CT 4
3637 static tTestDesc aOsf_Namespace_ATests[] = {
3638 { TT_TEST, zOsf_Namespace_ATest0, 0 /* unused */ },
3639 { TT_TEST, zOsf_Namespace_ATest1, 0 /* unused */ },
3640 { TT_TEST, zOsf_Namespace_ATest2, 0 /* unused */ },
3641 { TT_TEST, zOsf_Namespace_ATest3, 0 /* unused */ }, };
3642
3643 /*
3644 * Fix Command Arguments for Osf_Namespace_A
3645 */
3646 static const char* apzOsf_Namespace_APatch[] = {
3647 "format",
3648 "__%0",
3649 "reg(ex|off|match)_t",
3650 (char*)NULL };
3651
3652 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3653 *
3654 * Description of Osf_Namespace_C fix
3655 */
3656 tSCC zOsf_Namespace_CName[] =
3657 "osf_namespace_c";
3658
3659 /*
3660 * File name selection pattern
3661 */
3662 tSCC zOsf_Namespace_CList[] =
3663 "|regex.h|";
3664 /*
3665 * Machine/OS name selection pattern
3666 */
3667 #define apzOsf_Namespace_CMachs (const char**)NULL
3668
3669 /*
3670 * content selection pattern - do fix if pattern found
3671 */
3672 tSCC zOsf_Namespace_CSelect0[] =
3673 "#include <reg_types.h>.*";
3674
3675 /*
3676 * perform the 'test' shell command - do fix on success
3677 */
3678 tSCC zOsf_Namespace_CTest0[] =
3679 " -r reg_types.h";
3680 tSCC zOsf_Namespace_CTest1[] =
3681 " -r sys/lc_core.h";
3682 tSCC zOsf_Namespace_CTest2[] =
3683 " -n \"`grep '} regex_t;' reg_types.h`\"";
3684 tSCC zOsf_Namespace_CTest3[] =
3685 " -z \"`grep __regex_t regex.h`\"";
3686
3687 #define OSF_NAMESPACE_C_TEST_CT 5
3688 static tTestDesc aOsf_Namespace_CTests[] = {
3689 { TT_TEST, zOsf_Namespace_CTest0, 0 /* unused */ },
3690 { TT_TEST, zOsf_Namespace_CTest1, 0 /* unused */ },
3691 { TT_TEST, zOsf_Namespace_CTest2, 0 /* unused */ },
3692 { TT_TEST, zOsf_Namespace_CTest3, 0 /* unused */ },
3693 { TT_EGREP, zOsf_Namespace_CSelect0, (regex_t*)NULL }, };
3694
3695 /*
3696 * Fix Command Arguments for Osf_Namespace_C
3697 */
3698 static const char* apzOsf_Namespace_CPatch[] = {
3699 "format",
3700 "%0\n\
3701 typedef __regex_t\tregex_t;\n\
3702 typedef __regoff_t\tregoff_t;\n\
3703 typedef __regmatch_t\tregmatch_t;",
3704 (char*)NULL };
3705
3706 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3707 *
3708 * Description of Pthread_Page_Size fix
3709 */
3710 tSCC zPthread_Page_SizeName[] =
3711 "pthread_page_size";
3712
3713 /*
3714 * File name selection pattern
3715 */
3716 tSCC zPthread_Page_SizeList[] =
3717 "|pthread.h|";
3718 /*
3719 * Machine/OS name selection pattern
3720 */
3721 #define apzPthread_Page_SizeMachs (const char**)NULL
3722
3723 /*
3724 * content selection pattern - do fix if pattern found
3725 */
3726 tSCC zPthread_Page_SizeSelect0[] =
3727 "^int __page_size";
3728
3729 #define PTHREAD_PAGE_SIZE_TEST_CT 1
3730 static tTestDesc aPthread_Page_SizeTests[] = {
3731 { TT_EGREP, zPthread_Page_SizeSelect0, (regex_t*)NULL }, };
3732
3733 /*
3734 * Fix Command Arguments for Pthread_Page_Size
3735 */
3736 static const char* apzPthread_Page_SizePatch[] = {
3737 "format",
3738 "extern %0",
3739 (char*)NULL };
3740
3741 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3742 *
3743 * Description of Read_Ret_Type fix
3744 */
3745 tSCC zRead_Ret_TypeName[] =
3746 "read_ret_type";
3747
3748 /*
3749 * File name selection pattern
3750 */
3751 tSCC zRead_Ret_TypeList[] =
3752 "|stdio.h|";
3753 /*
3754 * Machine/OS name selection pattern
3755 */
3756 #define apzRead_Ret_TypeMachs (const char**)NULL
3757
3758 /*
3759 * content selection pattern - do fix if pattern found
3760 */
3761 tSCC zRead_Ret_TypeSelect0[] =
3762 "extern int\t.*, fread\\(\\), fwrite\\(\\)";
3763
3764 #define READ_RET_TYPE_TEST_CT 1
3765 static tTestDesc aRead_Ret_TypeTests[] = {
3766 { TT_EGREP, zRead_Ret_TypeSelect0, (regex_t*)NULL }, };
3767
3768 /*
3769 * Fix Command Arguments for Read_Ret_Type
3770 */
3771 static const char* apzRead_Ret_TypePatch[] = {
3772 "format",
3773 "extern unsigned int fread(), fwrite();\n\
3774 %1%2",
3775 "(extern int\t.*), fread\\(\\), fwrite\\(\\)(.*)",
3776 (char*)NULL };
3777
3778 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3779 *
3780 * Description of Rs6000_Double fix
3781 */
3782 tSCC zRs6000_DoubleName[] =
3783 "rs6000_double";
3784
3785 /*
3786 * File name selection pattern
3787 */
3788 tSCC zRs6000_DoubleList[] =
3789 "|math.h|";
3790 /*
3791 * Machine/OS name selection pattern
3792 */
3793 #define apzRs6000_DoubleMachs (const char**)NULL
3794
3795 /*
3796 * content selection pattern - do fix if pattern found
3797 */
3798 tSCC zRs6000_DoubleSelect0[] =
3799 "[^a-zA-Z_]class\\(";
3800
3801 #define RS6000_DOUBLE_TEST_CT 1
3802 static tTestDesc aRs6000_DoubleTests[] = {
3803 { TT_EGREP, zRs6000_DoubleSelect0, (regex_t*)NULL }, };
3804
3805 /*
3806 * Fix Command Arguments for Rs6000_Double
3807 */
3808 static const char* apzRs6000_DoublePatch[] = {
3809 "format",
3810 "#ifndef __cplusplus\n\
3811 %0\n\
3812 #endif",
3813 "^.*[^a-zA-Z_]class\\(.*",
3814 (char*)NULL };
3815
3816 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3817 *
3818 * Description of Rs6000_Fchmod fix
3819 */
3820 tSCC zRs6000_FchmodName[] =
3821 "rs6000_fchmod";
3822
3823 /*
3824 * File name selection pattern
3825 */
3826 tSCC zRs6000_FchmodList[] =
3827 "|sys/stat.h|";
3828 /*
3829 * Machine/OS name selection pattern
3830 */
3831 #define apzRs6000_FchmodMachs (const char**)NULL
3832
3833 /*
3834 * content selection pattern - do fix if pattern found
3835 */
3836 tSCC zRs6000_FchmodSelect0[] =
3837 "fchmod\\(char \\*";
3838
3839 #define RS6000_FCHMOD_TEST_CT 1
3840 static tTestDesc aRs6000_FchmodTests[] = {
3841 { TT_EGREP, zRs6000_FchmodSelect0, (regex_t*)NULL }, };
3842
3843 /*
3844 * Fix Command Arguments for Rs6000_Fchmod
3845 */
3846 static const char* apzRs6000_FchmodPatch[] = {
3847 "format",
3848 "fchmod(int",
3849 (char*)NULL };
3850
3851 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3852 *
3853 * Description of Rs6000_Param fix
3854 */
3855 tSCC zRs6000_ParamName[] =
3856 "rs6000_param";
3857
3858 /*
3859 * File name selection pattern
3860 */
3861 tSCC zRs6000_ParamList[] =
3862 "|stdio.h|unistd.h|";
3863 /*
3864 * Machine/OS name selection pattern
3865 */
3866 #define apzRs6000_ParamMachs (const char**)NULL
3867
3868 /*
3869 * content selection pattern - do fix if pattern found
3870 */
3871 tSCC zRs6000_ParamSelect0[] =
3872 "rename\\(const char \\*old, const char \\*new\\)";
3873
3874 #define RS6000_PARAM_TEST_CT 1
3875 static tTestDesc aRs6000_ParamTests[] = {
3876 { TT_EGREP, zRs6000_ParamSelect0, (regex_t*)NULL }, };
3877
3878 /*
3879 * Fix Command Arguments for Rs6000_Param
3880 */
3881 static const char* apzRs6000_ParamPatch[] = {
3882 "format",
3883 "rename(const char *_old, const char *_new)",
3884 (char*)NULL };
3885
3886 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3887 *
3888 * Description of Sco_Math fix
3889 */
3890 tSCC zSco_MathName[] =
3891 "sco_math";
3892
3893 /*
3894 * File name selection pattern
3895 */
3896 tSCC zSco_MathList[] =
3897 "|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|";
3898 /*
3899 * Machine/OS name selection pattern
3900 */
3901 #define apzSco_MathMachs (const char**)NULL
3902
3903 /*
3904 * content selection pattern - do fix if pattern found
3905 */
3906 tSCC zSco_MathSelect0[] =
3907 "inline double abs";
3908
3909 #define SCO_MATH_TEST_CT 1
3910 static tTestDesc aSco_MathTests[] = {
3911 { TT_EGREP, zSco_MathSelect0, (regex_t*)NULL }, };
3912
3913 /*
3914 * Fix Command Arguments for Sco_Math
3915 */
3916 static const char* apzSco_MathPatch[] = { "sed",
3917 "-e", "/#define.*__fp_class(a) \\\\/i\\\n\
3918 #ifndef __GNUC__\n",
3919 "-e", "/.*__builtin_generic/a\\\n\
3920 #else\\\n\
3921 #define __fp_class(a) \\\\\\\n\
3922 __builtin_choose_expr(__builtin_types_compatible_p(typeof(a),long double),\\\\\\\n\
3923 __fpclassifyl(a), \\\\\\\n\
3924 __builtin_choose_expr(__builtin_types_compatible_p(typeof(a), float), \\\\\\\n\
3925 __fpclassifyf(a),__fpclassify(a)))\\\n\
3926 #endif",
3927 "-e", "/extern \"C\\+\\+\"/N;/inline double abs/i\\\n\
3928 #ifndef __GNUC__\n",
3929 "-e", "/inline long double trunc/N;/inline long double trunc.*}.*extern \"C\\+\\+\"/a\\\n\
3930 #endif /* ! __GNUC__ */",
3931 (char*)NULL };
3932
3933 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3934 *
3935 * Description of Sco_Regset fix
3936 */
3937 tSCC zSco_RegsetName[] =
3938 "sco_regset";
3939
3940 /*
3941 * File name selection pattern
3942 */
3943 tSCC zSco_RegsetList[] =
3944 "|sys/regset.h|";
3945 /*
3946 * Machine/OS name selection pattern
3947 */
3948 tSCC* apzSco_RegsetMachs[] = {
3949 "*-*-sco3.2v5*",
3950 (const char*)NULL };
3951
3952 /*
3953 * content selection pattern - do fix if pattern found
3954 */
3955 tSCC zSco_RegsetSelect0[] =
3956 "(struct[ \t]+.*)fpstate";
3957
3958 #define SCO_REGSET_TEST_CT 1
3959 static tTestDesc aSco_RegsetTests[] = {
3960 { TT_EGREP, zSco_RegsetSelect0, (regex_t*)NULL }, };
3961
3962 /*
3963 * Fix Command Arguments for Sco_Regset
3964 */
3965 static const char* apzSco_RegsetPatch[] = {
3966 "format",
3967 "%1rsfpstate",
3968 (char*)NULL };
3969
3970 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3971 *
3972 * Description of Sco_Static_Func fix
3973 */
3974 tSCC zSco_Static_FuncName[] =
3975 "sco_static_func";
3976
3977 /*
3978 * File name selection pattern
3979 */
3980 tSCC zSco_Static_FuncList[] =
3981 "|sys/stat.h|";
3982 /*
3983 * Machine/OS name selection pattern
3984 */
3985 tSCC* apzSco_Static_FuncMachs[] = {
3986 "i?86-*-sco3.2*",
3987 (const char*)NULL };
3988
3989 /*
3990 * content selection pattern - do fix if pattern found
3991 */
3992 tSCC zSco_Static_FuncSelect0[] =
3993 "^static int";
3994
3995 #define SCO_STATIC_FUNC_TEST_CT 1
3996 static tTestDesc aSco_Static_FuncTests[] = {
3997 { TT_EGREP, zSco_Static_FuncSelect0, (regex_t*)NULL }, };
3998
3999 /*
4000 * Fix Command Arguments for Sco_Static_Func
4001 */
4002 static const char* apzSco_Static_FuncPatch[] = { "sed",
4003 "-e", "/^static int/i\\\n\
4004 #if __cplusplus\\\n\
4005 extern \"C\" {\\\n\
4006 #endif /* __cplusplus */",
4007 "-e", "/^}$/a\\\n\
4008 #if __cplusplus\\\n\
4009 }\\\n\
4010 #endif /* __cplusplus */",
4011 (char*)NULL };
4012
4013 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4014 *
4015 * Description of Sco_Utime fix
4016 */
4017 tSCC zSco_UtimeName[] =
4018 "sco_utime";
4019
4020 /*
4021 * File name selection pattern
4022 */
4023 tSCC zSco_UtimeList[] =
4024 "|sys/times.h|";
4025 /*
4026 * Machine/OS name selection pattern
4027 */
4028 tSCC* apzSco_UtimeMachs[] = {
4029 "i?86-*-sco3.2v4*",
4030 (const char*)NULL };
4031
4032 /*
4033 * content selection pattern - do fix if pattern found
4034 */
4035 tSCC zSco_UtimeSelect0[] =
4036 "\\(const char \\*, struct utimbuf \\*\\);";
4037
4038 #define SCO_UTIME_TEST_CT 1
4039 static tTestDesc aSco_UtimeTests[] = {
4040 { TT_EGREP, zSco_UtimeSelect0, (regex_t*)NULL }, };
4041
4042 /*
4043 * Fix Command Arguments for Sco_Utime
4044 */
4045 static const char* apzSco_UtimePatch[] = {
4046 "format",
4047 "(const char *, const struct utimbuf *);",
4048 (char*)NULL };
4049
4050 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4051 *
4052 * Description of Solaris_Mutex_Init_1 fix
4053 */
4054 tSCC zSolaris_Mutex_Init_1Name[] =
4055 "solaris_mutex_init_1";
4056
4057 /*
4058 * File name selection pattern
4059 */
4060 tSCC zSolaris_Mutex_Init_1List[] =
4061 "|pthread.h|";
4062 /*
4063 * Machine/OS name selection pattern
4064 */
4065 #define apzSolaris_Mutex_Init_1Machs (const char**)NULL
4066
4067 /*
4068 * content selection pattern - do fix if pattern found
4069 */
4070 tSCC zSolaris_Mutex_Init_1Select0[] =
4071 "@\\(#\\)pthread.h[ \t]+1.1[0-9][ \t]+9[567]/[0-9/]+ SMI";
4072
4073 #define SOLARIS_MUTEX_INIT_1_TEST_CT 1
4074 static tTestDesc aSolaris_Mutex_Init_1Tests[] = {
4075 { TT_EGREP, zSolaris_Mutex_Init_1Select0, (regex_t*)NULL }, };
4076
4077 /*
4078 * Fix Command Arguments for Solaris_Mutex_Init_1
4079 */
4080 static const char* apzSolaris_Mutex_Init_1Patch[] = { "sed",
4081 "-e", "/define[ \t]*PTHREAD_MUTEX_INI/s/{0, 0,/{{{0}, 0}, {{{0}}},/\n\
4082 /define[ \t]*PTHREAD_COND_INI/s/{0,/{{{0},0},/",
4083 (char*)NULL };
4084
4085 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4086 *
4087 * Description of Solaris_Mutex_Init_2 fix
4088 */
4089 tSCC zSolaris_Mutex_Init_2Name[] =
4090 "solaris_mutex_init_2";
4091
4092 /*
4093 * File name selection pattern
4094 */
4095 tSCC zSolaris_Mutex_Init_2List[] =
4096 "|pthread.h|";
4097 /*
4098 * Machine/OS name selection pattern
4099 */
4100 #define apzSolaris_Mutex_Init_2Machs (const char**)NULL
4101
4102 /*
4103 * content selection pattern - do fix if pattern found
4104 */
4105 tSCC zSolaris_Mutex_Init_2Select0[] =
4106 "@\\(#\\)pthread.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
4107
4108 #define SOLARIS_MUTEX_INIT_2_TEST_CT 1
4109 static tTestDesc aSolaris_Mutex_Init_2Tests[] = {
4110 { TT_EGREP, zSolaris_Mutex_Init_2Select0, (regex_t*)NULL }, };
4111
4112 /*
4113 * Fix Command Arguments for Solaris_Mutex_Init_2
4114 */
4115 static const char* apzSolaris_Mutex_Init_2Patch[] = {
4116 "format",
4117 "#if __STDC__ - 0 == 0 && !defined(_NO_LONGLONG)\n\
4118 %0\n\
4119 #else\n\
4120 %1, {0}}%3\n\
4121 #endif",
4122 "(^#define[ \t]+PTHREAD_(MUTEX|COND)_INITIALIZER[ \t]+\\{.*),[ \t]*0\\}(|[ \t].*)$",
4123 (char*)NULL };
4124
4125 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4126 *
4127 * Description of Solaris_Socket fix
4128 */
4129 tSCC zSolaris_SocketName[] =
4130 "solaris_socket";
4131
4132 /*
4133 * File name selection pattern
4134 */
4135 tSCC zSolaris_SocketList[] =
4136 "|sys/socket.h|";
4137 /*
4138 * Machine/OS name selection pattern
4139 */
4140 #define apzSolaris_SocketMachs (const char**)NULL
4141
4142 /*
4143 * content selection pattern - do fix if pattern found
4144 */
4145 tSCC zSolaris_SocketSelect0[] =
4146 "@\\(#\\)socket.h[ \t]+1.[123][0-9][ \t]+9[567]/[0-9/]+ SMI";
4147
4148 #define SOLARIS_SOCKET_TEST_CT 1
4149 static tTestDesc aSolaris_SocketTests[] = {
4150 { TT_EGREP, zSolaris_SocketSelect0, (regex_t*)NULL }, };
4151
4152 /*
4153 * Fix Command Arguments for Solaris_Socket
4154 */
4155 static const char* apzSolaris_SocketPatch[] = {
4156 "format",
4157 "extern int %1(int, %2void *, int, int);",
4158 "^extern int (recv|send)\\(int, (const )*char \\*, int, int\\);",
4159 (char*)NULL };
4160
4161 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4162 *
4163 * Description of Solaris_Stdio_Tag fix
4164 */
4165 tSCC zSolaris_Stdio_TagName[] =
4166 "solaris_stdio_tag";
4167
4168 /*
4169 * File name selection pattern
4170 */
4171 tSCC zSolaris_Stdio_TagList[] =
4172 "|stdio_tag.h|";
4173 /*
4174 * Machine/OS name selection pattern
4175 */
4176 #define apzSolaris_Stdio_TagMachs (const char**)NULL
4177
4178 /*
4179 * content selection pattern - do fix if pattern found
4180 */
4181 tSCC zSolaris_Stdio_TagSelect0[] =
4182 "__cplusplus < 54321L";
4183
4184 #define SOLARIS_STDIO_TAG_TEST_CT 1
4185 static tTestDesc aSolaris_Stdio_TagTests[] = {
4186 { TT_EGREP, zSolaris_Stdio_TagSelect0, (regex_t*)NULL }, };
4187
4188 /*
4189 * Fix Command Arguments for Solaris_Stdio_Tag
4190 */
4191 static const char* apzSolaris_Stdio_TagPatch[] = { "sed",
4192 "-e", "s/defined(__cplusplus) && (__cplusplus < 54321L)/0/",
4193 (char*)NULL };
4194
4195 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4196 *
4197 * Description of Solaris_Unistd fix
4198 */
4199 tSCC zSolaris_UnistdName[] =
4200 "solaris_unistd";
4201
4202 /*
4203 * File name selection pattern
4204 */
4205 tSCC zSolaris_UnistdList[] =
4206 "|unistd.h|";
4207 /*
4208 * Machine/OS name selection pattern
4209 */
4210 #define apzSolaris_UnistdMachs (const char**)NULL
4211
4212 /*
4213 * content selection pattern - do fix if pattern found
4214 */
4215 tSCC zSolaris_UnistdSelect0[] =
4216 "@\\(#\\)unistd.h[ \t]+1.3[0-9][ \t]+9[567]/[0-9/]+ SMI";
4217
4218 /*
4219 * content bypass pattern - skip fix if pattern found
4220 */
4221 tSCC zSolaris_UnistdBypass0[] =
4222 "getpagesize";
4223
4224 #define SOLARIS_UNISTD_TEST_CT 2
4225 static tTestDesc aSolaris_UnistdTests[] = {
4226 { TT_NEGREP, zSolaris_UnistdBypass0, (regex_t*)NULL },
4227 { TT_EGREP, zSolaris_UnistdSelect0, (regex_t*)NULL }, };
4228
4229 /*
4230 * Fix Command Arguments for Solaris_Unistd
4231 */
4232 static const char* apzSolaris_UnistdPatch[] = {
4233 "format",
4234 "extern int getpagesize();\n\
4235 %0",
4236 "^extern (pid_t|int) getpgid\\(.*\\);",
4237 (char*)NULL };
4238
4239 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4240 *
4241 * Description of Solaris_Widec fix
4242 */
4243 tSCC zSolaris_WidecName[] =
4244 "solaris_widec";
4245
4246 /*
4247 * File name selection pattern
4248 */
4249 tSCC zSolaris_WidecList[] =
4250 "|widec.h|";
4251 /*
4252 * Machine/OS name selection pattern
4253 */
4254 tSCC* apzSolaris_WidecMachs[] = {
4255 "*-*-solaris2.[0-5]",
4256 "*-*-solaris2.[0-5].*",
4257 (const char*)NULL };
4258
4259 /*
4260 * content selection pattern - do fix if pattern found
4261 */
4262 tSCC zSolaris_WidecSelect0[] =
4263 "#include <euc.h>";
4264
4265 /*
4266 * content bypass pattern - skip fix if pattern found
4267 */
4268 tSCC zSolaris_WidecBypass0[] =
4269 "include.*wchar\\.h";
4270
4271 #define SOLARIS_WIDEC_TEST_CT 2
4272 static tTestDesc aSolaris_WidecTests[] = {
4273 { TT_NEGREP, zSolaris_WidecBypass0, (regex_t*)NULL },
4274 { TT_EGREP, zSolaris_WidecSelect0, (regex_t*)NULL }, };
4275
4276 /*
4277 * Fix Command Arguments for Solaris_Widec
4278 */
4279 static const char* apzSolaris_WidecPatch[] = {
4280 "format",
4281 "%0\n\
4282 #include <wchar.h>",
4283 (char*)NULL };
4284
4285 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4286 *
4287 * Description of Statsswtch fix
4288 */
4289 tSCC zStatsswtchName[] =
4290 "statsswtch";
4291
4292 /*
4293 * File name selection pattern
4294 */
4295 tSCC zStatsswtchList[] =
4296 "|rpcsvc/rstat.h|";
4297 /*
4298 * Machine/OS name selection pattern
4299 */
4300 #define apzStatsswtchMachs (const char**)NULL
4301
4302 /*
4303 * content selection pattern - do fix if pattern found
4304 */
4305 tSCC zStatsswtchSelect0[] =
4306 "boottime$";
4307
4308 #define STATSSWTCH_TEST_CT 1
4309 static tTestDesc aStatsswtchTests[] = {
4310 { TT_EGREP, zStatsswtchSelect0, (regex_t*)NULL }, };
4311
4312 /*
4313 * Fix Command Arguments for Statsswtch
4314 */
4315 static const char* apzStatsswtchPatch[] = {
4316 "format",
4317 "boottime;",
4318 (char*)NULL };
4319
4320 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4321 *
4322 * Description of Stdio_Stdarg_H fix
4323 */
4324 tSCC zStdio_Stdarg_HName[] =
4325 "stdio_stdarg_h";
4326
4327 /*
4328 * File name selection pattern
4329 */
4330 tSCC zStdio_Stdarg_HList[] =
4331 "|stdio.h|";
4332 /*
4333 * Machine/OS name selection pattern
4334 */
4335 #define apzStdio_Stdarg_HMachs (const char**)NULL
4336
4337 /*
4338 * content bypass pattern - skip fix if pattern found
4339 */
4340 tSCC zStdio_Stdarg_HBypass0[] =
4341 "include.*(stdarg.h|machine/ansi.h)";
4342
4343 #define STDIO_STDARG_H_TEST_CT 1
4344 static tTestDesc aStdio_Stdarg_HTests[] = {
4345 { TT_NEGREP, zStdio_Stdarg_HBypass0, (regex_t*)NULL }, };
4346
4347 /*
4348 * Fix Command Arguments for Stdio_Stdarg_H
4349 */
4350 static const char* apzStdio_Stdarg_HPatch[] = {
4351 "wrap",
4352 "#define __need___va_list\n\
4353 #include <stdarg.h>\n",
4354 (char*)NULL };
4355
4356 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4357 *
4358 * Description of Stdio_Va_List fix
4359 */
4360 tSCC zStdio_Va_ListName[] =
4361 "stdio_va_list";
4362
4363 /*
4364 * File name selection pattern
4365 */
4366 tSCC zStdio_Va_ListList[] =
4367 "|stdio.h|internal/stdio_core.h|internal/wchar_core.h|";
4368 /*
4369 * Machine/OS name selection pattern
4370 */
4371 #define apzStdio_Va_ListMachs (const char**)NULL
4372
4373 /*
4374 * content bypass pattern - skip fix if pattern found
4375 */
4376 tSCC zStdio_Va_ListBypass0[] =
4377 "__gnuc_va_list|_BSD_VA_LIST_|__DJ_va_list|_G_va_list";
4378
4379 #define STDIO_VA_LIST_TEST_CT 1
4380 static tTestDesc aStdio_Va_ListTests[] = {
4381 { TT_NEGREP, zStdio_Va_ListBypass0, (regex_t*)NULL }, };
4382
4383 /*
4384 * Fix Command Arguments for Stdio_Va_List
4385 */
4386 static const char* apzStdio_Va_ListPatch[] = { "sed",
4387 "-e", "s@ va_list @ __gnuc_va_list @\n\
4388 s@ va_list)@ __gnuc_va_list)@\n\
4389 s@(va_list)&@(__gnuc_va_list)\\&@\n\
4390 s@ _VA_LIST_));@ __gnuc_va_list));@\n\
4391 s@ __VA_LIST__));@ __gnuc_va_list));@\n\
4392 s@ va_list@ __not_va_list__@\n\
4393 s@\\*va_list@*__not_va_list__@\n\
4394 s@ __va_list)@ __gnuc_va_list)@\n\
4395 s@typedef[ \t]\\(.*\\)[ \t]va_list[ \t]*;@typedef \\1 __not_va_list__;@\n\
4396 s@typedef[ \t]*__va_list__@typedef __gnuc_va_list@\n\
4397 s@GNUC_VA_LIST@GNUC_Va_LIST@\n\
4398 s@_VA_LIST_DEFINED@_Va_LIST_DEFINED@\n\
4399 s@_NEED___VA_LIST@_NEED___Va_LIST@\n\
4400 s@VA_LIST@DUMMY_VA_LIST@\n\
4401 s@_Va_LIST@_VA_LIST@",
4402 (char*)NULL };
4403
4404 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4405 *
4406 * Description of Strict_Ansi_Not fix
4407 */
4408 tSCC zStrict_Ansi_NotName[] =
4409 "strict_ansi_not";
4410
4411 /*
4412 * File name selection pattern
4413 */
4414 #define zStrict_Ansi_NotList (char*)NULL
4415 /*
4416 * Machine/OS name selection pattern
4417 */
4418 #define apzStrict_Ansi_NotMachs (const char**)NULL
4419
4420 /*
4421 * content selection pattern - do fix if pattern found
4422 */
4423 tSCC zStrict_Ansi_NotSelect0[] =
4424 "^([ \t]*#[ \t]*if.*)(!__STDC__|__STDC__[ \t]*==[ \t]*0|__STDC__[ \t]*!=[ \t]*1|__STDC__[ \t]*-[ \t]*0[ \t]*==[ \t]*0)";
4425
4426 /*
4427 * content bypass pattern - skip fix if pattern found
4428 */
4429 tSCC zStrict_Ansi_NotBypass0[] =
4430 "GNU and MIPS C compilers define __STDC__ differently";
4431 tSCC zStrict_Ansi_NotBypass1[] =
4432 "__SCO_VERSION__.*__STDC__ != 1";
4433
4434 /*
4435 * perform the C function call test
4436 */
4437 tSCC zStrict_Ansi_NotFTst0[] = "stdc_0_in_system_headers";
4438
4439 #define STRICT_ANSI_NOT_TEST_CT 4
4440 static tTestDesc aStrict_Ansi_NotTests[] = {
4441 { TT_FUNCTION, zStrict_Ansi_NotFTst0, 0 /* unused */ },
4442 { TT_NEGREP, zStrict_Ansi_NotBypass0, (regex_t*)NULL },
4443 { TT_NEGREP, zStrict_Ansi_NotBypass1, (regex_t*)NULL },
4444 { TT_EGREP, zStrict_Ansi_NotSelect0, (regex_t*)NULL }, };
4445
4446 /*
4447 * Fix Command Arguments for Strict_Ansi_Not
4448 */
4449 static const char* apzStrict_Ansi_NotPatch[] = {
4450 "format",
4451 "%1 !defined(__STRICT_ANSI__)",
4452 (char*)NULL };
4453
4454 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4455 *
4456 * Description of Strict_Ansi_Not_Ctd fix
4457 */
4458 tSCC zStrict_Ansi_Not_CtdName[] =
4459 "strict_ansi_not_ctd";
4460
4461 /*
4462 * File name selection pattern
4463 */
4464 tSCC zStrict_Ansi_Not_CtdList[] =
4465 "|math.h|limits.h|stdio.h|signal.h|stdlib.h|sys/signal.h|time.h|";
4466 /*
4467 * Machine/OS name selection pattern
4468 */
4469 #define apzStrict_Ansi_Not_CtdMachs (const char**)NULL
4470
4471 /*
4472 * content selection pattern - do fix if pattern found
4473 */
4474 tSCC zStrict_Ansi_Not_CtdSelect0[] =
4475 "^([ \t]*(\\(|&&|\\|\\|)([ \t(]*!*[ \t]*defined\\([a-zA-Z_0-9]+\\)[ \t]*[|&][|&])*[ \t(]*)(__STDC__[ \t]*(|-[ \t]*0[ \t]*)==[ \t]*0)";
4476
4477 /*
4478 * perform the C function call test
4479 */
4480 tSCC zStrict_Ansi_Not_CtdFTst0[] = "stdc_0_in_system_headers";
4481
4482 #define STRICT_ANSI_NOT_CTD_TEST_CT 2
4483 static tTestDesc aStrict_Ansi_Not_CtdTests[] = {
4484 { TT_FUNCTION, zStrict_Ansi_Not_CtdFTst0, 0 /* unused */ },
4485 { TT_EGREP, zStrict_Ansi_Not_CtdSelect0, (regex_t*)NULL }, };
4486
4487 /*
4488 * Fix Command Arguments for Strict_Ansi_Not_Ctd
4489 */
4490 static const char* apzStrict_Ansi_Not_CtdPatch[] = {
4491 "format",
4492 "%1 !defined(__STRICT_ANSI__)",
4493 (char*)NULL };
4494
4495 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4496 *
4497 * Description of Strict_Ansi_Only fix
4498 */
4499 tSCC zStrict_Ansi_OnlyName[] =
4500 "strict_ansi_only";
4501
4502 /*
4503 * File name selection pattern
4504 */
4505 #define zStrict_Ansi_OnlyList (char*)NULL
4506 /*
4507 * Machine/OS name selection pattern
4508 */
4509 #define apzStrict_Ansi_OnlyMachs (const char**)NULL
4510
4511 /*
4512 * content selection pattern - do fix if pattern found
4513 */
4514 tSCC zStrict_Ansi_OnlySelect0[] =
4515 "^([ \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)";
4516
4517 /*
4518 * perform the C function call test
4519 */
4520 tSCC zStrict_Ansi_OnlyFTst0[] = "stdc_0_in_system_headers";
4521
4522 #define STRICT_ANSI_ONLY_TEST_CT 2
4523 static tTestDesc aStrict_Ansi_OnlyTests[] = {
4524 { TT_FUNCTION, zStrict_Ansi_OnlyFTst0, 0 /* unused */ },
4525 { TT_EGREP, zStrict_Ansi_OnlySelect0, (regex_t*)NULL }, };
4526
4527 /*
4528 * Fix Command Arguments for Strict_Ansi_Only
4529 */
4530 static const char* apzStrict_Ansi_OnlyPatch[] = {
4531 "format",
4532 "%1 defined(__STRICT_ANSI__)",
4533 (char*)NULL };
4534
4535 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4536 *
4537 * Description of Struct_File fix
4538 */
4539 tSCC zStruct_FileName[] =
4540 "struct_file";
4541
4542 /*
4543 * File name selection pattern
4544 */
4545 tSCC zStruct_FileList[] =
4546 "|rpc/xdr.h|";
4547 /*
4548 * Machine/OS name selection pattern
4549 */
4550 #define apzStruct_FileMachs (const char**)NULL
4551
4552 /*
4553 * content selection pattern - do fix if pattern found
4554 */
4555 tSCC zStruct_FileSelect0[] =
4556 "^.*xdrstdio_create.*struct __file_s";
4557
4558 #define STRUCT_FILE_TEST_CT 1
4559 static tTestDesc aStruct_FileTests[] = {
4560 { TT_EGREP, zStruct_FileSelect0, (regex_t*)NULL }, };
4561
4562 /*
4563 * Fix Command Arguments for Struct_File
4564 */
4565 static const char* apzStruct_FilePatch[] = {
4566 "format",
4567 "struct __file_s;\n\
4568 %0",
4569 (char*)NULL };
4570
4571 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4572 *
4573 * Description of Struct_Sockaddr fix
4574 */
4575 tSCC zStruct_SockaddrName[] =
4576 "struct_sockaddr";
4577
4578 /*
4579 * File name selection pattern
4580 */
4581 tSCC zStruct_SockaddrList[] =
4582 "|rpc/auth.h|";
4583 /*
4584 * Machine/OS name selection pattern
4585 */
4586 #define apzStruct_SockaddrMachs (const char**)NULL
4587
4588 /*
4589 * content selection pattern - do fix if pattern found
4590 */
4591 tSCC zStruct_SockaddrSelect0[] =
4592 "^.*authdes_create.*struct sockaddr[^_]";
4593
4594 /*
4595 * content bypass pattern - skip fix if pattern found
4596 */
4597 tSCC zStruct_SockaddrBypass0[] =
4598 "<sys/socket.h>";
4599 tSCC zStruct_SockaddrBypass1[] =
4600 "struct sockaddr;\n";
4601
4602 #define STRUCT_SOCKADDR_TEST_CT 3
4603 static tTestDesc aStruct_SockaddrTests[] = {
4604 { TT_NEGREP, zStruct_SockaddrBypass0, (regex_t*)NULL },
4605 { TT_NEGREP, zStruct_SockaddrBypass1, (regex_t*)NULL },
4606 { TT_EGREP, zStruct_SockaddrSelect0, (regex_t*)NULL }, };
4607
4608 /*
4609 * Fix Command Arguments for Struct_Sockaddr
4610 */
4611 static const char* apzStruct_SockaddrPatch[] = {
4612 "format",
4613 "struct sockaddr;\n\
4614 %0",
4615 (char*)NULL };
4616
4617 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4618 *
4619 * Description of Sun_Auth_Proto fix
4620 */
4621 tSCC zSun_Auth_ProtoName[] =
4622 "sun_auth_proto";
4623
4624 /*
4625 * File name selection pattern
4626 */
4627 tSCC zSun_Auth_ProtoList[] =
4628 "|rpc/auth.h|rpc/clnt.h|rpc/svc.h|rpc/xdr.h|";
4629 /*
4630 * Machine/OS name selection pattern
4631 */
4632 #define apzSun_Auth_ProtoMachs (const char**)NULL
4633
4634 /*
4635 * content selection pattern - do fix if pattern found
4636 */
4637 tSCC zSun_Auth_ProtoSelect0[] =
4638 "\\(\\*[a-z][a-z_]*\\)\\(\\)";
4639
4640 #define SUN_AUTH_PROTO_TEST_CT 1
4641 static tTestDesc aSun_Auth_ProtoTests[] = {
4642 { TT_EGREP, zSun_Auth_ProtoSelect0, (regex_t*)NULL }, };
4643
4644 /*
4645 * Fix Command Arguments for Sun_Auth_Proto
4646 */
4647 static const char* apzSun_Auth_ProtoPatch[] = {
4648 "format",
4649 "#ifdef __cplusplus\n\
4650 %1(...);%2\n\
4651 #else\n\
4652 %1();%2\n\
4653 #endif",
4654 "(.*\\(\\*[a-z][a-z_]*\\))\\(\\);(.*)",
4655 (char*)NULL };
4656
4657 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4658 *
4659 * Description of Sun_Bogus_Ifdef fix
4660 */
4661 tSCC zSun_Bogus_IfdefName[] =
4662 "sun_bogus_ifdef";
4663
4664 /*
4665 * File name selection pattern
4666 */
4667 tSCC zSun_Bogus_IfdefList[] =
4668 "|hsfs/hsfs_spec.h|hsfs/iso_spec.h|";
4669 /*
4670 * Machine/OS name selection pattern
4671 */
4672 #define apzSun_Bogus_IfdefMachs (const char**)NULL
4673
4674 /*
4675 * content selection pattern - do fix if pattern found
4676 */
4677 tSCC zSun_Bogus_IfdefSelect0[] =
4678 "#ifdef(.*\\|\\|.*)";
4679
4680 #define SUN_BOGUS_IFDEF_TEST_CT 1
4681 static tTestDesc aSun_Bogus_IfdefTests[] = {
4682 { TT_EGREP, zSun_Bogus_IfdefSelect0, (regex_t*)NULL }, };
4683
4684 /*
4685 * Fix Command Arguments for Sun_Bogus_Ifdef
4686 */
4687 static const char* apzSun_Bogus_IfdefPatch[] = {
4688 "format",
4689 "#if%1",
4690 (char*)NULL };
4691
4692 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4693 *
4694 * Description of Sun_Catmacro fix
4695 */
4696 tSCC zSun_CatmacroName[] =
4697 "sun_catmacro";
4698
4699 /*
4700 * File name selection pattern
4701 */
4702 tSCC zSun_CatmacroList[] =
4703 "|pixrect/memvar.h|";
4704 /*
4705 * Machine/OS name selection pattern
4706 */
4707 #define apzSun_CatmacroMachs (const char**)NULL
4708
4709 /*
4710 * content selection pattern - do fix if pattern found
4711 */
4712 tSCC zSun_CatmacroSelect0[] =
4713 "^#define[ \t]+CAT\\(a,b\\).*";
4714
4715 #define SUN_CATMACRO_TEST_CT 1
4716 static tTestDesc aSun_CatmacroTests[] = {
4717 { TT_EGREP, zSun_CatmacroSelect0, (regex_t*)NULL }, };
4718
4719 /*
4720 * Fix Command Arguments for Sun_Catmacro
4721 */
4722 static const char* apzSun_CatmacroPatch[] = {
4723 "format",
4724 "#ifdef __STDC__\n\
4725 # define CAT(a,b) a##b\n\
4726 #else\n\
4727 %0\n\
4728 #endif",
4729 (char*)NULL };
4730
4731 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4732 *
4733 * Description of Sun_Malloc fix
4734 */
4735 tSCC zSun_MallocName[] =
4736 "sun_malloc";
4737
4738 /*
4739 * File name selection pattern
4740 */
4741 tSCC zSun_MallocList[] =
4742 "|malloc.h|";
4743 /*
4744 * Machine/OS name selection pattern
4745 */
4746 #define apzSun_MallocMachs (const char**)NULL
4747 #define SUN_MALLOC_TEST_CT 0
4748 #define aSun_MallocTests (tTestDesc*)NULL
4749
4750 /*
4751 * Fix Command Arguments for Sun_Malloc
4752 */
4753 static const char* apzSun_MallocPatch[] = { "sed",
4754 "-e", "s/typedef[ \t]char \\*\tmalloc_t/typedef void \\*\tmalloc_t/g",
4755 "-e", "s/int[ \t][ \t]*free/void\tfree/g",
4756 "-e", "s/char\\([ \t]*\\*[ \t]*malloc\\)/void\\1/g",
4757 "-e", "s/char\\([ \t]*\\*[ \t]*realloc\\)/void\\1/g",
4758 "-e", "s/char\\([ \t]*\\*[ \t]*calloc\\)/void\\1/g",
4759 (char*)NULL };
4760
4761 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4762 *
4763 * Description of Sun_Rusers_Semi fix
4764 */
4765 tSCC zSun_Rusers_SemiName[] =
4766 "sun_rusers_semi";
4767
4768 /*
4769 * File name selection pattern
4770 */
4771 tSCC zSun_Rusers_SemiList[] =
4772 "|rpcsvc/rusers.h|";
4773 /*
4774 * Machine/OS name selection pattern
4775 */
4776 #define apzSun_Rusers_SemiMachs (const char**)NULL
4777
4778 /*
4779 * content selection pattern - do fix if pattern found
4780 */
4781 tSCC zSun_Rusers_SemiSelect0[] =
4782 "_cnt$";
4783
4784 #define SUN_RUSERS_SEMI_TEST_CT 1
4785 static tTestDesc aSun_Rusers_SemiTests[] = {
4786 { TT_EGREP, zSun_Rusers_SemiSelect0, (regex_t*)NULL }, };
4787
4788 /*
4789 * Fix Command Arguments for Sun_Rusers_Semi
4790 */
4791 static const char* apzSun_Rusers_SemiPatch[] = { "sed",
4792 "-e", "/^struct/,/^};/s/_cnt$/_cnt;/",
4793 (char*)NULL };
4794
4795 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4796 *
4797 * Description of Sun_Signal fix
4798 */
4799 tSCC zSun_SignalName[] =
4800 "sun_signal";
4801
4802 /*
4803 * File name selection pattern
4804 */
4805 tSCC zSun_SignalList[] =
4806 "|sys/signal.h|signal.h|";
4807 /*
4808 * Machine/OS name selection pattern
4809 */
4810 #define apzSun_SignalMachs (const char**)NULL
4811
4812 /*
4813 * content selection pattern - do fix if pattern found
4814 */
4815 tSCC zSun_SignalSelect0[] =
4816 "^void\t\\(\\*signal\\(\\)\\)\\(\\);.*";
4817
4818 #define SUN_SIGNAL_TEST_CT 1
4819 static tTestDesc aSun_SignalTests[] = {
4820 { TT_EGREP, zSun_SignalSelect0, (regex_t*)NULL }, };
4821
4822 /*
4823 * Fix Command Arguments for Sun_Signal
4824 */
4825 static const char* apzSun_SignalPatch[] = {
4826 "format",
4827 "#ifdef __cplusplus\n\
4828 void\t(*signal(...))(...);\n\
4829 #else\n\
4830 %0\n\
4831 #endif",
4832 (char*)NULL };
4833
4834 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4835 *
4836 * Description of Sunos_Matherr_Decl fix
4837 */
4838 tSCC zSunos_Matherr_DeclName[] =
4839 "sunos_matherr_decl";
4840
4841 /*
4842 * File name selection pattern
4843 */
4844 tSCC zSunos_Matherr_DeclList[] =
4845 "|math.h|";
4846 /*
4847 * Machine/OS name selection pattern
4848 */
4849 #define apzSunos_Matherr_DeclMachs (const char**)NULL
4850
4851 /*
4852 * content selection pattern - do fix if pattern found
4853 */
4854 tSCC zSunos_Matherr_DeclSelect0[] =
4855 "matherr";
4856
4857 /*
4858 * content bypass pattern - skip fix if pattern found
4859 */
4860 tSCC zSunos_Matherr_DeclBypass0[] =
4861 "matherr.*(struct exception|__MATH_EXCEPTION)";
4862
4863 #define SUNOS_MATHERR_DECL_TEST_CT 2
4864 static tTestDesc aSunos_Matherr_DeclTests[] = {
4865 { TT_NEGREP, zSunos_Matherr_DeclBypass0, (regex_t*)NULL },
4866 { TT_EGREP, zSunos_Matherr_DeclSelect0, (regex_t*)NULL }, };
4867
4868 /*
4869 * Fix Command Arguments for Sunos_Matherr_Decl
4870 */
4871 static const char* apzSunos_Matherr_DeclPatch[] = {
4872 "wrap",
4873 "struct exception;\n",
4874 (char*)NULL };
4875
4876 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4877 *
4878 * Description of Sunos_Strlen fix
4879 */
4880 tSCC zSunos_StrlenName[] =
4881 "sunos_strlen";
4882
4883 /*
4884 * File name selection pattern
4885 */
4886 tSCC zSunos_StrlenList[] =
4887 "|strings.h|";
4888 /*
4889 * Machine/OS name selection pattern
4890 */
4891 #define apzSunos_StrlenMachs (const char**)NULL
4892
4893 /*
4894 * content selection pattern - do fix if pattern found
4895 */
4896 tSCC zSunos_StrlenSelect0[] =
4897 "int[ \t]*strlen\\(\\);(.*)";
4898
4899 #define SUNOS_STRLEN_TEST_CT 1
4900 static tTestDesc aSunos_StrlenTests[] = {
4901 { TT_EGREP, zSunos_StrlenSelect0, (regex_t*)NULL }, };
4902
4903 /*
4904 * Fix Command Arguments for Sunos_Strlen
4905 */
4906 static const char* apzSunos_StrlenPatch[] = {
4907 "format",
4908 "__SIZE_TYPE__ strlen();%1",
4909 (char*)NULL };
4910
4911 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4912 *
4913 * Description of Svr4__P fix
4914 */
4915 tSCC zSvr4__PName[] =
4916 "svr4__p";
4917
4918 /*
4919 * File name selection pattern
4920 */
4921 tSCC zSvr4__PList[] =
4922 "|math.h|floatingpoint.h|";
4923 /*
4924 * Machine/OS name selection pattern
4925 */
4926 #define apzSvr4__PMachs (const char**)NULL
4927
4928 /*
4929 * content selection pattern - do fix if pattern found
4930 */
4931 tSCC zSvr4__PSelect0[] =
4932 "^#define[ \t]+__P.*";
4933
4934 #define SVR4__P_TEST_CT 1
4935 static tTestDesc aSvr4__PTests[] = {
4936 { TT_EGREP, zSvr4__PSelect0, (regex_t*)NULL }, };
4937
4938 /*
4939 * Fix Command Arguments for Svr4__P
4940 */
4941 static const char* apzSvr4__PPatch[] = {
4942 "format",
4943 "#ifndef __P\n\
4944 %0\n\
4945 #endif",
4946 (char*)NULL };
4947
4948 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4949 *
4950 * Description of Svr4_Disable_Opt fix
4951 */
4952 tSCC zSvr4_Disable_OptName[] =
4953 "svr4_disable_opt";
4954
4955 /*
4956 * File name selection pattern
4957 */
4958 tSCC zSvr4_Disable_OptList[] =
4959 "|string.h|";
4960 /*
4961 * Machine/OS name selection pattern
4962 */
4963 #define apzSvr4_Disable_OptMachs (const char**)NULL
4964
4965 /*
4966 * content selection pattern - do fix if pattern found
4967 */
4968 tSCC zSvr4_Disable_OptSelect0[] =
4969 "#define.*__std_hdr_";
4970
4971 #define SVR4_DISABLE_OPT_TEST_CT 1
4972 static tTestDesc aSvr4_Disable_OptTests[] = {
4973 { TT_EGREP, zSvr4_Disable_OptSelect0, (regex_t*)NULL }, };
4974
4975 /*
4976 * Fix Command Arguments for Svr4_Disable_Opt
4977 */
4978 static const char* apzSvr4_Disable_OptPatch[] = { "sed",
4979 "-e", "/#define.*__std_hdr_/d",
4980 (char*)NULL };
4981
4982 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4983 *
4984 * Description of Svr4_Getcwd fix
4985 */
4986 tSCC zSvr4_GetcwdName[] =
4987 "svr4_getcwd";
4988
4989 /*
4990 * File name selection pattern
4991 */
4992 tSCC zSvr4_GetcwdList[] =
4993 "|stdlib.h|unistd.h|prototypes.h|";
4994 /*
4995 * Machine/OS name selection pattern
4996 */
4997 #define apzSvr4_GetcwdMachs (const char**)NULL
4998
4999 /*
5000 * content selection pattern - do fix if pattern found
5001 */
5002 tSCC zSvr4_GetcwdSelect0[] =
5003 "getcwd\\(char \\*, int\\)";
5004
5005 #define SVR4_GETCWD_TEST_CT 1
5006 static tTestDesc aSvr4_GetcwdTests[] = {
5007 { TT_EGREP, zSvr4_GetcwdSelect0, (regex_t*)NULL }, };
5008
5009 /*
5010 * Fix Command Arguments for Svr4_Getcwd
5011 */
5012 static const char* apzSvr4_GetcwdPatch[] = {
5013 "format",
5014 "getcwd(char *, size_t)",
5015 (char*)NULL };
5016
5017 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5018 *
5019 * Description of Svr4_Krnl fix
5020 */
5021 tSCC zSvr4_KrnlName[] =
5022 "svr4_krnl";
5023
5024 /*
5025 * File name selection pattern
5026 */
5027 tSCC zSvr4_KrnlList[] =
5028 "|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|";
5029 /*
5030 * Machine/OS name selection pattern
5031 */
5032 tSCC* apzSvr4_KrnlMachs[] = {
5033 "*-*-sysv4*",
5034 "i?86-sequent-ptx*",
5035 (const char*)NULL };
5036
5037 /*
5038 * content bypass pattern - skip fix if pattern found
5039 */
5040 tSCC zSvr4_KrnlBypass0[] =
5041 "_KERNEL";
5042
5043 #define SVR4_KRNL_TEST_CT 1
5044 static tTestDesc aSvr4_KrnlTests[] = {
5045 { TT_NEGREP, zSvr4_KrnlBypass0, (regex_t*)NULL }, };
5046
5047 /*
5048 * Fix Command Arguments for Svr4_Krnl
5049 */
5050 static const char* apzSvr4_KrnlPatch[] = {
5051 "wrap",
5052 "#ifdef _KERNEL\n",
5053 "#endif /* _KERNEL */\n",
5054 (char*)NULL };
5055
5056 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5057 *
5058 * Description of Svr4_Profil fix
5059 */
5060 tSCC zSvr4_ProfilName[] =
5061 "svr4_profil";
5062
5063 /*
5064 * File name selection pattern
5065 */
5066 tSCC zSvr4_ProfilList[] =
5067 "|stdlib.h|unistd.h|";
5068 /*
5069 * Machine/OS name selection pattern
5070 */
5071 #define apzSvr4_ProfilMachs (const char**)NULL
5072
5073 /*
5074 * content selection pattern - do fix if pattern found
5075 */
5076 tSCC zSvr4_ProfilSelect0[] =
5077 "profil\\(unsigned short \\*, unsigned int, unsigned int, unsigned int\\)";
5078
5079 #define SVR4_PROFIL_TEST_CT 1
5080 static tTestDesc aSvr4_ProfilTests[] = {
5081 { TT_EGREP, zSvr4_ProfilSelect0, (regex_t*)NULL }, };
5082
5083 /*
5084 * Fix Command Arguments for Svr4_Profil
5085 */
5086 static const char* apzSvr4_ProfilPatch[] = {
5087 "format",
5088 "profil(unsigned short *, size_t, int, unsigned int)",
5089 (char*)NULL };
5090
5091 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5092 *
5093 * Description of Svr4_Sighandler_Type fix
5094 */
5095 tSCC zSvr4_Sighandler_TypeName[] =
5096 "svr4_sighandler_type";
5097
5098 /*
5099 * File name selection pattern
5100 */
5101 tSCC zSvr4_Sighandler_TypeList[] =
5102 "|sys/signal.h|";
5103 /*
5104 * Machine/OS name selection pattern
5105 */
5106 #define apzSvr4_Sighandler_TypeMachs (const char**)NULL
5107
5108 /*
5109 * content selection pattern - do fix if pattern found
5110 */
5111 tSCC zSvr4_Sighandler_TypeSelect0[] =
5112 "void *\\(\\*\\)\\(\\)";
5113
5114 #define SVR4_SIGHANDLER_TYPE_TEST_CT 1
5115 static tTestDesc aSvr4_Sighandler_TypeTests[] = {
5116 { TT_EGREP, zSvr4_Sighandler_TypeSelect0, (regex_t*)NULL }, };
5117
5118 /*
5119 * Fix Command Arguments for Svr4_Sighandler_Type
5120 */
5121 static const char* apzSvr4_Sighandler_TypePatch[] = {
5122 "format",
5123 "void (*)(int)",
5124 (char*)NULL };
5125
5126 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5127 *
5128 * Description of Svr4_Undeclared_Getrnge fix
5129 */
5130 tSCC zSvr4_Undeclared_GetrngeName[] =
5131 "svr4_undeclared_getrnge";
5132
5133 /*
5134 * File name selection pattern
5135 */
5136 tSCC zSvr4_Undeclared_GetrngeList[] =
5137 "|regexp.h|";
5138 /*
5139 * Machine/OS name selection pattern
5140 */
5141 #define apzSvr4_Undeclared_GetrngeMachs (const char**)NULL
5142
5143 /*
5144 * content selection pattern - do fix if pattern found
5145 */
5146 tSCC zSvr4_Undeclared_GetrngeSelect0[] =
5147 "getrnge";
5148
5149 /*
5150 * content bypass pattern - skip fix if pattern found
5151 */
5152 tSCC zSvr4_Undeclared_GetrngeBypass0[] =
5153 "static void getrnge";
5154
5155 #define SVR4_UNDECLARED_GETRNGE_TEST_CT 2
5156 static tTestDesc aSvr4_Undeclared_GetrngeTests[] = {
5157 { TT_NEGREP, zSvr4_Undeclared_GetrngeBypass0, (regex_t*)NULL },
5158 { TT_EGREP, zSvr4_Undeclared_GetrngeSelect0, (regex_t*)NULL }, };
5159
5160 /*
5161 * Fix Command Arguments for Svr4_Undeclared_Getrnge
5162 */
5163 static const char* apzSvr4_Undeclared_GetrngePatch[] = {
5164 "format",
5165 "%0\n\
5166 static int getrnge ();",
5167 "^static int[ \t]+size;",
5168 (char*)NULL };
5169
5170 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5171 *
5172 * Description of Sysv68_String fix
5173 */
5174 tSCC zSysv68_StringName[] =
5175 "sysv68_string";
5176
5177 /*
5178 * File name selection pattern
5179 */
5180 tSCC zSysv68_StringList[] =
5181 "|testing.h|string.h|";
5182 /*
5183 * Machine/OS name selection pattern
5184 */
5185 #define apzSysv68_StringMachs (const char**)NULL
5186 #define SYSV68_STRING_TEST_CT 0
5187 #define aSysv68_StringTests (tTestDesc*)NULL
5188
5189 /*
5190 * Fix Command Arguments for Sysv68_String
5191 */
5192 static const char* apzSysv68_StringPatch[] = { "sed",
5193 "-e", "s/extern[ \t]*int[ \t]*strlen();/extern unsigned int strlen();/",
5194 "-e", "s/extern[ \t]*int[ \t]*ffs[ \t]*(long);/extern int ffs(int);/",
5195 "-e", "s/strdup(char \\*s1);/strdup(const char *s1);/",
5196 "-e", "/^extern char$/N",
5197 "-e", "s/^extern char\\(\\n\t\\*memccpy(),\\)$/extern void\\1/",
5198 "-e", "/^extern int$/N",
5199 "-e", "s/^extern int\\(\\n\tstrlen(),\\)/extern size_t\\1/",
5200 "-e", "/^\tstrncmp(),$/N",
5201 "-e", "s/^\\(\tstrncmp()\\),\\n\\(\tstrlen(),\\)$/\\1;\\\n\
5202 extern unsigned int\\\n\
5203 \\2/",
5204 (char*)NULL };
5205
5206 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5207 *
5208 * Description of Sysz_Stdlib_For_Sun fix
5209 */
5210 tSCC zSysz_Stdlib_For_SunName[] =
5211 "sysz_stdlib_for_sun";
5212
5213 /*
5214 * File name selection pattern
5215 */
5216 tSCC zSysz_Stdlib_For_SunList[] =
5217 "|stdlib.h|";
5218 /*
5219 * Machine/OS name selection pattern
5220 */
5221 #define apzSysz_Stdlib_For_SunMachs (const char**)NULL
5222
5223 /*
5224 * content selection pattern - do fix if pattern found
5225 */
5226 tSCC zSysz_Stdlib_For_SunSelect0[] =
5227 "char[ \t]*\\*[ \t]*(calloc|malloc|realloc|bsearch)[ \t]*\\(";
5228
5229 #define SYSZ_STDLIB_FOR_SUN_TEST_CT 1
5230 static tTestDesc aSysz_Stdlib_For_SunTests[] = {
5231 { TT_EGREP, zSysz_Stdlib_For_SunSelect0, (regex_t*)NULL }, };
5232
5233 /*
5234 * Fix Command Arguments for Sysz_Stdlib_For_Sun
5235 */
5236 static const char* apzSysz_Stdlib_For_SunPatch[] = {
5237 "format",
5238 "void *\t%1(",
5239 (char*)NULL };
5240
5241 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5242 *
5243 * Description of Thread_Keyword fix
5244 */
5245 tSCC zThread_KeywordName[] =
5246 "thread_keyword";
5247
5248 /*
5249 * File name selection pattern
5250 */
5251 tSCC zThread_KeywordList[] =
5252 "|pthread.h|bits/sigthread.h|";
5253 /*
5254 * Machine/OS name selection pattern
5255 */
5256 #define apzThread_KeywordMachs (const char**)NULL
5257
5258 /*
5259 * content selection pattern - do fix if pattern found
5260 */
5261 tSCC zThread_KeywordSelect0[] =
5262 "([* ])__thread([,)])";
5263
5264 #define THREAD_KEYWORD_TEST_CT 1
5265 static tTestDesc aThread_KeywordTests[] = {
5266 { TT_EGREP, zThread_KeywordSelect0, (regex_t*)NULL }, };
5267
5268 /*
5269 * Fix Command Arguments for Thread_Keyword
5270 */
5271 static const char* apzThread_KeywordPatch[] = {
5272 "format",
5273 "%1__thr%2",
5274 (char*)NULL };
5275
5276 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5277 *
5278 * Description of Tinfo_Cplusplus fix
5279 */
5280 tSCC zTinfo_CplusplusName[] =
5281 "tinfo_cplusplus";
5282
5283 /*
5284 * File name selection pattern
5285 */
5286 tSCC zTinfo_CplusplusList[] =
5287 "|tinfo.h|";
5288 /*
5289 * Machine/OS name selection pattern
5290 */
5291 #define apzTinfo_CplusplusMachs (const char**)NULL
5292
5293 /*
5294 * content selection pattern - do fix if pattern found
5295 */
5296 tSCC zTinfo_CplusplusSelect0[] =
5297 "[ \t]_cplusplus";
5298
5299 #define TINFO_CPLUSPLUS_TEST_CT 1
5300 static tTestDesc aTinfo_CplusplusTests[] = {
5301 { TT_EGREP, zTinfo_CplusplusSelect0, (regex_t*)NULL }, };
5302
5303 /*
5304 * Fix Command Arguments for Tinfo_Cplusplus
5305 */
5306 static const char* apzTinfo_CplusplusPatch[] = {
5307 "format",
5308 " __cplusplus",
5309 (char*)NULL };
5310
5311 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5312 *
5313 * Description of Ultrix_Atexit_Param fix
5314 */
5315 tSCC zUltrix_Atexit_ParamName[] =
5316 "ultrix_atexit_param";
5317
5318 /*
5319 * File name selection pattern
5320 */
5321 tSCC zUltrix_Atexit_ParamList[] =
5322 "|stdlib.h|";
5323 /*
5324 * Machine/OS name selection pattern
5325 */
5326 #define apzUltrix_Atexit_ParamMachs (const char**)NULL
5327
5328 /*
5329 * content selection pattern - do fix if pattern found
5330 */
5331 tSCC zUltrix_Atexit_ParamSelect0[] =
5332 "atexit\\(.*\\(\\)";
5333
5334 #define ULTRIX_ATEXIT_PARAM_TEST_CT 1
5335 static tTestDesc aUltrix_Atexit_ParamTests[] = {
5336 { TT_EGREP, zUltrix_Atexit_ParamSelect0, (regex_t*)NULL }, };
5337
5338 /*
5339 * Fix Command Arguments for Ultrix_Atexit_Param
5340 */
5341 static const char* apzUltrix_Atexit_ParamPatch[] = {
5342 "format",
5343 "atexit( void (*__func)( void )",
5344 (char*)NULL };
5345
5346 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5347 *
5348 * Description of Ultrix_Atof_Param fix
5349 */
5350 tSCC zUltrix_Atof_ParamName[] =
5351 "ultrix_atof_param";
5352
5353 /*
5354 * File name selection pattern
5355 */
5356 tSCC zUltrix_Atof_ParamList[] =
5357 "|math.h|";
5358 /*
5359 * Machine/OS name selection pattern
5360 */
5361 #define apzUltrix_Atof_ParamMachs (const char**)NULL
5362
5363 /*
5364 * content selection pattern - do fix if pattern found
5365 */
5366 tSCC zUltrix_Atof_ParamSelect0[] =
5367 "atof\\([ \t]*char";
5368
5369 #define ULTRIX_ATOF_PARAM_TEST_CT 1
5370 static tTestDesc aUltrix_Atof_ParamTests[] = {
5371 { TT_EGREP, zUltrix_Atof_ParamSelect0, (regex_t*)NULL }, };
5372
5373 /*
5374 * Fix Command Arguments for Ultrix_Atof_Param
5375 */
5376 static const char* apzUltrix_Atof_ParamPatch[] = {
5377 "format",
5378 "atof(const char",
5379 (char*)NULL };
5380
5381 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5382 *
5383 * Description of Ultrix_Const fix
5384 */
5385 tSCC zUltrix_ConstName[] =
5386 "ultrix_const";
5387
5388 /*
5389 * File name selection pattern
5390 */
5391 tSCC zUltrix_ConstList[] =
5392 "|stdio.h|";
5393 /*
5394 * Machine/OS name selection pattern
5395 */
5396 #define apzUltrix_ConstMachs (const char**)NULL
5397
5398 /*
5399 * content selection pattern - do fix if pattern found
5400 */
5401 tSCC zUltrix_ConstSelect0[] =
5402 "perror\\( char \\*";
5403
5404 #define ULTRIX_CONST_TEST_CT 1
5405 static tTestDesc aUltrix_ConstTests[] = {
5406 { TT_EGREP, zUltrix_ConstSelect0, (regex_t*)NULL }, };
5407
5408 /*
5409 * Fix Command Arguments for Ultrix_Const
5410 */
5411 static const char* apzUltrix_ConstPatch[] = {
5412 "format",
5413 "%1 const %3 *__",
5414 "([ \t*](perror|fputs|fwrite|scanf|fscanf)\\(.*)[ \t]+(char|void) \\*__",
5415 (char*)NULL };
5416
5417 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5418 *
5419 * Description of Ultrix_Const2 fix
5420 */
5421 tSCC zUltrix_Const2Name[] =
5422 "ultrix_const2";
5423
5424 /*
5425 * File name selection pattern
5426 */
5427 tSCC zUltrix_Const2List[] =
5428 "|stdio.h|";
5429 /*
5430 * Machine/OS name selection pattern
5431 */
5432 #define apzUltrix_Const2Machs (const char**)NULL
5433
5434 /*
5435 * content selection pattern - do fix if pattern found
5436 */
5437 tSCC zUltrix_Const2Select0[] =
5438 "\\*fopen\\( char \\*";
5439
5440 #define ULTRIX_CONST2_TEST_CT 1
5441 static tTestDesc aUltrix_Const2Tests[] = {
5442 { TT_EGREP, zUltrix_Const2Select0, (regex_t*)NULL }, };
5443
5444 /*
5445 * Fix Command Arguments for Ultrix_Const2
5446 */
5447 static const char* apzUltrix_Const2Patch[] = {
5448 "format",
5449 "%1( const char *%3, const char *",
5450 "([ \t*](fopen|sscanf|popen|tempnam))\\([ \t]*char[ \t]*\\*([^,]*),[ \t]*char[ \t]*\\*[ \t]*",
5451 (char*)NULL };
5452
5453 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5454 *
5455 * Description of Ultrix_Fix_Fixproto fix
5456 */
5457 tSCC zUltrix_Fix_FixprotoName[] =
5458 "ultrix_fix_fixproto";
5459
5460 /*
5461 * File name selection pattern
5462 */
5463 tSCC zUltrix_Fix_FixprotoList[] =
5464 "|sys/utsname.h|";
5465 /*
5466 * Machine/OS name selection pattern
5467 */
5468 #define apzUltrix_Fix_FixprotoMachs (const char**)NULL
5469
5470 /*
5471 * content selection pattern - do fix if pattern found
5472 */
5473 tSCC zUltrix_Fix_FixprotoSelect0[] =
5474 "ULTRIX";
5475
5476 #define ULTRIX_FIX_FIXPROTO_TEST_CT 1
5477 static tTestDesc aUltrix_Fix_FixprotoTests[] = {
5478 { TT_EGREP, zUltrix_Fix_FixprotoSelect0, (regex_t*)NULL }, };
5479
5480 /*
5481 * Fix Command Arguments for Ultrix_Fix_Fixproto
5482 */
5483 static const char* apzUltrix_Fix_FixprotoPatch[] = {
5484 "format",
5485 "struct utsname;\n\
5486 %0",
5487 "^[ \t]*extern[ \t]*int[ \t]*uname\\(\\);",
5488 (char*)NULL };
5489
5490 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5491 *
5492 * Description of Ultrix_Ifdef fix
5493 */
5494 tSCC zUltrix_IfdefName[] =
5495 "ultrix_ifdef";
5496
5497 /*
5498 * File name selection pattern
5499 */
5500 tSCC zUltrix_IfdefList[] =
5501 "|sys/file.h|";
5502 /*
5503 * Machine/OS name selection pattern
5504 */
5505 #define apzUltrix_IfdefMachs (const char**)NULL
5506
5507 /*
5508 * content selection pattern - do fix if pattern found
5509 */
5510 tSCC zUltrix_IfdefSelect0[] =
5511 "^#ifdef KERNEL[ \t]+&&";
5512
5513 #define ULTRIX_IFDEF_TEST_CT 1
5514 static tTestDesc aUltrix_IfdefTests[] = {
5515 { TT_EGREP, zUltrix_IfdefSelect0, (regex_t*)NULL }, };
5516
5517 /*
5518 * Fix Command Arguments for Ultrix_Ifdef
5519 */
5520 static const char* apzUltrix_IfdefPatch[] = {
5521 "format",
5522 "#if defined(KERNEL) &&",
5523 (char*)NULL };
5524
5525 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5526 *
5527 * Description of Ultrix_Math_Ifdef fix
5528 */
5529 tSCC zUltrix_Math_IfdefName[] =
5530 "ultrix_math_ifdef";
5531
5532 /*
5533 * File name selection pattern
5534 */
5535 tSCC zUltrix_Math_IfdefList[] =
5536 "|sys/limits.h|float.h|math.h|";
5537 /*
5538 * Machine/OS name selection pattern
5539 */
5540 #define apzUltrix_Math_IfdefMachs (const char**)NULL
5541
5542 /*
5543 * content selection pattern - do fix if pattern found
5544 */
5545 tSCC zUltrix_Math_IfdefSelect0[] =
5546 "^(#if.*)\\|\\|[ \t]+CC\\$[a-z]+";
5547
5548 #define ULTRIX_MATH_IFDEF_TEST_CT 1
5549 static tTestDesc aUltrix_Math_IfdefTests[] = {
5550 { TT_EGREP, zUltrix_Math_IfdefSelect0, (regex_t*)NULL }, };
5551
5552 /*
5553 * Fix Command Arguments for Ultrix_Math_Ifdef
5554 */
5555 static const char* apzUltrix_Math_IfdefPatch[] = {
5556 "format",
5557 "%1",
5558 (char*)NULL };
5559
5560 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5561 *
5562 * Description of Ultrix_Nested_Ioctl fix
5563 */
5564 tSCC zUltrix_Nested_IoctlName[] =
5565 "ultrix_nested_ioctl";
5566
5567 /*
5568 * File name selection pattern
5569 */
5570 tSCC zUltrix_Nested_IoctlList[] =
5571 "|sys/ioctl.h|";
5572 /*
5573 * Machine/OS name selection pattern
5574 */
5575 #define apzUltrix_Nested_IoctlMachs (const char**)NULL
5576
5577 /*
5578 * content selection pattern - do fix if pattern found
5579 */
5580 tSCC zUltrix_Nested_IoctlSelect0[] =
5581 "^/\\* #define SIOCSCREEN";
5582
5583 #define ULTRIX_NESTED_IOCTL_TEST_CT 1
5584 static tTestDesc aUltrix_Nested_IoctlTests[] = {
5585 { TT_EGREP, zUltrix_Nested_IoctlSelect0, (regex_t*)NULL }, };
5586
5587 /*
5588 * Fix Command Arguments for Ultrix_Nested_Ioctl
5589 */
5590 static const char* apzUltrix_Nested_IoctlPatch[] = { "sed",
5591 "-e", "/^\\/\\* #define SIOCSCREEN/s@/\\* screend@*//* screend@",
5592 (char*)NULL };
5593
5594 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5595 *
5596 * Description of Ultrix_Nested_Svc fix
5597 */
5598 tSCC zUltrix_Nested_SvcName[] =
5599 "ultrix_nested_svc";
5600
5601 /*
5602 * File name selection pattern
5603 */
5604 tSCC zUltrix_Nested_SvcList[] =
5605 "|rpc/svc.h|";
5606 /*
5607 * Machine/OS name selection pattern
5608 */
5609 #define apzUltrix_Nested_SvcMachs (const char**)NULL
5610
5611 /*
5612 * content selection pattern - do fix if pattern found
5613 */
5614 tSCC zUltrix_Nested_SvcSelect0[] =
5615 "^ \\*[ \t]*int protocol; */\\*";
5616
5617 #define ULTRIX_NESTED_SVC_TEST_CT 1
5618 static tTestDesc aUltrix_Nested_SvcTests[] = {
5619 { TT_EGREP, zUltrix_Nested_SvcSelect0, (regex_t*)NULL }, };
5620
5621 /*
5622 * Fix Command Arguments for Ultrix_Nested_Svc
5623 */
5624 static const char* apzUltrix_Nested_SvcPatch[] = { "sed",
5625 "-e", "s@^\\( \\*\tint protocol; \\)/\\*@\\1*/ /*@",
5626 (char*)NULL };
5627
5628 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5629 *
5630 * Description of Ultrix_Stat fix
5631 */
5632 tSCC zUltrix_StatName[] =
5633 "ultrix_stat";
5634
5635 /*
5636 * File name selection pattern
5637 */
5638 tSCC zUltrix_StatList[] =
5639 "|sys/stat.h|";
5640 /*
5641 * Machine/OS name selection pattern
5642 */
5643 #define apzUltrix_StatMachs (const char**)NULL
5644
5645 /*
5646 * content selection pattern - do fix if pattern found
5647 */
5648 tSCC zUltrix_StatSelect0[] =
5649 "@\\(#\\)stat\\.h.*6\\.1.*\\(ULTRIX\\)";
5650
5651 #define ULTRIX_STAT_TEST_CT 1
5652 static tTestDesc aUltrix_StatTests[] = {
5653 { TT_EGREP, zUltrix_StatSelect0, (regex_t*)NULL }, };
5654
5655 /*
5656 * Fix Command Arguments for Ultrix_Stat
5657 */
5658 static const char* apzUltrix_StatPatch[] = { "sed",
5659 "-e", "/^#define[ \t]S_IFPORT[ \t]*S_IFIFO$/a\\\n\
5660 \\\n\
5661 /* macro to test for symbolic link */\\\n\
5662 #define S_ISLNK(mode) (((mode) & S_IFMT) == S_IFLNK)\\\n\n",
5663 "-e", "/^[ \t]*fstat(),$/a\\\n\
5664 \tlstat(),\n",
5665 (char*)NULL };
5666
5667 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5668 *
5669 * Description of Ultrix_Static fix
5670 */
5671 tSCC zUltrix_StaticName[] =
5672 "ultrix_static";
5673
5674 /*
5675 * File name selection pattern
5676 */
5677 tSCC zUltrix_StaticList[] =
5678 "|machine/cpu.h|";
5679 /*
5680 * Machine/OS name selection pattern
5681 */
5682 #define apzUltrix_StaticMachs (const char**)NULL
5683
5684 /*
5685 * content selection pattern - do fix if pattern found
5686 */
5687 tSCC zUltrix_StaticSelect0[] =
5688 "#include \"r[34]_cpu";
5689
5690 #define ULTRIX_STATIC_TEST_CT 1
5691 static tTestDesc aUltrix_StaticTests[] = {
5692 { TT_EGREP, zUltrix_StaticSelect0, (regex_t*)NULL }, };
5693
5694 /*
5695 * Fix Command Arguments for Ultrix_Static
5696 */
5697 static const char* apzUltrix_StaticPatch[] = { "sed",
5698 "-e", "s/^static struct tlb_pid_state/struct tlb_pid_state/",
5699 "-e", "s/^#include \"r3_cpu\\.h\"$/#include <machine\\/r3_cpu\\.h>/",
5700 "-e", "s/^#include \"r4_cpu\\.h\"$/#include <machine\\/r4_cpu\\.h>/",
5701 (char*)NULL };
5702
5703 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5704 *
5705 * Description of Ultrix_Strings fix
5706 */
5707 tSCC zUltrix_StringsName[] =
5708 "ultrix_strings";
5709
5710 /*
5711 * File name selection pattern
5712 */
5713 tSCC zUltrix_StringsList[] =
5714 "|strings.h|";
5715 /*
5716 * Machine/OS name selection pattern
5717 */
5718 #define apzUltrix_StringsMachs (const char**)NULL
5719
5720 /*
5721 * content selection pattern - do fix if pattern found
5722 */
5723 tSCC zUltrix_StringsSelect0[] =
5724 "@\\(#\\)strings\\.h.*6\\.1.*\\(ULTRIX\\)";
5725
5726 #define ULTRIX_STRINGS_TEST_CT 1
5727 static tTestDesc aUltrix_StringsTests[] = {
5728 { TT_EGREP, zUltrix_StringsSelect0, (regex_t*)NULL }, };
5729
5730 /*
5731 * Fix Command Arguments for Ultrix_Strings
5732 */
5733 static const char* apzUltrix_StringsPatch[] = {
5734 "wrap",
5735 (char*)NULL };
5736
5737 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5738 *
5739 * Description of Undefine_Null fix
5740 */
5741 tSCC zUndefine_NullName[] =
5742 "undefine_null";
5743
5744 /*
5745 * File name selection pattern
5746 */
5747 #define zUndefine_NullList (char*)NULL
5748 /*
5749 * Machine/OS name selection pattern
5750 */
5751 #define apzUndefine_NullMachs (const char**)NULL
5752
5753 /*
5754 * content selection pattern - do fix if pattern found
5755 */
5756 tSCC zUndefine_NullSelect0[] =
5757 "^#[ \t]*define[ \t]+NULL[ \t]";
5758
5759 /*
5760 * content bypass pattern - skip fix if pattern found
5761 */
5762 tSCC zUndefine_NullBypass0[] =
5763 "#[ \t]*(ifn|un)def[ \t]+NULL($|[ \t\r])";
5764
5765 #define UNDEFINE_NULL_TEST_CT 2
5766 static tTestDesc aUndefine_NullTests[] = {
5767 { TT_NEGREP, zUndefine_NullBypass0, (regex_t*)NULL },
5768 { TT_EGREP, zUndefine_NullSelect0, (regex_t*)NULL }, };
5769
5770 /*
5771 * Fix Command Arguments for Undefine_Null
5772 */
5773 static const char* apzUndefine_NullPatch[] = {
5774 "format",
5775 "#ifndef NULL\n\
5776 #define NULL%1\n\
5777 #endif\n",
5778 "^#[ \t]*define[ \t]+NULL([^\r\n\
5779 ]+)[\r]*\n",
5780 (char*)NULL };
5781
5782 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5783 *
5784 * Description of Unicosmk_Restrict fix
5785 */
5786 tSCC zUnicosmk_RestrictName[] =
5787 "unicosmk_restrict";
5788
5789 /*
5790 * File name selection pattern
5791 */
5792 tSCC zUnicosmk_RestrictList[] =
5793 "|stdio.h|stdlib.h|wchar.h|";
5794 /*
5795 * Machine/OS name selection pattern
5796 */
5797 tSCC* apzUnicosmk_RestrictMachs[] = {
5798 "*-*-unicosmk*",
5799 (const char*)NULL };
5800
5801 /*
5802 * content selection pattern - do fix if pattern found
5803 */
5804 tSCC zUnicosmk_RestrictSelect0[] =
5805 "(\\*[ \t]*)restrict([ \t]+)";
5806
5807 #define UNICOSMK_RESTRICT_TEST_CT 1
5808 static tTestDesc aUnicosmk_RestrictTests[] = {
5809 { TT_EGREP, zUnicosmk_RestrictSelect0, (regex_t*)NULL }, };
5810
5811 /*
5812 * Fix Command Arguments for Unicosmk_Restrict
5813 */
5814 static const char* apzUnicosmk_RestrictPatch[] = {
5815 "format",
5816 "%1__restrict__%2",
5817 (char*)NULL };
5818
5819 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5820 *
5821 * Description of Uw7_Byteorder_Fix fix
5822 */
5823 tSCC zUw7_Byteorder_FixName[] =
5824 "uw7_byteorder_fix";
5825
5826 /*
5827 * File name selection pattern
5828 */
5829 tSCC zUw7_Byteorder_FixList[] =
5830 "|arpa/inet.h|";
5831 /*
5832 * Machine/OS name selection pattern
5833 */
5834 tSCC* apzUw7_Byteorder_FixMachs[] = {
5835 "*-*-sysv4*",
5836 "i?86-*-sysv5*",
5837 "i?86-*-udk*",
5838 "i?86-*-solaris2.[0-4]",
5839 "powerpcle-*-solaris2.[0-4]",
5840 "sparc-*-solaris2.[0-4]",
5841 (const char*)NULL };
5842
5843 /*
5844 * content selection pattern - do fix if pattern found
5845 */
5846 tSCC zUw7_Byteorder_FixSelect0[] =
5847 "in_port_t";
5848
5849 /*
5850 * perform the 'test' shell command - do fix on success
5851 */
5852 tSCC zUw7_Byteorder_FixTest0[] =
5853 "-f sys/byteorder.h";
5854
5855 #define UW7_BYTEORDER_FIX_TEST_CT 2
5856 static tTestDesc aUw7_Byteorder_FixTests[] = {
5857 { TT_TEST, zUw7_Byteorder_FixTest0, 0 /* unused */ },
5858 { TT_EGREP, zUw7_Byteorder_FixSelect0, (regex_t*)NULL }, };
5859
5860 /*
5861 * Fix Command Arguments for Uw7_Byteorder_Fix
5862 */
5863 static const char* apzUw7_Byteorder_FixPatch[] = {
5864 "format",
5865 "",
5866 "^extern.*[ \t](htons|ntohs).*\\(in_port_t\\).*;",
5867 (char*)NULL };
5868
5869 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5870 *
5871 * Description of Va_I960_Macro fix
5872 */
5873 tSCC zVa_I960_MacroName[] =
5874 "va_i960_macro";
5875
5876 /*
5877 * File name selection pattern
5878 */
5879 tSCC zVa_I960_MacroList[] =
5880 "|arch/i960/archI960.h|";
5881 /*
5882 * Machine/OS name selection pattern
5883 */
5884 #define apzVa_I960_MacroMachs (const char**)NULL
5885
5886 /*
5887 * content selection pattern - do fix if pattern found
5888 */
5889 tSCC zVa_I960_MacroSelect0[] =
5890 "__(vsiz|vali|vpad|alignof__)";
5891
5892 #define VA_I960_MACRO_TEST_CT 1
5893 static tTestDesc aVa_I960_MacroTests[] = {
5894 { TT_EGREP, zVa_I960_MacroSelect0, (regex_t*)NULL }, };
5895
5896 /*
5897 * Fix Command Arguments for Va_I960_Macro
5898 */
5899 static const char* apzVa_I960_MacroPatch[] = {
5900 "format",
5901 "__vx%1",
5902 (char*)NULL };
5903
5904 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5905 *
5906 * Description of Void_Null fix
5907 */
5908 tSCC zVoid_NullName[] =
5909 "void_null";
5910
5911 /*
5912 * File name selection pattern
5913 */
5914 tSCC zVoid_NullList[] =
5915 "|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|";
5916 /*
5917 * Machine/OS name selection pattern
5918 */
5919 #define apzVoid_NullMachs (const char**)NULL
5920
5921 /*
5922 * content selection pattern - do fix if pattern found
5923 */
5924 tSCC zVoid_NullSelect0[] =
5925 "^#[ \t]*define[ \t]+NULL[ \t]+\\(\\(void[ \t]*\\*\\)0\\)";
5926
5927 #define VOID_NULL_TEST_CT 1
5928 static tTestDesc aVoid_NullTests[] = {
5929 { TT_EGREP, zVoid_NullSelect0, (regex_t*)NULL }, };
5930
5931 /*
5932 * Fix Command Arguments for Void_Null
5933 */
5934 static const char* apzVoid_NullPatch[] = {
5935 "format",
5936 "#define NULL 0",
5937 (char*)NULL };
5938
5939 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5940 *
5941 * Description of Vxworks_Gcc_Problem fix
5942 */
5943 tSCC zVxworks_Gcc_ProblemName[] =
5944 "vxworks_gcc_problem";
5945
5946 /*
5947 * File name selection pattern
5948 */
5949 tSCC zVxworks_Gcc_ProblemList[] =
5950 "|types/vxTypesBase.h|";
5951 /*
5952 * Machine/OS name selection pattern
5953 */
5954 #define apzVxworks_Gcc_ProblemMachs (const char**)NULL
5955
5956 /*
5957 * content selection pattern - do fix if pattern found
5958 */
5959 tSCC zVxworks_Gcc_ProblemSelect0[] =
5960 "__GNUC_TYPEOF_FEATURE_BROKEN_USE_DEFAULT_UNTIL_FIXED__";
5961
5962 #define VXWORKS_GCC_PROBLEM_TEST_CT 1
5963 static tTestDesc aVxworks_Gcc_ProblemTests[] = {
5964 { TT_EGREP, zVxworks_Gcc_ProblemSelect0, (regex_t*)NULL }, };
5965
5966 /*
5967 * Fix Command Arguments for Vxworks_Gcc_Problem
5968 */
5969 static const char* apzVxworks_Gcc_ProblemPatch[] = { "sed",
5970 "-e", "s/#ifdef __GNUC_TYPEOF_FEATURE_BROKEN_USE_DEFAULT_UNTIL_FIXED__/#if 1/",
5971 "-e", "/[ \t]size_t/i\\\n\
5972 #ifndef _GCC_SIZE_T\\\n\
5973 #define _GCC_SIZE_T\n",
5974 "-e", "/[ \t]size_t/a\\\n\
5975 #endif\n",
5976 "-e", "/[ \t]ptrdiff_t/i\\\n\
5977 #ifndef _GCC_PTRDIFF_T\\\n\
5978 #define _GCC_PTRDIFF_T\n",
5979 "-e", "/[ \t]ptrdiff_t/a\\\n\
5980 #endif\n",
5981 "-e", "/[ \t]wchar_t/i\\\n\
5982 #ifndef _GCC_WCHAR_T\\\n\
5983 #define _GCC_WCHAR_T\n",
5984 "-e", "/[ \t]wchar_t/a\\\n\
5985 #endif\n",
5986 (char*)NULL };
5987
5988 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5989 *
5990 * Description of Vxworks_Needs_Vxtypes fix
5991 */
5992 tSCC zVxworks_Needs_VxtypesName[] =
5993 "vxworks_needs_vxtypes";
5994
5995 /*
5996 * File name selection pattern
5997 */
5998 tSCC zVxworks_Needs_VxtypesList[] =
5999 "|time.h|";
6000 /*
6001 * Machine/OS name selection pattern
6002 */
6003 #define apzVxworks_Needs_VxtypesMachs (const char**)NULL
6004
6005 /*
6006 * content selection pattern - do fix if pattern found
6007 */
6008 tSCC zVxworks_Needs_VxtypesSelect0[] =
6009 "uint_t([ \t]+_clocks_per_sec)";
6010
6011 #define VXWORKS_NEEDS_VXTYPES_TEST_CT 1
6012 static tTestDesc aVxworks_Needs_VxtypesTests[] = {
6013 { TT_EGREP, zVxworks_Needs_VxtypesSelect0, (regex_t*)NULL }, };
6014
6015 /*
6016 * Fix Command Arguments for Vxworks_Needs_Vxtypes
6017 */
6018 static const char* apzVxworks_Needs_VxtypesPatch[] = {
6019 "format",
6020 "unsigned int%1",
6021 (char*)NULL };
6022
6023 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6024 *
6025 * Description of Vxworks_Needs_Vxworks fix
6026 */
6027 tSCC zVxworks_Needs_VxworksName[] =
6028 "vxworks_needs_vxworks";
6029
6030 /*
6031 * File name selection pattern
6032 */
6033 tSCC zVxworks_Needs_VxworksList[] =
6034 "|sys/stat.h|";
6035 /*
6036 * Machine/OS name selection pattern
6037 */
6038 #define apzVxworks_Needs_VxworksMachs (const char**)NULL
6039
6040 /*
6041 * content selection pattern - do fix if pattern found
6042 */
6043 tSCC zVxworks_Needs_VxworksSelect0[] =
6044 "#[ \t]define[ \t]+__INCstath";
6045
6046 /*
6047 * perform the 'test' shell command - do fix on success
6048 */
6049 tSCC zVxworks_Needs_VxworksTest0[] =
6050 " -r types/vxTypesOld.h";
6051 tSCC zVxworks_Needs_VxworksTest1[] =
6052 " -n \"`egrep '#include' $file`\"";
6053 tSCC zVxworks_Needs_VxworksTest2[] =
6054 " -n \"`egrep ULONG $file`\"";
6055
6056 #define VXWORKS_NEEDS_VXWORKS_TEST_CT 4
6057 static tTestDesc aVxworks_Needs_VxworksTests[] = {
6058 { TT_TEST, zVxworks_Needs_VxworksTest0, 0 /* unused */ },
6059 { TT_TEST, zVxworks_Needs_VxworksTest1, 0 /* unused */ },
6060 { TT_TEST, zVxworks_Needs_VxworksTest2, 0 /* unused */ },
6061 { TT_EGREP, zVxworks_Needs_VxworksSelect0, (regex_t*)NULL }, };
6062
6063 /*
6064 * Fix Command Arguments for Vxworks_Needs_Vxworks
6065 */
6066 static const char* apzVxworks_Needs_VxworksPatch[] = { "sed",
6067 "-e", "/#[ \t]define[ \t][ \t]*__INCstath/a\\\n\
6068 #include <types/vxTypesOld.h>\n",
6069 (char*)NULL };
6070
6071 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6072 *
6073 * Description of Vxworks_Time fix
6074 */
6075 tSCC zVxworks_TimeName[] =
6076 "vxworks_time";
6077
6078 /*
6079 * File name selection pattern
6080 */
6081 tSCC zVxworks_TimeList[] =
6082 "|time.h|";
6083 /*
6084 * Machine/OS name selection pattern
6085 */
6086 #define apzVxworks_TimeMachs (const char**)NULL
6087
6088 /*
6089 * content selection pattern - do fix if pattern found
6090 */
6091 tSCC zVxworks_TimeSelect0[] =
6092 "#[ \t]*define[ \t]+VOIDFUNCPTR[ \t].*";
6093
6094 /*
6095 * perform the 'test' shell command - do fix on success
6096 */
6097 tSCC zVxworks_TimeTest0[] =
6098 " -r vxWorks.h";
6099
6100 #define VXWORKS_TIME_TEST_CT 2
6101 static tTestDesc aVxworks_TimeTests[] = {
6102 { TT_TEST, zVxworks_TimeTest0, 0 /* unused */ },
6103 { TT_EGREP, zVxworks_TimeSelect0, (regex_t*)NULL }, };
6104
6105 /*
6106 * Fix Command Arguments for Vxworks_Time
6107 */
6108 static const char* apzVxworks_TimePatch[] = {
6109 "format",
6110 "#ifndef __gcc_VOIDFUNCPTR_defined\n\
6111 #ifdef __cplusplus\n\
6112 typedef void (*__gcc_VOIDFUNCPTR) (...);\n\
6113 #else\n\
6114 typedef void (*__gcc_VOIDFUNCPTR) ();\n\
6115 #endif\n\
6116 #define __gcc_VOIDFUNCPTR_defined\n\
6117 #endif\n\
6118 #define VOIDFUNCPTR __gcc_VOIDFUNCPTR",
6119 (char*)NULL };
6120
6121 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6122 *
6123 * Description of Windiss_Math1 fix
6124 */
6125 tSCC zWindiss_Math1Name[] =
6126 "windiss_math1";
6127
6128 /*
6129 * File name selection pattern
6130 */
6131 tSCC zWindiss_Math1List[] =
6132 "|math.h|";
6133 /*
6134 * Machine/OS name selection pattern
6135 */
6136 tSCC* apzWindiss_Math1Machs[] = {
6137 "*-*-windiss",
6138 (const char*)NULL };
6139 #define WINDISS_MATH1_TEST_CT 0
6140 #define aWindiss_Math1Tests (tTestDesc*)NULL
6141
6142 /*
6143 * Fix Command Arguments for Windiss_Math1
6144 */
6145 static const char* apzWindiss_Math1Patch[] = { "sed",
6146 "-e", "s|inline long double cosl.*|#ifndef __GNUC__|",
6147 (char*)NULL };
6148
6149 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6150 *
6151 * Description of Windiss_Math2 fix
6152 */
6153 tSCC zWindiss_Math2Name[] =
6154 "windiss_math2";
6155
6156 /*
6157 * File name selection pattern
6158 */
6159 tSCC zWindiss_Math2List[] =
6160 "|math.h|";
6161 /*
6162 * Machine/OS name selection pattern
6163 */
6164 tSCC* apzWindiss_Math2Machs[] = {
6165 "*-*-windiss",
6166 (const char*)NULL };
6167 #define WINDISS_MATH2_TEST_CT 0
6168 #define aWindiss_Math2Tests (tTestDesc*)NULL
6169
6170 /*
6171 * Fix Command Arguments for Windiss_Math2
6172 */
6173 static const char* apzWindiss_Math2Patch[] = { "sed",
6174 "-e", "s|/\\* long double declarations \\*/|#endif /* __GNUC__ */|",
6175 (char*)NULL };
6176
6177 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6178 *
6179 * Description of Windiss_Valist fix
6180 */
6181 tSCC zWindiss_ValistName[] =
6182 "windiss_valist";
6183
6184 /*
6185 * File name selection pattern
6186 */
6187 #define zWindiss_ValistList (char*)NULL
6188 /*
6189 * Machine/OS name selection pattern
6190 */
6191 tSCC* apzWindiss_ValistMachs[] = {
6192 "*-*-windiss",
6193 (const char*)NULL };
6194
6195 /*
6196 * content selection pattern - do fix if pattern found
6197 */
6198 tSCC zWindiss_ValistSelect0[] =
6199 "(#include.*)diab/va_list.h";
6200
6201 #define WINDISS_VALIST_TEST_CT 1
6202 static tTestDesc aWindiss_ValistTests[] = {
6203 { TT_EGREP, zWindiss_ValistSelect0, (regex_t*)NULL }, };
6204
6205 /*
6206 * Fix Command Arguments for Windiss_Valist
6207 */
6208 static const char* apzWindiss_ValistPatch[] = { "sed",
6209 "-e", "s|diab/va_list.h|stdarg.h|",
6210 (char*)NULL };
6211
6212 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6213 *
6214 * Description of X11_Class fix
6215 */
6216 tSCC zX11_ClassName[] =
6217 "x11_class";
6218
6219 /*
6220 * File name selection pattern
6221 */
6222 tSCC zX11_ClassList[] =
6223 "|X11/ShellP.h|";
6224 /*
6225 * Machine/OS name selection pattern
6226 */
6227 #define apzX11_ClassMachs (const char**)NULL
6228
6229 /*
6230 * content selection pattern - do fix if pattern found
6231 */
6232 tSCC zX11_ClassSelect0[] =
6233 "^([ \t]*char \\*)class;(.*)";
6234
6235 /*
6236 * content bypass pattern - skip fix if pattern found
6237 */
6238 tSCC zX11_ClassBypass0[] =
6239 "__cplusplus";
6240
6241 #define X11_CLASS_TEST_CT 2
6242 static tTestDesc aX11_ClassTests[] = {
6243 { TT_NEGREP, zX11_ClassBypass0, (regex_t*)NULL },
6244 { TT_EGREP, zX11_ClassSelect0, (regex_t*)NULL }, };
6245
6246 /*
6247 * Fix Command Arguments for X11_Class
6248 */
6249 static const char* apzX11_ClassPatch[] = {
6250 "format",
6251 "#ifdef __cplusplus\n\
6252 %1c_class;%2\n\
6253 #else\n\
6254 %1class;%2\n\
6255 #endif",
6256 (char*)NULL };
6257
6258 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6259 *
6260 * Description of X11_Class_Usage fix
6261 */
6262 tSCC zX11_Class_UsageName[] =
6263 "x11_class_usage";
6264
6265 /*
6266 * File name selection pattern
6267 */
6268 tSCC zX11_Class_UsageList[] =
6269 "|Xm/BaseClassI.h|";
6270 /*
6271 * Machine/OS name selection pattern
6272 */
6273 #define apzX11_Class_UsageMachs (const char**)NULL
6274
6275 /*
6276 * content selection pattern - do fix if pattern found
6277 */
6278 tSCC zX11_Class_UsageSelect0[] =
6279 " class\\)";
6280
6281 /*
6282 * content bypass pattern - skip fix if pattern found
6283 */
6284 tSCC zX11_Class_UsageBypass0[] =
6285 "__cplusplus";
6286
6287 #define X11_CLASS_USAGE_TEST_CT 2
6288 static tTestDesc aX11_Class_UsageTests[] = {
6289 { TT_NEGREP, zX11_Class_UsageBypass0, (regex_t*)NULL },
6290 { TT_EGREP, zX11_Class_UsageSelect0, (regex_t*)NULL }, };
6291
6292 /*
6293 * Fix Command Arguments for X11_Class_Usage
6294 */
6295 static const char* apzX11_Class_UsagePatch[] = {
6296 "format",
6297 " c_class)",
6298 (char*)NULL };
6299
6300 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6301 *
6302 * Description of X11_New fix
6303 */
6304 tSCC zX11_NewName[] =
6305 "x11_new";
6306
6307 /*
6308 * File name selection pattern
6309 */
6310 tSCC zX11_NewList[] =
6311 "|Xm/Traversal.h|";
6312 /*
6313 * Machine/OS name selection pattern
6314 */
6315 #define apzX11_NewMachs (const char**)NULL
6316
6317 /*
6318 * content bypass pattern - skip fix if pattern found
6319 */
6320 tSCC zX11_NewBypass0[] =
6321 "__cplusplus";
6322
6323 #define X11_NEW_TEST_CT 1
6324 static tTestDesc aX11_NewTests[] = {
6325 { TT_NEGREP, zX11_NewBypass0, (regex_t*)NULL }, };
6326
6327 /*
6328 * Fix Command Arguments for X11_New
6329 */
6330 static const char* apzX11_NewPatch[] = { "sed",
6331 "-e", "/Widget\told, new;/i\\\n\
6332 #ifdef __cplusplus\\\n\
6333 \tWidget\told, c_new;\\\n\
6334 #else\n",
6335 "-e", "/Widget\told, new;/a\\\n\
6336 #endif\n",
6337 "-e", "s/Widget new,/Widget c_new,/g",
6338 (char*)NULL };
6339
6340 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6341 *
6342 * Description of X11_Sprintf fix
6343 */
6344 tSCC zX11_SprintfName[] =
6345 "x11_sprintf";
6346
6347 /*
6348 * File name selection pattern
6349 */
6350 tSCC zX11_SprintfList[] =
6351 "|X11/Xmu.h|X11/Xmu/Xmu.h|";
6352 /*
6353 * Machine/OS name selection pattern
6354 */
6355 #define apzX11_SprintfMachs (const char**)NULL
6356
6357 /*
6358 * content selection pattern - do fix if pattern found
6359 */
6360 tSCC zX11_SprintfSelect0[] =
6361 "^extern char \\*\tsprintf\\(\\);$";
6362
6363 #define X11_SPRINTF_TEST_CT 1
6364 static tTestDesc aX11_SprintfTests[] = {
6365 { TT_EGREP, zX11_SprintfSelect0, (regex_t*)NULL }, };
6366
6367 /*
6368 * Fix Command Arguments for X11_Sprintf
6369 */
6370 static const char* apzX11_SprintfPatch[] = {
6371 "format",
6372 "#ifndef __STDC__\n\
6373 %0\n\
6374 #endif /* !defined __STDC__ */",
6375 (char*)NULL };
6376
6377
6378 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6379 *
6380 * List of all fixes
6381 */
6382 #define REGEX_COUNT 181
6383 #define MACH_LIST_SIZE_LIMIT 261
6384 #define FIX_COUNT 161
6385
6386 /*
6387 * Enumerate the fixes
6388 */
6389 typedef enum {
6390 AAB_FD_ZERO_ASM_POSIX_TYPES_H_FIXIDX,
6391 AAB_FD_ZERO_GNU_TYPES_H_FIXIDX,
6392 AAB_FD_ZERO_SELECTBITS_H_FIXIDX,
6393 AAB_SOLARIS_SYS_VARARGS_H_FIXIDX,
6394 AAB_SUN_MEMCPY_FIXIDX,
6395 AAB_ULTRIX_ANSI_COMPAT_FIXIDX,
6396 AAB_ULTRIX_LIMITS_FIXIDX,
6397 AAB_ULTRIX_MEMORY_FIXIDX,
6398 AAB_ULTRIX_STRING_FIXIDX,
6399 AIX_PTHREAD_FIXIDX,
6400 AIX_SYSMACHINE_FIXIDX,
6401 AIX_SYSWAIT_FIXIDX,
6402 AIX_VOLATILE_FIXIDX,
6403 ALPHA___ASSERT_FIXIDX,
6404 ALPHA___EXTERN_PREFIX_FIXIDX,
6405 ALPHA_ASSERT_FIXIDX,
6406 ALPHA_GETOPT_FIXIDX,
6407 ALPHA_PARENS_FIXIDX,
6408 ALPHA_PTHREAD_FIXIDX,
6409 ALPHA_PTHREAD_GCC_FIXIDX,
6410 ALPHA_SBRK_FIXIDX,
6411 AVOID_BOOL_DEFINE_FIXIDX,
6412 AVOID_BOOL_TYPE_FIXIDX,
6413 AVOID_WCHAR_T_TYPE_FIXIDX,
6414 BAD_LVAL_FIXIDX,
6415 BAD_STRUCT_TERM_FIXIDX,
6416 BADQUOTE_FIXIDX,
6417 BROKEN_ASSERT_STDIO_FIXIDX,
6418 BROKEN_ASSERT_STDLIB_FIXIDX,
6419 BROKEN_CABS_FIXIDX,
6420 BSD_STDIO_ATTRS_CONFLICT_FIXIDX,
6421 CTRL_QUOTES_DEF_FIXIDX,
6422 CTRL_QUOTES_USE_FIXIDX,
6423 CXX_UNREADY_FIXIDX,
6424 DEC_INTERN_ASM_FIXIDX,
6425 DJGPP_WCHAR_H_FIXIDX,
6426 ECD_CURSOR_FIXIDX,
6427 FREEBSD_GCC3_BREAKAGE_FIXIDX,
6428 GNU_TYPES_FIXIDX,
6429 HP_INLINE_FIXIDX,
6430 HP_SYSFILE_FIXIDX,
6431 HPUX10_CPP_POW_INLINE_FIXIDX,
6432 HPUX11_CPP_POW_INLINE_FIXIDX,
6433 HPUX10_CTYPE_DECLARATIONS1_FIXIDX,
6434 HPUX10_CTYPE_DECLARATIONS2_FIXIDX,
6435 HPUX11_ABS_FIXIDX,
6436 HPUX11_FABSF_FIXIDX,
6437 HPUX11_SIZE_T_FIXIDX,
6438 HPUX11_UINT32_C_FIXIDX,
6439 HPUX11_VSNPRINTF_FIXIDX,
6440 HPUX11_SNPRINTF_FIXIDX,
6441 HPUX8_BOGUS_INLINES_FIXIDX,
6442 HPUX_CTYPE_MACROS_FIXIDX,
6443 HPUX_LONG_DOUBLE_FIXIDX,
6444 HPUX_MAXINT_FIXIDX,
6445 HPUX_SYSTIME_FIXIDX,
6446 INT_ABORT_FREE_AND_EXIT_FIXIDX,
6447 IO_QUOTES_DEF_FIXIDX,
6448 IO_QUOTES_USE_FIXIDX,
6449 IP_MISSING_SEMI_FIXIDX,
6450 IRIX___RESTRICT_FIXIDX,
6451 IRIX_ASM_APOSTROPHE_FIXIDX,
6452 IRIX_LIMITS_CONST_FIXIDX,
6453 IRIX_SOCKLEN_T_FIXIDX,
6454 IRIX_STDIO_VA_LIST_FIXIDX,
6455 IRIX_WCSFTIME_FIXIDX,
6456 ISC_FMOD_FIXIDX,
6457 ISC_OMITS_WITH_STDC_FIXIDX,
6458 KANDR_CONCAT_FIXIDX,
6459 LIBC1_G_VA_LIST_FIXIDX,
6460 LIBC1_IFDEFD_MEMX_FIXIDX,
6461 LIMITS_IFNDEFS_FIXIDX,
6462 LYNX_VOID_INT_FIXIDX,
6463 LYNXOS_FCNTL_PROTO_FIXIDX,
6464 MACHINE_ANSI_H_VA_LIST_FIXIDX,
6465 MACHINE_NAME_FIXIDX,
6466 MATH_EXCEPTION_FIXIDX,
6467 MATH_HUGE_VAL_FROM_DBL_MAX_FIXIDX,
6468 MATH_HUGE_VAL_IFNDEF_FIXIDX,
6469 NESTED_AUTH_DES_FIXIDX,
6470 NESTED_MOTOROLA_FIXIDX,
6471 NESTED_SYS_LIMITS_FIXIDX,
6472 NETBSD_EXTRA_SEMICOLON_FIXIDX,
6473 NEXT_MATH_PREFIX_FIXIDX,
6474 NEXT_TEMPLATE_FIXIDX,
6475 NEXT_VOLITILE_FIXIDX,
6476 NEXT_WAIT_UNION_FIXIDX,
6477 NODEENT_SYNTAX_FIXIDX,
6478 OBSTACK_LVALUE_CAST_FIXIDX,
6479 OSF_NAMESPACE_A_FIXIDX,
6480 OSF_NAMESPACE_C_FIXIDX,
6481 PTHREAD_PAGE_SIZE_FIXIDX,
6482 READ_RET_TYPE_FIXIDX,
6483 RS6000_DOUBLE_FIXIDX,
6484 RS6000_FCHMOD_FIXIDX,
6485 RS6000_PARAM_FIXIDX,
6486 SCO_MATH_FIXIDX,
6487 SCO_REGSET_FIXIDX,
6488 SCO_STATIC_FUNC_FIXIDX,
6489 SCO_UTIME_FIXIDX,
6490 SOLARIS_MUTEX_INIT_1_FIXIDX,
6491 SOLARIS_MUTEX_INIT_2_FIXIDX,
6492 SOLARIS_SOCKET_FIXIDX,
6493 SOLARIS_STDIO_TAG_FIXIDX,
6494 SOLARIS_UNISTD_FIXIDX,
6495 SOLARIS_WIDEC_FIXIDX,
6496 STATSSWTCH_FIXIDX,
6497 STDIO_STDARG_H_FIXIDX,
6498 STDIO_VA_LIST_FIXIDX,
6499 STRICT_ANSI_NOT_FIXIDX,
6500 STRICT_ANSI_NOT_CTD_FIXIDX,
6501 STRICT_ANSI_ONLY_FIXIDX,
6502 STRUCT_FILE_FIXIDX,
6503 STRUCT_SOCKADDR_FIXIDX,
6504 SUN_AUTH_PROTO_FIXIDX,
6505 SUN_BOGUS_IFDEF_FIXIDX,
6506 SUN_CATMACRO_FIXIDX,
6507 SUN_MALLOC_FIXIDX,
6508 SUN_RUSERS_SEMI_FIXIDX,
6509 SUN_SIGNAL_FIXIDX,
6510 SUNOS_MATHERR_DECL_FIXIDX,
6511 SUNOS_STRLEN_FIXIDX,
6512 SVR4__P_FIXIDX,
6513 SVR4_DISABLE_OPT_FIXIDX,
6514 SVR4_GETCWD_FIXIDX,
6515 SVR4_KRNL_FIXIDX,
6516 SVR4_PROFIL_FIXIDX,
6517 SVR4_SIGHANDLER_TYPE_FIXIDX,
6518 SVR4_UNDECLARED_GETRNGE_FIXIDX,
6519 SYSV68_STRING_FIXIDX,
6520 SYSZ_STDLIB_FOR_SUN_FIXIDX,
6521 THREAD_KEYWORD_FIXIDX,
6522 TINFO_CPLUSPLUS_FIXIDX,
6523 ULTRIX_ATEXIT_PARAM_FIXIDX,
6524 ULTRIX_ATOF_PARAM_FIXIDX,
6525 ULTRIX_CONST_FIXIDX,
6526 ULTRIX_CONST2_FIXIDX,
6527 ULTRIX_FIX_FIXPROTO_FIXIDX,
6528 ULTRIX_IFDEF_FIXIDX,
6529 ULTRIX_MATH_IFDEF_FIXIDX,
6530 ULTRIX_NESTED_IOCTL_FIXIDX,
6531 ULTRIX_NESTED_SVC_FIXIDX,
6532 ULTRIX_STAT_FIXIDX,
6533 ULTRIX_STATIC_FIXIDX,
6534 ULTRIX_STRINGS_FIXIDX,
6535 UNDEFINE_NULL_FIXIDX,
6536 UNICOSMK_RESTRICT_FIXIDX,
6537 UW7_BYTEORDER_FIX_FIXIDX,
6538 VA_I960_MACRO_FIXIDX,
6539 VOID_NULL_FIXIDX,
6540 VXWORKS_GCC_PROBLEM_FIXIDX,
6541 VXWORKS_NEEDS_VXTYPES_FIXIDX,
6542 VXWORKS_NEEDS_VXWORKS_FIXIDX,
6543 VXWORKS_TIME_FIXIDX,
6544 WINDISS_MATH1_FIXIDX,
6545 WINDISS_MATH2_FIXIDX,
6546 WINDISS_VALIST_FIXIDX,
6547 X11_CLASS_FIXIDX,
6548 X11_CLASS_USAGE_FIXIDX,
6549 X11_NEW_FIXIDX,
6550 X11_SPRINTF_FIXIDX
6551 } t_fixinc_idx;
6552
6553 tFixDesc fixDescList[ FIX_COUNT ] = {
6554 { zAab_Fd_Zero_Asm_Posix_Types_HName, zAab_Fd_Zero_Asm_Posix_Types_HList,
6555 apzAab_Fd_Zero_Asm_Posix_Types_HMachs,
6556 AAB_FD_ZERO_ASM_POSIX_TYPES_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
6557 aAab_Fd_Zero_Asm_Posix_Types_HTests, apzAab_Fd_Zero_Asm_Posix_Types_HPatch, 0 },
6558
6559 { zAab_Fd_Zero_Gnu_Types_HName, zAab_Fd_Zero_Gnu_Types_HList,
6560 apzAab_Fd_Zero_Gnu_Types_HMachs,
6561 AAB_FD_ZERO_GNU_TYPES_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
6562 aAab_Fd_Zero_Gnu_Types_HTests, apzAab_Fd_Zero_Gnu_Types_HPatch, 0 },
6563
6564 { zAab_Fd_Zero_Selectbits_HName, zAab_Fd_Zero_Selectbits_HList,
6565 apzAab_Fd_Zero_Selectbits_HMachs,
6566 AAB_FD_ZERO_SELECTBITS_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
6567 aAab_Fd_Zero_Selectbits_HTests, apzAab_Fd_Zero_Selectbits_HPatch, 0 },
6568
6569 { zAab_Solaris_Sys_Varargs_HName, zAab_Solaris_Sys_Varargs_HList,
6570 apzAab_Solaris_Sys_Varargs_HMachs,
6571 AAB_SOLARIS_SYS_VARARGS_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
6572 aAab_Solaris_Sys_Varargs_HTests, apzAab_Solaris_Sys_Varargs_HPatch, 0 },
6573
6574 { zAab_Sun_MemcpyName, zAab_Sun_MemcpyList,
6575 apzAab_Sun_MemcpyMachs,
6576 AAB_SUN_MEMCPY_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
6577 aAab_Sun_MemcpyTests, apzAab_Sun_MemcpyPatch, 0 },
6578
6579 { zAab_Ultrix_Ansi_CompatName, zAab_Ultrix_Ansi_CompatList,
6580 apzAab_Ultrix_Ansi_CompatMachs,
6581 AAB_ULTRIX_ANSI_COMPAT_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
6582 aAab_Ultrix_Ansi_CompatTests, apzAab_Ultrix_Ansi_CompatPatch, 0 },
6583
6584 { zAab_Ultrix_LimitsName, zAab_Ultrix_LimitsList,
6585 apzAab_Ultrix_LimitsMachs,
6586 AAB_ULTRIX_LIMITS_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
6587 aAab_Ultrix_LimitsTests, apzAab_Ultrix_LimitsPatch, 0 },
6588
6589 { zAab_Ultrix_MemoryName, zAab_Ultrix_MemoryList,
6590 apzAab_Ultrix_MemoryMachs,
6591 AAB_ULTRIX_MEMORY_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
6592 aAab_Ultrix_MemoryTests, apzAab_Ultrix_MemoryPatch, 0 },
6593
6594 { zAab_Ultrix_StringName, zAab_Ultrix_StringList,
6595 apzAab_Ultrix_StringMachs,
6596 AAB_ULTRIX_STRING_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
6597 aAab_Ultrix_StringTests, apzAab_Ultrix_StringPatch, 0 },
6598
6599 { zAix_PthreadName, zAix_PthreadList,
6600 apzAix_PthreadMachs,
6601 AIX_PTHREAD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6602 aAix_PthreadTests, apzAix_PthreadPatch, 0 },
6603
6604 { zAix_SysmachineName, zAix_SysmachineList,
6605 apzAix_SysmachineMachs,
6606 AIX_SYSMACHINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6607 aAix_SysmachineTests, apzAix_SysmachinePatch, 0 },
6608
6609 { zAix_SyswaitName, zAix_SyswaitList,
6610 apzAix_SyswaitMachs,
6611 AIX_SYSWAIT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6612 aAix_SyswaitTests, apzAix_SyswaitPatch, 0 },
6613
6614 { zAix_VolatileName, zAix_VolatileList,
6615 apzAix_VolatileMachs,
6616 AIX_VOLATILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6617 aAix_VolatileTests, apzAix_VolatilePatch, 0 },
6618
6619 { zAlpha___AssertName, zAlpha___AssertList,
6620 apzAlpha___AssertMachs,
6621 ALPHA___ASSERT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6622 aAlpha___AssertTests, apzAlpha___AssertPatch, 0 },
6623
6624 { zAlpha___Extern_PrefixName, zAlpha___Extern_PrefixList,
6625 apzAlpha___Extern_PrefixMachs,
6626 ALPHA___EXTERN_PREFIX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6627 aAlpha___Extern_PrefixTests, apzAlpha___Extern_PrefixPatch, 0 },
6628
6629 { zAlpha_AssertName, zAlpha_AssertList,
6630 apzAlpha_AssertMachs,
6631 ALPHA_ASSERT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6632 aAlpha_AssertTests, apzAlpha_AssertPatch, 0 },
6633
6634 { zAlpha_GetoptName, zAlpha_GetoptList,
6635 apzAlpha_GetoptMachs,
6636 ALPHA_GETOPT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6637 aAlpha_GetoptTests, apzAlpha_GetoptPatch, 0 },
6638
6639 { zAlpha_ParensName, zAlpha_ParensList,
6640 apzAlpha_ParensMachs,
6641 ALPHA_PARENS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6642 aAlpha_ParensTests, apzAlpha_ParensPatch, 0 },
6643
6644 { zAlpha_PthreadName, zAlpha_PthreadList,
6645 apzAlpha_PthreadMachs,
6646 ALPHA_PTHREAD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6647 aAlpha_PthreadTests, apzAlpha_PthreadPatch, 0 },
6648
6649 { zAlpha_Pthread_GccName, zAlpha_Pthread_GccList,
6650 apzAlpha_Pthread_GccMachs,
6651 ALPHA_PTHREAD_GCC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6652 aAlpha_Pthread_GccTests, apzAlpha_Pthread_GccPatch, 0 },
6653
6654 { zAlpha_SbrkName, zAlpha_SbrkList,
6655 apzAlpha_SbrkMachs,
6656 ALPHA_SBRK_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6657 aAlpha_SbrkTests, apzAlpha_SbrkPatch, 0 },
6658
6659 { zAvoid_Bool_DefineName, zAvoid_Bool_DefineList,
6660 apzAvoid_Bool_DefineMachs,
6661 AVOID_BOOL_DEFINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6662 aAvoid_Bool_DefineTests, apzAvoid_Bool_DefinePatch, 0 },
6663
6664 { zAvoid_Bool_TypeName, zAvoid_Bool_TypeList,
6665 apzAvoid_Bool_TypeMachs,
6666 AVOID_BOOL_TYPE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6667 aAvoid_Bool_TypeTests, apzAvoid_Bool_TypePatch, 0 },
6668
6669 { zAvoid_Wchar_T_TypeName, zAvoid_Wchar_T_TypeList,
6670 apzAvoid_Wchar_T_TypeMachs,
6671 AVOID_WCHAR_T_TYPE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6672 aAvoid_Wchar_T_TypeTests, apzAvoid_Wchar_T_TypePatch, 0 },
6673
6674 { zBad_LvalName, zBad_LvalList,
6675 apzBad_LvalMachs,
6676 BAD_LVAL_TEST_CT, FD_MACH_ONLY,
6677 aBad_LvalTests, apzBad_LvalPatch, 0 },
6678
6679 { zBad_Struct_TermName, zBad_Struct_TermList,
6680 apzBad_Struct_TermMachs,
6681 BAD_STRUCT_TERM_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6682 aBad_Struct_TermTests, apzBad_Struct_TermPatch, 0 },
6683
6684 { zBadquoteName, zBadquoteList,
6685 apzBadquoteMachs,
6686 BADQUOTE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6687 aBadquoteTests, apzBadquotePatch, 0 },
6688
6689 { zBroken_Assert_StdioName, zBroken_Assert_StdioList,
6690 apzBroken_Assert_StdioMachs,
6691 BROKEN_ASSERT_STDIO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6692 aBroken_Assert_StdioTests, apzBroken_Assert_StdioPatch, 0 },
6693
6694 { zBroken_Assert_StdlibName, zBroken_Assert_StdlibList,
6695 apzBroken_Assert_StdlibMachs,
6696 BROKEN_ASSERT_STDLIB_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6697 aBroken_Assert_StdlibTests, apzBroken_Assert_StdlibPatch, 0 },
6698
6699 { zBroken_CabsName, zBroken_CabsList,
6700 apzBroken_CabsMachs,
6701 BROKEN_CABS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6702 aBroken_CabsTests, apzBroken_CabsPatch, 0 },
6703
6704 { zBsd_Stdio_Attrs_ConflictName, zBsd_Stdio_Attrs_ConflictList,
6705 apzBsd_Stdio_Attrs_ConflictMachs,
6706 BSD_STDIO_ATTRS_CONFLICT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6707 aBsd_Stdio_Attrs_ConflictTests, apzBsd_Stdio_Attrs_ConflictPatch, 0 },
6708
6709 { zCtrl_Quotes_DefName, zCtrl_Quotes_DefList,
6710 apzCtrl_Quotes_DefMachs,
6711 CTRL_QUOTES_DEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6712 aCtrl_Quotes_DefTests, apzCtrl_Quotes_DefPatch, 0 },
6713
6714 { zCtrl_Quotes_UseName, zCtrl_Quotes_UseList,
6715 apzCtrl_Quotes_UseMachs,
6716 CTRL_QUOTES_USE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6717 aCtrl_Quotes_UseTests, apzCtrl_Quotes_UsePatch, 0 },
6718
6719 { zCxx_UnreadyName, zCxx_UnreadyList,
6720 apzCxx_UnreadyMachs,
6721 CXX_UNREADY_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6722 aCxx_UnreadyTests, apzCxx_UnreadyPatch, 0 },
6723
6724 { zDec_Intern_AsmName, zDec_Intern_AsmList,
6725 apzDec_Intern_AsmMachs,
6726 DEC_INTERN_ASM_TEST_CT, FD_MACH_ONLY,
6727 aDec_Intern_AsmTests, apzDec_Intern_AsmPatch, 0 },
6728
6729 { zDjgpp_Wchar_HName, zDjgpp_Wchar_HList,
6730 apzDjgpp_Wchar_HMachs,
6731 DJGPP_WCHAR_H_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6732 aDjgpp_Wchar_HTests, apzDjgpp_Wchar_HPatch, 0 },
6733
6734 { zEcd_CursorName, zEcd_CursorList,
6735 apzEcd_CursorMachs,
6736 ECD_CURSOR_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6737 aEcd_CursorTests, apzEcd_CursorPatch, 0 },
6738
6739 { zFreebsd_Gcc3_BreakageName, zFreebsd_Gcc3_BreakageList,
6740 apzFreebsd_Gcc3_BreakageMachs,
6741 FREEBSD_GCC3_BREAKAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6742 aFreebsd_Gcc3_BreakageTests, apzFreebsd_Gcc3_BreakagePatch, 0 },
6743
6744 { zGnu_TypesName, zGnu_TypesList,
6745 apzGnu_TypesMachs,
6746 GNU_TYPES_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6747 aGnu_TypesTests, apzGnu_TypesPatch, 0 },
6748
6749 { zHp_InlineName, zHp_InlineList,
6750 apzHp_InlineMachs,
6751 HP_INLINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6752 aHp_InlineTests, apzHp_InlinePatch, 0 },
6753
6754 { zHp_SysfileName, zHp_SysfileList,
6755 apzHp_SysfileMachs,
6756 HP_SYSFILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6757 aHp_SysfileTests, apzHp_SysfilePatch, 0 },
6758
6759 { zHpux10_Cpp_Pow_InlineName, zHpux10_Cpp_Pow_InlineList,
6760 apzHpux10_Cpp_Pow_InlineMachs,
6761 HPUX10_CPP_POW_INLINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6762 aHpux10_Cpp_Pow_InlineTests, apzHpux10_Cpp_Pow_InlinePatch, 0 },
6763
6764 { zHpux11_Cpp_Pow_InlineName, zHpux11_Cpp_Pow_InlineList,
6765 apzHpux11_Cpp_Pow_InlineMachs,
6766 HPUX11_CPP_POW_INLINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6767 aHpux11_Cpp_Pow_InlineTests, apzHpux11_Cpp_Pow_InlinePatch, 0 },
6768
6769 { zHpux10_Ctype_Declarations1Name, zHpux10_Ctype_Declarations1List,
6770 apzHpux10_Ctype_Declarations1Machs,
6771 HPUX10_CTYPE_DECLARATIONS1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6772 aHpux10_Ctype_Declarations1Tests, apzHpux10_Ctype_Declarations1Patch, 0 },
6773
6774 { zHpux10_Ctype_Declarations2Name, zHpux10_Ctype_Declarations2List,
6775 apzHpux10_Ctype_Declarations2Machs,
6776 HPUX10_CTYPE_DECLARATIONS2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6777 aHpux10_Ctype_Declarations2Tests, apzHpux10_Ctype_Declarations2Patch, 0 },
6778
6779 { zHpux11_AbsName, zHpux11_AbsList,
6780 apzHpux11_AbsMachs,
6781 HPUX11_ABS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6782 aHpux11_AbsTests, apzHpux11_AbsPatch, 0 },
6783
6784 { zHpux11_FabsfName, zHpux11_FabsfList,
6785 apzHpux11_FabsfMachs,
6786 HPUX11_FABSF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6787 aHpux11_FabsfTests, apzHpux11_FabsfPatch, 0 },
6788
6789 { zHpux11_Size_TName, zHpux11_Size_TList,
6790 apzHpux11_Size_TMachs,
6791 HPUX11_SIZE_T_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6792 aHpux11_Size_TTests, apzHpux11_Size_TPatch, 0 },
6793
6794 { zHpux11_Uint32_CName, zHpux11_Uint32_CList,
6795 apzHpux11_Uint32_CMachs,
6796 HPUX11_UINT32_C_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6797 aHpux11_Uint32_CTests, apzHpux11_Uint32_CPatch, 0 },
6798
6799 { zHpux11_VsnprintfName, zHpux11_VsnprintfList,
6800 apzHpux11_VsnprintfMachs,
6801 HPUX11_VSNPRINTF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6802 aHpux11_VsnprintfTests, apzHpux11_VsnprintfPatch, 0 },
6803
6804 { zHpux11_SnprintfName, zHpux11_SnprintfList,
6805 apzHpux11_SnprintfMachs,
6806 HPUX11_SNPRINTF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6807 aHpux11_SnprintfTests, apzHpux11_SnprintfPatch, 0 },
6808
6809 { zHpux8_Bogus_InlinesName, zHpux8_Bogus_InlinesList,
6810 apzHpux8_Bogus_InlinesMachs,
6811 HPUX8_BOGUS_INLINES_TEST_CT, FD_MACH_ONLY,
6812 aHpux8_Bogus_InlinesTests, apzHpux8_Bogus_InlinesPatch, 0 },
6813
6814 { zHpux_Ctype_MacrosName, zHpux_Ctype_MacrosList,
6815 apzHpux_Ctype_MacrosMachs,
6816 HPUX_CTYPE_MACROS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6817 aHpux_Ctype_MacrosTests, apzHpux_Ctype_MacrosPatch, 0 },
6818
6819 { zHpux_Long_DoubleName, zHpux_Long_DoubleList,
6820 apzHpux_Long_DoubleMachs,
6821 HPUX_LONG_DOUBLE_TEST_CT, FD_MACH_ONLY,
6822 aHpux_Long_DoubleTests, apzHpux_Long_DoublePatch, 0 },
6823
6824 { zHpux_MaxintName, zHpux_MaxintList,
6825 apzHpux_MaxintMachs,
6826 HPUX_MAXINT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6827 aHpux_MaxintTests, apzHpux_MaxintPatch, 0 },
6828
6829 { zHpux_SystimeName, zHpux_SystimeList,
6830 apzHpux_SystimeMachs,
6831 HPUX_SYSTIME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6832 aHpux_SystimeTests, apzHpux_SystimePatch, 0 },
6833
6834 { zInt_Abort_Free_And_ExitName, zInt_Abort_Free_And_ExitList,
6835 apzInt_Abort_Free_And_ExitMachs,
6836 INT_ABORT_FREE_AND_EXIT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6837 aInt_Abort_Free_And_ExitTests, apzInt_Abort_Free_And_ExitPatch, 0 },
6838
6839 { zIo_Quotes_DefName, zIo_Quotes_DefList,
6840 apzIo_Quotes_DefMachs,
6841 IO_QUOTES_DEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6842 aIo_Quotes_DefTests, apzIo_Quotes_DefPatch, 0 },
6843
6844 { zIo_Quotes_UseName, zIo_Quotes_UseList,
6845 apzIo_Quotes_UseMachs,
6846 IO_QUOTES_USE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6847 aIo_Quotes_UseTests, apzIo_Quotes_UsePatch, 0 },
6848
6849 { zIp_Missing_SemiName, zIp_Missing_SemiList,
6850 apzIp_Missing_SemiMachs,
6851 IP_MISSING_SEMI_TEST_CT, FD_MACH_ONLY,
6852 aIp_Missing_SemiTests, apzIp_Missing_SemiPatch, 0 },
6853
6854 { zIrix___RestrictName, zIrix___RestrictList,
6855 apzIrix___RestrictMachs,
6856 IRIX___RESTRICT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6857 aIrix___RestrictTests, apzIrix___RestrictPatch, 0 },
6858
6859 { zIrix_Asm_ApostropheName, zIrix_Asm_ApostropheList,
6860 apzIrix_Asm_ApostropheMachs,
6861 IRIX_ASM_APOSTROPHE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6862 aIrix_Asm_ApostropheTests, apzIrix_Asm_ApostrophePatch, 0 },
6863
6864 { zIrix_Limits_ConstName, zIrix_Limits_ConstList,
6865 apzIrix_Limits_ConstMachs,
6866 IRIX_LIMITS_CONST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6867 aIrix_Limits_ConstTests, apzIrix_Limits_ConstPatch, 0 },
6868
6869 { zIrix_Socklen_TName, zIrix_Socklen_TList,
6870 apzIrix_Socklen_TMachs,
6871 IRIX_SOCKLEN_T_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6872 aIrix_Socklen_TTests, apzIrix_Socklen_TPatch, 0 },
6873
6874 { zIrix_Stdio_Va_ListName, zIrix_Stdio_Va_ListList,
6875 apzIrix_Stdio_Va_ListMachs,
6876 IRIX_STDIO_VA_LIST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6877 aIrix_Stdio_Va_ListTests, apzIrix_Stdio_Va_ListPatch, 0 },
6878
6879 { zIrix_WcsftimeName, zIrix_WcsftimeList,
6880 apzIrix_WcsftimeMachs,
6881 IRIX_WCSFTIME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6882 aIrix_WcsftimeTests, apzIrix_WcsftimePatch, 0 },
6883
6884 { zIsc_FmodName, zIsc_FmodList,
6885 apzIsc_FmodMachs,
6886 ISC_FMOD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6887 aIsc_FmodTests, apzIsc_FmodPatch, 0 },
6888
6889 { zIsc_Omits_With_StdcName, zIsc_Omits_With_StdcList,
6890 apzIsc_Omits_With_StdcMachs,
6891 ISC_OMITS_WITH_STDC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6892 aIsc_Omits_With_StdcTests, apzIsc_Omits_With_StdcPatch, 0 },
6893
6894 { zKandr_ConcatName, zKandr_ConcatList,
6895 apzKandr_ConcatMachs,
6896 KANDR_CONCAT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6897 aKandr_ConcatTests, apzKandr_ConcatPatch, 0 },
6898
6899 { zLibc1_G_Va_ListName, zLibc1_G_Va_ListList,
6900 apzLibc1_G_Va_ListMachs,
6901 LIBC1_G_VA_LIST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6902 aLibc1_G_Va_ListTests, apzLibc1_G_Va_ListPatch, 0 },
6903
6904 { zLibc1_Ifdefd_MemxName, zLibc1_Ifdefd_MemxList,
6905 apzLibc1_Ifdefd_MemxMachs,
6906 LIBC1_IFDEFD_MEMX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6907 aLibc1_Ifdefd_MemxTests, apzLibc1_Ifdefd_MemxPatch, 0 },
6908
6909 { zLimits_IfndefsName, zLimits_IfndefsList,
6910 apzLimits_IfndefsMachs,
6911 LIMITS_IFNDEFS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6912 aLimits_IfndefsTests, apzLimits_IfndefsPatch, 0 },
6913
6914 { zLynx_Void_IntName, zLynx_Void_IntList,
6915 apzLynx_Void_IntMachs,
6916 LYNX_VOID_INT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6917 aLynx_Void_IntTests, apzLynx_Void_IntPatch, 0 },
6918
6919 { zLynxos_Fcntl_ProtoName, zLynxos_Fcntl_ProtoList,
6920 apzLynxos_Fcntl_ProtoMachs,
6921 LYNXOS_FCNTL_PROTO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6922 aLynxos_Fcntl_ProtoTests, apzLynxos_Fcntl_ProtoPatch, 0 },
6923
6924 { zMachine_Ansi_H_Va_ListName, zMachine_Ansi_H_Va_ListList,
6925 apzMachine_Ansi_H_Va_ListMachs,
6926 MACHINE_ANSI_H_VA_LIST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6927 aMachine_Ansi_H_Va_ListTests, apzMachine_Ansi_H_Va_ListPatch, 0 },
6928
6929 { zMachine_NameName, zMachine_NameList,
6930 apzMachine_NameMachs,
6931 MACHINE_NAME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6932 aMachine_NameTests, apzMachine_NamePatch, 0 },
6933
6934 { zMath_ExceptionName, zMath_ExceptionList,
6935 apzMath_ExceptionMachs,
6936 MATH_EXCEPTION_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6937 aMath_ExceptionTests, apzMath_ExceptionPatch, 0 },
6938
6939 { zMath_Huge_Val_From_Dbl_MaxName, zMath_Huge_Val_From_Dbl_MaxList,
6940 apzMath_Huge_Val_From_Dbl_MaxMachs,
6941 MATH_HUGE_VAL_FROM_DBL_MAX_TEST_CT, FD_MACH_ONLY | FD_SHELL_SCRIPT,
6942 aMath_Huge_Val_From_Dbl_MaxTests, apzMath_Huge_Val_From_Dbl_MaxPatch, 0 },
6943
6944 { zMath_Huge_Val_IfndefName, zMath_Huge_Val_IfndefList,
6945 apzMath_Huge_Val_IfndefMachs,
6946 MATH_HUGE_VAL_IFNDEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6947 aMath_Huge_Val_IfndefTests, apzMath_Huge_Val_IfndefPatch, 0 },
6948
6949 { zNested_Auth_DesName, zNested_Auth_DesList,
6950 apzNested_Auth_DesMachs,
6951 NESTED_AUTH_DES_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6952 aNested_Auth_DesTests, apzNested_Auth_DesPatch, 0 },
6953
6954 { zNested_MotorolaName, zNested_MotorolaList,
6955 apzNested_MotorolaMachs,
6956 NESTED_MOTOROLA_TEST_CT, FD_MACH_ONLY,
6957 aNested_MotorolaTests, apzNested_MotorolaPatch, 0 },
6958
6959 { zNested_Sys_LimitsName, zNested_Sys_LimitsList,
6960 apzNested_Sys_LimitsMachs,
6961 NESTED_SYS_LIMITS_TEST_CT, FD_MACH_ONLY,
6962 aNested_Sys_LimitsTests, apzNested_Sys_LimitsPatch, 0 },
6963
6964 { zNetbsd_Extra_SemicolonName, zNetbsd_Extra_SemicolonList,
6965 apzNetbsd_Extra_SemicolonMachs,
6966 NETBSD_EXTRA_SEMICOLON_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6967 aNetbsd_Extra_SemicolonTests, apzNetbsd_Extra_SemicolonPatch, 0 },
6968
6969 { zNext_Math_PrefixName, zNext_Math_PrefixList,
6970 apzNext_Math_PrefixMachs,
6971 NEXT_MATH_PREFIX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6972 aNext_Math_PrefixTests, apzNext_Math_PrefixPatch, 0 },
6973
6974 { zNext_TemplateName, zNext_TemplateList,
6975 apzNext_TemplateMachs,
6976 NEXT_TEMPLATE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6977 aNext_TemplateTests, apzNext_TemplatePatch, 0 },
6978
6979 { zNext_VolitileName, zNext_VolitileList,
6980 apzNext_VolitileMachs,
6981 NEXT_VOLITILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6982 aNext_VolitileTests, apzNext_VolitilePatch, 0 },
6983
6984 { zNext_Wait_UnionName, zNext_Wait_UnionList,
6985 apzNext_Wait_UnionMachs,
6986 NEXT_WAIT_UNION_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6987 aNext_Wait_UnionTests, apzNext_Wait_UnionPatch, 0 },
6988
6989 { zNodeent_SyntaxName, zNodeent_SyntaxList,
6990 apzNodeent_SyntaxMachs,
6991 NODEENT_SYNTAX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6992 aNodeent_SyntaxTests, apzNodeent_SyntaxPatch, 0 },
6993
6994 { zObstack_Lvalue_CastName, zObstack_Lvalue_CastList,
6995 apzObstack_Lvalue_CastMachs,
6996 OBSTACK_LVALUE_CAST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6997 aObstack_Lvalue_CastTests, apzObstack_Lvalue_CastPatch, 0 },
6998
6999 { zOsf_Namespace_AName, zOsf_Namespace_AList,
7000 apzOsf_Namespace_AMachs,
7001 OSF_NAMESPACE_A_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7002 aOsf_Namespace_ATests, apzOsf_Namespace_APatch, 0 },
7003
7004 { zOsf_Namespace_CName, zOsf_Namespace_CList,
7005 apzOsf_Namespace_CMachs,
7006 OSF_NAMESPACE_C_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7007 aOsf_Namespace_CTests, apzOsf_Namespace_CPatch, 0 },
7008
7009 { zPthread_Page_SizeName, zPthread_Page_SizeList,
7010 apzPthread_Page_SizeMachs,
7011 PTHREAD_PAGE_SIZE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7012 aPthread_Page_SizeTests, apzPthread_Page_SizePatch, 0 },
7013
7014 { zRead_Ret_TypeName, zRead_Ret_TypeList,
7015 apzRead_Ret_TypeMachs,
7016 READ_RET_TYPE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7017 aRead_Ret_TypeTests, apzRead_Ret_TypePatch, 0 },
7018
7019 { zRs6000_DoubleName, zRs6000_DoubleList,
7020 apzRs6000_DoubleMachs,
7021 RS6000_DOUBLE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7022 aRs6000_DoubleTests, apzRs6000_DoublePatch, 0 },
7023
7024 { zRs6000_FchmodName, zRs6000_FchmodList,
7025 apzRs6000_FchmodMachs,
7026 RS6000_FCHMOD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7027 aRs6000_FchmodTests, apzRs6000_FchmodPatch, 0 },
7028
7029 { zRs6000_ParamName, zRs6000_ParamList,
7030 apzRs6000_ParamMachs,
7031 RS6000_PARAM_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7032 aRs6000_ParamTests, apzRs6000_ParamPatch, 0 },
7033
7034 { zSco_MathName, zSco_MathList,
7035 apzSco_MathMachs,
7036 SCO_MATH_TEST_CT, FD_MACH_ONLY,
7037 aSco_MathTests, apzSco_MathPatch, 0 },
7038
7039 { zSco_RegsetName, zSco_RegsetList,
7040 apzSco_RegsetMachs,
7041 SCO_REGSET_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7042 aSco_RegsetTests, apzSco_RegsetPatch, 0 },
7043
7044 { zSco_Static_FuncName, zSco_Static_FuncList,
7045 apzSco_Static_FuncMachs,
7046 SCO_STATIC_FUNC_TEST_CT, FD_MACH_ONLY,
7047 aSco_Static_FuncTests, apzSco_Static_FuncPatch, 0 },
7048
7049 { zSco_UtimeName, zSco_UtimeList,
7050 apzSco_UtimeMachs,
7051 SCO_UTIME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7052 aSco_UtimeTests, apzSco_UtimePatch, 0 },
7053
7054 { zSolaris_Mutex_Init_1Name, zSolaris_Mutex_Init_1List,
7055 apzSolaris_Mutex_Init_1Machs,
7056 SOLARIS_MUTEX_INIT_1_TEST_CT, FD_MACH_ONLY,
7057 aSolaris_Mutex_Init_1Tests, apzSolaris_Mutex_Init_1Patch, 0 },
7058
7059 { zSolaris_Mutex_Init_2Name, zSolaris_Mutex_Init_2List,
7060 apzSolaris_Mutex_Init_2Machs,
7061 SOLARIS_MUTEX_INIT_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7062 aSolaris_Mutex_Init_2Tests, apzSolaris_Mutex_Init_2Patch, 0 },
7063
7064 { zSolaris_SocketName, zSolaris_SocketList,
7065 apzSolaris_SocketMachs,
7066 SOLARIS_SOCKET_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7067 aSolaris_SocketTests, apzSolaris_SocketPatch, 0 },
7068
7069 { zSolaris_Stdio_TagName, zSolaris_Stdio_TagList,
7070 apzSolaris_Stdio_TagMachs,
7071 SOLARIS_STDIO_TAG_TEST_CT, FD_MACH_ONLY,
7072 aSolaris_Stdio_TagTests, apzSolaris_Stdio_TagPatch, 0 },
7073
7074 { zSolaris_UnistdName, zSolaris_UnistdList,
7075 apzSolaris_UnistdMachs,
7076 SOLARIS_UNISTD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7077 aSolaris_UnistdTests, apzSolaris_UnistdPatch, 0 },
7078
7079 { zSolaris_WidecName, zSolaris_WidecList,
7080 apzSolaris_WidecMachs,
7081 SOLARIS_WIDEC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7082 aSolaris_WidecTests, apzSolaris_WidecPatch, 0 },
7083
7084 { zStatsswtchName, zStatsswtchList,
7085 apzStatsswtchMachs,
7086 STATSSWTCH_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7087 aStatsswtchTests, apzStatsswtchPatch, 0 },
7088
7089 { zStdio_Stdarg_HName, zStdio_Stdarg_HList,
7090 apzStdio_Stdarg_HMachs,
7091 STDIO_STDARG_H_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7092 aStdio_Stdarg_HTests, apzStdio_Stdarg_HPatch, 0 },
7093
7094 { zStdio_Va_ListName, zStdio_Va_ListList,
7095 apzStdio_Va_ListMachs,
7096 STDIO_VA_LIST_TEST_CT, FD_MACH_ONLY,
7097 aStdio_Va_ListTests, apzStdio_Va_ListPatch, 0 },
7098
7099 { zStrict_Ansi_NotName, zStrict_Ansi_NotList,
7100 apzStrict_Ansi_NotMachs,
7101 STRICT_ANSI_NOT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7102 aStrict_Ansi_NotTests, apzStrict_Ansi_NotPatch, 0 },
7103
7104 { zStrict_Ansi_Not_CtdName, zStrict_Ansi_Not_CtdList,
7105 apzStrict_Ansi_Not_CtdMachs,
7106 STRICT_ANSI_NOT_CTD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7107 aStrict_Ansi_Not_CtdTests, apzStrict_Ansi_Not_CtdPatch, 0 },
7108
7109 { zStrict_Ansi_OnlyName, zStrict_Ansi_OnlyList,
7110 apzStrict_Ansi_OnlyMachs,
7111 STRICT_ANSI_ONLY_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7112 aStrict_Ansi_OnlyTests, apzStrict_Ansi_OnlyPatch, 0 },
7113
7114 { zStruct_FileName, zStruct_FileList,
7115 apzStruct_FileMachs,
7116 STRUCT_FILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7117 aStruct_FileTests, apzStruct_FilePatch, 0 },
7118
7119 { zStruct_SockaddrName, zStruct_SockaddrList,
7120 apzStruct_SockaddrMachs,
7121 STRUCT_SOCKADDR_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7122 aStruct_SockaddrTests, apzStruct_SockaddrPatch, 0 },
7123
7124 { zSun_Auth_ProtoName, zSun_Auth_ProtoList,
7125 apzSun_Auth_ProtoMachs,
7126 SUN_AUTH_PROTO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7127 aSun_Auth_ProtoTests, apzSun_Auth_ProtoPatch, 0 },
7128
7129 { zSun_Bogus_IfdefName, zSun_Bogus_IfdefList,
7130 apzSun_Bogus_IfdefMachs,
7131 SUN_BOGUS_IFDEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7132 aSun_Bogus_IfdefTests, apzSun_Bogus_IfdefPatch, 0 },
7133
7134 { zSun_CatmacroName, zSun_CatmacroList,
7135 apzSun_CatmacroMachs,
7136 SUN_CATMACRO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7137 aSun_CatmacroTests, apzSun_CatmacroPatch, 0 },
7138
7139 { zSun_MallocName, zSun_MallocList,
7140 apzSun_MallocMachs,
7141 SUN_MALLOC_TEST_CT, FD_MACH_ONLY,
7142 aSun_MallocTests, apzSun_MallocPatch, 0 },
7143
7144 { zSun_Rusers_SemiName, zSun_Rusers_SemiList,
7145 apzSun_Rusers_SemiMachs,
7146 SUN_RUSERS_SEMI_TEST_CT, FD_MACH_ONLY,
7147 aSun_Rusers_SemiTests, apzSun_Rusers_SemiPatch, 0 },
7148
7149 { zSun_SignalName, zSun_SignalList,
7150 apzSun_SignalMachs,
7151 SUN_SIGNAL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7152 aSun_SignalTests, apzSun_SignalPatch, 0 },
7153
7154 { zSunos_Matherr_DeclName, zSunos_Matherr_DeclList,
7155 apzSunos_Matherr_DeclMachs,
7156 SUNOS_MATHERR_DECL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7157 aSunos_Matherr_DeclTests, apzSunos_Matherr_DeclPatch, 0 },
7158
7159 { zSunos_StrlenName, zSunos_StrlenList,
7160 apzSunos_StrlenMachs,
7161 SUNOS_STRLEN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7162 aSunos_StrlenTests, apzSunos_StrlenPatch, 0 },
7163
7164 { zSvr4__PName, zSvr4__PList,
7165 apzSvr4__PMachs,
7166 SVR4__P_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7167 aSvr4__PTests, apzSvr4__PPatch, 0 },
7168
7169 { zSvr4_Disable_OptName, zSvr4_Disable_OptList,
7170 apzSvr4_Disable_OptMachs,
7171 SVR4_DISABLE_OPT_TEST_CT, FD_MACH_ONLY,
7172 aSvr4_Disable_OptTests, apzSvr4_Disable_OptPatch, 0 },
7173
7174 { zSvr4_GetcwdName, zSvr4_GetcwdList,
7175 apzSvr4_GetcwdMachs,
7176 SVR4_GETCWD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7177 aSvr4_GetcwdTests, apzSvr4_GetcwdPatch, 0 },
7178
7179 { zSvr4_KrnlName, zSvr4_KrnlList,
7180 apzSvr4_KrnlMachs,
7181 SVR4_KRNL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7182 aSvr4_KrnlTests, apzSvr4_KrnlPatch, 0 },
7183
7184 { zSvr4_ProfilName, zSvr4_ProfilList,
7185 apzSvr4_ProfilMachs,
7186 SVR4_PROFIL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7187 aSvr4_ProfilTests, apzSvr4_ProfilPatch, 0 },
7188
7189 { zSvr4_Sighandler_TypeName, zSvr4_Sighandler_TypeList,
7190 apzSvr4_Sighandler_TypeMachs,
7191 SVR4_SIGHANDLER_TYPE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7192 aSvr4_Sighandler_TypeTests, apzSvr4_Sighandler_TypePatch, 0 },
7193
7194 { zSvr4_Undeclared_GetrngeName, zSvr4_Undeclared_GetrngeList,
7195 apzSvr4_Undeclared_GetrngeMachs,
7196 SVR4_UNDECLARED_GETRNGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7197 aSvr4_Undeclared_GetrngeTests, apzSvr4_Undeclared_GetrngePatch, 0 },
7198
7199 { zSysv68_StringName, zSysv68_StringList,
7200 apzSysv68_StringMachs,
7201 SYSV68_STRING_TEST_CT, FD_MACH_ONLY,
7202 aSysv68_StringTests, apzSysv68_StringPatch, 0 },
7203
7204 { zSysz_Stdlib_For_SunName, zSysz_Stdlib_For_SunList,
7205 apzSysz_Stdlib_For_SunMachs,
7206 SYSZ_STDLIB_FOR_SUN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7207 aSysz_Stdlib_For_SunTests, apzSysz_Stdlib_For_SunPatch, 0 },
7208
7209 { zThread_KeywordName, zThread_KeywordList,
7210 apzThread_KeywordMachs,
7211 THREAD_KEYWORD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7212 aThread_KeywordTests, apzThread_KeywordPatch, 0 },
7213
7214 { zTinfo_CplusplusName, zTinfo_CplusplusList,
7215 apzTinfo_CplusplusMachs,
7216 TINFO_CPLUSPLUS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7217 aTinfo_CplusplusTests, apzTinfo_CplusplusPatch, 0 },
7218
7219 { zUltrix_Atexit_ParamName, zUltrix_Atexit_ParamList,
7220 apzUltrix_Atexit_ParamMachs,
7221 ULTRIX_ATEXIT_PARAM_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7222 aUltrix_Atexit_ParamTests, apzUltrix_Atexit_ParamPatch, 0 },
7223
7224 { zUltrix_Atof_ParamName, zUltrix_Atof_ParamList,
7225 apzUltrix_Atof_ParamMachs,
7226 ULTRIX_ATOF_PARAM_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7227 aUltrix_Atof_ParamTests, apzUltrix_Atof_ParamPatch, 0 },
7228
7229 { zUltrix_ConstName, zUltrix_ConstList,
7230 apzUltrix_ConstMachs,
7231 ULTRIX_CONST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7232 aUltrix_ConstTests, apzUltrix_ConstPatch, 0 },
7233
7234 { zUltrix_Const2Name, zUltrix_Const2List,
7235 apzUltrix_Const2Machs,
7236 ULTRIX_CONST2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7237 aUltrix_Const2Tests, apzUltrix_Const2Patch, 0 },
7238
7239 { zUltrix_Fix_FixprotoName, zUltrix_Fix_FixprotoList,
7240 apzUltrix_Fix_FixprotoMachs,
7241 ULTRIX_FIX_FIXPROTO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7242 aUltrix_Fix_FixprotoTests, apzUltrix_Fix_FixprotoPatch, 0 },
7243
7244 { zUltrix_IfdefName, zUltrix_IfdefList,
7245 apzUltrix_IfdefMachs,
7246 ULTRIX_IFDEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7247 aUltrix_IfdefTests, apzUltrix_IfdefPatch, 0 },
7248
7249 { zUltrix_Math_IfdefName, zUltrix_Math_IfdefList,
7250 apzUltrix_Math_IfdefMachs,
7251 ULTRIX_MATH_IFDEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7252 aUltrix_Math_IfdefTests, apzUltrix_Math_IfdefPatch, 0 },
7253
7254 { zUltrix_Nested_IoctlName, zUltrix_Nested_IoctlList,
7255 apzUltrix_Nested_IoctlMachs,
7256 ULTRIX_NESTED_IOCTL_TEST_CT, FD_MACH_ONLY,
7257 aUltrix_Nested_IoctlTests, apzUltrix_Nested_IoctlPatch, 0 },
7258
7259 { zUltrix_Nested_SvcName, zUltrix_Nested_SvcList,
7260 apzUltrix_Nested_SvcMachs,
7261 ULTRIX_NESTED_SVC_TEST_CT, FD_MACH_ONLY,
7262 aUltrix_Nested_SvcTests, apzUltrix_Nested_SvcPatch, 0 },
7263
7264 { zUltrix_StatName, zUltrix_StatList,
7265 apzUltrix_StatMachs,
7266 ULTRIX_STAT_TEST_CT, FD_MACH_ONLY,
7267 aUltrix_StatTests, apzUltrix_StatPatch, 0 },
7268
7269 { zUltrix_StaticName, zUltrix_StaticList,
7270 apzUltrix_StaticMachs,
7271 ULTRIX_STATIC_TEST_CT, FD_MACH_ONLY,
7272 aUltrix_StaticTests, apzUltrix_StaticPatch, 0 },
7273
7274 { zUltrix_StringsName, zUltrix_StringsList,
7275 apzUltrix_StringsMachs,
7276 ULTRIX_STRINGS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7277 aUltrix_StringsTests, apzUltrix_StringsPatch, 0 },
7278
7279 { zUndefine_NullName, zUndefine_NullList,
7280 apzUndefine_NullMachs,
7281 UNDEFINE_NULL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7282 aUndefine_NullTests, apzUndefine_NullPatch, 0 },
7283
7284 { zUnicosmk_RestrictName, zUnicosmk_RestrictList,
7285 apzUnicosmk_RestrictMachs,
7286 UNICOSMK_RESTRICT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7287 aUnicosmk_RestrictTests, apzUnicosmk_RestrictPatch, 0 },
7288
7289 { zUw7_Byteorder_FixName, zUw7_Byteorder_FixList,
7290 apzUw7_Byteorder_FixMachs,
7291 UW7_BYTEORDER_FIX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7292 aUw7_Byteorder_FixTests, apzUw7_Byteorder_FixPatch, 0 },
7293
7294 { zVa_I960_MacroName, zVa_I960_MacroList,
7295 apzVa_I960_MacroMachs,
7296 VA_I960_MACRO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7297 aVa_I960_MacroTests, apzVa_I960_MacroPatch, 0 },
7298
7299 { zVoid_NullName, zVoid_NullList,
7300 apzVoid_NullMachs,
7301 VOID_NULL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7302 aVoid_NullTests, apzVoid_NullPatch, 0 },
7303
7304 { zVxworks_Gcc_ProblemName, zVxworks_Gcc_ProblemList,
7305 apzVxworks_Gcc_ProblemMachs,
7306 VXWORKS_GCC_PROBLEM_TEST_CT, FD_MACH_ONLY,
7307 aVxworks_Gcc_ProblemTests, apzVxworks_Gcc_ProblemPatch, 0 },
7308
7309 { zVxworks_Needs_VxtypesName, zVxworks_Needs_VxtypesList,
7310 apzVxworks_Needs_VxtypesMachs,
7311 VXWORKS_NEEDS_VXTYPES_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7312 aVxworks_Needs_VxtypesTests, apzVxworks_Needs_VxtypesPatch, 0 },
7313
7314 { zVxworks_Needs_VxworksName, zVxworks_Needs_VxworksList,
7315 apzVxworks_Needs_VxworksMachs,
7316 VXWORKS_NEEDS_VXWORKS_TEST_CT, FD_MACH_ONLY,
7317 aVxworks_Needs_VxworksTests, apzVxworks_Needs_VxworksPatch, 0 },
7318
7319 { zVxworks_TimeName, zVxworks_TimeList,
7320 apzVxworks_TimeMachs,
7321 VXWORKS_TIME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7322 aVxworks_TimeTests, apzVxworks_TimePatch, 0 },
7323
7324 { zWindiss_Math1Name, zWindiss_Math1List,
7325 apzWindiss_Math1Machs,
7326 WINDISS_MATH1_TEST_CT, FD_MACH_ONLY,
7327 aWindiss_Math1Tests, apzWindiss_Math1Patch, 0 },
7328
7329 { zWindiss_Math2Name, zWindiss_Math2List,
7330 apzWindiss_Math2Machs,
7331 WINDISS_MATH2_TEST_CT, FD_MACH_ONLY,
7332 aWindiss_Math2Tests, apzWindiss_Math2Patch, 0 },
7333
7334 { zWindiss_ValistName, zWindiss_ValistList,
7335 apzWindiss_ValistMachs,
7336 WINDISS_VALIST_TEST_CT, FD_MACH_ONLY,
7337 aWindiss_ValistTests, apzWindiss_ValistPatch, 0 },
7338
7339 { zX11_ClassName, zX11_ClassList,
7340 apzX11_ClassMachs,
7341 X11_CLASS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7342 aX11_ClassTests, apzX11_ClassPatch, 0 },
7343
7344 { zX11_Class_UsageName, zX11_Class_UsageList,
7345 apzX11_Class_UsageMachs,
7346 X11_CLASS_USAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7347 aX11_Class_UsageTests, apzX11_Class_UsagePatch, 0 },
7348
7349 { zX11_NewName, zX11_NewList,
7350 apzX11_NewMachs,
7351 X11_NEW_TEST_CT, FD_MACH_ONLY,
7352 aX11_NewTests, apzX11_NewPatch, 0 },
7353
7354 { zX11_SprintfName, zX11_SprintfList,
7355 apzX11_SprintfMachs,
7356 X11_SPRINTF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7357 aX11_SprintfTests, apzX11_SprintfPatch, 0 }
7358 };