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