inclhack.def (hpux11_snprintf): New edit.
[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 Monday October 20, 2003 at 01:29:54 PM PDT
6 * From the definitions inclhack.def
7 * and the template file fixincl
8 */
9 /* DO NOT CVS-MERGE THIS FILE, EITHER Mon Oct 20 13:29:54 PDT 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 160 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 Osf_Namespace_A fix
3575 */
3576 tSCC zOsf_Namespace_AName[] =
3577 "osf_namespace_a";
3578
3579 /*
3580 * File name selection pattern
3581 */
3582 tSCC zOsf_Namespace_AList[] =
3583 "|reg_types.h|sys/lc_core.h|";
3584 /*
3585 * Machine/OS name selection pattern
3586 */
3587 #define apzOsf_Namespace_AMachs (const char**)NULL
3588
3589 /*
3590 * perform the 'test' shell command - do fix on success
3591 */
3592 tSCC zOsf_Namespace_ATest0[] =
3593 " -r reg_types.h";
3594 tSCC zOsf_Namespace_ATest1[] =
3595 " -r sys/lc_core.h";
3596 tSCC zOsf_Namespace_ATest2[] =
3597 " -n \"`grep '} regex_t;' reg_types.h`\"";
3598 tSCC zOsf_Namespace_ATest3[] =
3599 " -z \"`grep __regex_t regex.h`\"";
3600
3601 #define OSF_NAMESPACE_A_TEST_CT 4
3602 static tTestDesc aOsf_Namespace_ATests[] = {
3603 { TT_TEST, zOsf_Namespace_ATest0, 0 /* unused */ },
3604 { TT_TEST, zOsf_Namespace_ATest1, 0 /* unused */ },
3605 { TT_TEST, zOsf_Namespace_ATest2, 0 /* unused */ },
3606 { TT_TEST, zOsf_Namespace_ATest3, 0 /* unused */ }, };
3607
3608 /*
3609 * Fix Command Arguments for Osf_Namespace_A
3610 */
3611 static const char* apzOsf_Namespace_APatch[] = {
3612 "format",
3613 "__%0",
3614 "reg(ex|off|match)_t",
3615 (char*)NULL };
3616
3617 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3618 *
3619 * Description of Osf_Namespace_C fix
3620 */
3621 tSCC zOsf_Namespace_CName[] =
3622 "osf_namespace_c";
3623
3624 /*
3625 * File name selection pattern
3626 */
3627 tSCC zOsf_Namespace_CList[] =
3628 "|regex.h|";
3629 /*
3630 * Machine/OS name selection pattern
3631 */
3632 #define apzOsf_Namespace_CMachs (const char**)NULL
3633
3634 /*
3635 * content selection pattern - do fix if pattern found
3636 */
3637 tSCC zOsf_Namespace_CSelect0[] =
3638 "#include <reg_types.h>.*";
3639
3640 /*
3641 * perform the 'test' shell command - do fix on success
3642 */
3643 tSCC zOsf_Namespace_CTest0[] =
3644 " -r reg_types.h";
3645 tSCC zOsf_Namespace_CTest1[] =
3646 " -r sys/lc_core.h";
3647 tSCC zOsf_Namespace_CTest2[] =
3648 " -n \"`grep '} regex_t;' reg_types.h`\"";
3649 tSCC zOsf_Namespace_CTest3[] =
3650 " -z \"`grep __regex_t regex.h`\"";
3651
3652 #define OSF_NAMESPACE_C_TEST_CT 5
3653 static tTestDesc aOsf_Namespace_CTests[] = {
3654 { TT_TEST, zOsf_Namespace_CTest0, 0 /* unused */ },
3655 { TT_TEST, zOsf_Namespace_CTest1, 0 /* unused */ },
3656 { TT_TEST, zOsf_Namespace_CTest2, 0 /* unused */ },
3657 { TT_TEST, zOsf_Namespace_CTest3, 0 /* unused */ },
3658 { TT_EGREP, zOsf_Namespace_CSelect0, (regex_t*)NULL }, };
3659
3660 /*
3661 * Fix Command Arguments for Osf_Namespace_C
3662 */
3663 static const char* apzOsf_Namespace_CPatch[] = {
3664 "format",
3665 "%0\n\
3666 typedef __regex_t\tregex_t;\n\
3667 typedef __regoff_t\tregoff_t;\n\
3668 typedef __regmatch_t\tregmatch_t;",
3669 (char*)NULL };
3670
3671 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3672 *
3673 * Description of Pthread_Page_Size fix
3674 */
3675 tSCC zPthread_Page_SizeName[] =
3676 "pthread_page_size";
3677
3678 /*
3679 * File name selection pattern
3680 */
3681 tSCC zPthread_Page_SizeList[] =
3682 "|pthread.h|";
3683 /*
3684 * Machine/OS name selection pattern
3685 */
3686 #define apzPthread_Page_SizeMachs (const char**)NULL
3687
3688 /*
3689 * content selection pattern - do fix if pattern found
3690 */
3691 tSCC zPthread_Page_SizeSelect0[] =
3692 "^int __page_size";
3693
3694 #define PTHREAD_PAGE_SIZE_TEST_CT 1
3695 static tTestDesc aPthread_Page_SizeTests[] = {
3696 { TT_EGREP, zPthread_Page_SizeSelect0, (regex_t*)NULL }, };
3697
3698 /*
3699 * Fix Command Arguments for Pthread_Page_Size
3700 */
3701 static const char* apzPthread_Page_SizePatch[] = {
3702 "format",
3703 "extern %0",
3704 (char*)NULL };
3705
3706 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3707 *
3708 * Description of Read_Ret_Type fix
3709 */
3710 tSCC zRead_Ret_TypeName[] =
3711 "read_ret_type";
3712
3713 /*
3714 * File name selection pattern
3715 */
3716 tSCC zRead_Ret_TypeList[] =
3717 "|stdio.h|";
3718 /*
3719 * Machine/OS name selection pattern
3720 */
3721 #define apzRead_Ret_TypeMachs (const char**)NULL
3722
3723 /*
3724 * content selection pattern - do fix if pattern found
3725 */
3726 tSCC zRead_Ret_TypeSelect0[] =
3727 "extern int\t.*, fread\\(\\), fwrite\\(\\)";
3728
3729 #define READ_RET_TYPE_TEST_CT 1
3730 static tTestDesc aRead_Ret_TypeTests[] = {
3731 { TT_EGREP, zRead_Ret_TypeSelect0, (regex_t*)NULL }, };
3732
3733 /*
3734 * Fix Command Arguments for Read_Ret_Type
3735 */
3736 static const char* apzRead_Ret_TypePatch[] = {
3737 "format",
3738 "extern unsigned int fread(), fwrite();\n\
3739 %1%2",
3740 "(extern int\t.*), fread\\(\\), fwrite\\(\\)(.*)",
3741 (char*)NULL };
3742
3743 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3744 *
3745 * Description of Rs6000_Double fix
3746 */
3747 tSCC zRs6000_DoubleName[] =
3748 "rs6000_double";
3749
3750 /*
3751 * File name selection pattern
3752 */
3753 tSCC zRs6000_DoubleList[] =
3754 "|math.h|";
3755 /*
3756 * Machine/OS name selection pattern
3757 */
3758 #define apzRs6000_DoubleMachs (const char**)NULL
3759
3760 /*
3761 * content selection pattern - do fix if pattern found
3762 */
3763 tSCC zRs6000_DoubleSelect0[] =
3764 "[^a-zA-Z_]class\\(";
3765
3766 #define RS6000_DOUBLE_TEST_CT 1
3767 static tTestDesc aRs6000_DoubleTests[] = {
3768 { TT_EGREP, zRs6000_DoubleSelect0, (regex_t*)NULL }, };
3769
3770 /*
3771 * Fix Command Arguments for Rs6000_Double
3772 */
3773 static const char* apzRs6000_DoublePatch[] = {
3774 "format",
3775 "#ifndef __cplusplus\n\
3776 %0\n\
3777 #endif",
3778 "^.*[^a-zA-Z_]class\\(.*",
3779 (char*)NULL };
3780
3781 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3782 *
3783 * Description of Rs6000_Fchmod fix
3784 */
3785 tSCC zRs6000_FchmodName[] =
3786 "rs6000_fchmod";
3787
3788 /*
3789 * File name selection pattern
3790 */
3791 tSCC zRs6000_FchmodList[] =
3792 "|sys/stat.h|";
3793 /*
3794 * Machine/OS name selection pattern
3795 */
3796 #define apzRs6000_FchmodMachs (const char**)NULL
3797
3798 /*
3799 * content selection pattern - do fix if pattern found
3800 */
3801 tSCC zRs6000_FchmodSelect0[] =
3802 "fchmod\\(char \\*";
3803
3804 #define RS6000_FCHMOD_TEST_CT 1
3805 static tTestDesc aRs6000_FchmodTests[] = {
3806 { TT_EGREP, zRs6000_FchmodSelect0, (regex_t*)NULL }, };
3807
3808 /*
3809 * Fix Command Arguments for Rs6000_Fchmod
3810 */
3811 static const char* apzRs6000_FchmodPatch[] = {
3812 "format",
3813 "fchmod(int",
3814 (char*)NULL };
3815
3816 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3817 *
3818 * Description of Rs6000_Param fix
3819 */
3820 tSCC zRs6000_ParamName[] =
3821 "rs6000_param";
3822
3823 /*
3824 * File name selection pattern
3825 */
3826 tSCC zRs6000_ParamList[] =
3827 "|stdio.h|unistd.h|";
3828 /*
3829 * Machine/OS name selection pattern
3830 */
3831 #define apzRs6000_ParamMachs (const char**)NULL
3832
3833 /*
3834 * content selection pattern - do fix if pattern found
3835 */
3836 tSCC zRs6000_ParamSelect0[] =
3837 "rename\\(const char \\*old, const char \\*new\\)";
3838
3839 #define RS6000_PARAM_TEST_CT 1
3840 static tTestDesc aRs6000_ParamTests[] = {
3841 { TT_EGREP, zRs6000_ParamSelect0, (regex_t*)NULL }, };
3842
3843 /*
3844 * Fix Command Arguments for Rs6000_Param
3845 */
3846 static const char* apzRs6000_ParamPatch[] = {
3847 "format",
3848 "rename(const char *_old, const char *_new)",
3849 (char*)NULL };
3850
3851 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3852 *
3853 * Description of Sco_Math fix
3854 */
3855 tSCC zSco_MathName[] =
3856 "sco_math";
3857
3858 /*
3859 * File name selection pattern
3860 */
3861 tSCC zSco_MathList[] =
3862 "|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|";
3863 /*
3864 * Machine/OS name selection pattern
3865 */
3866 #define apzSco_MathMachs (const char**)NULL
3867
3868 /*
3869 * content selection pattern - do fix if pattern found
3870 */
3871 tSCC zSco_MathSelect0[] =
3872 "inline double abs";
3873
3874 #define SCO_MATH_TEST_CT 1
3875 static tTestDesc aSco_MathTests[] = {
3876 { TT_EGREP, zSco_MathSelect0, (regex_t*)NULL }, };
3877
3878 /*
3879 * Fix Command Arguments for Sco_Math
3880 */
3881 static const char* apzSco_MathPatch[] = { "sed",
3882 "-e", "/#define.*__fp_class(a) \\\\/i\\\n\
3883 #ifndef __GNUC__\n",
3884 "-e", "/.*__builtin_generic/a\\\n\
3885 #else\\\n\
3886 #define __fp_class(a) \\\\\\\n\
3887 __builtin_choose_expr(__builtin_types_compatible_p(typeof(a),long double),\\\\\\\n\
3888 __fpclassifyl(a), \\\\\\\n\
3889 __builtin_choose_expr(__builtin_types_compatible_p(typeof(a), float), \\\\\\\n\
3890 __fpclassifyf(a),__fpclassify(a)))\\\n\
3891 #endif",
3892 "-e", "/extern \"C\\+\\+\"/N;/inline double abs/i\\\n\
3893 #ifndef __GNUC__\n",
3894 "-e", "/inline long double trunc/N;/inline long double trunc.*}.*extern \"C\\+\\+\"/a\\\n\
3895 #endif /* ! __GNUC__ */",
3896 (char*)NULL };
3897
3898 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3899 *
3900 * Description of Sco_Regset fix
3901 */
3902 tSCC zSco_RegsetName[] =
3903 "sco_regset";
3904
3905 /*
3906 * File name selection pattern
3907 */
3908 tSCC zSco_RegsetList[] =
3909 "|sys/regset.h|";
3910 /*
3911 * Machine/OS name selection pattern
3912 */
3913 tSCC* apzSco_RegsetMachs[] = {
3914 "*-*-sco3.2v5*",
3915 (const char*)NULL };
3916
3917 /*
3918 * content selection pattern - do fix if pattern found
3919 */
3920 tSCC zSco_RegsetSelect0[] =
3921 "(struct[ \t]+.*)fpstate";
3922
3923 #define SCO_REGSET_TEST_CT 1
3924 static tTestDesc aSco_RegsetTests[] = {
3925 { TT_EGREP, zSco_RegsetSelect0, (regex_t*)NULL }, };
3926
3927 /*
3928 * Fix Command Arguments for Sco_Regset
3929 */
3930 static const char* apzSco_RegsetPatch[] = {
3931 "format",
3932 "%1rsfpstate",
3933 (char*)NULL };
3934
3935 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3936 *
3937 * Description of Sco_Static_Func fix
3938 */
3939 tSCC zSco_Static_FuncName[] =
3940 "sco_static_func";
3941
3942 /*
3943 * File name selection pattern
3944 */
3945 tSCC zSco_Static_FuncList[] =
3946 "|sys/stat.h|";
3947 /*
3948 * Machine/OS name selection pattern
3949 */
3950 tSCC* apzSco_Static_FuncMachs[] = {
3951 "i?86-*-sco3.2*",
3952 (const char*)NULL };
3953
3954 /*
3955 * content selection pattern - do fix if pattern found
3956 */
3957 tSCC zSco_Static_FuncSelect0[] =
3958 "^static int";
3959
3960 #define SCO_STATIC_FUNC_TEST_CT 1
3961 static tTestDesc aSco_Static_FuncTests[] = {
3962 { TT_EGREP, zSco_Static_FuncSelect0, (regex_t*)NULL }, };
3963
3964 /*
3965 * Fix Command Arguments for Sco_Static_Func
3966 */
3967 static const char* apzSco_Static_FuncPatch[] = { "sed",
3968 "-e", "/^static int/i\\\n\
3969 #if __cplusplus\\\n\
3970 extern \"C\" {\\\n\
3971 #endif /* __cplusplus */",
3972 "-e", "/^}$/a\\\n\
3973 #if __cplusplus\\\n\
3974 }\\\n\
3975 #endif /* __cplusplus */",
3976 (char*)NULL };
3977
3978 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3979 *
3980 * Description of Sco_Utime fix
3981 */
3982 tSCC zSco_UtimeName[] =
3983 "sco_utime";
3984
3985 /*
3986 * File name selection pattern
3987 */
3988 tSCC zSco_UtimeList[] =
3989 "|sys/times.h|";
3990 /*
3991 * Machine/OS name selection pattern
3992 */
3993 tSCC* apzSco_UtimeMachs[] = {
3994 "i?86-*-sco3.2v4*",
3995 (const char*)NULL };
3996
3997 /*
3998 * content selection pattern - do fix if pattern found
3999 */
4000 tSCC zSco_UtimeSelect0[] =
4001 "\\(const char \\*, struct utimbuf \\*\\);";
4002
4003 #define SCO_UTIME_TEST_CT 1
4004 static tTestDesc aSco_UtimeTests[] = {
4005 { TT_EGREP, zSco_UtimeSelect0, (regex_t*)NULL }, };
4006
4007 /*
4008 * Fix Command Arguments for Sco_Utime
4009 */
4010 static const char* apzSco_UtimePatch[] = {
4011 "format",
4012 "(const char *, const struct utimbuf *);",
4013 (char*)NULL };
4014
4015 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4016 *
4017 * Description of Solaris_Mutex_Init_1 fix
4018 */
4019 tSCC zSolaris_Mutex_Init_1Name[] =
4020 "solaris_mutex_init_1";
4021
4022 /*
4023 * File name selection pattern
4024 */
4025 tSCC zSolaris_Mutex_Init_1List[] =
4026 "|pthread.h|";
4027 /*
4028 * Machine/OS name selection pattern
4029 */
4030 #define apzSolaris_Mutex_Init_1Machs (const char**)NULL
4031
4032 /*
4033 * content selection pattern - do fix if pattern found
4034 */
4035 tSCC zSolaris_Mutex_Init_1Select0[] =
4036 "@\\(#\\)pthread.h[ \t]+1.1[0-9][ \t]+9[567]/[0-9/]+ SMI";
4037
4038 #define SOLARIS_MUTEX_INIT_1_TEST_CT 1
4039 static tTestDesc aSolaris_Mutex_Init_1Tests[] = {
4040 { TT_EGREP, zSolaris_Mutex_Init_1Select0, (regex_t*)NULL }, };
4041
4042 /*
4043 * Fix Command Arguments for Solaris_Mutex_Init_1
4044 */
4045 static const char* apzSolaris_Mutex_Init_1Patch[] = { "sed",
4046 "-e", "/define[ \t]*PTHREAD_MUTEX_INI/s/{0, 0,/{{{0}, 0}, {{{0}}},/\n\
4047 /define[ \t]*PTHREAD_COND_INI/s/{0,/{{{0},0},/",
4048 (char*)NULL };
4049
4050 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4051 *
4052 * Description of Solaris_Mutex_Init_2 fix
4053 */
4054 tSCC zSolaris_Mutex_Init_2Name[] =
4055 "solaris_mutex_init_2";
4056
4057 /*
4058 * File name selection pattern
4059 */
4060 tSCC zSolaris_Mutex_Init_2List[] =
4061 "|pthread.h|";
4062 /*
4063 * Machine/OS name selection pattern
4064 */
4065 #define apzSolaris_Mutex_Init_2Machs (const char**)NULL
4066
4067 /*
4068 * content selection pattern - do fix if pattern found
4069 */
4070 tSCC zSolaris_Mutex_Init_2Select0[] =
4071 "@\\(#\\)pthread.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
4072
4073 #define SOLARIS_MUTEX_INIT_2_TEST_CT 1
4074 static tTestDesc aSolaris_Mutex_Init_2Tests[] = {
4075 { TT_EGREP, zSolaris_Mutex_Init_2Select0, (regex_t*)NULL }, };
4076
4077 /*
4078 * Fix Command Arguments for Solaris_Mutex_Init_2
4079 */
4080 static const char* apzSolaris_Mutex_Init_2Patch[] = {
4081 "format",
4082 "#if __STDC__ - 0 == 0 && !defined(_NO_LONGLONG)\n\
4083 %0\n\
4084 #else\n\
4085 %1, {0}}%3\n\
4086 #endif",
4087 "(^#define[ \t]+PTHREAD_(MUTEX|COND)_INITIALIZER[ \t]+\\{.*),[ \t]*0\\}(|[ \t].*)$",
4088 (char*)NULL };
4089
4090 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4091 *
4092 * Description of Solaris_Socket fix
4093 */
4094 tSCC zSolaris_SocketName[] =
4095 "solaris_socket";
4096
4097 /*
4098 * File name selection pattern
4099 */
4100 tSCC zSolaris_SocketList[] =
4101 "|sys/socket.h|";
4102 /*
4103 * Machine/OS name selection pattern
4104 */
4105 #define apzSolaris_SocketMachs (const char**)NULL
4106
4107 /*
4108 * content selection pattern - do fix if pattern found
4109 */
4110 tSCC zSolaris_SocketSelect0[] =
4111 "@\\(#\\)socket.h[ \t]+1.[123][0-9][ \t]+9[567]/[0-9/]+ SMI";
4112
4113 #define SOLARIS_SOCKET_TEST_CT 1
4114 static tTestDesc aSolaris_SocketTests[] = {
4115 { TT_EGREP, zSolaris_SocketSelect0, (regex_t*)NULL }, };
4116
4117 /*
4118 * Fix Command Arguments for Solaris_Socket
4119 */
4120 static const char* apzSolaris_SocketPatch[] = {
4121 "format",
4122 "extern int %1(int, %2void *, int, int);",
4123 "^extern int (recv|send)\\(int, (const )*char \\*, int, int\\);",
4124 (char*)NULL };
4125
4126 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4127 *
4128 * Description of Solaris_Stdio_Tag fix
4129 */
4130 tSCC zSolaris_Stdio_TagName[] =
4131 "solaris_stdio_tag";
4132
4133 /*
4134 * File name selection pattern
4135 */
4136 tSCC zSolaris_Stdio_TagList[] =
4137 "|stdio_tag.h|";
4138 /*
4139 * Machine/OS name selection pattern
4140 */
4141 #define apzSolaris_Stdio_TagMachs (const char**)NULL
4142
4143 /*
4144 * content selection pattern - do fix if pattern found
4145 */
4146 tSCC zSolaris_Stdio_TagSelect0[] =
4147 "__cplusplus < 54321L";
4148
4149 #define SOLARIS_STDIO_TAG_TEST_CT 1
4150 static tTestDesc aSolaris_Stdio_TagTests[] = {
4151 { TT_EGREP, zSolaris_Stdio_TagSelect0, (regex_t*)NULL }, };
4152
4153 /*
4154 * Fix Command Arguments for Solaris_Stdio_Tag
4155 */
4156 static const char* apzSolaris_Stdio_TagPatch[] = { "sed",
4157 "-e", "s/defined(__cplusplus) && (__cplusplus < 54321L)/0/",
4158 (char*)NULL };
4159
4160 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4161 *
4162 * Description of Solaris_Unistd fix
4163 */
4164 tSCC zSolaris_UnistdName[] =
4165 "solaris_unistd";
4166
4167 /*
4168 * File name selection pattern
4169 */
4170 tSCC zSolaris_UnistdList[] =
4171 "|unistd.h|";
4172 /*
4173 * Machine/OS name selection pattern
4174 */
4175 #define apzSolaris_UnistdMachs (const char**)NULL
4176
4177 /*
4178 * content selection pattern - do fix if pattern found
4179 */
4180 tSCC zSolaris_UnistdSelect0[] =
4181 "@\\(#\\)unistd.h[ \t]+1.3[0-9][ \t]+9[567]/[0-9/]+ SMI";
4182
4183 /*
4184 * content bypass pattern - skip fix if pattern found
4185 */
4186 tSCC zSolaris_UnistdBypass0[] =
4187 "getpagesize";
4188
4189 #define SOLARIS_UNISTD_TEST_CT 2
4190 static tTestDesc aSolaris_UnistdTests[] = {
4191 { TT_NEGREP, zSolaris_UnistdBypass0, (regex_t*)NULL },
4192 { TT_EGREP, zSolaris_UnistdSelect0, (regex_t*)NULL }, };
4193
4194 /*
4195 * Fix Command Arguments for Solaris_Unistd
4196 */
4197 static const char* apzSolaris_UnistdPatch[] = {
4198 "format",
4199 "extern int getpagesize();\n\
4200 %0",
4201 "^extern (pid_t|int) getpgid\\(.*\\);",
4202 (char*)NULL };
4203
4204 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4205 *
4206 * Description of Solaris_Widec fix
4207 */
4208 tSCC zSolaris_WidecName[] =
4209 "solaris_widec";
4210
4211 /*
4212 * File name selection pattern
4213 */
4214 tSCC zSolaris_WidecList[] =
4215 "|widec.h|";
4216 /*
4217 * Machine/OS name selection pattern
4218 */
4219 tSCC* apzSolaris_WidecMachs[] = {
4220 "*-*-solaris2.[0-5]",
4221 "*-*-solaris2.[0-5].*",
4222 (const char*)NULL };
4223
4224 /*
4225 * content selection pattern - do fix if pattern found
4226 */
4227 tSCC zSolaris_WidecSelect0[] =
4228 "#include <euc.h>";
4229
4230 /*
4231 * content bypass pattern - skip fix if pattern found
4232 */
4233 tSCC zSolaris_WidecBypass0[] =
4234 "include.*wchar\\.h";
4235
4236 #define SOLARIS_WIDEC_TEST_CT 2
4237 static tTestDesc aSolaris_WidecTests[] = {
4238 { TT_NEGREP, zSolaris_WidecBypass0, (regex_t*)NULL },
4239 { TT_EGREP, zSolaris_WidecSelect0, (regex_t*)NULL }, };
4240
4241 /*
4242 * Fix Command Arguments for Solaris_Widec
4243 */
4244 static const char* apzSolaris_WidecPatch[] = {
4245 "format",
4246 "%0\n\
4247 #include <wchar.h>",
4248 (char*)NULL };
4249
4250 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4251 *
4252 * Description of Statsswtch fix
4253 */
4254 tSCC zStatsswtchName[] =
4255 "statsswtch";
4256
4257 /*
4258 * File name selection pattern
4259 */
4260 tSCC zStatsswtchList[] =
4261 "|rpcsvc/rstat.h|";
4262 /*
4263 * Machine/OS name selection pattern
4264 */
4265 #define apzStatsswtchMachs (const char**)NULL
4266
4267 /*
4268 * content selection pattern - do fix if pattern found
4269 */
4270 tSCC zStatsswtchSelect0[] =
4271 "boottime$";
4272
4273 #define STATSSWTCH_TEST_CT 1
4274 static tTestDesc aStatsswtchTests[] = {
4275 { TT_EGREP, zStatsswtchSelect0, (regex_t*)NULL }, };
4276
4277 /*
4278 * Fix Command Arguments for Statsswtch
4279 */
4280 static const char* apzStatsswtchPatch[] = {
4281 "format",
4282 "boottime;",
4283 (char*)NULL };
4284
4285 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4286 *
4287 * Description of Stdio_Stdarg_H fix
4288 */
4289 tSCC zStdio_Stdarg_HName[] =
4290 "stdio_stdarg_h";
4291
4292 /*
4293 * File name selection pattern
4294 */
4295 tSCC zStdio_Stdarg_HList[] =
4296 "|stdio.h|";
4297 /*
4298 * Machine/OS name selection pattern
4299 */
4300 #define apzStdio_Stdarg_HMachs (const char**)NULL
4301
4302 /*
4303 * content bypass pattern - skip fix if pattern found
4304 */
4305 tSCC zStdio_Stdarg_HBypass0[] =
4306 "include.*(stdarg.h|machine/ansi.h)";
4307
4308 #define STDIO_STDARG_H_TEST_CT 1
4309 static tTestDesc aStdio_Stdarg_HTests[] = {
4310 { TT_NEGREP, zStdio_Stdarg_HBypass0, (regex_t*)NULL }, };
4311
4312 /*
4313 * Fix Command Arguments for Stdio_Stdarg_H
4314 */
4315 static const char* apzStdio_Stdarg_HPatch[] = {
4316 "wrap",
4317 "#define __need___va_list\n\
4318 #include <stdarg.h>\n",
4319 (char*)NULL };
4320
4321 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4322 *
4323 * Description of Stdio_Va_List fix
4324 */
4325 tSCC zStdio_Va_ListName[] =
4326 "stdio_va_list";
4327
4328 /*
4329 * File name selection pattern
4330 */
4331 tSCC zStdio_Va_ListList[] =
4332 "|stdio.h|internal/stdio_core.h|internal/wchar_core.h|";
4333 /*
4334 * Machine/OS name selection pattern
4335 */
4336 #define apzStdio_Va_ListMachs (const char**)NULL
4337
4338 /*
4339 * content bypass pattern - skip fix if pattern found
4340 */
4341 tSCC zStdio_Va_ListBypass0[] =
4342 "__gnuc_va_list|_BSD_VA_LIST_|__DJ_va_list|_G_va_list";
4343
4344 #define STDIO_VA_LIST_TEST_CT 1
4345 static tTestDesc aStdio_Va_ListTests[] = {
4346 { TT_NEGREP, zStdio_Va_ListBypass0, (regex_t*)NULL }, };
4347
4348 /*
4349 * Fix Command Arguments for Stdio_Va_List
4350 */
4351 static const char* apzStdio_Va_ListPatch[] = { "sed",
4352 "-e", "s@ va_list @ __gnuc_va_list @\n\
4353 s@ va_list)@ __gnuc_va_list)@\n\
4354 s@(va_list)&@(__gnuc_va_list)\\&@\n\
4355 s@ _VA_LIST_));@ __gnuc_va_list));@\n\
4356 s@ __VA_LIST__));@ __gnuc_va_list));@\n\
4357 s@ va_list@ __not_va_list__@\n\
4358 s@\\*va_list@*__not_va_list__@\n\
4359 s@ __va_list)@ __gnuc_va_list)@\n\
4360 s@typedef[ \t]\\(.*\\)[ \t]va_list[ \t]*;@typedef \\1 __not_va_list__;@\n\
4361 s@typedef[ \t]*__va_list__@typedef __gnuc_va_list@\n\
4362 s@GNUC_VA_LIST@GNUC_Va_LIST@\n\
4363 s@_VA_LIST_DEFINED@_Va_LIST_DEFINED@\n\
4364 s@_NEED___VA_LIST@_NEED___Va_LIST@\n\
4365 s@VA_LIST@DUMMY_VA_LIST@\n\
4366 s@_Va_LIST@_VA_LIST@",
4367 (char*)NULL };
4368
4369 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4370 *
4371 * Description of Strict_Ansi_Not fix
4372 */
4373 tSCC zStrict_Ansi_NotName[] =
4374 "strict_ansi_not";
4375
4376 /*
4377 * File name selection pattern
4378 */
4379 #define zStrict_Ansi_NotList (char*)NULL
4380 /*
4381 * Machine/OS name selection pattern
4382 */
4383 #define apzStrict_Ansi_NotMachs (const char**)NULL
4384
4385 /*
4386 * content selection pattern - do fix if pattern found
4387 */
4388 tSCC zStrict_Ansi_NotSelect0[] =
4389 "^([ \t]*#[ \t]*if.*)(!__STDC__|__STDC__[ \t]*==[ \t]*0|__STDC__[ \t]*!=[ \t]*1|__STDC__[ \t]*-[ \t]*0[ \t]*==[ \t]*0)";
4390
4391 /*
4392 * content bypass pattern - skip fix if pattern found
4393 */
4394 tSCC zStrict_Ansi_NotBypass0[] =
4395 "GNU and MIPS C compilers define __STDC__ differently";
4396 tSCC zStrict_Ansi_NotBypass1[] =
4397 "__SCO_VERSION__.*__STDC__ != 1";
4398
4399 /*
4400 * perform the C function call test
4401 */
4402 tSCC zStrict_Ansi_NotFTst0[] = "stdc_0_in_system_headers";
4403
4404 #define STRICT_ANSI_NOT_TEST_CT 4
4405 static tTestDesc aStrict_Ansi_NotTests[] = {
4406 { TT_FUNCTION, zStrict_Ansi_NotFTst0, 0 /* unused */ },
4407 { TT_NEGREP, zStrict_Ansi_NotBypass0, (regex_t*)NULL },
4408 { TT_NEGREP, zStrict_Ansi_NotBypass1, (regex_t*)NULL },
4409 { TT_EGREP, zStrict_Ansi_NotSelect0, (regex_t*)NULL }, };
4410
4411 /*
4412 * Fix Command Arguments for Strict_Ansi_Not
4413 */
4414 static const char* apzStrict_Ansi_NotPatch[] = {
4415 "format",
4416 "%1 !defined(__STRICT_ANSI__)",
4417 (char*)NULL };
4418
4419 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4420 *
4421 * Description of Strict_Ansi_Not_Ctd fix
4422 */
4423 tSCC zStrict_Ansi_Not_CtdName[] =
4424 "strict_ansi_not_ctd";
4425
4426 /*
4427 * File name selection pattern
4428 */
4429 tSCC zStrict_Ansi_Not_CtdList[] =
4430 "|math.h|limits.h|stdio.h|signal.h|stdlib.h|sys/signal.h|time.h|";
4431 /*
4432 * Machine/OS name selection pattern
4433 */
4434 #define apzStrict_Ansi_Not_CtdMachs (const char**)NULL
4435
4436 /*
4437 * content selection pattern - do fix if pattern found
4438 */
4439 tSCC zStrict_Ansi_Not_CtdSelect0[] =
4440 "^([ \t]*(\\(|&&|\\|\\|)([ \t(]*!*[ \t]*defined\\([a-zA-Z_0-9]+\\)[ \t]*[|&][|&])*[ \t(]*)(__STDC__[ \t]*(|-[ \t]*0[ \t]*)==[ \t]*0)";
4441
4442 /*
4443 * perform the C function call test
4444 */
4445 tSCC zStrict_Ansi_Not_CtdFTst0[] = "stdc_0_in_system_headers";
4446
4447 #define STRICT_ANSI_NOT_CTD_TEST_CT 2
4448 static tTestDesc aStrict_Ansi_Not_CtdTests[] = {
4449 { TT_FUNCTION, zStrict_Ansi_Not_CtdFTst0, 0 /* unused */ },
4450 { TT_EGREP, zStrict_Ansi_Not_CtdSelect0, (regex_t*)NULL }, };
4451
4452 /*
4453 * Fix Command Arguments for Strict_Ansi_Not_Ctd
4454 */
4455 static const char* apzStrict_Ansi_Not_CtdPatch[] = {
4456 "format",
4457 "%1 !defined(__STRICT_ANSI__)",
4458 (char*)NULL };
4459
4460 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4461 *
4462 * Description of Strict_Ansi_Only fix
4463 */
4464 tSCC zStrict_Ansi_OnlyName[] =
4465 "strict_ansi_only";
4466
4467 /*
4468 * File name selection pattern
4469 */
4470 #define zStrict_Ansi_OnlyList (char*)NULL
4471 /*
4472 * Machine/OS name selection pattern
4473 */
4474 #define apzStrict_Ansi_OnlyMachs (const char**)NULL
4475
4476 /*
4477 * content selection pattern - do fix if pattern found
4478 */
4479 tSCC zStrict_Ansi_OnlySelect0[] =
4480 "^([ \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)";
4481
4482 /*
4483 * perform the C function call test
4484 */
4485 tSCC zStrict_Ansi_OnlyFTst0[] = "stdc_0_in_system_headers";
4486
4487 #define STRICT_ANSI_ONLY_TEST_CT 2
4488 static tTestDesc aStrict_Ansi_OnlyTests[] = {
4489 { TT_FUNCTION, zStrict_Ansi_OnlyFTst0, 0 /* unused */ },
4490 { TT_EGREP, zStrict_Ansi_OnlySelect0, (regex_t*)NULL }, };
4491
4492 /*
4493 * Fix Command Arguments for Strict_Ansi_Only
4494 */
4495 static const char* apzStrict_Ansi_OnlyPatch[] = {
4496 "format",
4497 "%1 defined(__STRICT_ANSI__)",
4498 (char*)NULL };
4499
4500 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4501 *
4502 * Description of Struct_File fix
4503 */
4504 tSCC zStruct_FileName[] =
4505 "struct_file";
4506
4507 /*
4508 * File name selection pattern
4509 */
4510 tSCC zStruct_FileList[] =
4511 "|rpc/xdr.h|";
4512 /*
4513 * Machine/OS name selection pattern
4514 */
4515 #define apzStruct_FileMachs (const char**)NULL
4516
4517 /*
4518 * content selection pattern - do fix if pattern found
4519 */
4520 tSCC zStruct_FileSelect0[] =
4521 "^.*xdrstdio_create.*struct __file_s";
4522
4523 #define STRUCT_FILE_TEST_CT 1
4524 static tTestDesc aStruct_FileTests[] = {
4525 { TT_EGREP, zStruct_FileSelect0, (regex_t*)NULL }, };
4526
4527 /*
4528 * Fix Command Arguments for Struct_File
4529 */
4530 static const char* apzStruct_FilePatch[] = {
4531 "format",
4532 "struct __file_s;\n\
4533 %0",
4534 (char*)NULL };
4535
4536 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4537 *
4538 * Description of Struct_Sockaddr fix
4539 */
4540 tSCC zStruct_SockaddrName[] =
4541 "struct_sockaddr";
4542
4543 /*
4544 * File name selection pattern
4545 */
4546 tSCC zStruct_SockaddrList[] =
4547 "|rpc/auth.h|";
4548 /*
4549 * Machine/OS name selection pattern
4550 */
4551 #define apzStruct_SockaddrMachs (const char**)NULL
4552
4553 /*
4554 * content selection pattern - do fix if pattern found
4555 */
4556 tSCC zStruct_SockaddrSelect0[] =
4557 "^.*authdes_create.*struct sockaddr[^_]";
4558
4559 /*
4560 * content bypass pattern - skip fix if pattern found
4561 */
4562 tSCC zStruct_SockaddrBypass0[] =
4563 "<sys/socket.h>";
4564 tSCC zStruct_SockaddrBypass1[] =
4565 "struct sockaddr;\n";
4566
4567 #define STRUCT_SOCKADDR_TEST_CT 3
4568 static tTestDesc aStruct_SockaddrTests[] = {
4569 { TT_NEGREP, zStruct_SockaddrBypass0, (regex_t*)NULL },
4570 { TT_NEGREP, zStruct_SockaddrBypass1, (regex_t*)NULL },
4571 { TT_EGREP, zStruct_SockaddrSelect0, (regex_t*)NULL }, };
4572
4573 /*
4574 * Fix Command Arguments for Struct_Sockaddr
4575 */
4576 static const char* apzStruct_SockaddrPatch[] = {
4577 "format",
4578 "struct sockaddr;\n\
4579 %0",
4580 (char*)NULL };
4581
4582 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4583 *
4584 * Description of Sun_Auth_Proto fix
4585 */
4586 tSCC zSun_Auth_ProtoName[] =
4587 "sun_auth_proto";
4588
4589 /*
4590 * File name selection pattern
4591 */
4592 tSCC zSun_Auth_ProtoList[] =
4593 "|rpc/auth.h|rpc/clnt.h|rpc/svc.h|rpc/xdr.h|";
4594 /*
4595 * Machine/OS name selection pattern
4596 */
4597 #define apzSun_Auth_ProtoMachs (const char**)NULL
4598
4599 /*
4600 * content selection pattern - do fix if pattern found
4601 */
4602 tSCC zSun_Auth_ProtoSelect0[] =
4603 "\\(\\*[a-z][a-z_]*\\)\\(\\)";
4604
4605 #define SUN_AUTH_PROTO_TEST_CT 1
4606 static tTestDesc aSun_Auth_ProtoTests[] = {
4607 { TT_EGREP, zSun_Auth_ProtoSelect0, (regex_t*)NULL }, };
4608
4609 /*
4610 * Fix Command Arguments for Sun_Auth_Proto
4611 */
4612 static const char* apzSun_Auth_ProtoPatch[] = {
4613 "format",
4614 "#ifdef __cplusplus\n\
4615 %1(...);%2\n\
4616 #else\n\
4617 %1();%2\n\
4618 #endif",
4619 "(.*\\(\\*[a-z][a-z_]*\\))\\(\\);(.*)",
4620 (char*)NULL };
4621
4622 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4623 *
4624 * Description of Sun_Bogus_Ifdef fix
4625 */
4626 tSCC zSun_Bogus_IfdefName[] =
4627 "sun_bogus_ifdef";
4628
4629 /*
4630 * File name selection pattern
4631 */
4632 tSCC zSun_Bogus_IfdefList[] =
4633 "|hsfs/hsfs_spec.h|hsfs/iso_spec.h|";
4634 /*
4635 * Machine/OS name selection pattern
4636 */
4637 #define apzSun_Bogus_IfdefMachs (const char**)NULL
4638
4639 /*
4640 * content selection pattern - do fix if pattern found
4641 */
4642 tSCC zSun_Bogus_IfdefSelect0[] =
4643 "#ifdef(.*\\|\\|.*)";
4644
4645 #define SUN_BOGUS_IFDEF_TEST_CT 1
4646 static tTestDesc aSun_Bogus_IfdefTests[] = {
4647 { TT_EGREP, zSun_Bogus_IfdefSelect0, (regex_t*)NULL }, };
4648
4649 /*
4650 * Fix Command Arguments for Sun_Bogus_Ifdef
4651 */
4652 static const char* apzSun_Bogus_IfdefPatch[] = {
4653 "format",
4654 "#if%1",
4655 (char*)NULL };
4656
4657 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4658 *
4659 * Description of Sun_Catmacro fix
4660 */
4661 tSCC zSun_CatmacroName[] =
4662 "sun_catmacro";
4663
4664 /*
4665 * File name selection pattern
4666 */
4667 tSCC zSun_CatmacroList[] =
4668 "|pixrect/memvar.h|";
4669 /*
4670 * Machine/OS name selection pattern
4671 */
4672 #define apzSun_CatmacroMachs (const char**)NULL
4673
4674 /*
4675 * content selection pattern - do fix if pattern found
4676 */
4677 tSCC zSun_CatmacroSelect0[] =
4678 "^#define[ \t]+CAT\\(a,b\\).*";
4679
4680 #define SUN_CATMACRO_TEST_CT 1
4681 static tTestDesc aSun_CatmacroTests[] = {
4682 { TT_EGREP, zSun_CatmacroSelect0, (regex_t*)NULL }, };
4683
4684 /*
4685 * Fix Command Arguments for Sun_Catmacro
4686 */
4687 static const char* apzSun_CatmacroPatch[] = {
4688 "format",
4689 "#ifdef __STDC__\n\
4690 # define CAT(a,b) a##b\n\
4691 #else\n\
4692 %0\n\
4693 #endif",
4694 (char*)NULL };
4695
4696 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4697 *
4698 * Description of Sun_Malloc fix
4699 */
4700 tSCC zSun_MallocName[] =
4701 "sun_malloc";
4702
4703 /*
4704 * File name selection pattern
4705 */
4706 tSCC zSun_MallocList[] =
4707 "|malloc.h|";
4708 /*
4709 * Machine/OS name selection pattern
4710 */
4711 #define apzSun_MallocMachs (const char**)NULL
4712 #define SUN_MALLOC_TEST_CT 0
4713 #define aSun_MallocTests (tTestDesc*)NULL
4714
4715 /*
4716 * Fix Command Arguments for Sun_Malloc
4717 */
4718 static const char* apzSun_MallocPatch[] = { "sed",
4719 "-e", "s/typedef[ \t]char \\*\tmalloc_t/typedef void \\*\tmalloc_t/g",
4720 "-e", "s/int[ \t][ \t]*free/void\tfree/g",
4721 "-e", "s/char\\([ \t]*\\*[ \t]*malloc\\)/void\\1/g",
4722 "-e", "s/char\\([ \t]*\\*[ \t]*realloc\\)/void\\1/g",
4723 "-e", "s/char\\([ \t]*\\*[ \t]*calloc\\)/void\\1/g",
4724 (char*)NULL };
4725
4726 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4727 *
4728 * Description of Sun_Rusers_Semi fix
4729 */
4730 tSCC zSun_Rusers_SemiName[] =
4731 "sun_rusers_semi";
4732
4733 /*
4734 * File name selection pattern
4735 */
4736 tSCC zSun_Rusers_SemiList[] =
4737 "|rpcsvc/rusers.h|";
4738 /*
4739 * Machine/OS name selection pattern
4740 */
4741 #define apzSun_Rusers_SemiMachs (const char**)NULL
4742
4743 /*
4744 * content selection pattern - do fix if pattern found
4745 */
4746 tSCC zSun_Rusers_SemiSelect0[] =
4747 "_cnt$";
4748
4749 #define SUN_RUSERS_SEMI_TEST_CT 1
4750 static tTestDesc aSun_Rusers_SemiTests[] = {
4751 { TT_EGREP, zSun_Rusers_SemiSelect0, (regex_t*)NULL }, };
4752
4753 /*
4754 * Fix Command Arguments for Sun_Rusers_Semi
4755 */
4756 static const char* apzSun_Rusers_SemiPatch[] = { "sed",
4757 "-e", "/^struct/,/^};/s/_cnt$/_cnt;/",
4758 (char*)NULL };
4759
4760 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4761 *
4762 * Description of Sun_Signal fix
4763 */
4764 tSCC zSun_SignalName[] =
4765 "sun_signal";
4766
4767 /*
4768 * File name selection pattern
4769 */
4770 tSCC zSun_SignalList[] =
4771 "|sys/signal.h|signal.h|";
4772 /*
4773 * Machine/OS name selection pattern
4774 */
4775 #define apzSun_SignalMachs (const char**)NULL
4776
4777 /*
4778 * content selection pattern - do fix if pattern found
4779 */
4780 tSCC zSun_SignalSelect0[] =
4781 "^void\t\\(\\*signal\\(\\)\\)\\(\\);.*";
4782
4783 #define SUN_SIGNAL_TEST_CT 1
4784 static tTestDesc aSun_SignalTests[] = {
4785 { TT_EGREP, zSun_SignalSelect0, (regex_t*)NULL }, };
4786
4787 /*
4788 * Fix Command Arguments for Sun_Signal
4789 */
4790 static const char* apzSun_SignalPatch[] = {
4791 "format",
4792 "#ifdef __cplusplus\n\
4793 void\t(*signal(...))(...);\n\
4794 #else\n\
4795 %0\n\
4796 #endif",
4797 (char*)NULL };
4798
4799 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4800 *
4801 * Description of Sunos_Matherr_Decl fix
4802 */
4803 tSCC zSunos_Matherr_DeclName[] =
4804 "sunos_matherr_decl";
4805
4806 /*
4807 * File name selection pattern
4808 */
4809 tSCC zSunos_Matherr_DeclList[] =
4810 "|math.h|";
4811 /*
4812 * Machine/OS name selection pattern
4813 */
4814 #define apzSunos_Matherr_DeclMachs (const char**)NULL
4815
4816 /*
4817 * content selection pattern - do fix if pattern found
4818 */
4819 tSCC zSunos_Matherr_DeclSelect0[] =
4820 "matherr";
4821
4822 /*
4823 * content bypass pattern - skip fix if pattern found
4824 */
4825 tSCC zSunos_Matherr_DeclBypass0[] =
4826 "matherr.*(struct exception|__MATH_EXCEPTION)";
4827
4828 #define SUNOS_MATHERR_DECL_TEST_CT 2
4829 static tTestDesc aSunos_Matherr_DeclTests[] = {
4830 { TT_NEGREP, zSunos_Matherr_DeclBypass0, (regex_t*)NULL },
4831 { TT_EGREP, zSunos_Matherr_DeclSelect0, (regex_t*)NULL }, };
4832
4833 /*
4834 * Fix Command Arguments for Sunos_Matherr_Decl
4835 */
4836 static const char* apzSunos_Matherr_DeclPatch[] = {
4837 "wrap",
4838 "struct exception;\n",
4839 (char*)NULL };
4840
4841 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4842 *
4843 * Description of Sunos_Strlen fix
4844 */
4845 tSCC zSunos_StrlenName[] =
4846 "sunos_strlen";
4847
4848 /*
4849 * File name selection pattern
4850 */
4851 tSCC zSunos_StrlenList[] =
4852 "|strings.h|";
4853 /*
4854 * Machine/OS name selection pattern
4855 */
4856 #define apzSunos_StrlenMachs (const char**)NULL
4857
4858 /*
4859 * content selection pattern - do fix if pattern found
4860 */
4861 tSCC zSunos_StrlenSelect0[] =
4862 "int[ \t]*strlen\\(\\);(.*)";
4863
4864 #define SUNOS_STRLEN_TEST_CT 1
4865 static tTestDesc aSunos_StrlenTests[] = {
4866 { TT_EGREP, zSunos_StrlenSelect0, (regex_t*)NULL }, };
4867
4868 /*
4869 * Fix Command Arguments for Sunos_Strlen
4870 */
4871 static const char* apzSunos_StrlenPatch[] = {
4872 "format",
4873 "__SIZE_TYPE__ strlen();%1",
4874 (char*)NULL };
4875
4876 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4877 *
4878 * Description of Svr4__P fix
4879 */
4880 tSCC zSvr4__PName[] =
4881 "svr4__p";
4882
4883 /*
4884 * File name selection pattern
4885 */
4886 tSCC zSvr4__PList[] =
4887 "|math.h|floatingpoint.h|";
4888 /*
4889 * Machine/OS name selection pattern
4890 */
4891 #define apzSvr4__PMachs (const char**)NULL
4892
4893 /*
4894 * content selection pattern - do fix if pattern found
4895 */
4896 tSCC zSvr4__PSelect0[] =
4897 "^#define[ \t]+__P.*";
4898
4899 #define SVR4__P_TEST_CT 1
4900 static tTestDesc aSvr4__PTests[] = {
4901 { TT_EGREP, zSvr4__PSelect0, (regex_t*)NULL }, };
4902
4903 /*
4904 * Fix Command Arguments for Svr4__P
4905 */
4906 static const char* apzSvr4__PPatch[] = {
4907 "format",
4908 "#ifndef __P\n\
4909 %0\n\
4910 #endif",
4911 (char*)NULL };
4912
4913 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4914 *
4915 * Description of Svr4_Disable_Opt fix
4916 */
4917 tSCC zSvr4_Disable_OptName[] =
4918 "svr4_disable_opt";
4919
4920 /*
4921 * File name selection pattern
4922 */
4923 tSCC zSvr4_Disable_OptList[] =
4924 "|string.h|";
4925 /*
4926 * Machine/OS name selection pattern
4927 */
4928 #define apzSvr4_Disable_OptMachs (const char**)NULL
4929
4930 /*
4931 * content selection pattern - do fix if pattern found
4932 */
4933 tSCC zSvr4_Disable_OptSelect0[] =
4934 "#define.*__std_hdr_";
4935
4936 #define SVR4_DISABLE_OPT_TEST_CT 1
4937 static tTestDesc aSvr4_Disable_OptTests[] = {
4938 { TT_EGREP, zSvr4_Disable_OptSelect0, (regex_t*)NULL }, };
4939
4940 /*
4941 * Fix Command Arguments for Svr4_Disable_Opt
4942 */
4943 static const char* apzSvr4_Disable_OptPatch[] = { "sed",
4944 "-e", "/#define.*__std_hdr_/d",
4945 (char*)NULL };
4946
4947 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4948 *
4949 * Description of Svr4_Getcwd fix
4950 */
4951 tSCC zSvr4_GetcwdName[] =
4952 "svr4_getcwd";
4953
4954 /*
4955 * File name selection pattern
4956 */
4957 tSCC zSvr4_GetcwdList[] =
4958 "|stdlib.h|unistd.h|prototypes.h|";
4959 /*
4960 * Machine/OS name selection pattern
4961 */
4962 #define apzSvr4_GetcwdMachs (const char**)NULL
4963
4964 /*
4965 * content selection pattern - do fix if pattern found
4966 */
4967 tSCC zSvr4_GetcwdSelect0[] =
4968 "getcwd\\(char \\*, int\\)";
4969
4970 #define SVR4_GETCWD_TEST_CT 1
4971 static tTestDesc aSvr4_GetcwdTests[] = {
4972 { TT_EGREP, zSvr4_GetcwdSelect0, (regex_t*)NULL }, };
4973
4974 /*
4975 * Fix Command Arguments for Svr4_Getcwd
4976 */
4977 static const char* apzSvr4_GetcwdPatch[] = {
4978 "format",
4979 "getcwd(char *, size_t)",
4980 (char*)NULL };
4981
4982 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4983 *
4984 * Description of Svr4_Krnl fix
4985 */
4986 tSCC zSvr4_KrnlName[] =
4987 "svr4_krnl";
4988
4989 /*
4990 * File name selection pattern
4991 */
4992 tSCC zSvr4_KrnlList[] =
4993 "|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|";
4994 /*
4995 * Machine/OS name selection pattern
4996 */
4997 tSCC* apzSvr4_KrnlMachs[] = {
4998 "*-*-sysv4*",
4999 "i?86-sequent-ptx*",
5000 (const char*)NULL };
5001
5002 /*
5003 * content bypass pattern - skip fix if pattern found
5004 */
5005 tSCC zSvr4_KrnlBypass0[] =
5006 "_KERNEL";
5007
5008 #define SVR4_KRNL_TEST_CT 1
5009 static tTestDesc aSvr4_KrnlTests[] = {
5010 { TT_NEGREP, zSvr4_KrnlBypass0, (regex_t*)NULL }, };
5011
5012 /*
5013 * Fix Command Arguments for Svr4_Krnl
5014 */
5015 static const char* apzSvr4_KrnlPatch[] = {
5016 "wrap",
5017 "#ifdef _KERNEL\n",
5018 "#endif /* _KERNEL */\n",
5019 (char*)NULL };
5020
5021 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5022 *
5023 * Description of Svr4_Profil fix
5024 */
5025 tSCC zSvr4_ProfilName[] =
5026 "svr4_profil";
5027
5028 /*
5029 * File name selection pattern
5030 */
5031 tSCC zSvr4_ProfilList[] =
5032 "|stdlib.h|unistd.h|";
5033 /*
5034 * Machine/OS name selection pattern
5035 */
5036 #define apzSvr4_ProfilMachs (const char**)NULL
5037
5038 /*
5039 * content selection pattern - do fix if pattern found
5040 */
5041 tSCC zSvr4_ProfilSelect0[] =
5042 "profil\\(unsigned short \\*, unsigned int, unsigned int, unsigned int\\)";
5043
5044 #define SVR4_PROFIL_TEST_CT 1
5045 static tTestDesc aSvr4_ProfilTests[] = {
5046 { TT_EGREP, zSvr4_ProfilSelect0, (regex_t*)NULL }, };
5047
5048 /*
5049 * Fix Command Arguments for Svr4_Profil
5050 */
5051 static const char* apzSvr4_ProfilPatch[] = {
5052 "format",
5053 "profil(unsigned short *, size_t, int, unsigned int)",
5054 (char*)NULL };
5055
5056 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5057 *
5058 * Description of Svr4_Sighandler_Type fix
5059 */
5060 tSCC zSvr4_Sighandler_TypeName[] =
5061 "svr4_sighandler_type";
5062
5063 /*
5064 * File name selection pattern
5065 */
5066 tSCC zSvr4_Sighandler_TypeList[] =
5067 "|sys/signal.h|";
5068 /*
5069 * Machine/OS name selection pattern
5070 */
5071 #define apzSvr4_Sighandler_TypeMachs (const char**)NULL
5072
5073 /*
5074 * content selection pattern - do fix if pattern found
5075 */
5076 tSCC zSvr4_Sighandler_TypeSelect0[] =
5077 "void *\\(\\*\\)\\(\\)";
5078
5079 #define SVR4_SIGHANDLER_TYPE_TEST_CT 1
5080 static tTestDesc aSvr4_Sighandler_TypeTests[] = {
5081 { TT_EGREP, zSvr4_Sighandler_TypeSelect0, (regex_t*)NULL }, };
5082
5083 /*
5084 * Fix Command Arguments for Svr4_Sighandler_Type
5085 */
5086 static const char* apzSvr4_Sighandler_TypePatch[] = {
5087 "format",
5088 "void (*)(int)",
5089 (char*)NULL };
5090
5091 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5092 *
5093 * Description of Svr4_Undeclared_Getrnge fix
5094 */
5095 tSCC zSvr4_Undeclared_GetrngeName[] =
5096 "svr4_undeclared_getrnge";
5097
5098 /*
5099 * File name selection pattern
5100 */
5101 tSCC zSvr4_Undeclared_GetrngeList[] =
5102 "|regexp.h|";
5103 /*
5104 * Machine/OS name selection pattern
5105 */
5106 #define apzSvr4_Undeclared_GetrngeMachs (const char**)NULL
5107
5108 /*
5109 * content selection pattern - do fix if pattern found
5110 */
5111 tSCC zSvr4_Undeclared_GetrngeSelect0[] =
5112 "getrnge";
5113
5114 /*
5115 * content bypass pattern - skip fix if pattern found
5116 */
5117 tSCC zSvr4_Undeclared_GetrngeBypass0[] =
5118 "static void getrnge";
5119
5120 #define SVR4_UNDECLARED_GETRNGE_TEST_CT 2
5121 static tTestDesc aSvr4_Undeclared_GetrngeTests[] = {
5122 { TT_NEGREP, zSvr4_Undeclared_GetrngeBypass0, (regex_t*)NULL },
5123 { TT_EGREP, zSvr4_Undeclared_GetrngeSelect0, (regex_t*)NULL }, };
5124
5125 /*
5126 * Fix Command Arguments for Svr4_Undeclared_Getrnge
5127 */
5128 static const char* apzSvr4_Undeclared_GetrngePatch[] = {
5129 "format",
5130 "%0\n\
5131 static int getrnge ();",
5132 "^static int[ \t]+size;",
5133 (char*)NULL };
5134
5135 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5136 *
5137 * Description of Sysv68_String fix
5138 */
5139 tSCC zSysv68_StringName[] =
5140 "sysv68_string";
5141
5142 /*
5143 * File name selection pattern
5144 */
5145 tSCC zSysv68_StringList[] =
5146 "|testing.h|string.h|";
5147 /*
5148 * Machine/OS name selection pattern
5149 */
5150 #define apzSysv68_StringMachs (const char**)NULL
5151 #define SYSV68_STRING_TEST_CT 0
5152 #define aSysv68_StringTests (tTestDesc*)NULL
5153
5154 /*
5155 * Fix Command Arguments for Sysv68_String
5156 */
5157 static const char* apzSysv68_StringPatch[] = { "sed",
5158 "-e", "s/extern[ \t]*int[ \t]*strlen();/extern unsigned int strlen();/",
5159 "-e", "s/extern[ \t]*int[ \t]*ffs[ \t]*(long);/extern int ffs(int);/",
5160 "-e", "s/strdup(char \\*s1);/strdup(const char *s1);/",
5161 "-e", "/^extern char$/N",
5162 "-e", "s/^extern char\\(\\n\t\\*memccpy(),\\)$/extern void\\1/",
5163 "-e", "/^extern int$/N",
5164 "-e", "s/^extern int\\(\\n\tstrlen(),\\)/extern size_t\\1/",
5165 "-e", "/^\tstrncmp(),$/N",
5166 "-e", "s/^\\(\tstrncmp()\\),\\n\\(\tstrlen(),\\)$/\\1;\\\n\
5167 extern unsigned int\\\n\
5168 \\2/",
5169 (char*)NULL };
5170
5171 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5172 *
5173 * Description of Sysz_Stdlib_For_Sun fix
5174 */
5175 tSCC zSysz_Stdlib_For_SunName[] =
5176 "sysz_stdlib_for_sun";
5177
5178 /*
5179 * File name selection pattern
5180 */
5181 tSCC zSysz_Stdlib_For_SunList[] =
5182 "|stdlib.h|";
5183 /*
5184 * Machine/OS name selection pattern
5185 */
5186 #define apzSysz_Stdlib_For_SunMachs (const char**)NULL
5187
5188 /*
5189 * content selection pattern - do fix if pattern found
5190 */
5191 tSCC zSysz_Stdlib_For_SunSelect0[] =
5192 "char[ \t]*\\*[ \t]*(calloc|malloc|realloc|bsearch)[ \t]*\\(";
5193
5194 #define SYSZ_STDLIB_FOR_SUN_TEST_CT 1
5195 static tTestDesc aSysz_Stdlib_For_SunTests[] = {
5196 { TT_EGREP, zSysz_Stdlib_For_SunSelect0, (regex_t*)NULL }, };
5197
5198 /*
5199 * Fix Command Arguments for Sysz_Stdlib_For_Sun
5200 */
5201 static const char* apzSysz_Stdlib_For_SunPatch[] = {
5202 "format",
5203 "void *\t%1(",
5204 (char*)NULL };
5205
5206 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5207 *
5208 * Description of Thread_Keyword fix
5209 */
5210 tSCC zThread_KeywordName[] =
5211 "thread_keyword";
5212
5213 /*
5214 * File name selection pattern
5215 */
5216 tSCC zThread_KeywordList[] =
5217 "|pthread.h|bits/sigthread.h|";
5218 /*
5219 * Machine/OS name selection pattern
5220 */
5221 #define apzThread_KeywordMachs (const char**)NULL
5222
5223 /*
5224 * content selection pattern - do fix if pattern found
5225 */
5226 tSCC zThread_KeywordSelect0[] =
5227 "([* ])__thread([,)])";
5228
5229 #define THREAD_KEYWORD_TEST_CT 1
5230 static tTestDesc aThread_KeywordTests[] = {
5231 { TT_EGREP, zThread_KeywordSelect0, (regex_t*)NULL }, };
5232
5233 /*
5234 * Fix Command Arguments for Thread_Keyword
5235 */
5236 static const char* apzThread_KeywordPatch[] = {
5237 "format",
5238 "%1__thr%2",
5239 (char*)NULL };
5240
5241 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5242 *
5243 * Description of Tinfo_Cplusplus fix
5244 */
5245 tSCC zTinfo_CplusplusName[] =
5246 "tinfo_cplusplus";
5247
5248 /*
5249 * File name selection pattern
5250 */
5251 tSCC zTinfo_CplusplusList[] =
5252 "|tinfo.h|";
5253 /*
5254 * Machine/OS name selection pattern
5255 */
5256 #define apzTinfo_CplusplusMachs (const char**)NULL
5257
5258 /*
5259 * content selection pattern - do fix if pattern found
5260 */
5261 tSCC zTinfo_CplusplusSelect0[] =
5262 "[ \t]_cplusplus";
5263
5264 #define TINFO_CPLUSPLUS_TEST_CT 1
5265 static tTestDesc aTinfo_CplusplusTests[] = {
5266 { TT_EGREP, zTinfo_CplusplusSelect0, (regex_t*)NULL }, };
5267
5268 /*
5269 * Fix Command Arguments for Tinfo_Cplusplus
5270 */
5271 static const char* apzTinfo_CplusplusPatch[] = {
5272 "format",
5273 " __cplusplus",
5274 (char*)NULL };
5275
5276 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5277 *
5278 * Description of Ultrix_Atexit_Param fix
5279 */
5280 tSCC zUltrix_Atexit_ParamName[] =
5281 "ultrix_atexit_param";
5282
5283 /*
5284 * File name selection pattern
5285 */
5286 tSCC zUltrix_Atexit_ParamList[] =
5287 "|stdlib.h|";
5288 /*
5289 * Machine/OS name selection pattern
5290 */
5291 #define apzUltrix_Atexit_ParamMachs (const char**)NULL
5292
5293 /*
5294 * content selection pattern - do fix if pattern found
5295 */
5296 tSCC zUltrix_Atexit_ParamSelect0[] =
5297 "atexit\\(.*\\(\\)";
5298
5299 #define ULTRIX_ATEXIT_PARAM_TEST_CT 1
5300 static tTestDesc aUltrix_Atexit_ParamTests[] = {
5301 { TT_EGREP, zUltrix_Atexit_ParamSelect0, (regex_t*)NULL }, };
5302
5303 /*
5304 * Fix Command Arguments for Ultrix_Atexit_Param
5305 */
5306 static const char* apzUltrix_Atexit_ParamPatch[] = {
5307 "format",
5308 "atexit( void (*__func)( void )",
5309 (char*)NULL };
5310
5311 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5312 *
5313 * Description of Ultrix_Atof_Param fix
5314 */
5315 tSCC zUltrix_Atof_ParamName[] =
5316 "ultrix_atof_param";
5317
5318 /*
5319 * File name selection pattern
5320 */
5321 tSCC zUltrix_Atof_ParamList[] =
5322 "|math.h|";
5323 /*
5324 * Machine/OS name selection pattern
5325 */
5326 #define apzUltrix_Atof_ParamMachs (const char**)NULL
5327
5328 /*
5329 * content selection pattern - do fix if pattern found
5330 */
5331 tSCC zUltrix_Atof_ParamSelect0[] =
5332 "atof\\([ \t]*char";
5333
5334 #define ULTRIX_ATOF_PARAM_TEST_CT 1
5335 static tTestDesc aUltrix_Atof_ParamTests[] = {
5336 { TT_EGREP, zUltrix_Atof_ParamSelect0, (regex_t*)NULL }, };
5337
5338 /*
5339 * Fix Command Arguments for Ultrix_Atof_Param
5340 */
5341 static const char* apzUltrix_Atof_ParamPatch[] = {
5342 "format",
5343 "atof(const char",
5344 (char*)NULL };
5345
5346 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5347 *
5348 * Description of Ultrix_Const fix
5349 */
5350 tSCC zUltrix_ConstName[] =
5351 "ultrix_const";
5352
5353 /*
5354 * File name selection pattern
5355 */
5356 tSCC zUltrix_ConstList[] =
5357 "|stdio.h|";
5358 /*
5359 * Machine/OS name selection pattern
5360 */
5361 #define apzUltrix_ConstMachs (const char**)NULL
5362
5363 /*
5364 * content selection pattern - do fix if pattern found
5365 */
5366 tSCC zUltrix_ConstSelect0[] =
5367 "perror\\( char \\*";
5368
5369 #define ULTRIX_CONST_TEST_CT 1
5370 static tTestDesc aUltrix_ConstTests[] = {
5371 { TT_EGREP, zUltrix_ConstSelect0, (regex_t*)NULL }, };
5372
5373 /*
5374 * Fix Command Arguments for Ultrix_Const
5375 */
5376 static const char* apzUltrix_ConstPatch[] = {
5377 "format",
5378 "%1 const %3 *__",
5379 "([ \t*](perror|fputs|fwrite|scanf|fscanf)\\(.*)[ \t]+(char|void) \\*__",
5380 (char*)NULL };
5381
5382 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5383 *
5384 * Description of Ultrix_Const2 fix
5385 */
5386 tSCC zUltrix_Const2Name[] =
5387 "ultrix_const2";
5388
5389 /*
5390 * File name selection pattern
5391 */
5392 tSCC zUltrix_Const2List[] =
5393 "|stdio.h|";
5394 /*
5395 * Machine/OS name selection pattern
5396 */
5397 #define apzUltrix_Const2Machs (const char**)NULL
5398
5399 /*
5400 * content selection pattern - do fix if pattern found
5401 */
5402 tSCC zUltrix_Const2Select0[] =
5403 "\\*fopen\\( char \\*";
5404
5405 #define ULTRIX_CONST2_TEST_CT 1
5406 static tTestDesc aUltrix_Const2Tests[] = {
5407 { TT_EGREP, zUltrix_Const2Select0, (regex_t*)NULL }, };
5408
5409 /*
5410 * Fix Command Arguments for Ultrix_Const2
5411 */
5412 static const char* apzUltrix_Const2Patch[] = {
5413 "format",
5414 "%1( const char *%3, const char *",
5415 "([ \t*](fopen|sscanf|popen|tempnam))\\([ \t]*char[ \t]*\\*([^,]*),[ \t]*char[ \t]*\\*[ \t]*",
5416 (char*)NULL };
5417
5418 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5419 *
5420 * Description of Ultrix_Fix_Fixproto fix
5421 */
5422 tSCC zUltrix_Fix_FixprotoName[] =
5423 "ultrix_fix_fixproto";
5424
5425 /*
5426 * File name selection pattern
5427 */
5428 tSCC zUltrix_Fix_FixprotoList[] =
5429 "|sys/utsname.h|";
5430 /*
5431 * Machine/OS name selection pattern
5432 */
5433 #define apzUltrix_Fix_FixprotoMachs (const char**)NULL
5434
5435 /*
5436 * content selection pattern - do fix if pattern found
5437 */
5438 tSCC zUltrix_Fix_FixprotoSelect0[] =
5439 "ULTRIX";
5440
5441 #define ULTRIX_FIX_FIXPROTO_TEST_CT 1
5442 static tTestDesc aUltrix_Fix_FixprotoTests[] = {
5443 { TT_EGREP, zUltrix_Fix_FixprotoSelect0, (regex_t*)NULL }, };
5444
5445 /*
5446 * Fix Command Arguments for Ultrix_Fix_Fixproto
5447 */
5448 static const char* apzUltrix_Fix_FixprotoPatch[] = {
5449 "format",
5450 "struct utsname;\n\
5451 %0",
5452 "^[ \t]*extern[ \t]*int[ \t]*uname\\(\\);",
5453 (char*)NULL };
5454
5455 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5456 *
5457 * Description of Ultrix_Ifdef fix
5458 */
5459 tSCC zUltrix_IfdefName[] =
5460 "ultrix_ifdef";
5461
5462 /*
5463 * File name selection pattern
5464 */
5465 tSCC zUltrix_IfdefList[] =
5466 "|sys/file.h|";
5467 /*
5468 * Machine/OS name selection pattern
5469 */
5470 #define apzUltrix_IfdefMachs (const char**)NULL
5471
5472 /*
5473 * content selection pattern - do fix if pattern found
5474 */
5475 tSCC zUltrix_IfdefSelect0[] =
5476 "^#ifdef KERNEL[ \t]+&&";
5477
5478 #define ULTRIX_IFDEF_TEST_CT 1
5479 static tTestDesc aUltrix_IfdefTests[] = {
5480 { TT_EGREP, zUltrix_IfdefSelect0, (regex_t*)NULL }, };
5481
5482 /*
5483 * Fix Command Arguments for Ultrix_Ifdef
5484 */
5485 static const char* apzUltrix_IfdefPatch[] = {
5486 "format",
5487 "#if defined(KERNEL) &&",
5488 (char*)NULL };
5489
5490 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5491 *
5492 * Description of Ultrix_Math_Ifdef fix
5493 */
5494 tSCC zUltrix_Math_IfdefName[] =
5495 "ultrix_math_ifdef";
5496
5497 /*
5498 * File name selection pattern
5499 */
5500 tSCC zUltrix_Math_IfdefList[] =
5501 "|sys/limits.h|float.h|math.h|";
5502 /*
5503 * Machine/OS name selection pattern
5504 */
5505 #define apzUltrix_Math_IfdefMachs (const char**)NULL
5506
5507 /*
5508 * content selection pattern - do fix if pattern found
5509 */
5510 tSCC zUltrix_Math_IfdefSelect0[] =
5511 "^(#if.*)\\|\\|[ \t]+CC\\$[a-z]+";
5512
5513 #define ULTRIX_MATH_IFDEF_TEST_CT 1
5514 static tTestDesc aUltrix_Math_IfdefTests[] = {
5515 { TT_EGREP, zUltrix_Math_IfdefSelect0, (regex_t*)NULL }, };
5516
5517 /*
5518 * Fix Command Arguments for Ultrix_Math_Ifdef
5519 */
5520 static const char* apzUltrix_Math_IfdefPatch[] = {
5521 "format",
5522 "%1",
5523 (char*)NULL };
5524
5525 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5526 *
5527 * Description of Ultrix_Nested_Ioctl fix
5528 */
5529 tSCC zUltrix_Nested_IoctlName[] =
5530 "ultrix_nested_ioctl";
5531
5532 /*
5533 * File name selection pattern
5534 */
5535 tSCC zUltrix_Nested_IoctlList[] =
5536 "|sys/ioctl.h|";
5537 /*
5538 * Machine/OS name selection pattern
5539 */
5540 #define apzUltrix_Nested_IoctlMachs (const char**)NULL
5541
5542 /*
5543 * content selection pattern - do fix if pattern found
5544 */
5545 tSCC zUltrix_Nested_IoctlSelect0[] =
5546 "^/\\* #define SIOCSCREEN";
5547
5548 #define ULTRIX_NESTED_IOCTL_TEST_CT 1
5549 static tTestDesc aUltrix_Nested_IoctlTests[] = {
5550 { TT_EGREP, zUltrix_Nested_IoctlSelect0, (regex_t*)NULL }, };
5551
5552 /*
5553 * Fix Command Arguments for Ultrix_Nested_Ioctl
5554 */
5555 static const char* apzUltrix_Nested_IoctlPatch[] = { "sed",
5556 "-e", "/^\\/\\* #define SIOCSCREEN/s@/\\* screend@*//* screend@",
5557 (char*)NULL };
5558
5559 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5560 *
5561 * Description of Ultrix_Nested_Svc fix
5562 */
5563 tSCC zUltrix_Nested_SvcName[] =
5564 "ultrix_nested_svc";
5565
5566 /*
5567 * File name selection pattern
5568 */
5569 tSCC zUltrix_Nested_SvcList[] =
5570 "|rpc/svc.h|";
5571 /*
5572 * Machine/OS name selection pattern
5573 */
5574 #define apzUltrix_Nested_SvcMachs (const char**)NULL
5575
5576 /*
5577 * content selection pattern - do fix if pattern found
5578 */
5579 tSCC zUltrix_Nested_SvcSelect0[] =
5580 "^ \\*[ \t]*int protocol; */\\*";
5581
5582 #define ULTRIX_NESTED_SVC_TEST_CT 1
5583 static tTestDesc aUltrix_Nested_SvcTests[] = {
5584 { TT_EGREP, zUltrix_Nested_SvcSelect0, (regex_t*)NULL }, };
5585
5586 /*
5587 * Fix Command Arguments for Ultrix_Nested_Svc
5588 */
5589 static const char* apzUltrix_Nested_SvcPatch[] = { "sed",
5590 "-e", "s@^\\( \\*\tint protocol; \\)/\\*@\\1*/ /*@",
5591 (char*)NULL };
5592
5593 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5594 *
5595 * Description of Ultrix_Stat fix
5596 */
5597 tSCC zUltrix_StatName[] =
5598 "ultrix_stat";
5599
5600 /*
5601 * File name selection pattern
5602 */
5603 tSCC zUltrix_StatList[] =
5604 "|sys/stat.h|";
5605 /*
5606 * Machine/OS name selection pattern
5607 */
5608 #define apzUltrix_StatMachs (const char**)NULL
5609
5610 /*
5611 * content selection pattern - do fix if pattern found
5612 */
5613 tSCC zUltrix_StatSelect0[] =
5614 "@\\(#\\)stat\\.h.*6\\.1.*\\(ULTRIX\\)";
5615
5616 #define ULTRIX_STAT_TEST_CT 1
5617 static tTestDesc aUltrix_StatTests[] = {
5618 { TT_EGREP, zUltrix_StatSelect0, (regex_t*)NULL }, };
5619
5620 /*
5621 * Fix Command Arguments for Ultrix_Stat
5622 */
5623 static const char* apzUltrix_StatPatch[] = { "sed",
5624 "-e", "/^#define[ \t]S_IFPORT[ \t]*S_IFIFO$/a\\\n\
5625 \\\n\
5626 /* macro to test for symbolic link */\\\n\
5627 #define S_ISLNK(mode) (((mode) & S_IFMT) == S_IFLNK)\\\n\n",
5628 "-e", "/^[ \t]*fstat(),$/a\\\n\
5629 \tlstat(),\n",
5630 (char*)NULL };
5631
5632 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5633 *
5634 * Description of Ultrix_Static fix
5635 */
5636 tSCC zUltrix_StaticName[] =
5637 "ultrix_static";
5638
5639 /*
5640 * File name selection pattern
5641 */
5642 tSCC zUltrix_StaticList[] =
5643 "|machine/cpu.h|";
5644 /*
5645 * Machine/OS name selection pattern
5646 */
5647 #define apzUltrix_StaticMachs (const char**)NULL
5648
5649 /*
5650 * content selection pattern - do fix if pattern found
5651 */
5652 tSCC zUltrix_StaticSelect0[] =
5653 "#include \"r[34]_cpu";
5654
5655 #define ULTRIX_STATIC_TEST_CT 1
5656 static tTestDesc aUltrix_StaticTests[] = {
5657 { TT_EGREP, zUltrix_StaticSelect0, (regex_t*)NULL }, };
5658
5659 /*
5660 * Fix Command Arguments for Ultrix_Static
5661 */
5662 static const char* apzUltrix_StaticPatch[] = { "sed",
5663 "-e", "s/^static struct tlb_pid_state/struct tlb_pid_state/",
5664 "-e", "s/^#include \"r3_cpu\\.h\"$/#include <machine\\/r3_cpu\\.h>/",
5665 "-e", "s/^#include \"r4_cpu\\.h\"$/#include <machine\\/r4_cpu\\.h>/",
5666 (char*)NULL };
5667
5668 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5669 *
5670 * Description of Ultrix_Strings fix
5671 */
5672 tSCC zUltrix_StringsName[] =
5673 "ultrix_strings";
5674
5675 /*
5676 * File name selection pattern
5677 */
5678 tSCC zUltrix_StringsList[] =
5679 "|strings.h|";
5680 /*
5681 * Machine/OS name selection pattern
5682 */
5683 #define apzUltrix_StringsMachs (const char**)NULL
5684
5685 /*
5686 * content selection pattern - do fix if pattern found
5687 */
5688 tSCC zUltrix_StringsSelect0[] =
5689 "@\\(#\\)strings\\.h.*6\\.1.*\\(ULTRIX\\)";
5690
5691 #define ULTRIX_STRINGS_TEST_CT 1
5692 static tTestDesc aUltrix_StringsTests[] = {
5693 { TT_EGREP, zUltrix_StringsSelect0, (regex_t*)NULL }, };
5694
5695 /*
5696 * Fix Command Arguments for Ultrix_Strings
5697 */
5698 static const char* apzUltrix_StringsPatch[] = {
5699 "wrap",
5700 (char*)NULL };
5701
5702 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5703 *
5704 * Description of Undefine_Null fix
5705 */
5706 tSCC zUndefine_NullName[] =
5707 "undefine_null";
5708
5709 /*
5710 * File name selection pattern
5711 */
5712 #define zUndefine_NullList (char*)NULL
5713 /*
5714 * Machine/OS name selection pattern
5715 */
5716 #define apzUndefine_NullMachs (const char**)NULL
5717
5718 /*
5719 * content selection pattern - do fix if pattern found
5720 */
5721 tSCC zUndefine_NullSelect0[] =
5722 "^#[ \t]*define[ \t]+NULL[ \t]";
5723
5724 /*
5725 * content bypass pattern - skip fix if pattern found
5726 */
5727 tSCC zUndefine_NullBypass0[] =
5728 "#[ \t]*(ifn|un)def[ \t]+NULL($|[ \t\r])";
5729
5730 #define UNDEFINE_NULL_TEST_CT 2
5731 static tTestDesc aUndefine_NullTests[] = {
5732 { TT_NEGREP, zUndefine_NullBypass0, (regex_t*)NULL },
5733 { TT_EGREP, zUndefine_NullSelect0, (regex_t*)NULL }, };
5734
5735 /*
5736 * Fix Command Arguments for Undefine_Null
5737 */
5738 static const char* apzUndefine_NullPatch[] = {
5739 "format",
5740 "#ifndef NULL\n\
5741 #define NULL%1\n\
5742 #endif\n",
5743 "^#[ \t]*define[ \t]+NULL([^\r\n\
5744 ]+)[\r]*\n",
5745 (char*)NULL };
5746
5747 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5748 *
5749 * Description of Unicosmk_Restrict fix
5750 */
5751 tSCC zUnicosmk_RestrictName[] =
5752 "unicosmk_restrict";
5753
5754 /*
5755 * File name selection pattern
5756 */
5757 tSCC zUnicosmk_RestrictList[] =
5758 "|stdio.h|stdlib.h|wchar.h|";
5759 /*
5760 * Machine/OS name selection pattern
5761 */
5762 tSCC* apzUnicosmk_RestrictMachs[] = {
5763 "*-*-unicosmk*",
5764 (const char*)NULL };
5765
5766 /*
5767 * content selection pattern - do fix if pattern found
5768 */
5769 tSCC zUnicosmk_RestrictSelect0[] =
5770 "(\\*[ \t]*)restrict([ \t]+)";
5771
5772 #define UNICOSMK_RESTRICT_TEST_CT 1
5773 static tTestDesc aUnicosmk_RestrictTests[] = {
5774 { TT_EGREP, zUnicosmk_RestrictSelect0, (regex_t*)NULL }, };
5775
5776 /*
5777 * Fix Command Arguments for Unicosmk_Restrict
5778 */
5779 static const char* apzUnicosmk_RestrictPatch[] = {
5780 "format",
5781 "%1__restrict__%2",
5782 (char*)NULL };
5783
5784 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5785 *
5786 * Description of Uw7_Byteorder_Fix fix
5787 */
5788 tSCC zUw7_Byteorder_FixName[] =
5789 "uw7_byteorder_fix";
5790
5791 /*
5792 * File name selection pattern
5793 */
5794 tSCC zUw7_Byteorder_FixList[] =
5795 "|arpa/inet.h|";
5796 /*
5797 * Machine/OS name selection pattern
5798 */
5799 tSCC* apzUw7_Byteorder_FixMachs[] = {
5800 "*-*-sysv4*",
5801 "i?86-*-sysv5*",
5802 "i?86-*-udk*",
5803 "i?86-*-solaris2.[0-4]",
5804 "powerpcle-*-solaris2.[0-4]",
5805 "sparc-*-solaris2.[0-4]",
5806 (const char*)NULL };
5807
5808 /*
5809 * content selection pattern - do fix if pattern found
5810 */
5811 tSCC zUw7_Byteorder_FixSelect0[] =
5812 "in_port_t";
5813
5814 /*
5815 * perform the 'test' shell command - do fix on success
5816 */
5817 tSCC zUw7_Byteorder_FixTest0[] =
5818 "-f sys/byteorder.h";
5819
5820 #define UW7_BYTEORDER_FIX_TEST_CT 2
5821 static tTestDesc aUw7_Byteorder_FixTests[] = {
5822 { TT_TEST, zUw7_Byteorder_FixTest0, 0 /* unused */ },
5823 { TT_EGREP, zUw7_Byteorder_FixSelect0, (regex_t*)NULL }, };
5824
5825 /*
5826 * Fix Command Arguments for Uw7_Byteorder_Fix
5827 */
5828 static const char* apzUw7_Byteorder_FixPatch[] = {
5829 "format",
5830 "",
5831 "^extern.*[ \t](htons|ntohs).*\\(in_port_t\\).*;",
5832 (char*)NULL };
5833
5834 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5835 *
5836 * Description of Va_I960_Macro fix
5837 */
5838 tSCC zVa_I960_MacroName[] =
5839 "va_i960_macro";
5840
5841 /*
5842 * File name selection pattern
5843 */
5844 tSCC zVa_I960_MacroList[] =
5845 "|arch/i960/archI960.h|";
5846 /*
5847 * Machine/OS name selection pattern
5848 */
5849 #define apzVa_I960_MacroMachs (const char**)NULL
5850
5851 /*
5852 * content selection pattern - do fix if pattern found
5853 */
5854 tSCC zVa_I960_MacroSelect0[] =
5855 "__(vsiz|vali|vpad|alignof__)";
5856
5857 #define VA_I960_MACRO_TEST_CT 1
5858 static tTestDesc aVa_I960_MacroTests[] = {
5859 { TT_EGREP, zVa_I960_MacroSelect0, (regex_t*)NULL }, };
5860
5861 /*
5862 * Fix Command Arguments for Va_I960_Macro
5863 */
5864 static const char* apzVa_I960_MacroPatch[] = {
5865 "format",
5866 "__vx%1",
5867 (char*)NULL };
5868
5869 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5870 *
5871 * Description of Void_Null fix
5872 */
5873 tSCC zVoid_NullName[] =
5874 "void_null";
5875
5876 /*
5877 * File name selection pattern
5878 */
5879 tSCC zVoid_NullList[] =
5880 "|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|";
5881 /*
5882 * Machine/OS name selection pattern
5883 */
5884 #define apzVoid_NullMachs (const char**)NULL
5885
5886 /*
5887 * content selection pattern - do fix if pattern found
5888 */
5889 tSCC zVoid_NullSelect0[] =
5890 "^#[ \t]*define[ \t]+NULL[ \t]+\\(\\(void[ \t]*\\*\\)0\\)";
5891
5892 #define VOID_NULL_TEST_CT 1
5893 static tTestDesc aVoid_NullTests[] = {
5894 { TT_EGREP, zVoid_NullSelect0, (regex_t*)NULL }, };
5895
5896 /*
5897 * Fix Command Arguments for Void_Null
5898 */
5899 static const char* apzVoid_NullPatch[] = {
5900 "format",
5901 "#define NULL 0",
5902 (char*)NULL };
5903
5904 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5905 *
5906 * Description of Vxworks_Gcc_Problem fix
5907 */
5908 tSCC zVxworks_Gcc_ProblemName[] =
5909 "vxworks_gcc_problem";
5910
5911 /*
5912 * File name selection pattern
5913 */
5914 tSCC zVxworks_Gcc_ProblemList[] =
5915 "|types/vxTypesBase.h|";
5916 /*
5917 * Machine/OS name selection pattern
5918 */
5919 #define apzVxworks_Gcc_ProblemMachs (const char**)NULL
5920
5921 /*
5922 * content selection pattern - do fix if pattern found
5923 */
5924 tSCC zVxworks_Gcc_ProblemSelect0[] =
5925 "__GNUC_TYPEOF_FEATURE_BROKEN_USE_DEFAULT_UNTIL_FIXED__";
5926
5927 #define VXWORKS_GCC_PROBLEM_TEST_CT 1
5928 static tTestDesc aVxworks_Gcc_ProblemTests[] = {
5929 { TT_EGREP, zVxworks_Gcc_ProblemSelect0, (regex_t*)NULL }, };
5930
5931 /*
5932 * Fix Command Arguments for Vxworks_Gcc_Problem
5933 */
5934 static const char* apzVxworks_Gcc_ProblemPatch[] = { "sed",
5935 "-e", "s/#ifdef __GNUC_TYPEOF_FEATURE_BROKEN_USE_DEFAULT_UNTIL_FIXED__/#if 1/",
5936 "-e", "/[ \t]size_t/i\\\n\
5937 #ifndef _GCC_SIZE_T\\\n\
5938 #define _GCC_SIZE_T\n",
5939 "-e", "/[ \t]size_t/a\\\n\
5940 #endif\n",
5941 "-e", "/[ \t]ptrdiff_t/i\\\n\
5942 #ifndef _GCC_PTRDIFF_T\\\n\
5943 #define _GCC_PTRDIFF_T\n",
5944 "-e", "/[ \t]ptrdiff_t/a\\\n\
5945 #endif\n",
5946 "-e", "/[ \t]wchar_t/i\\\n\
5947 #ifndef _GCC_WCHAR_T\\\n\
5948 #define _GCC_WCHAR_T\n",
5949 "-e", "/[ \t]wchar_t/a\\\n\
5950 #endif\n",
5951 (char*)NULL };
5952
5953 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5954 *
5955 * Description of Vxworks_Needs_Vxtypes fix
5956 */
5957 tSCC zVxworks_Needs_VxtypesName[] =
5958 "vxworks_needs_vxtypes";
5959
5960 /*
5961 * File name selection pattern
5962 */
5963 tSCC zVxworks_Needs_VxtypesList[] =
5964 "|time.h|";
5965 /*
5966 * Machine/OS name selection pattern
5967 */
5968 #define apzVxworks_Needs_VxtypesMachs (const char**)NULL
5969
5970 /*
5971 * content selection pattern - do fix if pattern found
5972 */
5973 tSCC zVxworks_Needs_VxtypesSelect0[] =
5974 "uint_t([ \t]+_clocks_per_sec)";
5975
5976 #define VXWORKS_NEEDS_VXTYPES_TEST_CT 1
5977 static tTestDesc aVxworks_Needs_VxtypesTests[] = {
5978 { TT_EGREP, zVxworks_Needs_VxtypesSelect0, (regex_t*)NULL }, };
5979
5980 /*
5981 * Fix Command Arguments for Vxworks_Needs_Vxtypes
5982 */
5983 static const char* apzVxworks_Needs_VxtypesPatch[] = {
5984 "format",
5985 "unsigned int%1",
5986 (char*)NULL };
5987
5988 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5989 *
5990 * Description of Vxworks_Needs_Vxworks fix
5991 */
5992 tSCC zVxworks_Needs_VxworksName[] =
5993 "vxworks_needs_vxworks";
5994
5995 /*
5996 * File name selection pattern
5997 */
5998 tSCC zVxworks_Needs_VxworksList[] =
5999 "|sys/stat.h|";
6000 /*
6001 * Machine/OS name selection pattern
6002 */
6003 #define apzVxworks_Needs_VxworksMachs (const char**)NULL
6004
6005 /*
6006 * content selection pattern - do fix if pattern found
6007 */
6008 tSCC zVxworks_Needs_VxworksSelect0[] =
6009 "#[ \t]define[ \t]+__INCstath";
6010
6011 /*
6012 * perform the 'test' shell command - do fix on success
6013 */
6014 tSCC zVxworks_Needs_VxworksTest0[] =
6015 " -r types/vxTypesOld.h";
6016 tSCC zVxworks_Needs_VxworksTest1[] =
6017 " -n \"`egrep '#include' $file`\"";
6018 tSCC zVxworks_Needs_VxworksTest2[] =
6019 " -n \"`egrep ULONG $file`\"";
6020
6021 #define VXWORKS_NEEDS_VXWORKS_TEST_CT 4
6022 static tTestDesc aVxworks_Needs_VxworksTests[] = {
6023 { TT_TEST, zVxworks_Needs_VxworksTest0, 0 /* unused */ },
6024 { TT_TEST, zVxworks_Needs_VxworksTest1, 0 /* unused */ },
6025 { TT_TEST, zVxworks_Needs_VxworksTest2, 0 /* unused */ },
6026 { TT_EGREP, zVxworks_Needs_VxworksSelect0, (regex_t*)NULL }, };
6027
6028 /*
6029 * Fix Command Arguments for Vxworks_Needs_Vxworks
6030 */
6031 static const char* apzVxworks_Needs_VxworksPatch[] = { "sed",
6032 "-e", "/#[ \t]define[ \t][ \t]*__INCstath/a\\\n\
6033 #include <types/vxTypesOld.h>\n",
6034 (char*)NULL };
6035
6036 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6037 *
6038 * Description of Vxworks_Time fix
6039 */
6040 tSCC zVxworks_TimeName[] =
6041 "vxworks_time";
6042
6043 /*
6044 * File name selection pattern
6045 */
6046 tSCC zVxworks_TimeList[] =
6047 "|time.h|";
6048 /*
6049 * Machine/OS name selection pattern
6050 */
6051 #define apzVxworks_TimeMachs (const char**)NULL
6052
6053 /*
6054 * content selection pattern - do fix if pattern found
6055 */
6056 tSCC zVxworks_TimeSelect0[] =
6057 "#[ \t]*define[ \t]+VOIDFUNCPTR[ \t].*";
6058
6059 /*
6060 * perform the 'test' shell command - do fix on success
6061 */
6062 tSCC zVxworks_TimeTest0[] =
6063 " -r vxWorks.h";
6064
6065 #define VXWORKS_TIME_TEST_CT 2
6066 static tTestDesc aVxworks_TimeTests[] = {
6067 { TT_TEST, zVxworks_TimeTest0, 0 /* unused */ },
6068 { TT_EGREP, zVxworks_TimeSelect0, (regex_t*)NULL }, };
6069
6070 /*
6071 * Fix Command Arguments for Vxworks_Time
6072 */
6073 static const char* apzVxworks_TimePatch[] = {
6074 "format",
6075 "#ifndef __gcc_VOIDFUNCPTR_defined\n\
6076 #ifdef __cplusplus\n\
6077 typedef void (*__gcc_VOIDFUNCPTR) (...);\n\
6078 #else\n\
6079 typedef void (*__gcc_VOIDFUNCPTR) ();\n\
6080 #endif\n\
6081 #define __gcc_VOIDFUNCPTR_defined\n\
6082 #endif\n\
6083 #define VOIDFUNCPTR __gcc_VOIDFUNCPTR",
6084 (char*)NULL };
6085
6086 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6087 *
6088 * Description of Windiss_Math1 fix
6089 */
6090 tSCC zWindiss_Math1Name[] =
6091 "windiss_math1";
6092
6093 /*
6094 * File name selection pattern
6095 */
6096 tSCC zWindiss_Math1List[] =
6097 "|math.h|";
6098 /*
6099 * Machine/OS name selection pattern
6100 */
6101 tSCC* apzWindiss_Math1Machs[] = {
6102 "*-*-windiss",
6103 (const char*)NULL };
6104 #define WINDISS_MATH1_TEST_CT 0
6105 #define aWindiss_Math1Tests (tTestDesc*)NULL
6106
6107 /*
6108 * Fix Command Arguments for Windiss_Math1
6109 */
6110 static const char* apzWindiss_Math1Patch[] = { "sed",
6111 "-e", "s|inline long double cosl.*|#ifndef __GNUC__|",
6112 (char*)NULL };
6113
6114 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6115 *
6116 * Description of Windiss_Math2 fix
6117 */
6118 tSCC zWindiss_Math2Name[] =
6119 "windiss_math2";
6120
6121 /*
6122 * File name selection pattern
6123 */
6124 tSCC zWindiss_Math2List[] =
6125 "|math.h|";
6126 /*
6127 * Machine/OS name selection pattern
6128 */
6129 tSCC* apzWindiss_Math2Machs[] = {
6130 "*-*-windiss",
6131 (const char*)NULL };
6132 #define WINDISS_MATH2_TEST_CT 0
6133 #define aWindiss_Math2Tests (tTestDesc*)NULL
6134
6135 /*
6136 * Fix Command Arguments for Windiss_Math2
6137 */
6138 static const char* apzWindiss_Math2Patch[] = { "sed",
6139 "-e", "s|/\\* long double declarations \\*/|#endif /* __GNUC__ */|",
6140 (char*)NULL };
6141
6142 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6143 *
6144 * Description of Windiss_Valist fix
6145 */
6146 tSCC zWindiss_ValistName[] =
6147 "windiss_valist";
6148
6149 /*
6150 * File name selection pattern
6151 */
6152 #define zWindiss_ValistList (char*)NULL
6153 /*
6154 * Machine/OS name selection pattern
6155 */
6156 tSCC* apzWindiss_ValistMachs[] = {
6157 "*-*-windiss",
6158 (const char*)NULL };
6159
6160 /*
6161 * content selection pattern - do fix if pattern found
6162 */
6163 tSCC zWindiss_ValistSelect0[] =
6164 "(#include.*)diab/va_list.h";
6165
6166 #define WINDISS_VALIST_TEST_CT 1
6167 static tTestDesc aWindiss_ValistTests[] = {
6168 { TT_EGREP, zWindiss_ValistSelect0, (regex_t*)NULL }, };
6169
6170 /*
6171 * Fix Command Arguments for Windiss_Valist
6172 */
6173 static const char* apzWindiss_ValistPatch[] = { "sed",
6174 "-e", "s|diab/va_list.h|stdarg.h|",
6175 (char*)NULL };
6176
6177 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6178 *
6179 * Description of X11_Class fix
6180 */
6181 tSCC zX11_ClassName[] =
6182 "x11_class";
6183
6184 /*
6185 * File name selection pattern
6186 */
6187 tSCC zX11_ClassList[] =
6188 "|X11/ShellP.h|";
6189 /*
6190 * Machine/OS name selection pattern
6191 */
6192 #define apzX11_ClassMachs (const char**)NULL
6193
6194 /*
6195 * content selection pattern - do fix if pattern found
6196 */
6197 tSCC zX11_ClassSelect0[] =
6198 "^([ \t]*char \\*)class;(.*)";
6199
6200 /*
6201 * content bypass pattern - skip fix if pattern found
6202 */
6203 tSCC zX11_ClassBypass0[] =
6204 "__cplusplus";
6205
6206 #define X11_CLASS_TEST_CT 2
6207 static tTestDesc aX11_ClassTests[] = {
6208 { TT_NEGREP, zX11_ClassBypass0, (regex_t*)NULL },
6209 { TT_EGREP, zX11_ClassSelect0, (regex_t*)NULL }, };
6210
6211 /*
6212 * Fix Command Arguments for X11_Class
6213 */
6214 static const char* apzX11_ClassPatch[] = {
6215 "format",
6216 "#ifdef __cplusplus\n\
6217 %1c_class;%2\n\
6218 #else\n\
6219 %1class;%2\n\
6220 #endif",
6221 (char*)NULL };
6222
6223 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6224 *
6225 * Description of X11_Class_Usage fix
6226 */
6227 tSCC zX11_Class_UsageName[] =
6228 "x11_class_usage";
6229
6230 /*
6231 * File name selection pattern
6232 */
6233 tSCC zX11_Class_UsageList[] =
6234 "|Xm/BaseClassI.h|";
6235 /*
6236 * Machine/OS name selection pattern
6237 */
6238 #define apzX11_Class_UsageMachs (const char**)NULL
6239
6240 /*
6241 * content selection pattern - do fix if pattern found
6242 */
6243 tSCC zX11_Class_UsageSelect0[] =
6244 " class\\)";
6245
6246 /*
6247 * content bypass pattern - skip fix if pattern found
6248 */
6249 tSCC zX11_Class_UsageBypass0[] =
6250 "__cplusplus";
6251
6252 #define X11_CLASS_USAGE_TEST_CT 2
6253 static tTestDesc aX11_Class_UsageTests[] = {
6254 { TT_NEGREP, zX11_Class_UsageBypass0, (regex_t*)NULL },
6255 { TT_EGREP, zX11_Class_UsageSelect0, (regex_t*)NULL }, };
6256
6257 /*
6258 * Fix Command Arguments for X11_Class_Usage
6259 */
6260 static const char* apzX11_Class_UsagePatch[] = {
6261 "format",
6262 " c_class)",
6263 (char*)NULL };
6264
6265 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6266 *
6267 * Description of X11_New fix
6268 */
6269 tSCC zX11_NewName[] =
6270 "x11_new";
6271
6272 /*
6273 * File name selection pattern
6274 */
6275 tSCC zX11_NewList[] =
6276 "|Xm/Traversal.h|";
6277 /*
6278 * Machine/OS name selection pattern
6279 */
6280 #define apzX11_NewMachs (const char**)NULL
6281
6282 /*
6283 * content bypass pattern - skip fix if pattern found
6284 */
6285 tSCC zX11_NewBypass0[] =
6286 "__cplusplus";
6287
6288 #define X11_NEW_TEST_CT 1
6289 static tTestDesc aX11_NewTests[] = {
6290 { TT_NEGREP, zX11_NewBypass0, (regex_t*)NULL }, };
6291
6292 /*
6293 * Fix Command Arguments for X11_New
6294 */
6295 static const char* apzX11_NewPatch[] = { "sed",
6296 "-e", "/Widget\told, new;/i\\\n\
6297 #ifdef __cplusplus\\\n\
6298 \tWidget\told, c_new;\\\n\
6299 #else\n",
6300 "-e", "/Widget\told, new;/a\\\n\
6301 #endif\n",
6302 "-e", "s/Widget new,/Widget c_new,/g",
6303 (char*)NULL };
6304
6305 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6306 *
6307 * Description of X11_Sprintf fix
6308 */
6309 tSCC zX11_SprintfName[] =
6310 "x11_sprintf";
6311
6312 /*
6313 * File name selection pattern
6314 */
6315 tSCC zX11_SprintfList[] =
6316 "|X11/Xmu.h|X11/Xmu/Xmu.h|";
6317 /*
6318 * Machine/OS name selection pattern
6319 */
6320 #define apzX11_SprintfMachs (const char**)NULL
6321
6322 /*
6323 * content selection pattern - do fix if pattern found
6324 */
6325 tSCC zX11_SprintfSelect0[] =
6326 "^extern char \\*\tsprintf\\(\\);$";
6327
6328 #define X11_SPRINTF_TEST_CT 1
6329 static tTestDesc aX11_SprintfTests[] = {
6330 { TT_EGREP, zX11_SprintfSelect0, (regex_t*)NULL }, };
6331
6332 /*
6333 * Fix Command Arguments for X11_Sprintf
6334 */
6335 static const char* apzX11_SprintfPatch[] = {
6336 "format",
6337 "#ifndef __STDC__\n\
6338 %0\n\
6339 #endif /* !defined __STDC__ */",
6340 (char*)NULL };
6341
6342
6343 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6344 *
6345 * List of all fixes
6346 */
6347 #define REGEX_COUNT 180
6348 #define MACH_LIST_SIZE_LIMIT 261
6349 #define FIX_COUNT 160
6350
6351 /*
6352 * Enumerate the fixes
6353 */
6354 typedef enum {
6355 AAB_FD_ZERO_ASM_POSIX_TYPES_H_FIXIDX,
6356 AAB_FD_ZERO_GNU_TYPES_H_FIXIDX,
6357 AAB_FD_ZERO_SELECTBITS_H_FIXIDX,
6358 AAB_SOLARIS_SYS_VARARGS_H_FIXIDX,
6359 AAB_SUN_MEMCPY_FIXIDX,
6360 AAB_ULTRIX_ANSI_COMPAT_FIXIDX,
6361 AAB_ULTRIX_LIMITS_FIXIDX,
6362 AAB_ULTRIX_MEMORY_FIXIDX,
6363 AAB_ULTRIX_STRING_FIXIDX,
6364 AIX_PTHREAD_FIXIDX,
6365 AIX_SYSMACHINE_FIXIDX,
6366 AIX_SYSWAIT_FIXIDX,
6367 AIX_VOLATILE_FIXIDX,
6368 ALPHA___ASSERT_FIXIDX,
6369 ALPHA___EXTERN_PREFIX_FIXIDX,
6370 ALPHA_ASSERT_FIXIDX,
6371 ALPHA_GETOPT_FIXIDX,
6372 ALPHA_PARENS_FIXIDX,
6373 ALPHA_PTHREAD_FIXIDX,
6374 ALPHA_PTHREAD_GCC_FIXIDX,
6375 ALPHA_SBRK_FIXIDX,
6376 AVOID_BOOL_DEFINE_FIXIDX,
6377 AVOID_BOOL_TYPE_FIXIDX,
6378 AVOID_WCHAR_T_TYPE_FIXIDX,
6379 BAD_LVAL_FIXIDX,
6380 BAD_STRUCT_TERM_FIXIDX,
6381 BADQUOTE_FIXIDX,
6382 BROKEN_ASSERT_STDIO_FIXIDX,
6383 BROKEN_ASSERT_STDLIB_FIXIDX,
6384 BROKEN_CABS_FIXIDX,
6385 BSD_STDIO_ATTRS_CONFLICT_FIXIDX,
6386 CTRL_QUOTES_DEF_FIXIDX,
6387 CTRL_QUOTES_USE_FIXIDX,
6388 CXX_UNREADY_FIXIDX,
6389 DEC_INTERN_ASM_FIXIDX,
6390 DJGPP_WCHAR_H_FIXIDX,
6391 ECD_CURSOR_FIXIDX,
6392 FREEBSD_GCC3_BREAKAGE_FIXIDX,
6393 GNU_TYPES_FIXIDX,
6394 HP_INLINE_FIXIDX,
6395 HP_SYSFILE_FIXIDX,
6396 HPUX10_CPP_POW_INLINE_FIXIDX,
6397 HPUX11_CPP_POW_INLINE_FIXIDX,
6398 HPUX10_CTYPE_DECLARATIONS1_FIXIDX,
6399 HPUX10_CTYPE_DECLARATIONS2_FIXIDX,
6400 HPUX11_ABS_FIXIDX,
6401 HPUX11_FABSF_FIXIDX,
6402 HPUX11_SIZE_T_FIXIDX,
6403 HPUX11_UINT32_C_FIXIDX,
6404 HPUX11_VSNPRINTF_FIXIDX,
6405 HPUX11_SNPRINTF_FIXIDX,
6406 HPUX8_BOGUS_INLINES_FIXIDX,
6407 HPUX_CTYPE_MACROS_FIXIDX,
6408 HPUX_LONG_DOUBLE_FIXIDX,
6409 HPUX_MAXINT_FIXIDX,
6410 HPUX_SYSTIME_FIXIDX,
6411 INT_ABORT_FREE_AND_EXIT_FIXIDX,
6412 IO_QUOTES_DEF_FIXIDX,
6413 IO_QUOTES_USE_FIXIDX,
6414 IP_MISSING_SEMI_FIXIDX,
6415 IRIX___RESTRICT_FIXIDX,
6416 IRIX_ASM_APOSTROPHE_FIXIDX,
6417 IRIX_LIMITS_CONST_FIXIDX,
6418 IRIX_SOCKLEN_T_FIXIDX,
6419 IRIX_STDIO_VA_LIST_FIXIDX,
6420 IRIX_WCSFTIME_FIXIDX,
6421 ISC_FMOD_FIXIDX,
6422 ISC_OMITS_WITH_STDC_FIXIDX,
6423 KANDR_CONCAT_FIXIDX,
6424 LIBC1_G_VA_LIST_FIXIDX,
6425 LIBC1_IFDEFD_MEMX_FIXIDX,
6426 LIMITS_IFNDEFS_FIXIDX,
6427 LYNX_VOID_INT_FIXIDX,
6428 LYNXOS_FCNTL_PROTO_FIXIDX,
6429 MACHINE_ANSI_H_VA_LIST_FIXIDX,
6430 MACHINE_NAME_FIXIDX,
6431 MATH_EXCEPTION_FIXIDX,
6432 MATH_HUGE_VAL_FROM_DBL_MAX_FIXIDX,
6433 MATH_HUGE_VAL_IFNDEF_FIXIDX,
6434 NESTED_AUTH_DES_FIXIDX,
6435 NESTED_MOTOROLA_FIXIDX,
6436 NESTED_SYS_LIMITS_FIXIDX,
6437 NETBSD_EXTRA_SEMICOLON_FIXIDX,
6438 NEXT_MATH_PREFIX_FIXIDX,
6439 NEXT_TEMPLATE_FIXIDX,
6440 NEXT_VOLITILE_FIXIDX,
6441 NEXT_WAIT_UNION_FIXIDX,
6442 NODEENT_SYNTAX_FIXIDX,
6443 OSF_NAMESPACE_A_FIXIDX,
6444 OSF_NAMESPACE_C_FIXIDX,
6445 PTHREAD_PAGE_SIZE_FIXIDX,
6446 READ_RET_TYPE_FIXIDX,
6447 RS6000_DOUBLE_FIXIDX,
6448 RS6000_FCHMOD_FIXIDX,
6449 RS6000_PARAM_FIXIDX,
6450 SCO_MATH_FIXIDX,
6451 SCO_REGSET_FIXIDX,
6452 SCO_STATIC_FUNC_FIXIDX,
6453 SCO_UTIME_FIXIDX,
6454 SOLARIS_MUTEX_INIT_1_FIXIDX,
6455 SOLARIS_MUTEX_INIT_2_FIXIDX,
6456 SOLARIS_SOCKET_FIXIDX,
6457 SOLARIS_STDIO_TAG_FIXIDX,
6458 SOLARIS_UNISTD_FIXIDX,
6459 SOLARIS_WIDEC_FIXIDX,
6460 STATSSWTCH_FIXIDX,
6461 STDIO_STDARG_H_FIXIDX,
6462 STDIO_VA_LIST_FIXIDX,
6463 STRICT_ANSI_NOT_FIXIDX,
6464 STRICT_ANSI_NOT_CTD_FIXIDX,
6465 STRICT_ANSI_ONLY_FIXIDX,
6466 STRUCT_FILE_FIXIDX,
6467 STRUCT_SOCKADDR_FIXIDX,
6468 SUN_AUTH_PROTO_FIXIDX,
6469 SUN_BOGUS_IFDEF_FIXIDX,
6470 SUN_CATMACRO_FIXIDX,
6471 SUN_MALLOC_FIXIDX,
6472 SUN_RUSERS_SEMI_FIXIDX,
6473 SUN_SIGNAL_FIXIDX,
6474 SUNOS_MATHERR_DECL_FIXIDX,
6475 SUNOS_STRLEN_FIXIDX,
6476 SVR4__P_FIXIDX,
6477 SVR4_DISABLE_OPT_FIXIDX,
6478 SVR4_GETCWD_FIXIDX,
6479 SVR4_KRNL_FIXIDX,
6480 SVR4_PROFIL_FIXIDX,
6481 SVR4_SIGHANDLER_TYPE_FIXIDX,
6482 SVR4_UNDECLARED_GETRNGE_FIXIDX,
6483 SYSV68_STRING_FIXIDX,
6484 SYSZ_STDLIB_FOR_SUN_FIXIDX,
6485 THREAD_KEYWORD_FIXIDX,
6486 TINFO_CPLUSPLUS_FIXIDX,
6487 ULTRIX_ATEXIT_PARAM_FIXIDX,
6488 ULTRIX_ATOF_PARAM_FIXIDX,
6489 ULTRIX_CONST_FIXIDX,
6490 ULTRIX_CONST2_FIXIDX,
6491 ULTRIX_FIX_FIXPROTO_FIXIDX,
6492 ULTRIX_IFDEF_FIXIDX,
6493 ULTRIX_MATH_IFDEF_FIXIDX,
6494 ULTRIX_NESTED_IOCTL_FIXIDX,
6495 ULTRIX_NESTED_SVC_FIXIDX,
6496 ULTRIX_STAT_FIXIDX,
6497 ULTRIX_STATIC_FIXIDX,
6498 ULTRIX_STRINGS_FIXIDX,
6499 UNDEFINE_NULL_FIXIDX,
6500 UNICOSMK_RESTRICT_FIXIDX,
6501 UW7_BYTEORDER_FIX_FIXIDX,
6502 VA_I960_MACRO_FIXIDX,
6503 VOID_NULL_FIXIDX,
6504 VXWORKS_GCC_PROBLEM_FIXIDX,
6505 VXWORKS_NEEDS_VXTYPES_FIXIDX,
6506 VXWORKS_NEEDS_VXWORKS_FIXIDX,
6507 VXWORKS_TIME_FIXIDX,
6508 WINDISS_MATH1_FIXIDX,
6509 WINDISS_MATH2_FIXIDX,
6510 WINDISS_VALIST_FIXIDX,
6511 X11_CLASS_FIXIDX,
6512 X11_CLASS_USAGE_FIXIDX,
6513 X11_NEW_FIXIDX,
6514 X11_SPRINTF_FIXIDX
6515 } t_fixinc_idx;
6516
6517 tFixDesc fixDescList[ FIX_COUNT ] = {
6518 { zAab_Fd_Zero_Asm_Posix_Types_HName, zAab_Fd_Zero_Asm_Posix_Types_HList,
6519 apzAab_Fd_Zero_Asm_Posix_Types_HMachs,
6520 AAB_FD_ZERO_ASM_POSIX_TYPES_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
6521 aAab_Fd_Zero_Asm_Posix_Types_HTests, apzAab_Fd_Zero_Asm_Posix_Types_HPatch, 0 },
6522
6523 { zAab_Fd_Zero_Gnu_Types_HName, zAab_Fd_Zero_Gnu_Types_HList,
6524 apzAab_Fd_Zero_Gnu_Types_HMachs,
6525 AAB_FD_ZERO_GNU_TYPES_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
6526 aAab_Fd_Zero_Gnu_Types_HTests, apzAab_Fd_Zero_Gnu_Types_HPatch, 0 },
6527
6528 { zAab_Fd_Zero_Selectbits_HName, zAab_Fd_Zero_Selectbits_HList,
6529 apzAab_Fd_Zero_Selectbits_HMachs,
6530 AAB_FD_ZERO_SELECTBITS_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
6531 aAab_Fd_Zero_Selectbits_HTests, apzAab_Fd_Zero_Selectbits_HPatch, 0 },
6532
6533 { zAab_Solaris_Sys_Varargs_HName, zAab_Solaris_Sys_Varargs_HList,
6534 apzAab_Solaris_Sys_Varargs_HMachs,
6535 AAB_SOLARIS_SYS_VARARGS_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
6536 aAab_Solaris_Sys_Varargs_HTests, apzAab_Solaris_Sys_Varargs_HPatch, 0 },
6537
6538 { zAab_Sun_MemcpyName, zAab_Sun_MemcpyList,
6539 apzAab_Sun_MemcpyMachs,
6540 AAB_SUN_MEMCPY_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
6541 aAab_Sun_MemcpyTests, apzAab_Sun_MemcpyPatch, 0 },
6542
6543 { zAab_Ultrix_Ansi_CompatName, zAab_Ultrix_Ansi_CompatList,
6544 apzAab_Ultrix_Ansi_CompatMachs,
6545 AAB_ULTRIX_ANSI_COMPAT_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
6546 aAab_Ultrix_Ansi_CompatTests, apzAab_Ultrix_Ansi_CompatPatch, 0 },
6547
6548 { zAab_Ultrix_LimitsName, zAab_Ultrix_LimitsList,
6549 apzAab_Ultrix_LimitsMachs,
6550 AAB_ULTRIX_LIMITS_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
6551 aAab_Ultrix_LimitsTests, apzAab_Ultrix_LimitsPatch, 0 },
6552
6553 { zAab_Ultrix_MemoryName, zAab_Ultrix_MemoryList,
6554 apzAab_Ultrix_MemoryMachs,
6555 AAB_ULTRIX_MEMORY_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
6556 aAab_Ultrix_MemoryTests, apzAab_Ultrix_MemoryPatch, 0 },
6557
6558 { zAab_Ultrix_StringName, zAab_Ultrix_StringList,
6559 apzAab_Ultrix_StringMachs,
6560 AAB_ULTRIX_STRING_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
6561 aAab_Ultrix_StringTests, apzAab_Ultrix_StringPatch, 0 },
6562
6563 { zAix_PthreadName, zAix_PthreadList,
6564 apzAix_PthreadMachs,
6565 AIX_PTHREAD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6566 aAix_PthreadTests, apzAix_PthreadPatch, 0 },
6567
6568 { zAix_SysmachineName, zAix_SysmachineList,
6569 apzAix_SysmachineMachs,
6570 AIX_SYSMACHINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6571 aAix_SysmachineTests, apzAix_SysmachinePatch, 0 },
6572
6573 { zAix_SyswaitName, zAix_SyswaitList,
6574 apzAix_SyswaitMachs,
6575 AIX_SYSWAIT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6576 aAix_SyswaitTests, apzAix_SyswaitPatch, 0 },
6577
6578 { zAix_VolatileName, zAix_VolatileList,
6579 apzAix_VolatileMachs,
6580 AIX_VOLATILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6581 aAix_VolatileTests, apzAix_VolatilePatch, 0 },
6582
6583 { zAlpha___AssertName, zAlpha___AssertList,
6584 apzAlpha___AssertMachs,
6585 ALPHA___ASSERT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6586 aAlpha___AssertTests, apzAlpha___AssertPatch, 0 },
6587
6588 { zAlpha___Extern_PrefixName, zAlpha___Extern_PrefixList,
6589 apzAlpha___Extern_PrefixMachs,
6590 ALPHA___EXTERN_PREFIX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6591 aAlpha___Extern_PrefixTests, apzAlpha___Extern_PrefixPatch, 0 },
6592
6593 { zAlpha_AssertName, zAlpha_AssertList,
6594 apzAlpha_AssertMachs,
6595 ALPHA_ASSERT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6596 aAlpha_AssertTests, apzAlpha_AssertPatch, 0 },
6597
6598 { zAlpha_GetoptName, zAlpha_GetoptList,
6599 apzAlpha_GetoptMachs,
6600 ALPHA_GETOPT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6601 aAlpha_GetoptTests, apzAlpha_GetoptPatch, 0 },
6602
6603 { zAlpha_ParensName, zAlpha_ParensList,
6604 apzAlpha_ParensMachs,
6605 ALPHA_PARENS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6606 aAlpha_ParensTests, apzAlpha_ParensPatch, 0 },
6607
6608 { zAlpha_PthreadName, zAlpha_PthreadList,
6609 apzAlpha_PthreadMachs,
6610 ALPHA_PTHREAD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6611 aAlpha_PthreadTests, apzAlpha_PthreadPatch, 0 },
6612
6613 { zAlpha_Pthread_GccName, zAlpha_Pthread_GccList,
6614 apzAlpha_Pthread_GccMachs,
6615 ALPHA_PTHREAD_GCC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6616 aAlpha_Pthread_GccTests, apzAlpha_Pthread_GccPatch, 0 },
6617
6618 { zAlpha_SbrkName, zAlpha_SbrkList,
6619 apzAlpha_SbrkMachs,
6620 ALPHA_SBRK_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6621 aAlpha_SbrkTests, apzAlpha_SbrkPatch, 0 },
6622
6623 { zAvoid_Bool_DefineName, zAvoid_Bool_DefineList,
6624 apzAvoid_Bool_DefineMachs,
6625 AVOID_BOOL_DEFINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6626 aAvoid_Bool_DefineTests, apzAvoid_Bool_DefinePatch, 0 },
6627
6628 { zAvoid_Bool_TypeName, zAvoid_Bool_TypeList,
6629 apzAvoid_Bool_TypeMachs,
6630 AVOID_BOOL_TYPE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6631 aAvoid_Bool_TypeTests, apzAvoid_Bool_TypePatch, 0 },
6632
6633 { zAvoid_Wchar_T_TypeName, zAvoid_Wchar_T_TypeList,
6634 apzAvoid_Wchar_T_TypeMachs,
6635 AVOID_WCHAR_T_TYPE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6636 aAvoid_Wchar_T_TypeTests, apzAvoid_Wchar_T_TypePatch, 0 },
6637
6638 { zBad_LvalName, zBad_LvalList,
6639 apzBad_LvalMachs,
6640 BAD_LVAL_TEST_CT, FD_MACH_ONLY,
6641 aBad_LvalTests, apzBad_LvalPatch, 0 },
6642
6643 { zBad_Struct_TermName, zBad_Struct_TermList,
6644 apzBad_Struct_TermMachs,
6645 BAD_STRUCT_TERM_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6646 aBad_Struct_TermTests, apzBad_Struct_TermPatch, 0 },
6647
6648 { zBadquoteName, zBadquoteList,
6649 apzBadquoteMachs,
6650 BADQUOTE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6651 aBadquoteTests, apzBadquotePatch, 0 },
6652
6653 { zBroken_Assert_StdioName, zBroken_Assert_StdioList,
6654 apzBroken_Assert_StdioMachs,
6655 BROKEN_ASSERT_STDIO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6656 aBroken_Assert_StdioTests, apzBroken_Assert_StdioPatch, 0 },
6657
6658 { zBroken_Assert_StdlibName, zBroken_Assert_StdlibList,
6659 apzBroken_Assert_StdlibMachs,
6660 BROKEN_ASSERT_STDLIB_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6661 aBroken_Assert_StdlibTests, apzBroken_Assert_StdlibPatch, 0 },
6662
6663 { zBroken_CabsName, zBroken_CabsList,
6664 apzBroken_CabsMachs,
6665 BROKEN_CABS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6666 aBroken_CabsTests, apzBroken_CabsPatch, 0 },
6667
6668 { zBsd_Stdio_Attrs_ConflictName, zBsd_Stdio_Attrs_ConflictList,
6669 apzBsd_Stdio_Attrs_ConflictMachs,
6670 BSD_STDIO_ATTRS_CONFLICT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6671 aBsd_Stdio_Attrs_ConflictTests, apzBsd_Stdio_Attrs_ConflictPatch, 0 },
6672
6673 { zCtrl_Quotes_DefName, zCtrl_Quotes_DefList,
6674 apzCtrl_Quotes_DefMachs,
6675 CTRL_QUOTES_DEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6676 aCtrl_Quotes_DefTests, apzCtrl_Quotes_DefPatch, 0 },
6677
6678 { zCtrl_Quotes_UseName, zCtrl_Quotes_UseList,
6679 apzCtrl_Quotes_UseMachs,
6680 CTRL_QUOTES_USE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6681 aCtrl_Quotes_UseTests, apzCtrl_Quotes_UsePatch, 0 },
6682
6683 { zCxx_UnreadyName, zCxx_UnreadyList,
6684 apzCxx_UnreadyMachs,
6685 CXX_UNREADY_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6686 aCxx_UnreadyTests, apzCxx_UnreadyPatch, 0 },
6687
6688 { zDec_Intern_AsmName, zDec_Intern_AsmList,
6689 apzDec_Intern_AsmMachs,
6690 DEC_INTERN_ASM_TEST_CT, FD_MACH_ONLY,
6691 aDec_Intern_AsmTests, apzDec_Intern_AsmPatch, 0 },
6692
6693 { zDjgpp_Wchar_HName, zDjgpp_Wchar_HList,
6694 apzDjgpp_Wchar_HMachs,
6695 DJGPP_WCHAR_H_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6696 aDjgpp_Wchar_HTests, apzDjgpp_Wchar_HPatch, 0 },
6697
6698 { zEcd_CursorName, zEcd_CursorList,
6699 apzEcd_CursorMachs,
6700 ECD_CURSOR_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6701 aEcd_CursorTests, apzEcd_CursorPatch, 0 },
6702
6703 { zFreebsd_Gcc3_BreakageName, zFreebsd_Gcc3_BreakageList,
6704 apzFreebsd_Gcc3_BreakageMachs,
6705 FREEBSD_GCC3_BREAKAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6706 aFreebsd_Gcc3_BreakageTests, apzFreebsd_Gcc3_BreakagePatch, 0 },
6707
6708 { zGnu_TypesName, zGnu_TypesList,
6709 apzGnu_TypesMachs,
6710 GNU_TYPES_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6711 aGnu_TypesTests, apzGnu_TypesPatch, 0 },
6712
6713 { zHp_InlineName, zHp_InlineList,
6714 apzHp_InlineMachs,
6715 HP_INLINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6716 aHp_InlineTests, apzHp_InlinePatch, 0 },
6717
6718 { zHp_SysfileName, zHp_SysfileList,
6719 apzHp_SysfileMachs,
6720 HP_SYSFILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6721 aHp_SysfileTests, apzHp_SysfilePatch, 0 },
6722
6723 { zHpux10_Cpp_Pow_InlineName, zHpux10_Cpp_Pow_InlineList,
6724 apzHpux10_Cpp_Pow_InlineMachs,
6725 HPUX10_CPP_POW_INLINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6726 aHpux10_Cpp_Pow_InlineTests, apzHpux10_Cpp_Pow_InlinePatch, 0 },
6727
6728 { zHpux11_Cpp_Pow_InlineName, zHpux11_Cpp_Pow_InlineList,
6729 apzHpux11_Cpp_Pow_InlineMachs,
6730 HPUX11_CPP_POW_INLINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6731 aHpux11_Cpp_Pow_InlineTests, apzHpux11_Cpp_Pow_InlinePatch, 0 },
6732
6733 { zHpux10_Ctype_Declarations1Name, zHpux10_Ctype_Declarations1List,
6734 apzHpux10_Ctype_Declarations1Machs,
6735 HPUX10_CTYPE_DECLARATIONS1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6736 aHpux10_Ctype_Declarations1Tests, apzHpux10_Ctype_Declarations1Patch, 0 },
6737
6738 { zHpux10_Ctype_Declarations2Name, zHpux10_Ctype_Declarations2List,
6739 apzHpux10_Ctype_Declarations2Machs,
6740 HPUX10_CTYPE_DECLARATIONS2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6741 aHpux10_Ctype_Declarations2Tests, apzHpux10_Ctype_Declarations2Patch, 0 },
6742
6743 { zHpux11_AbsName, zHpux11_AbsList,
6744 apzHpux11_AbsMachs,
6745 HPUX11_ABS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6746 aHpux11_AbsTests, apzHpux11_AbsPatch, 0 },
6747
6748 { zHpux11_FabsfName, zHpux11_FabsfList,
6749 apzHpux11_FabsfMachs,
6750 HPUX11_FABSF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6751 aHpux11_FabsfTests, apzHpux11_FabsfPatch, 0 },
6752
6753 { zHpux11_Size_TName, zHpux11_Size_TList,
6754 apzHpux11_Size_TMachs,
6755 HPUX11_SIZE_T_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6756 aHpux11_Size_TTests, apzHpux11_Size_TPatch, 0 },
6757
6758 { zHpux11_Uint32_CName, zHpux11_Uint32_CList,
6759 apzHpux11_Uint32_CMachs,
6760 HPUX11_UINT32_C_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6761 aHpux11_Uint32_CTests, apzHpux11_Uint32_CPatch, 0 },
6762
6763 { zHpux11_VsnprintfName, zHpux11_VsnprintfList,
6764 apzHpux11_VsnprintfMachs,
6765 HPUX11_VSNPRINTF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6766 aHpux11_VsnprintfTests, apzHpux11_VsnprintfPatch, 0 },
6767
6768 { zHpux11_SnprintfName, zHpux11_SnprintfList,
6769 apzHpux11_SnprintfMachs,
6770 HPUX11_SNPRINTF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6771 aHpux11_SnprintfTests, apzHpux11_SnprintfPatch, 0 },
6772
6773 { zHpux8_Bogus_InlinesName, zHpux8_Bogus_InlinesList,
6774 apzHpux8_Bogus_InlinesMachs,
6775 HPUX8_BOGUS_INLINES_TEST_CT, FD_MACH_ONLY,
6776 aHpux8_Bogus_InlinesTests, apzHpux8_Bogus_InlinesPatch, 0 },
6777
6778 { zHpux_Ctype_MacrosName, zHpux_Ctype_MacrosList,
6779 apzHpux_Ctype_MacrosMachs,
6780 HPUX_CTYPE_MACROS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6781 aHpux_Ctype_MacrosTests, apzHpux_Ctype_MacrosPatch, 0 },
6782
6783 { zHpux_Long_DoubleName, zHpux_Long_DoubleList,
6784 apzHpux_Long_DoubleMachs,
6785 HPUX_LONG_DOUBLE_TEST_CT, FD_MACH_ONLY,
6786 aHpux_Long_DoubleTests, apzHpux_Long_DoublePatch, 0 },
6787
6788 { zHpux_MaxintName, zHpux_MaxintList,
6789 apzHpux_MaxintMachs,
6790 HPUX_MAXINT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6791 aHpux_MaxintTests, apzHpux_MaxintPatch, 0 },
6792
6793 { zHpux_SystimeName, zHpux_SystimeList,
6794 apzHpux_SystimeMachs,
6795 HPUX_SYSTIME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6796 aHpux_SystimeTests, apzHpux_SystimePatch, 0 },
6797
6798 { zInt_Abort_Free_And_ExitName, zInt_Abort_Free_And_ExitList,
6799 apzInt_Abort_Free_And_ExitMachs,
6800 INT_ABORT_FREE_AND_EXIT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6801 aInt_Abort_Free_And_ExitTests, apzInt_Abort_Free_And_ExitPatch, 0 },
6802
6803 { zIo_Quotes_DefName, zIo_Quotes_DefList,
6804 apzIo_Quotes_DefMachs,
6805 IO_QUOTES_DEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6806 aIo_Quotes_DefTests, apzIo_Quotes_DefPatch, 0 },
6807
6808 { zIo_Quotes_UseName, zIo_Quotes_UseList,
6809 apzIo_Quotes_UseMachs,
6810 IO_QUOTES_USE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6811 aIo_Quotes_UseTests, apzIo_Quotes_UsePatch, 0 },
6812
6813 { zIp_Missing_SemiName, zIp_Missing_SemiList,
6814 apzIp_Missing_SemiMachs,
6815 IP_MISSING_SEMI_TEST_CT, FD_MACH_ONLY,
6816 aIp_Missing_SemiTests, apzIp_Missing_SemiPatch, 0 },
6817
6818 { zIrix___RestrictName, zIrix___RestrictList,
6819 apzIrix___RestrictMachs,
6820 IRIX___RESTRICT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6821 aIrix___RestrictTests, apzIrix___RestrictPatch, 0 },
6822
6823 { zIrix_Asm_ApostropheName, zIrix_Asm_ApostropheList,
6824 apzIrix_Asm_ApostropheMachs,
6825 IRIX_ASM_APOSTROPHE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6826 aIrix_Asm_ApostropheTests, apzIrix_Asm_ApostrophePatch, 0 },
6827
6828 { zIrix_Limits_ConstName, zIrix_Limits_ConstList,
6829 apzIrix_Limits_ConstMachs,
6830 IRIX_LIMITS_CONST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6831 aIrix_Limits_ConstTests, apzIrix_Limits_ConstPatch, 0 },
6832
6833 { zIrix_Socklen_TName, zIrix_Socklen_TList,
6834 apzIrix_Socklen_TMachs,
6835 IRIX_SOCKLEN_T_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6836 aIrix_Socklen_TTests, apzIrix_Socklen_TPatch, 0 },
6837
6838 { zIrix_Stdio_Va_ListName, zIrix_Stdio_Va_ListList,
6839 apzIrix_Stdio_Va_ListMachs,
6840 IRIX_STDIO_VA_LIST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6841 aIrix_Stdio_Va_ListTests, apzIrix_Stdio_Va_ListPatch, 0 },
6842
6843 { zIrix_WcsftimeName, zIrix_WcsftimeList,
6844 apzIrix_WcsftimeMachs,
6845 IRIX_WCSFTIME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6846 aIrix_WcsftimeTests, apzIrix_WcsftimePatch, 0 },
6847
6848 { zIsc_FmodName, zIsc_FmodList,
6849 apzIsc_FmodMachs,
6850 ISC_FMOD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6851 aIsc_FmodTests, apzIsc_FmodPatch, 0 },
6852
6853 { zIsc_Omits_With_StdcName, zIsc_Omits_With_StdcList,
6854 apzIsc_Omits_With_StdcMachs,
6855 ISC_OMITS_WITH_STDC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6856 aIsc_Omits_With_StdcTests, apzIsc_Omits_With_StdcPatch, 0 },
6857
6858 { zKandr_ConcatName, zKandr_ConcatList,
6859 apzKandr_ConcatMachs,
6860 KANDR_CONCAT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6861 aKandr_ConcatTests, apzKandr_ConcatPatch, 0 },
6862
6863 { zLibc1_G_Va_ListName, zLibc1_G_Va_ListList,
6864 apzLibc1_G_Va_ListMachs,
6865 LIBC1_G_VA_LIST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6866 aLibc1_G_Va_ListTests, apzLibc1_G_Va_ListPatch, 0 },
6867
6868 { zLibc1_Ifdefd_MemxName, zLibc1_Ifdefd_MemxList,
6869 apzLibc1_Ifdefd_MemxMachs,
6870 LIBC1_IFDEFD_MEMX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6871 aLibc1_Ifdefd_MemxTests, apzLibc1_Ifdefd_MemxPatch, 0 },
6872
6873 { zLimits_IfndefsName, zLimits_IfndefsList,
6874 apzLimits_IfndefsMachs,
6875 LIMITS_IFNDEFS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6876 aLimits_IfndefsTests, apzLimits_IfndefsPatch, 0 },
6877
6878 { zLynx_Void_IntName, zLynx_Void_IntList,
6879 apzLynx_Void_IntMachs,
6880 LYNX_VOID_INT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6881 aLynx_Void_IntTests, apzLynx_Void_IntPatch, 0 },
6882
6883 { zLynxos_Fcntl_ProtoName, zLynxos_Fcntl_ProtoList,
6884 apzLynxos_Fcntl_ProtoMachs,
6885 LYNXOS_FCNTL_PROTO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6886 aLynxos_Fcntl_ProtoTests, apzLynxos_Fcntl_ProtoPatch, 0 },
6887
6888 { zMachine_Ansi_H_Va_ListName, zMachine_Ansi_H_Va_ListList,
6889 apzMachine_Ansi_H_Va_ListMachs,
6890 MACHINE_ANSI_H_VA_LIST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6891 aMachine_Ansi_H_Va_ListTests, apzMachine_Ansi_H_Va_ListPatch, 0 },
6892
6893 { zMachine_NameName, zMachine_NameList,
6894 apzMachine_NameMachs,
6895 MACHINE_NAME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6896 aMachine_NameTests, apzMachine_NamePatch, 0 },
6897
6898 { zMath_ExceptionName, zMath_ExceptionList,
6899 apzMath_ExceptionMachs,
6900 MATH_EXCEPTION_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6901 aMath_ExceptionTests, apzMath_ExceptionPatch, 0 },
6902
6903 { zMath_Huge_Val_From_Dbl_MaxName, zMath_Huge_Val_From_Dbl_MaxList,
6904 apzMath_Huge_Val_From_Dbl_MaxMachs,
6905 MATH_HUGE_VAL_FROM_DBL_MAX_TEST_CT, FD_MACH_ONLY | FD_SHELL_SCRIPT,
6906 aMath_Huge_Val_From_Dbl_MaxTests, apzMath_Huge_Val_From_Dbl_MaxPatch, 0 },
6907
6908 { zMath_Huge_Val_IfndefName, zMath_Huge_Val_IfndefList,
6909 apzMath_Huge_Val_IfndefMachs,
6910 MATH_HUGE_VAL_IFNDEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6911 aMath_Huge_Val_IfndefTests, apzMath_Huge_Val_IfndefPatch, 0 },
6912
6913 { zNested_Auth_DesName, zNested_Auth_DesList,
6914 apzNested_Auth_DesMachs,
6915 NESTED_AUTH_DES_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6916 aNested_Auth_DesTests, apzNested_Auth_DesPatch, 0 },
6917
6918 { zNested_MotorolaName, zNested_MotorolaList,
6919 apzNested_MotorolaMachs,
6920 NESTED_MOTOROLA_TEST_CT, FD_MACH_ONLY,
6921 aNested_MotorolaTests, apzNested_MotorolaPatch, 0 },
6922
6923 { zNested_Sys_LimitsName, zNested_Sys_LimitsList,
6924 apzNested_Sys_LimitsMachs,
6925 NESTED_SYS_LIMITS_TEST_CT, FD_MACH_ONLY,
6926 aNested_Sys_LimitsTests, apzNested_Sys_LimitsPatch, 0 },
6927
6928 { zNetbsd_Extra_SemicolonName, zNetbsd_Extra_SemicolonList,
6929 apzNetbsd_Extra_SemicolonMachs,
6930 NETBSD_EXTRA_SEMICOLON_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6931 aNetbsd_Extra_SemicolonTests, apzNetbsd_Extra_SemicolonPatch, 0 },
6932
6933 { zNext_Math_PrefixName, zNext_Math_PrefixList,
6934 apzNext_Math_PrefixMachs,
6935 NEXT_MATH_PREFIX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6936 aNext_Math_PrefixTests, apzNext_Math_PrefixPatch, 0 },
6937
6938 { zNext_TemplateName, zNext_TemplateList,
6939 apzNext_TemplateMachs,
6940 NEXT_TEMPLATE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6941 aNext_TemplateTests, apzNext_TemplatePatch, 0 },
6942
6943 { zNext_VolitileName, zNext_VolitileList,
6944 apzNext_VolitileMachs,
6945 NEXT_VOLITILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6946 aNext_VolitileTests, apzNext_VolitilePatch, 0 },
6947
6948 { zNext_Wait_UnionName, zNext_Wait_UnionList,
6949 apzNext_Wait_UnionMachs,
6950 NEXT_WAIT_UNION_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6951 aNext_Wait_UnionTests, apzNext_Wait_UnionPatch, 0 },
6952
6953 { zNodeent_SyntaxName, zNodeent_SyntaxList,
6954 apzNodeent_SyntaxMachs,
6955 NODEENT_SYNTAX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6956 aNodeent_SyntaxTests, apzNodeent_SyntaxPatch, 0 },
6957
6958 { zOsf_Namespace_AName, zOsf_Namespace_AList,
6959 apzOsf_Namespace_AMachs,
6960 OSF_NAMESPACE_A_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6961 aOsf_Namespace_ATests, apzOsf_Namespace_APatch, 0 },
6962
6963 { zOsf_Namespace_CName, zOsf_Namespace_CList,
6964 apzOsf_Namespace_CMachs,
6965 OSF_NAMESPACE_C_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6966 aOsf_Namespace_CTests, apzOsf_Namespace_CPatch, 0 },
6967
6968 { zPthread_Page_SizeName, zPthread_Page_SizeList,
6969 apzPthread_Page_SizeMachs,
6970 PTHREAD_PAGE_SIZE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6971 aPthread_Page_SizeTests, apzPthread_Page_SizePatch, 0 },
6972
6973 { zRead_Ret_TypeName, zRead_Ret_TypeList,
6974 apzRead_Ret_TypeMachs,
6975 READ_RET_TYPE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6976 aRead_Ret_TypeTests, apzRead_Ret_TypePatch, 0 },
6977
6978 { zRs6000_DoubleName, zRs6000_DoubleList,
6979 apzRs6000_DoubleMachs,
6980 RS6000_DOUBLE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6981 aRs6000_DoubleTests, apzRs6000_DoublePatch, 0 },
6982
6983 { zRs6000_FchmodName, zRs6000_FchmodList,
6984 apzRs6000_FchmodMachs,
6985 RS6000_FCHMOD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6986 aRs6000_FchmodTests, apzRs6000_FchmodPatch, 0 },
6987
6988 { zRs6000_ParamName, zRs6000_ParamList,
6989 apzRs6000_ParamMachs,
6990 RS6000_PARAM_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6991 aRs6000_ParamTests, apzRs6000_ParamPatch, 0 },
6992
6993 { zSco_MathName, zSco_MathList,
6994 apzSco_MathMachs,
6995 SCO_MATH_TEST_CT, FD_MACH_ONLY,
6996 aSco_MathTests, apzSco_MathPatch, 0 },
6997
6998 { zSco_RegsetName, zSco_RegsetList,
6999 apzSco_RegsetMachs,
7000 SCO_REGSET_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7001 aSco_RegsetTests, apzSco_RegsetPatch, 0 },
7002
7003 { zSco_Static_FuncName, zSco_Static_FuncList,
7004 apzSco_Static_FuncMachs,
7005 SCO_STATIC_FUNC_TEST_CT, FD_MACH_ONLY,
7006 aSco_Static_FuncTests, apzSco_Static_FuncPatch, 0 },
7007
7008 { zSco_UtimeName, zSco_UtimeList,
7009 apzSco_UtimeMachs,
7010 SCO_UTIME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7011 aSco_UtimeTests, apzSco_UtimePatch, 0 },
7012
7013 { zSolaris_Mutex_Init_1Name, zSolaris_Mutex_Init_1List,
7014 apzSolaris_Mutex_Init_1Machs,
7015 SOLARIS_MUTEX_INIT_1_TEST_CT, FD_MACH_ONLY,
7016 aSolaris_Mutex_Init_1Tests, apzSolaris_Mutex_Init_1Patch, 0 },
7017
7018 { zSolaris_Mutex_Init_2Name, zSolaris_Mutex_Init_2List,
7019 apzSolaris_Mutex_Init_2Machs,
7020 SOLARIS_MUTEX_INIT_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7021 aSolaris_Mutex_Init_2Tests, apzSolaris_Mutex_Init_2Patch, 0 },
7022
7023 { zSolaris_SocketName, zSolaris_SocketList,
7024 apzSolaris_SocketMachs,
7025 SOLARIS_SOCKET_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7026 aSolaris_SocketTests, apzSolaris_SocketPatch, 0 },
7027
7028 { zSolaris_Stdio_TagName, zSolaris_Stdio_TagList,
7029 apzSolaris_Stdio_TagMachs,
7030 SOLARIS_STDIO_TAG_TEST_CT, FD_MACH_ONLY,
7031 aSolaris_Stdio_TagTests, apzSolaris_Stdio_TagPatch, 0 },
7032
7033 { zSolaris_UnistdName, zSolaris_UnistdList,
7034 apzSolaris_UnistdMachs,
7035 SOLARIS_UNISTD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7036 aSolaris_UnistdTests, apzSolaris_UnistdPatch, 0 },
7037
7038 { zSolaris_WidecName, zSolaris_WidecList,
7039 apzSolaris_WidecMachs,
7040 SOLARIS_WIDEC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7041 aSolaris_WidecTests, apzSolaris_WidecPatch, 0 },
7042
7043 { zStatsswtchName, zStatsswtchList,
7044 apzStatsswtchMachs,
7045 STATSSWTCH_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7046 aStatsswtchTests, apzStatsswtchPatch, 0 },
7047
7048 { zStdio_Stdarg_HName, zStdio_Stdarg_HList,
7049 apzStdio_Stdarg_HMachs,
7050 STDIO_STDARG_H_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7051 aStdio_Stdarg_HTests, apzStdio_Stdarg_HPatch, 0 },
7052
7053 { zStdio_Va_ListName, zStdio_Va_ListList,
7054 apzStdio_Va_ListMachs,
7055 STDIO_VA_LIST_TEST_CT, FD_MACH_ONLY,
7056 aStdio_Va_ListTests, apzStdio_Va_ListPatch, 0 },
7057
7058 { zStrict_Ansi_NotName, zStrict_Ansi_NotList,
7059 apzStrict_Ansi_NotMachs,
7060 STRICT_ANSI_NOT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7061 aStrict_Ansi_NotTests, apzStrict_Ansi_NotPatch, 0 },
7062
7063 { zStrict_Ansi_Not_CtdName, zStrict_Ansi_Not_CtdList,
7064 apzStrict_Ansi_Not_CtdMachs,
7065 STRICT_ANSI_NOT_CTD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7066 aStrict_Ansi_Not_CtdTests, apzStrict_Ansi_Not_CtdPatch, 0 },
7067
7068 { zStrict_Ansi_OnlyName, zStrict_Ansi_OnlyList,
7069 apzStrict_Ansi_OnlyMachs,
7070 STRICT_ANSI_ONLY_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7071 aStrict_Ansi_OnlyTests, apzStrict_Ansi_OnlyPatch, 0 },
7072
7073 { zStruct_FileName, zStruct_FileList,
7074 apzStruct_FileMachs,
7075 STRUCT_FILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7076 aStruct_FileTests, apzStruct_FilePatch, 0 },
7077
7078 { zStruct_SockaddrName, zStruct_SockaddrList,
7079 apzStruct_SockaddrMachs,
7080 STRUCT_SOCKADDR_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7081 aStruct_SockaddrTests, apzStruct_SockaddrPatch, 0 },
7082
7083 { zSun_Auth_ProtoName, zSun_Auth_ProtoList,
7084 apzSun_Auth_ProtoMachs,
7085 SUN_AUTH_PROTO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7086 aSun_Auth_ProtoTests, apzSun_Auth_ProtoPatch, 0 },
7087
7088 { zSun_Bogus_IfdefName, zSun_Bogus_IfdefList,
7089 apzSun_Bogus_IfdefMachs,
7090 SUN_BOGUS_IFDEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7091 aSun_Bogus_IfdefTests, apzSun_Bogus_IfdefPatch, 0 },
7092
7093 { zSun_CatmacroName, zSun_CatmacroList,
7094 apzSun_CatmacroMachs,
7095 SUN_CATMACRO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7096 aSun_CatmacroTests, apzSun_CatmacroPatch, 0 },
7097
7098 { zSun_MallocName, zSun_MallocList,
7099 apzSun_MallocMachs,
7100 SUN_MALLOC_TEST_CT, FD_MACH_ONLY,
7101 aSun_MallocTests, apzSun_MallocPatch, 0 },
7102
7103 { zSun_Rusers_SemiName, zSun_Rusers_SemiList,
7104 apzSun_Rusers_SemiMachs,
7105 SUN_RUSERS_SEMI_TEST_CT, FD_MACH_ONLY,
7106 aSun_Rusers_SemiTests, apzSun_Rusers_SemiPatch, 0 },
7107
7108 { zSun_SignalName, zSun_SignalList,
7109 apzSun_SignalMachs,
7110 SUN_SIGNAL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7111 aSun_SignalTests, apzSun_SignalPatch, 0 },
7112
7113 { zSunos_Matherr_DeclName, zSunos_Matherr_DeclList,
7114 apzSunos_Matherr_DeclMachs,
7115 SUNOS_MATHERR_DECL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7116 aSunos_Matherr_DeclTests, apzSunos_Matherr_DeclPatch, 0 },
7117
7118 { zSunos_StrlenName, zSunos_StrlenList,
7119 apzSunos_StrlenMachs,
7120 SUNOS_STRLEN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7121 aSunos_StrlenTests, apzSunos_StrlenPatch, 0 },
7122
7123 { zSvr4__PName, zSvr4__PList,
7124 apzSvr4__PMachs,
7125 SVR4__P_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7126 aSvr4__PTests, apzSvr4__PPatch, 0 },
7127
7128 { zSvr4_Disable_OptName, zSvr4_Disable_OptList,
7129 apzSvr4_Disable_OptMachs,
7130 SVR4_DISABLE_OPT_TEST_CT, FD_MACH_ONLY,
7131 aSvr4_Disable_OptTests, apzSvr4_Disable_OptPatch, 0 },
7132
7133 { zSvr4_GetcwdName, zSvr4_GetcwdList,
7134 apzSvr4_GetcwdMachs,
7135 SVR4_GETCWD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7136 aSvr4_GetcwdTests, apzSvr4_GetcwdPatch, 0 },
7137
7138 { zSvr4_KrnlName, zSvr4_KrnlList,
7139 apzSvr4_KrnlMachs,
7140 SVR4_KRNL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7141 aSvr4_KrnlTests, apzSvr4_KrnlPatch, 0 },
7142
7143 { zSvr4_ProfilName, zSvr4_ProfilList,
7144 apzSvr4_ProfilMachs,
7145 SVR4_PROFIL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7146 aSvr4_ProfilTests, apzSvr4_ProfilPatch, 0 },
7147
7148 { zSvr4_Sighandler_TypeName, zSvr4_Sighandler_TypeList,
7149 apzSvr4_Sighandler_TypeMachs,
7150 SVR4_SIGHANDLER_TYPE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7151 aSvr4_Sighandler_TypeTests, apzSvr4_Sighandler_TypePatch, 0 },
7152
7153 { zSvr4_Undeclared_GetrngeName, zSvr4_Undeclared_GetrngeList,
7154 apzSvr4_Undeclared_GetrngeMachs,
7155 SVR4_UNDECLARED_GETRNGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7156 aSvr4_Undeclared_GetrngeTests, apzSvr4_Undeclared_GetrngePatch, 0 },
7157
7158 { zSysv68_StringName, zSysv68_StringList,
7159 apzSysv68_StringMachs,
7160 SYSV68_STRING_TEST_CT, FD_MACH_ONLY,
7161 aSysv68_StringTests, apzSysv68_StringPatch, 0 },
7162
7163 { zSysz_Stdlib_For_SunName, zSysz_Stdlib_For_SunList,
7164 apzSysz_Stdlib_For_SunMachs,
7165 SYSZ_STDLIB_FOR_SUN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7166 aSysz_Stdlib_For_SunTests, apzSysz_Stdlib_For_SunPatch, 0 },
7167
7168 { zThread_KeywordName, zThread_KeywordList,
7169 apzThread_KeywordMachs,
7170 THREAD_KEYWORD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7171 aThread_KeywordTests, apzThread_KeywordPatch, 0 },
7172
7173 { zTinfo_CplusplusName, zTinfo_CplusplusList,
7174 apzTinfo_CplusplusMachs,
7175 TINFO_CPLUSPLUS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7176 aTinfo_CplusplusTests, apzTinfo_CplusplusPatch, 0 },
7177
7178 { zUltrix_Atexit_ParamName, zUltrix_Atexit_ParamList,
7179 apzUltrix_Atexit_ParamMachs,
7180 ULTRIX_ATEXIT_PARAM_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7181 aUltrix_Atexit_ParamTests, apzUltrix_Atexit_ParamPatch, 0 },
7182
7183 { zUltrix_Atof_ParamName, zUltrix_Atof_ParamList,
7184 apzUltrix_Atof_ParamMachs,
7185 ULTRIX_ATOF_PARAM_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7186 aUltrix_Atof_ParamTests, apzUltrix_Atof_ParamPatch, 0 },
7187
7188 { zUltrix_ConstName, zUltrix_ConstList,
7189 apzUltrix_ConstMachs,
7190 ULTRIX_CONST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7191 aUltrix_ConstTests, apzUltrix_ConstPatch, 0 },
7192
7193 { zUltrix_Const2Name, zUltrix_Const2List,
7194 apzUltrix_Const2Machs,
7195 ULTRIX_CONST2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7196 aUltrix_Const2Tests, apzUltrix_Const2Patch, 0 },
7197
7198 { zUltrix_Fix_FixprotoName, zUltrix_Fix_FixprotoList,
7199 apzUltrix_Fix_FixprotoMachs,
7200 ULTRIX_FIX_FIXPROTO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7201 aUltrix_Fix_FixprotoTests, apzUltrix_Fix_FixprotoPatch, 0 },
7202
7203 { zUltrix_IfdefName, zUltrix_IfdefList,
7204 apzUltrix_IfdefMachs,
7205 ULTRIX_IFDEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7206 aUltrix_IfdefTests, apzUltrix_IfdefPatch, 0 },
7207
7208 { zUltrix_Math_IfdefName, zUltrix_Math_IfdefList,
7209 apzUltrix_Math_IfdefMachs,
7210 ULTRIX_MATH_IFDEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7211 aUltrix_Math_IfdefTests, apzUltrix_Math_IfdefPatch, 0 },
7212
7213 { zUltrix_Nested_IoctlName, zUltrix_Nested_IoctlList,
7214 apzUltrix_Nested_IoctlMachs,
7215 ULTRIX_NESTED_IOCTL_TEST_CT, FD_MACH_ONLY,
7216 aUltrix_Nested_IoctlTests, apzUltrix_Nested_IoctlPatch, 0 },
7217
7218 { zUltrix_Nested_SvcName, zUltrix_Nested_SvcList,
7219 apzUltrix_Nested_SvcMachs,
7220 ULTRIX_NESTED_SVC_TEST_CT, FD_MACH_ONLY,
7221 aUltrix_Nested_SvcTests, apzUltrix_Nested_SvcPatch, 0 },
7222
7223 { zUltrix_StatName, zUltrix_StatList,
7224 apzUltrix_StatMachs,
7225 ULTRIX_STAT_TEST_CT, FD_MACH_ONLY,
7226 aUltrix_StatTests, apzUltrix_StatPatch, 0 },
7227
7228 { zUltrix_StaticName, zUltrix_StaticList,
7229 apzUltrix_StaticMachs,
7230 ULTRIX_STATIC_TEST_CT, FD_MACH_ONLY,
7231 aUltrix_StaticTests, apzUltrix_StaticPatch, 0 },
7232
7233 { zUltrix_StringsName, zUltrix_StringsList,
7234 apzUltrix_StringsMachs,
7235 ULTRIX_STRINGS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7236 aUltrix_StringsTests, apzUltrix_StringsPatch, 0 },
7237
7238 { zUndefine_NullName, zUndefine_NullList,
7239 apzUndefine_NullMachs,
7240 UNDEFINE_NULL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7241 aUndefine_NullTests, apzUndefine_NullPatch, 0 },
7242
7243 { zUnicosmk_RestrictName, zUnicosmk_RestrictList,
7244 apzUnicosmk_RestrictMachs,
7245 UNICOSMK_RESTRICT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7246 aUnicosmk_RestrictTests, apzUnicosmk_RestrictPatch, 0 },
7247
7248 { zUw7_Byteorder_FixName, zUw7_Byteorder_FixList,
7249 apzUw7_Byteorder_FixMachs,
7250 UW7_BYTEORDER_FIX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7251 aUw7_Byteorder_FixTests, apzUw7_Byteorder_FixPatch, 0 },
7252
7253 { zVa_I960_MacroName, zVa_I960_MacroList,
7254 apzVa_I960_MacroMachs,
7255 VA_I960_MACRO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7256 aVa_I960_MacroTests, apzVa_I960_MacroPatch, 0 },
7257
7258 { zVoid_NullName, zVoid_NullList,
7259 apzVoid_NullMachs,
7260 VOID_NULL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7261 aVoid_NullTests, apzVoid_NullPatch, 0 },
7262
7263 { zVxworks_Gcc_ProblemName, zVxworks_Gcc_ProblemList,
7264 apzVxworks_Gcc_ProblemMachs,
7265 VXWORKS_GCC_PROBLEM_TEST_CT, FD_MACH_ONLY,
7266 aVxworks_Gcc_ProblemTests, apzVxworks_Gcc_ProblemPatch, 0 },
7267
7268 { zVxworks_Needs_VxtypesName, zVxworks_Needs_VxtypesList,
7269 apzVxworks_Needs_VxtypesMachs,
7270 VXWORKS_NEEDS_VXTYPES_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7271 aVxworks_Needs_VxtypesTests, apzVxworks_Needs_VxtypesPatch, 0 },
7272
7273 { zVxworks_Needs_VxworksName, zVxworks_Needs_VxworksList,
7274 apzVxworks_Needs_VxworksMachs,
7275 VXWORKS_NEEDS_VXWORKS_TEST_CT, FD_MACH_ONLY,
7276 aVxworks_Needs_VxworksTests, apzVxworks_Needs_VxworksPatch, 0 },
7277
7278 { zVxworks_TimeName, zVxworks_TimeList,
7279 apzVxworks_TimeMachs,
7280 VXWORKS_TIME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7281 aVxworks_TimeTests, apzVxworks_TimePatch, 0 },
7282
7283 { zWindiss_Math1Name, zWindiss_Math1List,
7284 apzWindiss_Math1Machs,
7285 WINDISS_MATH1_TEST_CT, FD_MACH_ONLY,
7286 aWindiss_Math1Tests, apzWindiss_Math1Patch, 0 },
7287
7288 { zWindiss_Math2Name, zWindiss_Math2List,
7289 apzWindiss_Math2Machs,
7290 WINDISS_MATH2_TEST_CT, FD_MACH_ONLY,
7291 aWindiss_Math2Tests, apzWindiss_Math2Patch, 0 },
7292
7293 { zWindiss_ValistName, zWindiss_ValistList,
7294 apzWindiss_ValistMachs,
7295 WINDISS_VALIST_TEST_CT, FD_MACH_ONLY,
7296 aWindiss_ValistTests, apzWindiss_ValistPatch, 0 },
7297
7298 { zX11_ClassName, zX11_ClassList,
7299 apzX11_ClassMachs,
7300 X11_CLASS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7301 aX11_ClassTests, apzX11_ClassPatch, 0 },
7302
7303 { zX11_Class_UsageName, zX11_Class_UsageList,
7304 apzX11_Class_UsageMachs,
7305 X11_CLASS_USAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7306 aX11_Class_UsageTests, apzX11_Class_UsagePatch, 0 },
7307
7308 { zX11_NewName, zX11_NewList,
7309 apzX11_NewMachs,
7310 X11_NEW_TEST_CT, FD_MACH_ONLY,
7311 aX11_NewTests, apzX11_NewPatch, 0 },
7312
7313 { zX11_SprintfName, zX11_SprintfList,
7314 apzX11_SprintfMachs,
7315 X11_SPRINTF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7316 aX11_SprintfTests, apzX11_SprintfPatch, 0 }
7317 };