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