2 * DO NOT EDIT THIS FILE - it has been generated
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.
8 * This file contains 138 fixup descriptions.
10 * See README for more information.
12 * inclhack copyright (c) 1998, 1999, 2000, 2001
13 * The Free Software Foundation, Inc.
15 * inclhack is free software.
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.
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.
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.
33 /* * * * * * * * * * * * * * * * * * * * * * * * * *
35 * Description of Aab_Dgux_Int_Varargs fix
37 tSCC zAab_Dgux_Int_VarargsName[] =
38 "AAB_dgux_int_varargs";
41 * File name selection pattern
43 tSCC zAab_Dgux_Int_VarargsList[] =
46 * Machine/OS name selection pattern
48 #define apzAab_Dgux_Int_VarargsMachs (const char**)NULL
49 #define AAB_DGUX_INT_VARARGS_TEST_CT 0
50 #define aAab_Dgux_Int_VarargsTests (tTestDesc*)NULL
53 * Fix Command Arguments for Aab_Dgux_Int_Varargs
55 static const char* apzAab_Dgux_Int_VarargsPatch[] = {
56 "#ifndef __INT_VARARGS_H\n\
57 #define __INT_VARARGS_H\n\n\
58 /********************************************************/\n\
59 /* Define the common stuff for varargs/stdarg/stdio. */\n\
60 /********************************************************/\n\n\
62 ** This file is a DG internal header. Never include this\n\
65 #ifndef ___int_features_h\n\
66 #include <sys/_int_features.h>\n\
68 #if !(defined(_VA_LIST) || defined(_VA_LIST_))\n\
70 #define _VA_LIST_\n\n\
73 typedef void * va_list;\n\
75 typedef char * va_list;\n\
79 #if defined(__DCC__)\n\n\
85 #else /* ! defined(__DCC__) */\n\n\
87 int __va_arg; /* argument number */\n\
88 int *__va_stk; /* start of args passed on stack */\n\
89 int *__va_reg; /* start of args passed in regs */\n\
91 #endif /* ! defined(__DCC__) */\n\n\
93 #if defined(__GNUC__) || defined(__STDC__)\n\
94 typedef void * va_list;\n\
96 typedef char * va_list;\n\
98 #endif /* _IX86_ANY */\n\n\
99 #endif /* __LINT__ */\n\
100 #endif /* !(defined(_VA_LIST) || defined(_VA_LIST_)) */\n\
101 #endif /* #ifndef __INT_VARARGS_H */",
104 /* * * * * * * * * * * * * * * * * * * * * * * * * *
106 * Description of Aab_Fd_Zero_Asm_Posix_Types_H fix
108 tSCC zAab_Fd_Zero_Asm_Posix_Types_HName[] =
109 "AAB_fd_zero_asm_posix_types_h";
112 * File name selection pattern
114 tSCC zAab_Fd_Zero_Asm_Posix_Types_HList[] =
115 "|asm/posix_types.h|";
117 * Machine/OS name selection pattern
119 tSCC* apzAab_Fd_Zero_Asm_Posix_Types_HMachs[] = {
120 "i[34567]86-*-linux*",
124 * content bypass pattern - skip fix if pattern found
126 tSCC zAab_Fd_Zero_Asm_Posix_Types_HBypass0[] =
129 #define AAB_FD_ZERO_ASM_POSIX_TYPES_H_TEST_CT 1
130 static tTestDesc aAab_Fd_Zero_Asm_Posix_Types_HTests[] = {
131 { TT_NEGREP, zAab_Fd_Zero_Asm_Posix_Types_HBypass0, (regex_t*)NULL }, };
134 * Fix Command Arguments for Aab_Fd_Zero_Asm_Posix_Types_H
136 static const char* apzAab_Fd_Zero_Asm_Posix_Types_HPatch[] = {
137 "/* This file fixes a bug in the __FD_ZERO macro\n\
138 for older versions of the Linux kernel. */\n\
139 #ifndef _POSIX_TYPES_H_WRAPPER\n\
140 #include <features.h>\n\
141 #include_next <asm/posix_types.h>\n\n\
142 #if defined(__FD_ZERO) && !defined(__GLIBC__)\n\
144 #define __FD_ZERO(fdsetp) \\\n\
146 int __d0, __d1; \\\n\
147 \t\t__asm__ __volatile__(\"cld ; rep ; stosl\" \\\n\
148 \t\t\t: \"=&c\" (__d0), \"=&D\" (__d1) \\\n\
149 \t\t\t: \"a\" (0), \"0\" (__FDSET_LONGS), \\\n\
150 \t\t\t \"1\" ((__kernel_fd_set *) (fdsetp)) :\"memory\"); \\\n\
153 #define _POSIX_TYPES_H_WRAPPER\n\
154 #endif /* _POSIX_TYPES_H_WRAPPER */\n",
157 /* * * * * * * * * * * * * * * * * * * * * * * * * *
159 * Description of Aab_Fd_Zero_Gnu_Types_H fix
161 tSCC zAab_Fd_Zero_Gnu_Types_HName[] =
162 "AAB_fd_zero_gnu_types_h";
165 * File name selection pattern
167 tSCC zAab_Fd_Zero_Gnu_Types_HList[] =
170 * Machine/OS name selection pattern
172 tSCC* apzAab_Fd_Zero_Gnu_Types_HMachs[] = {
173 "i[34567]86-*-linux*",
175 #define AAB_FD_ZERO_GNU_TYPES_H_TEST_CT 0
176 #define aAab_Fd_Zero_Gnu_Types_HTests (tTestDesc*)NULL
179 * Fix Command Arguments for Aab_Fd_Zero_Gnu_Types_H
181 static const char* apzAab_Fd_Zero_Gnu_Types_HPatch[] = {
182 "/* This file fixes a bug in the __FD_ZERO macro present in glibc 1.x. */\n\
183 #ifndef _TYPES_H_WRAPPER\n\
184 #include <features.h>\n\
185 #include_next <gnu/types.h>\n\n\
186 #if defined(__FD_ZERO) && !defined(__GLIBC__)\n\
188 # define __FD_ZERO(fdsetp) \\\n\
190 int __d0, __d1; \\\n\
191 \t__asm__ __volatile__(\"cld ; rep ; stosl\" \\\n\
192 \t: \"=&c\" (__d0), \"=&D\" (__d1) \\\n\
193 \t: \"a\" (0), \"0\" (__FDSET_LONGS), \\\n\
194 \t\t \"1\" ((__fd_set *) (fdsetp)) :\"memory\"); \\\n\
197 #define _TYPES_H_WRAPPER\n\
198 #endif /* _TYPES_H_WRAPPER */\n",
201 /* * * * * * * * * * * * * * * * * * * * * * * * * *
203 * Description of Aab_Fd_Zero_Selectbits_H fix
205 tSCC zAab_Fd_Zero_Selectbits_HName[] =
206 "AAB_fd_zero_selectbits_h";
209 * File name selection pattern
211 tSCC zAab_Fd_Zero_Selectbits_HList[] =
214 * Machine/OS name selection pattern
216 tSCC* apzAab_Fd_Zero_Selectbits_HMachs[] = {
217 "i[34567]86-*-linux*",
219 #define AAB_FD_ZERO_SELECTBITS_H_TEST_CT 0
220 #define aAab_Fd_Zero_Selectbits_HTests (tTestDesc*)NULL
223 * Fix Command Arguments for Aab_Fd_Zero_Selectbits_H
225 static const char* apzAab_Fd_Zero_Selectbits_HPatch[] = {
226 "/* This file fixes a bug in the __FD_ZERO macro present in glibc 2.0.x. */\n\
227 #ifndef _SELECTBITS_H_WRAPPER\n\
228 #include <features.h>\n\
229 #include_next <selectbits.h>\n\n\
230 #if defined(__FD_ZERO) && defined(__GLIBC__) \\\n\
231 \t&& defined(__GLIBC_MINOR__) && __GLIBC__ == 2 \\\n\
232 \t&& __GLIBC_MINOR__ == 0\n\
234 #define __FD_ZERO(fdsetp) \\\n\
236 int __d0, __d1; \\\n\
237 __asm__ __volatile__ (\"cld; rep; stosl\" \\\n\
238 : \"=&c\" (__d0), \"=&D\" (__d1) \\\n\
239 : \"a\" (0), \"0\" (sizeof (__fd_set) \\\n\
240 / sizeof (__fd_mask)), \\\n\
241 \"1\" ((__fd_mask *) (fdsetp)) \\\n\
245 #define _SELECTBITS_H_WRAPPER\n\
246 #endif /* _SELECTBITS_H_WRAPPER */\n",
249 /* * * * * * * * * * * * * * * * * * * * * * * * * *
251 * Description of Aab_Sun_Memcpy fix
253 tSCC zAab_Sun_MemcpyName[] =
257 * File name selection pattern
259 tSCC zAab_Sun_MemcpyList[] =
262 * Machine/OS name selection pattern
264 #define apzAab_Sun_MemcpyMachs (const char**)NULL
267 * content selection pattern - do fix if pattern found
269 tSCC zAab_Sun_MemcpySelect0[] =
270 "/\\*\t@\\(#\\)(head/memory.h\t50.1\t |memory\\.h 1\\.[2-4] 8./../.. SMI; from S5R2 1\\.2\t)\\*/";
272 #define AAB_SUN_MEMCPY_TEST_CT 1
273 static tTestDesc aAab_Sun_MemcpyTests[] = {
274 { TT_EGREP, zAab_Sun_MemcpySelect0, (regex_t*)NULL }, };
277 * Fix Command Arguments for Aab_Sun_Memcpy
279 static const char* apzAab_Sun_MemcpyPatch[] = {
280 "/* This file was generated by fixincludes */\n\
281 #ifndef __memory_h__\n\
282 #define __memory_h__\n\n\
284 extern void *memccpy();\n\
285 extern void *memchr();\n\
286 extern void *memcpy();\n\
287 extern void *memset();\n\
289 extern char *memccpy();\n\
290 extern char *memchr();\n\
291 extern char *memcpy();\n\
292 extern char *memset();\n\
293 #endif /* __STDC__ */\n\n\
294 extern int memcmp();\n\n\
295 #endif /* __memory_h__ */\n",
298 /* * * * * * * * * * * * * * * * * * * * * * * * * *
300 * Description of Aab_Svr4_Replace_Byteorder fix
302 tSCC zAab_Svr4_Replace_ByteorderName[] =
303 "AAB_svr4_replace_byteorder";
306 * File name selection pattern
308 tSCC zAab_Svr4_Replace_ByteorderList[] =
311 * Machine/OS name selection pattern
313 tSCC* apzAab_Svr4_Replace_ByteorderMachs[] = {
315 "i[34567]86-*-sysv5*",
317 "i[34567]86-*-solaris2.[0-4]",
318 "powerpcle-*-solaris2.[0-4]",
319 "sparc-*-solaris2.[0-4]",
321 #define AAB_SVR4_REPLACE_BYTEORDER_TEST_CT 0
322 #define aAab_Svr4_Replace_ByteorderTests (tTestDesc*)NULL
325 * Fix Command Arguments for Aab_Svr4_Replace_Byteorder
327 static const char* apzAab_Svr4_Replace_ByteorderPatch[] = {
328 "#ifndef _SYS_BYTEORDER_H\n\
329 #define _SYS_BYTEORDER_H\n\n\
330 /* Functions to convert `short' and `long' quantities from host byte order\n\
331 to (internet) network byte order (i.e. big-endian).\n\n\
332 Written by Ron Guilmette (rfg@ncd.com).\n\n\
333 This isn't actually used by GCC. It is installed by fixinc.svr4.\n\n\
334 For big-endian machines these functions are essentially no-ops.\n\n\
335 For little-endian machines, we define the functions using specialized\n\
336 asm sequences in cases where doing so yields better code (e.g. i386). */\n\n\
337 #if !defined (__GNUC__) && !defined (__GNUG__)\n\
338 #error You lose! This file is only useful with GNU compilers.\n\
340 #ifndef __BYTE_ORDER__\n\
341 /* Byte order defines. These are as defined on UnixWare 1.1, but with\n\
342 double underscores added at the front and back. */\n\
343 #define __LITTLE_ENDIAN__ 1234\n\
344 #define __BIG_ENDIAN__ 4321\n\
345 #define __PDP_ENDIAN__ 3412\n\
348 static __inline__ unsigned long htonl (unsigned long);\n\
349 static __inline__ unsigned short htons (unsigned int);\n\
350 static __inline__ unsigned long ntohl (unsigned long);\n\
351 static __inline__ unsigned short ntohs (unsigned int);\n\
352 #endif /* defined (__STDC__) */\n\n\
353 #if defined (__i386__)\n\n\
354 #ifndef __BYTE_ORDER__\n\
355 #define __BYTE_ORDER__ __LITTLE_ENDIAN__\n\
357 /* Convert a host long to a network long. */\n\n\
358 /* We must use a new-style function definition, so that this will also\n\
359 be valid for C++. */\n\
360 static __inline__ unsigned long\n\
361 htonl (unsigned long __arg)\n\
363 register unsigned long __result;\n\n\
364 __asm__ (\"xchg%B0 %b0,%h0\n\
366 \txchg%B0 %b0,%h0\" : \"=q\" (__result) : \"0\" (__arg));\n\
369 /* Convert a host short to a network short. */\n\n\
370 static __inline__ unsigned short\n\
371 htons (unsigned int __arg)\n\
373 register unsigned short __result;\n\n\
374 __asm__ (\"xchg%B0 %b0,%h0\" : \"=q\" (__result) : \"0\" (__arg));\n\
377 #elif ((defined (__i860__) && !defined (__i860_big_endian__))\t\\\n\
378 || defined (__ns32k__) || defined (__vax__)\t\t\\\n\
379 || defined (__spur__) || defined (__arm__))\n\n\
380 #ifndef __BYTE_ORDER__\n\
381 #define __BYTE_ORDER__ __LITTLE_ENDIAN__\n\
383 /* For other little-endian machines, using C code is just as efficient as\n\
384 using assembly code. */\n\n\
385 /* Convert a host long to a network long. */\n\n\
386 static __inline__ unsigned long\n\
387 htonl (unsigned long __arg)\n\
389 register unsigned long __result;\n\n\
390 __result = (__arg >> 24) & 0x000000ff;\n\
391 __result |= (__arg >> 8) & 0x0000ff00;\n\
392 __result |= (__arg << 8) & 0x00ff0000;\n\
393 __result |= (__arg << 24) & 0xff000000;\n\
396 /* Convert a host short to a network short. */\n\n\
397 static __inline__ unsigned short\n\
398 htons (unsigned int __arg)\n\
400 register unsigned short __result;\n\n\
401 __result = (__arg << 8) & 0xff00;\n\
402 __result |= (__arg >> 8) & 0x00ff;\n\
405 #else /* must be a big-endian machine */\n\n\
406 #ifndef __BYTE_ORDER__\n\
407 #define __BYTE_ORDER__ __BIG_ENDIAN__\n\
409 /* Convert a host long to a network long. */\n\n\
410 static __inline__ unsigned long\n\
411 htonl (unsigned long __arg)\n\
415 /* Convert a host short to a network short. */\n\n\
416 static __inline__ unsigned short\n\
417 htons (unsigned int __arg)\n\
421 #endif /* big-endian */\n\n\
422 /* Convert a network long to a host long. */\n\n\
423 static __inline__ unsigned long\n\
424 ntohl (unsigned long __arg)\n\
426 return htonl (__arg);\n\
428 /* Convert a network short to a host short. */\n\n\
429 static __inline__ unsigned short\n\
430 ntohs (unsigned int __arg)\n\
432 return htons (__arg);\n\
437 /* * * * * * * * * * * * * * * * * * * * * * * * * *
439 * Description of Aab_Ultrix_Ansi_Compat fix
441 tSCC zAab_Ultrix_Ansi_CompatName[] =
442 "AAB_ultrix_ansi_compat";
445 * File name selection pattern
447 tSCC zAab_Ultrix_Ansi_CompatList[] =
450 * Machine/OS name selection pattern
452 #define apzAab_Ultrix_Ansi_CompatMachs (const char**)NULL
455 * content selection pattern - do fix if pattern found
457 tSCC zAab_Ultrix_Ansi_CompatSelect0[] =
460 #define AAB_ULTRIX_ANSI_COMPAT_TEST_CT 1
461 static tTestDesc aAab_Ultrix_Ansi_CompatTests[] = {
462 { TT_EGREP, zAab_Ultrix_Ansi_CompatSelect0, (regex_t*)NULL }, };
465 * Fix Command Arguments for Aab_Ultrix_Ansi_Compat
467 static const char* apzAab_Ultrix_Ansi_CompatPatch[] = {
468 "/* This file intentionally left blank. */\n",
471 /* * * * * * * * * * * * * * * * * * * * * * * * * *
473 * Description of Aab_Ultrix_Limits fix
475 tSCC zAab_Ultrix_LimitsName[] =
479 * File name selection pattern
481 tSCC zAab_Ultrix_LimitsList[] =
484 * Machine/OS name selection pattern
486 tSCC* apzAab_Ultrix_LimitsMachs[] = {
489 #define AAB_ULTRIX_LIMITS_TEST_CT 0
490 #define aAab_Ultrix_LimitsTests (tTestDesc*)NULL
493 * Fix Command Arguments for Aab_Ultrix_Limits
495 static const char* apzAab_Ultrix_LimitsPatch[] = {
496 "#ifndef _LIMITS_INCLUDED\n\
497 #define _LIMITS_INCLUDED\n\
498 #include <sys/limits.h>\n\
499 #endif /* _LIMITS_INCLUDED */\n",
502 /* * * * * * * * * * * * * * * * * * * * * * * * * *
504 * Description of Aab_Ultrix_Memory fix
506 tSCC zAab_Ultrix_MemoryName[] =
510 * File name selection pattern
512 tSCC zAab_Ultrix_MemoryList[] =
515 * Machine/OS name selection pattern
517 tSCC* apzAab_Ultrix_MemoryMachs[] = {
520 #define AAB_ULTRIX_MEMORY_TEST_CT 0
521 #define aAab_Ultrix_MemoryTests (tTestDesc*)NULL
524 * Fix Command Arguments for Aab_Ultrix_Memory
526 static const char* apzAab_Ultrix_MemoryPatch[] = {
527 "#ifndef _MEMORY_INCLUDED\n\
528 #define _MEMORY_INCLUDED\n\
529 #include <strings.h>\n\
530 #endif /* _MEMORY_INCLUDED */\n",
533 /* * * * * * * * * * * * * * * * * * * * * * * * * *
535 * Description of Aab_Ultrix_String fix
537 tSCC zAab_Ultrix_StringName[] =
541 * File name selection pattern
543 tSCC zAab_Ultrix_StringList[] =
546 * Machine/OS name selection pattern
548 tSCC* apzAab_Ultrix_StringMachs[] = {
551 #define AAB_ULTRIX_STRING_TEST_CT 0
552 #define aAab_Ultrix_StringTests (tTestDesc*)NULL
555 * Fix Command Arguments for Aab_Ultrix_String
557 static const char* apzAab_Ultrix_StringPatch[] = {
558 "#ifndef _STRING_INCLUDED\n\
559 #define _STRING_INCLUDED\n\
560 #include <strings.h>\n\
561 #endif /* _STRING_INCLUDED */\n",
564 /* * * * * * * * * * * * * * * * * * * * * * * * * *
566 * Description of Aix_Pthread fix
568 tSCC zAix_PthreadName[] =
572 * File name selection pattern
574 tSCC zAix_PthreadList[] =
577 * Machine/OS name selection pattern
579 #define apzAix_PthreadMachs (const char**)NULL
582 * content selection pattern - do fix if pattern found
584 tSCC zAix_PthreadSelect0[] =
585 "(#define [A-Za-z_0-9]+)(\\\\\n\
589 #define AIX_PTHREAD_TEST_CT 1
590 static tTestDesc aAix_PthreadTests[] = {
591 { TT_EGREP, zAix_PthreadSelect0, (regex_t*)NULL }, };
594 * Fix Command Arguments for Aix_Pthread
596 static const char* apzAix_PthreadPatch[] = {
601 /* * * * * * * * * * * * * * * * * * * * * * * * * *
603 * Description of Aix_Sysmachine fix
605 tSCC zAix_SysmachineName[] =
609 * File name selection pattern
611 tSCC zAix_SysmachineList[] =
614 * Machine/OS name selection pattern
616 #define apzAix_SysmachineMachs (const char**)NULL
619 * content selection pattern - do fix if pattern found
621 tSCC zAix_SysmachineSelect0[] =
624 #define AIX_SYSMACHINE_TEST_CT 1
625 static tTestDesc aAix_SysmachineTests[] = {
626 { TT_EGREP, zAix_SysmachineSelect0, (regex_t*)NULL }, };
629 * Fix Command Arguments for Aix_Sysmachine
631 static const char* apzAix_SysmachinePatch[] = {
636 /* * * * * * * * * * * * * * * * * * * * * * * * * *
638 * Description of Aix_Syswait fix
640 tSCC zAix_SyswaitName[] =
644 * File name selection pattern
646 tSCC zAix_SyswaitList[] =
649 * Machine/OS name selection pattern
651 #define apzAix_SyswaitMachs (const char**)NULL
654 * content selection pattern - do fix if pattern found
656 tSCC zAix_SyswaitSelect0[] =
657 "^extern pid_t wait3\\(\\);\n";
658 tSCC zAix_SyswaitSelect1[] =
661 #define AIX_SYSWAIT_TEST_CT 2
662 static tTestDesc aAix_SyswaitTests[] = {
663 { TT_EGREP, zAix_SyswaitSelect0, (regex_t*)NULL },
664 { TT_EGREP, zAix_SyswaitSelect1, (regex_t*)NULL }, };
667 * Fix Command Arguments for Aix_Syswait
669 static const char* apzAix_SyswaitPatch[] = {
675 /* * * * * * * * * * * * * * * * * * * * * * * * * *
677 * Description of Aix_Volatile fix
679 tSCC zAix_VolatileName[] =
683 * File name selection pattern
685 tSCC zAix_VolatileList[] =
688 * Machine/OS name selection pattern
690 #define apzAix_VolatileMachs (const char**)NULL
693 * content selection pattern - do fix if pattern found
695 tSCC zAix_VolatileSelect0[] =
696 "typedef volatile int sig_atomic_t";
698 #define AIX_VOLATILE_TEST_CT 1
699 static tTestDesc aAix_VolatileTests[] = {
700 { TT_EGREP, zAix_VolatileSelect0, (regex_t*)NULL }, };
703 * Fix Command Arguments for Aix_Volatile
705 static const char* apzAix_VolatilePatch[] = {
707 "typedef int sig_atomic_t",
710 /* * * * * * * * * * * * * * * * * * * * * * * * * *
712 * Description of Alpha___Assert fix
714 tSCC zAlpha___AssertName[] =
718 * File name selection pattern
720 tSCC zAlpha___AssertList[] =
723 * Machine/OS name selection pattern
725 #define apzAlpha___AssertMachs (const char**)NULL
728 * content selection pattern - do fix if pattern found
730 tSCC zAlpha___AssertSelect0[] =
731 "__assert\\(char \\*, char \\*, int\\)";
733 #define ALPHA___ASSERT_TEST_CT 1
734 static tTestDesc aAlpha___AssertTests[] = {
735 { TT_EGREP, zAlpha___AssertSelect0, (regex_t*)NULL }, };
738 * Fix Command Arguments for Alpha___Assert
740 static const char* apzAlpha___AssertPatch[] = {
742 "__assert(const char *, const char *, int)",
745 /* * * * * * * * * * * * * * * * * * * * * * * * * *
747 * Description of Alpha_Getopt fix
749 tSCC zAlpha_GetoptName[] =
753 * File name selection pattern
755 tSCC zAlpha_GetoptList[] =
756 "|stdio.h|stdlib.h|";
758 * Machine/OS name selection pattern
760 #define apzAlpha_GetoptMachs (const char**)NULL
763 * content selection pattern - do fix if pattern found
765 tSCC zAlpha_GetoptSelect0[] =
766 "getopt\\(int, char \\*\\[\\], *char \\*\\)";
768 #define ALPHA_GETOPT_TEST_CT 1
769 static tTestDesc aAlpha_GetoptTests[] = {
770 { TT_EGREP, zAlpha_GetoptSelect0, (regex_t*)NULL }, };
773 * Fix Command Arguments for Alpha_Getopt
775 static const char* apzAlpha_GetoptPatch[] = {
777 "getopt(int, char *const[], const char *)",
780 /* * * * * * * * * * * * * * * * * * * * * * * * * *
782 * Description of Alpha_Parens fix
784 tSCC zAlpha_ParensName[] =
788 * File name selection pattern
790 tSCC zAlpha_ParensList[] =
793 * Machine/OS name selection pattern
795 #define apzAlpha_ParensMachs (const char**)NULL
798 * content selection pattern - do fix if pattern found
800 tSCC zAlpha_ParensSelect0[] =
801 "#ifndef\\(__mips64\\)";
803 #define ALPHA_PARENS_TEST_CT 1
804 static tTestDesc aAlpha_ParensTests[] = {
805 { TT_EGREP, zAlpha_ParensSelect0, (regex_t*)NULL }, };
808 * Fix Command Arguments for Alpha_Parens
810 static const char* apzAlpha_ParensPatch[] = {
815 /* * * * * * * * * * * * * * * * * * * * * * * * * *
817 * Description of Alpha_Sbrk fix
819 tSCC zAlpha_SbrkName[] =
823 * File name selection pattern
825 tSCC zAlpha_SbrkList[] =
828 * Machine/OS name selection pattern
830 #define apzAlpha_SbrkMachs (const char**)NULL
833 * content selection pattern - do fix if pattern found
835 tSCC zAlpha_SbrkSelect0[] =
836 "char[ \t]*\\*[\t ]*sbrk[ \t]*\\(";
838 #define ALPHA_SBRK_TEST_CT 1
839 static tTestDesc aAlpha_SbrkTests[] = {
840 { TT_EGREP, zAlpha_SbrkSelect0, (regex_t*)NULL }, };
843 * Fix Command Arguments for Alpha_Sbrk
845 static const char* apzAlpha_SbrkPatch[] = {
850 /* * * * * * * * * * * * * * * * * * * * * * * * * *
852 * Description of Arm_Norcroft_Hint fix
854 tSCC zArm_Norcroft_HintName[] =
858 * File name selection pattern
860 tSCC zArm_Norcroft_HintList[] =
863 * Machine/OS name selection pattern
865 #define apzArm_Norcroft_HintMachs (const char**)NULL
868 * content selection pattern - do fix if pattern found
870 tSCC zArm_Norcroft_HintSelect0[] =
873 #define ARM_NORCROFT_HINT_TEST_CT 1
874 static tTestDesc aArm_Norcroft_HintTests[] = {
875 { TT_EGREP, zArm_Norcroft_HintSelect0, (regex_t*)NULL }, };
878 * Fix Command Arguments for Arm_Norcroft_Hint
880 static const char* apzArm_Norcroft_HintPatch[] = {
885 /* * * * * * * * * * * * * * * * * * * * * * * * * *
887 * Description of Arm_Wchar fix
889 tSCC zArm_WcharName[] =
893 * File name selection pattern
895 tSCC zArm_WcharList[] =
898 * Machine/OS name selection pattern
900 #define apzArm_WcharMachs (const char**)NULL
903 * content selection pattern - do fix if pattern found
905 tSCC zArm_WcharSelect0[] =
906 "#[ \t]*define[ \t]*__wchar_t";
908 #define ARM_WCHAR_TEST_CT 1
909 static tTestDesc aArm_WcharTests[] = {
910 { TT_EGREP, zArm_WcharSelect0, (regex_t*)NULL }, };
913 * Fix Command Arguments for Arm_Wchar
915 static const char* apzArm_WcharPatch[] = {
918 "(#[ \t]*(ifndef|define)[ \t]+)__wchar_t",
921 /* * * * * * * * * * * * * * * * * * * * * * * * * *
923 * Description of Aux_Asm fix
925 tSCC zAux_AsmName[] =
929 * File name selection pattern
931 tSCC zAux_AsmList[] =
934 * Machine/OS name selection pattern
936 #define apzAux_AsmMachs (const char**)NULL
939 * content selection pattern - do fix if pattern found
941 tSCC zAux_AsmSelect0[] =
944 #define AUX_ASM_TEST_CT 1
945 static tTestDesc aAux_AsmTests[] = {
946 { TT_EGREP, zAux_AsmSelect0, (regex_t*)NULL }, };
949 * Fix Command Arguments for Aux_Asm
951 static const char* apzAux_AsmPatch[] = {
953 "#if !defined(NOINLINE) && !defined(__GNUC__)",
956 /* * * * * * * * * * * * * * * * * * * * * * * * * *
958 * Description of Avoid_Bool_Define fix
960 tSCC zAvoid_Bool_DefineName[] =
964 * File name selection pattern
966 tSCC zAvoid_Bool_DefineList[] =
967 "|curses.h|curses_colr/curses.h|term.h|tinfo.h|";
969 * Machine/OS name selection pattern
971 #define apzAvoid_Bool_DefineMachs (const char**)NULL
974 * content selection pattern - do fix if pattern found
976 tSCC zAvoid_Bool_DefineSelect0[] =
977 "#[ \t]*define[ \t]+bool[ \t]";
980 * content bypass pattern - skip fix if pattern found
982 tSCC zAvoid_Bool_DefineBypass0[] =
983 "we must use the C\\+\\+ compiler's type";
985 #define AVOID_BOOL_DEFINE_TEST_CT 2
986 static tTestDesc aAvoid_Bool_DefineTests[] = {
987 { TT_NEGREP, zAvoid_Bool_DefineBypass0, (regex_t*)NULL },
988 { TT_EGREP, zAvoid_Bool_DefineSelect0, (regex_t*)NULL }, };
991 * Fix Command Arguments for Avoid_Bool_Define
993 static const char* apzAvoid_Bool_DefinePatch[] = {
995 "#ifndef __cplusplus\n\
998 "^[ \t]*#[ \t]*define[ \t]+bool[ \t].*",
1001 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1003 * Description of Avoid_Bool_Type fix
1005 tSCC zAvoid_Bool_TypeName[] =
1009 * File name selection pattern
1011 tSCC zAvoid_Bool_TypeList[] =
1012 "|curses.h|curses_colr/curses.h|term.h|tinfo.h|";
1014 * Machine/OS name selection pattern
1016 #define apzAvoid_Bool_TypeMachs (const char**)NULL
1019 * content selection pattern - do fix if pattern found
1021 tSCC zAvoid_Bool_TypeSelect0[] =
1022 "^[ \t]*typedef[ \t].*[ \t]bool[ \t]*;";
1025 * content bypass pattern - skip fix if pattern found
1027 tSCC zAvoid_Bool_TypeBypass0[] =
1028 "we must use the C\\+\\+ compiler's type";
1030 #define AVOID_BOOL_TYPE_TEST_CT 2
1031 static tTestDesc aAvoid_Bool_TypeTests[] = {
1032 { TT_NEGREP, zAvoid_Bool_TypeBypass0, (regex_t*)NULL },
1033 { TT_EGREP, zAvoid_Bool_TypeSelect0, (regex_t*)NULL }, };
1036 * Fix Command Arguments for Avoid_Bool_Type
1038 static const char* apzAvoid_Bool_TypePatch[] = {
1040 "#ifndef __cplusplus\n\
1045 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1047 * Description of Avoid_Wchar_T_Type fix
1049 tSCC zAvoid_Wchar_T_TypeName[] =
1050 "avoid_wchar_t_type";
1053 * File name selection pattern
1055 #define zAvoid_Wchar_T_TypeList (char*)NULL
1057 * Machine/OS name selection pattern
1059 #define apzAvoid_Wchar_T_TypeMachs (const char**)NULL
1062 * content selection pattern - do fix if pattern found
1064 tSCC zAvoid_Wchar_T_TypeSelect0[] =
1065 "^[ \t]*typedef[ \t].*[ \t]wchar_t[ \t]*;";
1067 #define AVOID_WCHAR_T_TYPE_TEST_CT 1
1068 static tTestDesc aAvoid_Wchar_T_TypeTests[] = {
1069 { TT_EGREP, zAvoid_Wchar_T_TypeSelect0, (regex_t*)NULL }, };
1072 * Fix Command Arguments for Avoid_Wchar_T_Type
1074 static const char* apzAvoid_Wchar_T_TypePatch[] = {
1076 "#ifndef __cplusplus\n\
1081 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1083 * Description of Bad_Lval fix
1085 tSCC zBad_LvalName[] =
1089 * File name selection pattern
1091 tSCC zBad_LvalList[] =
1092 "|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|";
1094 * Machine/OS name selection pattern
1096 #define apzBad_LvalMachs (const char**)NULL
1099 * content selection pattern - do fix if pattern found
1101 tSCC zBad_LvalSelect0[] =
1102 "^[ \t]*#[ \t]*pragma[ \t]+extern_prefix";
1104 #define BAD_LVAL_TEST_CT 1
1105 static tTestDesc aBad_LvalTests[] = {
1106 { TT_EGREP, zBad_LvalSelect0, (regex_t*)NULL }, };
1109 * Fix Command Arguments for Bad_Lval
1111 static const char* apzBad_LvalPatch[] = { "sed",
1112 "-e", "s/^[ \t]*#[ \t]*define[ \t][ \t]*\\([^(]*\\)\\(([^)]*)\\)[ \t]*\\(_.*\\)\\1\\2[ \t]*$/#define \\1 \\3\\1/",
1115 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1117 * Description of Bad_Struct_Term fix
1119 tSCC zBad_Struct_TermName[] =
1123 * File name selection pattern
1125 tSCC zBad_Struct_TermList[] =
1128 * Machine/OS name selection pattern
1130 #define apzBad_Struct_TermMachs (const char**)NULL
1133 * content selection pattern - do fix if pattern found
1135 tSCC zBad_Struct_TermSelect0[] =
1136 "^[ \t]*typedef[ \t]+struct[ \t]+term[ \t]*;";
1138 #define BAD_STRUCT_TERM_TEST_CT 1
1139 static tTestDesc aBad_Struct_TermTests[] = {
1140 { TT_EGREP, zBad_Struct_TermSelect0, (regex_t*)NULL }, };
1143 * Fix Command Arguments for Bad_Struct_Term
1145 static const char* apzBad_Struct_TermPatch[] = {
1150 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1152 * Description of Badquote fix
1154 tSCC zBadquoteName[] =
1158 * File name selection pattern
1160 tSCC zBadquoteList[] =
1161 "|sundev/vuid_event.h|";
1163 * Machine/OS name selection pattern
1165 #define apzBadquoteMachs (const char**)NULL
1168 * content selection pattern - do fix if pattern found
1170 tSCC zBadquoteSelect0[] =
1173 #define BADQUOTE_TEST_CT 1
1174 static tTestDesc aBadquoteTests[] = {
1175 { TT_EGREP, zBadquoteSelect0, (regex_t*)NULL }, };
1178 * Fix Command Arguments for Badquote
1180 static const char* apzBadquotePatch[] = {
1185 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1187 * Description of Broken_Assert_Stdio fix
1189 tSCC zBroken_Assert_StdioName[] =
1190 "broken_assert_stdio";
1193 * File name selection pattern
1195 tSCC zBroken_Assert_StdioList[] =
1198 * Machine/OS name selection pattern
1200 #define apzBroken_Assert_StdioMachs (const char**)NULL
1203 * content selection pattern - do fix if pattern found
1205 tSCC zBroken_Assert_StdioSelect0[] =
1209 * content bypass pattern - skip fix if pattern found
1211 tSCC zBroken_Assert_StdioBypass0[] =
1212 "include.*stdio\\.h";
1214 #define BROKEN_ASSERT_STDIO_TEST_CT 2
1215 static tTestDesc aBroken_Assert_StdioTests[] = {
1216 { TT_NEGREP, zBroken_Assert_StdioBypass0, (regex_t*)NULL },
1217 { TT_EGREP, zBroken_Assert_StdioSelect0, (regex_t*)NULL }, };
1220 * Fix Command Arguments for Broken_Assert_Stdio
1222 static const char* apzBroken_Assert_StdioPatch[] = {
1224 "#include <stdio.h>\n",
1227 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1229 * Description of Broken_Assert_Stdlib fix
1231 tSCC zBroken_Assert_StdlibName[] =
1232 "broken_assert_stdlib";
1235 * File name selection pattern
1237 tSCC zBroken_Assert_StdlibList[] =
1240 * Machine/OS name selection pattern
1242 #define apzBroken_Assert_StdlibMachs (const char**)NULL
1245 * content selection pattern - do fix if pattern found
1247 tSCC zBroken_Assert_StdlibSelect0[] =
1248 "exit *\\(|abort *\\(";
1251 * content bypass pattern - skip fix if pattern found
1253 tSCC zBroken_Assert_StdlibBypass0[] =
1254 "include.*stdlib\\.h";
1256 #define BROKEN_ASSERT_STDLIB_TEST_CT 2
1257 static tTestDesc aBroken_Assert_StdlibTests[] = {
1258 { TT_NEGREP, zBroken_Assert_StdlibBypass0, (regex_t*)NULL },
1259 { TT_EGREP, zBroken_Assert_StdlibSelect0, (regex_t*)NULL }, };
1262 * Fix Command Arguments for Broken_Assert_Stdlib
1264 static const char* apzBroken_Assert_StdlibPatch[] = {
1266 "#ifdef __cplusplus\n\
1267 #include <stdlib.h>\n\
1271 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1273 * Description of Broken_Cabs fix
1275 tSCC zBroken_CabsName[] =
1279 * File name selection pattern
1281 tSCC zBroken_CabsList[] =
1284 * Machine/OS name selection pattern
1286 #define apzBroken_CabsMachs (const char**)NULL
1289 * content selection pattern - do fix if pattern found
1291 tSCC zBroken_CabsSelect0[] =
1292 "^extern[ \\t]+double[ \\t]+cabs";
1294 #define BROKEN_CABS_TEST_CT 1
1295 static tTestDesc aBroken_CabsTests[] = {
1296 { TT_EGREP, zBroken_CabsSelect0, (regex_t*)NULL }, };
1299 * Fix Command Arguments for Broken_Cabs
1301 static const char* apzBroken_CabsPatch[] = {
1304 "^extern[ \t]+double[ \t]+cabs\\((struct dbl_hypot|)\\);",
1307 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1309 * Description of Ctrl_Quotes_Def fix
1311 tSCC zCtrl_Quotes_DefName[] =
1315 * File name selection pattern
1317 #define zCtrl_Quotes_DefList (char*)NULL
1319 * Machine/OS name selection pattern
1321 #define apzCtrl_Quotes_DefMachs (const char**)NULL
1324 * content selection pattern - do fix if pattern found
1326 tSCC zCtrl_Quotes_DefSelect0[] =
1327 "define[ \t]+[A-Z0-9_]+CTRL\\([a-zA-Z][,)]";
1329 #define CTRL_QUOTES_DEF_TEST_CT 1
1330 static tTestDesc aCtrl_Quotes_DefTests[] = {
1331 { TT_EGREP, zCtrl_Quotes_DefSelect0, (regex_t*)NULL }, };
1334 * Fix Command Arguments for Ctrl_Quotes_Def
1336 static const char* apzCtrl_Quotes_DefPatch[] = {
1341 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1343 * Description of Ctrl_Quotes_Use fix
1345 tSCC zCtrl_Quotes_UseName[] =
1349 * File name selection pattern
1351 #define zCtrl_Quotes_UseList (char*)NULL
1353 * Machine/OS name selection pattern
1355 #define apzCtrl_Quotes_UseMachs (const char**)NULL
1358 * content selection pattern - do fix if pattern found
1360 tSCC zCtrl_Quotes_UseSelect0[] =
1361 "define[ \t]+[A-Z0-9_]+[ \t]+[A-Z0-9_]+CTRL[ \t]*\\( *[^,']";
1363 #define CTRL_QUOTES_USE_TEST_CT 1
1364 static tTestDesc aCtrl_Quotes_UseTests[] = {
1365 { TT_EGREP, zCtrl_Quotes_UseSelect0, (regex_t*)NULL }, };
1368 * Fix Command Arguments for Ctrl_Quotes_Use
1370 static const char* apzCtrl_Quotes_UsePatch[] = {
1375 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1377 * Description of Cxx_Unready fix
1379 tSCC zCxx_UnreadyName[] =
1383 * File name selection pattern
1385 tSCC zCxx_UnreadyList[] =
1386 "|sys/mman.h|rpc/types.h|";
1388 * Machine/OS name selection pattern
1390 #define apzCxx_UnreadyMachs (const char**)NULL
1393 * content selection pattern - do fix if pattern found
1395 tSCC zCxx_UnreadySelect0[] =
1399 * content bypass pattern - skip fix if pattern found
1401 tSCC zCxx_UnreadyBypass0[] =
1402 "\"C\"|__BEGIN_DECLS";
1404 #define CXX_UNREADY_TEST_CT 2
1405 static tTestDesc aCxx_UnreadyTests[] = {
1406 { TT_NEGREP, zCxx_UnreadyBypass0, (regex_t*)NULL },
1407 { TT_EGREP, zCxx_UnreadySelect0, (regex_t*)NULL }, };
1410 * Fix Command Arguments for Cxx_Unready
1412 static const char* apzCxx_UnreadyPatch[] = {
1414 "#ifdef __cplusplus\n\
1417 "#ifdef __cplusplus\n\
1422 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1424 * Description of Dec_Intern_Asm fix
1426 tSCC zDec_Intern_AsmName[] =
1430 * File name selection pattern
1432 tSCC zDec_Intern_AsmList[] =
1435 * Machine/OS name selection pattern
1437 #define apzDec_Intern_AsmMachs (const char**)NULL
1438 #define DEC_INTERN_ASM_TEST_CT 0
1439 #define aDec_Intern_AsmTests (tTestDesc*)NULL
1442 * Fix Command Arguments for Dec_Intern_Asm
1444 static const char* apzDec_Intern_AsmPatch[] = { "sed",
1445 "-e", "/^[ \t]*float[ \t]*fasm/i\\\n\
1447 "-e", "/^[ \t]*#[ \t]*pragma[ \t]*intrinsic([ \t]*dasm/a\\\n\
1451 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1453 * Description of Djgpp_Wchar_H fix
1455 tSCC zDjgpp_Wchar_HName[] =
1459 * File name selection pattern
1461 #define zDjgpp_Wchar_HList (char*)NULL
1463 * Machine/OS name selection pattern
1465 #define apzDjgpp_Wchar_HMachs (const char**)NULL
1468 * content selection pattern - do fix if pattern found
1470 tSCC zDjgpp_Wchar_HSelect0[] =
1474 * content bypass pattern - skip fix if pattern found
1476 tSCC zDjgpp_Wchar_HBypass0[] =
1479 #define DJGPP_WCHAR_H_TEST_CT 2
1480 static tTestDesc aDjgpp_Wchar_HTests[] = {
1481 { TT_NEGREP, zDjgpp_Wchar_HBypass0, (regex_t*)NULL },
1482 { TT_EGREP, zDjgpp_Wchar_HSelect0, (regex_t*)NULL }, };
1485 * Fix Command Arguments for Djgpp_Wchar_H
1487 static const char* apzDjgpp_Wchar_HPatch[] = {
1490 #include <sys/djtypes.h>",
1491 "#include <stddef.h>",
1494 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1496 * Description of Ecd_Cursor fix
1498 tSCC zEcd_CursorName[] =
1502 * File name selection pattern
1504 tSCC zEcd_CursorList[] =
1505 "|sunwindow/win_lock.h|sunwindow/win_cursor.h|";
1507 * Machine/OS name selection pattern
1509 #define apzEcd_CursorMachs (const char**)NULL
1512 * content selection pattern - do fix if pattern found
1514 tSCC zEcd_CursorSelect0[] =
1517 #define ECD_CURSOR_TEST_CT 1
1518 static tTestDesc aEcd_CursorTests[] = {
1519 { TT_EGREP, zEcd_CursorSelect0, (regex_t*)NULL }, };
1522 * Fix Command Arguments for Ecd_Cursor
1524 static const char* apzEcd_CursorPatch[] = {
1529 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1531 * Description of Fix_Header_Breakage fix
1533 tSCC zFix_Header_BreakageName[] =
1534 "fix_header_breakage";
1537 * File name selection pattern
1539 tSCC zFix_Header_BreakageList[] =
1542 * Machine/OS name selection pattern
1544 tSCC* apzFix_Header_BreakageMachs[] = {
1545 "m88k-motorola-sysv3*",
1546 (const char*)NULL };
1549 * content selection pattern - do fix if pattern found
1551 tSCC zFix_Header_BreakageSelect0[] =
1552 "extern double floor\\(\\), ceil\\(\\), fmod\\(\\), fabs\\(\\);";
1554 #define FIX_HEADER_BREAKAGE_TEST_CT 1
1555 static tTestDesc aFix_Header_BreakageTests[] = {
1556 { TT_EGREP, zFix_Header_BreakageSelect0, (regex_t*)NULL }, };
1559 * Fix Command Arguments for Fix_Header_Breakage
1561 static const char* apzFix_Header_BreakagePatch[] = {
1563 "extern double floor(), ceil(), fmod(), fabs _PARAMS((double));",
1566 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1568 * Description of Freebsd_Gcc3_Breakage fix
1570 tSCC zFreebsd_Gcc3_BreakageName[] =
1571 "freebsd_gcc3_breakage";
1574 * File name selection pattern
1576 tSCC zFreebsd_Gcc3_BreakageList[] =
1579 * Machine/OS name selection pattern
1581 tSCC* apzFreebsd_Gcc3_BreakageMachs[] = {
1583 (const char*)NULL };
1586 * content selection pattern - do fix if pattern found
1588 tSCC zFreebsd_Gcc3_BreakageSelect0[] =
1589 "^#if __GNUC__ == 2 && __GNUC_MINOR__ >= 7$";
1592 * content bypass pattern - skip fix if pattern found
1594 tSCC zFreebsd_Gcc3_BreakageBypass0[] =
1595 "__GNUC__[ \\t]*([>=]=[ \\t]*[3-9]|>[ \\t]*2)";
1597 #define FREEBSD_GCC3_BREAKAGE_TEST_CT 2
1598 static tTestDesc aFreebsd_Gcc3_BreakageTests[] = {
1599 { TT_NEGREP, zFreebsd_Gcc3_BreakageBypass0, (regex_t*)NULL },
1600 { TT_EGREP, zFreebsd_Gcc3_BreakageSelect0, (regex_t*)NULL }, };
1603 * Fix Command Arguments for Freebsd_Gcc3_Breakage
1605 static const char* apzFreebsd_Gcc3_BreakagePatch[] = {
1607 "%0 || __GNUC__ >= 3",
1610 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1612 * Description of Gnu_Types fix
1614 tSCC zGnu_TypesName[] =
1618 * File name selection pattern
1620 tSCC zGnu_TypesList[] =
1621 "|sys/types.h|stdlib.h|sys/stdtypes.h|stddef.h|memory.h|unistd.h|";
1623 * Machine/OS name selection pattern
1625 #define apzGnu_TypesMachs (const char**)NULL
1628 * content selection pattern - do fix if pattern found
1630 tSCC zGnu_TypesSelect0[] =
1631 "^[ \t]*typedef[ \t]+.*[ \t](ptrdiff|size|wchar)_t;";
1634 * content bypass pattern - skip fix if pattern found
1636 tSCC zGnu_TypesBypass0[] =
1637 "_GCC_(PTRDIFF|SIZE|WCHAR)_T";
1639 #define GNU_TYPES_TEST_CT 2
1640 static tTestDesc aGnu_TypesTests[] = {
1641 { TT_NEGREP, zGnu_TypesBypass0, (regex_t*)NULL },
1642 { TT_EGREP, zGnu_TypesSelect0, (regex_t*)NULL }, };
1645 * Fix Command Arguments for Gnu_Types
1647 static const char* apzGnu_TypesPatch[] = {
1651 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1653 * Description of Hp_Inline fix
1655 tSCC zHp_InlineName[] =
1659 * File name selection pattern
1661 tSCC zHp_InlineList[] =
1662 "|sys/spinlock.h|machine/machparam.h|";
1664 * Machine/OS name selection pattern
1666 #define apzHp_InlineMachs (const char**)NULL
1669 * content selection pattern - do fix if pattern found
1671 tSCC zHp_InlineSelect0[] =
1672 "[ \t]*#[ \t]*include[ \t]+\"\\.\\./machine/";
1674 #define HP_INLINE_TEST_CT 1
1675 static tTestDesc aHp_InlineTests[] = {
1676 { TT_EGREP, zHp_InlineSelect0, (regex_t*)NULL }, };
1679 * Fix Command Arguments for Hp_Inline
1681 static const char* apzHp_InlinePatch[] = {
1684 "([ \t]*#[ \t]*include[ \t]+)\"\\.\\./machine/([a-z]+)\\.h\"",
1687 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1689 * Description of Hp_Sysfile fix
1691 tSCC zHp_SysfileName[] =
1695 * File name selection pattern
1697 tSCC zHp_SysfileList[] =
1700 * Machine/OS name selection pattern
1702 #define apzHp_SysfileMachs (const char**)NULL
1705 * content selection pattern - do fix if pattern found
1707 tSCC zHp_SysfileSelect0[] =
1710 #define HP_SYSFILE_TEST_CT 1
1711 static tTestDesc aHp_SysfileTests[] = {
1712 { TT_EGREP, zHp_SysfileSelect0, (regex_t*)NULL }, };
1715 * Fix Command Arguments for Hp_Sysfile
1717 static const char* apzHp_SysfilePatch[] = {
1719 "(struct file *, ...)",
1723 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1725 * Description of Hpux10_Cpp_Pow_Inline fix
1727 tSCC zHpux10_Cpp_Pow_InlineName[] =
1728 "hpux10_cpp_pow_inline";
1731 * File name selection pattern
1733 tSCC zHpux10_Cpp_Pow_InlineList[] =
1734 "|fixinc-test-limits.h|math.h|";
1736 * Machine/OS name selection pattern
1738 #define apzHpux10_Cpp_Pow_InlineMachs (const char**)NULL
1741 * content selection pattern - do fix if pattern found
1743 tSCC zHpux10_Cpp_Pow_InlineSelect0[] =
1744 "^# +ifdef +__cplusplus\n\
1746 +inline +double +pow\\(double +__d,int +__expon\\) +{\n\
1747 [ \t]+return +pow\\(__d,\\(double\\)__expon\\);\n\
1749 +extern +\"C\" +{\n\
1753 #define HPUX10_CPP_POW_INLINE_TEST_CT 1
1754 static tTestDesc aHpux10_Cpp_Pow_InlineTests[] = {
1755 { TT_EGREP, zHpux10_Cpp_Pow_InlineSelect0, (regex_t*)NULL }, };
1758 * Fix Command Arguments for Hpux10_Cpp_Pow_Inline
1760 static const char* apzHpux10_Cpp_Pow_InlinePatch[] = {
1765 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1767 * Description of Hpux11_Cpp_Pow_Inline fix
1769 tSCC zHpux11_Cpp_Pow_InlineName[] =
1770 "hpux11_cpp_pow_inline";
1773 * File name selection pattern
1775 tSCC zHpux11_Cpp_Pow_InlineList[] =
1778 * Machine/OS name selection pattern
1780 #define apzHpux11_Cpp_Pow_InlineMachs (const char**)NULL
1783 * content selection pattern - do fix if pattern found
1785 tSCC zHpux11_Cpp_Pow_InlineSelect0[] =
1786 " +inline double pow\\(double d,int expon\\) {\n\
1787 +return pow\\(d, \\(double\\)expon\\);\n\
1790 #define HPUX11_CPP_POW_INLINE_TEST_CT 1
1791 static tTestDesc aHpux11_Cpp_Pow_InlineTests[] = {
1792 { TT_EGREP, zHpux11_Cpp_Pow_InlineSelect0, (regex_t*)NULL }, };
1795 * Fix Command Arguments for Hpux11_Cpp_Pow_Inline
1797 static const char* apzHpux11_Cpp_Pow_InlinePatch[] = {
1802 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1804 * Description of Hpux11_Fabsf fix
1806 tSCC zHpux11_FabsfName[] =
1810 * File name selection pattern
1812 tSCC zHpux11_FabsfList[] =
1815 * Machine/OS name selection pattern
1817 #define apzHpux11_FabsfMachs (const char**)NULL
1820 * content selection pattern - do fix if pattern found
1822 tSCC zHpux11_FabsfSelect0[] =
1823 "^[ \t]*#[ \t]*define[ \t]+fabsf\\(.*";
1826 * content bypass pattern - skip fix if pattern found
1828 tSCC zHpux11_FabsfBypass0[] =
1831 #define HPUX11_FABSF_TEST_CT 2
1832 static tTestDesc aHpux11_FabsfTests[] = {
1833 { TT_NEGREP, zHpux11_FabsfBypass0, (regex_t*)NULL },
1834 { TT_EGREP, zHpux11_FabsfSelect0, (regex_t*)NULL }, };
1837 * Fix Command Arguments for Hpux11_Fabsf
1839 static const char* apzHpux11_FabsfPatch[] = {
1841 "#ifndef __cplusplus\n\
1846 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1848 * Description of Hpux11_Size_T fix
1850 tSCC zHpux11_Size_TName[] =
1854 * File name selection pattern
1856 #define zHpux11_Size_TList (char*)NULL
1858 * Machine/OS name selection pattern
1860 tSCC* apzHpux11_Size_TMachs[] = {
1862 (const char*)NULL };
1865 * content selection pattern - do fix if pattern found
1867 tSCC zHpux11_Size_TSelect0[] =
1870 #define HPUX11_SIZE_T_TEST_CT 1
1871 static tTestDesc aHpux11_Size_TTests[] = {
1872 { TT_EGREP, zHpux11_Size_TSelect0, (regex_t*)NULL }, };
1875 * Fix Command Arguments for Hpux11_Size_T
1877 static const char* apzHpux11_Size_TPatch[] = {
1882 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1884 * Description of Hpux11_Uint32_C fix
1886 tSCC zHpux11_Uint32_CName[] =
1890 * File name selection pattern
1892 tSCC zHpux11_Uint32_CList[] =
1895 * Machine/OS name selection pattern
1897 #define apzHpux11_Uint32_CMachs (const char**)NULL
1900 * content selection pattern - do fix if pattern found
1902 tSCC zHpux11_Uint32_CSelect0[] =
1903 "^#define UINT32_C\\(__c\\)[ \t]*__CONCAT__\\(__CONCAT_U__\\(__c\\),l\\)";
1905 #define HPUX11_UINT32_C_TEST_CT 1
1906 static tTestDesc aHpux11_Uint32_CTests[] = {
1907 { TT_EGREP, zHpux11_Uint32_CSelect0, (regex_t*)NULL }, };
1910 * Fix Command Arguments for Hpux11_Uint32_C
1912 static const char* apzHpux11_Uint32_CPatch[] = {
1914 "#define UINT32_C(__c) __CONCAT__(__c,ul)",
1917 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1919 * Description of Hpux11_Vsnprintf fix
1921 tSCC zHpux11_VsnprintfName[] =
1925 * File name selection pattern
1927 tSCC zHpux11_VsnprintfList[] =
1930 * Machine/OS name selection pattern
1932 #define apzHpux11_VsnprintfMachs (const char**)NULL
1935 * content selection pattern - do fix if pattern found
1937 tSCC zHpux11_VsnprintfSelect0[] =
1938 "(extern int vsnprintf\\(char \\*, _[hpux]*_size_t, const char \\*,) __va__list\\);";
1940 #define HPUX11_VSNPRINTF_TEST_CT 1
1941 static tTestDesc aHpux11_VsnprintfTests[] = {
1942 { TT_EGREP, zHpux11_VsnprintfSelect0, (regex_t*)NULL }, };
1945 * Fix Command Arguments for Hpux11_Vsnprintf
1947 static const char* apzHpux11_VsnprintfPatch[] = {
1952 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1954 * Description of Hpux8_Bogus_Inlines fix
1956 tSCC zHpux8_Bogus_InlinesName[] =
1957 "hpux8_bogus_inlines";
1960 * File name selection pattern
1962 tSCC zHpux8_Bogus_InlinesList[] =
1965 * Machine/OS name selection pattern
1967 #define apzHpux8_Bogus_InlinesMachs (const char**)NULL
1970 * content selection pattern - do fix if pattern found
1972 tSCC zHpux8_Bogus_InlinesSelect0[] =
1975 #define HPUX8_BOGUS_INLINES_TEST_CT 1
1976 static tTestDesc aHpux8_Bogus_InlinesTests[] = {
1977 { TT_EGREP, zHpux8_Bogus_InlinesSelect0, (regex_t*)NULL }, };
1980 * Fix Command Arguments for Hpux8_Bogus_Inlines
1982 static const char* apzHpux8_Bogus_InlinesPatch[] = { "sed",
1983 "-e", "s@inline int abs(int [a-z][a-z]*) {.*}@extern \"C\" int abs(int);@",
1984 "-e", "s@inline double abs(double [a-z][a-z]*) {.*}@@",
1985 "-e", "s@inline int sqr(int [a-z][a-z]*) {.*}@@",
1986 "-e", "s@inline double sqr(double [a-z][a-z]*) {.*}@@",
1989 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1991 * Description of Hpux_Maxint fix
1993 tSCC zHpux_MaxintName[] =
1997 * File name selection pattern
1999 tSCC zHpux_MaxintList[] =
2000 "|sys/param.h|values.h|";
2002 * Machine/OS name selection pattern
2004 #define apzHpux_MaxintMachs (const char**)NULL
2007 * content selection pattern - do fix if pattern found
2009 tSCC zHpux_MaxintSelect0[] =
2010 "^#[ \t]*define[ \t]+MAXINT[ \t]";
2013 * content bypass pattern - skip fix if pattern found
2015 tSCC zHpux_MaxintBypass0[] =
2016 "^#[ \t]*ifndef[ \t]+MAXINT";
2019 * perform the 'test' shell command - do fix on success
2021 tSCC zHpux_MaxintTest0[] =
2022 "-n \"`egrep '#[ \t]*define[ \t]+MAXINT[ \t]' sys/param.h`\"";
2024 #define HPUX_MAXINT_TEST_CT 3
2025 static tTestDesc aHpux_MaxintTests[] = {
2026 { TT_TEST, zHpux_MaxintTest0, 0 /* unused */ },
2027 { TT_NEGREP, zHpux_MaxintBypass0, (regex_t*)NULL },
2028 { TT_EGREP, zHpux_MaxintSelect0, (regex_t*)NULL }, };
2031 * Fix Command Arguments for Hpux_Maxint
2033 static const char* apzHpux_MaxintPatch[] = {
2038 "^#[ \t]*define[ \t]+MAXINT[ \t].*",
2041 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2043 * Description of Hpux_Systime fix
2045 tSCC zHpux_SystimeName[] =
2049 * File name selection pattern
2051 tSCC zHpux_SystimeList[] =
2054 * Machine/OS name selection pattern
2056 #define apzHpux_SystimeMachs (const char**)NULL
2059 * content selection pattern - do fix if pattern found
2061 tSCC zHpux_SystimeSelect0[] =
2062 "^extern struct sigevent;";
2064 #define HPUX_SYSTIME_TEST_CT 1
2065 static tTestDesc aHpux_SystimeTests[] = {
2066 { TT_EGREP, zHpux_SystimeSelect0, (regex_t*)NULL }, };
2069 * Fix Command Arguments for Hpux_Systime
2071 static const char* apzHpux_SystimePatch[] = {
2076 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2078 * Description of Int_Abort_Free_And_Exit fix
2080 tSCC zInt_Abort_Free_And_ExitName[] =
2081 "int_abort_free_and_exit";
2084 * File name selection pattern
2086 tSCC zInt_Abort_Free_And_ExitList[] =
2089 * Machine/OS name selection pattern
2091 #define apzInt_Abort_Free_And_ExitMachs (const char**)NULL
2094 * content selection pattern - do fix if pattern found
2096 tSCC zInt_Abort_Free_And_ExitSelect0[] =
2097 "int[ \t]+(abort|free|exit)[ \t]*\\(";
2099 #define INT_ABORT_FREE_AND_EXIT_TEST_CT 1
2100 static tTestDesc aInt_Abort_Free_And_ExitTests[] = {
2101 { TT_EGREP, zInt_Abort_Free_And_ExitSelect0, (regex_t*)NULL }, };
2104 * Fix Command Arguments for Int_Abort_Free_And_Exit
2106 static const char* apzInt_Abort_Free_And_ExitPatch[] = {
2111 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2113 * Description of Io_Quotes_Def fix
2115 tSCC zIo_Quotes_DefName[] =
2119 * File name selection pattern
2121 #define zIo_Quotes_DefList (char*)NULL
2123 * Machine/OS name selection pattern
2125 #define apzIo_Quotes_DefMachs (const char**)NULL
2128 * content selection pattern - do fix if pattern found
2130 tSCC zIo_Quotes_DefSelect0[] =
2131 "define[ \t]+[A-Z0-9_]+IO[A-Z]*\\([a-zA-Z][,)]";
2133 #define IO_QUOTES_DEF_TEST_CT 1
2134 static tTestDesc aIo_Quotes_DefTests[] = {
2135 { TT_EGREP, zIo_Quotes_DefSelect0, (regex_t*)NULL }, };
2138 * Fix Command Arguments for Io_Quotes_Def
2140 static const char* apzIo_Quotes_DefPatch[] = {
2145 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2147 * Description of Io_Quotes_Use fix
2149 tSCC zIo_Quotes_UseName[] =
2153 * File name selection pattern
2155 #define zIo_Quotes_UseList (char*)NULL
2157 * Machine/OS name selection pattern
2159 #define apzIo_Quotes_UseMachs (const char**)NULL
2162 * content selection pattern - do fix if pattern found
2164 tSCC zIo_Quotes_UseSelect0[] =
2165 "define[ \t]+[A-Z0-9_]+[ \t]+[A-Z0-9_]+IO[A-Z]*[ \t]*\\( *[^,']";
2167 #define IO_QUOTES_USE_TEST_CT 1
2168 static tTestDesc aIo_Quotes_UseTests[] = {
2169 { TT_EGREP, zIo_Quotes_UseSelect0, (regex_t*)NULL }, };
2172 * Fix Command Arguments for Io_Quotes_Use
2174 static const char* apzIo_Quotes_UsePatch[] = {
2179 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2181 * Description of Ip_Missing_Semi fix
2183 tSCC zIp_Missing_SemiName[] =
2187 * File name selection pattern
2189 tSCC zIp_Missing_SemiList[] =
2192 * Machine/OS name selection pattern
2194 #define apzIp_Missing_SemiMachs (const char**)NULL
2197 * content selection pattern - do fix if pattern found
2199 tSCC zIp_Missing_SemiSelect0[] =
2202 #define IP_MISSING_SEMI_TEST_CT 1
2203 static tTestDesc aIp_Missing_SemiTests[] = {
2204 { TT_EGREP, zIp_Missing_SemiSelect0, (regex_t*)NULL }, };
2207 * Fix Command Arguments for Ip_Missing_Semi
2209 static const char* apzIp_Missing_SemiPatch[] = { "sed",
2210 "-e", "/^struct/,/^};/s/}$/};/",
2213 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2215 * Description of Irix_Asm_Apostrophe fix
2217 tSCC zIrix_Asm_ApostropheName[] =
2218 "irix_asm_apostrophe";
2221 * File name selection pattern
2223 tSCC zIrix_Asm_ApostropheList[] =
2226 * Machine/OS name selection pattern
2228 #define apzIrix_Asm_ApostropheMachs (const char**)NULL
2231 * content selection pattern - do fix if pattern found
2233 tSCC zIrix_Asm_ApostropheSelect0[] =
2234 "^[ \t]*#.*[Ww]e're";
2236 #define IRIX_ASM_APOSTROPHE_TEST_CT 1
2237 static tTestDesc aIrix_Asm_ApostropheTests[] = {
2238 { TT_EGREP, zIrix_Asm_ApostropheSelect0, (regex_t*)NULL }, };
2241 * Fix Command Arguments for Irix_Asm_Apostrophe
2243 static const char* apzIrix_Asm_ApostrophePatch[] = {
2246 "^([ \t]*#.*[Ww]e)'re",
2249 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2251 * Description of Irix_Limits_Const fix
2253 tSCC zIrix_Limits_ConstName[] =
2254 "irix_limits_const";
2257 * File name selection pattern
2259 tSCC zIrix_Limits_ConstList[] =
2260 "|fixinc-test-limits.h|limits.h|";
2262 * Machine/OS name selection pattern
2264 #define apzIrix_Limits_ConstMachs (const char**)NULL
2267 * content selection pattern - do fix if pattern found
2269 tSCC zIrix_Limits_ConstSelect0[] =
2272 #define IRIX_LIMITS_CONST_TEST_CT 1
2273 static tTestDesc aIrix_Limits_ConstTests[] = {
2274 { TT_EGREP, zIrix_Limits_ConstSelect0, (regex_t*)NULL }, };
2277 * Fix Command Arguments for Irix_Limits_Const
2279 static const char* apzIrix_Limits_ConstPatch[] = {
2284 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2286 * Description of Irix_Stdio_Va_List fix
2288 tSCC zIrix_Stdio_Va_ListName[] =
2289 "irix_stdio_va_list";
2292 * File name selection pattern
2294 tSCC zIrix_Stdio_Va_ListList[] =
2297 * Machine/OS name selection pattern
2299 #define apzIrix_Stdio_Va_ListMachs (const char**)NULL
2302 * content selection pattern - do fix if pattern found
2304 tSCC zIrix_Stdio_Va_ListSelect0[] =
2305 "(printf\\(.*), /\\* va_list \\*/ char \\*";
2307 #define IRIX_STDIO_VA_LIST_TEST_CT 1
2308 static tTestDesc aIrix_Stdio_Va_ListTests[] = {
2309 { TT_EGREP, zIrix_Stdio_Va_ListSelect0, (regex_t*)NULL }, };
2312 * Fix Command Arguments for Irix_Stdio_Va_List
2314 static const char* apzIrix_Stdio_Va_ListPatch[] = {
2316 "%1, __gnuc_va_list",
2319 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2321 * Description of Isc_Fmod fix
2323 tSCC zIsc_FmodName[] =
2327 * File name selection pattern
2329 tSCC zIsc_FmodList[] =
2332 * Machine/OS name selection pattern
2334 #define apzIsc_FmodMachs (const char**)NULL
2337 * content selection pattern - do fix if pattern found
2339 tSCC zIsc_FmodSelect0[] =
2342 #define ISC_FMOD_TEST_CT 1
2343 static tTestDesc aIsc_FmodTests[] = {
2344 { TT_EGREP, zIsc_FmodSelect0, (regex_t*)NULL }, };
2347 * Fix Command Arguments for Isc_Fmod
2349 static const char* apzIsc_FmodPatch[] = {
2351 "fmod(double, double)",
2354 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2356 * Description of Isc_Omits_With_Stdc fix
2358 tSCC zIsc_Omits_With_StdcName[] =
2359 "isc_omits_with_stdc";
2362 * File name selection pattern
2364 tSCC zIsc_Omits_With_StdcList[] =
2365 "|stdio.h|math.h|ctype.h|sys/limits.h|sys/fcntl.h|sys/dirent.h|";
2367 * Machine/OS name selection pattern
2369 #define apzIsc_Omits_With_StdcMachs (const char**)NULL
2372 * content selection pattern - do fix if pattern found
2374 tSCC zIsc_Omits_With_StdcSelect0[] =
2375 "!defined\\(__STDC__\\) && !defined\\(_POSIX_SOURCE\\)";
2377 #define ISC_OMITS_WITH_STDC_TEST_CT 1
2378 static tTestDesc aIsc_Omits_With_StdcTests[] = {
2379 { TT_EGREP, zIsc_Omits_With_StdcSelect0, (regex_t*)NULL }, };
2382 * Fix Command Arguments for Isc_Omits_With_Stdc
2384 static const char* apzIsc_Omits_With_StdcPatch[] = {
2386 "!defined(_POSIX_SOURCE)",
2389 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2391 * Description of Kandr_Concat fix
2393 tSCC zKandr_ConcatName[] =
2397 * File name selection pattern
2399 tSCC zKandr_ConcatList[] =
2400 "|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|";
2402 * Machine/OS name selection pattern
2404 #define apzKandr_ConcatMachs (const char**)NULL
2407 * content selection pattern - do fix if pattern found
2409 tSCC zKandr_ConcatSelect0[] =
2412 #define KANDR_CONCAT_TEST_CT 1
2413 static tTestDesc aKandr_ConcatTests[] = {
2414 { TT_EGREP, zKandr_ConcatSelect0, (regex_t*)NULL }, };
2417 * Fix Command Arguments for Kandr_Concat
2419 static const char* apzKandr_ConcatPatch[] = {
2424 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2426 * Description of Libc1_Ifdefd_Memx fix
2428 tSCC zLibc1_Ifdefd_MemxName[] =
2429 "libc1_ifdefd_memx";
2432 * File name selection pattern
2434 tSCC zLibc1_Ifdefd_MemxList[] =
2435 "|testing.h|string.h|";
2437 * Machine/OS name selection pattern
2439 #define apzLibc1_Ifdefd_MemxMachs (const char**)NULL
2442 * content selection pattern - do fix if pattern found
2444 tSCC zLibc1_Ifdefd_MemxSelect0[] =
2445 "' is a built-in function for gcc 2\\.x\\. \\*/";
2448 * content bypass pattern - skip fix if pattern found
2450 tSCC zLibc1_Ifdefd_MemxBypass0[] =
2453 #define LIBC1_IFDEFD_MEMX_TEST_CT 2
2454 static tTestDesc aLibc1_Ifdefd_MemxTests[] = {
2455 { TT_NEGREP, zLibc1_Ifdefd_MemxBypass0, (regex_t*)NULL },
2456 { TT_EGREP, zLibc1_Ifdefd_MemxSelect0, (regex_t*)NULL }, };
2459 * Fix Command Arguments for Libc1_Ifdefd_Memx
2461 static const char* apzLibc1_Ifdefd_MemxPatch[] = {
2464 "/\\* `mem...' is a built-in function for gcc 2\\.x\\. \\*/\n\
2465 #if defined\\(__STDC__\\) && __GNUC__ < 2\n\
2467 extern [a-z_]+ mem.*(\n\
2472 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2474 * Description of Limits_Ifndefs fix
2476 tSCC zLimits_IfndefsName[] =
2480 * File name selection pattern
2482 tSCC zLimits_IfndefsList[] =
2483 "|sys/limits.h|limits.h|";
2485 * Machine/OS name selection pattern
2487 #define apzLimits_IfndefsMachs (const char**)NULL
2490 * content bypass pattern - skip fix if pattern found
2492 tSCC zLimits_IfndefsBypass0[] =
2493 "ifndef[ \t]+FLT_MIN";
2495 #define LIMITS_IFNDEFS_TEST_CT 1
2496 static tTestDesc aLimits_IfndefsTests[] = {
2497 { TT_NEGREP, zLimits_IfndefsBypass0, (regex_t*)NULL }, };
2500 * Fix Command Arguments for Limits_Ifndefs
2502 static const char* apzLimits_IfndefsPatch[] = {
2507 "^[ \t]*#[ \t]*define[ \t]+((FLT|DBL)_(MIN|MAX|DIG))[ \t].*",
2510 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2512 * Description of Lynx_Void_Int fix
2514 tSCC zLynx_Void_IntName[] =
2518 * File name selection pattern
2520 tSCC zLynx_Void_IntList[] =
2523 * Machine/OS name selection pattern
2525 #define apzLynx_Void_IntMachs (const char**)NULL
2528 * content selection pattern - do fix if pattern found
2530 tSCC zLynx_Void_IntSelect0[] =
2531 "#[ \t]*define[ \t]+void[ \t]+int[ \t]*";
2533 #define LYNX_VOID_INT_TEST_CT 1
2534 static tTestDesc aLynx_Void_IntTests[] = {
2535 { TT_EGREP, zLynx_Void_IntSelect0, (regex_t*)NULL }, };
2538 * Fix Command Arguments for Lynx_Void_Int
2540 static const char* apzLynx_Void_IntPatch[] = {
2545 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2547 * Description of Lynxos_Fcntl_Proto fix
2549 tSCC zLynxos_Fcntl_ProtoName[] =
2550 "lynxos_fcntl_proto";
2553 * File name selection pattern
2555 tSCC zLynxos_Fcntl_ProtoList[] =
2558 * Machine/OS name selection pattern
2560 #define apzLynxos_Fcntl_ProtoMachs (const char**)NULL
2563 * content selection pattern - do fix if pattern found
2565 tSCC zLynxos_Fcntl_ProtoSelect0[] =
2566 "fcntl[ \t]*\\(int, int, int\\)";
2568 #define LYNXOS_FCNTL_PROTO_TEST_CT 1
2569 static tTestDesc aLynxos_Fcntl_ProtoTests[] = {
2570 { TT_EGREP, zLynxos_Fcntl_ProtoSelect0, (regex_t*)NULL }, };
2573 * Fix Command Arguments for Lynxos_Fcntl_Proto
2575 static const char* apzLynxos_Fcntl_ProtoPatch[] = {
2578 "(fcntl[ \t]*\\(int, int, )int\\)",
2581 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2583 * Description of M88k_Bad_Hypot_Opt fix
2585 tSCC zM88k_Bad_Hypot_OptName[] =
2586 "m88k_bad_hypot_opt";
2589 * File name selection pattern
2591 tSCC zM88k_Bad_Hypot_OptList[] =
2594 * Machine/OS name selection pattern
2596 tSCC* apzM88k_Bad_Hypot_OptMachs[] = {
2597 "m88k-motorola-sysv3*",
2598 (const char*)NULL };
2601 * content selection pattern - do fix if pattern found
2603 tSCC zM88k_Bad_Hypot_OptSelect0[] =
2604 "^extern double hypot\\(\\);\n";
2606 #define M88K_BAD_HYPOT_OPT_TEST_CT 1
2607 static tTestDesc aM88k_Bad_Hypot_OptTests[] = {
2608 { TT_EGREP, zM88k_Bad_Hypot_OptSelect0, (regex_t*)NULL }, };
2611 * Fix Command Arguments for M88k_Bad_Hypot_Opt
2613 static const char* apzM88k_Bad_Hypot_OptPatch[] = {
2615 "%0/* Workaround a stupid Motorola optimization if one\n\
2616 of x or y is 0.0 and the other is negative! */\n\
2618 static __inline__ double fake_hypot (double x, double y)\n\
2620 static __inline__ double fake_hypot (x, y)\n\
2624 \treturn fabs (hypot (x, y));\n\
2626 #define hypot\tfake_hypot\n",
2629 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2631 * Description of M88k_Bad_S_If fix
2633 tSCC zM88k_Bad_S_IfName[] =
2637 * File name selection pattern
2639 tSCC zM88k_Bad_S_IfList[] =
2642 * Machine/OS name selection pattern
2644 tSCC* apzM88k_Bad_S_IfMachs[] = {
2646 (const char*)NULL };
2649 * content selection pattern - do fix if pattern found
2651 tSCC zM88k_Bad_S_IfSelect0[] =
2652 "#define[ \t]+S_IS[A-Z]+\\(m\\)[ \t]+\\(m[ \t]*&";
2654 #define M88K_BAD_S_IF_TEST_CT 1
2655 static tTestDesc aM88k_Bad_S_IfTests[] = {
2656 { TT_EGREP, zM88k_Bad_S_IfSelect0, (regex_t*)NULL }, };
2659 * Fix Command Arguments for M88k_Bad_S_If
2661 static const char* apzM88k_Bad_S_IfPatch[] = {
2663 "#define %1(m) (((m) & S_IFMT) == %2)",
2664 "#define[ \t]+(S_IS[A-Z]+)\\(m\\)[ \t]+\\(m[ \t]*&[ \t]*(S_IF[A-Z][A-Z][A-Z]+|0[0-9]+)[ \t]*\\)",
2667 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2669 * Description of M88k_Multi_Incl fix
2671 tSCC zM88k_Multi_InclName[] =
2675 * File name selection pattern
2677 tSCC zM88k_Multi_InclList[] =
2680 * Machine/OS name selection pattern
2682 tSCC* apzM88k_Multi_InclMachs[] = {
2683 "m88k-tektronix-sysv3*",
2684 (const char*)NULL };
2687 * content bypass pattern - skip fix if pattern found
2689 tSCC zM88k_Multi_InclBypass0[] =
2692 #define M88K_MULTI_INCL_TEST_CT 1
2693 static tTestDesc aM88k_Multi_InclTests[] = {
2694 { TT_NEGREP, zM88k_Multi_InclBypass0, (regex_t*)NULL }, };
2697 * Fix Command Arguments for M88k_Multi_Incl
2699 static const char* apzM88k_Multi_InclPatch[] = {
2703 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2705 * Description of Machine_Ansi_H_Va_List fix
2707 tSCC zMachine_Ansi_H_Va_ListName[] =
2708 "machine_ansi_h_va_list";
2711 * File name selection pattern
2713 #define zMachine_Ansi_H_Va_ListList (char*)NULL
2715 * Machine/OS name selection pattern
2717 #define apzMachine_Ansi_H_Va_ListMachs (const char**)NULL
2720 * content selection pattern - do fix if pattern found
2722 tSCC zMachine_Ansi_H_Va_ListSelect0[] =
2723 "define[ \t]+_BSD_VA_LIST_[ \t]";
2726 * content bypass pattern - skip fix if pattern found
2728 tSCC zMachine_Ansi_H_Va_ListBypass0[] =
2729 "__builtin_va_list";
2731 #define MACHINE_ANSI_H_VA_LIST_TEST_CT 2
2732 static tTestDesc aMachine_Ansi_H_Va_ListTests[] = {
2733 { TT_NEGREP, zMachine_Ansi_H_Va_ListBypass0, (regex_t*)NULL },
2734 { TT_EGREP, zMachine_Ansi_H_Va_ListSelect0, (regex_t*)NULL }, };
2737 * Fix Command Arguments for Machine_Ansi_H_Va_List
2739 static const char* apzMachine_Ansi_H_Va_ListPatch[] = {
2741 "%1__builtin_va_list",
2742 "(define[ \t]+_BSD_VA_LIST_[ \t]+).*",
2745 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2747 * Description of Machine_Name fix
2749 tSCC zMachine_NameName[] =
2753 * File name selection pattern
2755 #define zMachine_NameList (char*)NULL
2757 * Machine/OS name selection pattern
2759 #define apzMachine_NameMachs (const char**)NULL
2762 * perform the C function call test
2764 tSCC zMachine_NameFTst0[] = "machine_name";
2766 #define MACHINE_NAME_TEST_CT 1
2767 static tTestDesc aMachine_NameTests[] = {
2768 { TT_FUNCTION, zMachine_NameFTst0, 0 /* unused */ }, };
2771 * Fix Command Arguments for Machine_Name
2773 static const char* apzMachine_NamePatch[] = {
2777 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2779 * Description of Math_Exception fix
2781 tSCC zMath_ExceptionName[] =
2785 * File name selection pattern
2787 tSCC zMath_ExceptionList[] =
2790 * Machine/OS name selection pattern
2792 #define apzMath_ExceptionMachs (const char**)NULL
2795 * content selection pattern - do fix if pattern found
2797 tSCC zMath_ExceptionSelect0[] =
2801 * content bypass pattern - skip fix if pattern found
2803 tSCC zMath_ExceptionBypass0[] =
2804 "We have a problem when using C\\+\\+";
2806 #define MATH_EXCEPTION_TEST_CT 2
2807 static tTestDesc aMath_ExceptionTests[] = {
2808 { TT_NEGREP, zMath_ExceptionBypass0, (regex_t*)NULL },
2809 { TT_EGREP, zMath_ExceptionSelect0, (regex_t*)NULL }, };
2812 * Fix Command Arguments for Math_Exception
2814 static const char* apzMath_ExceptionPatch[] = {
2816 "#ifdef __cplusplus\n\
2817 #define exception __math_exception\n\
2819 "#ifdef __cplusplus\n\
2824 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2826 * Description of Math_Huge_Val_From_Dbl_Max fix
2828 tSCC zMath_Huge_Val_From_Dbl_MaxName[] =
2829 "math_huge_val_from_dbl_max";
2832 * File name selection pattern
2834 tSCC zMath_Huge_Val_From_Dbl_MaxList[] =
2837 * Machine/OS name selection pattern
2839 #define apzMath_Huge_Val_From_Dbl_MaxMachs (const char**)NULL
2842 * content selection pattern - do fix if pattern found
2844 tSCC zMath_Huge_Val_From_Dbl_MaxSelect0[] =
2845 "define[ \t]+HUGE_VAL[ \t]+DBL_MAX";
2848 * content bypass pattern - skip fix if pattern found
2850 tSCC zMath_Huge_Val_From_Dbl_MaxBypass0[] =
2851 "define[ \t]+DBL_MAX";
2853 #define MATH_HUGE_VAL_FROM_DBL_MAX_TEST_CT 2
2854 static tTestDesc aMath_Huge_Val_From_Dbl_MaxTests[] = {
2855 { TT_NEGREP, zMath_Huge_Val_From_Dbl_MaxBypass0, (regex_t*)NULL },
2856 { TT_EGREP, zMath_Huge_Val_From_Dbl_MaxSelect0, (regex_t*)NULL }, };
2859 * Fix Command Arguments for Math_Huge_Val_From_Dbl_Max
2861 static const char* apzMath_Huge_Val_From_Dbl_MaxPatch[] = { "sh", "-c",
2862 "\tdbl_max_def=`egrep 'define[ \t]+DBL_MAX[ \t]+.*' float.h | sed 's/.*DBL_MAX[ \t]*//' 2>/dev/null`\n\n\
2863 \tif ( test -n \"${dbl_max_def}\" ) > /dev/null 2>&1\n\
2864 \tthen sed -e '/define[ \t]*HUGE_VAL[ \t]*DBL_MAX/s@DBL_MAX@'\"$dbl_max_def@\"\n\
2869 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2871 * Description of Math_Huge_Val_Ifndef fix
2873 tSCC zMath_Huge_Val_IfndefName[] =
2874 "math_huge_val_ifndef";
2877 * File name selection pattern
2879 tSCC zMath_Huge_Val_IfndefList[] =
2880 "|math.h|math/math.h|";
2882 * Machine/OS name selection pattern
2884 #define apzMath_Huge_Val_IfndefMachs (const char**)NULL
2887 * content selection pattern - do fix if pattern found
2889 tSCC zMath_Huge_Val_IfndefSelect0[] =
2890 "define[ \t]+HUGE_VAL";
2892 #define MATH_HUGE_VAL_IFNDEF_TEST_CT 1
2893 static tTestDesc aMath_Huge_Val_IfndefTests[] = {
2894 { TT_EGREP, zMath_Huge_Val_IfndefSelect0, (regex_t*)NULL }, };
2897 * Fix Command Arguments for Math_Huge_Val_Ifndef
2899 static const char* apzMath_Huge_Val_IfndefPatch[] = {
2901 "#ifndef HUGE_VAL\n\
2904 "^[ \t]*#[ \t]*define[ \t]+HUGE_VAL[ \t].*",
2907 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2909 * Description of Nested_Auth_Des fix
2911 tSCC zNested_Auth_DesName[] =
2915 * File name selection pattern
2917 tSCC zNested_Auth_DesList[] =
2920 * Machine/OS name selection pattern
2922 #define apzNested_Auth_DesMachs (const char**)NULL
2925 * content selection pattern - do fix if pattern found
2927 tSCC zNested_Auth_DesSelect0[] =
2928 "(/\\*.*rpc/auth_des\\.h>.*)/\\*";
2930 #define NESTED_AUTH_DES_TEST_CT 1
2931 static tTestDesc aNested_Auth_DesTests[] = {
2932 { TT_EGREP, zNested_Auth_DesSelect0, (regex_t*)NULL }, };
2935 * Fix Command Arguments for Nested_Auth_Des
2937 static const char* apzNested_Auth_DesPatch[] = {
2942 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2944 * Description of Nested_Motorola fix
2946 tSCC zNested_MotorolaName[] =
2950 * File name selection pattern
2952 tSCC zNested_MotorolaList[] =
2953 "|sys/limits.h|limits.h|";
2955 * Machine/OS name selection pattern
2957 tSCC* apzNested_MotorolaMachs[] = {
2958 "m68k-motorola-sysv*",
2959 (const char*)NULL };
2962 * content selection pattern - do fix if pattern found
2964 tSCC zNested_MotorolaSelect0[] =
2965 "max # bytes atomic in write|error value returned by Math lib";
2967 #define NESTED_MOTOROLA_TEST_CT 1
2968 static tTestDesc aNested_MotorolaTests[] = {
2969 { TT_EGREP, zNested_MotorolaSelect0, (regex_t*)NULL }, };
2972 * Fix Command Arguments for Nested_Motorola
2974 static const char* apzNested_MotorolaPatch[] = { "sed",
2975 "-e", "s@^\\(#undef[ \t][ \t]*PIPE_BUF[ \t]*/\\* max # bytes atomic in write to a\\)$@\\1 */@",
2976 "-e", "s@\\(/\\*#define\tHUGE_VAL\t3.[0-9e+]* \\)\\(/\\*error value returned by Math lib\\*/\\)$@\\1*/ \\2@",
2979 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2981 * Description of Nested_Sys_Limits fix
2983 tSCC zNested_Sys_LimitsName[] =
2984 "nested_sys_limits";
2987 * File name selection pattern
2989 tSCC zNested_Sys_LimitsList[] =
2992 * Machine/OS name selection pattern
2994 #define apzNested_Sys_LimitsMachs (const char**)NULL
2997 * content selection pattern - do fix if pattern found
2999 tSCC zNested_Sys_LimitsSelect0[] =
3002 #define NESTED_SYS_LIMITS_TEST_CT 1
3003 static tTestDesc aNested_Sys_LimitsTests[] = {
3004 { TT_EGREP, zNested_Sys_LimitsSelect0, (regex_t*)NULL }, };
3007 * Fix Command Arguments for Nested_Sys_Limits
3009 static const char* apzNested_Sys_LimitsPatch[] = { "sed",
3010 "-e", "/CHILD_MAX/s,/\\* Max, Max,",
3011 "-e", "/OPEN_MAX/s,/\\* Max, Max,",
3014 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3016 * Description of News_Os_Recursion fix
3018 tSCC zNews_Os_RecursionName[] =
3019 "news_os_recursion";
3022 * File name selection pattern
3024 tSCC zNews_Os_RecursionList[] =
3027 * Machine/OS name selection pattern
3029 #define apzNews_Os_RecursionMachs (const char**)NULL
3032 * content selection pattern - do fix if pattern found
3034 tSCC zNews_Os_RecursionSelect0[] =
3035 "[ \t]*#include <stdlib\\.h>.*";
3037 #define NEWS_OS_RECURSION_TEST_CT 1
3038 static tTestDesc aNews_Os_RecursionTests[] = {
3039 { TT_EGREP, zNews_Os_RecursionSelect0, (regex_t*)NULL }, };
3042 * Fix Command Arguments for News_Os_Recursion
3044 static const char* apzNews_Os_RecursionPatch[] = {
3046 "#ifdef BOGUS_RECURSION\n\
3051 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3053 * Description of Next_Math_Prefix fix
3055 tSCC zNext_Math_PrefixName[] =
3059 * File name selection pattern
3061 tSCC zNext_Math_PrefixList[] =
3064 * Machine/OS name selection pattern
3066 #define apzNext_Math_PrefixMachs (const char**)NULL
3069 * content selection pattern - do fix if pattern found
3071 tSCC zNext_Math_PrefixSelect0[] =
3072 "^extern[ \t]+double[ \t]+__const__[ \t]";
3074 #define NEXT_MATH_PREFIX_TEST_CT 1
3075 static tTestDesc aNext_Math_PrefixTests[] = {
3076 { TT_EGREP, zNext_Math_PrefixSelect0, (regex_t*)NULL }, };
3079 * Fix Command Arguments for Next_Math_Prefix
3081 static const char* apzNext_Math_PrefixPatch[] = {
3083 "extern double %1(",
3084 "^extern[ \t]+double[ \t]+__const__[ \t]+([a-z]+)\\(",
3087 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3089 * Description of Next_Template fix
3091 tSCC zNext_TemplateName[] =
3095 * File name selection pattern
3097 tSCC zNext_TemplateList[] =
3100 * Machine/OS name selection pattern
3102 #define apzNext_TemplateMachs (const char**)NULL
3105 * content selection pattern - do fix if pattern found
3107 tSCC zNext_TemplateSelect0[] =
3110 #define NEXT_TEMPLATE_TEST_CT 1
3111 static tTestDesc aNext_TemplateTests[] = {
3112 { TT_EGREP, zNext_TemplateSelect0, (regex_t*)NULL }, };
3115 * Fix Command Arguments for Next_Template
3117 static const char* apzNext_TemplatePatch[] = {
3120 "\\(([^)]*)[ \t]template\\)",
3123 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3125 * Description of Next_Volitile fix
3127 tSCC zNext_VolitileName[] =
3131 * File name selection pattern
3133 tSCC zNext_VolitileList[] =
3136 * Machine/OS name selection pattern
3138 #define apzNext_VolitileMachs (const char**)NULL
3141 * content selection pattern - do fix if pattern found
3143 tSCC zNext_VolitileSelect0[] =
3144 "^extern[ \t]+volatile[ \t]+void[ \t]";
3146 #define NEXT_VOLITILE_TEST_CT 1
3147 static tTestDesc aNext_VolitileTests[] = {
3148 { TT_EGREP, zNext_VolitileSelect0, (regex_t*)NULL }, };
3151 * Fix Command Arguments for Next_Volitile
3153 static const char* apzNext_VolitilePatch[] = {
3156 "^extern[ \t]+volatile[ \t]+void[ \t]+(exit|abort)\\(",
3159 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3161 * Description of Next_Wait_Union fix
3163 tSCC zNext_Wait_UnionName[] =
3167 * File name selection pattern
3169 tSCC zNext_Wait_UnionList[] =
3172 * Machine/OS name selection pattern
3174 #define apzNext_Wait_UnionMachs (const char**)NULL
3177 * content selection pattern - do fix if pattern found
3179 tSCC zNext_Wait_UnionSelect0[] =
3180 "wait\\(union wait";
3182 #define NEXT_WAIT_UNION_TEST_CT 1
3183 static tTestDesc aNext_Wait_UnionTests[] = {
3184 { TT_EGREP, zNext_Wait_UnionSelect0, (regex_t*)NULL }, };
3187 * Fix Command Arguments for Next_Wait_Union
3189 static const char* apzNext_Wait_UnionPatch[] = {
3194 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3196 * Description of Nodeent_Syntax fix
3198 tSCC zNodeent_SyntaxName[] =
3202 * File name selection pattern
3204 tSCC zNodeent_SyntaxList[] =
3205 "|netdnet/dnetdb.h|";
3207 * Machine/OS name selection pattern
3209 #define apzNodeent_SyntaxMachs (const char**)NULL
3212 * content selection pattern - do fix if pattern found
3214 tSCC zNodeent_SyntaxSelect0[] =
3215 "char[ \t]*\\*na_addr[ \t]*$";
3217 #define NODEENT_SYNTAX_TEST_CT 1
3218 static tTestDesc aNodeent_SyntaxTests[] = {
3219 { TT_EGREP, zNodeent_SyntaxSelect0, (regex_t*)NULL }, };
3222 * Fix Command Arguments for Nodeent_Syntax
3224 static const char* apzNodeent_SyntaxPatch[] = {
3229 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3231 * Description of Osf_Namespace_A fix
3233 tSCC zOsf_Namespace_AName[] =
3237 * File name selection pattern
3239 tSCC zOsf_Namespace_AList[] =
3240 "|reg_types.h|sys/lc_core.h|";
3242 * Machine/OS name selection pattern
3244 #define apzOsf_Namespace_AMachs (const char**)NULL
3247 * perform the 'test' shell command - do fix on success
3249 tSCC zOsf_Namespace_ATest0[] =
3251 tSCC zOsf_Namespace_ATest1[] =
3252 " -r sys/lc_core.h";
3253 tSCC zOsf_Namespace_ATest2[] =
3254 " -n \"`grep '} regex_t;' reg_types.h`\"";
3255 tSCC zOsf_Namespace_ATest3[] =
3256 " -z \"`grep __regex_t regex.h`\"";
3258 #define OSF_NAMESPACE_A_TEST_CT 4
3259 static tTestDesc aOsf_Namespace_ATests[] = {
3260 { TT_TEST, zOsf_Namespace_ATest0, 0 /* unused */ },
3261 { TT_TEST, zOsf_Namespace_ATest1, 0 /* unused */ },
3262 { TT_TEST, zOsf_Namespace_ATest2, 0 /* unused */ },
3263 { TT_TEST, zOsf_Namespace_ATest3, 0 /* unused */ }, };
3266 * Fix Command Arguments for Osf_Namespace_A
3268 static const char* apzOsf_Namespace_APatch[] = {
3271 "reg(ex|off|match)_t",
3274 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3276 * Description of Osf_Namespace_C fix
3278 tSCC zOsf_Namespace_CName[] =
3282 * File name selection pattern
3284 tSCC zOsf_Namespace_CList[] =
3287 * Machine/OS name selection pattern
3289 #define apzOsf_Namespace_CMachs (const char**)NULL
3292 * content selection pattern - do fix if pattern found
3294 tSCC zOsf_Namespace_CSelect0[] =
3295 "#include <reg_types.h>.*";
3298 * perform the 'test' shell command - do fix on success
3300 tSCC zOsf_Namespace_CTest0[] =
3302 tSCC zOsf_Namespace_CTest1[] =
3303 " -r sys/lc_core.h";
3304 tSCC zOsf_Namespace_CTest2[] =
3305 " -n \"`grep '} regex_t;' reg_types.h`\"";
3306 tSCC zOsf_Namespace_CTest3[] =
3307 " -z \"`grep __regex_t regex.h`\"";
3309 #define OSF_NAMESPACE_C_TEST_CT 5
3310 static tTestDesc aOsf_Namespace_CTests[] = {
3311 { TT_TEST, zOsf_Namespace_CTest0, 0 /* unused */ },
3312 { TT_TEST, zOsf_Namespace_CTest1, 0 /* unused */ },
3313 { TT_TEST, zOsf_Namespace_CTest2, 0 /* unused */ },
3314 { TT_TEST, zOsf_Namespace_CTest3, 0 /* unused */ },
3315 { TT_EGREP, zOsf_Namespace_CSelect0, (regex_t*)NULL }, };
3318 * Fix Command Arguments for Osf_Namespace_C
3320 static const char* apzOsf_Namespace_CPatch[] = {
3323 typedef __regex_t\tregex_t;\n\
3324 typedef __regoff_t\tregoff_t;\n\
3325 typedef __regmatch_t\tregmatch_t;",
3328 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3330 * Description of Pthread_Page_Size fix
3332 tSCC zPthread_Page_SizeName[] =
3333 "pthread_page_size";
3336 * File name selection pattern
3338 tSCC zPthread_Page_SizeList[] =
3341 * Machine/OS name selection pattern
3343 #define apzPthread_Page_SizeMachs (const char**)NULL
3346 * content selection pattern - do fix if pattern found
3348 tSCC zPthread_Page_SizeSelect0[] =
3351 #define PTHREAD_PAGE_SIZE_TEST_CT 1
3352 static tTestDesc aPthread_Page_SizeTests[] = {
3353 { TT_EGREP, zPthread_Page_SizeSelect0, (regex_t*)NULL }, };
3356 * Fix Command Arguments for Pthread_Page_Size
3358 static const char* apzPthread_Page_SizePatch[] = {
3363 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3365 * Description of Read_Ret_Type fix
3367 tSCC zRead_Ret_TypeName[] =
3371 * File name selection pattern
3373 tSCC zRead_Ret_TypeList[] =
3376 * Machine/OS name selection pattern
3378 #define apzRead_Ret_TypeMachs (const char**)NULL
3381 * content selection pattern - do fix if pattern found
3383 tSCC zRead_Ret_TypeSelect0[] =
3384 "extern int\t.*, fread\\(\\), fwrite\\(\\)";
3386 #define READ_RET_TYPE_TEST_CT 1
3387 static tTestDesc aRead_Ret_TypeTests[] = {
3388 { TT_EGREP, zRead_Ret_TypeSelect0, (regex_t*)NULL }, };
3391 * Fix Command Arguments for Read_Ret_Type
3393 static const char* apzRead_Ret_TypePatch[] = {
3395 "extern unsigned int fread(), fwrite();\n\
3397 "(extern int\t.*), fread\\(\\), fwrite\\(\\)(.*)",
3400 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3402 * Description of Rs6000_Double fix
3404 tSCC zRs6000_DoubleName[] =
3408 * File name selection pattern
3410 tSCC zRs6000_DoubleList[] =
3413 * Machine/OS name selection pattern
3415 #define apzRs6000_DoubleMachs (const char**)NULL
3418 * content selection pattern - do fix if pattern found
3420 tSCC zRs6000_DoubleSelect0[] =
3421 "[^a-zA-Z_]class\\(";
3423 #define RS6000_DOUBLE_TEST_CT 1
3424 static tTestDesc aRs6000_DoubleTests[] = {
3425 { TT_EGREP, zRs6000_DoubleSelect0, (regex_t*)NULL }, };
3428 * Fix Command Arguments for Rs6000_Double
3430 static const char* apzRs6000_DoublePatch[] = {
3432 "#ifndef __cplusplus\n\
3435 "^.*[^a-zA-Z_]class\\(.*",
3438 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3440 * Description of Rs6000_Fchmod fix
3442 tSCC zRs6000_FchmodName[] =
3446 * File name selection pattern
3448 tSCC zRs6000_FchmodList[] =
3451 * Machine/OS name selection pattern
3453 #define apzRs6000_FchmodMachs (const char**)NULL
3456 * content selection pattern - do fix if pattern found
3458 tSCC zRs6000_FchmodSelect0[] =
3459 "fchmod\\(char \\*";
3461 #define RS6000_FCHMOD_TEST_CT 1
3462 static tTestDesc aRs6000_FchmodTests[] = {
3463 { TT_EGREP, zRs6000_FchmodSelect0, (regex_t*)NULL }, };
3466 * Fix Command Arguments for Rs6000_Fchmod
3468 static const char* apzRs6000_FchmodPatch[] = {
3473 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3475 * Description of Rs6000_Param fix
3477 tSCC zRs6000_ParamName[] =
3481 * File name selection pattern
3483 tSCC zRs6000_ParamList[] =
3484 "|stdio.h|unistd.h|";
3486 * Machine/OS name selection pattern
3488 #define apzRs6000_ParamMachs (const char**)NULL
3491 * content selection pattern - do fix if pattern found
3493 tSCC zRs6000_ParamSelect0[] =
3494 "rename\\(const char \\*old, const char \\*new\\)";
3496 #define RS6000_PARAM_TEST_CT 1
3497 static tTestDesc aRs6000_ParamTests[] = {
3498 { TT_EGREP, zRs6000_ParamSelect0, (regex_t*)NULL }, };
3501 * Fix Command Arguments for Rs6000_Param
3503 static const char* apzRs6000_ParamPatch[] = {
3505 "rename(const char *_old, const char *_new)",
3508 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3510 * Description of Sco_Static_Func fix
3512 tSCC zSco_Static_FuncName[] =
3516 * File name selection pattern
3518 tSCC zSco_Static_FuncList[] =
3521 * Machine/OS name selection pattern
3523 tSCC* apzSco_Static_FuncMachs[] = {
3525 (const char*)NULL };
3528 * content selection pattern - do fix if pattern found
3530 tSCC zSco_Static_FuncSelect0[] =
3533 #define SCO_STATIC_FUNC_TEST_CT 1
3534 static tTestDesc aSco_Static_FuncTests[] = {
3535 { TT_EGREP, zSco_Static_FuncSelect0, (regex_t*)NULL }, };
3538 * Fix Command Arguments for Sco_Static_Func
3540 static const char* apzSco_Static_FuncPatch[] = { "sed",
3541 "-e", "/^static int/i\\\n\
3542 #if __cplusplus\\\n\
3544 #endif /* __cplusplus */",
3546 #if __cplusplus\\\n\
3548 #endif /* __cplusplus */",
3551 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3553 * Description of Sco_Utime fix
3555 tSCC zSco_UtimeName[] =
3559 * File name selection pattern
3561 tSCC zSco_UtimeList[] =
3564 * Machine/OS name selection pattern
3566 tSCC* apzSco_UtimeMachs[] = {
3568 (const char*)NULL };
3571 * content selection pattern - do fix if pattern found
3573 tSCC zSco_UtimeSelect0[] =
3574 "\\(const char \\*, struct utimbuf \\*\\);";
3576 #define SCO_UTIME_TEST_CT 1
3577 static tTestDesc aSco_UtimeTests[] = {
3578 { TT_EGREP, zSco_UtimeSelect0, (regex_t*)NULL }, };
3581 * Fix Command Arguments for Sco_Utime
3583 static const char* apzSco_UtimePatch[] = {
3585 "(const char *, const struct utimbuf *);",
3588 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3590 * Description of Solaris_Mutex_Init fix
3592 tSCC zSolaris_Mutex_InitName[] =
3593 "solaris_mutex_init";
3596 * File name selection pattern
3598 tSCC zSolaris_Mutex_InitList[] =
3601 * Machine/OS name selection pattern
3603 #define apzSolaris_Mutex_InitMachs (const char**)NULL
3606 * content selection pattern - do fix if pattern found
3608 tSCC zSolaris_Mutex_InitSelect0[] =
3609 "@\\(#\\)pthread.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
3611 #define SOLARIS_MUTEX_INIT_TEST_CT 1
3612 static tTestDesc aSolaris_Mutex_InitTests[] = {
3613 { TT_EGREP, zSolaris_Mutex_InitSelect0, (regex_t*)NULL }, };
3616 * Fix Command Arguments for Solaris_Mutex_Init
3618 static const char* apzSolaris_Mutex_InitPatch[] = {
3620 "#if __STDC__ - 0 == 0 && !defined(_NO_LONGLONG)\n\
3625 "(^#define[ \t]+PTHREAD_(MUTEX|COND)_INITIALIZER[ \t]+{.*),[ \t]*0}(|[ \t].*)$",
3628 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3630 * Description of Statsswtch fix
3632 tSCC zStatsswtchName[] =
3636 * File name selection pattern
3638 tSCC zStatsswtchList[] =
3641 * Machine/OS name selection pattern
3643 #define apzStatsswtchMachs (const char**)NULL
3646 * content selection pattern - do fix if pattern found
3648 tSCC zStatsswtchSelect0[] =
3651 #define STATSSWTCH_TEST_CT 1
3652 static tTestDesc aStatsswtchTests[] = {
3653 { TT_EGREP, zStatsswtchSelect0, (regex_t*)NULL }, };
3656 * Fix Command Arguments for Statsswtch
3658 static const char* apzStatsswtchPatch[] = {
3663 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3665 * Description of Stdio_Stdarg_H fix
3667 tSCC zStdio_Stdarg_HName[] =
3671 * File name selection pattern
3673 tSCC zStdio_Stdarg_HList[] =
3676 * Machine/OS name selection pattern
3678 #define apzStdio_Stdarg_HMachs (const char**)NULL
3681 * content bypass pattern - skip fix if pattern found
3683 tSCC zStdio_Stdarg_HBypass0[] =
3684 "include.*(stdarg.h|machine/ansi.h)";
3686 #define STDIO_STDARG_H_TEST_CT 1
3687 static tTestDesc aStdio_Stdarg_HTests[] = {
3688 { TT_NEGREP, zStdio_Stdarg_HBypass0, (regex_t*)NULL }, };
3691 * Fix Command Arguments for Stdio_Stdarg_H
3693 static const char* apzStdio_Stdarg_HPatch[] = {
3695 "#define __need___va_list\n\
3696 #include <stdarg.h>\n",
3699 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3701 * Description of Stdio_Va_List fix
3703 tSCC zStdio_Va_ListName[] =
3707 * File name selection pattern
3709 tSCC zStdio_Va_ListList[] =
3712 * Machine/OS name selection pattern
3714 #define apzStdio_Va_ListMachs (const char**)NULL
3717 * content bypass pattern - skip fix if pattern found
3719 tSCC zStdio_Va_ListBypass0[] =
3720 "__gnuc_va_list|_BSD_VA_LIST_|__DJ_va_list";
3722 #define STDIO_VA_LIST_TEST_CT 1
3723 static tTestDesc aStdio_Va_ListTests[] = {
3724 { TT_NEGREP, zStdio_Va_ListBypass0, (regex_t*)NULL }, };
3727 * Fix Command Arguments for Stdio_Va_List
3729 static const char* apzStdio_Va_ListPatch[] = { "sed",
3730 "-e", "s@ va_list @ __gnuc_va_list @\n\
3731 s@ va_list)@ __gnuc_va_list)@\n\
3732 s@ _VA_LIST_));@ __gnuc_va_list));@\n\
3733 s@ __VA_LIST__));@ __gnuc_va_list));@\n\
3734 s@ va_list@ __not_va_list__@\n\
3735 s@\\*va_list@*__not_va_list__@\n\
3736 s@ __va_list)@ __gnuc_va_list)@\n\
3737 s@typedef[ \t]\\(.*\\)[ \t]va_list[ \t]*;@typedef \\1 __not_va_list__;@\n\
3738 s@GNUC_VA_LIST@GNUC_Va_LIST@\n\
3739 s@_NEED___VA_LIST@_NEED___Va_LIST@\n\
3740 s@VA_LIST@DUMMY_VA_LIST@\n\
3741 s@_Va_LIST@_VA_LIST@",
3744 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3746 * Description of Strict_Ansi_Not fix
3748 tSCC zStrict_Ansi_NotName[] =
3752 * File name selection pattern
3754 #define zStrict_Ansi_NotList (char*)NULL
3756 * Machine/OS name selection pattern
3758 #define apzStrict_Ansi_NotMachs (const char**)NULL
3761 * content selection pattern - do fix if pattern found
3763 tSCC zStrict_Ansi_NotSelect0[] =
3764 "^([ \t]*#[ \t]*if.*)(!__STDC__|__STDC__[ \t]*==[ \t]*0|__STDC__[ \t]*!=[ \t]*1|__STDC__[ \t]*-[ \t]*0[ \t]*==[ \t]*0)";
3767 * perform the C function call test
3769 tSCC zStrict_Ansi_NotFTst0[] = "stdc_0_in_system_headers";
3771 #define STRICT_ANSI_NOT_TEST_CT 2
3772 static tTestDesc aStrict_Ansi_NotTests[] = {
3773 { TT_FUNCTION, zStrict_Ansi_NotFTst0, 0 /* unused */ },
3774 { TT_EGREP, zStrict_Ansi_NotSelect0, (regex_t*)NULL }, };
3777 * Fix Command Arguments for Strict_Ansi_Not
3779 static const char* apzStrict_Ansi_NotPatch[] = {
3781 "%1 !defined(__STRICT_ANSI__)",
3784 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3786 * Description of Strict_Ansi_Not_Ctd fix
3788 tSCC zStrict_Ansi_Not_CtdName[] =
3789 "strict_ansi_not_ctd";
3792 * File name selection pattern
3794 tSCC zStrict_Ansi_Not_CtdList[] =
3795 "|math.h|limits.h|stdio.h|signal.h|stdlib.h|sys/signal.h|time.h|";
3797 * Machine/OS name selection pattern
3799 #define apzStrict_Ansi_Not_CtdMachs (const char**)NULL
3802 * content selection pattern - do fix if pattern found
3804 tSCC zStrict_Ansi_Not_CtdSelect0[] =
3805 "^([ \t]*(\\(|&&|\\|\\|)([ \t(]*!*[ \t]*defined\\([a-zA-Z_0-9]+\\)[ \t]*[|&][|&])*[ \t(]*)(__STDC__[ \t]*(|-[ \t]*0[ \t]*)==[ \t]*0)";
3808 * perform the C function call test
3810 tSCC zStrict_Ansi_Not_CtdFTst0[] = "stdc_0_in_system_headers";
3812 #define STRICT_ANSI_NOT_CTD_TEST_CT 2
3813 static tTestDesc aStrict_Ansi_Not_CtdTests[] = {
3814 { TT_FUNCTION, zStrict_Ansi_Not_CtdFTst0, 0 /* unused */ },
3815 { TT_EGREP, zStrict_Ansi_Not_CtdSelect0, (regex_t*)NULL }, };
3818 * Fix Command Arguments for Strict_Ansi_Not_Ctd
3820 static const char* apzStrict_Ansi_Not_CtdPatch[] = {
3822 "%1 !defined(__STRICT_ANSI__)",
3825 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3827 * Description of Strict_Ansi_Only fix
3829 tSCC zStrict_Ansi_OnlyName[] =
3833 * File name selection pattern
3835 #define zStrict_Ansi_OnlyList (char*)NULL
3837 * Machine/OS name selection pattern
3839 #define apzStrict_Ansi_OnlyMachs (const char**)NULL
3842 * content selection pattern - do fix if pattern found
3844 tSCC zStrict_Ansi_OnlySelect0[] =
3845 "^([ \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)";
3848 * perform the C function call test
3850 tSCC zStrict_Ansi_OnlyFTst0[] = "stdc_0_in_system_headers";
3852 #define STRICT_ANSI_ONLY_TEST_CT 2
3853 static tTestDesc aStrict_Ansi_OnlyTests[] = {
3854 { TT_FUNCTION, zStrict_Ansi_OnlyFTst0, 0 /* unused */ },
3855 { TT_EGREP, zStrict_Ansi_OnlySelect0, (regex_t*)NULL }, };
3858 * Fix Command Arguments for Strict_Ansi_Only
3860 static const char* apzStrict_Ansi_OnlyPatch[] = {
3862 "%1 defined(__STRICT_ANSI__)",
3865 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3867 * Description of Struct_File fix
3869 tSCC zStruct_FileName[] =
3873 * File name selection pattern
3875 tSCC zStruct_FileList[] =
3878 * Machine/OS name selection pattern
3880 #define apzStruct_FileMachs (const char**)NULL
3883 * content selection pattern - do fix if pattern found
3885 tSCC zStruct_FileSelect0[] =
3886 "^.*xdrstdio_create.*struct __file_s";
3888 #define STRUCT_FILE_TEST_CT 1
3889 static tTestDesc aStruct_FileTests[] = {
3890 { TT_EGREP, zStruct_FileSelect0, (regex_t*)NULL }, };
3893 * Fix Command Arguments for Struct_File
3895 static const char* apzStruct_FilePatch[] = {
3897 "struct __file_s;\n\
3901 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3903 * Description of Struct_Sockaddr fix
3905 tSCC zStruct_SockaddrName[] =
3909 * File name selection pattern
3911 tSCC zStruct_SockaddrList[] =
3914 * Machine/OS name selection pattern
3916 #define apzStruct_SockaddrMachs (const char**)NULL
3919 * content selection pattern - do fix if pattern found
3921 tSCC zStruct_SockaddrSelect0[] =
3922 "^.*authdes_create.*struct sockaddr";
3925 * content bypass pattern - skip fix if pattern found
3927 tSCC zStruct_SockaddrBypass0[] =
3930 #define STRUCT_SOCKADDR_TEST_CT 2
3931 static tTestDesc aStruct_SockaddrTests[] = {
3932 { TT_NEGREP, zStruct_SockaddrBypass0, (regex_t*)NULL },
3933 { TT_EGREP, zStruct_SockaddrSelect0, (regex_t*)NULL }, };
3936 * Fix Command Arguments for Struct_Sockaddr
3938 static const char* apzStruct_SockaddrPatch[] = {
3940 "struct sockaddr;\n\
3944 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3946 * Description of Sun_Auth_Proto fix
3948 tSCC zSun_Auth_ProtoName[] =
3952 * File name selection pattern
3954 tSCC zSun_Auth_ProtoList[] =
3955 "|rpc/auth.h|rpc/clnt.h|rpc/svc.h|rpc/xdr.h|";
3957 * Machine/OS name selection pattern
3959 #define apzSun_Auth_ProtoMachs (const char**)NULL
3962 * content selection pattern - do fix if pattern found
3964 tSCC zSun_Auth_ProtoSelect0[] =
3965 "\\(\\*[a-z][a-z_]*\\)\\(\\)";
3967 #define SUN_AUTH_PROTO_TEST_CT 1
3968 static tTestDesc aSun_Auth_ProtoTests[] = {
3969 { TT_EGREP, zSun_Auth_ProtoSelect0, (regex_t*)NULL }, };
3972 * Fix Command Arguments for Sun_Auth_Proto
3974 static const char* apzSun_Auth_ProtoPatch[] = {
3976 "#ifdef __cplusplus\n\
3981 "(.*\\(\\*[a-z][a-z_]*\\))\\(\\);(.*)",
3984 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3986 * Description of Sun_Bogus_Ifdef fix
3988 tSCC zSun_Bogus_IfdefName[] =
3992 * File name selection pattern
3994 tSCC zSun_Bogus_IfdefList[] =
3995 "|hsfs/hsfs_spec.h|hsfs/iso_spec.h|";
3997 * Machine/OS name selection pattern
3999 #define apzSun_Bogus_IfdefMachs (const char**)NULL
4002 * content selection pattern - do fix if pattern found
4004 tSCC zSun_Bogus_IfdefSelect0[] =
4005 "#ifdef(.*\\|\\|.*)";
4007 #define SUN_BOGUS_IFDEF_TEST_CT 1
4008 static tTestDesc aSun_Bogus_IfdefTests[] = {
4009 { TT_EGREP, zSun_Bogus_IfdefSelect0, (regex_t*)NULL }, };
4012 * Fix Command Arguments for Sun_Bogus_Ifdef
4014 static const char* apzSun_Bogus_IfdefPatch[] = {
4019 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4021 * Description of Sun_Catmacro fix
4023 tSCC zSun_CatmacroName[] =
4027 * File name selection pattern
4029 tSCC zSun_CatmacroList[] =
4030 "|pixrect/memvar.h|";
4032 * Machine/OS name selection pattern
4034 #define apzSun_CatmacroMachs (const char**)NULL
4037 * content selection pattern - do fix if pattern found
4039 tSCC zSun_CatmacroSelect0[] =
4040 "^#define[ \t]+CAT\\(a,b\\).*";
4042 #define SUN_CATMACRO_TEST_CT 1
4043 static tTestDesc aSun_CatmacroTests[] = {
4044 { TT_EGREP, zSun_CatmacroSelect0, (regex_t*)NULL }, };
4047 * Fix Command Arguments for Sun_Catmacro
4049 static const char* apzSun_CatmacroPatch[] = {
4052 # define CAT(a,b) a##b\n\
4058 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4060 * Description of Sun_Malloc fix
4062 tSCC zSun_MallocName[] =
4066 * File name selection pattern
4068 tSCC zSun_MallocList[] =
4071 * Machine/OS name selection pattern
4073 #define apzSun_MallocMachs (const char**)NULL
4074 #define SUN_MALLOC_TEST_CT 0
4075 #define aSun_MallocTests (tTestDesc*)NULL
4078 * Fix Command Arguments for Sun_Malloc
4080 static const char* apzSun_MallocPatch[] = { "sed",
4081 "-e", "s/typedef[ \t]char \\*\tmalloc_t/typedef void \\*\tmalloc_t/g",
4082 "-e", "s/int[ \t][ \t]*free/void\tfree/g",
4083 "-e", "s/char\\([ \t]*\\*[ \t]*malloc\\)/void\\1/g",
4084 "-e", "s/char\\([ \t]*\\*[ \t]*realloc\\)/void\\1/g",
4085 "-e", "s/char\\([ \t]*\\*[ \t]*calloc\\)/void\\1/g",
4088 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4090 * Description of Sun_Rusers_Semi fix
4092 tSCC zSun_Rusers_SemiName[] =
4096 * File name selection pattern
4098 tSCC zSun_Rusers_SemiList[] =
4099 "|rpcsvc/rusers.h|";
4101 * Machine/OS name selection pattern
4103 #define apzSun_Rusers_SemiMachs (const char**)NULL
4106 * content selection pattern - do fix if pattern found
4108 tSCC zSun_Rusers_SemiSelect0[] =
4111 #define SUN_RUSERS_SEMI_TEST_CT 1
4112 static tTestDesc aSun_Rusers_SemiTests[] = {
4113 { TT_EGREP, zSun_Rusers_SemiSelect0, (regex_t*)NULL }, };
4116 * Fix Command Arguments for Sun_Rusers_Semi
4118 static const char* apzSun_Rusers_SemiPatch[] = { "sed",
4119 "-e", "/^struct/,/^};/s/_cnt$/_cnt;/",
4122 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4124 * Description of Sun_Signal fix
4126 tSCC zSun_SignalName[] =
4130 * File name selection pattern
4132 tSCC zSun_SignalList[] =
4133 "|sys/signal.h|signal.h|";
4135 * Machine/OS name selection pattern
4137 #define apzSun_SignalMachs (const char**)NULL
4140 * content selection pattern - do fix if pattern found
4142 tSCC zSun_SignalSelect0[] =
4143 "^void\t\\(\\*signal\\(\\)\\)\\(\\);.*";
4145 #define SUN_SIGNAL_TEST_CT 1
4146 static tTestDesc aSun_SignalTests[] = {
4147 { TT_EGREP, zSun_SignalSelect0, (regex_t*)NULL }, };
4150 * Fix Command Arguments for Sun_Signal
4152 static const char* apzSun_SignalPatch[] = {
4154 "#ifdef __cplusplus\n\
4155 void\t(*signal(...))(...);\n\
4161 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4163 * Description of Sunos_Matherr_Decl fix
4165 tSCC zSunos_Matherr_DeclName[] =
4166 "sunos_matherr_decl";
4169 * File name selection pattern
4171 tSCC zSunos_Matherr_DeclList[] =
4174 * Machine/OS name selection pattern
4176 #define apzSunos_Matherr_DeclMachs (const char**)NULL
4179 * content selection pattern - do fix if pattern found
4181 tSCC zSunos_Matherr_DeclSelect0[] =
4185 * content bypass pattern - skip fix if pattern found
4187 tSCC zSunos_Matherr_DeclBypass0[] =
4188 "matherr.*(struct exception|__MATH_EXCEPTION)";
4190 #define SUNOS_MATHERR_DECL_TEST_CT 2
4191 static tTestDesc aSunos_Matherr_DeclTests[] = {
4192 { TT_NEGREP, zSunos_Matherr_DeclBypass0, (regex_t*)NULL },
4193 { TT_EGREP, zSunos_Matherr_DeclSelect0, (regex_t*)NULL }, };
4196 * Fix Command Arguments for Sunos_Matherr_Decl
4198 static const char* apzSunos_Matherr_DeclPatch[] = {
4200 "struct exception;\n",
4203 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4205 * Description of Sunos_Strlen fix
4207 tSCC zSunos_StrlenName[] =
4211 * File name selection pattern
4213 tSCC zSunos_StrlenList[] =
4216 * Machine/OS name selection pattern
4218 #define apzSunos_StrlenMachs (const char**)NULL
4221 * content selection pattern - do fix if pattern found
4223 tSCC zSunos_StrlenSelect0[] =
4224 "int[ \t]*strlen\\(\\);(.*)";
4226 #define SUNOS_STRLEN_TEST_CT 1
4227 static tTestDesc aSunos_StrlenTests[] = {
4228 { TT_EGREP, zSunos_StrlenSelect0, (regex_t*)NULL }, };
4231 * Fix Command Arguments for Sunos_Strlen
4233 static const char* apzSunos_StrlenPatch[] = {
4235 "__SIZE_TYPE__ strlen();%1",
4238 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4240 * Description of Svr4__P fix
4242 tSCC zSvr4__PName[] =
4246 * File name selection pattern
4248 tSCC zSvr4__PList[] =
4249 "|math.h|floatingpoint.h|";
4251 * Machine/OS name selection pattern
4253 #define apzSvr4__PMachs (const char**)NULL
4256 * content selection pattern - do fix if pattern found
4258 tSCC zSvr4__PSelect0[] =
4259 "^#define[ \t]+__P.*";
4261 #define SVR4__P_TEST_CT 1
4262 static tTestDesc aSvr4__PTests[] = {
4263 { TT_EGREP, zSvr4__PSelect0, (regex_t*)NULL }, };
4266 * Fix Command Arguments for Svr4__P
4268 static const char* apzSvr4__PPatch[] = {
4275 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4277 * Description of Svr4_Getcwd fix
4279 tSCC zSvr4_GetcwdName[] =
4283 * File name selection pattern
4285 tSCC zSvr4_GetcwdList[] =
4286 "|stdlib.h|unistd.h|prototypes.h|";
4288 * Machine/OS name selection pattern
4290 #define apzSvr4_GetcwdMachs (const char**)NULL
4293 * content selection pattern - do fix if pattern found
4295 tSCC zSvr4_GetcwdSelect0[] =
4296 "getcwd\\(char \\*, int\\)";
4298 #define SVR4_GETCWD_TEST_CT 1
4299 static tTestDesc aSvr4_GetcwdTests[] = {
4300 { TT_EGREP, zSvr4_GetcwdSelect0, (regex_t*)NULL }, };
4303 * Fix Command Arguments for Svr4_Getcwd
4305 static const char* apzSvr4_GetcwdPatch[] = {
4307 "getcwd(char *, size_t)",
4310 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4312 * Description of Svr4_Profil fix
4314 tSCC zSvr4_ProfilName[] =
4318 * File name selection pattern
4320 tSCC zSvr4_ProfilList[] =
4321 "|stdlib.h|unistd.h|";
4323 * Machine/OS name selection pattern
4325 #define apzSvr4_ProfilMachs (const char**)NULL
4328 * content selection pattern - do fix if pattern found
4330 tSCC zSvr4_ProfilSelect0[] =
4331 "profil\\(unsigned short \\*, unsigned int, unsigned int, unsigned int\\)";
4333 #define SVR4_PROFIL_TEST_CT 1
4334 static tTestDesc aSvr4_ProfilTests[] = {
4335 { TT_EGREP, zSvr4_ProfilSelect0, (regex_t*)NULL }, };
4338 * Fix Command Arguments for Svr4_Profil
4340 static const char* apzSvr4_ProfilPatch[] = {
4342 "profil(unsigned short *, size_t, int, unsigned int)",
4345 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4347 * Description of Sysv68_String fix
4349 tSCC zSysv68_StringName[] =
4353 * File name selection pattern
4355 tSCC zSysv68_StringList[] =
4356 "|testing.h|string.h|";
4358 * Machine/OS name selection pattern
4360 #define apzSysv68_StringMachs (const char**)NULL
4361 #define SYSV68_STRING_TEST_CT 0
4362 #define aSysv68_StringTests (tTestDesc*)NULL
4365 * Fix Command Arguments for Sysv68_String
4367 static const char* apzSysv68_StringPatch[] = { "sed",
4368 "-e", "s/extern[ \t]*int[ \t]*strlen();/extern unsigned int strlen();/",
4369 "-e", "s/extern[ \t]*int[ \t]*ffs[ \t]*(long);/extern int ffs(int);/",
4370 "-e", "s/strdup(char \\*s1);/strdup(const char *s1);/",
4371 "-e", "/^extern char$/N",
4372 "-e", "s/^extern char\\(\\n\t\\*memccpy(),\\)$/extern void\\1/",
4373 "-e", "/^extern int$/N",
4374 "-e", "s/^extern int\\(\\n\tstrlen(),\\)/extern size_t\\1/",
4375 "-e", "/^\tstrncmp(),$/N",
4376 "-e", "s/^\\(\tstrncmp()\\),\\n\\(\tstrlen(),\\)$/\\1;\\\n\
4377 extern unsigned int\\\n\
4381 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4383 * Description of Sysz_Stdlib_For_Sun fix
4385 tSCC zSysz_Stdlib_For_SunName[] =
4386 "sysz_stdlib_for_sun";
4389 * File name selection pattern
4391 tSCC zSysz_Stdlib_For_SunList[] =
4394 * Machine/OS name selection pattern
4396 #define apzSysz_Stdlib_For_SunMachs (const char**)NULL
4399 * content selection pattern - do fix if pattern found
4401 tSCC zSysz_Stdlib_For_SunSelect0[] =
4402 "char[ \t]*\\*[ \t]*(calloc|malloc|realloc|bsearch)[ \t]*\\(";
4404 #define SYSZ_STDLIB_FOR_SUN_TEST_CT 1
4405 static tTestDesc aSysz_Stdlib_For_SunTests[] = {
4406 { TT_EGREP, zSysz_Stdlib_For_SunSelect0, (regex_t*)NULL }, };
4409 * Fix Command Arguments for Sysz_Stdlib_For_Sun
4411 static const char* apzSysz_Stdlib_For_SunPatch[] = {
4416 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4418 * Description of Tinfo_Cplusplus fix
4420 tSCC zTinfo_CplusplusName[] =
4424 * File name selection pattern
4426 tSCC zTinfo_CplusplusList[] =
4429 * Machine/OS name selection pattern
4431 #define apzTinfo_CplusplusMachs (const char**)NULL
4434 * content selection pattern - do fix if pattern found
4436 tSCC zTinfo_CplusplusSelect0[] =
4439 #define TINFO_CPLUSPLUS_TEST_CT 1
4440 static tTestDesc aTinfo_CplusplusTests[] = {
4441 { TT_EGREP, zTinfo_CplusplusSelect0, (regex_t*)NULL }, };
4444 * Fix Command Arguments for Tinfo_Cplusplus
4446 static const char* apzTinfo_CplusplusPatch[] = {
4451 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4453 * Description of Ultrix_Atexit_Param fix
4455 tSCC zUltrix_Atexit_ParamName[] =
4456 "ultrix_atexit_param";
4459 * File name selection pattern
4461 tSCC zUltrix_Atexit_ParamList[] =
4464 * Machine/OS name selection pattern
4466 #define apzUltrix_Atexit_ParamMachs (const char**)NULL
4469 * content selection pattern - do fix if pattern found
4471 tSCC zUltrix_Atexit_ParamSelect0[] =
4472 "atexit\\(.*\\(\\)";
4474 #define ULTRIX_ATEXIT_PARAM_TEST_CT 1
4475 static tTestDesc aUltrix_Atexit_ParamTests[] = {
4476 { TT_EGREP, zUltrix_Atexit_ParamSelect0, (regex_t*)NULL }, };
4479 * Fix Command Arguments for Ultrix_Atexit_Param
4481 static const char* apzUltrix_Atexit_ParamPatch[] = {
4483 "atexit( void (*__func)( void )",
4486 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4488 * Description of Ultrix_Atof_Param fix
4490 tSCC zUltrix_Atof_ParamName[] =
4491 "ultrix_atof_param";
4494 * File name selection pattern
4496 tSCC zUltrix_Atof_ParamList[] =
4499 * Machine/OS name selection pattern
4501 #define apzUltrix_Atof_ParamMachs (const char**)NULL
4504 * content selection pattern - do fix if pattern found
4506 tSCC zUltrix_Atof_ParamSelect0[] =
4507 "atof\\([ \t]*char";
4509 #define ULTRIX_ATOF_PARAM_TEST_CT 1
4510 static tTestDesc aUltrix_Atof_ParamTests[] = {
4511 { TT_EGREP, zUltrix_Atof_ParamSelect0, (regex_t*)NULL }, };
4514 * Fix Command Arguments for Ultrix_Atof_Param
4516 static const char* apzUltrix_Atof_ParamPatch[] = {
4521 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4523 * Description of Ultrix_Const fix
4525 tSCC zUltrix_ConstName[] =
4529 * File name selection pattern
4531 tSCC zUltrix_ConstList[] =
4534 * Machine/OS name selection pattern
4536 #define apzUltrix_ConstMachs (const char**)NULL
4539 * content selection pattern - do fix if pattern found
4541 tSCC zUltrix_ConstSelect0[] =
4542 "perror\\( char \\*";
4544 #define ULTRIX_CONST_TEST_CT 1
4545 static tTestDesc aUltrix_ConstTests[] = {
4546 { TT_EGREP, zUltrix_ConstSelect0, (regex_t*)NULL }, };
4549 * Fix Command Arguments for Ultrix_Const
4551 static const char* apzUltrix_ConstPatch[] = {
4554 "([ \t*](perror|fputs|fwrite|scanf|fscanf)\\(.*)[ \t]+(char|void) \\*__",
4557 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4559 * Description of Ultrix_Const2 fix
4561 tSCC zUltrix_Const2Name[] =
4565 * File name selection pattern
4567 tSCC zUltrix_Const2List[] =
4570 * Machine/OS name selection pattern
4572 #define apzUltrix_Const2Machs (const char**)NULL
4575 * content selection pattern - do fix if pattern found
4577 tSCC zUltrix_Const2Select0[] =
4578 "\\*fopen\\( char \\*";
4580 #define ULTRIX_CONST2_TEST_CT 1
4581 static tTestDesc aUltrix_Const2Tests[] = {
4582 { TT_EGREP, zUltrix_Const2Select0, (regex_t*)NULL }, };
4585 * Fix Command Arguments for Ultrix_Const2
4587 static const char* apzUltrix_Const2Patch[] = {
4589 "%1( const char *%3, const char *",
4590 "([ \t*](fopen|sscanf|popen|tempnam))\\([ \t]*char[ \t]*\\*([^,]*),[ \t]*char[ \t]*\\*[ \t]*",
4593 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4595 * Description of Ultrix_Fix_Fixproto fix
4597 tSCC zUltrix_Fix_FixprotoName[] =
4598 "ultrix_fix_fixproto";
4601 * File name selection pattern
4603 tSCC zUltrix_Fix_FixprotoList[] =
4606 * Machine/OS name selection pattern
4608 #define apzUltrix_Fix_FixprotoMachs (const char**)NULL
4611 * content selection pattern - do fix if pattern found
4613 tSCC zUltrix_Fix_FixprotoSelect0[] =
4616 #define ULTRIX_FIX_FIXPROTO_TEST_CT 1
4617 static tTestDesc aUltrix_Fix_FixprotoTests[] = {
4618 { TT_EGREP, zUltrix_Fix_FixprotoSelect0, (regex_t*)NULL }, };
4621 * Fix Command Arguments for Ultrix_Fix_Fixproto
4623 static const char* apzUltrix_Fix_FixprotoPatch[] = {
4627 "^[ \t]*extern[ \t]*int[ \t]*uname\\(\\);",
4630 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4632 * Description of Ultrix_Ifdef fix
4634 tSCC zUltrix_IfdefName[] =
4638 * File name selection pattern
4640 tSCC zUltrix_IfdefList[] =
4643 * Machine/OS name selection pattern
4645 #define apzUltrix_IfdefMachs (const char**)NULL
4648 * content selection pattern - do fix if pattern found
4650 tSCC zUltrix_IfdefSelect0[] =
4651 "^#ifdef KERNEL[ \t]+&&";
4653 #define ULTRIX_IFDEF_TEST_CT 1
4654 static tTestDesc aUltrix_IfdefTests[] = {
4655 { TT_EGREP, zUltrix_IfdefSelect0, (regex_t*)NULL }, };
4658 * Fix Command Arguments for Ultrix_Ifdef
4660 static const char* apzUltrix_IfdefPatch[] = {
4662 "#if defined(KERNEL) &&",
4665 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4667 * Description of Ultrix_Math_Ifdef fix
4669 tSCC zUltrix_Math_IfdefName[] =
4670 "ultrix_math_ifdef";
4673 * File name selection pattern
4675 tSCC zUltrix_Math_IfdefList[] =
4676 "|sys/limits.h|float.h|math.h|";
4678 * Machine/OS name selection pattern
4680 #define apzUltrix_Math_IfdefMachs (const char**)NULL
4683 * content selection pattern - do fix if pattern found
4685 tSCC zUltrix_Math_IfdefSelect0[] =
4686 "^(#if.*)\\|\\|[ \t]+CC\\$[a-z]+";
4688 #define ULTRIX_MATH_IFDEF_TEST_CT 1
4689 static tTestDesc aUltrix_Math_IfdefTests[] = {
4690 { TT_EGREP, zUltrix_Math_IfdefSelect0, (regex_t*)NULL }, };
4693 * Fix Command Arguments for Ultrix_Math_Ifdef
4695 static const char* apzUltrix_Math_IfdefPatch[] = {
4700 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4702 * Description of Ultrix_Nested_Ioctl fix
4704 tSCC zUltrix_Nested_IoctlName[] =
4705 "ultrix_nested_ioctl";
4708 * File name selection pattern
4710 tSCC zUltrix_Nested_IoctlList[] =
4713 * Machine/OS name selection pattern
4715 #define apzUltrix_Nested_IoctlMachs (const char**)NULL
4718 * content selection pattern - do fix if pattern found
4720 tSCC zUltrix_Nested_IoctlSelect0[] =
4721 "^/\\* #define SIOCSCREEN";
4723 #define ULTRIX_NESTED_IOCTL_TEST_CT 1
4724 static tTestDesc aUltrix_Nested_IoctlTests[] = {
4725 { TT_EGREP, zUltrix_Nested_IoctlSelect0, (regex_t*)NULL }, };
4728 * Fix Command Arguments for Ultrix_Nested_Ioctl
4730 static const char* apzUltrix_Nested_IoctlPatch[] = { "sed",
4731 "-e", "/^\\/\\* #define SIOCSCREEN/s@/\\* screend@*//* screend@",
4734 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4736 * Description of Ultrix_Nested_Svc fix
4738 tSCC zUltrix_Nested_SvcName[] =
4739 "ultrix_nested_svc";
4742 * File name selection pattern
4744 tSCC zUltrix_Nested_SvcList[] =
4747 * Machine/OS name selection pattern
4749 #define apzUltrix_Nested_SvcMachs (const char**)NULL
4752 * content selection pattern - do fix if pattern found
4754 tSCC zUltrix_Nested_SvcSelect0[] =
4755 "^ \\*[ \t]*int protocol; */\\*";
4757 #define ULTRIX_NESTED_SVC_TEST_CT 1
4758 static tTestDesc aUltrix_Nested_SvcTests[] = {
4759 { TT_EGREP, zUltrix_Nested_SvcSelect0, (regex_t*)NULL }, };
4762 * Fix Command Arguments for Ultrix_Nested_Svc
4764 static const char* apzUltrix_Nested_SvcPatch[] = { "sed",
4765 "-e", "s@^\\( \\*\tint protocol; \\)/\\*@\\1*/ /*@",
4768 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4770 * Description of Ultrix_Stat fix
4772 tSCC zUltrix_StatName[] =
4776 * File name selection pattern
4778 tSCC zUltrix_StatList[] =
4781 * Machine/OS name selection pattern
4783 #define apzUltrix_StatMachs (const char**)NULL
4786 * content selection pattern - do fix if pattern found
4788 tSCC zUltrix_StatSelect0[] =
4789 "@\\(#\\)stat\\.h.*6\\.1.*\\(ULTRIX\\)";
4791 #define ULTRIX_STAT_TEST_CT 1
4792 static tTestDesc aUltrix_StatTests[] = {
4793 { TT_EGREP, zUltrix_StatSelect0, (regex_t*)NULL }, };
4796 * Fix Command Arguments for Ultrix_Stat
4798 static const char* apzUltrix_StatPatch[] = { "sed",
4799 "-e", "/^#define[ \t]S_IFPORT[ \t]*S_IFIFO$/a\\\n\
4801 /* macro to test for symbolic link */\\\n\
4802 #define S_ISLNK(mode) (((mode) & S_IFMT) == S_IFLNK)\\\n\n",
4803 "-e", "/^[ \t]*fstat(),$/a\\\n\
4807 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4809 * Description of Ultrix_Static fix
4811 tSCC zUltrix_StaticName[] =
4815 * File name selection pattern
4817 tSCC zUltrix_StaticList[] =
4820 * Machine/OS name selection pattern
4822 #define apzUltrix_StaticMachs (const char**)NULL
4825 * content selection pattern - do fix if pattern found
4827 tSCC zUltrix_StaticSelect0[] =
4828 "#include \"r[34]_cpu";
4830 #define ULTRIX_STATIC_TEST_CT 1
4831 static tTestDesc aUltrix_StaticTests[] = {
4832 { TT_EGREP, zUltrix_StaticSelect0, (regex_t*)NULL }, };
4835 * Fix Command Arguments for Ultrix_Static
4837 static const char* apzUltrix_StaticPatch[] = { "sed",
4838 "-e", "s/^static struct tlb_pid_state/struct tlb_pid_state/",
4839 "-e", "s/^#include \"r3_cpu\\.h\"$/#include <machine\\/r3_cpu\\.h>/",
4840 "-e", "s/^#include \"r4_cpu\\.h\"$/#include <machine\\/r4_cpu\\.h>/",
4843 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4845 * Description of Ultrix_Strings fix
4847 tSCC zUltrix_StringsName[] =
4851 * File name selection pattern
4853 tSCC zUltrix_StringsList[] =
4856 * Machine/OS name selection pattern
4858 #define apzUltrix_StringsMachs (const char**)NULL
4861 * content selection pattern - do fix if pattern found
4863 tSCC zUltrix_StringsSelect0[] =
4864 "@\\(#\\)strings\\.h.*6\\.1.*\\(ULTRIX\\)";
4866 #define ULTRIX_STRINGS_TEST_CT 1
4867 static tTestDesc aUltrix_StringsTests[] = {
4868 { TT_EGREP, zUltrix_StringsSelect0, (regex_t*)NULL }, };
4871 * Fix Command Arguments for Ultrix_Strings
4873 static const char* apzUltrix_StringsPatch[] = {
4877 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4879 * Description of Undefine_Null fix
4881 tSCC zUndefine_NullName[] =
4885 * File name selection pattern
4887 #define zUndefine_NullList (char*)NULL
4889 * Machine/OS name selection pattern
4891 #define apzUndefine_NullMachs (const char**)NULL
4894 * content selection pattern - do fix if pattern found
4896 tSCC zUndefine_NullSelect0[] =
4897 "^#[ \t]*define[ \t]+NULL[ \t]";
4900 * content bypass pattern - skip fix if pattern found
4902 tSCC zUndefine_NullBypass0[] =
4903 "#[ \t]*(ifn|un)def[ \t]+NULL($|[ \t\r])";
4905 #define UNDEFINE_NULL_TEST_CT 2
4906 static tTestDesc aUndefine_NullTests[] = {
4907 { TT_NEGREP, zUndefine_NullBypass0, (regex_t*)NULL },
4908 { TT_EGREP, zUndefine_NullSelect0, (regex_t*)NULL }, };
4911 * Fix Command Arguments for Undefine_Null
4913 static const char* apzUndefine_NullPatch[] = {
4918 "^#[ \t]*define[ \t]*[ \t]NULL([^\r\n\
4922 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4924 * Description of Unicosmk_Restrict fix
4926 tSCC zUnicosmk_RestrictName[] =
4927 "unicosmk_restrict";
4930 * File name selection pattern
4932 tSCC zUnicosmk_RestrictList[] =
4933 "|stdio.h|stdlib.h|wchar.h|";
4935 * Machine/OS name selection pattern
4937 tSCC* apzUnicosmk_RestrictMachs[] = {
4939 (const char*)NULL };
4942 * content selection pattern - do fix if pattern found
4944 tSCC zUnicosmk_RestrictSelect0[] =
4945 "(\\*[ \t]*)restrict([ \t]+)";
4947 #define UNICOSMK_RESTRICT_TEST_CT 1
4948 static tTestDesc aUnicosmk_RestrictTests[] = {
4949 { TT_EGREP, zUnicosmk_RestrictSelect0, (regex_t*)NULL }, };
4952 * Fix Command Arguments for Unicosmk_Restrict
4954 static const char* apzUnicosmk_RestrictPatch[] = {
4959 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4961 * Description of Uw7_Byteorder_Fix fix
4963 tSCC zUw7_Byteorder_FixName[] =
4964 "uw7_byteorder_fix";
4967 * File name selection pattern
4969 tSCC zUw7_Byteorder_FixList[] =
4972 * Machine/OS name selection pattern
4974 tSCC* apzUw7_Byteorder_FixMachs[] = {
4978 "i?86-*-solaris2.[0-4]",
4979 "powerpcle-*-solaris2.[0-4]",
4980 "sparc-*-solaris2.[0-4]",
4981 (const char*)NULL };
4984 * content selection pattern - do fix if pattern found
4986 tSCC zUw7_Byteorder_FixSelect0[] =
4990 * perform the 'test' shell command - do fix on success
4992 tSCC zUw7_Byteorder_FixTest0[] =
4993 "-f sys/byteorder.h";
4995 #define UW7_BYTEORDER_FIX_TEST_CT 2
4996 static tTestDesc aUw7_Byteorder_FixTests[] = {
4997 { TT_TEST, zUw7_Byteorder_FixTest0, 0 /* unused */ },
4998 { TT_EGREP, zUw7_Byteorder_FixSelect0, (regex_t*)NULL }, };
5001 * Fix Command Arguments for Uw7_Byteorder_Fix
5003 static const char* apzUw7_Byteorder_FixPatch[] = {
5006 "^extern.*[ \t](htons|ntohs).*\\(in_port_t\\).*;",
5009 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5011 * Description of Va_I960_Macro fix
5013 tSCC zVa_I960_MacroName[] =
5017 * File name selection pattern
5019 tSCC zVa_I960_MacroList[] =
5020 "|arch/i960/archI960.h|";
5022 * Machine/OS name selection pattern
5024 #define apzVa_I960_MacroMachs (const char**)NULL
5027 * content selection pattern - do fix if pattern found
5029 tSCC zVa_I960_MacroSelect0[] =
5030 "__(vsiz|vali|vpad|alignof__)";
5032 #define VA_I960_MACRO_TEST_CT 1
5033 static tTestDesc aVa_I960_MacroTests[] = {
5034 { TT_EGREP, zVa_I960_MacroSelect0, (regex_t*)NULL }, };
5037 * Fix Command Arguments for Va_I960_Macro
5039 static const char* apzVa_I960_MacroPatch[] = {
5044 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5046 * Description of Void_Null fix
5048 tSCC zVoid_NullName[] =
5052 * File name selection pattern
5054 tSCC zVoid_NullList[] =
5055 "|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|";
5057 * Machine/OS name selection pattern
5059 #define apzVoid_NullMachs (const char**)NULL
5062 * content selection pattern - do fix if pattern found
5064 tSCC zVoid_NullSelect0[] =
5065 "^#[ \t]*define[ \t]+NULL[ \t]+\\(\\(void[ \t]*\\*\\)0\\)";
5067 #define VOID_NULL_TEST_CT 1
5068 static tTestDesc aVoid_NullTests[] = {
5069 { TT_EGREP, zVoid_NullSelect0, (regex_t*)NULL }, };
5072 * Fix Command Arguments for Void_Null
5074 static const char* apzVoid_NullPatch[] = {
5079 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5081 * Description of Vxworks_Gcc_Problem fix
5083 tSCC zVxworks_Gcc_ProblemName[] =
5084 "vxworks_gcc_problem";
5087 * File name selection pattern
5089 tSCC zVxworks_Gcc_ProblemList[] =
5090 "|types/vxTypesBase.h|";
5092 * Machine/OS name selection pattern
5094 #define apzVxworks_Gcc_ProblemMachs (const char**)NULL
5097 * content selection pattern - do fix if pattern found
5099 tSCC zVxworks_Gcc_ProblemSelect0[] =
5100 "__GNUC_TYPEOF_FEATURE_BROKEN_USE_DEFAULT_UNTIL_FIXED__";
5102 #define VXWORKS_GCC_PROBLEM_TEST_CT 1
5103 static tTestDesc aVxworks_Gcc_ProblemTests[] = {
5104 { TT_EGREP, zVxworks_Gcc_ProblemSelect0, (regex_t*)NULL }, };
5107 * Fix Command Arguments for Vxworks_Gcc_Problem
5109 static const char* apzVxworks_Gcc_ProblemPatch[] = { "sed",
5110 "-e", "s/#ifdef __GNUC_TYPEOF_FEATURE_BROKEN_USE_DEFAULT_UNTIL_FIXED__/#if 1/",
5111 "-e", "/[ \t]size_t/i\\\n\
5112 #ifndef _GCC_SIZE_T\\\n\
5113 #define _GCC_SIZE_T\n",
5114 "-e", "/[ \t]size_t/a\\\n\
5116 "-e", "/[ \t]ptrdiff_t/i\\\n\
5117 #ifndef _GCC_PTRDIFF_T\\\n\
5118 #define _GCC_PTRDIFF_T\n",
5119 "-e", "/[ \t]ptrdiff_t/a\\\n\
5121 "-e", "/[ \t]wchar_t/i\\\n\
5122 #ifndef _GCC_WCHAR_T\\\n\
5123 #define _GCC_WCHAR_T\n",
5124 "-e", "/[ \t]wchar_t/a\\\n\
5128 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5130 * Description of Vxworks_Needs_Vxtypes fix
5132 tSCC zVxworks_Needs_VxtypesName[] =
5133 "vxworks_needs_vxtypes";
5136 * File name selection pattern
5138 tSCC zVxworks_Needs_VxtypesList[] =
5141 * Machine/OS name selection pattern
5143 #define apzVxworks_Needs_VxtypesMachs (const char**)NULL
5146 * content selection pattern - do fix if pattern found
5148 tSCC zVxworks_Needs_VxtypesSelect0[] =
5149 "uint_t([ \t]+_clocks_per_sec)";
5151 #define VXWORKS_NEEDS_VXTYPES_TEST_CT 1
5152 static tTestDesc aVxworks_Needs_VxtypesTests[] = {
5153 { TT_EGREP, zVxworks_Needs_VxtypesSelect0, (regex_t*)NULL }, };
5156 * Fix Command Arguments for Vxworks_Needs_Vxtypes
5158 static const char* apzVxworks_Needs_VxtypesPatch[] = {
5163 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5165 * Description of Vxworks_Needs_Vxworks fix
5167 tSCC zVxworks_Needs_VxworksName[] =
5168 "vxworks_needs_vxworks";
5171 * File name selection pattern
5173 tSCC zVxworks_Needs_VxworksList[] =
5176 * Machine/OS name selection pattern
5178 #define apzVxworks_Needs_VxworksMachs (const char**)NULL
5181 * content selection pattern - do fix if pattern found
5183 tSCC zVxworks_Needs_VxworksSelect0[] =
5184 "#[ \t]define[ \t]+__INCstath";
5187 * perform the 'test' shell command - do fix on success
5189 tSCC zVxworks_Needs_VxworksTest0[] =
5190 " -r types/vxTypesOld.h";
5191 tSCC zVxworks_Needs_VxworksTest1[] =
5192 " -n \"`egrep '#include' $file`\"";
5193 tSCC zVxworks_Needs_VxworksTest2[] =
5194 " -n \"`egrep ULONG $file`\"";
5196 #define VXWORKS_NEEDS_VXWORKS_TEST_CT 4
5197 static tTestDesc aVxworks_Needs_VxworksTests[] = {
5198 { TT_TEST, zVxworks_Needs_VxworksTest0, 0 /* unused */ },
5199 { TT_TEST, zVxworks_Needs_VxworksTest1, 0 /* unused */ },
5200 { TT_TEST, zVxworks_Needs_VxworksTest2, 0 /* unused */ },
5201 { TT_EGREP, zVxworks_Needs_VxworksSelect0, (regex_t*)NULL }, };
5204 * Fix Command Arguments for Vxworks_Needs_Vxworks
5206 static const char* apzVxworks_Needs_VxworksPatch[] = { "sed",
5207 "-e", "/#[ \t]define[ \t][ \t]*__INCstath/a\\\n\
5208 #include <types/vxTypesOld.h>\n",
5211 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5213 * Description of Vxworks_Time fix
5215 tSCC zVxworks_TimeName[] =
5219 * File name selection pattern
5221 tSCC zVxworks_TimeList[] =
5224 * Machine/OS name selection pattern
5226 #define apzVxworks_TimeMachs (const char**)NULL
5229 * content selection pattern - do fix if pattern found
5231 tSCC zVxworks_TimeSelect0[] =
5232 "#[ \t]*define[ \t]+VOIDFUNCPTR[ \t].*";
5235 * perform the 'test' shell command - do fix on success
5237 tSCC zVxworks_TimeTest0[] =
5240 #define VXWORKS_TIME_TEST_CT 2
5241 static tTestDesc aVxworks_TimeTests[] = {
5242 { TT_TEST, zVxworks_TimeTest0, 0 /* unused */ },
5243 { TT_EGREP, zVxworks_TimeSelect0, (regex_t*)NULL }, };
5246 * Fix Command Arguments for Vxworks_Time
5248 static const char* apzVxworks_TimePatch[] = {
5250 "#ifndef __gcc_VOIDFUNCPTR_defined\n\
5251 #ifdef __cplusplus\n\
5252 typedef void (*__gcc_VOIDFUNCPTR) (...);\n\
5254 typedef void (*__gcc_VOIDFUNCPTR) ();\n\
5256 #define __gcc_VOIDFUNCPTR_defined\n\
5258 #define VOIDFUNCPTR __gcc_VOIDFUNCPTR",
5261 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5263 * Description of X11_Class fix
5265 tSCC zX11_ClassName[] =
5269 * File name selection pattern
5271 tSCC zX11_ClassList[] =
5274 * Machine/OS name selection pattern
5276 #define apzX11_ClassMachs (const char**)NULL
5279 * content selection pattern - do fix if pattern found
5281 tSCC zX11_ClassSelect0[] =
5282 "^([ \t]*char \\*)class;(.*)";
5285 * content bypass pattern - skip fix if pattern found
5287 tSCC zX11_ClassBypass0[] =
5290 #define X11_CLASS_TEST_CT 2
5291 static tTestDesc aX11_ClassTests[] = {
5292 { TT_NEGREP, zX11_ClassBypass0, (regex_t*)NULL },
5293 { TT_EGREP, zX11_ClassSelect0, (regex_t*)NULL }, };
5296 * Fix Command Arguments for X11_Class
5298 static const char* apzX11_ClassPatch[] = {
5300 "#ifdef __cplusplus\n\
5307 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5309 * Description of X11_Class_Usage fix
5311 tSCC zX11_Class_UsageName[] =
5315 * File name selection pattern
5317 tSCC zX11_Class_UsageList[] =
5318 "|Xm/BaseClassI.h|";
5320 * Machine/OS name selection pattern
5322 #define apzX11_Class_UsageMachs (const char**)NULL
5325 * content selection pattern - do fix if pattern found
5327 tSCC zX11_Class_UsageSelect0[] =
5331 * content bypass pattern - skip fix if pattern found
5333 tSCC zX11_Class_UsageBypass0[] =
5336 #define X11_CLASS_USAGE_TEST_CT 2
5337 static tTestDesc aX11_Class_UsageTests[] = {
5338 { TT_NEGREP, zX11_Class_UsageBypass0, (regex_t*)NULL },
5339 { TT_EGREP, zX11_Class_UsageSelect0, (regex_t*)NULL }, };
5342 * Fix Command Arguments for X11_Class_Usage
5344 static const char* apzX11_Class_UsagePatch[] = {
5349 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5351 * Description of X11_New fix
5353 tSCC zX11_NewName[] =
5357 * File name selection pattern
5359 tSCC zX11_NewList[] =
5362 * Machine/OS name selection pattern
5364 #define apzX11_NewMachs (const char**)NULL
5367 * content bypass pattern - skip fix if pattern found
5369 tSCC zX11_NewBypass0[] =
5372 #define X11_NEW_TEST_CT 1
5373 static tTestDesc aX11_NewTests[] = {
5374 { TT_NEGREP, zX11_NewBypass0, (regex_t*)NULL }, };
5377 * Fix Command Arguments for X11_New
5379 static const char* apzX11_NewPatch[] = { "sed",
5380 "-e", "/Widget\told, new;/i\\\n\
5381 #ifdef __cplusplus\\\n\
5382 \tWidget\told, c_new;\\\n\
5384 "-e", "/Widget\told, new;/a\\\n\
5386 "-e", "s/Widget new,/Widget c_new,/g",
5389 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5391 * Description of X11_Sprintf fix
5393 tSCC zX11_SprintfName[] =
5397 * File name selection pattern
5399 tSCC zX11_SprintfList[] =
5400 "|X11/Xmu.h|X11/Xmu/Xmu.h|";
5402 * Machine/OS name selection pattern
5404 #define apzX11_SprintfMachs (const char**)NULL
5407 * content selection pattern - do fix if pattern found
5409 tSCC zX11_SprintfSelect0[] =
5410 "^extern char \\*\tsprintf\\(\\);$";
5412 #define X11_SPRINTF_TEST_CT 1
5413 static tTestDesc aX11_SprintfTests[] = {
5414 { TT_EGREP, zX11_SprintfSelect0, (regex_t*)NULL }, };
5417 * Fix Command Arguments for X11_Sprintf
5419 static const char* apzX11_SprintfPatch[] = {
5421 "#ifndef __STDC__\n\
5423 #endif /* !defined __STDC__ */",
5427 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5431 #define REGEX_COUNT 146
5432 #define MACH_LIST_SIZE_LIMIT 279
5433 #define FIX_COUNT 138
5436 * Enumerate the fixes
5439 AAB_DGUX_INT_VARARGS_FIXIDX,
5440 AAB_FD_ZERO_ASM_POSIX_TYPES_H_FIXIDX,
5441 AAB_FD_ZERO_GNU_TYPES_H_FIXIDX,
5442 AAB_FD_ZERO_SELECTBITS_H_FIXIDX,
5443 AAB_SUN_MEMCPY_FIXIDX,
5444 AAB_SVR4_REPLACE_BYTEORDER_FIXIDX,
5445 AAB_ULTRIX_ANSI_COMPAT_FIXIDX,
5446 AAB_ULTRIX_LIMITS_FIXIDX,
5447 AAB_ULTRIX_MEMORY_FIXIDX,
5448 AAB_ULTRIX_STRING_FIXIDX,
5450 AIX_SYSMACHINE_FIXIDX,
5452 AIX_VOLATILE_FIXIDX,
5453 ALPHA___ASSERT_FIXIDX,
5454 ALPHA_GETOPT_FIXIDX,
5455 ALPHA_PARENS_FIXIDX,
5457 ARM_NORCROFT_HINT_FIXIDX,
5460 AVOID_BOOL_DEFINE_FIXIDX,
5461 AVOID_BOOL_TYPE_FIXIDX,
5462 AVOID_WCHAR_T_TYPE_FIXIDX,
5464 BAD_STRUCT_TERM_FIXIDX,
5466 BROKEN_ASSERT_STDIO_FIXIDX,
5467 BROKEN_ASSERT_STDLIB_FIXIDX,
5469 CTRL_QUOTES_DEF_FIXIDX,
5470 CTRL_QUOTES_USE_FIXIDX,
5472 DEC_INTERN_ASM_FIXIDX,
5473 DJGPP_WCHAR_H_FIXIDX,
5475 FIX_HEADER_BREAKAGE_FIXIDX,
5476 FREEBSD_GCC3_BREAKAGE_FIXIDX,
5480 HPUX10_CPP_POW_INLINE_FIXIDX,
5481 HPUX11_CPP_POW_INLINE_FIXIDX,
5482 HPUX11_FABSF_FIXIDX,
5483 HPUX11_SIZE_T_FIXIDX,
5484 HPUX11_UINT32_C_FIXIDX,
5485 HPUX11_VSNPRINTF_FIXIDX,
5486 HPUX8_BOGUS_INLINES_FIXIDX,
5488 HPUX_SYSTIME_FIXIDX,
5489 INT_ABORT_FREE_AND_EXIT_FIXIDX,
5490 IO_QUOTES_DEF_FIXIDX,
5491 IO_QUOTES_USE_FIXIDX,
5492 IP_MISSING_SEMI_FIXIDX,
5493 IRIX_ASM_APOSTROPHE_FIXIDX,
5494 IRIX_LIMITS_CONST_FIXIDX,
5495 IRIX_STDIO_VA_LIST_FIXIDX,
5497 ISC_OMITS_WITH_STDC_FIXIDX,
5498 KANDR_CONCAT_FIXIDX,
5499 LIBC1_IFDEFD_MEMX_FIXIDX,
5500 LIMITS_IFNDEFS_FIXIDX,
5501 LYNX_VOID_INT_FIXIDX,
5502 LYNXOS_FCNTL_PROTO_FIXIDX,
5503 M88K_BAD_HYPOT_OPT_FIXIDX,
5504 M88K_BAD_S_IF_FIXIDX,
5505 M88K_MULTI_INCL_FIXIDX,
5506 MACHINE_ANSI_H_VA_LIST_FIXIDX,
5507 MACHINE_NAME_FIXIDX,
5508 MATH_EXCEPTION_FIXIDX,
5509 MATH_HUGE_VAL_FROM_DBL_MAX_FIXIDX,
5510 MATH_HUGE_VAL_IFNDEF_FIXIDX,
5511 NESTED_AUTH_DES_FIXIDX,
5512 NESTED_MOTOROLA_FIXIDX,
5513 NESTED_SYS_LIMITS_FIXIDX,
5514 NEWS_OS_RECURSION_FIXIDX,
5515 NEXT_MATH_PREFIX_FIXIDX,
5516 NEXT_TEMPLATE_FIXIDX,
5517 NEXT_VOLITILE_FIXIDX,
5518 NEXT_WAIT_UNION_FIXIDX,
5519 NODEENT_SYNTAX_FIXIDX,
5520 OSF_NAMESPACE_A_FIXIDX,
5521 OSF_NAMESPACE_C_FIXIDX,
5522 PTHREAD_PAGE_SIZE_FIXIDX,
5523 READ_RET_TYPE_FIXIDX,
5524 RS6000_DOUBLE_FIXIDX,
5525 RS6000_FCHMOD_FIXIDX,
5526 RS6000_PARAM_FIXIDX,
5527 SCO_STATIC_FUNC_FIXIDX,
5529 SOLARIS_MUTEX_INIT_FIXIDX,
5531 STDIO_STDARG_H_FIXIDX,
5532 STDIO_VA_LIST_FIXIDX,
5533 STRICT_ANSI_NOT_FIXIDX,
5534 STRICT_ANSI_NOT_CTD_FIXIDX,
5535 STRICT_ANSI_ONLY_FIXIDX,
5537 STRUCT_SOCKADDR_FIXIDX,
5538 SUN_AUTH_PROTO_FIXIDX,
5539 SUN_BOGUS_IFDEF_FIXIDX,
5540 SUN_CATMACRO_FIXIDX,
5542 SUN_RUSERS_SEMI_FIXIDX,
5544 SUNOS_MATHERR_DECL_FIXIDX,
5545 SUNOS_STRLEN_FIXIDX,
5549 SYSV68_STRING_FIXIDX,
5550 SYSZ_STDLIB_FOR_SUN_FIXIDX,
5551 TINFO_CPLUSPLUS_FIXIDX,
5552 ULTRIX_ATEXIT_PARAM_FIXIDX,
5553 ULTRIX_ATOF_PARAM_FIXIDX,
5554 ULTRIX_CONST_FIXIDX,
5555 ULTRIX_CONST2_FIXIDX,
5556 ULTRIX_FIX_FIXPROTO_FIXIDX,
5557 ULTRIX_IFDEF_FIXIDX,
5558 ULTRIX_MATH_IFDEF_FIXIDX,
5559 ULTRIX_NESTED_IOCTL_FIXIDX,
5560 ULTRIX_NESTED_SVC_FIXIDX,
5562 ULTRIX_STATIC_FIXIDX,
5563 ULTRIX_STRINGS_FIXIDX,
5564 UNDEFINE_NULL_FIXIDX,
5565 UNICOSMK_RESTRICT_FIXIDX,
5566 UW7_BYTEORDER_FIX_FIXIDX,
5567 VA_I960_MACRO_FIXIDX,
5569 VXWORKS_GCC_PROBLEM_FIXIDX,
5570 VXWORKS_NEEDS_VXTYPES_FIXIDX,
5571 VXWORKS_NEEDS_VXWORKS_FIXIDX,
5572 VXWORKS_TIME_FIXIDX,
5574 X11_CLASS_USAGE_FIXIDX,
5579 tFixDesc fixDescList[ FIX_COUNT ] = {
5580 { zAab_Dgux_Int_VarargsName, zAab_Dgux_Int_VarargsList,
5581 apzAab_Dgux_Int_VarargsMachs,
5582 AAB_DGUX_INT_VARARGS_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
5583 aAab_Dgux_Int_VarargsTests, apzAab_Dgux_Int_VarargsPatch, 0 },
5585 { zAab_Fd_Zero_Asm_Posix_Types_HName, zAab_Fd_Zero_Asm_Posix_Types_HList,
5586 apzAab_Fd_Zero_Asm_Posix_Types_HMachs,
5587 AAB_FD_ZERO_ASM_POSIX_TYPES_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
5588 aAab_Fd_Zero_Asm_Posix_Types_HTests, apzAab_Fd_Zero_Asm_Posix_Types_HPatch, 0 },
5590 { zAab_Fd_Zero_Gnu_Types_HName, zAab_Fd_Zero_Gnu_Types_HList,
5591 apzAab_Fd_Zero_Gnu_Types_HMachs,
5592 AAB_FD_ZERO_GNU_TYPES_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
5593 aAab_Fd_Zero_Gnu_Types_HTests, apzAab_Fd_Zero_Gnu_Types_HPatch, 0 },
5595 { zAab_Fd_Zero_Selectbits_HName, zAab_Fd_Zero_Selectbits_HList,
5596 apzAab_Fd_Zero_Selectbits_HMachs,
5597 AAB_FD_ZERO_SELECTBITS_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
5598 aAab_Fd_Zero_Selectbits_HTests, apzAab_Fd_Zero_Selectbits_HPatch, 0 },
5600 { zAab_Sun_MemcpyName, zAab_Sun_MemcpyList,
5601 apzAab_Sun_MemcpyMachs,
5602 AAB_SUN_MEMCPY_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
5603 aAab_Sun_MemcpyTests, apzAab_Sun_MemcpyPatch, 0 },
5605 { zAab_Svr4_Replace_ByteorderName, zAab_Svr4_Replace_ByteorderList,
5606 apzAab_Svr4_Replace_ByteorderMachs,
5607 AAB_SVR4_REPLACE_BYTEORDER_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
5608 aAab_Svr4_Replace_ByteorderTests, apzAab_Svr4_Replace_ByteorderPatch, 0 },
5610 { zAab_Ultrix_Ansi_CompatName, zAab_Ultrix_Ansi_CompatList,
5611 apzAab_Ultrix_Ansi_CompatMachs,
5612 AAB_ULTRIX_ANSI_COMPAT_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
5613 aAab_Ultrix_Ansi_CompatTests, apzAab_Ultrix_Ansi_CompatPatch, 0 },
5615 { zAab_Ultrix_LimitsName, zAab_Ultrix_LimitsList,
5616 apzAab_Ultrix_LimitsMachs,
5617 AAB_ULTRIX_LIMITS_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
5618 aAab_Ultrix_LimitsTests, apzAab_Ultrix_LimitsPatch, 0 },
5620 { zAab_Ultrix_MemoryName, zAab_Ultrix_MemoryList,
5621 apzAab_Ultrix_MemoryMachs,
5622 AAB_ULTRIX_MEMORY_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
5623 aAab_Ultrix_MemoryTests, apzAab_Ultrix_MemoryPatch, 0 },
5625 { zAab_Ultrix_StringName, zAab_Ultrix_StringList,
5626 apzAab_Ultrix_StringMachs,
5627 AAB_ULTRIX_STRING_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
5628 aAab_Ultrix_StringTests, apzAab_Ultrix_StringPatch, 0 },
5630 { zAix_PthreadName, zAix_PthreadList,
5631 apzAix_PthreadMachs,
5632 AIX_PTHREAD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5633 aAix_PthreadTests, apzAix_PthreadPatch, 0 },
5635 { zAix_SysmachineName, zAix_SysmachineList,
5636 apzAix_SysmachineMachs,
5637 AIX_SYSMACHINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5638 aAix_SysmachineTests, apzAix_SysmachinePatch, 0 },
5640 { zAix_SyswaitName, zAix_SyswaitList,
5641 apzAix_SyswaitMachs,
5642 AIX_SYSWAIT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5643 aAix_SyswaitTests, apzAix_SyswaitPatch, 0 },
5645 { zAix_VolatileName, zAix_VolatileList,
5646 apzAix_VolatileMachs,
5647 AIX_VOLATILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5648 aAix_VolatileTests, apzAix_VolatilePatch, 0 },
5650 { zAlpha___AssertName, zAlpha___AssertList,
5651 apzAlpha___AssertMachs,
5652 ALPHA___ASSERT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5653 aAlpha___AssertTests, apzAlpha___AssertPatch, 0 },
5655 { zAlpha_GetoptName, zAlpha_GetoptList,
5656 apzAlpha_GetoptMachs,
5657 ALPHA_GETOPT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5658 aAlpha_GetoptTests, apzAlpha_GetoptPatch, 0 },
5660 { zAlpha_ParensName, zAlpha_ParensList,
5661 apzAlpha_ParensMachs,
5662 ALPHA_PARENS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5663 aAlpha_ParensTests, apzAlpha_ParensPatch, 0 },
5665 { zAlpha_SbrkName, zAlpha_SbrkList,
5667 ALPHA_SBRK_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5668 aAlpha_SbrkTests, apzAlpha_SbrkPatch, 0 },
5670 { zArm_Norcroft_HintName, zArm_Norcroft_HintList,
5671 apzArm_Norcroft_HintMachs,
5672 ARM_NORCROFT_HINT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5673 aArm_Norcroft_HintTests, apzArm_Norcroft_HintPatch, 0 },
5675 { zArm_WcharName, zArm_WcharList,
5677 ARM_WCHAR_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5678 aArm_WcharTests, apzArm_WcharPatch, 0 },
5680 { zAux_AsmName, zAux_AsmList,
5682 AUX_ASM_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5683 aAux_AsmTests, apzAux_AsmPatch, 0 },
5685 { zAvoid_Bool_DefineName, zAvoid_Bool_DefineList,
5686 apzAvoid_Bool_DefineMachs,
5687 AVOID_BOOL_DEFINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5688 aAvoid_Bool_DefineTests, apzAvoid_Bool_DefinePatch, 0 },
5690 { zAvoid_Bool_TypeName, zAvoid_Bool_TypeList,
5691 apzAvoid_Bool_TypeMachs,
5692 AVOID_BOOL_TYPE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5693 aAvoid_Bool_TypeTests, apzAvoid_Bool_TypePatch, 0 },
5695 { zAvoid_Wchar_T_TypeName, zAvoid_Wchar_T_TypeList,
5696 apzAvoid_Wchar_T_TypeMachs,
5697 AVOID_WCHAR_T_TYPE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5698 aAvoid_Wchar_T_TypeTests, apzAvoid_Wchar_T_TypePatch, 0 },
5700 { zBad_LvalName, zBad_LvalList,
5702 BAD_LVAL_TEST_CT, FD_MACH_ONLY,
5703 aBad_LvalTests, apzBad_LvalPatch, 0 },
5705 { zBad_Struct_TermName, zBad_Struct_TermList,
5706 apzBad_Struct_TermMachs,
5707 BAD_STRUCT_TERM_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5708 aBad_Struct_TermTests, apzBad_Struct_TermPatch, 0 },
5710 { zBadquoteName, zBadquoteList,
5712 BADQUOTE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5713 aBadquoteTests, apzBadquotePatch, 0 },
5715 { zBroken_Assert_StdioName, zBroken_Assert_StdioList,
5716 apzBroken_Assert_StdioMachs,
5717 BROKEN_ASSERT_STDIO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5718 aBroken_Assert_StdioTests, apzBroken_Assert_StdioPatch, 0 },
5720 { zBroken_Assert_StdlibName, zBroken_Assert_StdlibList,
5721 apzBroken_Assert_StdlibMachs,
5722 BROKEN_ASSERT_STDLIB_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5723 aBroken_Assert_StdlibTests, apzBroken_Assert_StdlibPatch, 0 },
5725 { zBroken_CabsName, zBroken_CabsList,
5726 apzBroken_CabsMachs,
5727 BROKEN_CABS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5728 aBroken_CabsTests, apzBroken_CabsPatch, 0 },
5730 { zCtrl_Quotes_DefName, zCtrl_Quotes_DefList,
5731 apzCtrl_Quotes_DefMachs,
5732 CTRL_QUOTES_DEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5733 aCtrl_Quotes_DefTests, apzCtrl_Quotes_DefPatch, 0 },
5735 { zCtrl_Quotes_UseName, zCtrl_Quotes_UseList,
5736 apzCtrl_Quotes_UseMachs,
5737 CTRL_QUOTES_USE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5738 aCtrl_Quotes_UseTests, apzCtrl_Quotes_UsePatch, 0 },
5740 { zCxx_UnreadyName, zCxx_UnreadyList,
5741 apzCxx_UnreadyMachs,
5742 CXX_UNREADY_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5743 aCxx_UnreadyTests, apzCxx_UnreadyPatch, 0 },
5745 { zDec_Intern_AsmName, zDec_Intern_AsmList,
5746 apzDec_Intern_AsmMachs,
5747 DEC_INTERN_ASM_TEST_CT, FD_MACH_ONLY,
5748 aDec_Intern_AsmTests, apzDec_Intern_AsmPatch, 0 },
5750 { zDjgpp_Wchar_HName, zDjgpp_Wchar_HList,
5751 apzDjgpp_Wchar_HMachs,
5752 DJGPP_WCHAR_H_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5753 aDjgpp_Wchar_HTests, apzDjgpp_Wchar_HPatch, 0 },
5755 { zEcd_CursorName, zEcd_CursorList,
5757 ECD_CURSOR_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5758 aEcd_CursorTests, apzEcd_CursorPatch, 0 },
5760 { zFix_Header_BreakageName, zFix_Header_BreakageList,
5761 apzFix_Header_BreakageMachs,
5762 FIX_HEADER_BREAKAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5763 aFix_Header_BreakageTests, apzFix_Header_BreakagePatch, 0 },
5765 { zFreebsd_Gcc3_BreakageName, zFreebsd_Gcc3_BreakageList,
5766 apzFreebsd_Gcc3_BreakageMachs,
5767 FREEBSD_GCC3_BREAKAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5768 aFreebsd_Gcc3_BreakageTests, apzFreebsd_Gcc3_BreakagePatch, 0 },
5770 { zGnu_TypesName, zGnu_TypesList,
5772 GNU_TYPES_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5773 aGnu_TypesTests, apzGnu_TypesPatch, 0 },
5775 { zHp_InlineName, zHp_InlineList,
5777 HP_INLINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5778 aHp_InlineTests, apzHp_InlinePatch, 0 },
5780 { zHp_SysfileName, zHp_SysfileList,
5782 HP_SYSFILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5783 aHp_SysfileTests, apzHp_SysfilePatch, 0 },
5785 { zHpux10_Cpp_Pow_InlineName, zHpux10_Cpp_Pow_InlineList,
5786 apzHpux10_Cpp_Pow_InlineMachs,
5787 HPUX10_CPP_POW_INLINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5788 aHpux10_Cpp_Pow_InlineTests, apzHpux10_Cpp_Pow_InlinePatch, 0 },
5790 { zHpux11_Cpp_Pow_InlineName, zHpux11_Cpp_Pow_InlineList,
5791 apzHpux11_Cpp_Pow_InlineMachs,
5792 HPUX11_CPP_POW_INLINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5793 aHpux11_Cpp_Pow_InlineTests, apzHpux11_Cpp_Pow_InlinePatch, 0 },
5795 { zHpux11_FabsfName, zHpux11_FabsfList,
5796 apzHpux11_FabsfMachs,
5797 HPUX11_FABSF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5798 aHpux11_FabsfTests, apzHpux11_FabsfPatch, 0 },
5800 { zHpux11_Size_TName, zHpux11_Size_TList,
5801 apzHpux11_Size_TMachs,
5802 HPUX11_SIZE_T_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5803 aHpux11_Size_TTests, apzHpux11_Size_TPatch, 0 },
5805 { zHpux11_Uint32_CName, zHpux11_Uint32_CList,
5806 apzHpux11_Uint32_CMachs,
5807 HPUX11_UINT32_C_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5808 aHpux11_Uint32_CTests, apzHpux11_Uint32_CPatch, 0 },
5810 { zHpux11_VsnprintfName, zHpux11_VsnprintfList,
5811 apzHpux11_VsnprintfMachs,
5812 HPUX11_VSNPRINTF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5813 aHpux11_VsnprintfTests, apzHpux11_VsnprintfPatch, 0 },
5815 { zHpux8_Bogus_InlinesName, zHpux8_Bogus_InlinesList,
5816 apzHpux8_Bogus_InlinesMachs,
5817 HPUX8_BOGUS_INLINES_TEST_CT, FD_MACH_ONLY,
5818 aHpux8_Bogus_InlinesTests, apzHpux8_Bogus_InlinesPatch, 0 },
5820 { zHpux_MaxintName, zHpux_MaxintList,
5821 apzHpux_MaxintMachs,
5822 HPUX_MAXINT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5823 aHpux_MaxintTests, apzHpux_MaxintPatch, 0 },
5825 { zHpux_SystimeName, zHpux_SystimeList,
5826 apzHpux_SystimeMachs,
5827 HPUX_SYSTIME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5828 aHpux_SystimeTests, apzHpux_SystimePatch, 0 },
5830 { zInt_Abort_Free_And_ExitName, zInt_Abort_Free_And_ExitList,
5831 apzInt_Abort_Free_And_ExitMachs,
5832 INT_ABORT_FREE_AND_EXIT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5833 aInt_Abort_Free_And_ExitTests, apzInt_Abort_Free_And_ExitPatch, 0 },
5835 { zIo_Quotes_DefName, zIo_Quotes_DefList,
5836 apzIo_Quotes_DefMachs,
5837 IO_QUOTES_DEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5838 aIo_Quotes_DefTests, apzIo_Quotes_DefPatch, 0 },
5840 { zIo_Quotes_UseName, zIo_Quotes_UseList,
5841 apzIo_Quotes_UseMachs,
5842 IO_QUOTES_USE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5843 aIo_Quotes_UseTests, apzIo_Quotes_UsePatch, 0 },
5845 { zIp_Missing_SemiName, zIp_Missing_SemiList,
5846 apzIp_Missing_SemiMachs,
5847 IP_MISSING_SEMI_TEST_CT, FD_MACH_ONLY,
5848 aIp_Missing_SemiTests, apzIp_Missing_SemiPatch, 0 },
5850 { zIrix_Asm_ApostropheName, zIrix_Asm_ApostropheList,
5851 apzIrix_Asm_ApostropheMachs,
5852 IRIX_ASM_APOSTROPHE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5853 aIrix_Asm_ApostropheTests, apzIrix_Asm_ApostrophePatch, 0 },
5855 { zIrix_Limits_ConstName, zIrix_Limits_ConstList,
5856 apzIrix_Limits_ConstMachs,
5857 IRIX_LIMITS_CONST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5858 aIrix_Limits_ConstTests, apzIrix_Limits_ConstPatch, 0 },
5860 { zIrix_Stdio_Va_ListName, zIrix_Stdio_Va_ListList,
5861 apzIrix_Stdio_Va_ListMachs,
5862 IRIX_STDIO_VA_LIST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5863 aIrix_Stdio_Va_ListTests, apzIrix_Stdio_Va_ListPatch, 0 },
5865 { zIsc_FmodName, zIsc_FmodList,
5867 ISC_FMOD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5868 aIsc_FmodTests, apzIsc_FmodPatch, 0 },
5870 { zIsc_Omits_With_StdcName, zIsc_Omits_With_StdcList,
5871 apzIsc_Omits_With_StdcMachs,
5872 ISC_OMITS_WITH_STDC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5873 aIsc_Omits_With_StdcTests, apzIsc_Omits_With_StdcPatch, 0 },
5875 { zKandr_ConcatName, zKandr_ConcatList,
5876 apzKandr_ConcatMachs,
5877 KANDR_CONCAT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5878 aKandr_ConcatTests, apzKandr_ConcatPatch, 0 },
5880 { zLibc1_Ifdefd_MemxName, zLibc1_Ifdefd_MemxList,
5881 apzLibc1_Ifdefd_MemxMachs,
5882 LIBC1_IFDEFD_MEMX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5883 aLibc1_Ifdefd_MemxTests, apzLibc1_Ifdefd_MemxPatch, 0 },
5885 { zLimits_IfndefsName, zLimits_IfndefsList,
5886 apzLimits_IfndefsMachs,
5887 LIMITS_IFNDEFS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5888 aLimits_IfndefsTests, apzLimits_IfndefsPatch, 0 },
5890 { zLynx_Void_IntName, zLynx_Void_IntList,
5891 apzLynx_Void_IntMachs,
5892 LYNX_VOID_INT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5893 aLynx_Void_IntTests, apzLynx_Void_IntPatch, 0 },
5895 { zLynxos_Fcntl_ProtoName, zLynxos_Fcntl_ProtoList,
5896 apzLynxos_Fcntl_ProtoMachs,
5897 LYNXOS_FCNTL_PROTO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5898 aLynxos_Fcntl_ProtoTests, apzLynxos_Fcntl_ProtoPatch, 0 },
5900 { zM88k_Bad_Hypot_OptName, zM88k_Bad_Hypot_OptList,
5901 apzM88k_Bad_Hypot_OptMachs,
5902 M88K_BAD_HYPOT_OPT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5903 aM88k_Bad_Hypot_OptTests, apzM88k_Bad_Hypot_OptPatch, 0 },
5905 { zM88k_Bad_S_IfName, zM88k_Bad_S_IfList,
5906 apzM88k_Bad_S_IfMachs,
5907 M88K_BAD_S_IF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5908 aM88k_Bad_S_IfTests, apzM88k_Bad_S_IfPatch, 0 },
5910 { zM88k_Multi_InclName, zM88k_Multi_InclList,
5911 apzM88k_Multi_InclMachs,
5912 M88K_MULTI_INCL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5913 aM88k_Multi_InclTests, apzM88k_Multi_InclPatch, 0 },
5915 { zMachine_Ansi_H_Va_ListName, zMachine_Ansi_H_Va_ListList,
5916 apzMachine_Ansi_H_Va_ListMachs,
5917 MACHINE_ANSI_H_VA_LIST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5918 aMachine_Ansi_H_Va_ListTests, apzMachine_Ansi_H_Va_ListPatch, 0 },
5920 { zMachine_NameName, zMachine_NameList,
5921 apzMachine_NameMachs,
5922 MACHINE_NAME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5923 aMachine_NameTests, apzMachine_NamePatch, 0 },
5925 { zMath_ExceptionName, zMath_ExceptionList,
5926 apzMath_ExceptionMachs,
5927 MATH_EXCEPTION_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5928 aMath_ExceptionTests, apzMath_ExceptionPatch, 0 },
5930 { zMath_Huge_Val_From_Dbl_MaxName, zMath_Huge_Val_From_Dbl_MaxList,
5931 apzMath_Huge_Val_From_Dbl_MaxMachs,
5932 MATH_HUGE_VAL_FROM_DBL_MAX_TEST_CT, FD_MACH_ONLY | FD_SHELL_SCRIPT,
5933 aMath_Huge_Val_From_Dbl_MaxTests, apzMath_Huge_Val_From_Dbl_MaxPatch, 0 },
5935 { zMath_Huge_Val_IfndefName, zMath_Huge_Val_IfndefList,
5936 apzMath_Huge_Val_IfndefMachs,
5937 MATH_HUGE_VAL_IFNDEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5938 aMath_Huge_Val_IfndefTests, apzMath_Huge_Val_IfndefPatch, 0 },
5940 { zNested_Auth_DesName, zNested_Auth_DesList,
5941 apzNested_Auth_DesMachs,
5942 NESTED_AUTH_DES_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5943 aNested_Auth_DesTests, apzNested_Auth_DesPatch, 0 },
5945 { zNested_MotorolaName, zNested_MotorolaList,
5946 apzNested_MotorolaMachs,
5947 NESTED_MOTOROLA_TEST_CT, FD_MACH_ONLY,
5948 aNested_MotorolaTests, apzNested_MotorolaPatch, 0 },
5950 { zNested_Sys_LimitsName, zNested_Sys_LimitsList,
5951 apzNested_Sys_LimitsMachs,
5952 NESTED_SYS_LIMITS_TEST_CT, FD_MACH_ONLY,
5953 aNested_Sys_LimitsTests, apzNested_Sys_LimitsPatch, 0 },
5955 { zNews_Os_RecursionName, zNews_Os_RecursionList,
5956 apzNews_Os_RecursionMachs,
5957 NEWS_OS_RECURSION_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5958 aNews_Os_RecursionTests, apzNews_Os_RecursionPatch, 0 },
5960 { zNext_Math_PrefixName, zNext_Math_PrefixList,
5961 apzNext_Math_PrefixMachs,
5962 NEXT_MATH_PREFIX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5963 aNext_Math_PrefixTests, apzNext_Math_PrefixPatch, 0 },
5965 { zNext_TemplateName, zNext_TemplateList,
5966 apzNext_TemplateMachs,
5967 NEXT_TEMPLATE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5968 aNext_TemplateTests, apzNext_TemplatePatch, 0 },
5970 { zNext_VolitileName, zNext_VolitileList,
5971 apzNext_VolitileMachs,
5972 NEXT_VOLITILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5973 aNext_VolitileTests, apzNext_VolitilePatch, 0 },
5975 { zNext_Wait_UnionName, zNext_Wait_UnionList,
5976 apzNext_Wait_UnionMachs,
5977 NEXT_WAIT_UNION_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5978 aNext_Wait_UnionTests, apzNext_Wait_UnionPatch, 0 },
5980 { zNodeent_SyntaxName, zNodeent_SyntaxList,
5981 apzNodeent_SyntaxMachs,
5982 NODEENT_SYNTAX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5983 aNodeent_SyntaxTests, apzNodeent_SyntaxPatch, 0 },
5985 { zOsf_Namespace_AName, zOsf_Namespace_AList,
5986 apzOsf_Namespace_AMachs,
5987 OSF_NAMESPACE_A_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5988 aOsf_Namespace_ATests, apzOsf_Namespace_APatch, 0 },
5990 { zOsf_Namespace_CName, zOsf_Namespace_CList,
5991 apzOsf_Namespace_CMachs,
5992 OSF_NAMESPACE_C_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5993 aOsf_Namespace_CTests, apzOsf_Namespace_CPatch, 0 },
5995 { zPthread_Page_SizeName, zPthread_Page_SizeList,
5996 apzPthread_Page_SizeMachs,
5997 PTHREAD_PAGE_SIZE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5998 aPthread_Page_SizeTests, apzPthread_Page_SizePatch, 0 },
6000 { zRead_Ret_TypeName, zRead_Ret_TypeList,
6001 apzRead_Ret_TypeMachs,
6002 READ_RET_TYPE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6003 aRead_Ret_TypeTests, apzRead_Ret_TypePatch, 0 },
6005 { zRs6000_DoubleName, zRs6000_DoubleList,
6006 apzRs6000_DoubleMachs,
6007 RS6000_DOUBLE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6008 aRs6000_DoubleTests, apzRs6000_DoublePatch, 0 },
6010 { zRs6000_FchmodName, zRs6000_FchmodList,
6011 apzRs6000_FchmodMachs,
6012 RS6000_FCHMOD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6013 aRs6000_FchmodTests, apzRs6000_FchmodPatch, 0 },
6015 { zRs6000_ParamName, zRs6000_ParamList,
6016 apzRs6000_ParamMachs,
6017 RS6000_PARAM_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6018 aRs6000_ParamTests, apzRs6000_ParamPatch, 0 },
6020 { zSco_Static_FuncName, zSco_Static_FuncList,
6021 apzSco_Static_FuncMachs,
6022 SCO_STATIC_FUNC_TEST_CT, FD_MACH_ONLY,
6023 aSco_Static_FuncTests, apzSco_Static_FuncPatch, 0 },
6025 { zSco_UtimeName, zSco_UtimeList,
6027 SCO_UTIME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6028 aSco_UtimeTests, apzSco_UtimePatch, 0 },
6030 { zSolaris_Mutex_InitName, zSolaris_Mutex_InitList,
6031 apzSolaris_Mutex_InitMachs,
6032 SOLARIS_MUTEX_INIT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6033 aSolaris_Mutex_InitTests, apzSolaris_Mutex_InitPatch, 0 },
6035 { zStatsswtchName, zStatsswtchList,
6037 STATSSWTCH_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6038 aStatsswtchTests, apzStatsswtchPatch, 0 },
6040 { zStdio_Stdarg_HName, zStdio_Stdarg_HList,
6041 apzStdio_Stdarg_HMachs,
6042 STDIO_STDARG_H_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6043 aStdio_Stdarg_HTests, apzStdio_Stdarg_HPatch, 0 },
6045 { zStdio_Va_ListName, zStdio_Va_ListList,
6046 apzStdio_Va_ListMachs,
6047 STDIO_VA_LIST_TEST_CT, FD_MACH_ONLY,
6048 aStdio_Va_ListTests, apzStdio_Va_ListPatch, 0 },
6050 { zStrict_Ansi_NotName, zStrict_Ansi_NotList,
6051 apzStrict_Ansi_NotMachs,
6052 STRICT_ANSI_NOT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6053 aStrict_Ansi_NotTests, apzStrict_Ansi_NotPatch, 0 },
6055 { zStrict_Ansi_Not_CtdName, zStrict_Ansi_Not_CtdList,
6056 apzStrict_Ansi_Not_CtdMachs,
6057 STRICT_ANSI_NOT_CTD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6058 aStrict_Ansi_Not_CtdTests, apzStrict_Ansi_Not_CtdPatch, 0 },
6060 { zStrict_Ansi_OnlyName, zStrict_Ansi_OnlyList,
6061 apzStrict_Ansi_OnlyMachs,
6062 STRICT_ANSI_ONLY_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6063 aStrict_Ansi_OnlyTests, apzStrict_Ansi_OnlyPatch, 0 },
6065 { zStruct_FileName, zStruct_FileList,
6066 apzStruct_FileMachs,
6067 STRUCT_FILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6068 aStruct_FileTests, apzStruct_FilePatch, 0 },
6070 { zStruct_SockaddrName, zStruct_SockaddrList,
6071 apzStruct_SockaddrMachs,
6072 STRUCT_SOCKADDR_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6073 aStruct_SockaddrTests, apzStruct_SockaddrPatch, 0 },
6075 { zSun_Auth_ProtoName, zSun_Auth_ProtoList,
6076 apzSun_Auth_ProtoMachs,
6077 SUN_AUTH_PROTO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6078 aSun_Auth_ProtoTests, apzSun_Auth_ProtoPatch, 0 },
6080 { zSun_Bogus_IfdefName, zSun_Bogus_IfdefList,
6081 apzSun_Bogus_IfdefMachs,
6082 SUN_BOGUS_IFDEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6083 aSun_Bogus_IfdefTests, apzSun_Bogus_IfdefPatch, 0 },
6085 { zSun_CatmacroName, zSun_CatmacroList,
6086 apzSun_CatmacroMachs,
6087 SUN_CATMACRO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6088 aSun_CatmacroTests, apzSun_CatmacroPatch, 0 },
6090 { zSun_MallocName, zSun_MallocList,
6092 SUN_MALLOC_TEST_CT, FD_MACH_ONLY,
6093 aSun_MallocTests, apzSun_MallocPatch, 0 },
6095 { zSun_Rusers_SemiName, zSun_Rusers_SemiList,
6096 apzSun_Rusers_SemiMachs,
6097 SUN_RUSERS_SEMI_TEST_CT, FD_MACH_ONLY,
6098 aSun_Rusers_SemiTests, apzSun_Rusers_SemiPatch, 0 },
6100 { zSun_SignalName, zSun_SignalList,
6102 SUN_SIGNAL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6103 aSun_SignalTests, apzSun_SignalPatch, 0 },
6105 { zSunos_Matherr_DeclName, zSunos_Matherr_DeclList,
6106 apzSunos_Matherr_DeclMachs,
6107 SUNOS_MATHERR_DECL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6108 aSunos_Matherr_DeclTests, apzSunos_Matherr_DeclPatch, 0 },
6110 { zSunos_StrlenName, zSunos_StrlenList,
6111 apzSunos_StrlenMachs,
6112 SUNOS_STRLEN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6113 aSunos_StrlenTests, apzSunos_StrlenPatch, 0 },
6115 { zSvr4__PName, zSvr4__PList,
6117 SVR4__P_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6118 aSvr4__PTests, apzSvr4__PPatch, 0 },
6120 { zSvr4_GetcwdName, zSvr4_GetcwdList,
6121 apzSvr4_GetcwdMachs,
6122 SVR4_GETCWD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6123 aSvr4_GetcwdTests, apzSvr4_GetcwdPatch, 0 },
6125 { zSvr4_ProfilName, zSvr4_ProfilList,
6126 apzSvr4_ProfilMachs,
6127 SVR4_PROFIL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6128 aSvr4_ProfilTests, apzSvr4_ProfilPatch, 0 },
6130 { zSysv68_StringName, zSysv68_StringList,
6131 apzSysv68_StringMachs,
6132 SYSV68_STRING_TEST_CT, FD_MACH_ONLY,
6133 aSysv68_StringTests, apzSysv68_StringPatch, 0 },
6135 { zSysz_Stdlib_For_SunName, zSysz_Stdlib_For_SunList,
6136 apzSysz_Stdlib_For_SunMachs,
6137 SYSZ_STDLIB_FOR_SUN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6138 aSysz_Stdlib_For_SunTests, apzSysz_Stdlib_For_SunPatch, 0 },
6140 { zTinfo_CplusplusName, zTinfo_CplusplusList,
6141 apzTinfo_CplusplusMachs,
6142 TINFO_CPLUSPLUS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6143 aTinfo_CplusplusTests, apzTinfo_CplusplusPatch, 0 },
6145 { zUltrix_Atexit_ParamName, zUltrix_Atexit_ParamList,
6146 apzUltrix_Atexit_ParamMachs,
6147 ULTRIX_ATEXIT_PARAM_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6148 aUltrix_Atexit_ParamTests, apzUltrix_Atexit_ParamPatch, 0 },
6150 { zUltrix_Atof_ParamName, zUltrix_Atof_ParamList,
6151 apzUltrix_Atof_ParamMachs,
6152 ULTRIX_ATOF_PARAM_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6153 aUltrix_Atof_ParamTests, apzUltrix_Atof_ParamPatch, 0 },
6155 { zUltrix_ConstName, zUltrix_ConstList,
6156 apzUltrix_ConstMachs,
6157 ULTRIX_CONST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6158 aUltrix_ConstTests, apzUltrix_ConstPatch, 0 },
6160 { zUltrix_Const2Name, zUltrix_Const2List,
6161 apzUltrix_Const2Machs,
6162 ULTRIX_CONST2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6163 aUltrix_Const2Tests, apzUltrix_Const2Patch, 0 },
6165 { zUltrix_Fix_FixprotoName, zUltrix_Fix_FixprotoList,
6166 apzUltrix_Fix_FixprotoMachs,
6167 ULTRIX_FIX_FIXPROTO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6168 aUltrix_Fix_FixprotoTests, apzUltrix_Fix_FixprotoPatch, 0 },
6170 { zUltrix_IfdefName, zUltrix_IfdefList,
6171 apzUltrix_IfdefMachs,
6172 ULTRIX_IFDEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6173 aUltrix_IfdefTests, apzUltrix_IfdefPatch, 0 },
6175 { zUltrix_Math_IfdefName, zUltrix_Math_IfdefList,
6176 apzUltrix_Math_IfdefMachs,
6177 ULTRIX_MATH_IFDEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6178 aUltrix_Math_IfdefTests, apzUltrix_Math_IfdefPatch, 0 },
6180 { zUltrix_Nested_IoctlName, zUltrix_Nested_IoctlList,
6181 apzUltrix_Nested_IoctlMachs,
6182 ULTRIX_NESTED_IOCTL_TEST_CT, FD_MACH_ONLY,
6183 aUltrix_Nested_IoctlTests, apzUltrix_Nested_IoctlPatch, 0 },
6185 { zUltrix_Nested_SvcName, zUltrix_Nested_SvcList,
6186 apzUltrix_Nested_SvcMachs,
6187 ULTRIX_NESTED_SVC_TEST_CT, FD_MACH_ONLY,
6188 aUltrix_Nested_SvcTests, apzUltrix_Nested_SvcPatch, 0 },
6190 { zUltrix_StatName, zUltrix_StatList,
6191 apzUltrix_StatMachs,
6192 ULTRIX_STAT_TEST_CT, FD_MACH_ONLY,
6193 aUltrix_StatTests, apzUltrix_StatPatch, 0 },
6195 { zUltrix_StaticName, zUltrix_StaticList,
6196 apzUltrix_StaticMachs,
6197 ULTRIX_STATIC_TEST_CT, FD_MACH_ONLY,
6198 aUltrix_StaticTests, apzUltrix_StaticPatch, 0 },
6200 { zUltrix_StringsName, zUltrix_StringsList,
6201 apzUltrix_StringsMachs,
6202 ULTRIX_STRINGS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6203 aUltrix_StringsTests, apzUltrix_StringsPatch, 0 },
6205 { zUndefine_NullName, zUndefine_NullList,
6206 apzUndefine_NullMachs,
6207 UNDEFINE_NULL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6208 aUndefine_NullTests, apzUndefine_NullPatch, 0 },
6210 { zUnicosmk_RestrictName, zUnicosmk_RestrictList,
6211 apzUnicosmk_RestrictMachs,
6212 UNICOSMK_RESTRICT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6213 aUnicosmk_RestrictTests, apzUnicosmk_RestrictPatch, 0 },
6215 { zUw7_Byteorder_FixName, zUw7_Byteorder_FixList,
6216 apzUw7_Byteorder_FixMachs,
6217 UW7_BYTEORDER_FIX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6218 aUw7_Byteorder_FixTests, apzUw7_Byteorder_FixPatch, 0 },
6220 { zVa_I960_MacroName, zVa_I960_MacroList,
6221 apzVa_I960_MacroMachs,
6222 VA_I960_MACRO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6223 aVa_I960_MacroTests, apzVa_I960_MacroPatch, 0 },
6225 { zVoid_NullName, zVoid_NullList,
6227 VOID_NULL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6228 aVoid_NullTests, apzVoid_NullPatch, 0 },
6230 { zVxworks_Gcc_ProblemName, zVxworks_Gcc_ProblemList,
6231 apzVxworks_Gcc_ProblemMachs,
6232 VXWORKS_GCC_PROBLEM_TEST_CT, FD_MACH_ONLY,
6233 aVxworks_Gcc_ProblemTests, apzVxworks_Gcc_ProblemPatch, 0 },
6235 { zVxworks_Needs_VxtypesName, zVxworks_Needs_VxtypesList,
6236 apzVxworks_Needs_VxtypesMachs,
6237 VXWORKS_NEEDS_VXTYPES_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6238 aVxworks_Needs_VxtypesTests, apzVxworks_Needs_VxtypesPatch, 0 },
6240 { zVxworks_Needs_VxworksName, zVxworks_Needs_VxworksList,
6241 apzVxworks_Needs_VxworksMachs,
6242 VXWORKS_NEEDS_VXWORKS_TEST_CT, FD_MACH_ONLY,
6243 aVxworks_Needs_VxworksTests, apzVxworks_Needs_VxworksPatch, 0 },
6245 { zVxworks_TimeName, zVxworks_TimeList,
6246 apzVxworks_TimeMachs,
6247 VXWORKS_TIME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6248 aVxworks_TimeTests, apzVxworks_TimePatch, 0 },
6250 { zX11_ClassName, zX11_ClassList,
6252 X11_CLASS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6253 aX11_ClassTests, apzX11_ClassPatch, 0 },
6255 { zX11_Class_UsageName, zX11_Class_UsageList,
6256 apzX11_Class_UsageMachs,
6257 X11_CLASS_USAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6258 aX11_Class_UsageTests, apzX11_Class_UsagePatch, 0 },
6260 { zX11_NewName, zX11_NewList,
6262 X11_NEW_TEST_CT, FD_MACH_ONLY,
6263 aX11_NewTests, apzX11_NewPatch, 0 },
6265 { zX11_SprintfName, zX11_SprintfList,
6266 apzX11_SprintfMachs,
6267 X11_SPRINTF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6268 aX11_SprintfTests, apzX11_SprintfPatch, 0 }