Cray T3E port.
[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 144 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_Uint32_C fix
2072 */
2073 tSCC zHpux11_Uint32_CName[] =
2074 "hpux11_uint32_c";
2075
2076 /*
2077 * File name selection pattern
2078 */
2079 tSCC zHpux11_Uint32_CList[] =
2080 "|inttypes.h|";
2081 /*
2082 * Machine/OS name selection pattern
2083 */
2084 #define apzHpux11_Uint32_CMachs (const char**)NULL
2085
2086 /*
2087 * content selection pattern - do fix if pattern found
2088 */
2089 tSCC zHpux11_Uint32_CSelect0[] =
2090 "^#define UINT32_C\\(__c\\)[ \t]*__CONCAT__\\(__CONCAT_U__\\(__c\\),l\\)";
2091
2092 #define HPUX11_UINT32_C_TEST_CT 1
2093 static tTestDesc aHpux11_Uint32_CTests[] = {
2094 { TT_EGREP, zHpux11_Uint32_CSelect0, (regex_t*)NULL }, };
2095
2096 /*
2097 * Fix Command Arguments for Hpux11_Uint32_C
2098 */
2099 static const char* apzHpux11_Uint32_CPatch[] = {
2100 "format",
2101 "#define UINT32_C(__c) __CONCAT__(__c,ul)",
2102 (char*)NULL };
2103
2104 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2105 *
2106 * Description of Hpux11_Vsnprintf fix
2107 */
2108 tSCC zHpux11_VsnprintfName[] =
2109 "hpux11_vsnprintf";
2110
2111 /*
2112 * File name selection pattern
2113 */
2114 tSCC zHpux11_VsnprintfList[] =
2115 "|stdio.h|";
2116 /*
2117 * Machine/OS name selection pattern
2118 */
2119 #define apzHpux11_VsnprintfMachs (const char**)NULL
2120
2121 /*
2122 * content selection pattern - do fix if pattern found
2123 */
2124 tSCC zHpux11_VsnprintfSelect0[] =
2125 "extern int vsnprintf\\(char \\*, __size_t, const char \\*, __va__list\\);";
2126
2127 #define HPUX11_VSNPRINTF_TEST_CT 1
2128 static tTestDesc aHpux11_VsnprintfTests[] = {
2129 { TT_EGREP, zHpux11_VsnprintfSelect0, (regex_t*)NULL }, };
2130
2131 /*
2132 * Fix Command Arguments for Hpux11_Vsnprintf
2133 */
2134 static const char* apzHpux11_VsnprintfPatch[] = {
2135 "format",
2136 "extern int vsnprintf(char *, __size_t, const char *, __va_list);",
2137 (char*)NULL };
2138
2139 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2140 *
2141 * Description of Hpux8_Bogus_Inlines fix
2142 */
2143 tSCC zHpux8_Bogus_InlinesName[] =
2144 "hpux8_bogus_inlines";
2145
2146 /*
2147 * File name selection pattern
2148 */
2149 tSCC zHpux8_Bogus_InlinesList[] =
2150 "|math.h|";
2151 /*
2152 * Machine/OS name selection pattern
2153 */
2154 #define apzHpux8_Bogus_InlinesMachs (const char**)NULL
2155
2156 /*
2157 * content selection pattern - do fix if pattern found
2158 */
2159 tSCC zHpux8_Bogus_InlinesSelect0[] =
2160 "inline";
2161
2162 #define HPUX8_BOGUS_INLINES_TEST_CT 1
2163 static tTestDesc aHpux8_Bogus_InlinesTests[] = {
2164 { TT_EGREP, zHpux8_Bogus_InlinesSelect0, (regex_t*)NULL }, };
2165
2166 /*
2167 * Fix Command Arguments for Hpux8_Bogus_Inlines
2168 */
2169 static const char* apzHpux8_Bogus_InlinesPatch[] = { "sed",
2170 "-e", "s@inline int abs(int [a-z][a-z]*) {.*}@extern \"C\" int abs(int);@",
2171 "-e", "s@inline double abs(double [a-z][a-z]*) {.*}@@",
2172 "-e", "s@inline int sqr(int [a-z][a-z]*) {.*}@@",
2173 "-e", "s@inline double sqr(double [a-z][a-z]*) {.*}@@",
2174 (char*)NULL };
2175
2176 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2177 *
2178 * Description of Hpux_Maxint fix
2179 */
2180 tSCC zHpux_MaxintName[] =
2181 "hpux_maxint";
2182
2183 /*
2184 * File name selection pattern
2185 */
2186 tSCC zHpux_MaxintList[] =
2187 "|sys/param.h|values.h|";
2188 /*
2189 * Machine/OS name selection pattern
2190 */
2191 #define apzHpux_MaxintMachs (const char**)NULL
2192
2193 /*
2194 * content selection pattern - do fix if pattern found
2195 */
2196 tSCC zHpux_MaxintSelect0[] =
2197 "^#[ \t]*define[ \t]+MAXINT[ \t]";
2198
2199 /*
2200 * content bypass pattern - skip fix if pattern found
2201 */
2202 tSCC zHpux_MaxintBypass0[] =
2203 "^#[ \t]*ifndef[ \t]+MAXINT";
2204
2205 /*
2206 * perform the 'test' shell command - do fix on success
2207 */
2208 tSCC zHpux_MaxintTest0[] =
2209 "-n \"`egrep '#[ \t]*define[ \t]+MAXINT[ \t]' sys/param.h`\"";
2210
2211 #define HPUX_MAXINT_TEST_CT 3
2212 static tTestDesc aHpux_MaxintTests[] = {
2213 { TT_TEST, zHpux_MaxintTest0, 0 /* unused */ },
2214 { TT_NEGREP, zHpux_MaxintBypass0, (regex_t*)NULL },
2215 { TT_EGREP, zHpux_MaxintSelect0, (regex_t*)NULL }, };
2216
2217 /*
2218 * Fix Command Arguments for Hpux_Maxint
2219 */
2220 static const char* apzHpux_MaxintPatch[] = {
2221 "format",
2222 "#ifndef MAXINT\n\
2223 %0\n\
2224 #endif",
2225 "^#[ \t]*define[ \t]+MAXINT[ \t].*",
2226 (char*)NULL };
2227
2228 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2229 *
2230 * Description of Hpux_Systime fix
2231 */
2232 tSCC zHpux_SystimeName[] =
2233 "hpux_systime";
2234
2235 /*
2236 * File name selection pattern
2237 */
2238 tSCC zHpux_SystimeList[] =
2239 "|sys/time.h|";
2240 /*
2241 * Machine/OS name selection pattern
2242 */
2243 #define apzHpux_SystimeMachs (const char**)NULL
2244
2245 /*
2246 * content selection pattern - do fix if pattern found
2247 */
2248 tSCC zHpux_SystimeSelect0[] =
2249 "^extern struct sigevent;";
2250
2251 #define HPUX_SYSTIME_TEST_CT 1
2252 static tTestDesc aHpux_SystimeTests[] = {
2253 { TT_EGREP, zHpux_SystimeSelect0, (regex_t*)NULL }, };
2254
2255 /*
2256 * Fix Command Arguments for Hpux_Systime
2257 */
2258 static const char* apzHpux_SystimePatch[] = {
2259 "format",
2260 "struct sigevent;",
2261 (char*)NULL };
2262
2263 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2264 *
2265 * Description of Int_Abort_Free_And_Exit fix
2266 */
2267 tSCC zInt_Abort_Free_And_ExitName[] =
2268 "int_abort_free_and_exit";
2269
2270 /*
2271 * File name selection pattern
2272 */
2273 tSCC zInt_Abort_Free_And_ExitList[] =
2274 "|stdlib.h|";
2275 /*
2276 * Machine/OS name selection pattern
2277 */
2278 #define apzInt_Abort_Free_And_ExitMachs (const char**)NULL
2279
2280 /*
2281 * content selection pattern - do fix if pattern found
2282 */
2283 tSCC zInt_Abort_Free_And_ExitSelect0[] =
2284 "int[ \t]+(abort|free|exit)[ \t]*\\(";
2285
2286 #define INT_ABORT_FREE_AND_EXIT_TEST_CT 1
2287 static tTestDesc aInt_Abort_Free_And_ExitTests[] = {
2288 { TT_EGREP, zInt_Abort_Free_And_ExitSelect0, (regex_t*)NULL }, };
2289
2290 /*
2291 * Fix Command Arguments for Int_Abort_Free_And_Exit
2292 */
2293 static const char* apzInt_Abort_Free_And_ExitPatch[] = {
2294 "format",
2295 "void\t%1(",
2296 (char*)NULL };
2297
2298 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2299 *
2300 * Description of Io_Quotes_Def fix
2301 */
2302 tSCC zIo_Quotes_DefName[] =
2303 "io_quotes_def";
2304
2305 /*
2306 * File name selection pattern
2307 */
2308 #define zIo_Quotes_DefList (char*)NULL
2309 /*
2310 * Machine/OS name selection pattern
2311 */
2312 #define apzIo_Quotes_DefMachs (const char**)NULL
2313
2314 /*
2315 * content selection pattern - do fix if pattern found
2316 */
2317 tSCC zIo_Quotes_DefSelect0[] =
2318 "define[ \t]+[A-Z0-9_]+IO[A-Z]*\\([a-zA-Z][,)]";
2319
2320 #define IO_QUOTES_DEF_TEST_CT 1
2321 static tTestDesc aIo_Quotes_DefTests[] = {
2322 { TT_EGREP, zIo_Quotes_DefSelect0, (regex_t*)NULL }, };
2323
2324 /*
2325 * Fix Command Arguments for Io_Quotes_Def
2326 */
2327 static const char* apzIo_Quotes_DefPatch[] = {
2328 "char_macro_def",
2329 "IO",
2330 (char*)NULL };
2331
2332 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2333 *
2334 * Description of Io_Quotes_Use fix
2335 */
2336 tSCC zIo_Quotes_UseName[] =
2337 "io_quotes_use";
2338
2339 /*
2340 * File name selection pattern
2341 */
2342 #define zIo_Quotes_UseList (char*)NULL
2343 /*
2344 * Machine/OS name selection pattern
2345 */
2346 #define apzIo_Quotes_UseMachs (const char**)NULL
2347
2348 /*
2349 * content selection pattern - do fix if pattern found
2350 */
2351 tSCC zIo_Quotes_UseSelect0[] =
2352 "define[ \t]+[A-Z0-9_]+[ \t]+[A-Z0-9_]+IO[A-Z]*[ \t]*\\( *[^,']";
2353
2354 #define IO_QUOTES_USE_TEST_CT 1
2355 static tTestDesc aIo_Quotes_UseTests[] = {
2356 { TT_EGREP, zIo_Quotes_UseSelect0, (regex_t*)NULL }, };
2357
2358 /*
2359 * Fix Command Arguments for Io_Quotes_Use
2360 */
2361 static const char* apzIo_Quotes_UsePatch[] = {
2362 "char_macro_use",
2363 "IO",
2364 (char*)NULL };
2365
2366 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2367 *
2368 * Description of Ip_Missing_Semi fix
2369 */
2370 tSCC zIp_Missing_SemiName[] =
2371 "ip_missing_semi";
2372
2373 /*
2374 * File name selection pattern
2375 */
2376 tSCC zIp_Missing_SemiList[] =
2377 "|netinet/ip.h|";
2378 /*
2379 * Machine/OS name selection pattern
2380 */
2381 #define apzIp_Missing_SemiMachs (const char**)NULL
2382
2383 /*
2384 * content selection pattern - do fix if pattern found
2385 */
2386 tSCC zIp_Missing_SemiSelect0[] =
2387 "}$";
2388
2389 #define IP_MISSING_SEMI_TEST_CT 1
2390 static tTestDesc aIp_Missing_SemiTests[] = {
2391 { TT_EGREP, zIp_Missing_SemiSelect0, (regex_t*)NULL }, };
2392
2393 /*
2394 * Fix Command Arguments for Ip_Missing_Semi
2395 */
2396 static const char* apzIp_Missing_SemiPatch[] = { "sed",
2397 "-e", "/^struct/,/^};/s/}$/};/",
2398 (char*)NULL };
2399
2400 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2401 *
2402 * Description of Irix_Asm_Apostrophe fix
2403 */
2404 tSCC zIrix_Asm_ApostropheName[] =
2405 "irix_asm_apostrophe";
2406
2407 /*
2408 * File name selection pattern
2409 */
2410 tSCC zIrix_Asm_ApostropheList[] =
2411 "|sys/asm.h|";
2412 /*
2413 * Machine/OS name selection pattern
2414 */
2415 #define apzIrix_Asm_ApostropheMachs (const char**)NULL
2416
2417 /*
2418 * content selection pattern - do fix if pattern found
2419 */
2420 tSCC zIrix_Asm_ApostropheSelect0[] =
2421 "^[ \t]*#.*[Ww]e're";
2422
2423 #define IRIX_ASM_APOSTROPHE_TEST_CT 1
2424 static tTestDesc aIrix_Asm_ApostropheTests[] = {
2425 { TT_EGREP, zIrix_Asm_ApostropheSelect0, (regex_t*)NULL }, };
2426
2427 /*
2428 * Fix Command Arguments for Irix_Asm_Apostrophe
2429 */
2430 static const char* apzIrix_Asm_ApostrophePatch[] = {
2431 "format",
2432 "%1 are",
2433 "^([ \t]*#.*[Ww]e)'re",
2434 (char*)NULL };
2435
2436 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2437 *
2438 * Description of Irix_Limits_Const fix
2439 */
2440 tSCC zIrix_Limits_ConstName[] =
2441 "irix_limits_const";
2442
2443 /*
2444 * File name selection pattern
2445 */
2446 tSCC zIrix_Limits_ConstList[] =
2447 "|fixinc-test-limits.h|limits.h|";
2448 /*
2449 * Machine/OS name selection pattern
2450 */
2451 #define apzIrix_Limits_ConstMachs (const char**)NULL
2452
2453 /*
2454 * content selection pattern - do fix if pattern found
2455 */
2456 tSCC zIrix_Limits_ConstSelect0[] =
2457 "^extern const ";
2458
2459 #define IRIX_LIMITS_CONST_TEST_CT 1
2460 static tTestDesc aIrix_Limits_ConstTests[] = {
2461 { TT_EGREP, zIrix_Limits_ConstSelect0, (regex_t*)NULL }, };
2462
2463 /*
2464 * Fix Command Arguments for Irix_Limits_Const
2465 */
2466 static const char* apzIrix_Limits_ConstPatch[] = {
2467 "format",
2468 "extern __const ",
2469 (char*)NULL };
2470
2471 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2472 *
2473 * Description of Irix_Stdio_Va_List fix
2474 */
2475 tSCC zIrix_Stdio_Va_ListName[] =
2476 "irix_stdio_va_list";
2477
2478 /*
2479 * File name selection pattern
2480 */
2481 tSCC zIrix_Stdio_Va_ListList[] =
2482 "|stdio.h|";
2483 /*
2484 * Machine/OS name selection pattern
2485 */
2486 #define apzIrix_Stdio_Va_ListMachs (const char**)NULL
2487
2488 /*
2489 * content selection pattern - do fix if pattern found
2490 */
2491 tSCC zIrix_Stdio_Va_ListSelect0[] =
2492 "(printf\\(.*), /\\* va_list \\*/ char \\*";
2493
2494 #define IRIX_STDIO_VA_LIST_TEST_CT 1
2495 static tTestDesc aIrix_Stdio_Va_ListTests[] = {
2496 { TT_EGREP, zIrix_Stdio_Va_ListSelect0, (regex_t*)NULL }, };
2497
2498 /*
2499 * Fix Command Arguments for Irix_Stdio_Va_List
2500 */
2501 static const char* apzIrix_Stdio_Va_ListPatch[] = {
2502 "format",
2503 "%1, __gnuc_va_list",
2504 (char*)NULL };
2505
2506 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2507 *
2508 * Description of Isc_Fmod fix
2509 */
2510 tSCC zIsc_FmodName[] =
2511 "isc_fmod";
2512
2513 /*
2514 * File name selection pattern
2515 */
2516 tSCC zIsc_FmodList[] =
2517 "|math.h|";
2518 /*
2519 * Machine/OS name selection pattern
2520 */
2521 #define apzIsc_FmodMachs (const char**)NULL
2522
2523 /*
2524 * content selection pattern - do fix if pattern found
2525 */
2526 tSCC zIsc_FmodSelect0[] =
2527 "fmod\\(double\\)";
2528
2529 #define ISC_FMOD_TEST_CT 1
2530 static tTestDesc aIsc_FmodTests[] = {
2531 { TT_EGREP, zIsc_FmodSelect0, (regex_t*)NULL }, };
2532
2533 /*
2534 * Fix Command Arguments for Isc_Fmod
2535 */
2536 static const char* apzIsc_FmodPatch[] = {
2537 "format",
2538 "fmod(double, double)",
2539 (char*)NULL };
2540
2541 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2542 *
2543 * Description of Isc_Omits_With_Stdc fix
2544 */
2545 tSCC zIsc_Omits_With_StdcName[] =
2546 "isc_omits_with_stdc";
2547
2548 /*
2549 * File name selection pattern
2550 */
2551 tSCC zIsc_Omits_With_StdcList[] =
2552 "|stdio.h|math.h|ctype.h|sys/limits.h|sys/fcntl.h|sys/dirent.h|";
2553 /*
2554 * Machine/OS name selection pattern
2555 */
2556 #define apzIsc_Omits_With_StdcMachs (const char**)NULL
2557
2558 /*
2559 * content selection pattern - do fix if pattern found
2560 */
2561 tSCC zIsc_Omits_With_StdcSelect0[] =
2562 "!defined\\(__STDC__\\) && !defined\\(_POSIX_SOURCE\\)";
2563
2564 #define ISC_OMITS_WITH_STDC_TEST_CT 1
2565 static tTestDesc aIsc_Omits_With_StdcTests[] = {
2566 { TT_EGREP, zIsc_Omits_With_StdcSelect0, (regex_t*)NULL }, };
2567
2568 /*
2569 * Fix Command Arguments for Isc_Omits_With_Stdc
2570 */
2571 static const char* apzIsc_Omits_With_StdcPatch[] = {
2572 "format",
2573 "!defined(_POSIX_SOURCE)",
2574 (char*)NULL };
2575
2576 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2577 *
2578 * Description of Kandr_Concat fix
2579 */
2580 tSCC zKandr_ConcatName[] =
2581 "kandr_concat";
2582
2583 /*
2584 * File name selection pattern
2585 */
2586 tSCC zKandr_ConcatList[] =
2587 "|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|";
2588 /*
2589 * Machine/OS name selection pattern
2590 */
2591 #define apzKandr_ConcatMachs (const char**)NULL
2592
2593 /*
2594 * content selection pattern - do fix if pattern found
2595 */
2596 tSCC zKandr_ConcatSelect0[] =
2597 "/\\*\\*/";
2598
2599 #define KANDR_CONCAT_TEST_CT 1
2600 static tTestDesc aKandr_ConcatTests[] = {
2601 { TT_EGREP, zKandr_ConcatSelect0, (regex_t*)NULL }, };
2602
2603 /*
2604 * Fix Command Arguments for Kandr_Concat
2605 */
2606 static const char* apzKandr_ConcatPatch[] = {
2607 "format",
2608 "##",
2609 (char*)NULL };
2610
2611 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2612 *
2613 * Description of Libc1_Ifdefd_Memx fix
2614 */
2615 tSCC zLibc1_Ifdefd_MemxName[] =
2616 "libc1_ifdefd_memx";
2617
2618 /*
2619 * File name selection pattern
2620 */
2621 tSCC zLibc1_Ifdefd_MemxList[] =
2622 "|testing.h|string.h|";
2623 /*
2624 * Machine/OS name selection pattern
2625 */
2626 #define apzLibc1_Ifdefd_MemxMachs (const char**)NULL
2627
2628 /*
2629 * content selection pattern - do fix if pattern found
2630 */
2631 tSCC zLibc1_Ifdefd_MemxSelect0[] =
2632 "' is a built-in function for gcc 2\\.x\\. \\*/";
2633
2634 /*
2635 * content bypass pattern - skip fix if pattern found
2636 */
2637 tSCC zLibc1_Ifdefd_MemxBypass0[] =
2638 "__cplusplus";
2639
2640 #define LIBC1_IFDEFD_MEMX_TEST_CT 2
2641 static tTestDesc aLibc1_Ifdefd_MemxTests[] = {
2642 { TT_NEGREP, zLibc1_Ifdefd_MemxBypass0, (regex_t*)NULL },
2643 { TT_EGREP, zLibc1_Ifdefd_MemxSelect0, (regex_t*)NULL }, };
2644
2645 /*
2646 * Fix Command Arguments for Libc1_Ifdefd_Memx
2647 */
2648 static const char* apzLibc1_Ifdefd_MemxPatch[] = {
2649 "format",
2650 "%1",
2651 "/\\* `mem...' is a built-in function for gcc 2\\.x\\. \\*/\n\
2652 #if defined\\(__STDC__\\) && __GNUC__ < 2\n\
2653 (/\\* .* \\*/\n\
2654 extern [a-z_]+ mem.*(\n\
2655 [^#].*)*;)\n\
2656 #endif",
2657 (char*)NULL };
2658
2659 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2660 *
2661 * Description of Limits_Ifndefs fix
2662 */
2663 tSCC zLimits_IfndefsName[] =
2664 "limits_ifndefs";
2665
2666 /*
2667 * File name selection pattern
2668 */
2669 tSCC zLimits_IfndefsList[] =
2670 "|sys/limits.h|limits.h|";
2671 /*
2672 * Machine/OS name selection pattern
2673 */
2674 #define apzLimits_IfndefsMachs (const char**)NULL
2675
2676 /*
2677 * content bypass pattern - skip fix if pattern found
2678 */
2679 tSCC zLimits_IfndefsBypass0[] =
2680 "ifndef[ \t]+FLT_MIN";
2681
2682 #define LIMITS_IFNDEFS_TEST_CT 1
2683 static tTestDesc aLimits_IfndefsTests[] = {
2684 { TT_NEGREP, zLimits_IfndefsBypass0, (regex_t*)NULL }, };
2685
2686 /*
2687 * Fix Command Arguments for Limits_Ifndefs
2688 */
2689 static const char* apzLimits_IfndefsPatch[] = {
2690 "format",
2691 "#ifndef %1\n\
2692 %0\n\
2693 #endif",
2694 "^[ \t]*#[ \t]*define[ \t]+((FLT|DBL)_(MIN|MAX|DIG))[ \t].*",
2695 (char*)NULL };
2696
2697 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2698 *
2699 * Description of Lynx_Void_Int fix
2700 */
2701 tSCC zLynx_Void_IntName[] =
2702 "lynx_void_int";
2703
2704 /*
2705 * File name selection pattern
2706 */
2707 tSCC zLynx_Void_IntList[] =
2708 "|curses.h|";
2709 /*
2710 * Machine/OS name selection pattern
2711 */
2712 #define apzLynx_Void_IntMachs (const char**)NULL
2713
2714 /*
2715 * content selection pattern - do fix if pattern found
2716 */
2717 tSCC zLynx_Void_IntSelect0[] =
2718 "#[ \t]*define[ \t]+void[ \t]+int[ \t]*";
2719
2720 #define LYNX_VOID_INT_TEST_CT 1
2721 static tTestDesc aLynx_Void_IntTests[] = {
2722 { TT_EGREP, zLynx_Void_IntSelect0, (regex_t*)NULL }, };
2723
2724 /*
2725 * Fix Command Arguments for Lynx_Void_Int
2726 */
2727 static const char* apzLynx_Void_IntPatch[] = {
2728 "format",
2729 "",
2730 (char*)NULL };
2731
2732 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2733 *
2734 * Description of Lynxos_Fcntl_Proto fix
2735 */
2736 tSCC zLynxos_Fcntl_ProtoName[] =
2737 "lynxos_fcntl_proto";
2738
2739 /*
2740 * File name selection pattern
2741 */
2742 tSCC zLynxos_Fcntl_ProtoList[] =
2743 "|fcntl.h|";
2744 /*
2745 * Machine/OS name selection pattern
2746 */
2747 #define apzLynxos_Fcntl_ProtoMachs (const char**)NULL
2748
2749 /*
2750 * content selection pattern - do fix if pattern found
2751 */
2752 tSCC zLynxos_Fcntl_ProtoSelect0[] =
2753 "fcntl[ \t]*\\(int, int, int\\)";
2754
2755 #define LYNXOS_FCNTL_PROTO_TEST_CT 1
2756 static tTestDesc aLynxos_Fcntl_ProtoTests[] = {
2757 { TT_EGREP, zLynxos_Fcntl_ProtoSelect0, (regex_t*)NULL }, };
2758
2759 /*
2760 * Fix Command Arguments for Lynxos_Fcntl_Proto
2761 */
2762 static const char* apzLynxos_Fcntl_ProtoPatch[] = {
2763 "format",
2764 "%1...)",
2765 "(fcntl[ \t]*\\(int, int, )int\\)",
2766 (char*)NULL };
2767
2768 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2769 *
2770 * Description of M88k_Bad_Hypot_Opt fix
2771 */
2772 tSCC zM88k_Bad_Hypot_OptName[] =
2773 "m88k_bad_hypot_opt";
2774
2775 /*
2776 * File name selection pattern
2777 */
2778 tSCC zM88k_Bad_Hypot_OptList[] =
2779 "|math.h|";
2780 /*
2781 * Machine/OS name selection pattern
2782 */
2783 tSCC* apzM88k_Bad_Hypot_OptMachs[] = {
2784 "m88k-motorola-sysv3*",
2785 (const char*)NULL };
2786
2787 /*
2788 * content selection pattern - do fix if pattern found
2789 */
2790 tSCC zM88k_Bad_Hypot_OptSelect0[] =
2791 "^extern double hypot\\(\\);\n";
2792
2793 #define M88K_BAD_HYPOT_OPT_TEST_CT 1
2794 static tTestDesc aM88k_Bad_Hypot_OptTests[] = {
2795 { TT_EGREP, zM88k_Bad_Hypot_OptSelect0, (regex_t*)NULL }, };
2796
2797 /*
2798 * Fix Command Arguments for M88k_Bad_Hypot_Opt
2799 */
2800 static const char* apzM88k_Bad_Hypot_OptPatch[] = {
2801 "format",
2802 "%0/* Workaround a stupid Motorola optimization if one\n\
2803 of x or y is 0.0 and the other is negative! */\n\
2804 #ifdef __STDC__\n\
2805 static __inline__ double fake_hypot (double x, double y)\n\
2806 #else\n\
2807 static __inline__ double fake_hypot (x, y)\n\
2808 \tdouble x, y;\n\
2809 #endif\n\
2810 {\n\
2811 \treturn fabs (hypot (x, y));\n\
2812 }\n\
2813 #define hypot\tfake_hypot\n",
2814 (char*)NULL };
2815
2816 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2817 *
2818 * Description of M88k_Bad_S_If fix
2819 */
2820 tSCC zM88k_Bad_S_IfName[] =
2821 "m88k_bad_s_if";
2822
2823 /*
2824 * File name selection pattern
2825 */
2826 tSCC zM88k_Bad_S_IfList[] =
2827 "|sys/stat.h|";
2828 /*
2829 * Machine/OS name selection pattern
2830 */
2831 tSCC* apzM88k_Bad_S_IfMachs[] = {
2832 "m88k-*-sysv3*",
2833 (const char*)NULL };
2834
2835 /*
2836 * content selection pattern - do fix if pattern found
2837 */
2838 tSCC zM88k_Bad_S_IfSelect0[] =
2839 "#define[ \t]+S_IS[A-Z]+\\(m\\)[ \t]+\\(m[ \t]*&";
2840
2841 #define M88K_BAD_S_IF_TEST_CT 1
2842 static tTestDesc aM88k_Bad_S_IfTests[] = {
2843 { TT_EGREP, zM88k_Bad_S_IfSelect0, (regex_t*)NULL }, };
2844
2845 /*
2846 * Fix Command Arguments for M88k_Bad_S_If
2847 */
2848 static const char* apzM88k_Bad_S_IfPatch[] = {
2849 "format",
2850 "#define %1(m) (((m) & S_IFMT) == %2)",
2851 "#define[ \t]+(S_IS[A-Z]+)\\(m\\)[ \t]+\\(m[ \t]*&[ \t]*(S_IF[A-Z][A-Z][A-Z]+|0[0-9]+)[ \t]*\\)",
2852 (char*)NULL };
2853
2854 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2855 *
2856 * Description of M88k_Multi_Incl fix
2857 */
2858 tSCC zM88k_Multi_InclName[] =
2859 "m88k_multi_incl";
2860
2861 /*
2862 * File name selection pattern
2863 */
2864 tSCC zM88k_Multi_InclList[] =
2865 "|time.h|";
2866 /*
2867 * Machine/OS name selection pattern
2868 */
2869 tSCC* apzM88k_Multi_InclMachs[] = {
2870 "m88k-tektronix-sysv3*",
2871 (const char*)NULL };
2872
2873 /*
2874 * content bypass pattern - skip fix if pattern found
2875 */
2876 tSCC zM88k_Multi_InclBypass0[] =
2877 "#ifndef";
2878
2879 #define M88K_MULTI_INCL_TEST_CT 1
2880 static tTestDesc aM88k_Multi_InclTests[] = {
2881 { TT_NEGREP, zM88k_Multi_InclBypass0, (regex_t*)NULL }, };
2882
2883 /*
2884 * Fix Command Arguments for M88k_Multi_Incl
2885 */
2886 static const char* apzM88k_Multi_InclPatch[] = {
2887 "wrap",
2888 (char*)NULL };
2889
2890 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2891 *
2892 * Description of Machine_Ansi_H_Va_List fix
2893 */
2894 tSCC zMachine_Ansi_H_Va_ListName[] =
2895 "machine_ansi_h_va_list";
2896
2897 /*
2898 * File name selection pattern
2899 */
2900 #define zMachine_Ansi_H_Va_ListList (char*)NULL
2901 /*
2902 * Machine/OS name selection pattern
2903 */
2904 #define apzMachine_Ansi_H_Va_ListMachs (const char**)NULL
2905
2906 /*
2907 * content selection pattern - do fix if pattern found
2908 */
2909 tSCC zMachine_Ansi_H_Va_ListSelect0[] =
2910 "define[ \t]+_BSD_VA_LIST_[ \t]";
2911
2912 /*
2913 * content bypass pattern - skip fix if pattern found
2914 */
2915 tSCC zMachine_Ansi_H_Va_ListBypass0[] =
2916 "__builtin_va_list";
2917
2918 #define MACHINE_ANSI_H_VA_LIST_TEST_CT 2
2919 static tTestDesc aMachine_Ansi_H_Va_ListTests[] = {
2920 { TT_NEGREP, zMachine_Ansi_H_Va_ListBypass0, (regex_t*)NULL },
2921 { TT_EGREP, zMachine_Ansi_H_Va_ListSelect0, (regex_t*)NULL }, };
2922
2923 /*
2924 * Fix Command Arguments for Machine_Ansi_H_Va_List
2925 */
2926 static const char* apzMachine_Ansi_H_Va_ListPatch[] = {
2927 "format",
2928 "%1__builtin_va_list",
2929 "(define[ \t]+_BSD_VA_LIST_[ \t]+).*",
2930 (char*)NULL };
2931
2932 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2933 *
2934 * Description of Machine_Name fix
2935 */
2936 tSCC zMachine_NameName[] =
2937 "machine_name";
2938
2939 /*
2940 * File name selection pattern
2941 */
2942 #define zMachine_NameList (char*)NULL
2943 /*
2944 * Machine/OS name selection pattern
2945 */
2946 #define apzMachine_NameMachs (const char**)NULL
2947
2948 /*
2949 * perform the C function call test
2950 */
2951 tSCC zMachine_NameFTst0[] = "machine_name";
2952
2953 #define MACHINE_NAME_TEST_CT 1
2954 static tTestDesc aMachine_NameTests[] = {
2955 { TT_FUNCTION, zMachine_NameFTst0, 0 /* unused */ }, };
2956
2957 /*
2958 * Fix Command Arguments for Machine_Name
2959 */
2960 static const char* apzMachine_NamePatch[] = {
2961 "machine_name",
2962 (char*)NULL };
2963
2964 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2965 *
2966 * Description of Math_Exception fix
2967 */
2968 tSCC zMath_ExceptionName[] =
2969 "math_exception";
2970
2971 /*
2972 * File name selection pattern
2973 */
2974 tSCC zMath_ExceptionList[] =
2975 "|math.h|";
2976 /*
2977 * Machine/OS name selection pattern
2978 */
2979 #define apzMath_ExceptionMachs (const char**)NULL
2980
2981 /*
2982 * content selection pattern - do fix if pattern found
2983 */
2984 tSCC zMath_ExceptionSelect0[] =
2985 "struct exception";
2986
2987 /*
2988 * content bypass pattern - skip fix if pattern found
2989 */
2990 tSCC zMath_ExceptionBypass0[] =
2991 "We have a problem when using C\\+\\+";
2992
2993 #define MATH_EXCEPTION_TEST_CT 2
2994 static tTestDesc aMath_ExceptionTests[] = {
2995 { TT_NEGREP, zMath_ExceptionBypass0, (regex_t*)NULL },
2996 { TT_EGREP, zMath_ExceptionSelect0, (regex_t*)NULL }, };
2997
2998 /*
2999 * Fix Command Arguments for Math_Exception
3000 */
3001 static const char* apzMath_ExceptionPatch[] = {
3002 "wrap",
3003 "#ifdef __cplusplus\n\
3004 #define exception __math_exception\n\
3005 #endif\n",
3006 "#ifdef __cplusplus\n\
3007 #undef exception\n\
3008 #endif\n",
3009 (char*)NULL };
3010
3011 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3012 *
3013 * Description of Math_Huge_Val_From_Dbl_Max fix
3014 */
3015 tSCC zMath_Huge_Val_From_Dbl_MaxName[] =
3016 "math_huge_val_from_dbl_max";
3017
3018 /*
3019 * File name selection pattern
3020 */
3021 tSCC zMath_Huge_Val_From_Dbl_MaxList[] =
3022 "|math.h|";
3023 /*
3024 * Machine/OS name selection pattern
3025 */
3026 #define apzMath_Huge_Val_From_Dbl_MaxMachs (const char**)NULL
3027
3028 /*
3029 * content selection pattern - do fix if pattern found
3030 */
3031 tSCC zMath_Huge_Val_From_Dbl_MaxSelect0[] =
3032 "define[ \t]+HUGE_VAL[ \t]+DBL_MAX";
3033
3034 /*
3035 * content bypass pattern - skip fix if pattern found
3036 */
3037 tSCC zMath_Huge_Val_From_Dbl_MaxBypass0[] =
3038 "define[ \t]+DBL_MAX";
3039
3040 #define MATH_HUGE_VAL_FROM_DBL_MAX_TEST_CT 2
3041 static tTestDesc aMath_Huge_Val_From_Dbl_MaxTests[] = {
3042 { TT_NEGREP, zMath_Huge_Val_From_Dbl_MaxBypass0, (regex_t*)NULL },
3043 { TT_EGREP, zMath_Huge_Val_From_Dbl_MaxSelect0, (regex_t*)NULL }, };
3044
3045 /*
3046 * Fix Command Arguments for Math_Huge_Val_From_Dbl_Max
3047 */
3048 static const char* apzMath_Huge_Val_From_Dbl_MaxPatch[] = { "sh", "-c",
3049 "\tdbl_max_def=`egrep 'define[ \t]+DBL_MAX[ \t]+.*' float.h | sed 's/.*DBL_MAX[ \t]*//' 2>/dev/null`\n\n\
3050 \tif ( test -n \"${dbl_max_def}\" ) > /dev/null 2>&1\n\
3051 \tthen sed -e '/define[ \t]*HUGE_VAL[ \t]*DBL_MAX/s@DBL_MAX@'\"$dbl_max_def@\"\n\
3052 \telse cat\n\
3053 \tfi",
3054 (char*)NULL };
3055
3056 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3057 *
3058 * Description of Math_Huge_Val_Ifndef fix
3059 */
3060 tSCC zMath_Huge_Val_IfndefName[] =
3061 "math_huge_val_ifndef";
3062
3063 /*
3064 * File name selection pattern
3065 */
3066 tSCC zMath_Huge_Val_IfndefList[] =
3067 "|math.h|math/math.h|";
3068 /*
3069 * Machine/OS name selection pattern
3070 */
3071 #define apzMath_Huge_Val_IfndefMachs (const char**)NULL
3072
3073 /*
3074 * content selection pattern - do fix if pattern found
3075 */
3076 tSCC zMath_Huge_Val_IfndefSelect0[] =
3077 "define[ \t]+HUGE_VAL";
3078
3079 #define MATH_HUGE_VAL_IFNDEF_TEST_CT 1
3080 static tTestDesc aMath_Huge_Val_IfndefTests[] = {
3081 { TT_EGREP, zMath_Huge_Val_IfndefSelect0, (regex_t*)NULL }, };
3082
3083 /*
3084 * Fix Command Arguments for Math_Huge_Val_Ifndef
3085 */
3086 static const char* apzMath_Huge_Val_IfndefPatch[] = {
3087 "format",
3088 "#ifndef HUGE_VAL\n\
3089 %0\n\
3090 #endif",
3091 "^[ \t]*#[ \t]*define[ \t]+HUGE_VAL[ \t].*",
3092 (char*)NULL };
3093
3094 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3095 *
3096 * Description of Nested_Auth_Des fix
3097 */
3098 tSCC zNested_Auth_DesName[] =
3099 "nested_auth_des";
3100
3101 /*
3102 * File name selection pattern
3103 */
3104 tSCC zNested_Auth_DesList[] =
3105 "|rpc/rpc.h|";
3106 /*
3107 * Machine/OS name selection pattern
3108 */
3109 #define apzNested_Auth_DesMachs (const char**)NULL
3110
3111 /*
3112 * content selection pattern - do fix if pattern found
3113 */
3114 tSCC zNested_Auth_DesSelect0[] =
3115 "(/\\*.*rpc/auth_des\\.h>.*)/\\*";
3116
3117 #define NESTED_AUTH_DES_TEST_CT 1
3118 static tTestDesc aNested_Auth_DesTests[] = {
3119 { TT_EGREP, zNested_Auth_DesSelect0, (regex_t*)NULL }, };
3120
3121 /*
3122 * Fix Command Arguments for Nested_Auth_Des
3123 */
3124 static const char* apzNested_Auth_DesPatch[] = {
3125 "format",
3126 "%1*/ /*",
3127 (char*)NULL };
3128
3129 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3130 *
3131 * Description of Nested_Motorola fix
3132 */
3133 tSCC zNested_MotorolaName[] =
3134 "nested_motorola";
3135
3136 /*
3137 * File name selection pattern
3138 */
3139 tSCC zNested_MotorolaList[] =
3140 "|sys/limits.h|limits.h|";
3141 /*
3142 * Machine/OS name selection pattern
3143 */
3144 tSCC* apzNested_MotorolaMachs[] = {
3145 "m68k-motorola-sysv*",
3146 (const char*)NULL };
3147
3148 /*
3149 * content selection pattern - do fix if pattern found
3150 */
3151 tSCC zNested_MotorolaSelect0[] =
3152 "max # bytes atomic in write|error value returned by Math lib";
3153
3154 #define NESTED_MOTOROLA_TEST_CT 1
3155 static tTestDesc aNested_MotorolaTests[] = {
3156 { TT_EGREP, zNested_MotorolaSelect0, (regex_t*)NULL }, };
3157
3158 /*
3159 * Fix Command Arguments for Nested_Motorola
3160 */
3161 static const char* apzNested_MotorolaPatch[] = { "sed",
3162 "-e", "s@^\\(#undef[ \t][ \t]*PIPE_BUF[ \t]*/\\* max # bytes atomic in write to a\\)$@\\1 */@",
3163 "-e", "s@\\(/\\*#define\tHUGE_VAL\t3.[0-9e+]* \\)\\(/\\*error value returned by Math lib\\*/\\)$@\\1*/ \\2@",
3164 (char*)NULL };
3165
3166 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3167 *
3168 * Description of Nested_Sys_Limits fix
3169 */
3170 tSCC zNested_Sys_LimitsName[] =
3171 "nested_sys_limits";
3172
3173 /*
3174 * File name selection pattern
3175 */
3176 tSCC zNested_Sys_LimitsList[] =
3177 "|sys/limits.h|";
3178 /*
3179 * Machine/OS name selection pattern
3180 */
3181 #define apzNested_Sys_LimitsMachs (const char**)NULL
3182
3183 /*
3184 * content selection pattern - do fix if pattern found
3185 */
3186 tSCC zNested_Sys_LimitsSelect0[] =
3187 "CHILD_MAX";
3188
3189 #define NESTED_SYS_LIMITS_TEST_CT 1
3190 static tTestDesc aNested_Sys_LimitsTests[] = {
3191 { TT_EGREP, zNested_Sys_LimitsSelect0, (regex_t*)NULL }, };
3192
3193 /*
3194 * Fix Command Arguments for Nested_Sys_Limits
3195 */
3196 static const char* apzNested_Sys_LimitsPatch[] = { "sed",
3197 "-e", "/CHILD_MAX/s,/\\* Max, Max,",
3198 "-e", "/OPEN_MAX/s,/\\* Max, Max,",
3199 (char*)NULL };
3200
3201 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3202 *
3203 * Description of News_Os_Recursion fix
3204 */
3205 tSCC zNews_Os_RecursionName[] =
3206 "news_os_recursion";
3207
3208 /*
3209 * File name selection pattern
3210 */
3211 tSCC zNews_Os_RecursionList[] =
3212 "|stdlib.h|";
3213 /*
3214 * Machine/OS name selection pattern
3215 */
3216 #define apzNews_Os_RecursionMachs (const char**)NULL
3217
3218 /*
3219 * content selection pattern - do fix if pattern found
3220 */
3221 tSCC zNews_Os_RecursionSelect0[] =
3222 "[ \t]*#include <stdlib\\.h>.*";
3223
3224 #define NEWS_OS_RECURSION_TEST_CT 1
3225 static tTestDesc aNews_Os_RecursionTests[] = {
3226 { TT_EGREP, zNews_Os_RecursionSelect0, (regex_t*)NULL }, };
3227
3228 /*
3229 * Fix Command Arguments for News_Os_Recursion
3230 */
3231 static const char* apzNews_Os_RecursionPatch[] = {
3232 "format",
3233 "#ifdef BOGUS_RECURSION\n\
3234 %0\n\
3235 #endif",
3236 (char*)NULL };
3237
3238 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3239 *
3240 * Description of Next_Math_Prefix fix
3241 */
3242 tSCC zNext_Math_PrefixName[] =
3243 "next_math_prefix";
3244
3245 /*
3246 * File name selection pattern
3247 */
3248 tSCC zNext_Math_PrefixList[] =
3249 "|ansi/math.h|";
3250 /*
3251 * Machine/OS name selection pattern
3252 */
3253 #define apzNext_Math_PrefixMachs (const char**)NULL
3254
3255 /*
3256 * content selection pattern - do fix if pattern found
3257 */
3258 tSCC zNext_Math_PrefixSelect0[] =
3259 "^extern[ \t]+double[ \t]+__const__[ \t]";
3260
3261 #define NEXT_MATH_PREFIX_TEST_CT 1
3262 static tTestDesc aNext_Math_PrefixTests[] = {
3263 { TT_EGREP, zNext_Math_PrefixSelect0, (regex_t*)NULL }, };
3264
3265 /*
3266 * Fix Command Arguments for Next_Math_Prefix
3267 */
3268 static const char* apzNext_Math_PrefixPatch[] = {
3269 "format",
3270 "extern double %1(",
3271 "^extern[ \t]+double[ \t]+__const__[ \t]+([a-z]+)\\(",
3272 (char*)NULL };
3273
3274 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3275 *
3276 * Description of Next_Template fix
3277 */
3278 tSCC zNext_TemplateName[] =
3279 "next_template";
3280
3281 /*
3282 * File name selection pattern
3283 */
3284 tSCC zNext_TemplateList[] =
3285 "|bsd/libc.h|";
3286 /*
3287 * Machine/OS name selection pattern
3288 */
3289 #define apzNext_TemplateMachs (const char**)NULL
3290
3291 /*
3292 * content selection pattern - do fix if pattern found
3293 */
3294 tSCC zNext_TemplateSelect0[] =
3295 "[ \t]template\\)";
3296
3297 #define NEXT_TEMPLATE_TEST_CT 1
3298 static tTestDesc aNext_TemplateTests[] = {
3299 { TT_EGREP, zNext_TemplateSelect0, (regex_t*)NULL }, };
3300
3301 /*
3302 * Fix Command Arguments for Next_Template
3303 */
3304 static const char* apzNext_TemplatePatch[] = {
3305 "format",
3306 "(%1)",
3307 "\\(([^)]*)[ \t]template\\)",
3308 (char*)NULL };
3309
3310 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3311 *
3312 * Description of Next_Volitile fix
3313 */
3314 tSCC zNext_VolitileName[] =
3315 "next_volitile";
3316
3317 /*
3318 * File name selection pattern
3319 */
3320 tSCC zNext_VolitileList[] =
3321 "|ansi/stdlib.h|";
3322 /*
3323 * Machine/OS name selection pattern
3324 */
3325 #define apzNext_VolitileMachs (const char**)NULL
3326
3327 /*
3328 * content selection pattern - do fix if pattern found
3329 */
3330 tSCC zNext_VolitileSelect0[] =
3331 "^extern[ \t]+volatile[ \t]+void[ \t]";
3332
3333 #define NEXT_VOLITILE_TEST_CT 1
3334 static tTestDesc aNext_VolitileTests[] = {
3335 { TT_EGREP, zNext_VolitileSelect0, (regex_t*)NULL }, };
3336
3337 /*
3338 * Fix Command Arguments for Next_Volitile
3339 */
3340 static const char* apzNext_VolitilePatch[] = {
3341 "format",
3342 "extern void %1(",
3343 "^extern[ \t]+volatile[ \t]+void[ \t]+(exit|abort)\\(",
3344 (char*)NULL };
3345
3346 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3347 *
3348 * Description of Next_Wait_Union fix
3349 */
3350 tSCC zNext_Wait_UnionName[] =
3351 "next_wait_union";
3352
3353 /*
3354 * File name selection pattern
3355 */
3356 tSCC zNext_Wait_UnionList[] =
3357 "|sys/wait.h|";
3358 /*
3359 * Machine/OS name selection pattern
3360 */
3361 #define apzNext_Wait_UnionMachs (const char**)NULL
3362
3363 /*
3364 * content selection pattern - do fix if pattern found
3365 */
3366 tSCC zNext_Wait_UnionSelect0[] =
3367 "wait\\(union wait";
3368
3369 #define NEXT_WAIT_UNION_TEST_CT 1
3370 static tTestDesc aNext_Wait_UnionTests[] = {
3371 { TT_EGREP, zNext_Wait_UnionSelect0, (regex_t*)NULL }, };
3372
3373 /*
3374 * Fix Command Arguments for Next_Wait_Union
3375 */
3376 static const char* apzNext_Wait_UnionPatch[] = {
3377 "format",
3378 "wait(void",
3379 (char*)NULL };
3380
3381 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3382 *
3383 * Description of Nodeent_Syntax fix
3384 */
3385 tSCC zNodeent_SyntaxName[] =
3386 "nodeent_syntax";
3387
3388 /*
3389 * File name selection pattern
3390 */
3391 tSCC zNodeent_SyntaxList[] =
3392 "|netdnet/dnetdb.h|";
3393 /*
3394 * Machine/OS name selection pattern
3395 */
3396 #define apzNodeent_SyntaxMachs (const char**)NULL
3397
3398 /*
3399 * content selection pattern - do fix if pattern found
3400 */
3401 tSCC zNodeent_SyntaxSelect0[] =
3402 "char[ \t]*\\*na_addr[ \t]*$";
3403
3404 #define NODEENT_SYNTAX_TEST_CT 1
3405 static tTestDesc aNodeent_SyntaxTests[] = {
3406 { TT_EGREP, zNodeent_SyntaxSelect0, (regex_t*)NULL }, };
3407
3408 /*
3409 * Fix Command Arguments for Nodeent_Syntax
3410 */
3411 static const char* apzNodeent_SyntaxPatch[] = {
3412 "format",
3413 "%0;",
3414 (char*)NULL };
3415
3416 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3417 *
3418 * Description of Osf_Namespace_A fix
3419 */
3420 tSCC zOsf_Namespace_AName[] =
3421 "osf_namespace_a";
3422
3423 /*
3424 * File name selection pattern
3425 */
3426 tSCC zOsf_Namespace_AList[] =
3427 "|reg_types.h|sys/lc_core.h|";
3428 /*
3429 * Machine/OS name selection pattern
3430 */
3431 #define apzOsf_Namespace_AMachs (const char**)NULL
3432
3433 /*
3434 * perform the 'test' shell command - do fix on success
3435 */
3436 tSCC zOsf_Namespace_ATest0[] =
3437 " -r reg_types.h";
3438 tSCC zOsf_Namespace_ATest1[] =
3439 " -r sys/lc_core.h";
3440 tSCC zOsf_Namespace_ATest2[] =
3441 " -n \"`grep '} regex_t;' reg_types.h`\"";
3442 tSCC zOsf_Namespace_ATest3[] =
3443 " -z \"`grep __regex_t regex.h`\"";
3444
3445 #define OSF_NAMESPACE_A_TEST_CT 4
3446 static tTestDesc aOsf_Namespace_ATests[] = {
3447 { TT_TEST, zOsf_Namespace_ATest0, 0 /* unused */ },
3448 { TT_TEST, zOsf_Namespace_ATest1, 0 /* unused */ },
3449 { TT_TEST, zOsf_Namespace_ATest2, 0 /* unused */ },
3450 { TT_TEST, zOsf_Namespace_ATest3, 0 /* unused */ }, };
3451
3452 /*
3453 * Fix Command Arguments for Osf_Namespace_A
3454 */
3455 static const char* apzOsf_Namespace_APatch[] = {
3456 "format",
3457 "__%0",
3458 "reg(ex|off|match)_t",
3459 (char*)NULL };
3460
3461 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3462 *
3463 * Description of Osf_Namespace_C fix
3464 */
3465 tSCC zOsf_Namespace_CName[] =
3466 "osf_namespace_c";
3467
3468 /*
3469 * File name selection pattern
3470 */
3471 tSCC zOsf_Namespace_CList[] =
3472 "|regex.h|";
3473 /*
3474 * Machine/OS name selection pattern
3475 */
3476 #define apzOsf_Namespace_CMachs (const char**)NULL
3477
3478 /*
3479 * content selection pattern - do fix if pattern found
3480 */
3481 tSCC zOsf_Namespace_CSelect0[] =
3482 "#include <reg_types.h>.*";
3483
3484 /*
3485 * perform the 'test' shell command - do fix on success
3486 */
3487 tSCC zOsf_Namespace_CTest0[] =
3488 " -r reg_types.h";
3489 tSCC zOsf_Namespace_CTest1[] =
3490 " -r sys/lc_core.h";
3491 tSCC zOsf_Namespace_CTest2[] =
3492 " -n \"`grep '} regex_t;' reg_types.h`\"";
3493 tSCC zOsf_Namespace_CTest3[] =
3494 " -z \"`grep __regex_t regex.h`\"";
3495
3496 #define OSF_NAMESPACE_C_TEST_CT 5
3497 static tTestDesc aOsf_Namespace_CTests[] = {
3498 { TT_TEST, zOsf_Namespace_CTest0, 0 /* unused */ },
3499 { TT_TEST, zOsf_Namespace_CTest1, 0 /* unused */ },
3500 { TT_TEST, zOsf_Namespace_CTest2, 0 /* unused */ },
3501 { TT_TEST, zOsf_Namespace_CTest3, 0 /* unused */ },
3502 { TT_EGREP, zOsf_Namespace_CSelect0, (regex_t*)NULL }, };
3503
3504 /*
3505 * Fix Command Arguments for Osf_Namespace_C
3506 */
3507 static const char* apzOsf_Namespace_CPatch[] = {
3508 "format",
3509 "%0\n\
3510 typedef __regex_t\tregex_t;\n\
3511 typedef __regoff_t\tregoff_t;\n\
3512 typedef __regmatch_t\tregmatch_t;",
3513 (char*)NULL };
3514
3515 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3516 *
3517 * Description of Pthread_Page_Size fix
3518 */
3519 tSCC zPthread_Page_SizeName[] =
3520 "pthread_page_size";
3521
3522 /*
3523 * File name selection pattern
3524 */
3525 tSCC zPthread_Page_SizeList[] =
3526 "|pthread.h|";
3527 /*
3528 * Machine/OS name selection pattern
3529 */
3530 #define apzPthread_Page_SizeMachs (const char**)NULL
3531
3532 /*
3533 * content selection pattern - do fix if pattern found
3534 */
3535 tSCC zPthread_Page_SizeSelect0[] =
3536 "^int __page_size";
3537
3538 #define PTHREAD_PAGE_SIZE_TEST_CT 1
3539 static tTestDesc aPthread_Page_SizeTests[] = {
3540 { TT_EGREP, zPthread_Page_SizeSelect0, (regex_t*)NULL }, };
3541
3542 /*
3543 * Fix Command Arguments for Pthread_Page_Size
3544 */
3545 static const char* apzPthread_Page_SizePatch[] = {
3546 "format",
3547 "extern %0",
3548 (char*)NULL };
3549
3550 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3551 *
3552 * Description of Read_Ret_Type fix
3553 */
3554 tSCC zRead_Ret_TypeName[] =
3555 "read_ret_type";
3556
3557 /*
3558 * File name selection pattern
3559 */
3560 tSCC zRead_Ret_TypeList[] =
3561 "|stdio.h|";
3562 /*
3563 * Machine/OS name selection pattern
3564 */
3565 #define apzRead_Ret_TypeMachs (const char**)NULL
3566
3567 /*
3568 * content selection pattern - do fix if pattern found
3569 */
3570 tSCC zRead_Ret_TypeSelect0[] =
3571 "extern int\t.*, fread\\(\\), fwrite\\(\\)";
3572
3573 #define READ_RET_TYPE_TEST_CT 1
3574 static tTestDesc aRead_Ret_TypeTests[] = {
3575 { TT_EGREP, zRead_Ret_TypeSelect0, (regex_t*)NULL }, };
3576
3577 /*
3578 * Fix Command Arguments for Read_Ret_Type
3579 */
3580 static const char* apzRead_Ret_TypePatch[] = {
3581 "format",
3582 "extern unsigned int fread(), fwrite();\n\
3583 %1%2",
3584 "(extern int\t.*), fread\\(\\), fwrite\\(\\)(.*)",
3585 (char*)NULL };
3586
3587 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3588 *
3589 * Description of Rs6000_Double fix
3590 */
3591 tSCC zRs6000_DoubleName[] =
3592 "rs6000_double";
3593
3594 /*
3595 * File name selection pattern
3596 */
3597 tSCC zRs6000_DoubleList[] =
3598 "|math.h|";
3599 /*
3600 * Machine/OS name selection pattern
3601 */
3602 #define apzRs6000_DoubleMachs (const char**)NULL
3603
3604 /*
3605 * content selection pattern - do fix if pattern found
3606 */
3607 tSCC zRs6000_DoubleSelect0[] =
3608 "[^a-zA-Z_]class\\(";
3609
3610 #define RS6000_DOUBLE_TEST_CT 1
3611 static tTestDesc aRs6000_DoubleTests[] = {
3612 { TT_EGREP, zRs6000_DoubleSelect0, (regex_t*)NULL }, };
3613
3614 /*
3615 * Fix Command Arguments for Rs6000_Double
3616 */
3617 static const char* apzRs6000_DoublePatch[] = {
3618 "format",
3619 "#ifndef __cplusplus\n\
3620 %0\n\
3621 #endif",
3622 "^.*[^a-zA-Z_]class\\(.*",
3623 (char*)NULL };
3624
3625 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3626 *
3627 * Description of Rs6000_Fchmod fix
3628 */
3629 tSCC zRs6000_FchmodName[] =
3630 "rs6000_fchmod";
3631
3632 /*
3633 * File name selection pattern
3634 */
3635 tSCC zRs6000_FchmodList[] =
3636 "|sys/stat.h|";
3637 /*
3638 * Machine/OS name selection pattern
3639 */
3640 #define apzRs6000_FchmodMachs (const char**)NULL
3641
3642 /*
3643 * content selection pattern - do fix if pattern found
3644 */
3645 tSCC zRs6000_FchmodSelect0[] =
3646 "fchmod\\(char \\*";
3647
3648 #define RS6000_FCHMOD_TEST_CT 1
3649 static tTestDesc aRs6000_FchmodTests[] = {
3650 { TT_EGREP, zRs6000_FchmodSelect0, (regex_t*)NULL }, };
3651
3652 /*
3653 * Fix Command Arguments for Rs6000_Fchmod
3654 */
3655 static const char* apzRs6000_FchmodPatch[] = {
3656 "format",
3657 "fchmod(int",
3658 (char*)NULL };
3659
3660 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3661 *
3662 * Description of Rs6000_Param fix
3663 */
3664 tSCC zRs6000_ParamName[] =
3665 "rs6000_param";
3666
3667 /*
3668 * File name selection pattern
3669 */
3670 tSCC zRs6000_ParamList[] =
3671 "|stdio.h|unistd.h|";
3672 /*
3673 * Machine/OS name selection pattern
3674 */
3675 #define apzRs6000_ParamMachs (const char**)NULL
3676
3677 /*
3678 * content selection pattern - do fix if pattern found
3679 */
3680 tSCC zRs6000_ParamSelect0[] =
3681 "rename\\(const char \\*old, const char \\*new\\)";
3682
3683 #define RS6000_PARAM_TEST_CT 1
3684 static tTestDesc aRs6000_ParamTests[] = {
3685 { TT_EGREP, zRs6000_ParamSelect0, (regex_t*)NULL }, };
3686
3687 /*
3688 * Fix Command Arguments for Rs6000_Param
3689 */
3690 static const char* apzRs6000_ParamPatch[] = {
3691 "format",
3692 "rename(const char *_old, const char *_new)",
3693 (char*)NULL };
3694
3695 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3696 *
3697 * Description of Sco_Static_Func fix
3698 */
3699 tSCC zSco_Static_FuncName[] =
3700 "sco_static_func";
3701
3702 /*
3703 * File name selection pattern
3704 */
3705 tSCC zSco_Static_FuncList[] =
3706 "|sys/stat.h|";
3707 /*
3708 * Machine/OS name selection pattern
3709 */
3710 tSCC* apzSco_Static_FuncMachs[] = {
3711 "i?86-*-sco3.2*",
3712 (const char*)NULL };
3713
3714 /*
3715 * content selection pattern - do fix if pattern found
3716 */
3717 tSCC zSco_Static_FuncSelect0[] =
3718 "^static int";
3719
3720 #define SCO_STATIC_FUNC_TEST_CT 1
3721 static tTestDesc aSco_Static_FuncTests[] = {
3722 { TT_EGREP, zSco_Static_FuncSelect0, (regex_t*)NULL }, };
3723
3724 /*
3725 * Fix Command Arguments for Sco_Static_Func
3726 */
3727 static const char* apzSco_Static_FuncPatch[] = { "sed",
3728 "-e", "/^static int/i\\\n\
3729 #if __cplusplus\\\n\
3730 extern \"C\" {\\\n\
3731 #endif /* __cplusplus */",
3732 "-e", "/^}$/a\\\n\
3733 #if __cplusplus\\\n\
3734 }\\\n\
3735 #endif /* __cplusplus */",
3736 (char*)NULL };
3737
3738 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3739 *
3740 * Description of Sco_Utime fix
3741 */
3742 tSCC zSco_UtimeName[] =
3743 "sco_utime";
3744
3745 /*
3746 * File name selection pattern
3747 */
3748 tSCC zSco_UtimeList[] =
3749 "|sys/times.h|";
3750 /*
3751 * Machine/OS name selection pattern
3752 */
3753 tSCC* apzSco_UtimeMachs[] = {
3754 "i?86-*-sco3.2v4*",
3755 (const char*)NULL };
3756
3757 /*
3758 * content selection pattern - do fix if pattern found
3759 */
3760 tSCC zSco_UtimeSelect0[] =
3761 "\\(const char \\*, struct utimbuf \\*\\);";
3762
3763 #define SCO_UTIME_TEST_CT 1
3764 static tTestDesc aSco_UtimeTests[] = {
3765 { TT_EGREP, zSco_UtimeSelect0, (regex_t*)NULL }, };
3766
3767 /*
3768 * Fix Command Arguments for Sco_Utime
3769 */
3770 static const char* apzSco_UtimePatch[] = {
3771 "format",
3772 "(const char *, const struct utimbuf *);",
3773 (char*)NULL };
3774
3775 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3776 *
3777 * Description of Solaris_Mutex_Init fix
3778 */
3779 tSCC zSolaris_Mutex_InitName[] =
3780 "solaris_mutex_init";
3781
3782 /*
3783 * File name selection pattern
3784 */
3785 tSCC zSolaris_Mutex_InitList[] =
3786 "|pthread.h|";
3787 /*
3788 * Machine/OS name selection pattern
3789 */
3790 #define apzSolaris_Mutex_InitMachs (const char**)NULL
3791
3792 /*
3793 * content selection pattern - do fix if pattern found
3794 */
3795 tSCC zSolaris_Mutex_InitSelect0[] =
3796 "@\\(#\\)pthread.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
3797
3798 #define SOLARIS_MUTEX_INIT_TEST_CT 1
3799 static tTestDesc aSolaris_Mutex_InitTests[] = {
3800 { TT_EGREP, zSolaris_Mutex_InitSelect0, (regex_t*)NULL }, };
3801
3802 /*
3803 * Fix Command Arguments for Solaris_Mutex_Init
3804 */
3805 static const char* apzSolaris_Mutex_InitPatch[] = {
3806 "format",
3807 "#if __STDC__ - 0 == 0 && !defined(_NO_LONGLONG)\n\
3808 %0\n\
3809 #else\n\
3810 %1, {0}}%3\n\
3811 #endif",
3812 "(^#define[ \t]+PTHREAD_(MUTEX|COND)_INITIALIZER[ \t]+{.*),[ \t]*0}(|[ \t].*)$",
3813 (char*)NULL };
3814
3815 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3816 *
3817 * Description of Statsswtch fix
3818 */
3819 tSCC zStatsswtchName[] =
3820 "statsswtch";
3821
3822 /*
3823 * File name selection pattern
3824 */
3825 tSCC zStatsswtchList[] =
3826 "|rpcsvc/rstat.h|";
3827 /*
3828 * Machine/OS name selection pattern
3829 */
3830 #define apzStatsswtchMachs (const char**)NULL
3831
3832 /*
3833 * content selection pattern - do fix if pattern found
3834 */
3835 tSCC zStatsswtchSelect0[] =
3836 "boottime$";
3837
3838 #define STATSSWTCH_TEST_CT 1
3839 static tTestDesc aStatsswtchTests[] = {
3840 { TT_EGREP, zStatsswtchSelect0, (regex_t*)NULL }, };
3841
3842 /*
3843 * Fix Command Arguments for Statsswtch
3844 */
3845 static const char* apzStatsswtchPatch[] = {
3846 "format",
3847 "boottime;",
3848 (char*)NULL };
3849
3850 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3851 *
3852 * Description of Stdio_Stdarg_H fix
3853 */
3854 tSCC zStdio_Stdarg_HName[] =
3855 "stdio_stdarg_h";
3856
3857 /*
3858 * File name selection pattern
3859 */
3860 tSCC zStdio_Stdarg_HList[] =
3861 "|stdio.h|";
3862 /*
3863 * Machine/OS name selection pattern
3864 */
3865 #define apzStdio_Stdarg_HMachs (const char**)NULL
3866
3867 /*
3868 * content bypass pattern - skip fix if pattern found
3869 */
3870 tSCC zStdio_Stdarg_HBypass0[] =
3871 "include.*(stdarg.h|machine/ansi.h)";
3872
3873 #define STDIO_STDARG_H_TEST_CT 1
3874 static tTestDesc aStdio_Stdarg_HTests[] = {
3875 { TT_NEGREP, zStdio_Stdarg_HBypass0, (regex_t*)NULL }, };
3876
3877 /*
3878 * Fix Command Arguments for Stdio_Stdarg_H
3879 */
3880 static const char* apzStdio_Stdarg_HPatch[] = {
3881 "wrap",
3882 "#define __need___va_list\n\
3883 #include <stdarg.h>\n",
3884 (char*)NULL };
3885
3886 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3887 *
3888 * Description of Stdio_Va_List fix
3889 */
3890 tSCC zStdio_Va_ListName[] =
3891 "stdio_va_list";
3892
3893 /*
3894 * File name selection pattern
3895 */
3896 tSCC zStdio_Va_ListList[] =
3897 "|stdio.h|";
3898 /*
3899 * Machine/OS name selection pattern
3900 */
3901 #define apzStdio_Va_ListMachs (const char**)NULL
3902
3903 /*
3904 * content bypass pattern - skip fix if pattern found
3905 */
3906 tSCC zStdio_Va_ListBypass0[] =
3907 "__gnuc_va_list|_BSD_VA_LIST_|__DJ_va_list";
3908
3909 #define STDIO_VA_LIST_TEST_CT 1
3910 static tTestDesc aStdio_Va_ListTests[] = {
3911 { TT_NEGREP, zStdio_Va_ListBypass0, (regex_t*)NULL }, };
3912
3913 /*
3914 * Fix Command Arguments for Stdio_Va_List
3915 */
3916 static const char* apzStdio_Va_ListPatch[] = { "sed",
3917 "-e", "s@ va_list @ __gnuc_va_list @\n\
3918 s@ va_list)@ __gnuc_va_list)@\n\
3919 s@ _VA_LIST_));@ __gnuc_va_list));@\n\
3920 s@ va_list@ __not_va_list__@\n\
3921 s@\\*va_list@*__not_va_list__@\n\
3922 s@ __va_list)@ __gnuc_va_list)@\n\
3923 s@typedef[ \t]\\(.*\\)[ \t]va_list[ \t]*;@typedef \\1 __not_va_list__;@\n\
3924 s@GNUC_VA_LIST@GNUC_Va_LIST@\n\
3925 s@_NEED___VA_LIST@_NEED___Va_LIST@\n\
3926 s@VA_LIST@DUMMY_VA_LIST@\n\
3927 s@_Va_LIST@_VA_LIST@",
3928 (char*)NULL };
3929
3930 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3931 *
3932 * Description of Strict_Ansi_Not fix
3933 */
3934 tSCC zStrict_Ansi_NotName[] =
3935 "strict_ansi_not";
3936
3937 /*
3938 * File name selection pattern
3939 */
3940 #define zStrict_Ansi_NotList (char*)NULL
3941 /*
3942 * Machine/OS name selection pattern
3943 */
3944 #define apzStrict_Ansi_NotMachs (const char**)NULL
3945
3946 /*
3947 * content selection pattern - do fix if pattern found
3948 */
3949 tSCC zStrict_Ansi_NotSelect0[] =
3950 "^([ \t]*#[ \t]*if.*)(!__STDC__|__STDC__[ \t]*==[ \t]*0|__STDC__[ \t]*!=[ \t]*1|__STDC__[ \t]*-[ \t]*0[ \t]*==[ \t]*0)(.*)";
3951
3952 /*
3953 * perform the C function call test
3954 */
3955 tSCC zStrict_Ansi_NotFTst0[] = "stdc_0_in_system_headers";
3956
3957 #define STRICT_ANSI_NOT_TEST_CT 2
3958 static tTestDesc aStrict_Ansi_NotTests[] = {
3959 { TT_FUNCTION, zStrict_Ansi_NotFTst0, 0 /* unused */ },
3960 { TT_EGREP, zStrict_Ansi_NotSelect0, (regex_t*)NULL }, };
3961
3962 /*
3963 * Fix Command Arguments for Strict_Ansi_Not
3964 */
3965 static const char* apzStrict_Ansi_NotPatch[] = {
3966 "format",
3967 "%1 !defined(__STRICT_ANSI__)%3",
3968 (char*)NULL };
3969
3970 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3971 *
3972 * Description of Strict_Ansi_Not_Ctd fix
3973 */
3974 tSCC zStrict_Ansi_Not_CtdName[] =
3975 "strict_ansi_not_ctd";
3976
3977 /*
3978 * File name selection pattern
3979 */
3980 tSCC zStrict_Ansi_Not_CtdList[] =
3981 "|math.h|limits.h|stdio.h|signal.h|stdlib.h|time.h|";
3982 /*
3983 * Machine/OS name selection pattern
3984 */
3985 #define apzStrict_Ansi_Not_CtdMachs (const char**)NULL
3986
3987 /*
3988 * content selection pattern - do fix if pattern found
3989 */
3990 tSCC zStrict_Ansi_Not_CtdSelect0[] =
3991 "^([ \t]*[|&][|&][ \t(]*)(__STDC__[ \t]*-[ \t]*0[ \t]*==[ \t]*0)(.*)";
3992
3993 /*
3994 * perform the C function call test
3995 */
3996 tSCC zStrict_Ansi_Not_CtdFTst0[] = "stdc_0_in_system_headers";
3997
3998 #define STRICT_ANSI_NOT_CTD_TEST_CT 2
3999 static tTestDesc aStrict_Ansi_Not_CtdTests[] = {
4000 { TT_FUNCTION, zStrict_Ansi_Not_CtdFTst0, 0 /* unused */ },
4001 { TT_EGREP, zStrict_Ansi_Not_CtdSelect0, (regex_t*)NULL }, };
4002
4003 /*
4004 * Fix Command Arguments for Strict_Ansi_Not_Ctd
4005 */
4006 static const char* apzStrict_Ansi_Not_CtdPatch[] = {
4007 "format",
4008 "%1 !defined(__STRICT_ANSI__)%3",
4009 (char*)NULL };
4010
4011 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4012 *
4013 * Description of Strict_Ansi_Only fix
4014 */
4015 tSCC zStrict_Ansi_OnlyName[] =
4016 "strict_ansi_only";
4017
4018 /*
4019 * File name selection pattern
4020 */
4021 #define zStrict_Ansi_OnlyList (char*)NULL
4022 /*
4023 * Machine/OS name selection pattern
4024 */
4025 #define apzStrict_Ansi_OnlyMachs (const char**)NULL
4026
4027 /*
4028 * content selection pattern - do fix if pattern found
4029 */
4030 tSCC zStrict_Ansi_OnlySelect0[] =
4031 "^([ \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)(.*)";
4032
4033 /*
4034 * perform the C function call test
4035 */
4036 tSCC zStrict_Ansi_OnlyFTst0[] = "stdc_0_in_system_headers";
4037
4038 #define STRICT_ANSI_ONLY_TEST_CT 2
4039 static tTestDesc aStrict_Ansi_OnlyTests[] = {
4040 { TT_FUNCTION, zStrict_Ansi_OnlyFTst0, 0 /* unused */ },
4041 { TT_EGREP, zStrict_Ansi_OnlySelect0, (regex_t*)NULL }, };
4042
4043 /*
4044 * Fix Command Arguments for Strict_Ansi_Only
4045 */
4046 static const char* apzStrict_Ansi_OnlyPatch[] = {
4047 "format",
4048 "%1 defined(__STRICT_ANSI__)%3",
4049 (char*)NULL };
4050
4051 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4052 *
4053 * Description of Struct_File fix
4054 */
4055 tSCC zStruct_FileName[] =
4056 "struct_file";
4057
4058 /*
4059 * File name selection pattern
4060 */
4061 tSCC zStruct_FileList[] =
4062 "|rpc/xdr.h|";
4063 /*
4064 * Machine/OS name selection pattern
4065 */
4066 #define apzStruct_FileMachs (const char**)NULL
4067
4068 /*
4069 * content selection pattern - do fix if pattern found
4070 */
4071 tSCC zStruct_FileSelect0[] =
4072 "^.*xdrstdio_create.*struct __file_s";
4073
4074 #define STRUCT_FILE_TEST_CT 1
4075 static tTestDesc aStruct_FileTests[] = {
4076 { TT_EGREP, zStruct_FileSelect0, (regex_t*)NULL }, };
4077
4078 /*
4079 * Fix Command Arguments for Struct_File
4080 */
4081 static const char* apzStruct_FilePatch[] = {
4082 "format",
4083 "struct __file_s;\n\
4084 %0",
4085 (char*)NULL };
4086
4087 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4088 *
4089 * Description of Struct_Sockaddr fix
4090 */
4091 tSCC zStruct_SockaddrName[] =
4092 "struct_sockaddr";
4093
4094 /*
4095 * File name selection pattern
4096 */
4097 tSCC zStruct_SockaddrList[] =
4098 "|rpc/auth.h|";
4099 /*
4100 * Machine/OS name selection pattern
4101 */
4102 #define apzStruct_SockaddrMachs (const char**)NULL
4103
4104 /*
4105 * content selection pattern - do fix if pattern found
4106 */
4107 tSCC zStruct_SockaddrSelect0[] =
4108 "^.*authdes_create.*struct sockaddr";
4109
4110 /*
4111 * content bypass pattern - skip fix if pattern found
4112 */
4113 tSCC zStruct_SockaddrBypass0[] =
4114 "<sys/socket.h>";
4115
4116 #define STRUCT_SOCKADDR_TEST_CT 2
4117 static tTestDesc aStruct_SockaddrTests[] = {
4118 { TT_NEGREP, zStruct_SockaddrBypass0, (regex_t*)NULL },
4119 { TT_EGREP, zStruct_SockaddrSelect0, (regex_t*)NULL }, };
4120
4121 /*
4122 * Fix Command Arguments for Struct_Sockaddr
4123 */
4124 static const char* apzStruct_SockaddrPatch[] = {
4125 "format",
4126 "struct sockaddr;\n\
4127 %0",
4128 (char*)NULL };
4129
4130 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4131 *
4132 * Description of Sun_Auth_Proto fix
4133 */
4134 tSCC zSun_Auth_ProtoName[] =
4135 "sun_auth_proto";
4136
4137 /*
4138 * File name selection pattern
4139 */
4140 tSCC zSun_Auth_ProtoList[] =
4141 "|rpc/auth.h|rpc/clnt.h|rpc/svc.h|rpc/xdr.h|";
4142 /*
4143 * Machine/OS name selection pattern
4144 */
4145 #define apzSun_Auth_ProtoMachs (const char**)NULL
4146
4147 /*
4148 * content selection pattern - do fix if pattern found
4149 */
4150 tSCC zSun_Auth_ProtoSelect0[] =
4151 "\\(\\*[a-z][a-z_]*\\)\\(\\)";
4152
4153 #define SUN_AUTH_PROTO_TEST_CT 1
4154 static tTestDesc aSun_Auth_ProtoTests[] = {
4155 { TT_EGREP, zSun_Auth_ProtoSelect0, (regex_t*)NULL }, };
4156
4157 /*
4158 * Fix Command Arguments for Sun_Auth_Proto
4159 */
4160 static const char* apzSun_Auth_ProtoPatch[] = {
4161 "format",
4162 "#ifdef __cplusplus\n\
4163 %1(...);%2\n\
4164 #else\n\
4165 %1();%2\n\
4166 #endif",
4167 "(.*\\(\\*[a-z][a-z_]*\\))\\(\\);(.*)",
4168 (char*)NULL };
4169
4170 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4171 *
4172 * Description of Sun_Bogus_Ifdef fix
4173 */
4174 tSCC zSun_Bogus_IfdefName[] =
4175 "sun_bogus_ifdef";
4176
4177 /*
4178 * File name selection pattern
4179 */
4180 tSCC zSun_Bogus_IfdefList[] =
4181 "|hsfs/hsfs_spec.h|hsfs/iso_spec.h|";
4182 /*
4183 * Machine/OS name selection pattern
4184 */
4185 #define apzSun_Bogus_IfdefMachs (const char**)NULL
4186
4187 /*
4188 * content selection pattern - do fix if pattern found
4189 */
4190 tSCC zSun_Bogus_IfdefSelect0[] =
4191 "#ifdef(.*\\|\\|.*)";
4192
4193 #define SUN_BOGUS_IFDEF_TEST_CT 1
4194 static tTestDesc aSun_Bogus_IfdefTests[] = {
4195 { TT_EGREP, zSun_Bogus_IfdefSelect0, (regex_t*)NULL }, };
4196
4197 /*
4198 * Fix Command Arguments for Sun_Bogus_Ifdef
4199 */
4200 static const char* apzSun_Bogus_IfdefPatch[] = {
4201 "format",
4202 "#if%1",
4203 (char*)NULL };
4204
4205 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4206 *
4207 * Description of Sun_Catmacro fix
4208 */
4209 tSCC zSun_CatmacroName[] =
4210 "sun_catmacro";
4211
4212 /*
4213 * File name selection pattern
4214 */
4215 tSCC zSun_CatmacroList[] =
4216 "|pixrect/memvar.h|";
4217 /*
4218 * Machine/OS name selection pattern
4219 */
4220 #define apzSun_CatmacroMachs (const char**)NULL
4221
4222 /*
4223 * content selection pattern - do fix if pattern found
4224 */
4225 tSCC zSun_CatmacroSelect0[] =
4226 "^#define[ \t]+CAT\\(a,b\\).*";
4227
4228 #define SUN_CATMACRO_TEST_CT 1
4229 static tTestDesc aSun_CatmacroTests[] = {
4230 { TT_EGREP, zSun_CatmacroSelect0, (regex_t*)NULL }, };
4231
4232 /*
4233 * Fix Command Arguments for Sun_Catmacro
4234 */
4235 static const char* apzSun_CatmacroPatch[] = {
4236 "format",
4237 "#ifdef __STDC__\n\
4238 # define CAT(a,b) a##b\n\
4239 #else\n\
4240 %0\n\
4241 #endif",
4242 (char*)NULL };
4243
4244 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4245 *
4246 * Description of Sun_Malloc fix
4247 */
4248 tSCC zSun_MallocName[] =
4249 "sun_malloc";
4250
4251 /*
4252 * File name selection pattern
4253 */
4254 tSCC zSun_MallocList[] =
4255 "|malloc.h|";
4256 /*
4257 * Machine/OS name selection pattern
4258 */
4259 #define apzSun_MallocMachs (const char**)NULL
4260 #define SUN_MALLOC_TEST_CT 0
4261 #define aSun_MallocTests (tTestDesc*)NULL
4262
4263 /*
4264 * Fix Command Arguments for Sun_Malloc
4265 */
4266 static const char* apzSun_MallocPatch[] = { "sed",
4267 "-e", "s/typedef[ \t]char \\*\tmalloc_t/typedef void \\*\tmalloc_t/g",
4268 "-e", "s/int[ \t][ \t]*free/void\tfree/g",
4269 "-e", "s/char\\([ \t]*\\*[ \t]*malloc\\)/void\\1/g",
4270 "-e", "s/char\\([ \t]*\\*[ \t]*realloc\\)/void\\1/g",
4271 "-e", "s/char\\([ \t]*\\*[ \t]*calloc\\)/void\\1/g",
4272 (char*)NULL };
4273
4274 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4275 *
4276 * Description of Sun_Rusers_Semi fix
4277 */
4278 tSCC zSun_Rusers_SemiName[] =
4279 "sun_rusers_semi";
4280
4281 /*
4282 * File name selection pattern
4283 */
4284 tSCC zSun_Rusers_SemiList[] =
4285 "|rpcsvc/rusers.h|";
4286 /*
4287 * Machine/OS name selection pattern
4288 */
4289 #define apzSun_Rusers_SemiMachs (const char**)NULL
4290
4291 /*
4292 * content selection pattern - do fix if pattern found
4293 */
4294 tSCC zSun_Rusers_SemiSelect0[] =
4295 "_cnt$";
4296
4297 #define SUN_RUSERS_SEMI_TEST_CT 1
4298 static tTestDesc aSun_Rusers_SemiTests[] = {
4299 { TT_EGREP, zSun_Rusers_SemiSelect0, (regex_t*)NULL }, };
4300
4301 /*
4302 * Fix Command Arguments for Sun_Rusers_Semi
4303 */
4304 static const char* apzSun_Rusers_SemiPatch[] = { "sed",
4305 "-e", "/^struct/,/^};/s/_cnt$/_cnt;/",
4306 (char*)NULL };
4307
4308 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4309 *
4310 * Description of Sun_Signal fix
4311 */
4312 tSCC zSun_SignalName[] =
4313 "sun_signal";
4314
4315 /*
4316 * File name selection pattern
4317 */
4318 tSCC zSun_SignalList[] =
4319 "|sys/signal.h|signal.h|";
4320 /*
4321 * Machine/OS name selection pattern
4322 */
4323 #define apzSun_SignalMachs (const char**)NULL
4324
4325 /*
4326 * content selection pattern - do fix if pattern found
4327 */
4328 tSCC zSun_SignalSelect0[] =
4329 "^void\t\\(\\*signal\\(\\)\\)\\(\\);.*";
4330
4331 #define SUN_SIGNAL_TEST_CT 1
4332 static tTestDesc aSun_SignalTests[] = {
4333 { TT_EGREP, zSun_SignalSelect0, (regex_t*)NULL }, };
4334
4335 /*
4336 * Fix Command Arguments for Sun_Signal
4337 */
4338 static const char* apzSun_SignalPatch[] = {
4339 "format",
4340 "#ifdef __cplusplus\n\
4341 void\t(*signal(...))(...);\n\
4342 #else\n\
4343 %0\n\
4344 #endif",
4345 (char*)NULL };
4346
4347 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4348 *
4349 * Description of Sunos_Matherr_Decl fix
4350 */
4351 tSCC zSunos_Matherr_DeclName[] =
4352 "sunos_matherr_decl";
4353
4354 /*
4355 * File name selection pattern
4356 */
4357 tSCC zSunos_Matherr_DeclList[] =
4358 "|math.h|";
4359 /*
4360 * Machine/OS name selection pattern
4361 */
4362 #define apzSunos_Matherr_DeclMachs (const char**)NULL
4363
4364 /*
4365 * content selection pattern - do fix if pattern found
4366 */
4367 tSCC zSunos_Matherr_DeclSelect0[] =
4368 "matherr";
4369
4370 /*
4371 * content bypass pattern - skip fix if pattern found
4372 */
4373 tSCC zSunos_Matherr_DeclBypass0[] =
4374 "matherr.*(struct exception|__MATH_EXCEPTION)";
4375
4376 #define SUNOS_MATHERR_DECL_TEST_CT 2
4377 static tTestDesc aSunos_Matherr_DeclTests[] = {
4378 { TT_NEGREP, zSunos_Matherr_DeclBypass0, (regex_t*)NULL },
4379 { TT_EGREP, zSunos_Matherr_DeclSelect0, (regex_t*)NULL }, };
4380
4381 /*
4382 * Fix Command Arguments for Sunos_Matherr_Decl
4383 */
4384 static const char* apzSunos_Matherr_DeclPatch[] = {
4385 "wrap",
4386 "struct exception;\n",
4387 (char*)NULL };
4388
4389 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4390 *
4391 * Description of Sunos_Strlen fix
4392 */
4393 tSCC zSunos_StrlenName[] =
4394 "sunos_strlen";
4395
4396 /*
4397 * File name selection pattern
4398 */
4399 tSCC zSunos_StrlenList[] =
4400 "|strings.h|";
4401 /*
4402 * Machine/OS name selection pattern
4403 */
4404 #define apzSunos_StrlenMachs (const char**)NULL
4405
4406 /*
4407 * content selection pattern - do fix if pattern found
4408 */
4409 tSCC zSunos_StrlenSelect0[] =
4410 "int[ \t]*strlen\\(\\);(.*)";
4411
4412 #define SUNOS_STRLEN_TEST_CT 1
4413 static tTestDesc aSunos_StrlenTests[] = {
4414 { TT_EGREP, zSunos_StrlenSelect0, (regex_t*)NULL }, };
4415
4416 /*
4417 * Fix Command Arguments for Sunos_Strlen
4418 */
4419 static const char* apzSunos_StrlenPatch[] = {
4420 "format",
4421 "__SIZE_TYPE__ strlen();%1",
4422 (char*)NULL };
4423
4424 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4425 *
4426 * Description of Svr4__P fix
4427 */
4428 tSCC zSvr4__PName[] =
4429 "svr4__p";
4430
4431 /*
4432 * File name selection pattern
4433 */
4434 tSCC zSvr4__PList[] =
4435 "|math.h|floatingpoint.h|";
4436 /*
4437 * Machine/OS name selection pattern
4438 */
4439 #define apzSvr4__PMachs (const char**)NULL
4440
4441 /*
4442 * content selection pattern - do fix if pattern found
4443 */
4444 tSCC zSvr4__PSelect0[] =
4445 "^#define[ \t]+__P.*";
4446
4447 #define SVR4__P_TEST_CT 1
4448 static tTestDesc aSvr4__PTests[] = {
4449 { TT_EGREP, zSvr4__PSelect0, (regex_t*)NULL }, };
4450
4451 /*
4452 * Fix Command Arguments for Svr4__P
4453 */
4454 static const char* apzSvr4__PPatch[] = {
4455 "format",
4456 "#ifndef __P\n\
4457 %0\n\
4458 #endif",
4459 (char*)NULL };
4460
4461 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4462 *
4463 * Description of Svr4_Getcwd fix
4464 */
4465 tSCC zSvr4_GetcwdName[] =
4466 "svr4_getcwd";
4467
4468 /*
4469 * File name selection pattern
4470 */
4471 tSCC zSvr4_GetcwdList[] =
4472 "|stdlib.h|unistd.h|prototypes.h|";
4473 /*
4474 * Machine/OS name selection pattern
4475 */
4476 #define apzSvr4_GetcwdMachs (const char**)NULL
4477
4478 /*
4479 * content selection pattern - do fix if pattern found
4480 */
4481 tSCC zSvr4_GetcwdSelect0[] =
4482 "getcwd\\(char \\*, int\\)";
4483
4484 #define SVR4_GETCWD_TEST_CT 1
4485 static tTestDesc aSvr4_GetcwdTests[] = {
4486 { TT_EGREP, zSvr4_GetcwdSelect0, (regex_t*)NULL }, };
4487
4488 /*
4489 * Fix Command Arguments for Svr4_Getcwd
4490 */
4491 static const char* apzSvr4_GetcwdPatch[] = {
4492 "format",
4493 "getcwd(char *, size_t)",
4494 (char*)NULL };
4495
4496 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4497 *
4498 * Description of Svr4_Profil fix
4499 */
4500 tSCC zSvr4_ProfilName[] =
4501 "svr4_profil";
4502
4503 /*
4504 * File name selection pattern
4505 */
4506 tSCC zSvr4_ProfilList[] =
4507 "|stdlib.h|unistd.h|";
4508 /*
4509 * Machine/OS name selection pattern
4510 */
4511 #define apzSvr4_ProfilMachs (const char**)NULL
4512
4513 /*
4514 * content selection pattern - do fix if pattern found
4515 */
4516 tSCC zSvr4_ProfilSelect0[] =
4517 "profil\\(unsigned short \\*, unsigned int, unsigned int, unsigned int\\)";
4518
4519 #define SVR4_PROFIL_TEST_CT 1
4520 static tTestDesc aSvr4_ProfilTests[] = {
4521 { TT_EGREP, zSvr4_ProfilSelect0, (regex_t*)NULL }, };
4522
4523 /*
4524 * Fix Command Arguments for Svr4_Profil
4525 */
4526 static const char* apzSvr4_ProfilPatch[] = {
4527 "format",
4528 "profil(unsigned short *, size_t, int, unsigned int)",
4529 (char*)NULL };
4530
4531 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4532 *
4533 * Description of Sysv68_String fix
4534 */
4535 tSCC zSysv68_StringName[] =
4536 "sysv68_string";
4537
4538 /*
4539 * File name selection pattern
4540 */
4541 tSCC zSysv68_StringList[] =
4542 "|testing.h|string.h|";
4543 /*
4544 * Machine/OS name selection pattern
4545 */
4546 #define apzSysv68_StringMachs (const char**)NULL
4547 #define SYSV68_STRING_TEST_CT 0
4548 #define aSysv68_StringTests (tTestDesc*)NULL
4549
4550 /*
4551 * Fix Command Arguments for Sysv68_String
4552 */
4553 static const char* apzSysv68_StringPatch[] = { "sed",
4554 "-e", "s/extern[ \t]*int[ \t]*strlen();/extern unsigned int strlen();/",
4555 "-e", "s/extern[ \t]*int[ \t]*ffs[ \t]*(long);/extern int ffs(int);/",
4556 "-e", "s/strdup(char \\*s1);/strdup(const char *s1);/",
4557 "-e", "/^extern char$/N",
4558 "-e", "s/^extern char\\(\\n\t\\*memccpy(),\\)$/extern void\\1/",
4559 "-e", "/^extern int$/N",
4560 "-e", "s/^extern int\\(\\n\tstrlen(),\\)/extern size_t\\1/",
4561 "-e", "/^\tstrncmp(),$/N",
4562 "-e", "s/^\\(\tstrncmp()\\),\\n\\(\tstrlen(),\\)$/\\1;\\\n\
4563 extern unsigned int\\\n\
4564 \\2/",
4565 (char*)NULL };
4566
4567 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4568 *
4569 * Description of Sysz_Stdlib_For_Sun fix
4570 */
4571 tSCC zSysz_Stdlib_For_SunName[] =
4572 "sysz_stdlib_for_sun";
4573
4574 /*
4575 * File name selection pattern
4576 */
4577 tSCC zSysz_Stdlib_For_SunList[] =
4578 "|stdlib.h|";
4579 /*
4580 * Machine/OS name selection pattern
4581 */
4582 #define apzSysz_Stdlib_For_SunMachs (const char**)NULL
4583
4584 /*
4585 * content selection pattern - do fix if pattern found
4586 */
4587 tSCC zSysz_Stdlib_For_SunSelect0[] =
4588 "char[ \t]*\\*[ \t]*(calloc|malloc|realloc|bsearch)[ \t]*\\(";
4589
4590 #define SYSZ_STDLIB_FOR_SUN_TEST_CT 1
4591 static tTestDesc aSysz_Stdlib_For_SunTests[] = {
4592 { TT_EGREP, zSysz_Stdlib_For_SunSelect0, (regex_t*)NULL }, };
4593
4594 /*
4595 * Fix Command Arguments for Sysz_Stdlib_For_Sun
4596 */
4597 static const char* apzSysz_Stdlib_For_SunPatch[] = {
4598 "format",
4599 "void *\t%1(",
4600 (char*)NULL };
4601
4602 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4603 *
4604 * Description of Tinfo_Cplusplus fix
4605 */
4606 tSCC zTinfo_CplusplusName[] =
4607 "tinfo_cplusplus";
4608
4609 /*
4610 * File name selection pattern
4611 */
4612 tSCC zTinfo_CplusplusList[] =
4613 "|tinfo.h|";
4614 /*
4615 * Machine/OS name selection pattern
4616 */
4617 #define apzTinfo_CplusplusMachs (const char**)NULL
4618
4619 /*
4620 * content selection pattern - do fix if pattern found
4621 */
4622 tSCC zTinfo_CplusplusSelect0[] =
4623 "[ \t]_cplusplus";
4624
4625 #define TINFO_CPLUSPLUS_TEST_CT 1
4626 static tTestDesc aTinfo_CplusplusTests[] = {
4627 { TT_EGREP, zTinfo_CplusplusSelect0, (regex_t*)NULL }, };
4628
4629 /*
4630 * Fix Command Arguments for Tinfo_Cplusplus
4631 */
4632 static const char* apzTinfo_CplusplusPatch[] = {
4633 "format",
4634 " __cplusplus",
4635 (char*)NULL };
4636
4637 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4638 *
4639 * Description of Ultrix_Atexit_Param fix
4640 */
4641 tSCC zUltrix_Atexit_ParamName[] =
4642 "ultrix_atexit_param";
4643
4644 /*
4645 * File name selection pattern
4646 */
4647 tSCC zUltrix_Atexit_ParamList[] =
4648 "|stdlib.h|";
4649 /*
4650 * Machine/OS name selection pattern
4651 */
4652 #define apzUltrix_Atexit_ParamMachs (const char**)NULL
4653
4654 /*
4655 * content selection pattern - do fix if pattern found
4656 */
4657 tSCC zUltrix_Atexit_ParamSelect0[] =
4658 "atexit\\(.*\\(\\)";
4659
4660 #define ULTRIX_ATEXIT_PARAM_TEST_CT 1
4661 static tTestDesc aUltrix_Atexit_ParamTests[] = {
4662 { TT_EGREP, zUltrix_Atexit_ParamSelect0, (regex_t*)NULL }, };
4663
4664 /*
4665 * Fix Command Arguments for Ultrix_Atexit_Param
4666 */
4667 static const char* apzUltrix_Atexit_ParamPatch[] = {
4668 "format",
4669 "atexit( void (*__func)( void )",
4670 (char*)NULL };
4671
4672 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4673 *
4674 * Description of Ultrix_Atof_Param fix
4675 */
4676 tSCC zUltrix_Atof_ParamName[] =
4677 "ultrix_atof_param";
4678
4679 /*
4680 * File name selection pattern
4681 */
4682 tSCC zUltrix_Atof_ParamList[] =
4683 "|math.h|";
4684 /*
4685 * Machine/OS name selection pattern
4686 */
4687 #define apzUltrix_Atof_ParamMachs (const char**)NULL
4688
4689 /*
4690 * content selection pattern - do fix if pattern found
4691 */
4692 tSCC zUltrix_Atof_ParamSelect0[] =
4693 "atof\\([ \t]*char";
4694
4695 #define ULTRIX_ATOF_PARAM_TEST_CT 1
4696 static tTestDesc aUltrix_Atof_ParamTests[] = {
4697 { TT_EGREP, zUltrix_Atof_ParamSelect0, (regex_t*)NULL }, };
4698
4699 /*
4700 * Fix Command Arguments for Ultrix_Atof_Param
4701 */
4702 static const char* apzUltrix_Atof_ParamPatch[] = {
4703 "format",
4704 "atof(const char",
4705 (char*)NULL };
4706
4707 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4708 *
4709 * Description of Ultrix_Const fix
4710 */
4711 tSCC zUltrix_ConstName[] =
4712 "ultrix_const";
4713
4714 /*
4715 * File name selection pattern
4716 */
4717 tSCC zUltrix_ConstList[] =
4718 "|stdio.h|";
4719 /*
4720 * Machine/OS name selection pattern
4721 */
4722 #define apzUltrix_ConstMachs (const char**)NULL
4723
4724 /*
4725 * content selection pattern - do fix if pattern found
4726 */
4727 tSCC zUltrix_ConstSelect0[] =
4728 "perror\\( char \\*";
4729
4730 #define ULTRIX_CONST_TEST_CT 1
4731 static tTestDesc aUltrix_ConstTests[] = {
4732 { TT_EGREP, zUltrix_ConstSelect0, (regex_t*)NULL }, };
4733
4734 /*
4735 * Fix Command Arguments for Ultrix_Const
4736 */
4737 static const char* apzUltrix_ConstPatch[] = {
4738 "format",
4739 "%1 const %3 *__",
4740 "([ \t*](perror|fputs|fwrite|scanf|fscanf)\\(.*)[ \t]+(char|void) \\*__",
4741 (char*)NULL };
4742
4743 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4744 *
4745 * Description of Ultrix_Const2 fix
4746 */
4747 tSCC zUltrix_Const2Name[] =
4748 "ultrix_const2";
4749
4750 /*
4751 * File name selection pattern
4752 */
4753 tSCC zUltrix_Const2List[] =
4754 "|stdio.h|";
4755 /*
4756 * Machine/OS name selection pattern
4757 */
4758 #define apzUltrix_Const2Machs (const char**)NULL
4759
4760 /*
4761 * content selection pattern - do fix if pattern found
4762 */
4763 tSCC zUltrix_Const2Select0[] =
4764 "\\*fopen\\( char \\*";
4765
4766 #define ULTRIX_CONST2_TEST_CT 1
4767 static tTestDesc aUltrix_Const2Tests[] = {
4768 { TT_EGREP, zUltrix_Const2Select0, (regex_t*)NULL }, };
4769
4770 /*
4771 * Fix Command Arguments for Ultrix_Const2
4772 */
4773 static const char* apzUltrix_Const2Patch[] = {
4774 "format",
4775 "%1( const char *%3, const char *",
4776 "([ \t*](fopen|sscanf|popen|tempnam))\\([ \t]*char[ \t]*\\*([^,]*),[ \t]*char[ \t]*\\*[ \t]*",
4777 (char*)NULL };
4778
4779 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4780 *
4781 * Description of Ultrix_Fix_Fixproto fix
4782 */
4783 tSCC zUltrix_Fix_FixprotoName[] =
4784 "ultrix_fix_fixproto";
4785
4786 /*
4787 * File name selection pattern
4788 */
4789 tSCC zUltrix_Fix_FixprotoList[] =
4790 "|sys/utsname.h|";
4791 /*
4792 * Machine/OS name selection pattern
4793 */
4794 #define apzUltrix_Fix_FixprotoMachs (const char**)NULL
4795
4796 /*
4797 * content selection pattern - do fix if pattern found
4798 */
4799 tSCC zUltrix_Fix_FixprotoSelect0[] =
4800 "ULTRIX";
4801
4802 #define ULTRIX_FIX_FIXPROTO_TEST_CT 1
4803 static tTestDesc aUltrix_Fix_FixprotoTests[] = {
4804 { TT_EGREP, zUltrix_Fix_FixprotoSelect0, (regex_t*)NULL }, };
4805
4806 /*
4807 * Fix Command Arguments for Ultrix_Fix_Fixproto
4808 */
4809 static const char* apzUltrix_Fix_FixprotoPatch[] = {
4810 "format",
4811 "struct utsname;\n\
4812 %0",
4813 "^[ \t]*extern[ \t]*int[ \t]*uname\\(\\);",
4814 (char*)NULL };
4815
4816 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4817 *
4818 * Description of Ultrix_Ifdef fix
4819 */
4820 tSCC zUltrix_IfdefName[] =
4821 "ultrix_ifdef";
4822
4823 /*
4824 * File name selection pattern
4825 */
4826 tSCC zUltrix_IfdefList[] =
4827 "|sys/file.h|";
4828 /*
4829 * Machine/OS name selection pattern
4830 */
4831 #define apzUltrix_IfdefMachs (const char**)NULL
4832
4833 /*
4834 * content selection pattern - do fix if pattern found
4835 */
4836 tSCC zUltrix_IfdefSelect0[] =
4837 "^#ifdef KERNEL[ \t]+&&";
4838
4839 #define ULTRIX_IFDEF_TEST_CT 1
4840 static tTestDesc aUltrix_IfdefTests[] = {
4841 { TT_EGREP, zUltrix_IfdefSelect0, (regex_t*)NULL }, };
4842
4843 /*
4844 * Fix Command Arguments for Ultrix_Ifdef
4845 */
4846 static const char* apzUltrix_IfdefPatch[] = {
4847 "format",
4848 "#if defined(KERNEL) &&",
4849 (char*)NULL };
4850
4851 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4852 *
4853 * Description of Ultrix_Math_Ifdef fix
4854 */
4855 tSCC zUltrix_Math_IfdefName[] =
4856 "ultrix_math_ifdef";
4857
4858 /*
4859 * File name selection pattern
4860 */
4861 tSCC zUltrix_Math_IfdefList[] =
4862 "|sys/limits.h|float.h|math.h|";
4863 /*
4864 * Machine/OS name selection pattern
4865 */
4866 #define apzUltrix_Math_IfdefMachs (const char**)NULL
4867
4868 /*
4869 * content selection pattern - do fix if pattern found
4870 */
4871 tSCC zUltrix_Math_IfdefSelect0[] =
4872 "^(#if.*)\\|\\|[ \t]+CC\\$[a-z]+";
4873
4874 #define ULTRIX_MATH_IFDEF_TEST_CT 1
4875 static tTestDesc aUltrix_Math_IfdefTests[] = {
4876 { TT_EGREP, zUltrix_Math_IfdefSelect0, (regex_t*)NULL }, };
4877
4878 /*
4879 * Fix Command Arguments for Ultrix_Math_Ifdef
4880 */
4881 static const char* apzUltrix_Math_IfdefPatch[] = {
4882 "format",
4883 "%1",
4884 (char*)NULL };
4885
4886 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4887 *
4888 * Description of Ultrix_Nested_Ioctl fix
4889 */
4890 tSCC zUltrix_Nested_IoctlName[] =
4891 "ultrix_nested_ioctl";
4892
4893 /*
4894 * File name selection pattern
4895 */
4896 tSCC zUltrix_Nested_IoctlList[] =
4897 "|sys/ioctl.h|";
4898 /*
4899 * Machine/OS name selection pattern
4900 */
4901 #define apzUltrix_Nested_IoctlMachs (const char**)NULL
4902
4903 /*
4904 * content selection pattern - do fix if pattern found
4905 */
4906 tSCC zUltrix_Nested_IoctlSelect0[] =
4907 "^/\\* #define SIOCSCREEN";
4908
4909 #define ULTRIX_NESTED_IOCTL_TEST_CT 1
4910 static tTestDesc aUltrix_Nested_IoctlTests[] = {
4911 { TT_EGREP, zUltrix_Nested_IoctlSelect0, (regex_t*)NULL }, };
4912
4913 /*
4914 * Fix Command Arguments for Ultrix_Nested_Ioctl
4915 */
4916 static const char* apzUltrix_Nested_IoctlPatch[] = { "sed",
4917 "-e", "/^\\/\\* #define SIOCSCREEN/s@/\\* screend@*//* screend@",
4918 (char*)NULL };
4919
4920 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4921 *
4922 * Description of Ultrix_Nested_Svc fix
4923 */
4924 tSCC zUltrix_Nested_SvcName[] =
4925 "ultrix_nested_svc";
4926
4927 /*
4928 * File name selection pattern
4929 */
4930 tSCC zUltrix_Nested_SvcList[] =
4931 "|rpc/svc.h|";
4932 /*
4933 * Machine/OS name selection pattern
4934 */
4935 #define apzUltrix_Nested_SvcMachs (const char**)NULL
4936
4937 /*
4938 * content selection pattern - do fix if pattern found
4939 */
4940 tSCC zUltrix_Nested_SvcSelect0[] =
4941 "^ \\*[ \t]*int protocol; */\\*";
4942
4943 #define ULTRIX_NESTED_SVC_TEST_CT 1
4944 static tTestDesc aUltrix_Nested_SvcTests[] = {
4945 { TT_EGREP, zUltrix_Nested_SvcSelect0, (regex_t*)NULL }, };
4946
4947 /*
4948 * Fix Command Arguments for Ultrix_Nested_Svc
4949 */
4950 static const char* apzUltrix_Nested_SvcPatch[] = { "sed",
4951 "-e", "s@^\\( \\*\tint protocol; \\)/\\*@\\1*/ /*@",
4952 (char*)NULL };
4953
4954 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4955 *
4956 * Description of Ultrix_Stat fix
4957 */
4958 tSCC zUltrix_StatName[] =
4959 "ultrix_stat";
4960
4961 /*
4962 * File name selection pattern
4963 */
4964 tSCC zUltrix_StatList[] =
4965 "|sys/stat.h|";
4966 /*
4967 * Machine/OS name selection pattern
4968 */
4969 #define apzUltrix_StatMachs (const char**)NULL
4970
4971 /*
4972 * content selection pattern - do fix if pattern found
4973 */
4974 tSCC zUltrix_StatSelect0[] =
4975 "@\\(#\\)stat\\.h.*6\\.1.*\\(ULTRIX\\)";
4976
4977 #define ULTRIX_STAT_TEST_CT 1
4978 static tTestDesc aUltrix_StatTests[] = {
4979 { TT_EGREP, zUltrix_StatSelect0, (regex_t*)NULL }, };
4980
4981 /*
4982 * Fix Command Arguments for Ultrix_Stat
4983 */
4984 static const char* apzUltrix_StatPatch[] = { "sed",
4985 "-e", "/^#define[ \t]S_IFPORT[ \t]*S_IFIFO$/a\\\n\
4986 \\\n\
4987 /* macro to test for symbolic link */\\\n\
4988 #define S_ISLNK(mode) (((mode) & S_IFMT) == S_IFLNK)\\\n\n",
4989 "-e", "/^[ \t]*fstat(),$/a\\\n\
4990 \tlstat(),\n",
4991 (char*)NULL };
4992
4993 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4994 *
4995 * Description of Ultrix_Static fix
4996 */
4997 tSCC zUltrix_StaticName[] =
4998 "ultrix_static";
4999
5000 /*
5001 * File name selection pattern
5002 */
5003 tSCC zUltrix_StaticList[] =
5004 "|machine/cpu.h|";
5005 /*
5006 * Machine/OS name selection pattern
5007 */
5008 #define apzUltrix_StaticMachs (const char**)NULL
5009
5010 /*
5011 * content selection pattern - do fix if pattern found
5012 */
5013 tSCC zUltrix_StaticSelect0[] =
5014 "#include \"r[34]_cpu";
5015
5016 #define ULTRIX_STATIC_TEST_CT 1
5017 static tTestDesc aUltrix_StaticTests[] = {
5018 { TT_EGREP, zUltrix_StaticSelect0, (regex_t*)NULL }, };
5019
5020 /*
5021 * Fix Command Arguments for Ultrix_Static
5022 */
5023 static const char* apzUltrix_StaticPatch[] = { "sed",
5024 "-e", "s/^static struct tlb_pid_state/struct tlb_pid_state/",
5025 "-e", "s/^#include \"r3_cpu\\.h\"$/#include <machine\\/r3_cpu\\.h>/",
5026 "-e", "s/^#include \"r4_cpu\\.h\"$/#include <machine\\/r4_cpu\\.h>/",
5027 (char*)NULL };
5028
5029 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5030 *
5031 * Description of Ultrix_Strings fix
5032 */
5033 tSCC zUltrix_StringsName[] =
5034 "ultrix_strings";
5035
5036 /*
5037 * File name selection pattern
5038 */
5039 tSCC zUltrix_StringsList[] =
5040 "|strings.h|";
5041 /*
5042 * Machine/OS name selection pattern
5043 */
5044 #define apzUltrix_StringsMachs (const char**)NULL
5045
5046 /*
5047 * content selection pattern - do fix if pattern found
5048 */
5049 tSCC zUltrix_StringsSelect0[] =
5050 "@\\(#\\)strings\\.h.*6\\.1.*\\(ULTRIX\\)";
5051
5052 #define ULTRIX_STRINGS_TEST_CT 1
5053 static tTestDesc aUltrix_StringsTests[] = {
5054 { TT_EGREP, zUltrix_StringsSelect0, (regex_t*)NULL }, };
5055
5056 /*
5057 * Fix Command Arguments for Ultrix_Strings
5058 */
5059 static const char* apzUltrix_StringsPatch[] = {
5060 "wrap",
5061 (char*)NULL };
5062
5063 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5064 *
5065 * Description of Undefine_Null fix
5066 */
5067 tSCC zUndefine_NullName[] =
5068 "undefine_null";
5069
5070 /*
5071 * File name selection pattern
5072 */
5073 #define zUndefine_NullList (char*)NULL
5074 /*
5075 * Machine/OS name selection pattern
5076 */
5077 #define apzUndefine_NullMachs (const char**)NULL
5078
5079 /*
5080 * content selection pattern - do fix if pattern found
5081 */
5082 tSCC zUndefine_NullSelect0[] =
5083 "^#[ \t]*define[ \t]+NULL[ \t]";
5084
5085 /*
5086 * content bypass pattern - skip fix if pattern found
5087 */
5088 tSCC zUndefine_NullBypass0[] =
5089 "#[ \t]*(ifn|un)def[ \t]+NULL($|[ \t\r])";
5090
5091 #define UNDEFINE_NULL_TEST_CT 2
5092 static tTestDesc aUndefine_NullTests[] = {
5093 { TT_NEGREP, zUndefine_NullBypass0, (regex_t*)NULL },
5094 { TT_EGREP, zUndefine_NullSelect0, (regex_t*)NULL }, };
5095
5096 /*
5097 * Fix Command Arguments for Undefine_Null
5098 */
5099 static const char* apzUndefine_NullPatch[] = {
5100 "format",
5101 "#ifndef NULL%2\n\
5102 #define NULL%1%2\n\
5103 #endif%2\n",
5104 "^#[ \t]*define[ \t]*[ \t]NULL([^\r\n\
5105 ]+)([\r]*)\n",
5106 (char*)NULL };
5107
5108 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5109 *
5110 * Description of Unicosmk_Restrict fix
5111 */
5112 tSCC zUnicosmk_RestrictName[] =
5113 "unicosmk_restrict";
5114
5115 /*
5116 * File name selection pattern
5117 */
5118 tSCC zUnicosmk_RestrictList[] =
5119 "|stdio.h|stdlib.h|wchar.h|";
5120 /*
5121 * Machine/OS name selection pattern
5122 */
5123 tSCC* apzUnicosmk_RestrictMachs[] = {
5124 "*-*-unicosmk*",
5125 (const char*)NULL };
5126
5127 /*
5128 * content selection pattern - do fix if pattern found
5129 */
5130 tSCC zUnicosmk_RestrictSelect0[] =
5131 "(\\*[ \t]*)restrict([ \t]+)";
5132
5133 #define UNICOSMK_RESTRICT_TEST_CT 1
5134 static tTestDesc aUnicosmk_RestrictTests[] = {
5135 { TT_EGREP, zUnicosmk_RestrictSelect0, (regex_t*)NULL }, };
5136
5137 /*
5138 * Fix Command Arguments for Unicosmk_Restrict
5139 */
5140 static const char* apzUnicosmk_RestrictPatch[] = {
5141 "format",
5142 "%1__restrict__%2",
5143 (char*)NULL };
5144
5145 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5146 *
5147 * Description of Uw7_Byteorder_Fix fix
5148 */
5149 tSCC zUw7_Byteorder_FixName[] =
5150 "uw7_byteorder_fix";
5151
5152 /*
5153 * File name selection pattern
5154 */
5155 tSCC zUw7_Byteorder_FixList[] =
5156 "|arpa/inet.h|";
5157 /*
5158 * Machine/OS name selection pattern
5159 */
5160 tSCC* apzUw7_Byteorder_FixMachs[] = {
5161 "*-*-sysv4*",
5162 "i?86-*-sysv5*",
5163 "i?86-*-udk*",
5164 "i?86-*-solaris2.[0-4]",
5165 "powerpcle-*-solaris2.[0-4]",
5166 "sparc-*-solaris2.[0-4]",
5167 (const char*)NULL };
5168
5169 /*
5170 * content selection pattern - do fix if pattern found
5171 */
5172 tSCC zUw7_Byteorder_FixSelect0[] =
5173 "in_port_t";
5174
5175 /*
5176 * perform the 'test' shell command - do fix on success
5177 */
5178 tSCC zUw7_Byteorder_FixTest0[] =
5179 "-f sys/byteorder.h";
5180
5181 #define UW7_BYTEORDER_FIX_TEST_CT 2
5182 static tTestDesc aUw7_Byteorder_FixTests[] = {
5183 { TT_TEST, zUw7_Byteorder_FixTest0, 0 /* unused */ },
5184 { TT_EGREP, zUw7_Byteorder_FixSelect0, (regex_t*)NULL }, };
5185
5186 /*
5187 * Fix Command Arguments for Uw7_Byteorder_Fix
5188 */
5189 static const char* apzUw7_Byteorder_FixPatch[] = {
5190 "format",
5191 "",
5192 "^extern.*[ \t](htons|ntohs).*\\(in_port_t\\).*;",
5193 (char*)NULL };
5194
5195 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5196 *
5197 * Description of Va_I960_Macro fix
5198 */
5199 tSCC zVa_I960_MacroName[] =
5200 "va_i960_macro";
5201
5202 /*
5203 * File name selection pattern
5204 */
5205 tSCC zVa_I960_MacroList[] =
5206 "|arch/i960/archI960.h|";
5207 /*
5208 * Machine/OS name selection pattern
5209 */
5210 #define apzVa_I960_MacroMachs (const char**)NULL
5211
5212 /*
5213 * content selection pattern - do fix if pattern found
5214 */
5215 tSCC zVa_I960_MacroSelect0[] =
5216 "__(vsiz|vali|vpad|alignof__)";
5217
5218 #define VA_I960_MACRO_TEST_CT 1
5219 static tTestDesc aVa_I960_MacroTests[] = {
5220 { TT_EGREP, zVa_I960_MacroSelect0, (regex_t*)NULL }, };
5221
5222 /*
5223 * Fix Command Arguments for Va_I960_Macro
5224 */
5225 static const char* apzVa_I960_MacroPatch[] = {
5226 "format",
5227 "__vx%1",
5228 (char*)NULL };
5229
5230 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5231 *
5232 * Description of Void_Null fix
5233 */
5234 tSCC zVoid_NullName[] =
5235 "void_null";
5236
5237 /*
5238 * File name selection pattern
5239 */
5240 tSCC zVoid_NullList[] =
5241 "|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|";
5242 /*
5243 * Machine/OS name selection pattern
5244 */
5245 #define apzVoid_NullMachs (const char**)NULL
5246
5247 /*
5248 * content selection pattern - do fix if pattern found
5249 */
5250 tSCC zVoid_NullSelect0[] =
5251 "^#[ \t]*define[ \t]+NULL[ \t]+\\(\\(void[ \t]*\\*\\)0\\)";
5252
5253 #define VOID_NULL_TEST_CT 1
5254 static tTestDesc aVoid_NullTests[] = {
5255 { TT_EGREP, zVoid_NullSelect0, (regex_t*)NULL }, };
5256
5257 /*
5258 * Fix Command Arguments for Void_Null
5259 */
5260 static const char* apzVoid_NullPatch[] = {
5261 "format",
5262 "#define NULL 0",
5263 (char*)NULL };
5264
5265 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5266 *
5267 * Description of Vxworks_Gcc_Problem fix
5268 */
5269 tSCC zVxworks_Gcc_ProblemName[] =
5270 "vxworks_gcc_problem";
5271
5272 /*
5273 * File name selection pattern
5274 */
5275 tSCC zVxworks_Gcc_ProblemList[] =
5276 "|types/vxTypesBase.h|";
5277 /*
5278 * Machine/OS name selection pattern
5279 */
5280 #define apzVxworks_Gcc_ProblemMachs (const char**)NULL
5281
5282 /*
5283 * content selection pattern - do fix if pattern found
5284 */
5285 tSCC zVxworks_Gcc_ProblemSelect0[] =
5286 "__GNUC_TYPEOF_FEATURE_BROKEN_USE_DEFAULT_UNTIL_FIXED__";
5287
5288 #define VXWORKS_GCC_PROBLEM_TEST_CT 1
5289 static tTestDesc aVxworks_Gcc_ProblemTests[] = {
5290 { TT_EGREP, zVxworks_Gcc_ProblemSelect0, (regex_t*)NULL }, };
5291
5292 /*
5293 * Fix Command Arguments for Vxworks_Gcc_Problem
5294 */
5295 static const char* apzVxworks_Gcc_ProblemPatch[] = { "sed",
5296 "-e", "s/#ifdef __GNUC_TYPEOF_FEATURE_BROKEN_USE_DEFAULT_UNTIL_FIXED__/#if 1/",
5297 "-e", "/[ \t]size_t/i\\\n\
5298 #ifndef _GCC_SIZE_T\\\n\
5299 #define _GCC_SIZE_T\n",
5300 "-e", "/[ \t]size_t/a\\\n\
5301 #endif\n",
5302 "-e", "/[ \t]ptrdiff_t/i\\\n\
5303 #ifndef _GCC_PTRDIFF_T\\\n\
5304 #define _GCC_PTRDIFF_T\n",
5305 "-e", "/[ \t]ptrdiff_t/a\\\n\
5306 #endif\n",
5307 "-e", "/[ \t]wchar_t/i\\\n\
5308 #ifndef _GCC_WCHAR_T\\\n\
5309 #define _GCC_WCHAR_T\n",
5310 "-e", "/[ \t]wchar_t/a\\\n\
5311 #endif\n",
5312 (char*)NULL };
5313
5314 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5315 *
5316 * Description of Vxworks_Needs_Vxtypes fix
5317 */
5318 tSCC zVxworks_Needs_VxtypesName[] =
5319 "vxworks_needs_vxtypes";
5320
5321 /*
5322 * File name selection pattern
5323 */
5324 tSCC zVxworks_Needs_VxtypesList[] =
5325 "|time.h|";
5326 /*
5327 * Machine/OS name selection pattern
5328 */
5329 #define apzVxworks_Needs_VxtypesMachs (const char**)NULL
5330
5331 /*
5332 * content selection pattern - do fix if pattern found
5333 */
5334 tSCC zVxworks_Needs_VxtypesSelect0[] =
5335 "uint_t([ \t]+_clocks_per_sec)";
5336
5337 #define VXWORKS_NEEDS_VXTYPES_TEST_CT 1
5338 static tTestDesc aVxworks_Needs_VxtypesTests[] = {
5339 { TT_EGREP, zVxworks_Needs_VxtypesSelect0, (regex_t*)NULL }, };
5340
5341 /*
5342 * Fix Command Arguments for Vxworks_Needs_Vxtypes
5343 */
5344 static const char* apzVxworks_Needs_VxtypesPatch[] = {
5345 "format",
5346 "unsigned int%1",
5347 (char*)NULL };
5348
5349 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5350 *
5351 * Description of Vxworks_Needs_Vxworks fix
5352 */
5353 tSCC zVxworks_Needs_VxworksName[] =
5354 "vxworks_needs_vxworks";
5355
5356 /*
5357 * File name selection pattern
5358 */
5359 tSCC zVxworks_Needs_VxworksList[] =
5360 "|sys/stat.h|";
5361 /*
5362 * Machine/OS name selection pattern
5363 */
5364 #define apzVxworks_Needs_VxworksMachs (const char**)NULL
5365
5366 /*
5367 * content selection pattern - do fix if pattern found
5368 */
5369 tSCC zVxworks_Needs_VxworksSelect0[] =
5370 "#[ \t]define[ \t]+__INCstath";
5371
5372 /*
5373 * perform the 'test' shell command - do fix on success
5374 */
5375 tSCC zVxworks_Needs_VxworksTest0[] =
5376 " -r types/vxTypesOld.h";
5377 tSCC zVxworks_Needs_VxworksTest1[] =
5378 " -n \"`egrep '#include' $file`\"";
5379 tSCC zVxworks_Needs_VxworksTest2[] =
5380 " -n \"`egrep ULONG $file`\"";
5381
5382 #define VXWORKS_NEEDS_VXWORKS_TEST_CT 4
5383 static tTestDesc aVxworks_Needs_VxworksTests[] = {
5384 { TT_TEST, zVxworks_Needs_VxworksTest0, 0 /* unused */ },
5385 { TT_TEST, zVxworks_Needs_VxworksTest1, 0 /* unused */ },
5386 { TT_TEST, zVxworks_Needs_VxworksTest2, 0 /* unused */ },
5387 { TT_EGREP, zVxworks_Needs_VxworksSelect0, (regex_t*)NULL }, };
5388
5389 /*
5390 * Fix Command Arguments for Vxworks_Needs_Vxworks
5391 */
5392 static const char* apzVxworks_Needs_VxworksPatch[] = { "sed",
5393 "-e", "/#[ \t]define[ \t][ \t]*__INCstath/a\\\n\
5394 #include <types/vxTypesOld.h>\n",
5395 (char*)NULL };
5396
5397 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5398 *
5399 * Description of Vxworks_Time fix
5400 */
5401 tSCC zVxworks_TimeName[] =
5402 "vxworks_time";
5403
5404 /*
5405 * File name selection pattern
5406 */
5407 tSCC zVxworks_TimeList[] =
5408 "|time.h|";
5409 /*
5410 * Machine/OS name selection pattern
5411 */
5412 #define apzVxworks_TimeMachs (const char**)NULL
5413
5414 /*
5415 * content selection pattern - do fix if pattern found
5416 */
5417 tSCC zVxworks_TimeSelect0[] =
5418 "#[ \t]*define[ \t]+VOIDFUNCPTR[ \t].*";
5419
5420 /*
5421 * perform the 'test' shell command - do fix on success
5422 */
5423 tSCC zVxworks_TimeTest0[] =
5424 " -r vxWorks.h";
5425
5426 #define VXWORKS_TIME_TEST_CT 2
5427 static tTestDesc aVxworks_TimeTests[] = {
5428 { TT_TEST, zVxworks_TimeTest0, 0 /* unused */ },
5429 { TT_EGREP, zVxworks_TimeSelect0, (regex_t*)NULL }, };
5430
5431 /*
5432 * Fix Command Arguments for Vxworks_Time
5433 */
5434 static const char* apzVxworks_TimePatch[] = {
5435 "format",
5436 "#ifndef __gcc_VOIDFUNCPTR_defined\n\
5437 #ifdef __cplusplus\n\
5438 typedef void (*__gcc_VOIDFUNCPTR) (...);\n\
5439 #else\n\
5440 typedef void (*__gcc_VOIDFUNCPTR) ();\n\
5441 #endif\n\
5442 #define __gcc_VOIDFUNCPTR_defined\n\
5443 #endif\n\
5444 #define VOIDFUNCPTR __gcc_VOIDFUNCPTR",
5445 (char*)NULL };
5446
5447 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5448 *
5449 * Description of X11_Class fix
5450 */
5451 tSCC zX11_ClassName[] =
5452 "x11_class";
5453
5454 /*
5455 * File name selection pattern
5456 */
5457 tSCC zX11_ClassList[] =
5458 "|X11/ShellP.h|";
5459 /*
5460 * Machine/OS name selection pattern
5461 */
5462 #define apzX11_ClassMachs (const char**)NULL
5463
5464 /*
5465 * content selection pattern - do fix if pattern found
5466 */
5467 tSCC zX11_ClassSelect0[] =
5468 "^([ \t]*char \\*)class;(.*)";
5469
5470 /*
5471 * content bypass pattern - skip fix if pattern found
5472 */
5473 tSCC zX11_ClassBypass0[] =
5474 "__cplusplus";
5475
5476 #define X11_CLASS_TEST_CT 2
5477 static tTestDesc aX11_ClassTests[] = {
5478 { TT_NEGREP, zX11_ClassBypass0, (regex_t*)NULL },
5479 { TT_EGREP, zX11_ClassSelect0, (regex_t*)NULL }, };
5480
5481 /*
5482 * Fix Command Arguments for X11_Class
5483 */
5484 static const char* apzX11_ClassPatch[] = {
5485 "format",
5486 "#ifdef __cplusplus\n\
5487 %1c_class;%2\n\
5488 #else\n\
5489 %1class;%2\n\
5490 #endif",
5491 (char*)NULL };
5492
5493 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5494 *
5495 * Description of X11_Class_Usage fix
5496 */
5497 tSCC zX11_Class_UsageName[] =
5498 "x11_class_usage";
5499
5500 /*
5501 * File name selection pattern
5502 */
5503 tSCC zX11_Class_UsageList[] =
5504 "|Xm/BaseClassI.h|";
5505 /*
5506 * Machine/OS name selection pattern
5507 */
5508 #define apzX11_Class_UsageMachs (const char**)NULL
5509
5510 /*
5511 * content selection pattern - do fix if pattern found
5512 */
5513 tSCC zX11_Class_UsageSelect0[] =
5514 " class\\)";
5515
5516 /*
5517 * content bypass pattern - skip fix if pattern found
5518 */
5519 tSCC zX11_Class_UsageBypass0[] =
5520 "__cplusplus";
5521
5522 #define X11_CLASS_USAGE_TEST_CT 2
5523 static tTestDesc aX11_Class_UsageTests[] = {
5524 { TT_NEGREP, zX11_Class_UsageBypass0, (regex_t*)NULL },
5525 { TT_EGREP, zX11_Class_UsageSelect0, (regex_t*)NULL }, };
5526
5527 /*
5528 * Fix Command Arguments for X11_Class_Usage
5529 */
5530 static const char* apzX11_Class_UsagePatch[] = {
5531 "format",
5532 " c_class)",
5533 (char*)NULL };
5534
5535 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5536 *
5537 * Description of X11_New fix
5538 */
5539 tSCC zX11_NewName[] =
5540 "x11_new";
5541
5542 /*
5543 * File name selection pattern
5544 */
5545 tSCC zX11_NewList[] =
5546 "|Xm/Traversal.h|";
5547 /*
5548 * Machine/OS name selection pattern
5549 */
5550 #define apzX11_NewMachs (const char**)NULL
5551
5552 /*
5553 * content bypass pattern - skip fix if pattern found
5554 */
5555 tSCC zX11_NewBypass0[] =
5556 "__cplusplus";
5557
5558 #define X11_NEW_TEST_CT 1
5559 static tTestDesc aX11_NewTests[] = {
5560 { TT_NEGREP, zX11_NewBypass0, (regex_t*)NULL }, };
5561
5562 /*
5563 * Fix Command Arguments for X11_New
5564 */
5565 static const char* apzX11_NewPatch[] = { "sed",
5566 "-e", "/Widget\told, new;/i\\\n\
5567 #ifdef __cplusplus\\\n\
5568 \tWidget\told, c_new;\\\n\
5569 #else\n",
5570 "-e", "/Widget\told, new;/a\\\n\
5571 #endif\n",
5572 "-e", "s/Widget new,/Widget c_new,/g",
5573 (char*)NULL };
5574
5575 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5576 *
5577 * Description of X11_Sprintf fix
5578 */
5579 tSCC zX11_SprintfName[] =
5580 "x11_sprintf";
5581
5582 /*
5583 * File name selection pattern
5584 */
5585 tSCC zX11_SprintfList[] =
5586 "|X11/Xmu.h|X11/Xmu/Xmu.h|";
5587 /*
5588 * Machine/OS name selection pattern
5589 */
5590 #define apzX11_SprintfMachs (const char**)NULL
5591
5592 /*
5593 * content selection pattern - do fix if pattern found
5594 */
5595 tSCC zX11_SprintfSelect0[] =
5596 "^extern char \\*\tsprintf\\(\\);$";
5597
5598 #define X11_SPRINTF_TEST_CT 1
5599 static tTestDesc aX11_SprintfTests[] = {
5600 { TT_EGREP, zX11_SprintfSelect0, (regex_t*)NULL }, };
5601
5602 /*
5603 * Fix Command Arguments for X11_Sprintf
5604 */
5605 static const char* apzX11_SprintfPatch[] = {
5606 "format",
5607 "#ifndef __STDC__\n\
5608 %0\n\
5609 #endif /* !defined __STDC__ */",
5610 (char*)NULL };
5611
5612
5613 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5614 *
5615 * List of all fixes
5616 */
5617 #define REGEX_COUNT 151
5618 #define MACH_LIST_SIZE_LIMIT 279
5619 #define FIX_COUNT 144
5620
5621 /*
5622 * Enumerate the fixes
5623 */
5624 typedef enum {
5625 AAA_BAD_FIXES_FIXIDX,
5626 AAA_KI_FIXIDX,
5627 AAA_KI_CALLS_FIXIDX,
5628 AAA_KI_DEFS_FIXIDX,
5629 AAA_KI_IFACE_FIXIDX,
5630 AAA_STANDARDS_FIXIDX,
5631 AAA_TIME_FIXIDX,
5632 AAB_DGUX_INT_VARARGS_FIXIDX,
5633 AAB_FD_ZERO_ASM_POSIX_TYPES_H_FIXIDX,
5634 AAB_FD_ZERO_GNU_TYPES_H_FIXIDX,
5635 AAB_FD_ZERO_SELECTBITS_H_FIXIDX,
5636 AAB_SUN_MEMCPY_FIXIDX,
5637 AAB_SVR4_REPLACE_BYTEORDER_FIXIDX,
5638 AAB_ULTRIX_ANSI_COMPAT_FIXIDX,
5639 AAB_ULTRIX_LIMITS_FIXIDX,
5640 AAB_ULTRIX_MEMORY_FIXIDX,
5641 AAB_ULTRIX_STRING_FIXIDX,
5642 AIX_PTHREAD_FIXIDX,
5643 AIX_SYSMACHINE_FIXIDX,
5644 AIX_SYSWAIT_FIXIDX,
5645 AIX_VOLATILE_FIXIDX,
5646 ALPHA___ASSERT_FIXIDX,
5647 ALPHA_GETOPT_FIXIDX,
5648 ALPHA_PARENS_FIXIDX,
5649 ALPHA_SBRK_FIXIDX,
5650 ARM_NORCROFT_HINT_FIXIDX,
5651 ARM_WCHAR_FIXIDX,
5652 AUX_ASM_FIXIDX,
5653 AVOID_BOOL_DEFINE_FIXIDX,
5654 AVOID_BOOL_TYPE_FIXIDX,
5655 AVOID_WCHAR_T_TYPE_FIXIDX,
5656 BAD_LVAL_FIXIDX,
5657 BAD_STRUCT_TERM_FIXIDX,
5658 BADQUOTE_FIXIDX,
5659 BROKEN_ASSERT_STDIO_FIXIDX,
5660 BROKEN_ASSERT_STDLIB_FIXIDX,
5661 BROKEN_CABS_FIXIDX,
5662 CTRL_QUOTES_DEF_FIXIDX,
5663 CTRL_QUOTES_USE_FIXIDX,
5664 CXX_UNREADY_FIXIDX,
5665 DEC_INTERN_ASM_FIXIDX,
5666 DJGPP_WCHAR_H_FIXIDX,
5667 ECD_CURSOR_FIXIDX,
5668 FIX_HEADER_BREAKAGE_FIXIDX,
5669 FREEBSD_GCC3_BREAKAGE_FIXIDX,
5670 GNU_TYPES_FIXIDX,
5671 HP_INLINE_FIXIDX,
5672 HP_SYSFILE_FIXIDX,
5673 HPUX10_CPP_POW_INLINE_FIXIDX,
5674 HPUX11_CPP_POW_INLINE_FIXIDX,
5675 HPUX11_FABSF_FIXIDX,
5676 HPUX11_UINT32_C_FIXIDX,
5677 HPUX11_VSNPRINTF_FIXIDX,
5678 HPUX8_BOGUS_INLINES_FIXIDX,
5679 HPUX_MAXINT_FIXIDX,
5680 HPUX_SYSTIME_FIXIDX,
5681 INT_ABORT_FREE_AND_EXIT_FIXIDX,
5682 IO_QUOTES_DEF_FIXIDX,
5683 IO_QUOTES_USE_FIXIDX,
5684 IP_MISSING_SEMI_FIXIDX,
5685 IRIX_ASM_APOSTROPHE_FIXIDX,
5686 IRIX_LIMITS_CONST_FIXIDX,
5687 IRIX_STDIO_VA_LIST_FIXIDX,
5688 ISC_FMOD_FIXIDX,
5689 ISC_OMITS_WITH_STDC_FIXIDX,
5690 KANDR_CONCAT_FIXIDX,
5691 LIBC1_IFDEFD_MEMX_FIXIDX,
5692 LIMITS_IFNDEFS_FIXIDX,
5693 LYNX_VOID_INT_FIXIDX,
5694 LYNXOS_FCNTL_PROTO_FIXIDX,
5695 M88K_BAD_HYPOT_OPT_FIXIDX,
5696 M88K_BAD_S_IF_FIXIDX,
5697 M88K_MULTI_INCL_FIXIDX,
5698 MACHINE_ANSI_H_VA_LIST_FIXIDX,
5699 MACHINE_NAME_FIXIDX,
5700 MATH_EXCEPTION_FIXIDX,
5701 MATH_HUGE_VAL_FROM_DBL_MAX_FIXIDX,
5702 MATH_HUGE_VAL_IFNDEF_FIXIDX,
5703 NESTED_AUTH_DES_FIXIDX,
5704 NESTED_MOTOROLA_FIXIDX,
5705 NESTED_SYS_LIMITS_FIXIDX,
5706 NEWS_OS_RECURSION_FIXIDX,
5707 NEXT_MATH_PREFIX_FIXIDX,
5708 NEXT_TEMPLATE_FIXIDX,
5709 NEXT_VOLITILE_FIXIDX,
5710 NEXT_WAIT_UNION_FIXIDX,
5711 NODEENT_SYNTAX_FIXIDX,
5712 OSF_NAMESPACE_A_FIXIDX,
5713 OSF_NAMESPACE_C_FIXIDX,
5714 PTHREAD_PAGE_SIZE_FIXIDX,
5715 READ_RET_TYPE_FIXIDX,
5716 RS6000_DOUBLE_FIXIDX,
5717 RS6000_FCHMOD_FIXIDX,
5718 RS6000_PARAM_FIXIDX,
5719 SCO_STATIC_FUNC_FIXIDX,
5720 SCO_UTIME_FIXIDX,
5721 SOLARIS_MUTEX_INIT_FIXIDX,
5722 STATSSWTCH_FIXIDX,
5723 STDIO_STDARG_H_FIXIDX,
5724 STDIO_VA_LIST_FIXIDX,
5725 STRICT_ANSI_NOT_FIXIDX,
5726 STRICT_ANSI_NOT_CTD_FIXIDX,
5727 STRICT_ANSI_ONLY_FIXIDX,
5728 STRUCT_FILE_FIXIDX,
5729 STRUCT_SOCKADDR_FIXIDX,
5730 SUN_AUTH_PROTO_FIXIDX,
5731 SUN_BOGUS_IFDEF_FIXIDX,
5732 SUN_CATMACRO_FIXIDX,
5733 SUN_MALLOC_FIXIDX,
5734 SUN_RUSERS_SEMI_FIXIDX,
5735 SUN_SIGNAL_FIXIDX,
5736 SUNOS_MATHERR_DECL_FIXIDX,
5737 SUNOS_STRLEN_FIXIDX,
5738 SVR4__P_FIXIDX,
5739 SVR4_GETCWD_FIXIDX,
5740 SVR4_PROFIL_FIXIDX,
5741 SYSV68_STRING_FIXIDX,
5742 SYSZ_STDLIB_FOR_SUN_FIXIDX,
5743 TINFO_CPLUSPLUS_FIXIDX,
5744 ULTRIX_ATEXIT_PARAM_FIXIDX,
5745 ULTRIX_ATOF_PARAM_FIXIDX,
5746 ULTRIX_CONST_FIXIDX,
5747 ULTRIX_CONST2_FIXIDX,
5748 ULTRIX_FIX_FIXPROTO_FIXIDX,
5749 ULTRIX_IFDEF_FIXIDX,
5750 ULTRIX_MATH_IFDEF_FIXIDX,
5751 ULTRIX_NESTED_IOCTL_FIXIDX,
5752 ULTRIX_NESTED_SVC_FIXIDX,
5753 ULTRIX_STAT_FIXIDX,
5754 ULTRIX_STATIC_FIXIDX,
5755 ULTRIX_STRINGS_FIXIDX,
5756 UNDEFINE_NULL_FIXIDX,
5757 UNICOSMK_RESTRICT_FIXIDX,
5758 UW7_BYTEORDER_FIX_FIXIDX,
5759 VA_I960_MACRO_FIXIDX,
5760 VOID_NULL_FIXIDX,
5761 VXWORKS_GCC_PROBLEM_FIXIDX,
5762 VXWORKS_NEEDS_VXTYPES_FIXIDX,
5763 VXWORKS_NEEDS_VXWORKS_FIXIDX,
5764 VXWORKS_TIME_FIXIDX,
5765 X11_CLASS_FIXIDX,
5766 X11_CLASS_USAGE_FIXIDX,
5767 X11_NEW_FIXIDX,
5768 X11_SPRINTF_FIXIDX
5769 } t_fixinc_idx;
5770
5771 tFixDesc fixDescList[ FIX_COUNT ] = {
5772 { zAaa_Bad_FixesName, zAaa_Bad_FixesList,
5773 apzAaa_Bad_FixesMachs,
5774 AAA_BAD_FIXES_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
5775 aAaa_Bad_FixesTests, apzAaa_Bad_FixesPatch, 0 },
5776
5777 { zAaa_KiName, zAaa_KiList,
5778 apzAaa_KiMachs,
5779 AAA_KI_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
5780 aAaa_KiTests, apzAaa_KiPatch, 0 },
5781
5782 { zAaa_Ki_CallsName, zAaa_Ki_CallsList,
5783 apzAaa_Ki_CallsMachs,
5784 AAA_KI_CALLS_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
5785 aAaa_Ki_CallsTests, apzAaa_Ki_CallsPatch, 0 },
5786
5787 { zAaa_Ki_DefsName, zAaa_Ki_DefsList,
5788 apzAaa_Ki_DefsMachs,
5789 AAA_KI_DEFS_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
5790 aAaa_Ki_DefsTests, apzAaa_Ki_DefsPatch, 0 },
5791
5792 { zAaa_Ki_IfaceName, zAaa_Ki_IfaceList,
5793 apzAaa_Ki_IfaceMachs,
5794 AAA_KI_IFACE_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
5795 aAaa_Ki_IfaceTests, apzAaa_Ki_IfacePatch, 0 },
5796
5797 { zAaa_StandardsName, zAaa_StandardsList,
5798 apzAaa_StandardsMachs,
5799 AAA_STANDARDS_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
5800 aAaa_StandardsTests, apzAaa_StandardsPatch, 0 },
5801
5802 { zAaa_TimeName, zAaa_TimeList,
5803 apzAaa_TimeMachs,
5804 AAA_TIME_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
5805 aAaa_TimeTests, apzAaa_TimePatch, 0 },
5806
5807 { zAab_Dgux_Int_VarargsName, zAab_Dgux_Int_VarargsList,
5808 apzAab_Dgux_Int_VarargsMachs,
5809 AAB_DGUX_INT_VARARGS_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
5810 aAab_Dgux_Int_VarargsTests, apzAab_Dgux_Int_VarargsPatch, 0 },
5811
5812 { zAab_Fd_Zero_Asm_Posix_Types_HName, zAab_Fd_Zero_Asm_Posix_Types_HList,
5813 apzAab_Fd_Zero_Asm_Posix_Types_HMachs,
5814 AAB_FD_ZERO_ASM_POSIX_TYPES_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
5815 aAab_Fd_Zero_Asm_Posix_Types_HTests, apzAab_Fd_Zero_Asm_Posix_Types_HPatch, 0 },
5816
5817 { zAab_Fd_Zero_Gnu_Types_HName, zAab_Fd_Zero_Gnu_Types_HList,
5818 apzAab_Fd_Zero_Gnu_Types_HMachs,
5819 AAB_FD_ZERO_GNU_TYPES_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
5820 aAab_Fd_Zero_Gnu_Types_HTests, apzAab_Fd_Zero_Gnu_Types_HPatch, 0 },
5821
5822 { zAab_Fd_Zero_Selectbits_HName, zAab_Fd_Zero_Selectbits_HList,
5823 apzAab_Fd_Zero_Selectbits_HMachs,
5824 AAB_FD_ZERO_SELECTBITS_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
5825 aAab_Fd_Zero_Selectbits_HTests, apzAab_Fd_Zero_Selectbits_HPatch, 0 },
5826
5827 { zAab_Sun_MemcpyName, zAab_Sun_MemcpyList,
5828 apzAab_Sun_MemcpyMachs,
5829 AAB_SUN_MEMCPY_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
5830 aAab_Sun_MemcpyTests, apzAab_Sun_MemcpyPatch, 0 },
5831
5832 { zAab_Svr4_Replace_ByteorderName, zAab_Svr4_Replace_ByteorderList,
5833 apzAab_Svr4_Replace_ByteorderMachs,
5834 AAB_SVR4_REPLACE_BYTEORDER_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
5835 aAab_Svr4_Replace_ByteorderTests, apzAab_Svr4_Replace_ByteorderPatch, 0 },
5836
5837 { zAab_Ultrix_Ansi_CompatName, zAab_Ultrix_Ansi_CompatList,
5838 apzAab_Ultrix_Ansi_CompatMachs,
5839 AAB_ULTRIX_ANSI_COMPAT_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
5840 aAab_Ultrix_Ansi_CompatTests, apzAab_Ultrix_Ansi_CompatPatch, 0 },
5841
5842 { zAab_Ultrix_LimitsName, zAab_Ultrix_LimitsList,
5843 apzAab_Ultrix_LimitsMachs,
5844 AAB_ULTRIX_LIMITS_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
5845 aAab_Ultrix_LimitsTests, apzAab_Ultrix_LimitsPatch, 0 },
5846
5847 { zAab_Ultrix_MemoryName, zAab_Ultrix_MemoryList,
5848 apzAab_Ultrix_MemoryMachs,
5849 AAB_ULTRIX_MEMORY_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
5850 aAab_Ultrix_MemoryTests, apzAab_Ultrix_MemoryPatch, 0 },
5851
5852 { zAab_Ultrix_StringName, zAab_Ultrix_StringList,
5853 apzAab_Ultrix_StringMachs,
5854 AAB_ULTRIX_STRING_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
5855 aAab_Ultrix_StringTests, apzAab_Ultrix_StringPatch, 0 },
5856
5857 { zAix_PthreadName, zAix_PthreadList,
5858 apzAix_PthreadMachs,
5859 AIX_PTHREAD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5860 aAix_PthreadTests, apzAix_PthreadPatch, 0 },
5861
5862 { zAix_SysmachineName, zAix_SysmachineList,
5863 apzAix_SysmachineMachs,
5864 AIX_SYSMACHINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5865 aAix_SysmachineTests, apzAix_SysmachinePatch, 0 },
5866
5867 { zAix_SyswaitName, zAix_SyswaitList,
5868 apzAix_SyswaitMachs,
5869 AIX_SYSWAIT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5870 aAix_SyswaitTests, apzAix_SyswaitPatch, 0 },
5871
5872 { zAix_VolatileName, zAix_VolatileList,
5873 apzAix_VolatileMachs,
5874 AIX_VOLATILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5875 aAix_VolatileTests, apzAix_VolatilePatch, 0 },
5876
5877 { zAlpha___AssertName, zAlpha___AssertList,
5878 apzAlpha___AssertMachs,
5879 ALPHA___ASSERT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5880 aAlpha___AssertTests, apzAlpha___AssertPatch, 0 },
5881
5882 { zAlpha_GetoptName, zAlpha_GetoptList,
5883 apzAlpha_GetoptMachs,
5884 ALPHA_GETOPT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5885 aAlpha_GetoptTests, apzAlpha_GetoptPatch, 0 },
5886
5887 { zAlpha_ParensName, zAlpha_ParensList,
5888 apzAlpha_ParensMachs,
5889 ALPHA_PARENS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5890 aAlpha_ParensTests, apzAlpha_ParensPatch, 0 },
5891
5892 { zAlpha_SbrkName, zAlpha_SbrkList,
5893 apzAlpha_SbrkMachs,
5894 ALPHA_SBRK_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5895 aAlpha_SbrkTests, apzAlpha_SbrkPatch, 0 },
5896
5897 { zArm_Norcroft_HintName, zArm_Norcroft_HintList,
5898 apzArm_Norcroft_HintMachs,
5899 ARM_NORCROFT_HINT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5900 aArm_Norcroft_HintTests, apzArm_Norcroft_HintPatch, 0 },
5901
5902 { zArm_WcharName, zArm_WcharList,
5903 apzArm_WcharMachs,
5904 ARM_WCHAR_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5905 aArm_WcharTests, apzArm_WcharPatch, 0 },
5906
5907 { zAux_AsmName, zAux_AsmList,
5908 apzAux_AsmMachs,
5909 AUX_ASM_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5910 aAux_AsmTests, apzAux_AsmPatch, 0 },
5911
5912 { zAvoid_Bool_DefineName, zAvoid_Bool_DefineList,
5913 apzAvoid_Bool_DefineMachs,
5914 AVOID_BOOL_DEFINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5915 aAvoid_Bool_DefineTests, apzAvoid_Bool_DefinePatch, 0 },
5916
5917 { zAvoid_Bool_TypeName, zAvoid_Bool_TypeList,
5918 apzAvoid_Bool_TypeMachs,
5919 AVOID_BOOL_TYPE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5920 aAvoid_Bool_TypeTests, apzAvoid_Bool_TypePatch, 0 },
5921
5922 { zAvoid_Wchar_T_TypeName, zAvoid_Wchar_T_TypeList,
5923 apzAvoid_Wchar_T_TypeMachs,
5924 AVOID_WCHAR_T_TYPE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5925 aAvoid_Wchar_T_TypeTests, apzAvoid_Wchar_T_TypePatch, 0 },
5926
5927 { zBad_LvalName, zBad_LvalList,
5928 apzBad_LvalMachs,
5929 BAD_LVAL_TEST_CT, FD_MACH_ONLY,
5930 aBad_LvalTests, apzBad_LvalPatch, 0 },
5931
5932 { zBad_Struct_TermName, zBad_Struct_TermList,
5933 apzBad_Struct_TermMachs,
5934 BAD_STRUCT_TERM_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5935 aBad_Struct_TermTests, apzBad_Struct_TermPatch, 0 },
5936
5937 { zBadquoteName, zBadquoteList,
5938 apzBadquoteMachs,
5939 BADQUOTE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5940 aBadquoteTests, apzBadquotePatch, 0 },
5941
5942 { zBroken_Assert_StdioName, zBroken_Assert_StdioList,
5943 apzBroken_Assert_StdioMachs,
5944 BROKEN_ASSERT_STDIO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5945 aBroken_Assert_StdioTests, apzBroken_Assert_StdioPatch, 0 },
5946
5947 { zBroken_Assert_StdlibName, zBroken_Assert_StdlibList,
5948 apzBroken_Assert_StdlibMachs,
5949 BROKEN_ASSERT_STDLIB_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5950 aBroken_Assert_StdlibTests, apzBroken_Assert_StdlibPatch, 0 },
5951
5952 { zBroken_CabsName, zBroken_CabsList,
5953 apzBroken_CabsMachs,
5954 BROKEN_CABS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5955 aBroken_CabsTests, apzBroken_CabsPatch, 0 },
5956
5957 { zCtrl_Quotes_DefName, zCtrl_Quotes_DefList,
5958 apzCtrl_Quotes_DefMachs,
5959 CTRL_QUOTES_DEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5960 aCtrl_Quotes_DefTests, apzCtrl_Quotes_DefPatch, 0 },
5961
5962 { zCtrl_Quotes_UseName, zCtrl_Quotes_UseList,
5963 apzCtrl_Quotes_UseMachs,
5964 CTRL_QUOTES_USE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5965 aCtrl_Quotes_UseTests, apzCtrl_Quotes_UsePatch, 0 },
5966
5967 { zCxx_UnreadyName, zCxx_UnreadyList,
5968 apzCxx_UnreadyMachs,
5969 CXX_UNREADY_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5970 aCxx_UnreadyTests, apzCxx_UnreadyPatch, 0 },
5971
5972 { zDec_Intern_AsmName, zDec_Intern_AsmList,
5973 apzDec_Intern_AsmMachs,
5974 DEC_INTERN_ASM_TEST_CT, FD_MACH_ONLY,
5975 aDec_Intern_AsmTests, apzDec_Intern_AsmPatch, 0 },
5976
5977 { zDjgpp_Wchar_HName, zDjgpp_Wchar_HList,
5978 apzDjgpp_Wchar_HMachs,
5979 DJGPP_WCHAR_H_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5980 aDjgpp_Wchar_HTests, apzDjgpp_Wchar_HPatch, 0 },
5981
5982 { zEcd_CursorName, zEcd_CursorList,
5983 apzEcd_CursorMachs,
5984 ECD_CURSOR_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5985 aEcd_CursorTests, apzEcd_CursorPatch, 0 },
5986
5987 { zFix_Header_BreakageName, zFix_Header_BreakageList,
5988 apzFix_Header_BreakageMachs,
5989 FIX_HEADER_BREAKAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5990 aFix_Header_BreakageTests, apzFix_Header_BreakagePatch, 0 },
5991
5992 { zFreebsd_Gcc3_BreakageName, zFreebsd_Gcc3_BreakageList,
5993 apzFreebsd_Gcc3_BreakageMachs,
5994 FREEBSD_GCC3_BREAKAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5995 aFreebsd_Gcc3_BreakageTests, apzFreebsd_Gcc3_BreakagePatch, 0 },
5996
5997 { zGnu_TypesName, zGnu_TypesList,
5998 apzGnu_TypesMachs,
5999 GNU_TYPES_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6000 aGnu_TypesTests, apzGnu_TypesPatch, 0 },
6001
6002 { zHp_InlineName, zHp_InlineList,
6003 apzHp_InlineMachs,
6004 HP_INLINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6005 aHp_InlineTests, apzHp_InlinePatch, 0 },
6006
6007 { zHp_SysfileName, zHp_SysfileList,
6008 apzHp_SysfileMachs,
6009 HP_SYSFILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6010 aHp_SysfileTests, apzHp_SysfilePatch, 0 },
6011
6012 { zHpux10_Cpp_Pow_InlineName, zHpux10_Cpp_Pow_InlineList,
6013 apzHpux10_Cpp_Pow_InlineMachs,
6014 HPUX10_CPP_POW_INLINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6015 aHpux10_Cpp_Pow_InlineTests, apzHpux10_Cpp_Pow_InlinePatch, 0 },
6016
6017 { zHpux11_Cpp_Pow_InlineName, zHpux11_Cpp_Pow_InlineList,
6018 apzHpux11_Cpp_Pow_InlineMachs,
6019 HPUX11_CPP_POW_INLINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6020 aHpux11_Cpp_Pow_InlineTests, apzHpux11_Cpp_Pow_InlinePatch, 0 },
6021
6022 { zHpux11_FabsfName, zHpux11_FabsfList,
6023 apzHpux11_FabsfMachs,
6024 HPUX11_FABSF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6025 aHpux11_FabsfTests, apzHpux11_FabsfPatch, 0 },
6026
6027 { zHpux11_Uint32_CName, zHpux11_Uint32_CList,
6028 apzHpux11_Uint32_CMachs,
6029 HPUX11_UINT32_C_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6030 aHpux11_Uint32_CTests, apzHpux11_Uint32_CPatch, 0 },
6031
6032 { zHpux11_VsnprintfName, zHpux11_VsnprintfList,
6033 apzHpux11_VsnprintfMachs,
6034 HPUX11_VSNPRINTF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6035 aHpux11_VsnprintfTests, apzHpux11_VsnprintfPatch, 0 },
6036
6037 { zHpux8_Bogus_InlinesName, zHpux8_Bogus_InlinesList,
6038 apzHpux8_Bogus_InlinesMachs,
6039 HPUX8_BOGUS_INLINES_TEST_CT, FD_MACH_ONLY,
6040 aHpux8_Bogus_InlinesTests, apzHpux8_Bogus_InlinesPatch, 0 },
6041
6042 { zHpux_MaxintName, zHpux_MaxintList,
6043 apzHpux_MaxintMachs,
6044 HPUX_MAXINT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6045 aHpux_MaxintTests, apzHpux_MaxintPatch, 0 },
6046
6047 { zHpux_SystimeName, zHpux_SystimeList,
6048 apzHpux_SystimeMachs,
6049 HPUX_SYSTIME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6050 aHpux_SystimeTests, apzHpux_SystimePatch, 0 },
6051
6052 { zInt_Abort_Free_And_ExitName, zInt_Abort_Free_And_ExitList,
6053 apzInt_Abort_Free_And_ExitMachs,
6054 INT_ABORT_FREE_AND_EXIT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6055 aInt_Abort_Free_And_ExitTests, apzInt_Abort_Free_And_ExitPatch, 0 },
6056
6057 { zIo_Quotes_DefName, zIo_Quotes_DefList,
6058 apzIo_Quotes_DefMachs,
6059 IO_QUOTES_DEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6060 aIo_Quotes_DefTests, apzIo_Quotes_DefPatch, 0 },
6061
6062 { zIo_Quotes_UseName, zIo_Quotes_UseList,
6063 apzIo_Quotes_UseMachs,
6064 IO_QUOTES_USE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6065 aIo_Quotes_UseTests, apzIo_Quotes_UsePatch, 0 },
6066
6067 { zIp_Missing_SemiName, zIp_Missing_SemiList,
6068 apzIp_Missing_SemiMachs,
6069 IP_MISSING_SEMI_TEST_CT, FD_MACH_ONLY,
6070 aIp_Missing_SemiTests, apzIp_Missing_SemiPatch, 0 },
6071
6072 { zIrix_Asm_ApostropheName, zIrix_Asm_ApostropheList,
6073 apzIrix_Asm_ApostropheMachs,
6074 IRIX_ASM_APOSTROPHE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6075 aIrix_Asm_ApostropheTests, apzIrix_Asm_ApostrophePatch, 0 },
6076
6077 { zIrix_Limits_ConstName, zIrix_Limits_ConstList,
6078 apzIrix_Limits_ConstMachs,
6079 IRIX_LIMITS_CONST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6080 aIrix_Limits_ConstTests, apzIrix_Limits_ConstPatch, 0 },
6081
6082 { zIrix_Stdio_Va_ListName, zIrix_Stdio_Va_ListList,
6083 apzIrix_Stdio_Va_ListMachs,
6084 IRIX_STDIO_VA_LIST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6085 aIrix_Stdio_Va_ListTests, apzIrix_Stdio_Va_ListPatch, 0 },
6086
6087 { zIsc_FmodName, zIsc_FmodList,
6088 apzIsc_FmodMachs,
6089 ISC_FMOD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6090 aIsc_FmodTests, apzIsc_FmodPatch, 0 },
6091
6092 { zIsc_Omits_With_StdcName, zIsc_Omits_With_StdcList,
6093 apzIsc_Omits_With_StdcMachs,
6094 ISC_OMITS_WITH_STDC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6095 aIsc_Omits_With_StdcTests, apzIsc_Omits_With_StdcPatch, 0 },
6096
6097 { zKandr_ConcatName, zKandr_ConcatList,
6098 apzKandr_ConcatMachs,
6099 KANDR_CONCAT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6100 aKandr_ConcatTests, apzKandr_ConcatPatch, 0 },
6101
6102 { zLibc1_Ifdefd_MemxName, zLibc1_Ifdefd_MemxList,
6103 apzLibc1_Ifdefd_MemxMachs,
6104 LIBC1_IFDEFD_MEMX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6105 aLibc1_Ifdefd_MemxTests, apzLibc1_Ifdefd_MemxPatch, 0 },
6106
6107 { zLimits_IfndefsName, zLimits_IfndefsList,
6108 apzLimits_IfndefsMachs,
6109 LIMITS_IFNDEFS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6110 aLimits_IfndefsTests, apzLimits_IfndefsPatch, 0 },
6111
6112 { zLynx_Void_IntName, zLynx_Void_IntList,
6113 apzLynx_Void_IntMachs,
6114 LYNX_VOID_INT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6115 aLynx_Void_IntTests, apzLynx_Void_IntPatch, 0 },
6116
6117 { zLynxos_Fcntl_ProtoName, zLynxos_Fcntl_ProtoList,
6118 apzLynxos_Fcntl_ProtoMachs,
6119 LYNXOS_FCNTL_PROTO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6120 aLynxos_Fcntl_ProtoTests, apzLynxos_Fcntl_ProtoPatch, 0 },
6121
6122 { zM88k_Bad_Hypot_OptName, zM88k_Bad_Hypot_OptList,
6123 apzM88k_Bad_Hypot_OptMachs,
6124 M88K_BAD_HYPOT_OPT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6125 aM88k_Bad_Hypot_OptTests, apzM88k_Bad_Hypot_OptPatch, 0 },
6126
6127 { zM88k_Bad_S_IfName, zM88k_Bad_S_IfList,
6128 apzM88k_Bad_S_IfMachs,
6129 M88K_BAD_S_IF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6130 aM88k_Bad_S_IfTests, apzM88k_Bad_S_IfPatch, 0 },
6131
6132 { zM88k_Multi_InclName, zM88k_Multi_InclList,
6133 apzM88k_Multi_InclMachs,
6134 M88K_MULTI_INCL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6135 aM88k_Multi_InclTests, apzM88k_Multi_InclPatch, 0 },
6136
6137 { zMachine_Ansi_H_Va_ListName, zMachine_Ansi_H_Va_ListList,
6138 apzMachine_Ansi_H_Va_ListMachs,
6139 MACHINE_ANSI_H_VA_LIST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6140 aMachine_Ansi_H_Va_ListTests, apzMachine_Ansi_H_Va_ListPatch, 0 },
6141
6142 { zMachine_NameName, zMachine_NameList,
6143 apzMachine_NameMachs,
6144 MACHINE_NAME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6145 aMachine_NameTests, apzMachine_NamePatch, 0 },
6146
6147 { zMath_ExceptionName, zMath_ExceptionList,
6148 apzMath_ExceptionMachs,
6149 MATH_EXCEPTION_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6150 aMath_ExceptionTests, apzMath_ExceptionPatch, 0 },
6151
6152 { zMath_Huge_Val_From_Dbl_MaxName, zMath_Huge_Val_From_Dbl_MaxList,
6153 apzMath_Huge_Val_From_Dbl_MaxMachs,
6154 MATH_HUGE_VAL_FROM_DBL_MAX_TEST_CT, FD_MACH_ONLY | FD_SHELL_SCRIPT,
6155 aMath_Huge_Val_From_Dbl_MaxTests, apzMath_Huge_Val_From_Dbl_MaxPatch, 0 },
6156
6157 { zMath_Huge_Val_IfndefName, zMath_Huge_Val_IfndefList,
6158 apzMath_Huge_Val_IfndefMachs,
6159 MATH_HUGE_VAL_IFNDEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6160 aMath_Huge_Val_IfndefTests, apzMath_Huge_Val_IfndefPatch, 0 },
6161
6162 { zNested_Auth_DesName, zNested_Auth_DesList,
6163 apzNested_Auth_DesMachs,
6164 NESTED_AUTH_DES_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6165 aNested_Auth_DesTests, apzNested_Auth_DesPatch, 0 },
6166
6167 { zNested_MotorolaName, zNested_MotorolaList,
6168 apzNested_MotorolaMachs,
6169 NESTED_MOTOROLA_TEST_CT, FD_MACH_ONLY,
6170 aNested_MotorolaTests, apzNested_MotorolaPatch, 0 },
6171
6172 { zNested_Sys_LimitsName, zNested_Sys_LimitsList,
6173 apzNested_Sys_LimitsMachs,
6174 NESTED_SYS_LIMITS_TEST_CT, FD_MACH_ONLY,
6175 aNested_Sys_LimitsTests, apzNested_Sys_LimitsPatch, 0 },
6176
6177 { zNews_Os_RecursionName, zNews_Os_RecursionList,
6178 apzNews_Os_RecursionMachs,
6179 NEWS_OS_RECURSION_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6180 aNews_Os_RecursionTests, apzNews_Os_RecursionPatch, 0 },
6181
6182 { zNext_Math_PrefixName, zNext_Math_PrefixList,
6183 apzNext_Math_PrefixMachs,
6184 NEXT_MATH_PREFIX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6185 aNext_Math_PrefixTests, apzNext_Math_PrefixPatch, 0 },
6186
6187 { zNext_TemplateName, zNext_TemplateList,
6188 apzNext_TemplateMachs,
6189 NEXT_TEMPLATE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6190 aNext_TemplateTests, apzNext_TemplatePatch, 0 },
6191
6192 { zNext_VolitileName, zNext_VolitileList,
6193 apzNext_VolitileMachs,
6194 NEXT_VOLITILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6195 aNext_VolitileTests, apzNext_VolitilePatch, 0 },
6196
6197 { zNext_Wait_UnionName, zNext_Wait_UnionList,
6198 apzNext_Wait_UnionMachs,
6199 NEXT_WAIT_UNION_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6200 aNext_Wait_UnionTests, apzNext_Wait_UnionPatch, 0 },
6201
6202 { zNodeent_SyntaxName, zNodeent_SyntaxList,
6203 apzNodeent_SyntaxMachs,
6204 NODEENT_SYNTAX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6205 aNodeent_SyntaxTests, apzNodeent_SyntaxPatch, 0 },
6206
6207 { zOsf_Namespace_AName, zOsf_Namespace_AList,
6208 apzOsf_Namespace_AMachs,
6209 OSF_NAMESPACE_A_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6210 aOsf_Namespace_ATests, apzOsf_Namespace_APatch, 0 },
6211
6212 { zOsf_Namespace_CName, zOsf_Namespace_CList,
6213 apzOsf_Namespace_CMachs,
6214 OSF_NAMESPACE_C_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6215 aOsf_Namespace_CTests, apzOsf_Namespace_CPatch, 0 },
6216
6217 { zPthread_Page_SizeName, zPthread_Page_SizeList,
6218 apzPthread_Page_SizeMachs,
6219 PTHREAD_PAGE_SIZE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6220 aPthread_Page_SizeTests, apzPthread_Page_SizePatch, 0 },
6221
6222 { zRead_Ret_TypeName, zRead_Ret_TypeList,
6223 apzRead_Ret_TypeMachs,
6224 READ_RET_TYPE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6225 aRead_Ret_TypeTests, apzRead_Ret_TypePatch, 0 },
6226
6227 { zRs6000_DoubleName, zRs6000_DoubleList,
6228 apzRs6000_DoubleMachs,
6229 RS6000_DOUBLE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6230 aRs6000_DoubleTests, apzRs6000_DoublePatch, 0 },
6231
6232 { zRs6000_FchmodName, zRs6000_FchmodList,
6233 apzRs6000_FchmodMachs,
6234 RS6000_FCHMOD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6235 aRs6000_FchmodTests, apzRs6000_FchmodPatch, 0 },
6236
6237 { zRs6000_ParamName, zRs6000_ParamList,
6238 apzRs6000_ParamMachs,
6239 RS6000_PARAM_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6240 aRs6000_ParamTests, apzRs6000_ParamPatch, 0 },
6241
6242 { zSco_Static_FuncName, zSco_Static_FuncList,
6243 apzSco_Static_FuncMachs,
6244 SCO_STATIC_FUNC_TEST_CT, FD_MACH_ONLY,
6245 aSco_Static_FuncTests, apzSco_Static_FuncPatch, 0 },
6246
6247 { zSco_UtimeName, zSco_UtimeList,
6248 apzSco_UtimeMachs,
6249 SCO_UTIME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6250 aSco_UtimeTests, apzSco_UtimePatch, 0 },
6251
6252 { zSolaris_Mutex_InitName, zSolaris_Mutex_InitList,
6253 apzSolaris_Mutex_InitMachs,
6254 SOLARIS_MUTEX_INIT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6255 aSolaris_Mutex_InitTests, apzSolaris_Mutex_InitPatch, 0 },
6256
6257 { zStatsswtchName, zStatsswtchList,
6258 apzStatsswtchMachs,
6259 STATSSWTCH_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6260 aStatsswtchTests, apzStatsswtchPatch, 0 },
6261
6262 { zStdio_Stdarg_HName, zStdio_Stdarg_HList,
6263 apzStdio_Stdarg_HMachs,
6264 STDIO_STDARG_H_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6265 aStdio_Stdarg_HTests, apzStdio_Stdarg_HPatch, 0 },
6266
6267 { zStdio_Va_ListName, zStdio_Va_ListList,
6268 apzStdio_Va_ListMachs,
6269 STDIO_VA_LIST_TEST_CT, FD_MACH_ONLY,
6270 aStdio_Va_ListTests, apzStdio_Va_ListPatch, 0 },
6271
6272 { zStrict_Ansi_NotName, zStrict_Ansi_NotList,
6273 apzStrict_Ansi_NotMachs,
6274 STRICT_ANSI_NOT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6275 aStrict_Ansi_NotTests, apzStrict_Ansi_NotPatch, 0 },
6276
6277 { zStrict_Ansi_Not_CtdName, zStrict_Ansi_Not_CtdList,
6278 apzStrict_Ansi_Not_CtdMachs,
6279 STRICT_ANSI_NOT_CTD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6280 aStrict_Ansi_Not_CtdTests, apzStrict_Ansi_Not_CtdPatch, 0 },
6281
6282 { zStrict_Ansi_OnlyName, zStrict_Ansi_OnlyList,
6283 apzStrict_Ansi_OnlyMachs,
6284 STRICT_ANSI_ONLY_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6285 aStrict_Ansi_OnlyTests, apzStrict_Ansi_OnlyPatch, 0 },
6286
6287 { zStruct_FileName, zStruct_FileList,
6288 apzStruct_FileMachs,
6289 STRUCT_FILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6290 aStruct_FileTests, apzStruct_FilePatch, 0 },
6291
6292 { zStruct_SockaddrName, zStruct_SockaddrList,
6293 apzStruct_SockaddrMachs,
6294 STRUCT_SOCKADDR_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6295 aStruct_SockaddrTests, apzStruct_SockaddrPatch, 0 },
6296
6297 { zSun_Auth_ProtoName, zSun_Auth_ProtoList,
6298 apzSun_Auth_ProtoMachs,
6299 SUN_AUTH_PROTO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6300 aSun_Auth_ProtoTests, apzSun_Auth_ProtoPatch, 0 },
6301
6302 { zSun_Bogus_IfdefName, zSun_Bogus_IfdefList,
6303 apzSun_Bogus_IfdefMachs,
6304 SUN_BOGUS_IFDEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6305 aSun_Bogus_IfdefTests, apzSun_Bogus_IfdefPatch, 0 },
6306
6307 { zSun_CatmacroName, zSun_CatmacroList,
6308 apzSun_CatmacroMachs,
6309 SUN_CATMACRO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6310 aSun_CatmacroTests, apzSun_CatmacroPatch, 0 },
6311
6312 { zSun_MallocName, zSun_MallocList,
6313 apzSun_MallocMachs,
6314 SUN_MALLOC_TEST_CT, FD_MACH_ONLY,
6315 aSun_MallocTests, apzSun_MallocPatch, 0 },
6316
6317 { zSun_Rusers_SemiName, zSun_Rusers_SemiList,
6318 apzSun_Rusers_SemiMachs,
6319 SUN_RUSERS_SEMI_TEST_CT, FD_MACH_ONLY,
6320 aSun_Rusers_SemiTests, apzSun_Rusers_SemiPatch, 0 },
6321
6322 { zSun_SignalName, zSun_SignalList,
6323 apzSun_SignalMachs,
6324 SUN_SIGNAL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6325 aSun_SignalTests, apzSun_SignalPatch, 0 },
6326
6327 { zSunos_Matherr_DeclName, zSunos_Matherr_DeclList,
6328 apzSunos_Matherr_DeclMachs,
6329 SUNOS_MATHERR_DECL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6330 aSunos_Matherr_DeclTests, apzSunos_Matherr_DeclPatch, 0 },
6331
6332 { zSunos_StrlenName, zSunos_StrlenList,
6333 apzSunos_StrlenMachs,
6334 SUNOS_STRLEN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6335 aSunos_StrlenTests, apzSunos_StrlenPatch, 0 },
6336
6337 { zSvr4__PName, zSvr4__PList,
6338 apzSvr4__PMachs,
6339 SVR4__P_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6340 aSvr4__PTests, apzSvr4__PPatch, 0 },
6341
6342 { zSvr4_GetcwdName, zSvr4_GetcwdList,
6343 apzSvr4_GetcwdMachs,
6344 SVR4_GETCWD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6345 aSvr4_GetcwdTests, apzSvr4_GetcwdPatch, 0 },
6346
6347 { zSvr4_ProfilName, zSvr4_ProfilList,
6348 apzSvr4_ProfilMachs,
6349 SVR4_PROFIL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6350 aSvr4_ProfilTests, apzSvr4_ProfilPatch, 0 },
6351
6352 { zSysv68_StringName, zSysv68_StringList,
6353 apzSysv68_StringMachs,
6354 SYSV68_STRING_TEST_CT, FD_MACH_ONLY,
6355 aSysv68_StringTests, apzSysv68_StringPatch, 0 },
6356
6357 { zSysz_Stdlib_For_SunName, zSysz_Stdlib_For_SunList,
6358 apzSysz_Stdlib_For_SunMachs,
6359 SYSZ_STDLIB_FOR_SUN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6360 aSysz_Stdlib_For_SunTests, apzSysz_Stdlib_For_SunPatch, 0 },
6361
6362 { zTinfo_CplusplusName, zTinfo_CplusplusList,
6363 apzTinfo_CplusplusMachs,
6364 TINFO_CPLUSPLUS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6365 aTinfo_CplusplusTests, apzTinfo_CplusplusPatch, 0 },
6366
6367 { zUltrix_Atexit_ParamName, zUltrix_Atexit_ParamList,
6368 apzUltrix_Atexit_ParamMachs,
6369 ULTRIX_ATEXIT_PARAM_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6370 aUltrix_Atexit_ParamTests, apzUltrix_Atexit_ParamPatch, 0 },
6371
6372 { zUltrix_Atof_ParamName, zUltrix_Atof_ParamList,
6373 apzUltrix_Atof_ParamMachs,
6374 ULTRIX_ATOF_PARAM_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6375 aUltrix_Atof_ParamTests, apzUltrix_Atof_ParamPatch, 0 },
6376
6377 { zUltrix_ConstName, zUltrix_ConstList,
6378 apzUltrix_ConstMachs,
6379 ULTRIX_CONST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6380 aUltrix_ConstTests, apzUltrix_ConstPatch, 0 },
6381
6382 { zUltrix_Const2Name, zUltrix_Const2List,
6383 apzUltrix_Const2Machs,
6384 ULTRIX_CONST2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6385 aUltrix_Const2Tests, apzUltrix_Const2Patch, 0 },
6386
6387 { zUltrix_Fix_FixprotoName, zUltrix_Fix_FixprotoList,
6388 apzUltrix_Fix_FixprotoMachs,
6389 ULTRIX_FIX_FIXPROTO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6390 aUltrix_Fix_FixprotoTests, apzUltrix_Fix_FixprotoPatch, 0 },
6391
6392 { zUltrix_IfdefName, zUltrix_IfdefList,
6393 apzUltrix_IfdefMachs,
6394 ULTRIX_IFDEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6395 aUltrix_IfdefTests, apzUltrix_IfdefPatch, 0 },
6396
6397 { zUltrix_Math_IfdefName, zUltrix_Math_IfdefList,
6398 apzUltrix_Math_IfdefMachs,
6399 ULTRIX_MATH_IFDEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6400 aUltrix_Math_IfdefTests, apzUltrix_Math_IfdefPatch, 0 },
6401
6402 { zUltrix_Nested_IoctlName, zUltrix_Nested_IoctlList,
6403 apzUltrix_Nested_IoctlMachs,
6404 ULTRIX_NESTED_IOCTL_TEST_CT, FD_MACH_ONLY,
6405 aUltrix_Nested_IoctlTests, apzUltrix_Nested_IoctlPatch, 0 },
6406
6407 { zUltrix_Nested_SvcName, zUltrix_Nested_SvcList,
6408 apzUltrix_Nested_SvcMachs,
6409 ULTRIX_NESTED_SVC_TEST_CT, FD_MACH_ONLY,
6410 aUltrix_Nested_SvcTests, apzUltrix_Nested_SvcPatch, 0 },
6411
6412 { zUltrix_StatName, zUltrix_StatList,
6413 apzUltrix_StatMachs,
6414 ULTRIX_STAT_TEST_CT, FD_MACH_ONLY,
6415 aUltrix_StatTests, apzUltrix_StatPatch, 0 },
6416
6417 { zUltrix_StaticName, zUltrix_StaticList,
6418 apzUltrix_StaticMachs,
6419 ULTRIX_STATIC_TEST_CT, FD_MACH_ONLY,
6420 aUltrix_StaticTests, apzUltrix_StaticPatch, 0 },
6421
6422 { zUltrix_StringsName, zUltrix_StringsList,
6423 apzUltrix_StringsMachs,
6424 ULTRIX_STRINGS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6425 aUltrix_StringsTests, apzUltrix_StringsPatch, 0 },
6426
6427 { zUndefine_NullName, zUndefine_NullList,
6428 apzUndefine_NullMachs,
6429 UNDEFINE_NULL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6430 aUndefine_NullTests, apzUndefine_NullPatch, 0 },
6431
6432 { zUnicosmk_RestrictName, zUnicosmk_RestrictList,
6433 apzUnicosmk_RestrictMachs,
6434 UNICOSMK_RESTRICT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6435 aUnicosmk_RestrictTests, apzUnicosmk_RestrictPatch, 0 },
6436
6437 { zUw7_Byteorder_FixName, zUw7_Byteorder_FixList,
6438 apzUw7_Byteorder_FixMachs,
6439 UW7_BYTEORDER_FIX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6440 aUw7_Byteorder_FixTests, apzUw7_Byteorder_FixPatch, 0 },
6441
6442 { zVa_I960_MacroName, zVa_I960_MacroList,
6443 apzVa_I960_MacroMachs,
6444 VA_I960_MACRO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6445 aVa_I960_MacroTests, apzVa_I960_MacroPatch, 0 },
6446
6447 { zVoid_NullName, zVoid_NullList,
6448 apzVoid_NullMachs,
6449 VOID_NULL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6450 aVoid_NullTests, apzVoid_NullPatch, 0 },
6451
6452 { zVxworks_Gcc_ProblemName, zVxworks_Gcc_ProblemList,
6453 apzVxworks_Gcc_ProblemMachs,
6454 VXWORKS_GCC_PROBLEM_TEST_CT, FD_MACH_ONLY,
6455 aVxworks_Gcc_ProblemTests, apzVxworks_Gcc_ProblemPatch, 0 },
6456
6457 { zVxworks_Needs_VxtypesName, zVxworks_Needs_VxtypesList,
6458 apzVxworks_Needs_VxtypesMachs,
6459 VXWORKS_NEEDS_VXTYPES_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6460 aVxworks_Needs_VxtypesTests, apzVxworks_Needs_VxtypesPatch, 0 },
6461
6462 { zVxworks_Needs_VxworksName, zVxworks_Needs_VxworksList,
6463 apzVxworks_Needs_VxworksMachs,
6464 VXWORKS_NEEDS_VXWORKS_TEST_CT, FD_MACH_ONLY,
6465 aVxworks_Needs_VxworksTests, apzVxworks_Needs_VxworksPatch, 0 },
6466
6467 { zVxworks_TimeName, zVxworks_TimeList,
6468 apzVxworks_TimeMachs,
6469 VXWORKS_TIME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6470 aVxworks_TimeTests, apzVxworks_TimePatch, 0 },
6471
6472 { zX11_ClassName, zX11_ClassList,
6473 apzX11_ClassMachs,
6474 X11_CLASS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6475 aX11_ClassTests, apzX11_ClassPatch, 0 },
6476
6477 { zX11_Class_UsageName, zX11_Class_UsageList,
6478 apzX11_Class_UsageMachs,
6479 X11_CLASS_USAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6480 aX11_Class_UsageTests, apzX11_Class_UsagePatch, 0 },
6481
6482 { zX11_NewName, zX11_NewList,
6483 apzX11_NewMachs,
6484 X11_NEW_TEST_CT, FD_MACH_ONLY,
6485 aX11_NewTests, apzX11_NewPatch, 0 },
6486
6487 { zX11_SprintfName, zX11_SprintfList,
6488 apzX11_SprintfMachs,
6489 X11_SPRINTF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6490 aX11_SprintfTests, apzX11_SprintfPatch, 0 }
6491 };