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