1 /* -*- buffer-read-only: t -*- vi: set ro:
3 * DO NOT EDIT THIS FILE (fixincl.x)
5 * It has been AutoGen-ed Tuesday November 9, 2004 at 11:12:40 PM UTC
6 * From the definitions inclhack.def
7 * and the template file fixincl
9 /* DO NOT CVS-MERGE THIS FILE, EITHER Tue Nov 9 23:12:40 UTC 2004
11 * You must regenerate it. Use the ./genfixes script.
14 * This is part of the fixincl program used to install modified versions of
15 * certain ANSI-incompatible system header files which are fixed to work
16 * correctly with ANSI C and placed in a directory that GNU C will search.
18 * This file contains 181 fixup descriptions.
20 * See README for more information.
22 * inclhack copyright (c) 1998, 1999, 2000, 2001
23 * The Free Software Foundation, Inc.
25 * inclhack is free software.
27 * You may redistribute it and/or modify it under the terms of the
28 * GNU General Public License, as published by the Free Software
29 * Foundation; either version 2, or (at your option) any later version.
31 * inclhack is distributed in the hope that it will be useful,
32 * but WITHOUT ANY WARRANTY; without even the implied warranty of
33 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
34 * See the GNU General Public License for more details.
36 * You should have received a copy of the GNU General Public License
37 * along with inclhack. See the file "COPYING". If not,
38 * write to: The Free Software Foundation, Inc.,
39 * 59 Temple Place - Suite 330,
40 * Boston, MA 02111-1307, USA.
43 /* * * * * * * * * * * * * * * * * * * * * * * * * *
45 * Description of Aab_Fd_Zero_Asm_Posix_Types_H fix
47 tSCC zAab_Fd_Zero_Asm_Posix_Types_HName[] =
48 "AAB_fd_zero_asm_posix_types_h";
51 * File name selection pattern
53 tSCC zAab_Fd_Zero_Asm_Posix_Types_HList[] =
54 "|asm/posix_types.h|";
56 * Machine/OS name selection pattern
58 tSCC* apzAab_Fd_Zero_Asm_Posix_Types_HMachs[] = {
59 "i[34567]86-*-linux*",
63 * content bypass pattern - skip fix if pattern found
65 tSCC zAab_Fd_Zero_Asm_Posix_Types_HBypass0[] =
68 #define AAB_FD_ZERO_ASM_POSIX_TYPES_H_TEST_CT 1
69 static tTestDesc aAab_Fd_Zero_Asm_Posix_Types_HTests[] = {
70 { TT_NEGREP, zAab_Fd_Zero_Asm_Posix_Types_HBypass0, (regex_t*)NULL }, };
73 * Fix Command Arguments for Aab_Fd_Zero_Asm_Posix_Types_H
75 static const char* apzAab_Fd_Zero_Asm_Posix_Types_HPatch[] = {
76 "/* This file fixes a bug in the __FD_ZERO macro\n\
77 for older versions of the Linux kernel. */\n\
78 #ifndef _POSIX_TYPES_H_WRAPPER\n\
79 #include <features.h>\n\
80 #include_next <asm/posix_types.h>\n\n\
81 #if defined(__FD_ZERO) && !defined(__GLIBC__)\n\
83 #define __FD_ZERO(fdsetp) \\\n\
86 __asm__ __volatile__(\"cld ; rep ; stosl\" \\\n\
87 : \"=&c\" (__d0), \"=&D\" (__d1) \\\n\
88 : \"a\" (0), \"0\" (__FDSET_LONGS), \\\n\
89 \"1\" ((__kernel_fd_set *) (fdsetp)) :\"memory\"); \\\n\
92 #define _POSIX_TYPES_H_WRAPPER\n\
93 #endif /* _POSIX_TYPES_H_WRAPPER */",
96 /* * * * * * * * * * * * * * * * * * * * * * * * * *
98 * Description of Aab_Fd_Zero_Gnu_Types_H fix
100 tSCC zAab_Fd_Zero_Gnu_Types_HName[] =
101 "AAB_fd_zero_gnu_types_h";
104 * File name selection pattern
106 tSCC zAab_Fd_Zero_Gnu_Types_HList[] =
109 * Machine/OS name selection pattern
111 tSCC* apzAab_Fd_Zero_Gnu_Types_HMachs[] = {
112 "i[34567]86-*-linux*",
114 #define AAB_FD_ZERO_GNU_TYPES_H_TEST_CT 0
115 #define aAab_Fd_Zero_Gnu_Types_HTests (tTestDesc*)NULL
118 * Fix Command Arguments for Aab_Fd_Zero_Gnu_Types_H
120 static const char* apzAab_Fd_Zero_Gnu_Types_HPatch[] = {
121 "/* This file fixes a bug in the __FD_ZERO macro present in glibc 1.x. */\n\
122 #ifndef _TYPES_H_WRAPPER\n\
123 #include <features.h>\n\
124 #include_next <gnu/types.h>\n\n\
125 #if defined(__FD_ZERO) && !defined(__GLIBC__)\n\
127 # define __FD_ZERO(fdsetp) \\\\\n\
129 int __d0, __d1; \\\\\n\
130 __asm__ __volatile__(\"cld ; rep ; stosl\" \\\\\n\
131 \t: \"=&c\" (__d0), \"=&D\" (__d1) \\\\\n\
132 \t: \"a\" (0), \"0\" (__FDSET_LONGS), \\\\\n\
133 \"1\" ((__fd_set *) (fdsetp)) :\"memory\"); \\\\\n\
136 #define _TYPES_H_WRAPPER\n\
137 #endif /* _TYPES_H_WRAPPER */",
140 /* * * * * * * * * * * * * * * * * * * * * * * * * *
142 * Description of Aab_Fd_Zero_Selectbits_H fix
144 tSCC zAab_Fd_Zero_Selectbits_HName[] =
145 "AAB_fd_zero_selectbits_h";
148 * File name selection pattern
150 tSCC zAab_Fd_Zero_Selectbits_HList[] =
153 * Machine/OS name selection pattern
155 tSCC* apzAab_Fd_Zero_Selectbits_HMachs[] = {
156 "i[34567]86-*-linux*",
158 #define AAB_FD_ZERO_SELECTBITS_H_TEST_CT 0
159 #define aAab_Fd_Zero_Selectbits_HTests (tTestDesc*)NULL
162 * Fix Command Arguments for Aab_Fd_Zero_Selectbits_H
164 static const char* apzAab_Fd_Zero_Selectbits_HPatch[] = {
165 "/* This file fixes a bug in the __FD_ZERO macro present in glibc 2.0.x. */\n\
166 #ifndef _SELECTBITS_H_WRAPPER\n\
167 #include <features.h>\n\
168 #include_next <selectbits.h>\n\n\
169 #if defined(__FD_ZERO) && defined(__GLIBC__) \\\\\n\
170 && defined(__GLIBC_MINOR__) && __GLIBC__ == 2 \\\\\n\
171 && __GLIBC_MINOR__ == 0\n\
173 #define __FD_ZERO(fdsetp) \\\\\n\
175 int __d0, __d1; \\\\\n\
176 __asm__ __volatile__ (\"cld; rep; stosl\" \\\\\n\
177 : \"=&c\" (__d0), \"=&D\" (__d1) \\\\\n\
178 : \"a\" (0), \"0\" (sizeof (__fd_set) \\\\\n\
179 / sizeof (__fd_mask)), \\\\\n\
180 \"1\" ((__fd_mask *) (fdsetp)) \\\\\n\
181 : \"memory\"); \\\\\n\
184 #define _SELECTBITS_H_WRAPPER\n\
185 #endif /* _SELECTBITS_H_WRAPPER */",
188 /* * * * * * * * * * * * * * * * * * * * * * * * * *
190 * Description of Aab_Solaris_Sys_Varargs_H fix
192 tSCC zAab_Solaris_Sys_Varargs_HName[] =
193 "AAB_solaris_sys_varargs_h";
196 * File name selection pattern
198 tSCC zAab_Solaris_Sys_Varargs_HList[] =
201 * Machine/OS name selection pattern
203 tSCC* apzAab_Solaris_Sys_Varargs_HMachs[] = {
206 #define AAB_SOLARIS_SYS_VARARGS_H_TEST_CT 0
207 #define aAab_Solaris_Sys_Varargs_HTests (tTestDesc*)NULL
210 * Fix Command Arguments for Aab_Solaris_Sys_Varargs_H
212 static const char* apzAab_Solaris_Sys_Varargs_HPatch[] = {
214 #include <stdarg.h>\n\
216 #include <varargs.h>\n\
220 /* * * * * * * * * * * * * * * * * * * * * * * * * *
222 * Description of Aab_Sun_Memcpy fix
224 tSCC zAab_Sun_MemcpyName[] =
228 * File name selection pattern
230 tSCC zAab_Sun_MemcpyList[] =
233 * Machine/OS name selection pattern
235 #define apzAab_Sun_MemcpyMachs (const char**)NULL
238 * content selection pattern - do fix if pattern found
240 tSCC zAab_Sun_MemcpySelect0[] =
241 "/\\*\t@\\(#\\)(head/memory.h\t50.1\t |memory\\.h 1\\.[2-4] 8./../.. SMI; from S5R2 1\\.2\t)\\*/";
243 #define AAB_SUN_MEMCPY_TEST_CT 1
244 static tTestDesc aAab_Sun_MemcpyTests[] = {
245 { TT_EGREP, zAab_Sun_MemcpySelect0, (regex_t*)NULL }, };
248 * Fix Command Arguments for Aab_Sun_Memcpy
250 static const char* apzAab_Sun_MemcpyPatch[] = {
251 "/* This file was generated by fixincludes */\n\
252 #ifndef __memory_h__\n\
253 #define __memory_h__\n\n\
255 extern void *memccpy();\n\
256 extern void *memchr();\n\
257 extern void *memcpy();\n\
258 extern void *memset();\n\
260 extern char *memccpy();\n\
261 extern char *memchr();\n\
262 extern char *memcpy();\n\
263 extern char *memset();\n\
264 #endif /* __STDC__ */\n\n\
265 extern int memcmp();\n\n\
266 #endif /* __memory_h__ */\n\
270 * Completely replace <sys/varargs.h> with a file that includes gcc's\n\
271 * stdarg.h or varargs.h files as appropriate.\n\
275 hackname = AAB_svr4_no_varargs;\n\
276 files = sys/varargs.h;\n\
277 replace = \"/* This file was generated by fixincludes. */\\n\"\n\
278 \"#ifndef _SYS_VARARGS_H\\n\"\n\
279 \"#define _SYS_VARARGS_H\\n\\n\"\n\n\
280 \"#ifdef __STDC__\\n\"\n\
281 \"#include <stdarg.h>\\n\"\n\
283 \"#include <varargs.h>\\n\"\n\
284 \"#endif\\n\\n\"\n\n\
285 \"#endif /* _SYS_VARARGS_H */\\n\";\n\
289 * Completely replace <sys/byteorder.h> with a file that implements gcc's\n\
290 * optimized byteswapping. (The original probably implemented some\n\
291 * incompatible optimized byteswapping.)\n\
294 hackname = AAB_svr4_replace_byteorder;\n\
295 mach = \"*-*-sysv4*\";\n\
296 mach = \"i[34567]86-*-sysv5*\";\n\
297 mach = \"i[34567]86-*-sco3.2v5*\";\n\
298 mach = \"i[34567]86-*-udk*\";\n\
299 mach = \"i[34567]86-*-solaris2.[0-4]\";\n\
300 mach = \"powerpcle-*-solaris2.[0-4]\";\n\
301 mach = \"sparc-*-solaris2.[0-4]\";\n\
302 mach = \"i[34567]86-sequent-ptx*\";\n\
303 files = sys/byteorder.h;\n\
304 replace = <<- _EndOfHeader_\n\
305 #ifndef _SYS_BYTEORDER_H\n\
306 #define _SYS_BYTEORDER_H\n\n\
307 /* Functions to convert `short' and `long' quantities from host byte order\n\
308 to (internet) network byte order (i.e. big-endian).\n\n\
309 Written by Ron Guilmette (rfg@ncd.com).\n\n\
310 This isn't actually used by GCC. It is installed by fixinc.svr4.\n\n\
311 For big-endian machines these functions are essentially no-ops.\n\n\
312 For little-endian machines, we define the functions using specialized\n\
313 asm sequences in cases where doing so yields better code (e.g. i386). */\n\n\
314 #if !defined (__GNUC__) && !defined (__GNUG__)\n\
315 #error You lose! This file is only useful with GNU compilers.\n\
317 #ifndef __BYTE_ORDER__\n\
318 /* Byte order defines. These are as defined on UnixWare 1.1, but with\n\
319 double underscores added at the front and back. */\n\
320 #define __LITTLE_ENDIAN__ 1234\n\
321 #define __BIG_ENDIAN__ 4321\n\
322 #define __PDP_ENDIAN__ 3412\n\
325 static __inline__ unsigned long htonl (unsigned long);\n\
326 static __inline__ unsigned short htons (unsigned int);\n\
327 static __inline__ unsigned long ntohl (unsigned long);\n\
328 static __inline__ unsigned short ntohs (unsigned int);\n\
329 #endif /* defined (__STDC__) */\n\n\
330 #if defined (__i386__)\n\n\
331 #ifndef __BYTE_ORDER__\n\
332 #define __BYTE_ORDER__ __LITTLE_ENDIAN__\n\
334 /* Convert a host long to a network long. */\n\n\
335 /* We must use a new-style function definition, so that this will also\n\
336 be valid for C++. */\n\
337 static __inline__ unsigned long\n\
338 htonl (unsigned long __arg)\n\
340 register unsigned long __result;\n\n\
341 __asm__ (\"xchg%B0 %b0,%h0\n\
343 xchg%B0 %b0,%h0\" : \"=q\" (__result) : \"0\" (__arg));\n\
346 /* Convert a host short to a network short. */\n\n\
347 static __inline__ unsigned short\n\
348 htons (unsigned int __arg)\n\
350 register unsigned short __result;\n\n\
351 __asm__ (\"xchg%B0 %b0,%h0\" : \"=q\" (__result) : \"0\" (__arg));\n\
354 #elif (defined (__ns32k__) || defined (__vax__) || defined (__arm__))\n\n\
355 #ifndef __BYTE_ORDER__\n\
356 #define __BYTE_ORDER__ __LITTLE_ENDIAN__\n\
358 /* For other little-endian machines, using C code is just as efficient as\n\
359 using assembly code. */\n\n\
360 /* Convert a host long to a network long. */\n\n\
361 static __inline__ unsigned long\n\
362 htonl (unsigned long __arg)\n\
364 register unsigned long __result;\n\n\
365 __result = (__arg >> 24) & 0x000000ff;\n\
366 __result |= (__arg >> 8) & 0x0000ff00;\n\
367 __result |= (__arg << 8) & 0x00ff0000;\n\
368 __result |= (__arg << 24) & 0xff000000;\n\
371 /* Convert a host short to a network short. */\n\n\
372 static __inline__ unsigned short\n\
373 htons (unsigned int __arg)\n\
375 register unsigned short __result;\n\n\
376 __result = (__arg << 8) & 0xff00;\n\
377 __result |= (__arg >> 8) & 0x00ff;\n\
380 #else /* must be a big-endian machine */\n\n\
381 #ifndef __BYTE_ORDER__\n\
382 #define __BYTE_ORDER__ __BIG_ENDIAN__\n\
384 /* Convert a host long to a network long. */\n\n\
385 static __inline__ unsigned long\n\
386 htonl (unsigned long __arg)\n\
390 /* Convert a host short to a network short. */\n\n\
391 static __inline__ unsigned short\n\
392 htons (unsigned int __arg)\n\
396 #endif /* big-endian */\n\n\
397 /* Convert a network long to a host long. */\n\n\
398 static __inline__ unsigned long\n\
399 ntohl (unsigned long __arg)\n\
401 return htonl (__arg);\n\
403 /* Convert a network short to a host short. */\n\n\
404 static __inline__ unsigned short\n\
405 ntohs (unsigned int __arg)\n\
407 return htons (__arg);\n\
412 /* * * * * * * * * * * * * * * * * * * * * * * * * *
414 * Description of Aab_Ultrix_Ansi_Compat fix
416 tSCC zAab_Ultrix_Ansi_CompatName[] =
417 "AAB_ultrix_ansi_compat";
420 * File name selection pattern
422 tSCC zAab_Ultrix_Ansi_CompatList[] =
425 * Machine/OS name selection pattern
427 #define apzAab_Ultrix_Ansi_CompatMachs (const char**)NULL
430 * content selection pattern - do fix if pattern found
432 tSCC zAab_Ultrix_Ansi_CompatSelect0[] =
435 #define AAB_ULTRIX_ANSI_COMPAT_TEST_CT 1
436 static tTestDesc aAab_Ultrix_Ansi_CompatTests[] = {
437 { TT_EGREP, zAab_Ultrix_Ansi_CompatSelect0, (regex_t*)NULL }, };
440 * Fix Command Arguments for Aab_Ultrix_Ansi_Compat
442 static const char* apzAab_Ultrix_Ansi_CompatPatch[] = {
443 "/* This file intentionally left blank. */\n",
446 /* * * * * * * * * * * * * * * * * * * * * * * * * *
448 * Description of Aab_Ultrix_Limits fix
450 tSCC zAab_Ultrix_LimitsName[] =
454 * File name selection pattern
456 tSCC zAab_Ultrix_LimitsList[] =
459 * Machine/OS name selection pattern
461 tSCC* apzAab_Ultrix_LimitsMachs[] = {
464 #define AAB_ULTRIX_LIMITS_TEST_CT 0
465 #define aAab_Ultrix_LimitsTests (tTestDesc*)NULL
468 * Fix Command Arguments for Aab_Ultrix_Limits
470 static const char* apzAab_Ultrix_LimitsPatch[] = {
471 "#ifndef _LIMITS_INCLUDED\n\
472 #define _LIMITS_INCLUDED\n\
473 #include <sys/limits.h>\n\
474 #endif /* _LIMITS_INCLUDED */",
477 /* * * * * * * * * * * * * * * * * * * * * * * * * *
479 * Description of Aab_Ultrix_Memory fix
481 tSCC zAab_Ultrix_MemoryName[] =
485 * File name selection pattern
487 tSCC zAab_Ultrix_MemoryList[] =
490 * Machine/OS name selection pattern
492 tSCC* apzAab_Ultrix_MemoryMachs[] = {
495 #define AAB_ULTRIX_MEMORY_TEST_CT 0
496 #define aAab_Ultrix_MemoryTests (tTestDesc*)NULL
499 * Fix Command Arguments for Aab_Ultrix_Memory
501 static const char* apzAab_Ultrix_MemoryPatch[] = {
502 "#ifndef _MEMORY_INCLUDED\n\
503 #define _MEMORY_INCLUDED\n\
504 #include <strings.h>\n\
505 #endif /* _MEMORY_INCLUDED */",
508 /* * * * * * * * * * * * * * * * * * * * * * * * * *
510 * Description of Aab_Ultrix_String fix
512 tSCC zAab_Ultrix_StringName[] =
516 * File name selection pattern
518 tSCC zAab_Ultrix_StringList[] =
521 * Machine/OS name selection pattern
523 tSCC* apzAab_Ultrix_StringMachs[] = {
526 #define AAB_ULTRIX_STRING_TEST_CT 0
527 #define aAab_Ultrix_StringTests (tTestDesc*)NULL
530 * Fix Command Arguments for Aab_Ultrix_String
532 static const char* apzAab_Ultrix_StringPatch[] = {
533 "#ifndef _STRING_INCLUDED\n\
534 #define _STRING_INCLUDED\n\
535 #include <strings.h>\n\
536 #endif /* _STRING_INCLUDED */",
539 /* * * * * * * * * * * * * * * * * * * * * * * * * *
541 * Description of Aix_Pthread fix
543 tSCC zAix_PthreadName[] =
547 * File name selection pattern
549 tSCC zAix_PthreadList[] =
552 * Machine/OS name selection pattern
554 #define apzAix_PthreadMachs (const char**)NULL
557 * content selection pattern - do fix if pattern found
559 tSCC zAix_PthreadSelect0[] =
560 "(#define [A-Za-z_0-9]+)(\\\\\n\
564 #define AIX_PTHREAD_TEST_CT 1
565 static tTestDesc aAix_PthreadTests[] = {
566 { TT_EGREP, zAix_PthreadSelect0, (regex_t*)NULL }, };
569 * Fix Command Arguments for Aix_Pthread
571 static const char* apzAix_PthreadPatch[] = {
576 /* * * * * * * * * * * * * * * * * * * * * * * * * *
578 * Description of Aix_Sysmachine fix
580 tSCC zAix_SysmachineName[] =
584 * File name selection pattern
586 tSCC zAix_SysmachineList[] =
589 * Machine/OS name selection pattern
591 #define apzAix_SysmachineMachs (const char**)NULL
594 * content selection pattern - do fix if pattern found
596 tSCC zAix_SysmachineSelect0[] =
599 #define AIX_SYSMACHINE_TEST_CT 1
600 static tTestDesc aAix_SysmachineTests[] = {
601 { TT_EGREP, zAix_SysmachineSelect0, (regex_t*)NULL }, };
604 * Fix Command Arguments for Aix_Sysmachine
606 static const char* apzAix_SysmachinePatch[] = {
611 /* * * * * * * * * * * * * * * * * * * * * * * * * *
613 * Description of Aix_Syswait fix
615 tSCC zAix_SyswaitName[] =
619 * File name selection pattern
621 tSCC zAix_SyswaitList[] =
624 * Machine/OS name selection pattern
626 #define apzAix_SyswaitMachs (const char**)NULL
629 * content selection pattern - do fix if pattern found
631 tSCC zAix_SyswaitSelect0[] =
632 "^extern pid_t wait3\\(\\);\n";
633 tSCC zAix_SyswaitSelect1[] =
636 #define AIX_SYSWAIT_TEST_CT 2
637 static tTestDesc aAix_SyswaitTests[] = {
638 { TT_EGREP, zAix_SyswaitSelect0, (regex_t*)NULL },
639 { TT_EGREP, zAix_SyswaitSelect1, (regex_t*)NULL }, };
642 * Fix Command Arguments for Aix_Syswait
644 static const char* apzAix_SyswaitPatch[] = {
650 /* * * * * * * * * * * * * * * * * * * * * * * * * *
652 * Description of Aix_Syswait_2 fix
654 tSCC zAix_Syswait_2Name[] =
658 * File name selection pattern
660 tSCC zAix_Syswait_2List[] =
663 * Machine/OS name selection pattern
665 #define apzAix_Syswait_2Machs (const char**)NULL
668 * content selection pattern - do fix if pattern found
670 tSCC zAix_Syswait_2Select0[] =
671 "\\? (\\(\\(\\(\\(unsigned[^)]*\\)[^)]*\\) >> [^)]*\\) \\& 0xff\\) : -1)";
673 #define AIX_SYSWAIT_2_TEST_CT 1
674 static tTestDesc aAix_Syswait_2Tests[] = {
675 { TT_EGREP, zAix_Syswait_2Select0, (regex_t*)NULL }, };
678 * Fix Command Arguments for Aix_Syswait_2
680 static const char* apzAix_Syswait_2Patch[] = {
685 /* * * * * * * * * * * * * * * * * * * * * * * * * *
687 * Description of Aix_Volatile fix
689 tSCC zAix_VolatileName[] =
693 * File name selection pattern
695 tSCC zAix_VolatileList[] =
698 * Machine/OS name selection pattern
700 #define apzAix_VolatileMachs (const char**)NULL
703 * content selection pattern - do fix if pattern found
705 tSCC zAix_VolatileSelect0[] =
706 "typedef volatile int sig_atomic_t";
708 #define AIX_VOLATILE_TEST_CT 1
709 static tTestDesc aAix_VolatileTests[] = {
710 { TT_EGREP, zAix_VolatileSelect0, (regex_t*)NULL }, };
713 * Fix Command Arguments for Aix_Volatile
715 static const char* apzAix_VolatilePatch[] = {
717 "typedef int sig_atomic_t",
720 /* * * * * * * * * * * * * * * * * * * * * * * * * *
722 * Description of Alpha___Assert fix
724 tSCC zAlpha___AssertName[] =
728 * File name selection pattern
730 tSCC zAlpha___AssertList[] =
733 * Machine/OS name selection pattern
735 #define apzAlpha___AssertMachs (const char**)NULL
738 * content selection pattern - do fix if pattern found
740 tSCC zAlpha___AssertSelect0[] =
741 "__assert\\(char \\*, char \\*, int\\)";
743 #define ALPHA___ASSERT_TEST_CT 1
744 static tTestDesc aAlpha___AssertTests[] = {
745 { TT_EGREP, zAlpha___AssertSelect0, (regex_t*)NULL }, };
748 * Fix Command Arguments for Alpha___Assert
750 static const char* apzAlpha___AssertPatch[] = {
752 "__assert(const char *, const char *, int)",
755 /* * * * * * * * * * * * * * * * * * * * * * * * * *
757 * Description of Alpha___Extern_Prefix fix
759 tSCC zAlpha___Extern_PrefixName[] =
760 "alpha___extern_prefix";
763 * File name selection pattern
765 #define zAlpha___Extern_PrefixList (char*)NULL
767 * Machine/OS name selection pattern
769 tSCC* apzAlpha___Extern_PrefixMachs[] = {
774 * content selection pattern - do fix if pattern found
776 tSCC zAlpha___Extern_PrefixSelect0[] =
777 "(.*)(defined\\(__DECC\\)|def[ \t]*__DECC)[ \t]*\n\
778 (#[ \t]*pragma[ \t]*extern_prefix.*)";
780 #define ALPHA___EXTERN_PREFIX_TEST_CT 1
781 static tTestDesc aAlpha___Extern_PrefixTests[] = {
782 { TT_EGREP, zAlpha___Extern_PrefixSelect0, (regex_t*)NULL }, };
785 * Fix Command Arguments for Alpha___Extern_Prefix
787 static const char* apzAlpha___Extern_PrefixPatch[] = {
789 "%1 (defined(__DECC) || defined(__PRAGMA_EXTERN_PREFIX))\n\
793 /* * * * * * * * * * * * * * * * * * * * * * * * * *
795 * Description of Alpha___Extern_Prefix_Standards fix
797 tSCC zAlpha___Extern_Prefix_StandardsName[] =
798 "alpha___extern_prefix_standards";
801 * File name selection pattern
803 tSCC zAlpha___Extern_Prefix_StandardsList[] =
806 * Machine/OS name selection pattern
808 tSCC* apzAlpha___Extern_Prefix_StandardsMachs[] = {
813 * content selection pattern - do fix if pattern found
815 tSCC zAlpha___Extern_Prefix_StandardsSelect0[] =
816 ".*!defined\\(_LIBC_POLLUTION_H_\\) && !defined\\(__DECC\\)";
818 #define ALPHA___EXTERN_PREFIX_STANDARDS_TEST_CT 1
819 static tTestDesc aAlpha___Extern_Prefix_StandardsTests[] = {
820 { TT_EGREP, zAlpha___Extern_Prefix_StandardsSelect0, (regex_t*)NULL }, };
823 * Fix Command Arguments for Alpha___Extern_Prefix_Standards
825 static const char* apzAlpha___Extern_Prefix_StandardsPatch[] = {
827 "%0 && !defined(__PRAGMA_EXTERN_PREFIX)",
830 /* * * * * * * * * * * * * * * * * * * * * * * * * *
832 * Description of Alpha___Extern_Prefix_Sys_Stat fix
834 tSCC zAlpha___Extern_Prefix_Sys_StatName[] =
835 "alpha___extern_prefix_sys_stat";
838 * File name selection pattern
840 tSCC zAlpha___Extern_Prefix_Sys_StatList[] =
841 "|sys/stat.h|sys/mount.h|";
843 * Machine/OS name selection pattern
845 tSCC* apzAlpha___Extern_Prefix_Sys_StatMachs[] = {
850 * content selection pattern - do fix if pattern found
852 tSCC zAlpha___Extern_Prefix_Sys_StatSelect0[] =
853 "#[ \t]*if[ \t]*defined\\(__DECC\\)";
855 #define ALPHA___EXTERN_PREFIX_SYS_STAT_TEST_CT 1
856 static tTestDesc aAlpha___Extern_Prefix_Sys_StatTests[] = {
857 { TT_EGREP, zAlpha___Extern_Prefix_Sys_StatSelect0, (regex_t*)NULL }, };
860 * Fix Command Arguments for Alpha___Extern_Prefix_Sys_Stat
862 static const char* apzAlpha___Extern_Prefix_Sys_StatPatch[] = {
864 "%0 || defined(__PRAGMA_EXTERN_PREFIX)",
867 /* * * * * * * * * * * * * * * * * * * * * * * * * *
869 * Description of Alpha_Assert fix
871 tSCC zAlpha_AssertName[] =
875 * File name selection pattern
877 tSCC zAlpha_AssertList[] =
880 * Machine/OS name selection pattern
882 #define apzAlpha_AssertMachs (const char**)NULL
885 * content selection pattern - do fix if pattern found
887 tSCC zAlpha_AssertSelect0[] =
888 "(#define assert\\(EX\\).*)\\(\\(int\\) \\(EX\\)\\)";
890 #define ALPHA_ASSERT_TEST_CT 1
891 static tTestDesc aAlpha_AssertTests[] = {
892 { TT_EGREP, zAlpha_AssertSelect0, (regex_t*)NULL }, };
895 * Fix Command Arguments for Alpha_Assert
897 static const char* apzAlpha_AssertPatch[] = {
902 /* * * * * * * * * * * * * * * * * * * * * * * * * *
904 * Description of Alpha_Bad_Lval fix
906 tSCC zAlpha_Bad_LvalName[] =
910 * File name selection pattern
912 #define zAlpha_Bad_LvalList (char*)NULL
914 * Machine/OS name selection pattern
916 tSCC* apzAlpha_Bad_LvalMachs[] = {
921 * content selection pattern - do fix if pattern found
923 tSCC zAlpha_Bad_LvalSelect0[] =
924 "^[ \t]*#[ \t]*pragma[ \t]+extern_prefix";
926 #define ALPHA_BAD_LVAL_TEST_CT 1
927 static tTestDesc aAlpha_Bad_LvalTests[] = {
928 { TT_EGREP, zAlpha_Bad_LvalSelect0, (regex_t*)NULL }, };
931 * Fix Command Arguments for Alpha_Bad_Lval
933 static const char* apzAlpha_Bad_LvalPatch[] = { "sed",
934 "-e", "s/^[ \t]*#[ \t]*define[ \t][ \t]*\\([^(]*\\)\\(([^)]*)\\)[ \t]*\\(_.*\\)\\1\\2[ \t]*$/#define \\1 \\3\\1/",
937 /* * * * * * * * * * * * * * * * * * * * * * * * * *
939 * Description of Alpha_Getopt fix
941 tSCC zAlpha_GetoptName[] =
945 * File name selection pattern
947 tSCC zAlpha_GetoptList[] =
948 "|stdio.h|stdlib.h|";
950 * Machine/OS name selection pattern
952 #define apzAlpha_GetoptMachs (const char**)NULL
955 * content selection pattern - do fix if pattern found
957 tSCC zAlpha_GetoptSelect0[] =
958 "getopt\\(int, char \\*\\[\\], *char \\*\\)";
960 #define ALPHA_GETOPT_TEST_CT 1
961 static tTestDesc aAlpha_GetoptTests[] = {
962 { TT_EGREP, zAlpha_GetoptSelect0, (regex_t*)NULL }, };
965 * Fix Command Arguments for Alpha_Getopt
967 static const char* apzAlpha_GetoptPatch[] = {
969 "getopt(int, char *const[], const char *)",
972 /* * * * * * * * * * * * * * * * * * * * * * * * * *
974 * Description of Alpha_Parens fix
976 tSCC zAlpha_ParensName[] =
980 * File name selection pattern
982 tSCC zAlpha_ParensList[] =
985 * Machine/OS name selection pattern
987 #define apzAlpha_ParensMachs (const char**)NULL
990 * content selection pattern - do fix if pattern found
992 tSCC zAlpha_ParensSelect0[] =
993 "#ifndef\\(__mips64\\)";
995 #define ALPHA_PARENS_TEST_CT 1
996 static tTestDesc aAlpha_ParensTests[] = {
997 { TT_EGREP, zAlpha_ParensSelect0, (regex_t*)NULL }, };
1000 * Fix Command Arguments for Alpha_Parens
1002 static const char* apzAlpha_ParensPatch[] = {
1007 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1009 * Description of Alpha_Pthread fix
1011 tSCC zAlpha_PthreadName[] =
1015 * File name selection pattern
1017 tSCC zAlpha_PthreadList[] =
1020 * Machine/OS name selection pattern
1022 tSCC* apzAlpha_PthreadMachs[] = {
1024 (const char*)NULL };
1027 * content selection pattern - do fix if pattern found
1029 tSCC zAlpha_PthreadSelect0[] =
1030 "((#[ \t]*if)([ \t]*defined[ \t]*\\(_PTHREAD_ENV_DECC\\)|def _PTHREAD_ENV_DECC)(.*))\n\
1031 (#[ \t]*define _PTHREAD_USE_PTDNAM_)";
1033 #define ALPHA_PTHREAD_TEST_CT 1
1034 static tTestDesc aAlpha_PthreadTests[] = {
1035 { TT_EGREP, zAlpha_PthreadSelect0, (regex_t*)NULL }, };
1038 * Fix Command Arguments for Alpha_Pthread
1040 static const char* apzAlpha_PthreadPatch[] = {
1042 "%2 defined (_PTHREAD_ENV_DECC)%4 || defined (__PRAGMA_EXTERN_PREFIX)\n\
1046 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1048 * Description of Alpha_Pthread_Gcc fix
1050 tSCC zAlpha_Pthread_GccName[] =
1051 "alpha_pthread_gcc";
1054 * File name selection pattern
1056 tSCC zAlpha_Pthread_GccList[] =
1059 * Machine/OS name selection pattern
1061 tSCC* apzAlpha_Pthread_GccMachs[] = {
1063 (const char*)NULL };
1066 * content selection pattern - do fix if pattern found
1068 tSCC zAlpha_Pthread_GccSelect0[] =
1070 # error <pthread.h>: unrecognized compiler.";
1072 #define ALPHA_PTHREAD_GCC_TEST_CT 1
1073 static tTestDesc aAlpha_Pthread_GccTests[] = {
1074 { TT_EGREP, zAlpha_Pthread_GccSelect0, (regex_t*)NULL }, };
1077 * Fix Command Arguments for Alpha_Pthread_Gcc
1079 static const char* apzAlpha_Pthread_GccPatch[] = {
1081 "#elif defined (__GNUC__)\n\
1082 # define _PTHREAD_ENV_GCC\n\
1086 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1088 * Description of Alpha_Sbrk fix
1090 tSCC zAlpha_SbrkName[] =
1094 * File name selection pattern
1096 tSCC zAlpha_SbrkList[] =
1099 * Machine/OS name selection pattern
1101 #define apzAlpha_SbrkMachs (const char**)NULL
1104 * content selection pattern - do fix if pattern found
1106 tSCC zAlpha_SbrkSelect0[] =
1107 "char[ \t]*\\*[\t ]*sbrk[ \t]*\\(";
1109 #define ALPHA_SBRK_TEST_CT 1
1110 static tTestDesc aAlpha_SbrkTests[] = {
1111 { TT_EGREP, zAlpha_SbrkSelect0, (regex_t*)NULL }, };
1114 * Fix Command Arguments for Alpha_Sbrk
1116 static const char* apzAlpha_SbrkPatch[] = {
1121 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1123 * Description of Alpha_Wchar fix
1125 tSCC zAlpha_WcharName[] =
1129 * File name selection pattern
1131 tSCC zAlpha_WcharList[] =
1134 * Machine/OS name selection pattern
1136 tSCC* apzAlpha_WcharMachs[] = {
1138 (const char*)NULL };
1141 * content selection pattern - do fix if pattern found
1143 tSCC zAlpha_WcharSelect0[] =
1144 "#define wcstok wcstok_r";
1146 #define ALPHA_WCHAR_TEST_CT 1
1147 static tTestDesc aAlpha_WcharTests[] = {
1148 { TT_EGREP, zAlpha_WcharSelect0, (regex_t*)NULL }, };
1151 * Fix Command Arguments for Alpha_Wchar
1153 static const char* apzAlpha_WcharPatch[] = { "sed",
1154 "-e", "s@#define wcstok wcstok_r@extern wchar_t *wcstok __((wchar_t *, const wchar_t *, wchar_t **)) __asm__(\"wcstok_r\");@",
1155 "-e", "s@#define wcsftime __wcsftime_isoc@extern size_t wcsftime __((wchar_t *, size_t, const wchar_t *, const struct tm *)) __asm__(\"__wcsftime_isoc\");@",
1158 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1160 * Description of Avoid_Bool_Define fix
1162 tSCC zAvoid_Bool_DefineName[] =
1163 "avoid_bool_define";
1166 * File name selection pattern
1168 tSCC zAvoid_Bool_DefineList[] =
1169 "|curses.h|curses_colr/curses.h|term.h|tinfo.h|";
1171 * Machine/OS name selection pattern
1173 #define apzAvoid_Bool_DefineMachs (const char**)NULL
1176 * content selection pattern - do fix if pattern found
1178 tSCC zAvoid_Bool_DefineSelect0[] =
1179 "#[ \t]*define[ \t]+bool[ \t]";
1182 * content bypass pattern - skip fix if pattern found
1184 tSCC zAvoid_Bool_DefineBypass0[] =
1187 #define AVOID_BOOL_DEFINE_TEST_CT 2
1188 static tTestDesc aAvoid_Bool_DefineTests[] = {
1189 { TT_NEGREP, zAvoid_Bool_DefineBypass0, (regex_t*)NULL },
1190 { TT_EGREP, zAvoid_Bool_DefineSelect0, (regex_t*)NULL }, };
1193 * Fix Command Arguments for Avoid_Bool_Define
1195 static const char* apzAvoid_Bool_DefinePatch[] = {
1197 "#ifndef __cplusplus\n\
1200 "^[ \t]*#[ \t]*define[ \t]+bool[ \t].*",
1203 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1205 * Description of Avoid_Bool_Type fix
1207 tSCC zAvoid_Bool_TypeName[] =
1211 * File name selection pattern
1213 tSCC zAvoid_Bool_TypeList[] =
1214 "|curses.h|curses_colr/curses.h|term.h|tinfo.h|";
1216 * Machine/OS name selection pattern
1218 #define apzAvoid_Bool_TypeMachs (const char**)NULL
1221 * content selection pattern - do fix if pattern found
1223 tSCC zAvoid_Bool_TypeSelect0[] =
1224 "^[ \t]*typedef[ \t].*[ \t]bool[ \t]*;";
1227 * content bypass pattern - skip fix if pattern found
1229 tSCC zAvoid_Bool_TypeBypass0[] =
1232 #define AVOID_BOOL_TYPE_TEST_CT 2
1233 static tTestDesc aAvoid_Bool_TypeTests[] = {
1234 { TT_NEGREP, zAvoid_Bool_TypeBypass0, (regex_t*)NULL },
1235 { TT_EGREP, zAvoid_Bool_TypeSelect0, (regex_t*)NULL }, };
1238 * Fix Command Arguments for Avoid_Bool_Type
1240 static const char* apzAvoid_Bool_TypePatch[] = {
1242 "#ifndef __cplusplus\n\
1247 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1249 * Description of Avoid_Wchar_T_Type fix
1251 tSCC zAvoid_Wchar_T_TypeName[] =
1252 "avoid_wchar_t_type";
1255 * File name selection pattern
1257 #define zAvoid_Wchar_T_TypeList (char*)NULL
1259 * Machine/OS name selection pattern
1261 #define apzAvoid_Wchar_T_TypeMachs (const char**)NULL
1264 * content selection pattern - do fix if pattern found
1266 tSCC zAvoid_Wchar_T_TypeSelect0[] =
1267 "^[ \t]*typedef[ \t].*[ \t]wchar_t[ \t]*;";
1270 * content bypass pattern - skip fix if pattern found
1272 tSCC zAvoid_Wchar_T_TypeBypass0[] =
1274 tSCC zAvoid_Wchar_T_TypeBypass1[] =
1276 tSCC zAvoid_Wchar_T_TypeBypass2[] =
1277 "XFree86: xc/lib/X11/Xlib\\.h";
1279 #define AVOID_WCHAR_T_TYPE_TEST_CT 4
1280 static tTestDesc aAvoid_Wchar_T_TypeTests[] = {
1281 { TT_NEGREP, zAvoid_Wchar_T_TypeBypass0, (regex_t*)NULL },
1282 { TT_NEGREP, zAvoid_Wchar_T_TypeBypass1, (regex_t*)NULL },
1283 { TT_NEGREP, zAvoid_Wchar_T_TypeBypass2, (regex_t*)NULL },
1284 { TT_EGREP, zAvoid_Wchar_T_TypeSelect0, (regex_t*)NULL }, };
1287 * Fix Command Arguments for Avoid_Wchar_T_Type
1289 static const char* apzAvoid_Wchar_T_TypePatch[] = {
1291 "#ifndef __cplusplus\n\
1296 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1298 * Description of Bad_Struct_Term fix
1300 tSCC zBad_Struct_TermName[] =
1304 * File name selection pattern
1306 tSCC zBad_Struct_TermList[] =
1309 * Machine/OS name selection pattern
1311 #define apzBad_Struct_TermMachs (const char**)NULL
1314 * content selection pattern - do fix if pattern found
1316 tSCC zBad_Struct_TermSelect0[] =
1317 "^[ \t]*typedef[ \t]+struct[ \t]+term[ \t]*;";
1319 #define BAD_STRUCT_TERM_TEST_CT 1
1320 static tTestDesc aBad_Struct_TermTests[] = {
1321 { TT_EGREP, zBad_Struct_TermSelect0, (regex_t*)NULL }, };
1324 * Fix Command Arguments for Bad_Struct_Term
1326 static const char* apzBad_Struct_TermPatch[] = {
1331 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1333 * Description of Badquote fix
1335 tSCC zBadquoteName[] =
1339 * File name selection pattern
1341 tSCC zBadquoteList[] =
1342 "|sundev/vuid_event.h|";
1344 * Machine/OS name selection pattern
1346 #define apzBadquoteMachs (const char**)NULL
1349 * content selection pattern - do fix if pattern found
1351 tSCC zBadquoteSelect0[] =
1354 #define BADQUOTE_TEST_CT 1
1355 static tTestDesc aBadquoteTests[] = {
1356 { TT_EGREP, zBadquoteSelect0, (regex_t*)NULL }, };
1359 * Fix Command Arguments for Badquote
1361 static const char* apzBadquotePatch[] = {
1366 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1368 * Description of Broken_Assert_Stdio fix
1370 tSCC zBroken_Assert_StdioName[] =
1371 "broken_assert_stdio";
1374 * File name selection pattern
1376 tSCC zBroken_Assert_StdioList[] =
1379 * Machine/OS name selection pattern
1381 #define apzBroken_Assert_StdioMachs (const char**)NULL
1384 * content selection pattern - do fix if pattern found
1386 tSCC zBroken_Assert_StdioSelect0[] =
1390 * content bypass pattern - skip fix if pattern found
1392 tSCC zBroken_Assert_StdioBypass0[] =
1393 "include.*stdio\\.h";
1395 #define BROKEN_ASSERT_STDIO_TEST_CT 2
1396 static tTestDesc aBroken_Assert_StdioTests[] = {
1397 { TT_NEGREP, zBroken_Assert_StdioBypass0, (regex_t*)NULL },
1398 { TT_EGREP, zBroken_Assert_StdioSelect0, (regex_t*)NULL }, };
1401 * Fix Command Arguments for Broken_Assert_Stdio
1403 static const char* apzBroken_Assert_StdioPatch[] = {
1405 "#include <stdio.h>\n",
1408 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1410 * Description of Broken_Assert_Stdlib fix
1412 tSCC zBroken_Assert_StdlibName[] =
1413 "broken_assert_stdlib";
1416 * File name selection pattern
1418 tSCC zBroken_Assert_StdlibList[] =
1421 * Machine/OS name selection pattern
1423 #define apzBroken_Assert_StdlibMachs (const char**)NULL
1426 * content selection pattern - do fix if pattern found
1428 tSCC zBroken_Assert_StdlibSelect0[] =
1429 "exit *\\(|abort *\\(";
1432 * content bypass pattern - skip fix if pattern found
1434 tSCC zBroken_Assert_StdlibBypass0[] =
1435 "include.*stdlib\\.h";
1437 #define BROKEN_ASSERT_STDLIB_TEST_CT 2
1438 static tTestDesc aBroken_Assert_StdlibTests[] = {
1439 { TT_NEGREP, zBroken_Assert_StdlibBypass0, (regex_t*)NULL },
1440 { TT_EGREP, zBroken_Assert_StdlibSelect0, (regex_t*)NULL }, };
1443 * Fix Command Arguments for Broken_Assert_Stdlib
1445 static const char* apzBroken_Assert_StdlibPatch[] = {
1447 "#ifdef __cplusplus\n\
1448 #include <stdlib.h>\n\
1452 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1454 * Description of Broken_Cabs fix
1456 tSCC zBroken_CabsName[] =
1460 * File name selection pattern
1462 tSCC zBroken_CabsList[] =
1463 "|math.h|architecture/ppc/math.h|architecture/i386/math.h|";
1465 * Machine/OS name selection pattern
1467 #define apzBroken_CabsMachs (const char**)NULL
1470 * content selection pattern - do fix if pattern found
1472 tSCC zBroken_CabsSelect0[] =
1473 "^extern[ \\t]+double[ \\t]+cabs";
1475 #define BROKEN_CABS_TEST_CT 1
1476 static tTestDesc aBroken_CabsTests[] = {
1477 { TT_EGREP, zBroken_CabsSelect0, (regex_t*)NULL }, };
1480 * Fix Command Arguments for Broken_Cabs
1482 static const char* apzBroken_CabsPatch[] = {
1485 "^extern[ \t]+double[ \t]+cabs[ \t]*\\([^\\)]*\\);",
1488 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1490 * Description of Bsd_Stdio_Attrs_Conflict fix
1492 tSCC zBsd_Stdio_Attrs_ConflictName[] =
1493 "bsd_stdio_attrs_conflict";
1496 * File name selection pattern
1498 tSCC zBsd_Stdio_Attrs_ConflictList[] =
1501 * Machine/OS name selection pattern
1503 tSCC* apzBsd_Stdio_Attrs_ConflictMachs[] = {
1506 (const char*)NULL };
1509 * content selection pattern - do fix if pattern found
1511 tSCC zBsd_Stdio_Attrs_ConflictSelect0[] =
1512 "^#define[ \t]*vfscanf[ \t]*__svfscanf[ \t]*$";
1514 #define BSD_STDIO_ATTRS_CONFLICT_TEST_CT 1
1515 static tTestDesc aBsd_Stdio_Attrs_ConflictTests[] = {
1516 { TT_EGREP, zBsd_Stdio_Attrs_ConflictSelect0, (regex_t*)NULL }, };
1519 * Fix Command Arguments for Bsd_Stdio_Attrs_Conflict
1521 static const char* apzBsd_Stdio_Attrs_ConflictPatch[] = {
1523 "#define _BSD_STRING(_BSD_X) _BSD_STRINGX(_BSD_X)\n\
1524 #define _BSD_STRINGX(_BSD_X) #_BSD_X\n\
1525 int vfscanf(FILE *, const char *, __builtin_va_list) __asm__ (_BSD_STRING(__USER_LABEL_PREFIX__) \"__svfscanf\");",
1528 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1530 * Description of Ctrl_Quotes_Def fix
1532 tSCC zCtrl_Quotes_DefName[] =
1536 * File name selection pattern
1538 #define zCtrl_Quotes_DefList (char*)NULL
1540 * Machine/OS name selection pattern
1542 #define apzCtrl_Quotes_DefMachs (const char**)NULL
1545 * content selection pattern - do fix if pattern found
1547 tSCC zCtrl_Quotes_DefSelect0[] =
1548 "define[ \t]+[A-Z0-9_]+CTRL\\([a-zA-Z][,)]";
1550 #define CTRL_QUOTES_DEF_TEST_CT 1
1551 static tTestDesc aCtrl_Quotes_DefTests[] = {
1552 { TT_EGREP, zCtrl_Quotes_DefSelect0, (regex_t*)NULL }, };
1555 * Fix Command Arguments for Ctrl_Quotes_Def
1557 static const char* apzCtrl_Quotes_DefPatch[] = {
1562 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1564 * Description of Ctrl_Quotes_Use fix
1566 tSCC zCtrl_Quotes_UseName[] =
1570 * File name selection pattern
1572 #define zCtrl_Quotes_UseList (char*)NULL
1574 * Machine/OS name selection pattern
1576 #define apzCtrl_Quotes_UseMachs (const char**)NULL
1579 * content selection pattern - do fix if pattern found
1581 tSCC zCtrl_Quotes_UseSelect0[] =
1582 "define[ \t]+[A-Z0-9_]+[ \t]+[A-Z0-9_]+CTRL[ \t]*\\( *[^,']";
1584 #define CTRL_QUOTES_USE_TEST_CT 1
1585 static tTestDesc aCtrl_Quotes_UseTests[] = {
1586 { TT_EGREP, zCtrl_Quotes_UseSelect0, (regex_t*)NULL }, };
1589 * Fix Command Arguments for Ctrl_Quotes_Use
1591 static const char* apzCtrl_Quotes_UsePatch[] = {
1596 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1598 * Description of Cxx_Unready fix
1600 tSCC zCxx_UnreadyName[] =
1604 * File name selection pattern
1606 tSCC zCxx_UnreadyList[] =
1607 "|sys/mman.h|rpc/types.h|";
1609 * Machine/OS name selection pattern
1611 #define apzCxx_UnreadyMachs (const char**)NULL
1614 * content selection pattern - do fix if pattern found
1616 tSCC zCxx_UnreadySelect0[] =
1620 * content bypass pattern - skip fix if pattern found
1622 tSCC zCxx_UnreadyBypass0[] =
1623 "\"C\"|__BEGIN_DECLS";
1625 #define CXX_UNREADY_TEST_CT 2
1626 static tTestDesc aCxx_UnreadyTests[] = {
1627 { TT_NEGREP, zCxx_UnreadyBypass0, (regex_t*)NULL },
1628 { TT_EGREP, zCxx_UnreadySelect0, (regex_t*)NULL }, };
1631 * Fix Command Arguments for Cxx_Unready
1633 static const char* apzCxx_UnreadyPatch[] = {
1635 "#ifdef __cplusplus\n\
1638 "#ifdef __cplusplus\n\
1643 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1645 * Description of Darwin_Gcc4_Breakage fix
1647 tSCC zDarwin_Gcc4_BreakageName[] =
1648 "darwin_gcc4_breakage";
1651 * File name selection pattern
1653 tSCC zDarwin_Gcc4_BreakageList[] =
1654 "|AvailabilityMacros.h|";
1656 * Machine/OS name selection pattern
1658 tSCC* apzDarwin_Gcc4_BreakageMachs[] = {
1660 (const char*)NULL };
1663 * content selection pattern - do fix if pattern found
1665 tSCC zDarwin_Gcc4_BreakageSelect0[] =
1666 "\\(__GNUC__ >= 3\\) && \\(__GNUC_MINOR__ >= 1\\)";
1668 #define DARWIN_GCC4_BREAKAGE_TEST_CT 1
1669 static tTestDesc aDarwin_Gcc4_BreakageTests[] = {
1670 { TT_EGREP, zDarwin_Gcc4_BreakageSelect0, (regex_t*)NULL }, };
1673 * Fix Command Arguments for Darwin_Gcc4_Breakage
1675 static const char* apzDarwin_Gcc4_BreakagePatch[] = {
1677 "((__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 1))",
1680 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1682 * Description of Darwin_Private_Extern fix
1684 tSCC zDarwin_Private_ExternName[] =
1685 "darwin_private_extern";
1688 * File name selection pattern
1690 tSCC zDarwin_Private_ExternList[] =
1693 * Machine/OS name selection pattern
1695 tSCC* apzDarwin_Private_ExternMachs[] = {
1697 (const char*)NULL };
1700 * content selection pattern - do fix if pattern found
1702 tSCC zDarwin_Private_ExternSelect0[] =
1703 "__private_extern__ [a-z_]+ _dyld_";
1705 #define DARWIN_PRIVATE_EXTERN_TEST_CT 1
1706 static tTestDesc aDarwin_Private_ExternTests[] = {
1707 { TT_EGREP, zDarwin_Private_ExternSelect0, (regex_t*)NULL }, };
1710 * Fix Command Arguments for Darwin_Private_Extern
1712 static const char* apzDarwin_Private_ExternPatch[] = {
1715 "__private_extern__",
1718 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1720 * Description of Dec_Intern_Asm fix
1722 tSCC zDec_Intern_AsmName[] =
1726 * File name selection pattern
1728 tSCC zDec_Intern_AsmList[] =
1731 * Machine/OS name selection pattern
1733 #define apzDec_Intern_AsmMachs (const char**)NULL
1734 #define DEC_INTERN_ASM_TEST_CT 0
1735 #define aDec_Intern_AsmTests (tTestDesc*)NULL
1738 * Fix Command Arguments for Dec_Intern_Asm
1740 static const char* apzDec_Intern_AsmPatch[] = { "sed",
1741 "-e", "/^[ \t]*float[ \t]*fasm/i\\\n\
1743 "-e", "/^[ \t]*#[ \t]*pragma[ \t]*intrinsic([ \t]*dasm/a\\\n\
1747 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1749 * Description of Djgpp_Wchar_H fix
1751 tSCC zDjgpp_Wchar_HName[] =
1755 * File name selection pattern
1757 #define zDjgpp_Wchar_HList (char*)NULL
1759 * Machine/OS name selection pattern
1761 #define apzDjgpp_Wchar_HMachs (const char**)NULL
1764 * content selection pattern - do fix if pattern found
1766 tSCC zDjgpp_Wchar_HSelect0[] =
1770 * content bypass pattern - skip fix if pattern found
1772 tSCC zDjgpp_Wchar_HBypass0[] =
1775 #define DJGPP_WCHAR_H_TEST_CT 2
1776 static tTestDesc aDjgpp_Wchar_HTests[] = {
1777 { TT_NEGREP, zDjgpp_Wchar_HBypass0, (regex_t*)NULL },
1778 { TT_EGREP, zDjgpp_Wchar_HSelect0, (regex_t*)NULL }, };
1781 * Fix Command Arguments for Djgpp_Wchar_H
1783 static const char* apzDjgpp_Wchar_HPatch[] = {
1786 #include <sys/djtypes.h>",
1787 "#include <stddef.h>",
1790 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1792 * Description of Ecd_Cursor fix
1794 tSCC zEcd_CursorName[] =
1798 * File name selection pattern
1800 tSCC zEcd_CursorList[] =
1801 "|sunwindow/win_lock.h|sunwindow/win_cursor.h|";
1803 * Machine/OS name selection pattern
1805 #define apzEcd_CursorMachs (const char**)NULL
1808 * content selection pattern - do fix if pattern found
1810 tSCC zEcd_CursorSelect0[] =
1813 #define ECD_CURSOR_TEST_CT 1
1814 static tTestDesc aEcd_CursorTests[] = {
1815 { TT_EGREP, zEcd_CursorSelect0, (regex_t*)NULL }, };
1818 * Fix Command Arguments for Ecd_Cursor
1820 static const char* apzEcd_CursorPatch[] = {
1825 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1827 * Description of Exception_Structure fix
1829 tSCC zException_StructureName[] =
1830 "exception_structure";
1833 * File name selection pattern
1835 tSCC zException_StructureList[] =
1838 * Machine/OS name selection pattern
1840 #define apzException_StructureMachs (const char**)NULL
1843 * content selection pattern - do fix if pattern found
1845 tSCC zException_StructureSelect0[] =
1849 * content bypass pattern - skip fix if pattern found
1851 tSCC zException_StructureBypass0[] =
1852 "matherr.*(struct exception|__MATH_EXCEPTION|[ \\t]*__FP_EXCEPTION[ \\t]*\\*[ \\t]*)";
1854 #define EXCEPTION_STRUCTURE_TEST_CT 2
1855 static tTestDesc aException_StructureTests[] = {
1856 { TT_NEGREP, zException_StructureBypass0, (regex_t*)NULL },
1857 { TT_EGREP, zException_StructureSelect0, (regex_t*)NULL }, };
1860 * Fix Command Arguments for Exception_Structure
1862 static const char* apzException_StructurePatch[] = {
1864 "struct exception;\n",
1867 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1869 * Description of Freebsd_Gcc3_Breakage fix
1871 tSCC zFreebsd_Gcc3_BreakageName[] =
1872 "freebsd_gcc3_breakage";
1875 * File name selection pattern
1877 tSCC zFreebsd_Gcc3_BreakageList[] =
1880 * Machine/OS name selection pattern
1882 tSCC* apzFreebsd_Gcc3_BreakageMachs[] = {
1884 (const char*)NULL };
1887 * content selection pattern - do fix if pattern found
1889 tSCC zFreebsd_Gcc3_BreakageSelect0[] =
1890 "^#if __GNUC__ == 2 && __GNUC_MINOR__ >= 7$";
1893 * content bypass pattern - skip fix if pattern found
1895 tSCC zFreebsd_Gcc3_BreakageBypass0[] =
1896 "__GNUC__[ \\t]*([>=]=[ \\t]*[3-9]|>[ \\t]*2)";
1898 #define FREEBSD_GCC3_BREAKAGE_TEST_CT 2
1899 static tTestDesc aFreebsd_Gcc3_BreakageTests[] = {
1900 { TT_NEGREP, zFreebsd_Gcc3_BreakageBypass0, (regex_t*)NULL },
1901 { TT_EGREP, zFreebsd_Gcc3_BreakageSelect0, (regex_t*)NULL }, };
1904 * Fix Command Arguments for Freebsd_Gcc3_Breakage
1906 static const char* apzFreebsd_Gcc3_BreakagePatch[] = {
1908 "%0 || __GNUC__ >= 3",
1911 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1913 * Description of Freebsd_Gcc4_Breakage fix
1915 tSCC zFreebsd_Gcc4_BreakageName[] =
1916 "freebsd_gcc4_breakage";
1919 * File name selection pattern
1921 tSCC zFreebsd_Gcc4_BreakageList[] =
1924 * Machine/OS name selection pattern
1926 tSCC* apzFreebsd_Gcc4_BreakageMachs[] = {
1928 (const char*)NULL };
1931 * content selection pattern - do fix if pattern found
1933 tSCC zFreebsd_Gcc4_BreakageSelect0[] =
1934 "^#if __GNUC__ == 2 && __GNUC_MINOR__ >= 7 \\|\\| __GNUC__ == 3$";
1936 #define FREEBSD_GCC4_BREAKAGE_TEST_CT 1
1937 static tTestDesc aFreebsd_Gcc4_BreakageTests[] = {
1938 { TT_EGREP, zFreebsd_Gcc4_BreakageSelect0, (regex_t*)NULL }, };
1941 * Fix Command Arguments for Freebsd_Gcc4_Breakage
1943 static const char* apzFreebsd_Gcc4_BreakagePatch[] = {
1945 "#if __GNUC__ == 2 && __GNUC_MINOR__ >= 7 || __GNUC__ >= 3",
1948 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1950 * Description of Gnu_Types fix
1952 tSCC zGnu_TypesName[] =
1956 * File name selection pattern
1958 tSCC zGnu_TypesList[] =
1959 "|sys/types.h|stdlib.h|sys/stdtypes.h|stddef.h|memory.h|unistd.h|";
1961 * Machine/OS name selection pattern
1963 #define apzGnu_TypesMachs (const char**)NULL
1966 * content selection pattern - do fix if pattern found
1968 tSCC zGnu_TypesSelect0[] =
1969 "^[ \t]*typedef[ \t]+.*[ \t](ptrdiff|size|wchar)_t;";
1972 * content bypass pattern - skip fix if pattern found
1974 tSCC zGnu_TypesBypass0[] =
1975 "_GCC_(PTRDIFF|SIZE|WCHAR)_T";
1977 #define GNU_TYPES_TEST_CT 2
1978 static tTestDesc aGnu_TypesTests[] = {
1979 { TT_NEGREP, zGnu_TypesBypass0, (regex_t*)NULL },
1980 { TT_EGREP, zGnu_TypesSelect0, (regex_t*)NULL }, };
1983 * Fix Command Arguments for Gnu_Types
1985 static const char* apzGnu_TypesPatch[] = {
1989 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1991 * Description of Hp_Inline fix
1993 tSCC zHp_InlineName[] =
1997 * File name selection pattern
1999 tSCC zHp_InlineList[] =
2000 "|sys/spinlock.h|machine/machparam.h|";
2002 * Machine/OS name selection pattern
2004 #define apzHp_InlineMachs (const char**)NULL
2007 * content selection pattern - do fix if pattern found
2009 tSCC zHp_InlineSelect0[] =
2010 "[ \t]*#[ \t]*include[ \t]+\"\\.\\./machine/";
2012 #define HP_INLINE_TEST_CT 1
2013 static tTestDesc aHp_InlineTests[] = {
2014 { TT_EGREP, zHp_InlineSelect0, (regex_t*)NULL }, };
2017 * Fix Command Arguments for Hp_Inline
2019 static const char* apzHp_InlinePatch[] = {
2022 "([ \t]*#[ \t]*include[ \t]+)\"\\.\\./machine/([a-z]+)\\.h\"",
2025 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2027 * Description of Hp_Sysfile fix
2029 tSCC zHp_SysfileName[] =
2033 * File name selection pattern
2035 tSCC zHp_SysfileList[] =
2038 * Machine/OS name selection pattern
2040 #define apzHp_SysfileMachs (const char**)NULL
2043 * content selection pattern - do fix if pattern found
2045 tSCC zHp_SysfileSelect0[] =
2048 #define HP_SYSFILE_TEST_CT 1
2049 static tTestDesc aHp_SysfileTests[] = {
2050 { TT_EGREP, zHp_SysfileSelect0, (regex_t*)NULL }, };
2053 * Fix Command Arguments for Hp_Sysfile
2055 static const char* apzHp_SysfilePatch[] = {
2057 "(struct file *, ...)",
2061 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2063 * Description of Hpux10_Cpp_Pow_Inline fix
2065 tSCC zHpux10_Cpp_Pow_InlineName[] =
2066 "hpux10_cpp_pow_inline";
2069 * File name selection pattern
2071 tSCC zHpux10_Cpp_Pow_InlineList[] =
2072 "|fixinc-test-limits.h|math.h|";
2074 * Machine/OS name selection pattern
2076 #define apzHpux10_Cpp_Pow_InlineMachs (const char**)NULL
2079 * content selection pattern - do fix if pattern found
2081 tSCC zHpux10_Cpp_Pow_InlineSelect0[] =
2082 "^# +ifdef +__cplusplus\n\
2084 +inline +double +pow\\(double +__d,int +__expon\\) +\\{\n\
2085 [ \t]+return +pow\\(__d,\\(double\\)__expon\\);\n\
2087 +extern +\"C\" +\\{\n\
2091 #define HPUX10_CPP_POW_INLINE_TEST_CT 1
2092 static tTestDesc aHpux10_Cpp_Pow_InlineTests[] = {
2093 { TT_EGREP, zHpux10_Cpp_Pow_InlineSelect0, (regex_t*)NULL }, };
2096 * Fix Command Arguments for Hpux10_Cpp_Pow_Inline
2098 static const char* apzHpux10_Cpp_Pow_InlinePatch[] = {
2103 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2105 * Description of Hpux11_Cpp_Pow_Inline fix
2107 tSCC zHpux11_Cpp_Pow_InlineName[] =
2108 "hpux11_cpp_pow_inline";
2111 * File name selection pattern
2113 tSCC zHpux11_Cpp_Pow_InlineList[] =
2116 * Machine/OS name selection pattern
2118 #define apzHpux11_Cpp_Pow_InlineMachs (const char**)NULL
2121 * content selection pattern - do fix if pattern found
2123 tSCC zHpux11_Cpp_Pow_InlineSelect0[] =
2124 " +inline double pow\\(double d,int expon\\) \\{\n\
2125 +return pow\\(d, \\(double\\)expon\\);\n\
2128 #define HPUX11_CPP_POW_INLINE_TEST_CT 1
2129 static tTestDesc aHpux11_Cpp_Pow_InlineTests[] = {
2130 { TT_EGREP, zHpux11_Cpp_Pow_InlineSelect0, (regex_t*)NULL }, };
2133 * Fix Command Arguments for Hpux11_Cpp_Pow_Inline
2135 static const char* apzHpux11_Cpp_Pow_InlinePatch[] = {
2140 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2142 * Description of Hpux10_Ctype_Declarations1 fix
2144 tSCC zHpux10_Ctype_Declarations1Name[] =
2145 "hpux10_ctype_declarations1";
2148 * File name selection pattern
2150 tSCC zHpux10_Ctype_Declarations1List[] =
2153 * Machine/OS name selection pattern
2155 #define apzHpux10_Ctype_Declarations1Machs (const char**)NULL
2158 * content selection pattern - do fix if pattern found
2160 tSCC zHpux10_Ctype_Declarations1Select0[] =
2161 "^#[ \t]*define _toupper\\(__c\\)[ \t]*__toupper\\(__c\\)";
2164 * content bypass pattern - skip fix if pattern found
2166 tSCC zHpux10_Ctype_Declarations1Bypass0[] =
2167 "^[ \t]*extern[ \t]*int[ \t]*__tolower[ \t]*\\(";
2169 #define HPUX10_CTYPE_DECLARATIONS1_TEST_CT 2
2170 static tTestDesc aHpux10_Ctype_Declarations1Tests[] = {
2171 { TT_NEGREP, zHpux10_Ctype_Declarations1Bypass0, (regex_t*)NULL },
2172 { TT_EGREP, zHpux10_Ctype_Declarations1Select0, (regex_t*)NULL }, };
2175 * Fix Command Arguments for Hpux10_Ctype_Declarations1
2177 static const char* apzHpux10_Ctype_Declarations1Patch[] = {
2179 "#ifdef _PROTOTYPES\n\
2180 extern int __tolower(int);\n\
2181 extern int __toupper(int);\n\
2182 #else /* NOT _PROTOTYPES */\n\
2183 extern int __tolower();\n\
2184 extern int __toupper();\n\
2185 #endif /* _PROTOTYPES */\n\n\
2189 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2191 * Description of Hpux10_Ctype_Declarations2 fix
2193 tSCC zHpux10_Ctype_Declarations2Name[] =
2194 "hpux10_ctype_declarations2";
2197 * File name selection pattern
2199 tSCC zHpux10_Ctype_Declarations2List[] =
2202 * Machine/OS name selection pattern
2204 #define apzHpux10_Ctype_Declarations2Machs (const char**)NULL
2207 * content selection pattern - do fix if pattern found
2209 tSCC zHpux10_Ctype_Declarations2Select0[] =
2210 "^# if defined\\(_SB_CTYPE_MACROS\\) && \\!defined\\(__lint\\)";
2213 * content bypass pattern - skip fix if pattern found
2215 tSCC zHpux10_Ctype_Declarations2Bypass0[] =
2216 "^[ \t]*extern[ \t]*int[ \t]*_isalnum[ \t]*\\(";
2218 #define HPUX10_CTYPE_DECLARATIONS2_TEST_CT 2
2219 static tTestDesc aHpux10_Ctype_Declarations2Tests[] = {
2220 { TT_NEGREP, zHpux10_Ctype_Declarations2Bypass0, (regex_t*)NULL },
2221 { TT_EGREP, zHpux10_Ctype_Declarations2Select0, (regex_t*)NULL }, };
2224 * Fix Command Arguments for Hpux10_Ctype_Declarations2
2226 static const char* apzHpux10_Ctype_Declarations2Patch[] = {
2229 #ifdef _PROTOTYPES\n\
2230 extern int _isalnum(int);\n\
2231 extern int _isalpha(int);\n\
2232 extern int _iscntrl(int);\n\
2233 extern int _isdigit(int);\n\
2234 extern int _isgraph(int);\n\
2235 extern int _islower(int);\n\
2236 extern int _isprint(int);\n\
2237 extern int _ispunct(int);\n\
2238 extern int _isspace(int);\n\
2239 extern int _isupper(int);\n\
2240 extern int _isxdigit(int);\n\
2241 # else /* not _PROTOTYPES */\n\
2242 extern int _isalnum();\n\
2243 extern int _isalpha();\n\
2244 extern int _iscntrl();\n\
2245 extern int _isdigit();\n\
2246 extern int _isgraph();\n\
2247 extern int _islower();\n\
2248 extern int _isprint();\n\
2249 extern int _ispunct();\n\
2250 extern int _isspace();\n\
2251 extern int _isupper();\n\
2252 extern int _isxdigit();\n\
2253 #endif /* _PROTOTYPES */\n",
2256 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2258 * Description of Hpux10_Stdio_Declarations fix
2260 tSCC zHpux10_Stdio_DeclarationsName[] =
2261 "hpux10_stdio_declarations";
2264 * File name selection pattern
2266 tSCC zHpux10_Stdio_DeclarationsList[] =
2269 * Machine/OS name selection pattern
2271 #define apzHpux10_Stdio_DeclarationsMachs (const char**)NULL
2274 * content selection pattern - do fix if pattern found
2276 tSCC zHpux10_Stdio_DeclarationsSelect0[] =
2277 "^#[ \t]*define _iob[ \t]*__iob";
2280 * content bypass pattern - skip fix if pattern found
2282 tSCC zHpux10_Stdio_DeclarationsBypass0[] =
2283 "^[ \t]*extern[ \t]*int[ \t]*vsnprintf[ \t]*\\(";
2285 #define HPUX10_STDIO_DECLARATIONS_TEST_CT 2
2286 static tTestDesc aHpux10_Stdio_DeclarationsTests[] = {
2287 { TT_NEGREP, zHpux10_Stdio_DeclarationsBypass0, (regex_t*)NULL },
2288 { TT_EGREP, zHpux10_Stdio_DeclarationsSelect0, (regex_t*)NULL }, };
2291 * Fix Command Arguments for Hpux10_Stdio_Declarations
2293 static const char* apzHpux10_Stdio_DeclarationsPatch[] = {
2296 # if defined(__STDC__) || defined(__cplusplus)\n\
2297 extern int snprintf(char *, size_t, const char *, ...);\n\
2298 extern int vsnprintf(char *, size_t, const char *, __va_list);\n\
2299 # else /* not __STDC__) || __cplusplus */\n\
2300 extern int snprintf();\n\
2301 extern int vsnprintf();\n\
2302 # endif /* __STDC__) || __cplusplus */\n",
2305 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2307 * Description of Hpux11_Abs fix
2309 tSCC zHpux11_AbsName[] =
2313 * File name selection pattern
2315 tSCC zHpux11_AbsList[] =
2318 * Machine/OS name selection pattern
2320 tSCC* apzHpux11_AbsMachs[] = {
2322 (const char*)NULL };
2325 * content selection pattern - do fix if pattern found
2327 tSCC zHpux11_AbsSelect0[] =
2328 "ifndef _MATH_INCLUDED";
2330 #define HPUX11_ABS_TEST_CT 1
2331 static tTestDesc aHpux11_AbsTests[] = {
2332 { TT_EGREP, zHpux11_AbsSelect0, (regex_t*)NULL }, };
2335 * Fix Command Arguments for Hpux11_Abs
2337 static const char* apzHpux11_AbsPatch[] = {
2339 "if !defined(_MATH_INCLUDED) || defined(__GNUG__)",
2342 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2344 * Description of Hpux11_Fabsf fix
2346 tSCC zHpux11_FabsfName[] =
2350 * File name selection pattern
2352 tSCC zHpux11_FabsfList[] =
2355 * Machine/OS name selection pattern
2357 #define apzHpux11_FabsfMachs (const char**)NULL
2360 * content selection pattern - do fix if pattern found
2362 tSCC zHpux11_FabsfSelect0[] =
2363 "^[ \t]*#[ \t]*define[ \t]+fabsf\\(.*";
2366 * content bypass pattern - skip fix if pattern found
2368 tSCC zHpux11_FabsfBypass0[] =
2371 #define HPUX11_FABSF_TEST_CT 2
2372 static tTestDesc aHpux11_FabsfTests[] = {
2373 { TT_NEGREP, zHpux11_FabsfBypass0, (regex_t*)NULL },
2374 { TT_EGREP, zHpux11_FabsfSelect0, (regex_t*)NULL }, };
2377 * Fix Command Arguments for Hpux11_Fabsf
2379 static const char* apzHpux11_FabsfPatch[] = {
2381 "#ifndef __cplusplus\n\
2386 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2388 * Description of Hpux11_Size_T fix
2390 tSCC zHpux11_Size_TName[] =
2394 * File name selection pattern
2396 #define zHpux11_Size_TList (char*)NULL
2398 * Machine/OS name selection pattern
2400 tSCC* apzHpux11_Size_TMachs[] = {
2402 (const char*)NULL };
2405 * content selection pattern - do fix if pattern found
2407 tSCC zHpux11_Size_TSelect0[] =
2410 #define HPUX11_SIZE_T_TEST_CT 1
2411 static tTestDesc aHpux11_Size_TTests[] = {
2412 { TT_EGREP, zHpux11_Size_TSelect0, (regex_t*)NULL }, };
2415 * Fix Command Arguments for Hpux11_Size_T
2417 static const char* apzHpux11_Size_TPatch[] = {
2422 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2424 * Description of Hpux11_Snprintf fix
2426 tSCC zHpux11_SnprintfName[] =
2430 * File name selection pattern
2432 tSCC zHpux11_SnprintfList[] =
2435 * Machine/OS name selection pattern
2437 #define apzHpux11_SnprintfMachs (const char**)NULL
2440 * content selection pattern - do fix if pattern found
2442 tSCC zHpux11_SnprintfSelect0[] =
2443 "(extern int snprintf *\\(char *\\*, *(|__|_hpux_)size_t,) *(char *\\*, *\\.\\.\\.\\);)";
2445 #define HPUX11_SNPRINTF_TEST_CT 1
2446 static tTestDesc aHpux11_SnprintfTests[] = {
2447 { TT_EGREP, zHpux11_SnprintfSelect0, (regex_t*)NULL }, };
2450 * Fix Command Arguments for Hpux11_Snprintf
2452 static const char* apzHpux11_SnprintfPatch[] = {
2457 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2459 * Description of Hpux11_Uint32_C fix
2461 tSCC zHpux11_Uint32_CName[] =
2465 * File name selection pattern
2467 tSCC zHpux11_Uint32_CList[] =
2470 * Machine/OS name selection pattern
2472 #define apzHpux11_Uint32_CMachs (const char**)NULL
2475 * content selection pattern - do fix if pattern found
2477 tSCC zHpux11_Uint32_CSelect0[] =
2478 "^#define UINT32_C\\(__c\\)[ \t]*__CONCAT__\\(__CONCAT_U__\\(__c\\),l\\)";
2480 #define HPUX11_UINT32_C_TEST_CT 1
2481 static tTestDesc aHpux11_Uint32_CTests[] = {
2482 { TT_EGREP, zHpux11_Uint32_CSelect0, (regex_t*)NULL }, };
2485 * Fix Command Arguments for Hpux11_Uint32_C
2487 static const char* apzHpux11_Uint32_CPatch[] = {
2489 "#define UINT32_C(__c) __CONCAT__(__c,ul)",
2492 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2494 * Description of Hpux11_Vsnprintf fix
2496 tSCC zHpux11_VsnprintfName[] =
2500 * File name selection pattern
2502 tSCC zHpux11_VsnprintfList[] =
2505 * Machine/OS name selection pattern
2507 #define apzHpux11_VsnprintfMachs (const char**)NULL
2510 * content selection pattern - do fix if pattern found
2512 tSCC zHpux11_VsnprintfSelect0[] =
2513 "(extern int vsnprintf\\(char \\*, _[hpux]*_size_t, const char \\*,) __va__list\\);";
2515 #define HPUX11_VSNPRINTF_TEST_CT 1
2516 static tTestDesc aHpux11_VsnprintfTests[] = {
2517 { TT_EGREP, zHpux11_VsnprintfSelect0, (regex_t*)NULL }, };
2520 * Fix Command Arguments for Hpux11_Vsnprintf
2522 static const char* apzHpux11_VsnprintfPatch[] = {
2527 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2529 * Description of Hpux8_Bogus_Inlines fix
2531 tSCC zHpux8_Bogus_InlinesName[] =
2532 "hpux8_bogus_inlines";
2535 * File name selection pattern
2537 tSCC zHpux8_Bogus_InlinesList[] =
2540 * Machine/OS name selection pattern
2542 #define apzHpux8_Bogus_InlinesMachs (const char**)NULL
2545 * content selection pattern - do fix if pattern found
2547 tSCC zHpux8_Bogus_InlinesSelect0[] =
2551 * content bypass pattern - skip fix if pattern found
2553 tSCC zHpux8_Bogus_InlinesBypass0[] =
2556 #define HPUX8_BOGUS_INLINES_TEST_CT 2
2557 static tTestDesc aHpux8_Bogus_InlinesTests[] = {
2558 { TT_NEGREP, zHpux8_Bogus_InlinesBypass0, (regex_t*)NULL },
2559 { TT_EGREP, zHpux8_Bogus_InlinesSelect0, (regex_t*)NULL }, };
2562 * Fix Command Arguments for Hpux8_Bogus_Inlines
2564 static const char* apzHpux8_Bogus_InlinesPatch[] = { "sed",
2565 "-e", "s@inline int abs(int [a-z][a-z]*) {.*}@extern \"C\" int abs(int);@",
2566 "-e", "s@inline double abs(double [a-z][a-z]*) {.*}@@",
2567 "-e", "s@inline int sqr(int [a-z][a-z]*) {.*}@@",
2568 "-e", "s@inline double sqr(double [a-z][a-z]*) {.*}@@",
2571 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2573 * Description of Hpux_Ctype_Macros fix
2575 tSCC zHpux_Ctype_MacrosName[] =
2576 "hpux_ctype_macros";
2579 * File name selection pattern
2581 tSCC zHpux_Ctype_MacrosList[] =
2584 * Machine/OS name selection pattern
2586 #define apzHpux_Ctype_MacrosMachs (const char**)NULL
2589 * content selection pattern - do fix if pattern found
2591 tSCC zHpux_Ctype_MacrosSelect0[] =
2592 "((: |\\()__SB_masks \\? )(__SB_masks\\[__(alnum|c)\\] & _IS)";
2594 #define HPUX_CTYPE_MACROS_TEST_CT 1
2595 static tTestDesc aHpux_Ctype_MacrosTests[] = {
2596 { TT_EGREP, zHpux_Ctype_MacrosSelect0, (regex_t*)NULL }, };
2599 * Fix Command Arguments for Hpux_Ctype_Macros
2601 static const char* apzHpux_Ctype_MacrosPatch[] = {
2606 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2608 * Description of Hpux_Long_Double fix
2610 tSCC zHpux_Long_DoubleName[] =
2614 * File name selection pattern
2616 tSCC zHpux_Long_DoubleList[] =
2619 * Machine/OS name selection pattern
2621 #define apzHpux_Long_DoubleMachs (const char**)NULL
2624 * content selection pattern - do fix if pattern found
2626 tSCC zHpux_Long_DoubleSelect0[] =
2627 "extern[ \t]long_double[ \t]strtold";
2630 * content bypass pattern - skip fix if pattern found
2632 tSCC zHpux_Long_DoubleBypass0[] =
2635 #define HPUX_LONG_DOUBLE_TEST_CT 2
2636 static tTestDesc aHpux_Long_DoubleTests[] = {
2637 { TT_NEGREP, zHpux_Long_DoubleBypass0, (regex_t*)NULL },
2638 { TT_EGREP, zHpux_Long_DoubleSelect0, (regex_t*)NULL }, };
2641 * Fix Command Arguments for Hpux_Long_Double
2643 static const char* apzHpux_Long_DoublePatch[] = { "sed",
2644 "-e", "/^#[ \t]*ifndef _LONG_DOUBLE/,/\\/\\* _LONG_DOUBLE \\*\\//D",
2645 "-e", "s/long_double/long double/g",
2648 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2650 * Description of Hpux_Maxint fix
2652 tSCC zHpux_MaxintName[] =
2656 * File name selection pattern
2658 tSCC zHpux_MaxintList[] =
2659 "|sys/param.h|values.h|";
2661 * Machine/OS name selection pattern
2663 #define apzHpux_MaxintMachs (const char**)NULL
2666 * content selection pattern - do fix if pattern found
2668 tSCC zHpux_MaxintSelect0[] =
2669 "^#[ \t]*define[ \t]+MAXINT[ \t]";
2672 * content bypass pattern - skip fix if pattern found
2674 tSCC zHpux_MaxintBypass0[] =
2675 "^#[ \t]*ifndef[ \t]+MAXINT";
2678 * perform the 'test' shell command - do fix on success
2680 tSCC zHpux_MaxintTest0[] =
2681 "-n \"`egrep '#[ \t]*define[ \t]+MAXINT[ \t]' sys/param.h`\"";
2683 #define HPUX_MAXINT_TEST_CT 3
2684 static tTestDesc aHpux_MaxintTests[] = {
2685 { TT_TEST, zHpux_MaxintTest0, 0 /* unused */ },
2686 { TT_NEGREP, zHpux_MaxintBypass0, (regex_t*)NULL },
2687 { TT_EGREP, zHpux_MaxintSelect0, (regex_t*)NULL }, };
2690 * Fix Command Arguments for Hpux_Maxint
2692 static const char* apzHpux_MaxintPatch[] = {
2697 "^#[ \t]*define[ \t]+MAXINT[ \t].*",
2700 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2702 * Description of Hpux_Systime fix
2704 tSCC zHpux_SystimeName[] =
2708 * File name selection pattern
2710 tSCC zHpux_SystimeList[] =
2713 * Machine/OS name selection pattern
2715 #define apzHpux_SystimeMachs (const char**)NULL
2718 * content selection pattern - do fix if pattern found
2720 tSCC zHpux_SystimeSelect0[] =
2721 "^extern struct sigevent;";
2723 #define HPUX_SYSTIME_TEST_CT 1
2724 static tTestDesc aHpux_SystimeTests[] = {
2725 { TT_EGREP, zHpux_SystimeSelect0, (regex_t*)NULL }, };
2728 * Fix Command Arguments for Hpux_Systime
2730 static const char* apzHpux_SystimePatch[] = {
2735 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2737 * Description of Int_Abort_Free_And_Exit fix
2739 tSCC zInt_Abort_Free_And_ExitName[] =
2740 "int_abort_free_and_exit";
2743 * File name selection pattern
2745 tSCC zInt_Abort_Free_And_ExitList[] =
2748 * Machine/OS name selection pattern
2750 #define apzInt_Abort_Free_And_ExitMachs (const char**)NULL
2753 * content selection pattern - do fix if pattern found
2755 tSCC zInt_Abort_Free_And_ExitSelect0[] =
2756 "int[ \t]+(abort|free|exit)[ \t]*\\(";
2759 * content bypass pattern - skip fix if pattern found
2761 tSCC zInt_Abort_Free_And_ExitBypass0[] =
2762 "_CLASSIC_ANSI_TYPES";
2764 #define INT_ABORT_FREE_AND_EXIT_TEST_CT 2
2765 static tTestDesc aInt_Abort_Free_And_ExitTests[] = {
2766 { TT_NEGREP, zInt_Abort_Free_And_ExitBypass0, (regex_t*)NULL },
2767 { TT_EGREP, zInt_Abort_Free_And_ExitSelect0, (regex_t*)NULL }, };
2770 * Fix Command Arguments for Int_Abort_Free_And_Exit
2772 static const char* apzInt_Abort_Free_And_ExitPatch[] = {
2777 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2779 * Description of Io_Quotes_Def fix
2781 tSCC zIo_Quotes_DefName[] =
2785 * File name selection pattern
2787 #define zIo_Quotes_DefList (char*)NULL
2789 * Machine/OS name selection pattern
2791 #define apzIo_Quotes_DefMachs (const char**)NULL
2794 * content selection pattern - do fix if pattern found
2796 tSCC zIo_Quotes_DefSelect0[] =
2797 "define[ \t]+[A-Z0-9_]+IO[A-Z]*\\([a-zA-Z][,)]";
2799 #define IO_QUOTES_DEF_TEST_CT 1
2800 static tTestDesc aIo_Quotes_DefTests[] = {
2801 { TT_EGREP, zIo_Quotes_DefSelect0, (regex_t*)NULL }, };
2804 * Fix Command Arguments for Io_Quotes_Def
2806 static const char* apzIo_Quotes_DefPatch[] = {
2811 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2813 * Description of Io_Quotes_Use fix
2815 tSCC zIo_Quotes_UseName[] =
2819 * File name selection pattern
2821 #define zIo_Quotes_UseList (char*)NULL
2823 * Machine/OS name selection pattern
2825 #define apzIo_Quotes_UseMachs (const char**)NULL
2828 * content selection pattern - do fix if pattern found
2830 tSCC zIo_Quotes_UseSelect0[] =
2831 "define[ \t]+[A-Z0-9_]+[ \t]+[A-Z0-9_]+IO[A-Z]*[ \t]*\\( *[^,']";
2833 #define IO_QUOTES_USE_TEST_CT 1
2834 static tTestDesc aIo_Quotes_UseTests[] = {
2835 { TT_EGREP, zIo_Quotes_UseSelect0, (regex_t*)NULL }, };
2838 * Fix Command Arguments for Io_Quotes_Use
2840 static const char* apzIo_Quotes_UsePatch[] = {
2845 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2847 * Description of Ip_Missing_Semi fix
2849 tSCC zIp_Missing_SemiName[] =
2853 * File name selection pattern
2855 tSCC zIp_Missing_SemiList[] =
2858 * Machine/OS name selection pattern
2860 #define apzIp_Missing_SemiMachs (const char**)NULL
2863 * content selection pattern - do fix if pattern found
2865 tSCC zIp_Missing_SemiSelect0[] =
2868 #define IP_MISSING_SEMI_TEST_CT 1
2869 static tTestDesc aIp_Missing_SemiTests[] = {
2870 { TT_EGREP, zIp_Missing_SemiSelect0, (regex_t*)NULL }, };
2873 * Fix Command Arguments for Ip_Missing_Semi
2875 static const char* apzIp_Missing_SemiPatch[] = { "sed",
2876 "-e", "/^struct/,/^};/s/}$/};/",
2879 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2881 * Description of Irix___Restrict fix
2883 tSCC zIrix___RestrictName[] =
2887 * File name selection pattern
2889 tSCC zIrix___RestrictList[] =
2890 "|internal/sgimacros.h|";
2892 * Machine/OS name selection pattern
2894 tSCC* apzIrix___RestrictMachs[] = {
2896 (const char*)NULL };
2899 * content selection pattern - do fix if pattern found
2901 tSCC zIrix___RestrictSelect0[] =
2903 )(#[ \t]*define __restrict restrict)";
2905 #define IRIX___RESTRICT_TEST_CT 1
2906 static tTestDesc aIrix___RestrictTests[] = {
2907 { TT_EGREP, zIrix___RestrictSelect0, (regex_t*)NULL }, };
2910 * Fix Command Arguments for Irix___Restrict
2912 static const char* apzIrix___RestrictPatch[] = {
2914 "%1# ifndef __cplusplus\n\
2919 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2921 * Description of Irix___Generic1 fix
2923 tSCC zIrix___Generic1Name[] =
2927 * File name selection pattern
2929 tSCC zIrix___Generic1List[] =
2930 "|internal/math_core.h|";
2932 * Machine/OS name selection pattern
2934 tSCC* apzIrix___Generic1Machs[] = {
2936 (const char*)NULL };
2939 * content selection pattern - do fix if pattern found
2941 tSCC zIrix___Generic1Select0[] =
2942 "#define ([a-z]+)\\(x\\) *__generic.*";
2944 #define IRIX___GENERIC1_TEST_CT 1
2945 static tTestDesc aIrix___Generic1Tests[] = {
2946 { TT_EGREP, zIrix___Generic1Select0, (regex_t*)NULL }, };
2949 * Fix Command Arguments for Irix___Generic1
2951 static const char* apzIrix___Generic1Patch[] = {
2953 "extern int %1(double);\n\
2954 extern int %1f(float);\n\
2955 extern int %1l(long double);\n\
2956 #define %1(x) (sizeof(x) == sizeof(double) ? _%1(x) \\\n\
2957 : sizeof(x) == sizeof(float) ? _%1f(x) \\\n\
2961 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2963 * Description of Irix___Generic2 fix
2965 tSCC zIrix___Generic2Name[] =
2969 * File name selection pattern
2971 tSCC zIrix___Generic2List[] =
2972 "|internal/math_core.h|";
2974 * Machine/OS name selection pattern
2976 tSCC* apzIrix___Generic2Machs[] = {
2978 (const char*)NULL };
2981 * content selection pattern - do fix if pattern found
2983 tSCC zIrix___Generic2Select0[] =
2984 "#define ([a-z]+)\\(x,y\\) *__generic.*";
2986 #define IRIX___GENERIC2_TEST_CT 1
2987 static tTestDesc aIrix___Generic2Tests[] = {
2988 { TT_EGREP, zIrix___Generic2Select0, (regex_t*)NULL }, };
2991 * Fix Command Arguments for Irix___Generic2
2993 static const char* apzIrix___Generic2Patch[] = {
2995 "#define %1(x,y) \\\n\
2996 ((sizeof(x)<=4 && sizeof(y)<=4) ? _%1f(x,y) \\\n\
2997 : (sizeof(x)<=8 && sizeof(y)<=8) ? _%1(x,y) \\\n\
3001 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3003 * Description of Irix_Asm_Apostrophe fix
3005 tSCC zIrix_Asm_ApostropheName[] =
3006 "irix_asm_apostrophe";
3009 * File name selection pattern
3011 tSCC zIrix_Asm_ApostropheList[] =
3014 * Machine/OS name selection pattern
3016 #define apzIrix_Asm_ApostropheMachs (const char**)NULL
3019 * content selection pattern - do fix if pattern found
3021 tSCC zIrix_Asm_ApostropheSelect0[] =
3022 "^[ \t]*#.*[Ww]e're";
3024 #define IRIX_ASM_APOSTROPHE_TEST_CT 1
3025 static tTestDesc aIrix_Asm_ApostropheTests[] = {
3026 { TT_EGREP, zIrix_Asm_ApostropheSelect0, (regex_t*)NULL }, };
3029 * Fix Command Arguments for Irix_Asm_Apostrophe
3031 static const char* apzIrix_Asm_ApostrophePatch[] = {
3034 "^([ \t]*#.*[Ww]e)'re",
3037 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3039 * Description of Irix_Limits_Const fix
3041 tSCC zIrix_Limits_ConstName[] =
3042 "irix_limits_const";
3045 * File name selection pattern
3047 tSCC zIrix_Limits_ConstList[] =
3048 "|fixinc-test-limits.h|limits.h|";
3050 * Machine/OS name selection pattern
3052 #define apzIrix_Limits_ConstMachs (const char**)NULL
3055 * content selection pattern - do fix if pattern found
3057 tSCC zIrix_Limits_ConstSelect0[] =
3060 #define IRIX_LIMITS_CONST_TEST_CT 1
3061 static tTestDesc aIrix_Limits_ConstTests[] = {
3062 { TT_EGREP, zIrix_Limits_ConstSelect0, (regex_t*)NULL }, };
3065 * Fix Command Arguments for Irix_Limits_Const
3067 static const char* apzIrix_Limits_ConstPatch[] = {
3072 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3074 * Description of Irix_Socklen_T fix
3076 tSCC zIrix_Socklen_TName[] =
3080 * File name selection pattern
3082 tSCC zIrix_Socklen_TList[] =
3085 * Machine/OS name selection pattern
3087 tSCC* apzIrix_Socklen_TMachs[] = {
3089 (const char*)NULL };
3092 * content selection pattern - do fix if pattern found
3094 tSCC zIrix_Socklen_TSelect0[] =
3095 "(#define _SOCKLEN_T\n\
3096 )(typedef u_int32_t socklen_t;)";
3098 #define IRIX_SOCKLEN_T_TEST_CT 1
3099 static tTestDesc aIrix_Socklen_TTests[] = {
3100 { TT_EGREP, zIrix_Socklen_TSelect0, (regex_t*)NULL }, };
3103 * Fix Command Arguments for Irix_Socklen_T
3105 static const char* apzIrix_Socklen_TPatch[] = {
3107 "%1#if _NO_XOPEN4 && _NO_XOPEN5\n\
3108 typedef int socklen_t;\n\
3111 #endif /* _NO_XOPEN4 && _NO_XOPEN5 */",
3114 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3116 * Description of Irix_Stdio_Va_List fix
3118 tSCC zIrix_Stdio_Va_ListName[] =
3119 "irix_stdio_va_list";
3122 * File name selection pattern
3124 tSCC zIrix_Stdio_Va_ListList[] =
3125 "|stdio.h|internal/stdio_core.h|";
3127 * Machine/OS name selection pattern
3129 #define apzIrix_Stdio_Va_ListMachs (const char**)NULL
3132 * content selection pattern - do fix if pattern found
3134 tSCC zIrix_Stdio_Va_ListSelect0[] =
3135 "/\\* va_list \\*/ char \\*";
3137 #define IRIX_STDIO_VA_LIST_TEST_CT 1
3138 static tTestDesc aIrix_Stdio_Va_ListTests[] = {
3139 { TT_EGREP, zIrix_Stdio_Va_ListSelect0, (regex_t*)NULL }, };
3142 * Fix Command Arguments for Irix_Stdio_Va_List
3144 static const char* apzIrix_Stdio_Va_ListPatch[] = {
3149 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3151 * Description of Irix_Wcsftime fix
3153 tSCC zIrix_WcsftimeName[] =
3157 * File name selection pattern
3159 tSCC zIrix_WcsftimeList[] =
3160 "|internal/wchar_core.h|";
3162 * Machine/OS name selection pattern
3164 tSCC* apzIrix_WcsftimeMachs[] = {
3166 (const char*)NULL };
3169 * content selection pattern - do fix if pattern found
3171 tSCC zIrix_WcsftimeSelect0[] =
3173 (extern size_t[ \t]+wcsftime.*const char *.*)";
3175 #define IRIX_WCSFTIME_TEST_CT 1
3176 static tTestDesc aIrix_WcsftimeTests[] = {
3177 { TT_EGREP, zIrix_WcsftimeSelect0, (regex_t*)NULL }, };
3180 * Fix Command Arguments for Irix_Wcsftime
3182 static const char* apzIrix_WcsftimePatch[] = {
3184 "#if _NO_XOPEN5 && !defined(__c99)\n\
3188 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3190 * Description of Isc_Fmod fix
3192 tSCC zIsc_FmodName[] =
3196 * File name selection pattern
3198 tSCC zIsc_FmodList[] =
3201 * Machine/OS name selection pattern
3203 #define apzIsc_FmodMachs (const char**)NULL
3206 * content selection pattern - do fix if pattern found
3208 tSCC zIsc_FmodSelect0[] =
3211 #define ISC_FMOD_TEST_CT 1
3212 static tTestDesc aIsc_FmodTests[] = {
3213 { TT_EGREP, zIsc_FmodSelect0, (regex_t*)NULL }, };
3216 * Fix Command Arguments for Isc_Fmod
3218 static const char* apzIsc_FmodPatch[] = {
3220 "fmod(double, double)",
3223 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3225 * Description of Isc_Omits_With_Stdc fix
3227 tSCC zIsc_Omits_With_StdcName[] =
3228 "isc_omits_with_stdc";
3231 * File name selection pattern
3233 tSCC zIsc_Omits_With_StdcList[] =
3234 "|stdio.h|math.h|ctype.h|sys/limits.h|sys/fcntl.h|sys/dirent.h|";
3236 * Machine/OS name selection pattern
3238 #define apzIsc_Omits_With_StdcMachs (const char**)NULL
3241 * content selection pattern - do fix if pattern found
3243 tSCC zIsc_Omits_With_StdcSelect0[] =
3244 "!defined\\(__STDC__\\) && !defined\\(_POSIX_SOURCE\\)";
3246 #define ISC_OMITS_WITH_STDC_TEST_CT 1
3247 static tTestDesc aIsc_Omits_With_StdcTests[] = {
3248 { TT_EGREP, zIsc_Omits_With_StdcSelect0, (regex_t*)NULL }, };
3251 * Fix Command Arguments for Isc_Omits_With_Stdc
3253 static const char* apzIsc_Omits_With_StdcPatch[] = {
3255 "!defined(_POSIX_SOURCE)",
3258 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3260 * Description of Kandr_Concat fix
3262 tSCC zKandr_ConcatName[] =
3266 * File name selection pattern
3268 tSCC zKandr_ConcatList[] =
3269 "|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|";
3271 * Machine/OS name selection pattern
3273 #define apzKandr_ConcatMachs (const char**)NULL
3276 * content selection pattern - do fix if pattern found
3278 tSCC zKandr_ConcatSelect0[] =
3281 #define KANDR_CONCAT_TEST_CT 1
3282 static tTestDesc aKandr_ConcatTests[] = {
3283 { TT_EGREP, zKandr_ConcatSelect0, (regex_t*)NULL }, };
3286 * Fix Command Arguments for Kandr_Concat
3288 static const char* apzKandr_ConcatPatch[] = {
3293 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3295 * Description of Libc1_G_Va_List fix
3297 tSCC zLibc1_G_Va_ListName[] =
3301 * File name selection pattern
3303 tSCC zLibc1_G_Va_ListList[] =
3306 * Machine/OS name selection pattern
3308 tSCC* apzLibc1_G_Va_ListMachs[] = {
3310 (const char*)NULL };
3313 * content selection pattern - do fix if pattern found
3315 tSCC zLibc1_G_Va_ListSelect0[] =
3316 "typedef void \\* _G_va_list;";
3318 #define LIBC1_G_VA_LIST_TEST_CT 1
3319 static tTestDesc aLibc1_G_Va_ListTests[] = {
3320 { TT_EGREP, zLibc1_G_Va_ListSelect0, (regex_t*)NULL }, };
3323 * Fix Command Arguments for Libc1_G_Va_List
3325 static const char* apzLibc1_G_Va_ListPatch[] = {
3327 "typedef __builtin_va_list _G_va_list;",
3330 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3332 * Description of Libc1_Ifdefd_Memx fix
3334 tSCC zLibc1_Ifdefd_MemxName[] =
3335 "libc1_ifdefd_memx";
3338 * File name selection pattern
3340 tSCC zLibc1_Ifdefd_MemxList[] =
3341 "|testing.h|string.h|";
3343 * Machine/OS name selection pattern
3345 #define apzLibc1_Ifdefd_MemxMachs (const char**)NULL
3348 * content selection pattern - do fix if pattern found
3350 tSCC zLibc1_Ifdefd_MemxSelect0[] =
3351 "' is a built-in function for gcc 2\\.x\\. \\*/";
3354 * content bypass pattern - skip fix if pattern found
3356 tSCC zLibc1_Ifdefd_MemxBypass0[] =
3359 #define LIBC1_IFDEFD_MEMX_TEST_CT 2
3360 static tTestDesc aLibc1_Ifdefd_MemxTests[] = {
3361 { TT_NEGREP, zLibc1_Ifdefd_MemxBypass0, (regex_t*)NULL },
3362 { TT_EGREP, zLibc1_Ifdefd_MemxSelect0, (regex_t*)NULL }, };
3365 * Fix Command Arguments for Libc1_Ifdefd_Memx
3367 static const char* apzLibc1_Ifdefd_MemxPatch[] = {
3370 "/\\* `mem...' is a built-in function for gcc 2\\.x\\. \\*/\n\
3371 #if defined\\(__STDC__\\) && __GNUC__ < 2\n\
3373 extern [a-z_]+ mem.*(\n\
3378 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3380 * Description of Limits_Ifndefs fix
3382 tSCC zLimits_IfndefsName[] =
3386 * File name selection pattern
3388 tSCC zLimits_IfndefsList[] =
3389 "|sys/limits.h|limits.h|";
3391 * Machine/OS name selection pattern
3393 #define apzLimits_IfndefsMachs (const char**)NULL
3396 * content selection pattern - do fix if pattern found
3398 tSCC zLimits_IfndefsSelect0[] =
3399 "^[ \t]*#[ \t]*define[ \t]+((FLT|DBL)_(MIN|MAX|DIG))[ \t].*";
3402 * content bypass pattern - skip fix if pattern found
3404 tSCC zLimits_IfndefsBypass0[] =
3405 "ifndef[ \t]+FLT_(MIN|MAX)";
3407 #define LIMITS_IFNDEFS_TEST_CT 2
3408 static tTestDesc aLimits_IfndefsTests[] = {
3409 { TT_NEGREP, zLimits_IfndefsBypass0, (regex_t*)NULL },
3410 { TT_EGREP, zLimits_IfndefsSelect0, (regex_t*)NULL }, };
3413 * Fix Command Arguments for Limits_Ifndefs
3415 static const char* apzLimits_IfndefsPatch[] = {
3422 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3424 * Description of Linux_Ia64_Ucontext fix
3426 tSCC zLinux_Ia64_UcontextName[] =
3427 "linux_ia64_ucontext";
3430 * File name selection pattern
3432 tSCC zLinux_Ia64_UcontextList[] =
3435 * Machine/OS name selection pattern
3437 tSCC* apzLinux_Ia64_UcontextMachs[] = {
3439 (const char*)NULL };
3442 * content selection pattern - do fix if pattern found
3444 tSCC zLinux_Ia64_UcontextSelect0[] =
3445 "\\(\\(\\(char \\*\\) &\\(\\(struct sigcontext \\*\\) 0\\)->sc_gr\\[0\\]\\) - \\(char \\*\\) 0\\)";
3447 #define LINUX_IA64_UCONTEXT_TEST_CT 1
3448 static tTestDesc aLinux_Ia64_UcontextTests[] = {
3449 { TT_EGREP, zLinux_Ia64_UcontextSelect0, (regex_t*)NULL }, };
3452 * Fix Command Arguments for Linux_Ia64_Ucontext
3454 static const char* apzLinux_Ia64_UcontextPatch[] = {
3456 "__builtin_offsetof (struct sigcontext, sc_gr[0])",
3459 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3461 * Description of Lynxos_No_Warning_In_Sys_Time_H fix
3463 tSCC zLynxos_No_Warning_In_Sys_Time_HName[] =
3464 "lynxos_no_warning_in_sys_time_h";
3467 * File name selection pattern
3469 tSCC zLynxos_No_Warning_In_Sys_Time_HList[] =
3472 * Machine/OS name selection pattern
3474 #define apzLynxos_No_Warning_In_Sys_Time_HMachs (const char**)NULL
3477 * content selection pattern - do fix if pattern found
3479 tSCC zLynxos_No_Warning_In_Sys_Time_HSelect0[] =
3480 "#warning[ \t]+Using <time.h> instead of <sys/time.h>";
3482 #define LYNXOS_NO_WARNING_IN_SYS_TIME_H_TEST_CT 1
3483 static tTestDesc aLynxos_No_Warning_In_Sys_Time_HTests[] = {
3484 { TT_EGREP, zLynxos_No_Warning_In_Sys_Time_HSelect0, (regex_t*)NULL }, };
3487 * Fix Command Arguments for Lynxos_No_Warning_In_Sys_Time_H
3489 static const char* apzLynxos_No_Warning_In_Sys_Time_HPatch[] = {
3494 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3496 * Description of Lynxos_Missing_Putenv fix
3498 tSCC zLynxos_Missing_PutenvName[] =
3499 "lynxos_missing_putenv";
3502 * File name selection pattern
3504 tSCC zLynxos_Missing_PutenvList[] =
3507 * Machine/OS name selection pattern
3509 tSCC* apzLynxos_Missing_PutenvMachs[] = {
3511 (const char*)NULL };
3514 * content selection pattern - do fix if pattern found
3516 tSCC zLynxos_Missing_PutenvSelect0[] =
3517 "extern char \\*getenv[ \t]*_AP\\(\\(const char \\*\\)\\);";
3520 * content bypass pattern - skip fix if pattern found
3522 tSCC zLynxos_Missing_PutenvBypass0[] =
3525 #define LYNXOS_MISSING_PUTENV_TEST_CT 2
3526 static tTestDesc aLynxos_Missing_PutenvTests[] = {
3527 { TT_NEGREP, zLynxos_Missing_PutenvBypass0, (regex_t*)NULL },
3528 { TT_EGREP, zLynxos_Missing_PutenvSelect0, (regex_t*)NULL }, };
3531 * Fix Command Arguments for Lynxos_Missing_Putenv
3533 static const char* apzLynxos_Missing_PutenvPatch[] = {
3536 extern int putenv\t\t\t\t_AP((char *));",
3537 "extern char \\*getenv[ \t]*_AP\\(\\(const char \\*\\)\\);",
3540 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3542 * Description of Machine_Ansi_H_Va_List fix
3544 tSCC zMachine_Ansi_H_Va_ListName[] =
3545 "machine_ansi_h_va_list";
3548 * File name selection pattern
3550 #define zMachine_Ansi_H_Va_ListList (char*)NULL
3552 * Machine/OS name selection pattern
3554 #define apzMachine_Ansi_H_Va_ListMachs (const char**)NULL
3557 * content selection pattern - do fix if pattern found
3559 tSCC zMachine_Ansi_H_Va_ListSelect0[] =
3560 "define[ \t]+_BSD_VA_LIST_[ \t]";
3563 * content bypass pattern - skip fix if pattern found
3565 tSCC zMachine_Ansi_H_Va_ListBypass0[] =
3566 "__builtin_va_list";
3568 #define MACHINE_ANSI_H_VA_LIST_TEST_CT 2
3569 static tTestDesc aMachine_Ansi_H_Va_ListTests[] = {
3570 { TT_NEGREP, zMachine_Ansi_H_Va_ListBypass0, (regex_t*)NULL },
3571 { TT_EGREP, zMachine_Ansi_H_Va_ListSelect0, (regex_t*)NULL }, };
3574 * Fix Command Arguments for Machine_Ansi_H_Va_List
3576 static const char* apzMachine_Ansi_H_Va_ListPatch[] = {
3578 "%1__builtin_va_list",
3579 "(define[ \t]+_BSD_VA_LIST_[ \t]+).*",
3582 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3584 * Description of Machine_Name fix
3586 tSCC zMachine_NameName[] =
3590 * File name selection pattern
3592 #define zMachine_NameList (char*)NULL
3594 * Machine/OS name selection pattern
3596 #define apzMachine_NameMachs (const char**)NULL
3599 * perform the C function call test
3601 tSCC zMachine_NameFTst0[] = "machine_name";
3603 #define MACHINE_NAME_TEST_CT 1
3604 static tTestDesc aMachine_NameTests[] = {
3605 { TT_FUNCTION, zMachine_NameFTst0, 0 /* unused */ }, };
3608 * Fix Command Arguments for Machine_Name
3610 static const char* apzMachine_NamePatch[] = {
3614 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3616 * Description of Math_Exception fix
3618 tSCC zMath_ExceptionName[] =
3622 * File name selection pattern
3624 tSCC zMath_ExceptionList[] =
3627 * Machine/OS name selection pattern
3629 #define apzMath_ExceptionMachs (const char**)NULL
3632 * content selection pattern - do fix if pattern found
3634 tSCC zMath_ExceptionSelect0[] =
3638 * content bypass pattern - skip fix if pattern found
3640 tSCC zMath_ExceptionBypass0[] =
3641 "We have a problem when using C\\+\\+|for C\\+\\+, _[a-z0-9A-Z_]+_exception; for C, exception";
3643 #define MATH_EXCEPTION_TEST_CT 2
3644 static tTestDesc aMath_ExceptionTests[] = {
3645 { TT_NEGREP, zMath_ExceptionBypass0, (regex_t*)NULL },
3646 { TT_EGREP, zMath_ExceptionSelect0, (regex_t*)NULL }, };
3649 * Fix Command Arguments for Math_Exception
3651 static const char* apzMath_ExceptionPatch[] = {
3653 "#ifdef __cplusplus\n\
3654 #define exception __math_exception\n\
3656 "#ifdef __cplusplus\n\
3661 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3663 * Description of Math_Huge_Val_From_Dbl_Max fix
3665 tSCC zMath_Huge_Val_From_Dbl_MaxName[] =
3666 "math_huge_val_from_dbl_max";
3669 * File name selection pattern
3671 tSCC zMath_Huge_Val_From_Dbl_MaxList[] =
3674 * Machine/OS name selection pattern
3676 #define apzMath_Huge_Val_From_Dbl_MaxMachs (const char**)NULL
3679 * content selection pattern - do fix if pattern found
3681 tSCC zMath_Huge_Val_From_Dbl_MaxSelect0[] =
3682 "define[ \t]+HUGE_VAL[ \t]+DBL_MAX";
3685 * content bypass pattern - skip fix if pattern found
3687 tSCC zMath_Huge_Val_From_Dbl_MaxBypass0[] =
3688 "define[ \t]+DBL_MAX";
3690 #define MATH_HUGE_VAL_FROM_DBL_MAX_TEST_CT 2
3691 static tTestDesc aMath_Huge_Val_From_Dbl_MaxTests[] = {
3692 { TT_NEGREP, zMath_Huge_Val_From_Dbl_MaxBypass0, (regex_t*)NULL },
3693 { TT_EGREP, zMath_Huge_Val_From_Dbl_MaxSelect0, (regex_t*)NULL }, };
3696 * Fix Command Arguments for Math_Huge_Val_From_Dbl_Max
3698 static const char* apzMath_Huge_Val_From_Dbl_MaxPatch[] = { "sh", "-c",
3699 "\tdbl_max_def=`egrep 'define[ \t]+DBL_MAX[ \t]+.*' float.h | sed 's/.*DBL_MAX[ \t]*//' 2>/dev/null`\n\n\
3700 \tif ( test -n \"${dbl_max_def}\" ) > /dev/null 2>&1\n\
3701 \tthen sed -e '/define[ \t]*HUGE_VAL[ \t]*DBL_MAX/s@DBL_MAX@'\"$dbl_max_def@\"\n\
3706 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3708 * Description of Math_Huge_Val_Ifndef fix
3710 tSCC zMath_Huge_Val_IfndefName[] =
3711 "math_huge_val_ifndef";
3714 * File name selection pattern
3716 tSCC zMath_Huge_Val_IfndefList[] =
3717 "|math.h|math/math.h|";
3719 * Machine/OS name selection pattern
3721 #define apzMath_Huge_Val_IfndefMachs (const char**)NULL
3724 * content selection pattern - do fix if pattern found
3726 tSCC zMath_Huge_Val_IfndefSelect0[] =
3727 "define[ \t]+HUGE_VAL";
3729 #define MATH_HUGE_VAL_IFNDEF_TEST_CT 1
3730 static tTestDesc aMath_Huge_Val_IfndefTests[] = {
3731 { TT_EGREP, zMath_Huge_Val_IfndefSelect0, (regex_t*)NULL }, };
3734 * Fix Command Arguments for Math_Huge_Val_Ifndef
3736 static const char* apzMath_Huge_Val_IfndefPatch[] = {
3738 "#ifndef HUGE_VAL\n\
3741 "^[ \t]*#[ \t]*define[ \t]+HUGE_VAL[ \t].*",
3744 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3746 * Description of Nested_Auth_Des fix
3748 tSCC zNested_Auth_DesName[] =
3752 * File name selection pattern
3754 tSCC zNested_Auth_DesList[] =
3757 * Machine/OS name selection pattern
3759 #define apzNested_Auth_DesMachs (const char**)NULL
3762 * content selection pattern - do fix if pattern found
3764 tSCC zNested_Auth_DesSelect0[] =
3765 "(/\\*.*rpc/auth_des\\.h>.*)/\\*";
3767 #define NESTED_AUTH_DES_TEST_CT 1
3768 static tTestDesc aNested_Auth_DesTests[] = {
3769 { TT_EGREP, zNested_Auth_DesSelect0, (regex_t*)NULL }, };
3772 * Fix Command Arguments for Nested_Auth_Des
3774 static const char* apzNested_Auth_DesPatch[] = {
3779 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3781 * Description of Nested_Motorola fix
3783 tSCC zNested_MotorolaName[] =
3787 * File name selection pattern
3789 tSCC zNested_MotorolaList[] =
3790 "|sys/limits.h|limits.h|";
3792 * Machine/OS name selection pattern
3794 tSCC* apzNested_MotorolaMachs[] = {
3795 "m68k-motorola-sysv*",
3796 (const char*)NULL };
3799 * content selection pattern - do fix if pattern found
3801 tSCC zNested_MotorolaSelect0[] =
3802 "max # bytes atomic in write|error value returned by Math lib";
3804 #define NESTED_MOTOROLA_TEST_CT 1
3805 static tTestDesc aNested_MotorolaTests[] = {
3806 { TT_EGREP, zNested_MotorolaSelect0, (regex_t*)NULL }, };
3809 * Fix Command Arguments for Nested_Motorola
3811 static const char* apzNested_MotorolaPatch[] = { "sed",
3812 "-e", "s@^\\(#undef[ \t][ \t]*PIPE_BUF[ \t]*/\\* max # bytes atomic in write to a\\)$@\\1 */@",
3813 "-e", "s@\\(/\\*#define\tHUGE_VAL\t3.[0-9e+]* \\)\\(/\\*error value returned by Math lib\\*/\\)$@\\1*/ \\2@",
3816 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3818 * Description of Nested_Sys_Limits fix
3820 tSCC zNested_Sys_LimitsName[] =
3821 "nested_sys_limits";
3824 * File name selection pattern
3826 tSCC zNested_Sys_LimitsList[] =
3829 * Machine/OS name selection pattern
3831 #define apzNested_Sys_LimitsMachs (const char**)NULL
3834 * content selection pattern - do fix if pattern found
3836 tSCC zNested_Sys_LimitsSelect0[] =
3839 #define NESTED_SYS_LIMITS_TEST_CT 1
3840 static tTestDesc aNested_Sys_LimitsTests[] = {
3841 { TT_EGREP, zNested_Sys_LimitsSelect0, (regex_t*)NULL }, };
3844 * Fix Command Arguments for Nested_Sys_Limits
3846 static const char* apzNested_Sys_LimitsPatch[] = { "sed",
3847 "-e", "/CHILD_MAX/s,/\\* Max, Max,",
3848 "-e", "/OPEN_MAX/s,/\\* Max, Max,",
3851 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3853 * Description of Netbsd_Extra_Semicolon fix
3855 tSCC zNetbsd_Extra_SemicolonName[] =
3856 "netbsd_extra_semicolon";
3859 * File name selection pattern
3861 tSCC zNetbsd_Extra_SemicolonList[] =
3864 * Machine/OS name selection pattern
3866 tSCC* apzNetbsd_Extra_SemicolonMachs[] = {
3868 (const char*)NULL };
3871 * content selection pattern - do fix if pattern found
3873 tSCC zNetbsd_Extra_SemicolonSelect0[] =
3874 "#define[ \t]*__END_DECLS[ \t]*};";
3876 #define NETBSD_EXTRA_SEMICOLON_TEST_CT 1
3877 static tTestDesc aNetbsd_Extra_SemicolonTests[] = {
3878 { TT_EGREP, zNetbsd_Extra_SemicolonSelect0, (regex_t*)NULL }, };
3881 * Fix Command Arguments for Netbsd_Extra_Semicolon
3883 static const char* apzNetbsd_Extra_SemicolonPatch[] = {
3885 "#define __END_DECLS }",
3888 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3890 * Description of Next_Math_Prefix fix
3892 tSCC zNext_Math_PrefixName[] =
3896 * File name selection pattern
3898 tSCC zNext_Math_PrefixList[] =
3901 * Machine/OS name selection pattern
3903 #define apzNext_Math_PrefixMachs (const char**)NULL
3906 * content selection pattern - do fix if pattern found
3908 tSCC zNext_Math_PrefixSelect0[] =
3909 "^extern[ \t]+double[ \t]+__const__[ \t]";
3911 #define NEXT_MATH_PREFIX_TEST_CT 1
3912 static tTestDesc aNext_Math_PrefixTests[] = {
3913 { TT_EGREP, zNext_Math_PrefixSelect0, (regex_t*)NULL }, };
3916 * Fix Command Arguments for Next_Math_Prefix
3918 static const char* apzNext_Math_PrefixPatch[] = {
3920 "extern double %1(",
3921 "^extern[ \t]+double[ \t]+__const__[ \t]+([a-z]+)\\(",
3924 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3926 * Description of Next_Template fix
3928 tSCC zNext_TemplateName[] =
3932 * File name selection pattern
3934 tSCC zNext_TemplateList[] =
3937 * Machine/OS name selection pattern
3939 #define apzNext_TemplateMachs (const char**)NULL
3942 * content selection pattern - do fix if pattern found
3944 tSCC zNext_TemplateSelect0[] =
3947 #define NEXT_TEMPLATE_TEST_CT 1
3948 static tTestDesc aNext_TemplateTests[] = {
3949 { TT_EGREP, zNext_TemplateSelect0, (regex_t*)NULL }, };
3952 * Fix Command Arguments for Next_Template
3954 static const char* apzNext_TemplatePatch[] = {
3957 "\\(([^)]*)[ \t]template\\)",
3960 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3962 * Description of Next_Volitile fix
3964 tSCC zNext_VolitileName[] =
3968 * File name selection pattern
3970 tSCC zNext_VolitileList[] =
3973 * Machine/OS name selection pattern
3975 #define apzNext_VolitileMachs (const char**)NULL
3978 * content selection pattern - do fix if pattern found
3980 tSCC zNext_VolitileSelect0[] =
3981 "^extern[ \t]+volatile[ \t]+void[ \t]";
3983 #define NEXT_VOLITILE_TEST_CT 1
3984 static tTestDesc aNext_VolitileTests[] = {
3985 { TT_EGREP, zNext_VolitileSelect0, (regex_t*)NULL }, };
3988 * Fix Command Arguments for Next_Volitile
3990 static const char* apzNext_VolitilePatch[] = {
3993 "^extern[ \t]+volatile[ \t]+void[ \t]+(exit|abort)\\(",
3996 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3998 * Description of Next_Wait_Union fix
4000 tSCC zNext_Wait_UnionName[] =
4004 * File name selection pattern
4006 tSCC zNext_Wait_UnionList[] =
4009 * Machine/OS name selection pattern
4011 #define apzNext_Wait_UnionMachs (const char**)NULL
4014 * content selection pattern - do fix if pattern found
4016 tSCC zNext_Wait_UnionSelect0[] =
4017 "wait\\(union wait";
4019 #define NEXT_WAIT_UNION_TEST_CT 1
4020 static tTestDesc aNext_Wait_UnionTests[] = {
4021 { TT_EGREP, zNext_Wait_UnionSelect0, (regex_t*)NULL }, };
4024 * Fix Command Arguments for Next_Wait_Union
4026 static const char* apzNext_Wait_UnionPatch[] = {
4031 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4033 * Description of Nodeent_Syntax fix
4035 tSCC zNodeent_SyntaxName[] =
4039 * File name selection pattern
4041 tSCC zNodeent_SyntaxList[] =
4042 "|netdnet/dnetdb.h|";
4044 * Machine/OS name selection pattern
4046 #define apzNodeent_SyntaxMachs (const char**)NULL
4049 * content selection pattern - do fix if pattern found
4051 tSCC zNodeent_SyntaxSelect0[] =
4052 "char[ \t]*\\*na_addr[ \t]*$";
4054 #define NODEENT_SYNTAX_TEST_CT 1
4055 static tTestDesc aNodeent_SyntaxTests[] = {
4056 { TT_EGREP, zNodeent_SyntaxSelect0, (regex_t*)NULL }, };
4059 * Fix Command Arguments for Nodeent_Syntax
4061 static const char* apzNodeent_SyntaxPatch[] = {
4066 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4068 * Description of Obstack_Lvalue_Cast fix
4070 tSCC zObstack_Lvalue_CastName[] =
4071 "obstack_lvalue_cast";
4074 * File name selection pattern
4076 tSCC zObstack_Lvalue_CastList[] =
4079 * Machine/OS name selection pattern
4081 #define apzObstack_Lvalue_CastMachs (const char**)NULL
4084 * content selection pattern - do fix if pattern found
4086 tSCC zObstack_Lvalue_CastSelect0[] =
4087 "\\*\\(\\(([^()]*)\\*\\)(.*)\\)\\+\\+ = \\(([^()]*)\\)";
4089 #define OBSTACK_LVALUE_CAST_TEST_CT 1
4090 static tTestDesc aObstack_Lvalue_CastTests[] = {
4091 { TT_EGREP, zObstack_Lvalue_CastSelect0, (regex_t*)NULL }, };
4094 * Fix Command Arguments for Obstack_Lvalue_Cast
4096 static const char* apzObstack_Lvalue_CastPatch[] = {
4098 "((*((%1*)%2) = (%3)), (%2 += sizeof (%1)))",
4101 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4103 * Description of Osf_Namespace_A fix
4105 tSCC zOsf_Namespace_AName[] =
4109 * File name selection pattern
4111 tSCC zOsf_Namespace_AList[] =
4112 "|reg_types.h|sys/lc_core.h|";
4114 * Machine/OS name selection pattern
4116 #define apzOsf_Namespace_AMachs (const char**)NULL
4119 * perform the 'test' shell command - do fix on success
4121 tSCC zOsf_Namespace_ATest0[] =
4123 tSCC zOsf_Namespace_ATest1[] =
4124 " -r sys/lc_core.h";
4125 tSCC zOsf_Namespace_ATest2[] =
4126 " -n \"`grep '} regex_t;' reg_types.h`\"";
4127 tSCC zOsf_Namespace_ATest3[] =
4128 " -z \"`grep __regex_t regex.h`\"";
4130 #define OSF_NAMESPACE_A_TEST_CT 4
4131 static tTestDesc aOsf_Namespace_ATests[] = {
4132 { TT_TEST, zOsf_Namespace_ATest0, 0 /* unused */ },
4133 { TT_TEST, zOsf_Namespace_ATest1, 0 /* unused */ },
4134 { TT_TEST, zOsf_Namespace_ATest2, 0 /* unused */ },
4135 { TT_TEST, zOsf_Namespace_ATest3, 0 /* unused */ }, };
4138 * Fix Command Arguments for Osf_Namespace_A
4140 static const char* apzOsf_Namespace_APatch[] = {
4143 "reg(ex|off|match)_t",
4146 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4148 * Description of Osf_Namespace_C fix
4150 tSCC zOsf_Namespace_CName[] =
4154 * File name selection pattern
4156 tSCC zOsf_Namespace_CList[] =
4159 * Machine/OS name selection pattern
4161 #define apzOsf_Namespace_CMachs (const char**)NULL
4164 * content selection pattern - do fix if pattern found
4166 tSCC zOsf_Namespace_CSelect0[] =
4167 "#include <reg_types.h>.*";
4170 * perform the 'test' shell command - do fix on success
4172 tSCC zOsf_Namespace_CTest0[] =
4174 tSCC zOsf_Namespace_CTest1[] =
4175 " -r sys/lc_core.h";
4176 tSCC zOsf_Namespace_CTest2[] =
4177 " -n \"`grep '} regex_t;' reg_types.h`\"";
4178 tSCC zOsf_Namespace_CTest3[] =
4179 " -z \"`grep __regex_t regex.h`\"";
4181 #define OSF_NAMESPACE_C_TEST_CT 5
4182 static tTestDesc aOsf_Namespace_CTests[] = {
4183 { TT_TEST, zOsf_Namespace_CTest0, 0 /* unused */ },
4184 { TT_TEST, zOsf_Namespace_CTest1, 0 /* unused */ },
4185 { TT_TEST, zOsf_Namespace_CTest2, 0 /* unused */ },
4186 { TT_TEST, zOsf_Namespace_CTest3, 0 /* unused */ },
4187 { TT_EGREP, zOsf_Namespace_CSelect0, (regex_t*)NULL }, };
4190 * Fix Command Arguments for Osf_Namespace_C
4192 static const char* apzOsf_Namespace_CPatch[] = {
4195 typedef __regex_t\tregex_t;\n\
4196 typedef __regoff_t\tregoff_t;\n\
4197 typedef __regmatch_t\tregmatch_t;",
4200 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4202 * Description of Pthread_Page_Size fix
4204 tSCC zPthread_Page_SizeName[] =
4205 "pthread_page_size";
4208 * File name selection pattern
4210 tSCC zPthread_Page_SizeList[] =
4213 * Machine/OS name selection pattern
4215 #define apzPthread_Page_SizeMachs (const char**)NULL
4218 * content selection pattern - do fix if pattern found
4220 tSCC zPthread_Page_SizeSelect0[] =
4223 #define PTHREAD_PAGE_SIZE_TEST_CT 1
4224 static tTestDesc aPthread_Page_SizeTests[] = {
4225 { TT_EGREP, zPthread_Page_SizeSelect0, (regex_t*)NULL }, };
4228 * Fix Command Arguments for Pthread_Page_Size
4230 static const char* apzPthread_Page_SizePatch[] = {
4235 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4237 * Description of Read_Ret_Type fix
4239 tSCC zRead_Ret_TypeName[] =
4243 * File name selection pattern
4245 tSCC zRead_Ret_TypeList[] =
4248 * Machine/OS name selection pattern
4250 #define apzRead_Ret_TypeMachs (const char**)NULL
4253 * content selection pattern - do fix if pattern found
4255 tSCC zRead_Ret_TypeSelect0[] =
4256 "extern int\t.*, fread\\(\\), fwrite\\(\\)";
4258 #define READ_RET_TYPE_TEST_CT 1
4259 static tTestDesc aRead_Ret_TypeTests[] = {
4260 { TT_EGREP, zRead_Ret_TypeSelect0, (regex_t*)NULL }, };
4263 * Fix Command Arguments for Read_Ret_Type
4265 static const char* apzRead_Ret_TypePatch[] = {
4267 "extern unsigned int fread(), fwrite();\n\
4269 "(extern int\t.*), fread\\(\\), fwrite\\(\\)(.*)",
4272 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4274 * Description of Rpc_Xdr_Lvalue_Cast_A fix
4276 tSCC zRpc_Xdr_Lvalue_Cast_AName[] =
4277 "rpc_xdr_lvalue_cast_a";
4280 * File name selection pattern
4282 tSCC zRpc_Xdr_Lvalue_Cast_AList[] =
4285 * Machine/OS name selection pattern
4287 #define apzRpc_Xdr_Lvalue_Cast_AMachs (const char**)NULL
4290 * content selection pattern - do fix if pattern found
4292 tSCC zRpc_Xdr_Lvalue_Cast_ASelect0[] =
4293 "#define[ \t]*IXDR_GET_LONG.*\\\\\n\
4296 #define RPC_XDR_LVALUE_CAST_A_TEST_CT 1
4297 static tTestDesc aRpc_Xdr_Lvalue_Cast_ATests[] = {
4298 { TT_EGREP, zRpc_Xdr_Lvalue_Cast_ASelect0, (regex_t*)NULL }, };
4301 * Fix Command Arguments for Rpc_Xdr_Lvalue_Cast_A
4303 static const char* apzRpc_Xdr_Lvalue_Cast_APatch[] = {
4305 "#define IXDR_GET_LONG(buf) ((long)IXDR_GET_U_INT32(buf))",
4308 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4310 * Description of Rpc_Xdr_Lvalue_Cast_B fix
4312 tSCC zRpc_Xdr_Lvalue_Cast_BName[] =
4313 "rpc_xdr_lvalue_cast_b";
4316 * File name selection pattern
4318 tSCC zRpc_Xdr_Lvalue_Cast_BList[] =
4321 * Machine/OS name selection pattern
4323 #define apzRpc_Xdr_Lvalue_Cast_BMachs (const char**)NULL
4326 * content selection pattern - do fix if pattern found
4328 tSCC zRpc_Xdr_Lvalue_Cast_BSelect0[] =
4329 "#define[ \t]*IXDR_PUT_LONG.*\\\\\n\
4332 #define RPC_XDR_LVALUE_CAST_B_TEST_CT 1
4333 static tTestDesc aRpc_Xdr_Lvalue_Cast_BTests[] = {
4334 { TT_EGREP, zRpc_Xdr_Lvalue_Cast_BSelect0, (regex_t*)NULL }, };
4337 * Fix Command Arguments for Rpc_Xdr_Lvalue_Cast_B
4339 static const char* apzRpc_Xdr_Lvalue_Cast_BPatch[] = {
4341 "#define IXDR_PUT_LONG(buf, v) ((long)IXDR_PUT_INT32(buf, (long)(v)))",
4344 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4346 * Description of Rs6000_Double fix
4348 tSCC zRs6000_DoubleName[] =
4352 * File name selection pattern
4354 tSCC zRs6000_DoubleList[] =
4357 * Machine/OS name selection pattern
4359 #define apzRs6000_DoubleMachs (const char**)NULL
4362 * content selection pattern - do fix if pattern found
4364 tSCC zRs6000_DoubleSelect0[] =
4365 "[^a-zA-Z_]class\\(";
4367 #define RS6000_DOUBLE_TEST_CT 1
4368 static tTestDesc aRs6000_DoubleTests[] = {
4369 { TT_EGREP, zRs6000_DoubleSelect0, (regex_t*)NULL }, };
4372 * Fix Command Arguments for Rs6000_Double
4374 static const char* apzRs6000_DoublePatch[] = {
4376 "#ifndef __cplusplus\n\
4379 "^.*[^a-zA-Z_]class\\(.*",
4382 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4384 * Description of Rs6000_Fchmod fix
4386 tSCC zRs6000_FchmodName[] =
4390 * File name selection pattern
4392 tSCC zRs6000_FchmodList[] =
4395 * Machine/OS name selection pattern
4397 #define apzRs6000_FchmodMachs (const char**)NULL
4400 * content selection pattern - do fix if pattern found
4402 tSCC zRs6000_FchmodSelect0[] =
4403 "fchmod\\(char \\*";
4405 #define RS6000_FCHMOD_TEST_CT 1
4406 static tTestDesc aRs6000_FchmodTests[] = {
4407 { TT_EGREP, zRs6000_FchmodSelect0, (regex_t*)NULL }, };
4410 * Fix Command Arguments for Rs6000_Fchmod
4412 static const char* apzRs6000_FchmodPatch[] = {
4417 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4419 * Description of Rs6000_Param fix
4421 tSCC zRs6000_ParamName[] =
4425 * File name selection pattern
4427 tSCC zRs6000_ParamList[] =
4428 "|stdio.h|unistd.h|";
4430 * Machine/OS name selection pattern
4432 #define apzRs6000_ParamMachs (const char**)NULL
4435 * content selection pattern - do fix if pattern found
4437 tSCC zRs6000_ParamSelect0[] =
4438 "rename\\(const char \\*old, const char \\*new\\)";
4440 #define RS6000_PARAM_TEST_CT 1
4441 static tTestDesc aRs6000_ParamTests[] = {
4442 { TT_EGREP, zRs6000_ParamSelect0, (regex_t*)NULL }, };
4445 * Fix Command Arguments for Rs6000_Param
4447 static const char* apzRs6000_ParamPatch[] = {
4449 "rename(const char *_old, const char *_new)",
4452 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4454 * Description of Sco_Math fix
4456 tSCC zSco_MathName[] =
4460 * File name selection pattern
4462 tSCC zSco_MathList[] =
4463 "|math.h|ansi/math.h|posix/math.h|xpg4/math.h|xpg4v2/math.h|xpg4plus/math.h|ods_30_compat/math.h|oldstyle/math.h|";
4465 * Machine/OS name selection pattern
4467 #define apzSco_MathMachs (const char**)NULL
4470 * content selection pattern - do fix if pattern found
4472 tSCC zSco_MathSelect0[] =
4473 "inline double abs";
4475 #define SCO_MATH_TEST_CT 1
4476 static tTestDesc aSco_MathTests[] = {
4477 { TT_EGREP, zSco_MathSelect0, (regex_t*)NULL }, };
4480 * Fix Command Arguments for Sco_Math
4482 static const char* apzSco_MathPatch[] = { "sed",
4483 "-e", "/#define.*__fp_class(a) \\\\/i\\\n\
4484 #ifndef __GNUC__\n",
4485 "-e", "/.*__builtin_generic/a\\\n\
4487 #define __fp_class(a) \\\\\\\n\
4488 __builtin_choose_expr(__builtin_types_compatible_p(typeof(a),long double),\\\\\\\n\
4489 __fpclassifyl(a), \\\\\\\n\
4490 __builtin_choose_expr(__builtin_types_compatible_p(typeof(a), float), \\\\\\\n\
4491 __fpclassifyf(a),__fpclassify(a)))\\\n\
4493 "-e", "/extern \"C\\+\\+\"/N;/inline double abs/i\\\n\
4494 #ifndef __GNUC__\n",
4495 "-e", "/inline long double trunc/N;/inline long double trunc.*}.*extern \"C\\+\\+\"/a\\\n\
4496 #endif /* ! __GNUC__ */",
4499 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4501 * Description of Sco_Regset fix
4503 tSCC zSco_RegsetName[] =
4507 * File name selection pattern
4509 tSCC zSco_RegsetList[] =
4512 * Machine/OS name selection pattern
4514 tSCC* apzSco_RegsetMachs[] = {
4516 (const char*)NULL };
4519 * content selection pattern - do fix if pattern found
4521 tSCC zSco_RegsetSelect0[] =
4522 "(struct[ \t]+.*)fpstate";
4524 #define SCO_REGSET_TEST_CT 1
4525 static tTestDesc aSco_RegsetTests[] = {
4526 { TT_EGREP, zSco_RegsetSelect0, (regex_t*)NULL }, };
4529 * Fix Command Arguments for Sco_Regset
4531 static const char* apzSco_RegsetPatch[] = {
4536 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4538 * Description of Sco_Static_Func fix
4540 tSCC zSco_Static_FuncName[] =
4544 * File name selection pattern
4546 tSCC zSco_Static_FuncList[] =
4549 * Machine/OS name selection pattern
4551 tSCC* apzSco_Static_FuncMachs[] = {
4553 (const char*)NULL };
4556 * content selection pattern - do fix if pattern found
4558 tSCC zSco_Static_FuncSelect0[] =
4561 #define SCO_STATIC_FUNC_TEST_CT 1
4562 static tTestDesc aSco_Static_FuncTests[] = {
4563 { TT_EGREP, zSco_Static_FuncSelect0, (regex_t*)NULL }, };
4566 * Fix Command Arguments for Sco_Static_Func
4568 static const char* apzSco_Static_FuncPatch[] = { "sed",
4569 "-e", "/^static int/i\\\n\
4570 #if __cplusplus\\\n\
4572 #endif /* __cplusplus */",
4574 #if __cplusplus\\\n\
4576 #endif /* __cplusplus */",
4579 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4581 * Description of Sco_Utime fix
4583 tSCC zSco_UtimeName[] =
4587 * File name selection pattern
4589 tSCC zSco_UtimeList[] =
4592 * Machine/OS name selection pattern
4594 tSCC* apzSco_UtimeMachs[] = {
4596 (const char*)NULL };
4599 * content selection pattern - do fix if pattern found
4601 tSCC zSco_UtimeSelect0[] =
4602 "\\(const char \\*, struct utimbuf \\*\\);";
4604 #define SCO_UTIME_TEST_CT 1
4605 static tTestDesc aSco_UtimeTests[] = {
4606 { TT_EGREP, zSco_UtimeSelect0, (regex_t*)NULL }, };
4609 * Fix Command Arguments for Sco_Utime
4611 static const char* apzSco_UtimePatch[] = {
4613 "(const char *, const struct utimbuf *);",
4616 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4618 * Description of Solaris_Mutex_Init_1 fix
4620 tSCC zSolaris_Mutex_Init_1Name[] =
4621 "solaris_mutex_init_1";
4624 * File name selection pattern
4626 tSCC zSolaris_Mutex_Init_1List[] =
4629 * Machine/OS name selection pattern
4631 #define apzSolaris_Mutex_Init_1Machs (const char**)NULL
4634 * content selection pattern - do fix if pattern found
4636 tSCC zSolaris_Mutex_Init_1Select0[] =
4637 "@\\(#\\)pthread.h[ \t]+1.1[0-9][ \t]+9[567]/[0-9/]+ SMI";
4639 #define SOLARIS_MUTEX_INIT_1_TEST_CT 1
4640 static tTestDesc aSolaris_Mutex_Init_1Tests[] = {
4641 { TT_EGREP, zSolaris_Mutex_Init_1Select0, (regex_t*)NULL }, };
4644 * Fix Command Arguments for Solaris_Mutex_Init_1
4646 static const char* apzSolaris_Mutex_Init_1Patch[] = { "sed",
4647 "-e", "/define[ \t]*PTHREAD_MUTEX_INI/s/{0, 0,/{{{0}, 0}, {{{0}}},/\n\
4648 /define[ \t]*PTHREAD_COND_INI/s/{0,/{{{0},0},/",
4651 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4653 * Description of Solaris_Mutex_Init_2 fix
4655 tSCC zSolaris_Mutex_Init_2Name[] =
4656 "solaris_mutex_init_2";
4659 * File name selection pattern
4661 tSCC zSolaris_Mutex_Init_2List[] =
4664 * Machine/OS name selection pattern
4666 #define apzSolaris_Mutex_Init_2Machs (const char**)NULL
4669 * content selection pattern - do fix if pattern found
4671 tSCC zSolaris_Mutex_Init_2Select0[] =
4672 "@\\(#\\)pthread.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
4674 #define SOLARIS_MUTEX_INIT_2_TEST_CT 1
4675 static tTestDesc aSolaris_Mutex_Init_2Tests[] = {
4676 { TT_EGREP, zSolaris_Mutex_Init_2Select0, (regex_t*)NULL }, };
4679 * Fix Command Arguments for Solaris_Mutex_Init_2
4681 static const char* apzSolaris_Mutex_Init_2Patch[] = {
4683 "#if __STDC__ - 0 == 0 && !defined(_NO_LONGLONG)\n\
4688 "(^#define[ \t]+PTHREAD_(MUTEX|COND)_INITIALIZER[ \t]+\\{.*),[ \t]*0\\}(|[ \t].*)$",
4691 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4693 * Description of Solaris_Socket fix
4695 tSCC zSolaris_SocketName[] =
4699 * File name selection pattern
4701 tSCC zSolaris_SocketList[] =
4704 * Machine/OS name selection pattern
4706 #define apzSolaris_SocketMachs (const char**)NULL
4709 * content selection pattern - do fix if pattern found
4711 tSCC zSolaris_SocketSelect0[] =
4712 "@\\(#\\)socket.h[ \t]+1.[123][0-9][ \t]+9[567]/[0-9/]+ SMI";
4714 #define SOLARIS_SOCKET_TEST_CT 1
4715 static tTestDesc aSolaris_SocketTests[] = {
4716 { TT_EGREP, zSolaris_SocketSelect0, (regex_t*)NULL }, };
4719 * Fix Command Arguments for Solaris_Socket
4721 static const char* apzSolaris_SocketPatch[] = {
4723 "extern int %1(int, %2void *, int, int);",
4724 "^extern int (recv|send)\\(int, (const )*char \\*, int, int\\);",
4727 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4729 * Description of Solaris_Stdio_Tag fix
4731 tSCC zSolaris_Stdio_TagName[] =
4732 "solaris_stdio_tag";
4735 * File name selection pattern
4737 tSCC zSolaris_Stdio_TagList[] =
4740 * Machine/OS name selection pattern
4742 #define apzSolaris_Stdio_TagMachs (const char**)NULL
4745 * content selection pattern - do fix if pattern found
4747 tSCC zSolaris_Stdio_TagSelect0[] =
4748 "__cplusplus < 54321L";
4750 #define SOLARIS_STDIO_TAG_TEST_CT 1
4751 static tTestDesc aSolaris_Stdio_TagTests[] = {
4752 { TT_EGREP, zSolaris_Stdio_TagSelect0, (regex_t*)NULL }, };
4755 * Fix Command Arguments for Solaris_Stdio_Tag
4757 static const char* apzSolaris_Stdio_TagPatch[] = { "sed",
4758 "-e", "s/defined(__cplusplus) && (__cplusplus < 54321L)/0/",
4761 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4763 * Description of Solaris_Unistd fix
4765 tSCC zSolaris_UnistdName[] =
4769 * File name selection pattern
4771 tSCC zSolaris_UnistdList[] =
4774 * Machine/OS name selection pattern
4776 #define apzSolaris_UnistdMachs (const char**)NULL
4779 * content selection pattern - do fix if pattern found
4781 tSCC zSolaris_UnistdSelect0[] =
4782 "@\\(#\\)unistd.h[ \t]+1.3[0-9][ \t]+9[567]/[0-9/]+ SMI";
4785 * content bypass pattern - skip fix if pattern found
4787 tSCC zSolaris_UnistdBypass0[] =
4790 #define SOLARIS_UNISTD_TEST_CT 2
4791 static tTestDesc aSolaris_UnistdTests[] = {
4792 { TT_NEGREP, zSolaris_UnistdBypass0, (regex_t*)NULL },
4793 { TT_EGREP, zSolaris_UnistdSelect0, (regex_t*)NULL }, };
4796 * Fix Command Arguments for Solaris_Unistd
4798 static const char* apzSolaris_UnistdPatch[] = {
4800 "extern int getpagesize();\n\
4802 "^extern (pid_t|int) getpgid\\(.*\\);",
4805 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4807 * Description of Solaris_Widec fix
4809 tSCC zSolaris_WidecName[] =
4813 * File name selection pattern
4815 tSCC zSolaris_WidecList[] =
4818 * Machine/OS name selection pattern
4820 tSCC* apzSolaris_WidecMachs[] = {
4821 "*-*-solaris2.[0-5]",
4822 "*-*-solaris2.[0-5].*",
4823 (const char*)NULL };
4826 * content selection pattern - do fix if pattern found
4828 tSCC zSolaris_WidecSelect0[] =
4832 * content bypass pattern - skip fix if pattern found
4834 tSCC zSolaris_WidecBypass0[] =
4835 "include.*wchar\\.h";
4837 #define SOLARIS_WIDEC_TEST_CT 2
4838 static tTestDesc aSolaris_WidecTests[] = {
4839 { TT_NEGREP, zSolaris_WidecBypass0, (regex_t*)NULL },
4840 { TT_EGREP, zSolaris_WidecSelect0, (regex_t*)NULL }, };
4843 * Fix Command Arguments for Solaris_Widec
4845 static const char* apzSolaris_WidecPatch[] = {
4848 #include <wchar.h>",
4851 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4853 * Description of Statsswtch fix
4855 tSCC zStatsswtchName[] =
4859 * File name selection pattern
4861 tSCC zStatsswtchList[] =
4864 * Machine/OS name selection pattern
4866 #define apzStatsswtchMachs (const char**)NULL
4869 * content selection pattern - do fix if pattern found
4871 tSCC zStatsswtchSelect0[] =
4874 #define STATSSWTCH_TEST_CT 1
4875 static tTestDesc aStatsswtchTests[] = {
4876 { TT_EGREP, zStatsswtchSelect0, (regex_t*)NULL }, };
4879 * Fix Command Arguments for Statsswtch
4881 static const char* apzStatsswtchPatch[] = {
4886 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4888 * Description of Stdio_Stdarg_H fix
4890 tSCC zStdio_Stdarg_HName[] =
4894 * File name selection pattern
4896 tSCC zStdio_Stdarg_HList[] =
4899 * Machine/OS name selection pattern
4901 #define apzStdio_Stdarg_HMachs (const char**)NULL
4904 * content bypass pattern - skip fix if pattern found
4906 tSCC zStdio_Stdarg_HBypass0[] =
4907 "include.*(stdarg.h|machine/ansi.h)";
4909 #define STDIO_STDARG_H_TEST_CT 1
4910 static tTestDesc aStdio_Stdarg_HTests[] = {
4911 { TT_NEGREP, zStdio_Stdarg_HBypass0, (regex_t*)NULL }, };
4914 * Fix Command Arguments for Stdio_Stdarg_H
4916 static const char* apzStdio_Stdarg_HPatch[] = {
4918 "#define __need___va_list\n\
4919 #include <stdarg.h>\n",
4922 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4924 * Description of Stdio_Va_List fix
4926 tSCC zStdio_Va_ListName[] =
4930 * File name selection pattern
4932 tSCC zStdio_Va_ListList[] =
4933 "|stdio.h|internal/stdio_core.h|internal/wchar_core.h|";
4935 * Machine/OS name selection pattern
4937 #define apzStdio_Va_ListMachs (const char**)NULL
4940 * content bypass pattern - skip fix if pattern found
4942 tSCC zStdio_Va_ListBypass0[] =
4943 "__gnuc_va_list|_BSD_VA_LIST_|__DJ_va_list|_G_va_list";
4945 #define STDIO_VA_LIST_TEST_CT 1
4946 static tTestDesc aStdio_Va_ListTests[] = {
4947 { TT_NEGREP, zStdio_Va_ListBypass0, (regex_t*)NULL }, };
4950 * Fix Command Arguments for Stdio_Va_List
4952 static const char* apzStdio_Va_ListPatch[] = { "sed",
4953 "-e", "s@[ \t]va_list\\([ \t)]\\)@ __gnuc_va_list\\1@\n\
4954 s@(va_list)&@(__gnuc_va_list)\\&@\n\
4955 s@ _VA_LIST_));@ __gnuc_va_list));@\n\
4956 s@ __VA_LIST__));@ __gnuc_va_list));@\n\
4957 s@ va_list@ __not_va_list__@\n\
4958 s@\\*va_list@*__not_va_list__@\n\
4959 s@ __va_list)@ __gnuc_va_list)@\n\
4960 s@typedef[ \t]\\(.*\\)[ \t]va_list[ \t]*;@typedef \\1 __not_va_list__;@\n\
4961 s@typedef[ \t]*__va_list__@typedef __gnuc_va_list@\n\
4962 s@GNUC_VA_LIST@GNUC_Va_LIST@\n\
4963 s@_VA_LIST_DEFINED@_Va_LIST_DEFINED@\n\
4964 s@_NEED___VA_LIST@_NEED___Va_LIST@\n\
4965 s@VA_LIST@DUMMY_VA_LIST@\n\
4966 s@_Va_LIST@_VA_LIST@",
4969 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4971 * Description of Stdio_Va_List_Clients fix
4973 tSCC zStdio_Va_List_ClientsName[] =
4974 "stdio_va_list_clients";
4977 * File name selection pattern
4979 tSCC zStdio_Va_List_ClientsList[] =
4980 "|com_err.h|cps.h|curses.h|krb5.h|lc_core.h|pfmt.h|wchar.h|curses_colr/curses.h|";
4982 * Machine/OS name selection pattern
4984 #define apzStdio_Va_List_ClientsMachs (const char**)NULL
4987 * content bypass pattern - skip fix if pattern found
4989 tSCC zStdio_Va_List_ClientsBypass0[] =
4990 "__gnuc_va_list|_BSD_VA_LIST_|__DJ_va_list|_G_va_list";
4991 tSCC zStdio_Va_List_ClientsBypass1[] =
4992 "include <stdarg\\.h>|#ifdef va_start";
4994 #define STDIO_VA_LIST_CLIENTS_TEST_CT 2
4995 static tTestDesc aStdio_Va_List_ClientsTests[] = {
4996 { TT_NEGREP, zStdio_Va_List_ClientsBypass0, (regex_t*)NULL },
4997 { TT_NEGREP, zStdio_Va_List_ClientsBypass1, (regex_t*)NULL }, };
5000 * Fix Command Arguments for Stdio_Va_List_Clients
5002 static const char* apzStdio_Va_List_ClientsPatch[] = { "sed",
5003 "-e", "s@[ \t]va_list\\([ \t)]\\)@ __gnuc_va_list\\1@\n\
5004 s@(va_list)&@(__gnuc_va_list)\\&@\n\
5005 s@ _VA_LIST_));@ __gnuc_va_list));@\n\
5006 s@ __VA_LIST__));@ __gnuc_va_list));@\n\
5007 s@ va_list@ __not_va_list__@\n\
5008 s@\\*va_list@*__not_va_list__@\n\
5009 s@ __va_list)@ __gnuc_va_list)@\n\
5010 s@typedef[ \t]\\(.*\\)[ \t]va_list[ \t]*;@typedef \\1 __not_va_list__;@\n\
5011 s@typedef[ \t]*__va_list__@typedef __gnuc_va_list@\n\
5012 s@GNUC_VA_LIST@GNUC_Va_LIST@\n\
5013 s@_VA_LIST_DEFINED@_Va_LIST_DEFINED@\n\
5014 s@_NEED___VA_LIST@_NEED___Va_LIST@\n\
5015 s@VA_LIST@DUMMY_VA_LIST@\n\
5016 s@_Va_LIST@_VA_LIST@",
5019 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5021 * Description of Strict_Ansi_Not fix
5023 tSCC zStrict_Ansi_NotName[] =
5027 * File name selection pattern
5029 #define zStrict_Ansi_NotList (char*)NULL
5031 * Machine/OS name selection pattern
5033 #define apzStrict_Ansi_NotMachs (const char**)NULL
5036 * content selection pattern - do fix if pattern found
5038 tSCC zStrict_Ansi_NotSelect0[] =
5039 "^([ \t]*#[ \t]*if.*)(!__STDC__|__STDC__[ \t]*==[ \t]*0|__STDC__[ \t]*!=[ \t]*1|__STDC__[ \t]*-[ \t]*0[ \t]*==[ \t]*0)";
5042 * content bypass pattern - skip fix if pattern found
5044 tSCC zStrict_Ansi_NotBypass0[] =
5045 "GNU and MIPS C compilers define __STDC__ differently";
5046 tSCC zStrict_Ansi_NotBypass1[] =
5047 "__SCO_VERSION__.*__STDC__ != 1";
5050 * perform the C function call test
5052 tSCC zStrict_Ansi_NotFTst0[] = "stdc_0_in_system_headers";
5054 #define STRICT_ANSI_NOT_TEST_CT 4
5055 static tTestDesc aStrict_Ansi_NotTests[] = {
5056 { TT_FUNCTION, zStrict_Ansi_NotFTst0, 0 /* unused */ },
5057 { TT_NEGREP, zStrict_Ansi_NotBypass0, (regex_t*)NULL },
5058 { TT_NEGREP, zStrict_Ansi_NotBypass1, (regex_t*)NULL },
5059 { TT_EGREP, zStrict_Ansi_NotSelect0, (regex_t*)NULL }, };
5062 * Fix Command Arguments for Strict_Ansi_Not
5064 static const char* apzStrict_Ansi_NotPatch[] = {
5066 "%1 !defined(__STRICT_ANSI__)",
5069 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5071 * Description of Strict_Ansi_Not_Ctd fix
5073 tSCC zStrict_Ansi_Not_CtdName[] =
5074 "strict_ansi_not_ctd";
5077 * File name selection pattern
5079 tSCC zStrict_Ansi_Not_CtdList[] =
5080 "|math.h|limits.h|stdio.h|signal.h|stdlib.h|sys/signal.h|time.h|";
5082 * Machine/OS name selection pattern
5084 #define apzStrict_Ansi_Not_CtdMachs (const char**)NULL
5087 * content selection pattern - do fix if pattern found
5089 tSCC zStrict_Ansi_Not_CtdSelect0[] =
5090 "^([ \t]*(\\(|&&|\\|\\|)([ \t(]*!*[ \t]*defined\\([a-zA-Z_0-9]+\\)[ \t]*[|&][|&])*[ \t(]*)(__STDC__[ \t]*(|-[ \t]*0[ \t]*)==[ \t]*0)";
5093 * perform the C function call test
5095 tSCC zStrict_Ansi_Not_CtdFTst0[] = "stdc_0_in_system_headers";
5097 #define STRICT_ANSI_NOT_CTD_TEST_CT 2
5098 static tTestDesc aStrict_Ansi_Not_CtdTests[] = {
5099 { TT_FUNCTION, zStrict_Ansi_Not_CtdFTst0, 0 /* unused */ },
5100 { TT_EGREP, zStrict_Ansi_Not_CtdSelect0, (regex_t*)NULL }, };
5103 * Fix Command Arguments for Strict_Ansi_Not_Ctd
5105 static const char* apzStrict_Ansi_Not_CtdPatch[] = {
5107 "%1 !defined(__STRICT_ANSI__)",
5110 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5112 * Description of Strict_Ansi_Only fix
5114 tSCC zStrict_Ansi_OnlyName[] =
5118 * File name selection pattern
5120 #define zStrict_Ansi_OnlyList (char*)NULL
5122 * Machine/OS name selection pattern
5124 #define apzStrict_Ansi_OnlyMachs (const char**)NULL
5127 * content selection pattern - do fix if pattern found
5129 tSCC zStrict_Ansi_OnlySelect0[] =
5130 "^([ \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)";
5133 * perform the C function call test
5135 tSCC zStrict_Ansi_OnlyFTst0[] = "stdc_0_in_system_headers";
5137 #define STRICT_ANSI_ONLY_TEST_CT 2
5138 static tTestDesc aStrict_Ansi_OnlyTests[] = {
5139 { TT_FUNCTION, zStrict_Ansi_OnlyFTst0, 0 /* unused */ },
5140 { TT_EGREP, zStrict_Ansi_OnlySelect0, (regex_t*)NULL }, };
5143 * Fix Command Arguments for Strict_Ansi_Only
5145 static const char* apzStrict_Ansi_OnlyPatch[] = {
5147 "%1 defined(__STRICT_ANSI__)",
5150 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5152 * Description of Struct_File fix
5154 tSCC zStruct_FileName[] =
5158 * File name selection pattern
5160 tSCC zStruct_FileList[] =
5163 * Machine/OS name selection pattern
5165 #define apzStruct_FileMachs (const char**)NULL
5168 * content selection pattern - do fix if pattern found
5170 tSCC zStruct_FileSelect0[] =
5171 "^.*xdrstdio_create.*struct __file_s";
5173 #define STRUCT_FILE_TEST_CT 1
5174 static tTestDesc aStruct_FileTests[] = {
5175 { TT_EGREP, zStruct_FileSelect0, (regex_t*)NULL }, };
5178 * Fix Command Arguments for Struct_File
5180 static const char* apzStruct_FilePatch[] = {
5182 "struct __file_s;\n\
5186 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5188 * Description of Struct_Sockaddr fix
5190 tSCC zStruct_SockaddrName[] =
5194 * File name selection pattern
5196 tSCC zStruct_SockaddrList[] =
5199 * Machine/OS name selection pattern
5201 #define apzStruct_SockaddrMachs (const char**)NULL
5204 * content selection pattern - do fix if pattern found
5206 tSCC zStruct_SockaddrSelect0[] =
5207 "^.*authdes_create.*struct sockaddr[^_]";
5210 * content bypass pattern - skip fix if pattern found
5212 tSCC zStruct_SockaddrBypass0[] =
5214 tSCC zStruct_SockaddrBypass1[] =
5215 "struct sockaddr;\n";
5217 #define STRUCT_SOCKADDR_TEST_CT 3
5218 static tTestDesc aStruct_SockaddrTests[] = {
5219 { TT_NEGREP, zStruct_SockaddrBypass0, (regex_t*)NULL },
5220 { TT_NEGREP, zStruct_SockaddrBypass1, (regex_t*)NULL },
5221 { TT_EGREP, zStruct_SockaddrSelect0, (regex_t*)NULL }, };
5224 * Fix Command Arguments for Struct_Sockaddr
5226 static const char* apzStruct_SockaddrPatch[] = {
5228 "struct sockaddr;\n\
5232 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5234 * Description of Sun_Auth_Proto fix
5236 tSCC zSun_Auth_ProtoName[] =
5240 * File name selection pattern
5242 tSCC zSun_Auth_ProtoList[] =
5243 "|rpc/auth.h|rpc/clnt.h|rpc/svc.h|rpc/xdr.h|";
5245 * Machine/OS name selection pattern
5247 #define apzSun_Auth_ProtoMachs (const char**)NULL
5250 * content selection pattern - do fix if pattern found
5252 tSCC zSun_Auth_ProtoSelect0[] =
5253 "\\(\\*[a-z][a-z_]*\\)\\(\\)";
5256 * content bypass pattern - skip fix if pattern found
5258 tSCC zSun_Auth_ProtoBypass0[] =
5261 #define SUN_AUTH_PROTO_TEST_CT 2
5262 static tTestDesc aSun_Auth_ProtoTests[] = {
5263 { TT_NEGREP, zSun_Auth_ProtoBypass0, (regex_t*)NULL },
5264 { TT_EGREP, zSun_Auth_ProtoSelect0, (regex_t*)NULL }, };
5267 * Fix Command Arguments for Sun_Auth_Proto
5269 static const char* apzSun_Auth_ProtoPatch[] = {
5271 "#ifdef __cplusplus\n\
5276 "(.*\\(\\*[a-z][a-z_]*\\))\\(\\);(.*)",
5279 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5281 * Description of Sun_Bogus_Ifdef fix
5283 tSCC zSun_Bogus_IfdefName[] =
5287 * File name selection pattern
5289 tSCC zSun_Bogus_IfdefList[] =
5290 "|hsfs/hsfs_spec.h|hsfs/iso_spec.h|";
5292 * Machine/OS name selection pattern
5294 #define apzSun_Bogus_IfdefMachs (const char**)NULL
5297 * content selection pattern - do fix if pattern found
5299 tSCC zSun_Bogus_IfdefSelect0[] =
5300 "#ifdef(.*\\|\\|.*)";
5302 #define SUN_BOGUS_IFDEF_TEST_CT 1
5303 static tTestDesc aSun_Bogus_IfdefTests[] = {
5304 { TT_EGREP, zSun_Bogus_IfdefSelect0, (regex_t*)NULL }, };
5307 * Fix Command Arguments for Sun_Bogus_Ifdef
5309 static const char* apzSun_Bogus_IfdefPatch[] = {
5314 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5316 * Description of Sun_Catmacro fix
5318 tSCC zSun_CatmacroName[] =
5322 * File name selection pattern
5324 tSCC zSun_CatmacroList[] =
5325 "|pixrect/memvar.h|";
5327 * Machine/OS name selection pattern
5329 #define apzSun_CatmacroMachs (const char**)NULL
5332 * content selection pattern - do fix if pattern found
5334 tSCC zSun_CatmacroSelect0[] =
5335 "^#define[ \t]+CAT\\(a,b\\).*";
5337 #define SUN_CATMACRO_TEST_CT 1
5338 static tTestDesc aSun_CatmacroTests[] = {
5339 { TT_EGREP, zSun_CatmacroSelect0, (regex_t*)NULL }, };
5342 * Fix Command Arguments for Sun_Catmacro
5344 static const char* apzSun_CatmacroPatch[] = {
5347 # define CAT(a,b) a##b\n\
5353 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5355 * Description of Sun_Malloc fix
5357 tSCC zSun_MallocName[] =
5361 * File name selection pattern
5363 tSCC zSun_MallocList[] =
5366 * Machine/OS name selection pattern
5368 #define apzSun_MallocMachs (const char**)NULL
5371 * content bypass pattern - skip fix if pattern found
5373 tSCC zSun_MallocBypass0[] =
5374 "_CLASSIC_ANSI_TYPES";
5376 #define SUN_MALLOC_TEST_CT 1
5377 static tTestDesc aSun_MallocTests[] = {
5378 { TT_NEGREP, zSun_MallocBypass0, (regex_t*)NULL }, };
5381 * Fix Command Arguments for Sun_Malloc
5383 static const char* apzSun_MallocPatch[] = { "sed",
5384 "-e", "s/typedef[ \t]char \\*\tmalloc_t/typedef void \\*\tmalloc_t/g",
5385 "-e", "s/int[ \t][ \t]*free/void\tfree/g",
5386 "-e", "s/char\\([ \t]*\\*[ \t]*malloc\\)/void\\1/g",
5387 "-e", "s/char\\([ \t]*\\*[ \t]*realloc\\)/void\\1/g",
5388 "-e", "s/char\\([ \t]*\\*[ \t]*calloc\\)/void\\1/g",
5391 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5393 * Description of Sun_Rusers_Semi fix
5395 tSCC zSun_Rusers_SemiName[] =
5399 * File name selection pattern
5401 tSCC zSun_Rusers_SemiList[] =
5402 "|rpcsvc/rusers.h|";
5404 * Machine/OS name selection pattern
5406 #define apzSun_Rusers_SemiMachs (const char**)NULL
5409 * content selection pattern - do fix if pattern found
5411 tSCC zSun_Rusers_SemiSelect0[] =
5414 #define SUN_RUSERS_SEMI_TEST_CT 1
5415 static tTestDesc aSun_Rusers_SemiTests[] = {
5416 { TT_EGREP, zSun_Rusers_SemiSelect0, (regex_t*)NULL }, };
5419 * Fix Command Arguments for Sun_Rusers_Semi
5421 static const char* apzSun_Rusers_SemiPatch[] = { "sed",
5422 "-e", "/^struct/,/^};/s/_cnt$/_cnt;/",
5425 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5427 * Description of Sun_Signal fix
5429 tSCC zSun_SignalName[] =
5433 * File name selection pattern
5435 tSCC zSun_SignalList[] =
5436 "|sys/signal.h|signal.h|";
5438 * Machine/OS name selection pattern
5440 #define apzSun_SignalMachs (const char**)NULL
5443 * content selection pattern - do fix if pattern found
5445 tSCC zSun_SignalSelect0[] =
5446 "^void\t\\(\\*signal\\(\\)\\)\\(\\);.*";
5448 #define SUN_SIGNAL_TEST_CT 1
5449 static tTestDesc aSun_SignalTests[] = {
5450 { TT_EGREP, zSun_SignalSelect0, (regex_t*)NULL }, };
5453 * Fix Command Arguments for Sun_Signal
5455 static const char* apzSun_SignalPatch[] = {
5457 "#ifdef __cplusplus\n\
5458 void\t(*signal(...))(...);\n\
5464 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5466 * Description of Sunos_Strlen fix
5468 tSCC zSunos_StrlenName[] =
5472 * File name selection pattern
5474 tSCC zSunos_StrlenList[] =
5477 * Machine/OS name selection pattern
5479 #define apzSunos_StrlenMachs (const char**)NULL
5482 * content selection pattern - do fix if pattern found
5484 tSCC zSunos_StrlenSelect0[] =
5485 "int[ \t]*strlen\\(\\);(.*)";
5487 #define SUNOS_STRLEN_TEST_CT 1
5488 static tTestDesc aSunos_StrlenTests[] = {
5489 { TT_EGREP, zSunos_StrlenSelect0, (regex_t*)NULL }, };
5492 * Fix Command Arguments for Sunos_Strlen
5494 static const char* apzSunos_StrlenPatch[] = {
5496 "__SIZE_TYPE__ strlen();%1",
5499 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5501 * Description of Svr4__P fix
5503 tSCC zSvr4__PName[] =
5507 * File name selection pattern
5509 tSCC zSvr4__PList[] =
5510 "|math.h|floatingpoint.h|";
5512 * Machine/OS name selection pattern
5514 #define apzSvr4__PMachs (const char**)NULL
5517 * content selection pattern - do fix if pattern found
5519 tSCC zSvr4__PSelect0[] =
5520 "^#define[ \t]+__P.*";
5522 #define SVR4__P_TEST_CT 1
5523 static tTestDesc aSvr4__PTests[] = {
5524 { TT_EGREP, zSvr4__PSelect0, (regex_t*)NULL }, };
5527 * Fix Command Arguments for Svr4__P
5529 static const char* apzSvr4__PPatch[] = {
5536 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5538 * Description of Svr4_Disable_Opt fix
5540 tSCC zSvr4_Disable_OptName[] =
5544 * File name selection pattern
5546 tSCC zSvr4_Disable_OptList[] =
5549 * Machine/OS name selection pattern
5551 #define apzSvr4_Disable_OptMachs (const char**)NULL
5554 * content selection pattern - do fix if pattern found
5556 tSCC zSvr4_Disable_OptSelect0[] =
5557 "#define.*__std_hdr_";
5559 #define SVR4_DISABLE_OPT_TEST_CT 1
5560 static tTestDesc aSvr4_Disable_OptTests[] = {
5561 { TT_EGREP, zSvr4_Disable_OptSelect0, (regex_t*)NULL }, };
5564 * Fix Command Arguments for Svr4_Disable_Opt
5566 static const char* apzSvr4_Disable_OptPatch[] = { "sed",
5567 "-e", "/#define.*__std_hdr_/d",
5570 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5572 * Description of Svr4_Getcwd fix
5574 tSCC zSvr4_GetcwdName[] =
5578 * File name selection pattern
5580 tSCC zSvr4_GetcwdList[] =
5581 "|stdlib.h|unistd.h|prototypes.h|";
5583 * Machine/OS name selection pattern
5585 #define apzSvr4_GetcwdMachs (const char**)NULL
5588 * content selection pattern - do fix if pattern found
5590 tSCC zSvr4_GetcwdSelect0[] =
5591 "getcwd\\(char \\*, int\\)";
5593 #define SVR4_GETCWD_TEST_CT 1
5594 static tTestDesc aSvr4_GetcwdTests[] = {
5595 { TT_EGREP, zSvr4_GetcwdSelect0, (regex_t*)NULL }, };
5598 * Fix Command Arguments for Svr4_Getcwd
5600 static const char* apzSvr4_GetcwdPatch[] = {
5602 "getcwd(char *, size_t)",
5605 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5607 * Description of Svr4_Krnl fix
5609 tSCC zSvr4_KrnlName[] =
5613 * File name selection pattern
5615 tSCC zSvr4_KrnlList[] =
5616 "|fs/rfs/rf_cache.h|sys/erec.h|sys/err.h|sys/char.h|sys/getpages.h|sys/map.h|sys/cmn_err.h|sys/kdebugger.h|";
5618 * Machine/OS name selection pattern
5620 tSCC* apzSvr4_KrnlMachs[] = {
5622 "i?86-sequent-ptx*",
5623 (const char*)NULL };
5626 * content bypass pattern - skip fix if pattern found
5628 tSCC zSvr4_KrnlBypass0[] =
5631 #define SVR4_KRNL_TEST_CT 1
5632 static tTestDesc aSvr4_KrnlTests[] = {
5633 { TT_NEGREP, zSvr4_KrnlBypass0, (regex_t*)NULL }, };
5636 * Fix Command Arguments for Svr4_Krnl
5638 static const char* apzSvr4_KrnlPatch[] = {
5641 "#endif /* _KERNEL */\n",
5644 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5646 * Description of Svr4_Profil fix
5648 tSCC zSvr4_ProfilName[] =
5652 * File name selection pattern
5654 tSCC zSvr4_ProfilList[] =
5655 "|stdlib.h|unistd.h|";
5657 * Machine/OS name selection pattern
5659 #define apzSvr4_ProfilMachs (const char**)NULL
5662 * content selection pattern - do fix if pattern found
5664 tSCC zSvr4_ProfilSelect0[] =
5665 "profil\\(unsigned short \\*, unsigned int, unsigned int, unsigned int\\)";
5668 * content bypass pattern - skip fix if pattern found
5670 tSCC zSvr4_ProfilBypass0[] =
5673 #define SVR4_PROFIL_TEST_CT 2
5674 static tTestDesc aSvr4_ProfilTests[] = {
5675 { TT_NEGREP, zSvr4_ProfilBypass0, (regex_t*)NULL },
5676 { TT_EGREP, zSvr4_ProfilSelect0, (regex_t*)NULL }, };
5679 * Fix Command Arguments for Svr4_Profil
5681 static const char* apzSvr4_ProfilPatch[] = {
5683 "profil(unsigned short *, size_t, int, unsigned int)",
5686 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5688 * Description of Svr4_Sighandler_Type fix
5690 tSCC zSvr4_Sighandler_TypeName[] =
5691 "svr4_sighandler_type";
5694 * File name selection pattern
5696 tSCC zSvr4_Sighandler_TypeList[] =
5699 * Machine/OS name selection pattern
5701 #define apzSvr4_Sighandler_TypeMachs (const char**)NULL
5704 * content selection pattern - do fix if pattern found
5706 tSCC zSvr4_Sighandler_TypeSelect0[] =
5707 "void *\\(\\*\\)\\(\\)";
5709 #define SVR4_SIGHANDLER_TYPE_TEST_CT 1
5710 static tTestDesc aSvr4_Sighandler_TypeTests[] = {
5711 { TT_EGREP, zSvr4_Sighandler_TypeSelect0, (regex_t*)NULL }, };
5714 * Fix Command Arguments for Svr4_Sighandler_Type
5716 static const char* apzSvr4_Sighandler_TypePatch[] = {
5721 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5723 * Description of Svr4_Undeclared_Getrnge fix
5725 tSCC zSvr4_Undeclared_GetrngeName[] =
5726 "svr4_undeclared_getrnge";
5729 * File name selection pattern
5731 tSCC zSvr4_Undeclared_GetrngeList[] =
5734 * Machine/OS name selection pattern
5736 #define apzSvr4_Undeclared_GetrngeMachs (const char**)NULL
5739 * content selection pattern - do fix if pattern found
5741 tSCC zSvr4_Undeclared_GetrngeSelect0[] =
5745 * content bypass pattern - skip fix if pattern found
5747 tSCC zSvr4_Undeclared_GetrngeBypass0[] =
5748 "static void getrnge";
5750 #define SVR4_UNDECLARED_GETRNGE_TEST_CT 2
5751 static tTestDesc aSvr4_Undeclared_GetrngeTests[] = {
5752 { TT_NEGREP, zSvr4_Undeclared_GetrngeBypass0, (regex_t*)NULL },
5753 { TT_EGREP, zSvr4_Undeclared_GetrngeSelect0, (regex_t*)NULL }, };
5756 * Fix Command Arguments for Svr4_Undeclared_Getrnge
5758 static const char* apzSvr4_Undeclared_GetrngePatch[] = {
5761 static int getrnge ();",
5762 "^static int[ \t]+size;",
5765 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5767 * Description of Sysv68_String fix
5769 tSCC zSysv68_StringName[] =
5773 * File name selection pattern
5775 tSCC zSysv68_StringList[] =
5776 "|testing.h|string.h|";
5778 * Machine/OS name selection pattern
5780 #define apzSysv68_StringMachs (const char**)NULL
5783 * content bypass pattern - skip fix if pattern found
5785 tSCC zSysv68_StringBypass0[] =
5786 "_CLASSIC_ANSI_TYPES";
5788 #define SYSV68_STRING_TEST_CT 1
5789 static tTestDesc aSysv68_StringTests[] = {
5790 { TT_NEGREP, zSysv68_StringBypass0, (regex_t*)NULL }, };
5793 * Fix Command Arguments for Sysv68_String
5795 static const char* apzSysv68_StringPatch[] = { "sed",
5796 "-e", "s/extern[ \t]*int[ \t]*strlen();/extern unsigned int strlen();/",
5797 "-e", "s/extern[ \t]*int[ \t]*ffs[ \t]*(long);/extern int ffs(int);/",
5798 "-e", "s/strdup(char \\*s1);/strdup(const char *s1);/",
5799 "-e", "/^extern char$/N",
5800 "-e", "s/^extern char\\(\\n\t\\*memccpy(),\\)$/extern void\\1/",
5801 "-e", "/^extern int$/N",
5802 "-e", "s/^extern int\\(\\n\tstrlen(),\\)/extern size_t\\1/",
5803 "-e", "/^\tstrncmp(),$/N",
5804 "-e", "s/^\\(\tstrncmp()\\),\\n\\(\tstrlen(),\\)$/\\1;\\\n\
5805 extern unsigned int\\\n\
5809 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5811 * Description of Sysz_Stdlib_For_Sun fix
5813 tSCC zSysz_Stdlib_For_SunName[] =
5814 "sysz_stdlib_for_sun";
5817 * File name selection pattern
5819 tSCC zSysz_Stdlib_For_SunList[] =
5822 * Machine/OS name selection pattern
5824 #define apzSysz_Stdlib_For_SunMachs (const char**)NULL
5827 * content selection pattern - do fix if pattern found
5829 tSCC zSysz_Stdlib_For_SunSelect0[] =
5830 "char[ \t]*\\*[ \t]*(calloc|malloc|realloc|bsearch)[ \t]*\\(";
5832 #define SYSZ_STDLIB_FOR_SUN_TEST_CT 1
5833 static tTestDesc aSysz_Stdlib_For_SunTests[] = {
5834 { TT_EGREP, zSysz_Stdlib_For_SunSelect0, (regex_t*)NULL }, };
5837 * Fix Command Arguments for Sysz_Stdlib_For_Sun
5839 static const char* apzSysz_Stdlib_For_SunPatch[] = {
5844 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5846 * Description of Thread_Keyword fix
5848 tSCC zThread_KeywordName[] =
5852 * File name selection pattern
5854 tSCC zThread_KeywordList[] =
5855 "|pthread.h|bits/sigthread.h|";
5857 * Machine/OS name selection pattern
5859 #define apzThread_KeywordMachs (const char**)NULL
5862 * content selection pattern - do fix if pattern found
5864 tSCC zThread_KeywordSelect0[] =
5865 "([* ])__thread([,)])";
5867 #define THREAD_KEYWORD_TEST_CT 1
5868 static tTestDesc aThread_KeywordTests[] = {
5869 { TT_EGREP, zThread_KeywordSelect0, (regex_t*)NULL }, };
5872 * Fix Command Arguments for Thread_Keyword
5874 static const char* apzThread_KeywordPatch[] = {
5879 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5881 * Description of Tinfo_Cplusplus fix
5883 tSCC zTinfo_CplusplusName[] =
5887 * File name selection pattern
5889 tSCC zTinfo_CplusplusList[] =
5892 * Machine/OS name selection pattern
5894 #define apzTinfo_CplusplusMachs (const char**)NULL
5897 * content selection pattern - do fix if pattern found
5899 tSCC zTinfo_CplusplusSelect0[] =
5902 #define TINFO_CPLUSPLUS_TEST_CT 1
5903 static tTestDesc aTinfo_CplusplusTests[] = {
5904 { TT_EGREP, zTinfo_CplusplusSelect0, (regex_t*)NULL }, };
5907 * Fix Command Arguments for Tinfo_Cplusplus
5909 static const char* apzTinfo_CplusplusPatch[] = {
5914 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5916 * Description of Ultrix_Atexit_Param fix
5918 tSCC zUltrix_Atexit_ParamName[] =
5919 "ultrix_atexit_param";
5922 * File name selection pattern
5924 tSCC zUltrix_Atexit_ParamList[] =
5927 * Machine/OS name selection pattern
5929 #define apzUltrix_Atexit_ParamMachs (const char**)NULL
5932 * content selection pattern - do fix if pattern found
5934 tSCC zUltrix_Atexit_ParamSelect0[] =
5935 "atexit\\(.*\\(\\)";
5937 #define ULTRIX_ATEXIT_PARAM_TEST_CT 1
5938 static tTestDesc aUltrix_Atexit_ParamTests[] = {
5939 { TT_EGREP, zUltrix_Atexit_ParamSelect0, (regex_t*)NULL }, };
5942 * Fix Command Arguments for Ultrix_Atexit_Param
5944 static const char* apzUltrix_Atexit_ParamPatch[] = {
5946 "atexit( void (*__func)( void )",
5949 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5951 * Description of Ultrix_Atof_Param fix
5953 tSCC zUltrix_Atof_ParamName[] =
5954 "ultrix_atof_param";
5957 * File name selection pattern
5959 tSCC zUltrix_Atof_ParamList[] =
5962 * Machine/OS name selection pattern
5964 #define apzUltrix_Atof_ParamMachs (const char**)NULL
5967 * content selection pattern - do fix if pattern found
5969 tSCC zUltrix_Atof_ParamSelect0[] =
5970 "atof\\([ \t]*char";
5972 #define ULTRIX_ATOF_PARAM_TEST_CT 1
5973 static tTestDesc aUltrix_Atof_ParamTests[] = {
5974 { TT_EGREP, zUltrix_Atof_ParamSelect0, (regex_t*)NULL }, };
5977 * Fix Command Arguments for Ultrix_Atof_Param
5979 static const char* apzUltrix_Atof_ParamPatch[] = {
5984 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5986 * Description of Ultrix_Const fix
5988 tSCC zUltrix_ConstName[] =
5992 * File name selection pattern
5994 tSCC zUltrix_ConstList[] =
5997 * Machine/OS name selection pattern
5999 #define apzUltrix_ConstMachs (const char**)NULL
6002 * content selection pattern - do fix if pattern found
6004 tSCC zUltrix_ConstSelect0[] =
6005 "perror\\( char \\*";
6007 #define ULTRIX_CONST_TEST_CT 1
6008 static tTestDesc aUltrix_ConstTests[] = {
6009 { TT_EGREP, zUltrix_ConstSelect0, (regex_t*)NULL }, };
6012 * Fix Command Arguments for Ultrix_Const
6014 static const char* apzUltrix_ConstPatch[] = {
6017 "([ \t*](perror|fputs|fwrite|scanf|fscanf)\\(.*)[ \t]+(char|void) \\*__",
6020 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6022 * Description of Ultrix_Const2 fix
6024 tSCC zUltrix_Const2Name[] =
6028 * File name selection pattern
6030 tSCC zUltrix_Const2List[] =
6033 * Machine/OS name selection pattern
6035 #define apzUltrix_Const2Machs (const char**)NULL
6038 * content selection pattern - do fix if pattern found
6040 tSCC zUltrix_Const2Select0[] =
6041 "\\*fopen\\( char \\*";
6043 #define ULTRIX_CONST2_TEST_CT 1
6044 static tTestDesc aUltrix_Const2Tests[] = {
6045 { TT_EGREP, zUltrix_Const2Select0, (regex_t*)NULL }, };
6048 * Fix Command Arguments for Ultrix_Const2
6050 static const char* apzUltrix_Const2Patch[] = {
6052 "%1( const char *%3, const char *",
6053 "([ \t*](fopen|sscanf|popen|tempnam))\\([ \t]*char[ \t]*\\*([^,]*),[ \t]*char[ \t]*\\*[ \t]*",
6056 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6058 * Description of Ultrix_Const3 fix
6060 tSCC zUltrix_Const3Name[] =
6064 * File name selection pattern
6066 tSCC zUltrix_Const3List[] =
6069 * Machine/OS name selection pattern
6071 #define apzUltrix_Const3Machs (const char**)NULL
6074 * content selection pattern - do fix if pattern found
6076 tSCC zUltrix_Const3Select0[] =
6077 "fdopen\\( .*, char \\*";
6079 #define ULTRIX_CONST3_TEST_CT 1
6080 static tTestDesc aUltrix_Const3Tests[] = {
6081 { TT_EGREP, zUltrix_Const3Select0, (regex_t*)NULL }, };
6084 * Fix Command Arguments for Ultrix_Const3
6086 static const char* apzUltrix_Const3Patch[] = {
6089 "([ \t*](fdopen)\\(.*)[ \t]+(char|void) \\*__",
6092 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6094 * Description of Ultrix_Fix_Fixproto fix
6096 tSCC zUltrix_Fix_FixprotoName[] =
6097 "ultrix_fix_fixproto";
6100 * File name selection pattern
6102 tSCC zUltrix_Fix_FixprotoList[] =
6105 * Machine/OS name selection pattern
6107 #define apzUltrix_Fix_FixprotoMachs (const char**)NULL
6110 * content selection pattern - do fix if pattern found
6112 tSCC zUltrix_Fix_FixprotoSelect0[] =
6115 #define ULTRIX_FIX_FIXPROTO_TEST_CT 1
6116 static tTestDesc aUltrix_Fix_FixprotoTests[] = {
6117 { TT_EGREP, zUltrix_Fix_FixprotoSelect0, (regex_t*)NULL }, };
6120 * Fix Command Arguments for Ultrix_Fix_Fixproto
6122 static const char* apzUltrix_Fix_FixprotoPatch[] = {
6126 "^[ \t]*extern[ \t]*int[ \t]*uname\\(\\);",
6129 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6131 * Description of Ultrix_Ifdef fix
6133 tSCC zUltrix_IfdefName[] =
6137 * File name selection pattern
6139 tSCC zUltrix_IfdefList[] =
6142 * Machine/OS name selection pattern
6144 #define apzUltrix_IfdefMachs (const char**)NULL
6147 * content selection pattern - do fix if pattern found
6149 tSCC zUltrix_IfdefSelect0[] =
6150 "^#ifdef KERNEL[ \t]+&&";
6152 #define ULTRIX_IFDEF_TEST_CT 1
6153 static tTestDesc aUltrix_IfdefTests[] = {
6154 { TT_EGREP, zUltrix_IfdefSelect0, (regex_t*)NULL }, };
6157 * Fix Command Arguments for Ultrix_Ifdef
6159 static const char* apzUltrix_IfdefPatch[] = {
6161 "#if defined(KERNEL) &&",
6164 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6166 * Description of Ultrix_Locale fix
6168 tSCC zUltrix_LocaleName[] =
6172 * File name selection pattern
6174 tSCC zUltrix_LocaleList[] =
6177 * Machine/OS name selection pattern
6179 #define apzUltrix_LocaleMachs (const char**)NULL
6182 * content selection pattern - do fix if pattern found
6184 tSCC zUltrix_LocaleSelect0[] =
6185 "@\\(#\\)locale\\.h.*6\\.1.*\\(ULTRIX\\)";
6187 #define ULTRIX_LOCALE_TEST_CT 1
6188 static tTestDesc aUltrix_LocaleTests[] = {
6189 { TT_EGREP, zUltrix_LocaleSelect0, (regex_t*)NULL }, };
6192 * Fix Command Arguments for Ultrix_Locale
6194 static const char* apzUltrix_LocalePatch[] = {
6198 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6200 * Description of Ultrix_Math_Ifdef fix
6202 tSCC zUltrix_Math_IfdefName[] =
6203 "ultrix_math_ifdef";
6206 * File name selection pattern
6208 tSCC zUltrix_Math_IfdefList[] =
6209 "|sys/limits.h|float.h|math.h|";
6211 * Machine/OS name selection pattern
6213 #define apzUltrix_Math_IfdefMachs (const char**)NULL
6216 * content selection pattern - do fix if pattern found
6218 tSCC zUltrix_Math_IfdefSelect0[] =
6219 "^(#if.*)\\|\\|[ \t]+CC\\$[a-z]+";
6221 #define ULTRIX_MATH_IFDEF_TEST_CT 1
6222 static tTestDesc aUltrix_Math_IfdefTests[] = {
6223 { TT_EGREP, zUltrix_Math_IfdefSelect0, (regex_t*)NULL }, };
6226 * Fix Command Arguments for Ultrix_Math_Ifdef
6228 static const char* apzUltrix_Math_IfdefPatch[] = {
6233 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6235 * Description of Ultrix_Nested_Ioctl fix
6237 tSCC zUltrix_Nested_IoctlName[] =
6238 "ultrix_nested_ioctl";
6241 * File name selection pattern
6243 tSCC zUltrix_Nested_IoctlList[] =
6246 * Machine/OS name selection pattern
6248 #define apzUltrix_Nested_IoctlMachs (const char**)NULL
6251 * content selection pattern - do fix if pattern found
6253 tSCC zUltrix_Nested_IoctlSelect0[] =
6254 "^/\\* #define SIOCSCREEN";
6256 #define ULTRIX_NESTED_IOCTL_TEST_CT 1
6257 static tTestDesc aUltrix_Nested_IoctlTests[] = {
6258 { TT_EGREP, zUltrix_Nested_IoctlSelect0, (regex_t*)NULL }, };
6261 * Fix Command Arguments for Ultrix_Nested_Ioctl
6263 static const char* apzUltrix_Nested_IoctlPatch[] = { "sed",
6264 "-e", "/^\\/\\* #define SIOCSCREEN/s@/\\* screend@*//* screend@",
6267 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6269 * Description of Ultrix_Nested_Svc fix
6271 tSCC zUltrix_Nested_SvcName[] =
6272 "ultrix_nested_svc";
6275 * File name selection pattern
6277 tSCC zUltrix_Nested_SvcList[] =
6280 * Machine/OS name selection pattern
6282 #define apzUltrix_Nested_SvcMachs (const char**)NULL
6285 * content selection pattern - do fix if pattern found
6287 tSCC zUltrix_Nested_SvcSelect0[] =
6288 "^ \\*[ \t]*int protocol; */\\*";
6290 #define ULTRIX_NESTED_SVC_TEST_CT 1
6291 static tTestDesc aUltrix_Nested_SvcTests[] = {
6292 { TT_EGREP, zUltrix_Nested_SvcSelect0, (regex_t*)NULL }, };
6295 * Fix Command Arguments for Ultrix_Nested_Svc
6297 static const char* apzUltrix_Nested_SvcPatch[] = { "sed",
6298 "-e", "s@^\\( \\*\tint protocol; \\)/\\*@\\1*/ /*@",
6301 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6303 * Description of Ultrix_Stat fix
6305 tSCC zUltrix_StatName[] =
6309 * File name selection pattern
6311 tSCC zUltrix_StatList[] =
6314 * Machine/OS name selection pattern
6316 #define apzUltrix_StatMachs (const char**)NULL
6319 * content selection pattern - do fix if pattern found
6321 tSCC zUltrix_StatSelect0[] =
6322 "@\\(#\\)stat\\.h.*6\\.1.*\\(ULTRIX\\)";
6324 #define ULTRIX_STAT_TEST_CT 1
6325 static tTestDesc aUltrix_StatTests[] = {
6326 { TT_EGREP, zUltrix_StatSelect0, (regex_t*)NULL }, };
6329 * Fix Command Arguments for Ultrix_Stat
6331 static const char* apzUltrix_StatPatch[] = { "sed",
6332 "-e", "/^#define[ \t]S_IFPORT[ \t]*S_IFIFO$/a\\\n\
6334 /* macro to test for symbolic link */\\\n\
6335 #define S_ISLNK(mode) (((mode) & S_IFMT) == S_IFLNK)\\\n\n",
6336 "-e", "/^[ \t]*fstat(),$/a\\\n\
6340 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6342 * Description of Ultrix_Static fix
6344 tSCC zUltrix_StaticName[] =
6348 * File name selection pattern
6350 tSCC zUltrix_StaticList[] =
6353 * Machine/OS name selection pattern
6355 #define apzUltrix_StaticMachs (const char**)NULL
6358 * content selection pattern - do fix if pattern found
6360 tSCC zUltrix_StaticSelect0[] =
6361 "#include \"r[34]_cpu";
6363 #define ULTRIX_STATIC_TEST_CT 1
6364 static tTestDesc aUltrix_StaticTests[] = {
6365 { TT_EGREP, zUltrix_StaticSelect0, (regex_t*)NULL }, };
6368 * Fix Command Arguments for Ultrix_Static
6370 static const char* apzUltrix_StaticPatch[] = { "sed",
6371 "-e", "s/^static struct tlb_pid_state/struct tlb_pid_state/",
6372 "-e", "s/^#include \"r3_cpu\\.h\"$/#include <machine\\/r3_cpu\\.h>/",
6373 "-e", "s/^#include \"r4_cpu\\.h\"$/#include <machine\\/r4_cpu\\.h>/",
6376 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6378 * Description of Ultrix_Stdlib fix
6380 tSCC zUltrix_StdlibName[] =
6384 * File name selection pattern
6386 tSCC zUltrix_StdlibList[] =
6389 * Machine/OS name selection pattern
6391 #define apzUltrix_StdlibMachs (const char**)NULL
6394 * content selection pattern - do fix if pattern found
6396 tSCC zUltrix_StdlibSelect0[] =
6397 "@\\(#\\)stdlib\\.h.*6\\.1.*\\(ULTRIX\\)";
6399 #define ULTRIX_STDLIB_TEST_CT 1
6400 static tTestDesc aUltrix_StdlibTests[] = {
6401 { TT_EGREP, zUltrix_StdlibSelect0, (regex_t*)NULL }, };
6404 * Fix Command Arguments for Ultrix_Stdlib
6406 static const char* apzUltrix_StdlibPatch[] = { "sed",
6407 "-e", "/^char.*getenv( const char .* );.*$/a\\\n\
6408 int\t\tsetenv( const char *__name, const char *__val, int __ovrwrt );\\\n\
6409 void\t\tunsetenv( const char *__name );\\\n\
6410 int\t\tputenv( char *__s );\n",
6411 "-e", "/^char.*getenv();.*$/a\\\n\
6413 void\tunsetenv();\\\n\
6417 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6419 * Description of Ultrix_Strings fix
6421 tSCC zUltrix_StringsName[] =
6425 * File name selection pattern
6427 tSCC zUltrix_StringsList[] =
6430 * Machine/OS name selection pattern
6432 #define apzUltrix_StringsMachs (const char**)NULL
6435 * content selection pattern - do fix if pattern found
6437 tSCC zUltrix_StringsSelect0[] =
6438 "@\\(#\\)strings\\.h.*6\\.1.*\\(ULTRIX\\)";
6440 #define ULTRIX_STRINGS_TEST_CT 1
6441 static tTestDesc aUltrix_StringsTests[] = {
6442 { TT_EGREP, zUltrix_StringsSelect0, (regex_t*)NULL }, };
6445 * Fix Command Arguments for Ultrix_Strings
6447 static const char* apzUltrix_StringsPatch[] = {
6451 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6453 * Description of Ultrix_Strings2 fix
6455 tSCC zUltrix_Strings2Name[] =
6459 * File name selection pattern
6461 tSCC zUltrix_Strings2List[] =
6464 * Machine/OS name selection pattern
6466 #define apzUltrix_Strings2Machs (const char**)NULL
6469 * content selection pattern - do fix if pattern found
6471 tSCC zUltrix_Strings2Select0[] =
6472 "@\\(#\\)strings\\.h.*6\\.1.*\\(ULTRIX\\)";
6474 #define ULTRIX_STRINGS2_TEST_CT 1
6475 static tTestDesc aUltrix_Strings2Tests[] = {
6476 { TT_EGREP, zUltrix_Strings2Select0, (regex_t*)NULL }, };
6479 * Fix Command Arguments for Ultrix_Strings2
6481 static const char* apzUltrix_Strings2Patch[] = { "sed",
6482 "-e", "/^.*strncmp( const .* );.*/a\\\n\
6485 \tstrcasecmp( const char *__s1, const char *__s2),\\\n\
6486 \tstrncasecmp( const char *__s1, const char *__s2, size_t __n );\n",
6487 "-e", "/^.*strncmp();.*/a\\\n\
6489 \tstrcasecmp(),\\\n\
6490 \tstrncasecmp();\n",
6493 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6495 * Description of Ultrix_Sys_Time fix
6497 tSCC zUltrix_Sys_TimeName[] =
6501 * File name selection pattern
6503 tSCC zUltrix_Sys_TimeList[] =
6506 * Machine/OS name selection pattern
6508 #define apzUltrix_Sys_TimeMachs (const char**)NULL
6511 * content selection pattern - do fix if pattern found
6513 tSCC zUltrix_Sys_TimeSelect0[] =
6514 "@\\(#\\)time\\.h.*6\\.1.*\\(ULTRIX\\)";
6516 #define ULTRIX_SYS_TIME_TEST_CT 1
6517 static tTestDesc aUltrix_Sys_TimeTests[] = {
6518 { TT_EGREP, zUltrix_Sys_TimeSelect0, (regex_t*)NULL }, };
6521 * Fix Command Arguments for Ultrix_Sys_Time
6523 static const char* apzUltrix_Sys_TimePatch[] = { "sed",
6524 "-e", "/^extern.*time_t.*time( time_t .* );.*$/a\\\n\
6526 extern int adjtime(struct timeval *, struct timeval *);\\\n\
6527 extern int getitimer(int, struct itimerval *);\\\n\
6528 extern int setitimer(int, struct itimerval *, struct itimerval *);\\\n\
6529 extern int gettimeofday(struct timeval *, struct timezone *);\\\n\
6530 extern int settimeofday(struct timeval *, struct timezone *);\\\n\
6531 extern void profil(const void *, size_t, size_t, unsigned int);\\\n\
6532 extern int stime(const time_t *);\\\n\
6533 extern int utimes(const char *, const struct timeval[2]);\\\n\
6534 extern int select(int, fd_set *, fd_set *, fd_set *, struct timeval *);\n",
6535 "-e", "/^extern.*double.*difftime();.*$/a\\\n\
6536 extern\tint adjtime();\\\n\
6537 extern\tint getitimer();\\\n\
6538 extern\tint setitimer();\\\n\
6539 extern\tint gettimeofday();\\\n\
6540 extern\tint settimeofday();\\\n\
6541 extern\tvoid profil();\\\n\
6542 extern\tint stime();\\\n\
6543 extern\tint utimes();\\\n\
6544 extern\tint select();\n",
6547 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6549 * Description of Ultrix_Unistd fix
6551 tSCC zUltrix_UnistdName[] =
6555 * File name selection pattern
6557 tSCC zUltrix_UnistdList[] =
6560 * Machine/OS name selection pattern
6562 #define apzUltrix_UnistdMachs (const char**)NULL
6565 * content selection pattern - do fix if pattern found
6567 tSCC zUltrix_UnistdSelect0[] =
6568 "@\\(#\\)unistd\\.h.*6\\.1.*\\(ULTRIX\\)";
6570 #define ULTRIX_UNISTD_TEST_CT 1
6571 static tTestDesc aUltrix_UnistdTests[] = {
6572 { TT_EGREP, zUltrix_UnistdSelect0, (regex_t*)NULL }, };
6575 * Fix Command Arguments for Ultrix_Unistd
6577 static const char* apzUltrix_UnistdPatch[] = { "sed",
6578 "-e", "/^[ \t]*getgroups(),.*$/a\\\n\
6579 \tgetpagesize(),\n",
6580 "-e", "/^[ \t]*fork(),.*$/a\\\n\
6584 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6586 * Description of Undefine_Null fix
6588 tSCC zUndefine_NullName[] =
6592 * File name selection pattern
6594 #define zUndefine_NullList (char*)NULL
6596 * Machine/OS name selection pattern
6598 #define apzUndefine_NullMachs (const char**)NULL
6601 * content selection pattern - do fix if pattern found
6603 tSCC zUndefine_NullSelect0[] =
6604 "^#[ \t]*define[ \t]+NULL[ \t]";
6607 * content bypass pattern - skip fix if pattern found
6609 tSCC zUndefine_NullBypass0[] =
6610 "#[ \t]*(ifn|un)def[ \t]+NULL($|[ \t\r])";
6612 #define UNDEFINE_NULL_TEST_CT 2
6613 static tTestDesc aUndefine_NullTests[] = {
6614 { TT_NEGREP, zUndefine_NullBypass0, (regex_t*)NULL },
6615 { TT_EGREP, zUndefine_NullSelect0, (regex_t*)NULL }, };
6618 * Fix Command Arguments for Undefine_Null
6620 static const char* apzUndefine_NullPatch[] = {
6625 "^#[ \t]*define[ \t]+NULL([^\r\n\
6629 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6631 * Description of Unicosmk_Restrict fix
6633 tSCC zUnicosmk_RestrictName[] =
6634 "unicosmk_restrict";
6637 * File name selection pattern
6639 tSCC zUnicosmk_RestrictList[] =
6640 "|stdio.h|stdlib.h|wchar.h|";
6642 * Machine/OS name selection pattern
6644 tSCC* apzUnicosmk_RestrictMachs[] = {
6646 (const char*)NULL };
6649 * content selection pattern - do fix if pattern found
6651 tSCC zUnicosmk_RestrictSelect0[] =
6652 "(\\*[ \t]*)restrict([ \t]+)";
6654 #define UNICOSMK_RESTRICT_TEST_CT 1
6655 static tTestDesc aUnicosmk_RestrictTests[] = {
6656 { TT_EGREP, zUnicosmk_RestrictSelect0, (regex_t*)NULL }, };
6659 * Fix Command Arguments for Unicosmk_Restrict
6661 static const char* apzUnicosmk_RestrictPatch[] = {
6666 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6668 * Description of Uw7_Byteorder_Fix fix
6670 tSCC zUw7_Byteorder_FixName[] =
6671 "uw7_byteorder_fix";
6674 * File name selection pattern
6676 tSCC zUw7_Byteorder_FixList[] =
6679 * Machine/OS name selection pattern
6681 tSCC* apzUw7_Byteorder_FixMachs[] = {
6685 "i?86-*-solaris2.[0-4]",
6686 "powerpcle-*-solaris2.[0-4]",
6687 "sparc-*-solaris2.[0-4]",
6688 (const char*)NULL };
6691 * content selection pattern - do fix if pattern found
6693 tSCC zUw7_Byteorder_FixSelect0[] =
6697 * perform the 'test' shell command - do fix on success
6699 tSCC zUw7_Byteorder_FixTest0[] =
6700 "-f sys/byteorder.h";
6702 #define UW7_BYTEORDER_FIX_TEST_CT 2
6703 static tTestDesc aUw7_Byteorder_FixTests[] = {
6704 { TT_TEST, zUw7_Byteorder_FixTest0, 0 /* unused */ },
6705 { TT_EGREP, zUw7_Byteorder_FixSelect0, (regex_t*)NULL }, };
6708 * Fix Command Arguments for Uw7_Byteorder_Fix
6710 static const char* apzUw7_Byteorder_FixPatch[] = {
6713 "^extern.*[ \t](htons|ntohs).*\\(in_port_t\\).*;",
6716 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6718 * Description of Va_I960_Macro fix
6720 tSCC zVa_I960_MacroName[] =
6724 * File name selection pattern
6726 tSCC zVa_I960_MacroList[] =
6727 "|arch/i960/archI960.h|";
6729 * Machine/OS name selection pattern
6731 #define apzVa_I960_MacroMachs (const char**)NULL
6734 * content selection pattern - do fix if pattern found
6736 tSCC zVa_I960_MacroSelect0[] =
6737 "__(vsiz|vali|vpad|alignof__)";
6739 #define VA_I960_MACRO_TEST_CT 1
6740 static tTestDesc aVa_I960_MacroTests[] = {
6741 { TT_EGREP, zVa_I960_MacroSelect0, (regex_t*)NULL }, };
6744 * Fix Command Arguments for Va_I960_Macro
6746 static const char* apzVa_I960_MacroPatch[] = {
6751 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6753 * Description of Void_Null fix
6755 tSCC zVoid_NullName[] =
6759 * File name selection pattern
6761 tSCC zVoid_NullList[] =
6762 "|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|";
6764 * Machine/OS name selection pattern
6766 #define apzVoid_NullMachs (const char**)NULL
6769 * content selection pattern - do fix if pattern found
6771 tSCC zVoid_NullSelect0[] =
6772 "^#[ \t]*define[ \t]+NULL[ \t]+\\(\\(void[ \t]*\\*\\)0\\)";
6775 * content bypass pattern - skip fix if pattern found
6777 tSCC zVoid_NullBypass0[] =
6780 #define VOID_NULL_TEST_CT 2
6781 static tTestDesc aVoid_NullTests[] = {
6782 { TT_NEGREP, zVoid_NullBypass0, (regex_t*)NULL },
6783 { TT_EGREP, zVoid_NullSelect0, (regex_t*)NULL }, };
6786 * Fix Command Arguments for Void_Null
6788 static const char* apzVoid_NullPatch[] = {
6793 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6795 * Description of Vxworks_Gcc_Problem fix
6797 tSCC zVxworks_Gcc_ProblemName[] =
6798 "vxworks_gcc_problem";
6801 * File name selection pattern
6803 tSCC zVxworks_Gcc_ProblemList[] =
6804 "|types/vxTypesBase.h|";
6806 * Machine/OS name selection pattern
6808 #define apzVxworks_Gcc_ProblemMachs (const char**)NULL
6811 * content selection pattern - do fix if pattern found
6813 tSCC zVxworks_Gcc_ProblemSelect0[] =
6814 "__GNUC_TYPEOF_FEATURE_BROKEN_USE_DEFAULT_UNTIL_FIXED__";
6816 #define VXWORKS_GCC_PROBLEM_TEST_CT 1
6817 static tTestDesc aVxworks_Gcc_ProblemTests[] = {
6818 { TT_EGREP, zVxworks_Gcc_ProblemSelect0, (regex_t*)NULL }, };
6821 * Fix Command Arguments for Vxworks_Gcc_Problem
6823 static const char* apzVxworks_Gcc_ProblemPatch[] = { "sed",
6824 "-e", "s/#ifdef __GNUC_TYPEOF_FEATURE_BROKEN_USE_DEFAULT_UNTIL_FIXED__/#if 1/",
6825 "-e", "/[ \t]size_t/i\\\n\
6826 #ifndef _GCC_SIZE_T\\\n\
6827 #define _GCC_SIZE_T\n",
6828 "-e", "/[ \t]size_t/a\\\n\
6830 "-e", "/[ \t]ptrdiff_t/i\\\n\
6831 #ifndef _GCC_PTRDIFF_T\\\n\
6832 #define _GCC_PTRDIFF_T\n",
6833 "-e", "/[ \t]ptrdiff_t/a\\\n\
6835 "-e", "/[ \t]wchar_t/i\\\n\
6836 #ifndef _GCC_WCHAR_T\\\n\
6837 #define _GCC_WCHAR_T\n",
6838 "-e", "/[ \t]wchar_t/a\\\n\
6842 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6844 * Description of Vxworks_Needs_Vxtypes fix
6846 tSCC zVxworks_Needs_VxtypesName[] =
6847 "vxworks_needs_vxtypes";
6850 * File name selection pattern
6852 tSCC zVxworks_Needs_VxtypesList[] =
6855 * Machine/OS name selection pattern
6857 #define apzVxworks_Needs_VxtypesMachs (const char**)NULL
6860 * content selection pattern - do fix if pattern found
6862 tSCC zVxworks_Needs_VxtypesSelect0[] =
6863 "uint_t([ \t]+_clocks_per_sec)";
6865 #define VXWORKS_NEEDS_VXTYPES_TEST_CT 1
6866 static tTestDesc aVxworks_Needs_VxtypesTests[] = {
6867 { TT_EGREP, zVxworks_Needs_VxtypesSelect0, (regex_t*)NULL }, };
6870 * Fix Command Arguments for Vxworks_Needs_Vxtypes
6872 static const char* apzVxworks_Needs_VxtypesPatch[] = {
6877 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6879 * Description of Vxworks_Needs_Vxworks fix
6881 tSCC zVxworks_Needs_VxworksName[] =
6882 "vxworks_needs_vxworks";
6885 * File name selection pattern
6887 tSCC zVxworks_Needs_VxworksList[] =
6890 * Machine/OS name selection pattern
6892 #define apzVxworks_Needs_VxworksMachs (const char**)NULL
6895 * content selection pattern - do fix if pattern found
6897 tSCC zVxworks_Needs_VxworksSelect0[] =
6898 "#[ \t]define[ \t]+__INCstath";
6901 * perform the 'test' shell command - do fix on success
6903 tSCC zVxworks_Needs_VxworksTest0[] =
6904 " -r types/vxTypesOld.h";
6905 tSCC zVxworks_Needs_VxworksTest1[] =
6906 " -n \"`egrep '#include' $file`\"";
6907 tSCC zVxworks_Needs_VxworksTest2[] =
6908 " -n \"`egrep ULONG $file`\"";
6910 #define VXWORKS_NEEDS_VXWORKS_TEST_CT 4
6911 static tTestDesc aVxworks_Needs_VxworksTests[] = {
6912 { TT_TEST, zVxworks_Needs_VxworksTest0, 0 /* unused */ },
6913 { TT_TEST, zVxworks_Needs_VxworksTest1, 0 /* unused */ },
6914 { TT_TEST, zVxworks_Needs_VxworksTest2, 0 /* unused */ },
6915 { TT_EGREP, zVxworks_Needs_VxworksSelect0, (regex_t*)NULL }, };
6918 * Fix Command Arguments for Vxworks_Needs_Vxworks
6920 static const char* apzVxworks_Needs_VxworksPatch[] = { "sed",
6921 "-e", "/#[ \t]define[ \t][ \t]*__INCstath/a\\\n\
6922 #include <types/vxTypesOld.h>\n",
6925 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6927 * Description of Vxworks_Time fix
6929 tSCC zVxworks_TimeName[] =
6933 * File name selection pattern
6935 tSCC zVxworks_TimeList[] =
6938 * Machine/OS name selection pattern
6940 #define apzVxworks_TimeMachs (const char**)NULL
6943 * content selection pattern - do fix if pattern found
6945 tSCC zVxworks_TimeSelect0[] =
6946 "#[ \t]*define[ \t]+VOIDFUNCPTR[ \t].*";
6949 * perform the 'test' shell command - do fix on success
6951 tSCC zVxworks_TimeTest0[] =
6954 #define VXWORKS_TIME_TEST_CT 2
6955 static tTestDesc aVxworks_TimeTests[] = {
6956 { TT_TEST, zVxworks_TimeTest0, 0 /* unused */ },
6957 { TT_EGREP, zVxworks_TimeSelect0, (regex_t*)NULL }, };
6960 * Fix Command Arguments for Vxworks_Time
6962 static const char* apzVxworks_TimePatch[] = {
6964 "#ifndef __gcc_VOIDFUNCPTR_defined\n\
6965 #ifdef __cplusplus\n\
6966 typedef void (*__gcc_VOIDFUNCPTR) (...);\n\
6968 typedef void (*__gcc_VOIDFUNCPTR) ();\n\
6970 #define __gcc_VOIDFUNCPTR_defined\n\
6972 #define VOIDFUNCPTR __gcc_VOIDFUNCPTR",
6975 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6977 * Description of Windiss_Math1 fix
6979 tSCC zWindiss_Math1Name[] =
6983 * File name selection pattern
6985 tSCC zWindiss_Math1List[] =
6988 * Machine/OS name selection pattern
6990 tSCC* apzWindiss_Math1Machs[] = {
6992 (const char*)NULL };
6993 #define WINDISS_MATH1_TEST_CT 0
6994 #define aWindiss_Math1Tests (tTestDesc*)NULL
6997 * Fix Command Arguments for Windiss_Math1
6999 static const char* apzWindiss_Math1Patch[] = { "sed",
7000 "-e", "s|inline long double cosl.*|#ifndef __GNUC__|",
7003 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7005 * Description of Windiss_Math2 fix
7007 tSCC zWindiss_Math2Name[] =
7011 * File name selection pattern
7013 tSCC zWindiss_Math2List[] =
7016 * Machine/OS name selection pattern
7018 tSCC* apzWindiss_Math2Machs[] = {
7020 (const char*)NULL };
7021 #define WINDISS_MATH2_TEST_CT 0
7022 #define aWindiss_Math2Tests (tTestDesc*)NULL
7025 * Fix Command Arguments for Windiss_Math2
7027 static const char* apzWindiss_Math2Patch[] = { "sed",
7028 "-e", "s|/\\* long double declarations \\*/|#endif /* __GNUC__ */|",
7031 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7033 * Description of Windiss_Valist fix
7035 tSCC zWindiss_ValistName[] =
7039 * File name selection pattern
7041 #define zWindiss_ValistList (char*)NULL
7043 * Machine/OS name selection pattern
7045 tSCC* apzWindiss_ValistMachs[] = {
7047 (const char*)NULL };
7050 * content selection pattern - do fix if pattern found
7052 tSCC zWindiss_ValistSelect0[] =
7053 "(#include.*)diab/va_list.h";
7055 #define WINDISS_VALIST_TEST_CT 1
7056 static tTestDesc aWindiss_ValistTests[] = {
7057 { TT_EGREP, zWindiss_ValistSelect0, (regex_t*)NULL }, };
7060 * Fix Command Arguments for Windiss_Valist
7062 static const char* apzWindiss_ValistPatch[] = { "sed",
7063 "-e", "s|diab/va_list.h|stdarg.h|",
7066 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7068 * Description of X11_Class fix
7070 tSCC zX11_ClassName[] =
7074 * File name selection pattern
7076 tSCC zX11_ClassList[] =
7079 * Machine/OS name selection pattern
7081 #define apzX11_ClassMachs (const char**)NULL
7084 * content selection pattern - do fix if pattern found
7086 tSCC zX11_ClassSelect0[] =
7087 "^([ \t]*char \\*)class;(.*)";
7090 * content bypass pattern - skip fix if pattern found
7092 tSCC zX11_ClassBypass0[] =
7095 #define X11_CLASS_TEST_CT 2
7096 static tTestDesc aX11_ClassTests[] = {
7097 { TT_NEGREP, zX11_ClassBypass0, (regex_t*)NULL },
7098 { TT_EGREP, zX11_ClassSelect0, (regex_t*)NULL }, };
7101 * Fix Command Arguments for X11_Class
7103 static const char* apzX11_ClassPatch[] = {
7105 "#ifdef __cplusplus\n\
7112 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7114 * Description of X11_Class_Usage fix
7116 tSCC zX11_Class_UsageName[] =
7120 * File name selection pattern
7122 tSCC zX11_Class_UsageList[] =
7123 "|Xm/BaseClassI.h|";
7125 * Machine/OS name selection pattern
7127 #define apzX11_Class_UsageMachs (const char**)NULL
7130 * content selection pattern - do fix if pattern found
7132 tSCC zX11_Class_UsageSelect0[] =
7136 * content bypass pattern - skip fix if pattern found
7138 tSCC zX11_Class_UsageBypass0[] =
7141 #define X11_CLASS_USAGE_TEST_CT 2
7142 static tTestDesc aX11_Class_UsageTests[] = {
7143 { TT_NEGREP, zX11_Class_UsageBypass0, (regex_t*)NULL },
7144 { TT_EGREP, zX11_Class_UsageSelect0, (regex_t*)NULL }, };
7147 * Fix Command Arguments for X11_Class_Usage
7149 static const char* apzX11_Class_UsagePatch[] = {
7154 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7156 * Description of X11_New fix
7158 tSCC zX11_NewName[] =
7162 * File name selection pattern
7164 tSCC zX11_NewList[] =
7167 * Machine/OS name selection pattern
7169 #define apzX11_NewMachs (const char**)NULL
7172 * content bypass pattern - skip fix if pattern found
7174 tSCC zX11_NewBypass0[] =
7177 #define X11_NEW_TEST_CT 1
7178 static tTestDesc aX11_NewTests[] = {
7179 { TT_NEGREP, zX11_NewBypass0, (regex_t*)NULL }, };
7182 * Fix Command Arguments for X11_New
7184 static const char* apzX11_NewPatch[] = { "sed",
7185 "-e", "/Widget\told, new;/i\\\n\
7186 #ifdef __cplusplus\\\n\
7187 \tWidget\told, c_new;\\\n\
7189 "-e", "/Widget\told, new;/a\\\n\
7191 "-e", "s/Widget new,/Widget c_new,/g",
7194 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7196 * Description of X11_Sprintf fix
7198 tSCC zX11_SprintfName[] =
7202 * File name selection pattern
7204 tSCC zX11_SprintfList[] =
7205 "|X11/Xmu.h|X11/Xmu/Xmu.h|";
7207 * Machine/OS name selection pattern
7209 #define apzX11_SprintfMachs (const char**)NULL
7212 * content selection pattern - do fix if pattern found
7214 tSCC zX11_SprintfSelect0[] =
7215 "^extern char \\*\tsprintf\\(\\);$";
7217 #define X11_SPRINTF_TEST_CT 1
7218 static tTestDesc aX11_SprintfTests[] = {
7219 { TT_EGREP, zX11_SprintfSelect0, (regex_t*)NULL }, };
7222 * Fix Command Arguments for X11_Sprintf
7224 static const char* apzX11_SprintfPatch[] = {
7226 "#ifndef __STDC__\n\
7228 #endif /* !defined __STDC__ */",
7232 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7236 #define REGEX_COUNT 211
7237 #define MACH_LIST_SIZE_LIMIT 261
7238 #define FIX_COUNT 181
7241 * Enumerate the fixes
7244 AAB_FD_ZERO_ASM_POSIX_TYPES_H_FIXIDX,
7245 AAB_FD_ZERO_GNU_TYPES_H_FIXIDX,
7246 AAB_FD_ZERO_SELECTBITS_H_FIXIDX,
7247 AAB_SOLARIS_SYS_VARARGS_H_FIXIDX,
7248 AAB_SUN_MEMCPY_FIXIDX,
7249 AAB_ULTRIX_ANSI_COMPAT_FIXIDX,
7250 AAB_ULTRIX_LIMITS_FIXIDX,
7251 AAB_ULTRIX_MEMORY_FIXIDX,
7252 AAB_ULTRIX_STRING_FIXIDX,
7254 AIX_SYSMACHINE_FIXIDX,
7256 AIX_SYSWAIT_2_FIXIDX,
7257 AIX_VOLATILE_FIXIDX,
7258 ALPHA___ASSERT_FIXIDX,
7259 ALPHA___EXTERN_PREFIX_FIXIDX,
7260 ALPHA___EXTERN_PREFIX_STANDARDS_FIXIDX,
7261 ALPHA___EXTERN_PREFIX_SYS_STAT_FIXIDX,
7262 ALPHA_ASSERT_FIXIDX,
7263 ALPHA_BAD_LVAL_FIXIDX,
7264 ALPHA_GETOPT_FIXIDX,
7265 ALPHA_PARENS_FIXIDX,
7266 ALPHA_PTHREAD_FIXIDX,
7267 ALPHA_PTHREAD_GCC_FIXIDX,
7270 AVOID_BOOL_DEFINE_FIXIDX,
7271 AVOID_BOOL_TYPE_FIXIDX,
7272 AVOID_WCHAR_T_TYPE_FIXIDX,
7273 BAD_STRUCT_TERM_FIXIDX,
7275 BROKEN_ASSERT_STDIO_FIXIDX,
7276 BROKEN_ASSERT_STDLIB_FIXIDX,
7278 BSD_STDIO_ATTRS_CONFLICT_FIXIDX,
7279 CTRL_QUOTES_DEF_FIXIDX,
7280 CTRL_QUOTES_USE_FIXIDX,
7282 DARWIN_GCC4_BREAKAGE_FIXIDX,
7283 DARWIN_PRIVATE_EXTERN_FIXIDX,
7284 DEC_INTERN_ASM_FIXIDX,
7285 DJGPP_WCHAR_H_FIXIDX,
7287 EXCEPTION_STRUCTURE_FIXIDX,
7288 FREEBSD_GCC3_BREAKAGE_FIXIDX,
7289 FREEBSD_GCC4_BREAKAGE_FIXIDX,
7293 HPUX10_CPP_POW_INLINE_FIXIDX,
7294 HPUX11_CPP_POW_INLINE_FIXIDX,
7295 HPUX10_CTYPE_DECLARATIONS1_FIXIDX,
7296 HPUX10_CTYPE_DECLARATIONS2_FIXIDX,
7297 HPUX10_STDIO_DECLARATIONS_FIXIDX,
7299 HPUX11_FABSF_FIXIDX,
7300 HPUX11_SIZE_T_FIXIDX,
7301 HPUX11_SNPRINTF_FIXIDX,
7302 HPUX11_UINT32_C_FIXIDX,
7303 HPUX11_VSNPRINTF_FIXIDX,
7304 HPUX8_BOGUS_INLINES_FIXIDX,
7305 HPUX_CTYPE_MACROS_FIXIDX,
7306 HPUX_LONG_DOUBLE_FIXIDX,
7308 HPUX_SYSTIME_FIXIDX,
7309 INT_ABORT_FREE_AND_EXIT_FIXIDX,
7310 IO_QUOTES_DEF_FIXIDX,
7311 IO_QUOTES_USE_FIXIDX,
7312 IP_MISSING_SEMI_FIXIDX,
7313 IRIX___RESTRICT_FIXIDX,
7314 IRIX___GENERIC1_FIXIDX,
7315 IRIX___GENERIC2_FIXIDX,
7316 IRIX_ASM_APOSTROPHE_FIXIDX,
7317 IRIX_LIMITS_CONST_FIXIDX,
7318 IRIX_SOCKLEN_T_FIXIDX,
7319 IRIX_STDIO_VA_LIST_FIXIDX,
7320 IRIX_WCSFTIME_FIXIDX,
7322 ISC_OMITS_WITH_STDC_FIXIDX,
7323 KANDR_CONCAT_FIXIDX,
7324 LIBC1_G_VA_LIST_FIXIDX,
7325 LIBC1_IFDEFD_MEMX_FIXIDX,
7326 LIMITS_IFNDEFS_FIXIDX,
7327 LINUX_IA64_UCONTEXT_FIXIDX,
7328 LYNXOS_NO_WARNING_IN_SYS_TIME_H_FIXIDX,
7329 LYNXOS_MISSING_PUTENV_FIXIDX,
7330 MACHINE_ANSI_H_VA_LIST_FIXIDX,
7331 MACHINE_NAME_FIXIDX,
7332 MATH_EXCEPTION_FIXIDX,
7333 MATH_HUGE_VAL_FROM_DBL_MAX_FIXIDX,
7334 MATH_HUGE_VAL_IFNDEF_FIXIDX,
7335 NESTED_AUTH_DES_FIXIDX,
7336 NESTED_MOTOROLA_FIXIDX,
7337 NESTED_SYS_LIMITS_FIXIDX,
7338 NETBSD_EXTRA_SEMICOLON_FIXIDX,
7339 NEXT_MATH_PREFIX_FIXIDX,
7340 NEXT_TEMPLATE_FIXIDX,
7341 NEXT_VOLITILE_FIXIDX,
7342 NEXT_WAIT_UNION_FIXIDX,
7343 NODEENT_SYNTAX_FIXIDX,
7344 OBSTACK_LVALUE_CAST_FIXIDX,
7345 OSF_NAMESPACE_A_FIXIDX,
7346 OSF_NAMESPACE_C_FIXIDX,
7347 PTHREAD_PAGE_SIZE_FIXIDX,
7348 READ_RET_TYPE_FIXIDX,
7349 RPC_XDR_LVALUE_CAST_A_FIXIDX,
7350 RPC_XDR_LVALUE_CAST_B_FIXIDX,
7351 RS6000_DOUBLE_FIXIDX,
7352 RS6000_FCHMOD_FIXIDX,
7353 RS6000_PARAM_FIXIDX,
7356 SCO_STATIC_FUNC_FIXIDX,
7358 SOLARIS_MUTEX_INIT_1_FIXIDX,
7359 SOLARIS_MUTEX_INIT_2_FIXIDX,
7360 SOLARIS_SOCKET_FIXIDX,
7361 SOLARIS_STDIO_TAG_FIXIDX,
7362 SOLARIS_UNISTD_FIXIDX,
7363 SOLARIS_WIDEC_FIXIDX,
7365 STDIO_STDARG_H_FIXIDX,
7366 STDIO_VA_LIST_FIXIDX,
7367 STDIO_VA_LIST_CLIENTS_FIXIDX,
7368 STRICT_ANSI_NOT_FIXIDX,
7369 STRICT_ANSI_NOT_CTD_FIXIDX,
7370 STRICT_ANSI_ONLY_FIXIDX,
7372 STRUCT_SOCKADDR_FIXIDX,
7373 SUN_AUTH_PROTO_FIXIDX,
7374 SUN_BOGUS_IFDEF_FIXIDX,
7375 SUN_CATMACRO_FIXIDX,
7377 SUN_RUSERS_SEMI_FIXIDX,
7379 SUNOS_STRLEN_FIXIDX,
7381 SVR4_DISABLE_OPT_FIXIDX,
7385 SVR4_SIGHANDLER_TYPE_FIXIDX,
7386 SVR4_UNDECLARED_GETRNGE_FIXIDX,
7387 SYSV68_STRING_FIXIDX,
7388 SYSZ_STDLIB_FOR_SUN_FIXIDX,
7389 THREAD_KEYWORD_FIXIDX,
7390 TINFO_CPLUSPLUS_FIXIDX,
7391 ULTRIX_ATEXIT_PARAM_FIXIDX,
7392 ULTRIX_ATOF_PARAM_FIXIDX,
7393 ULTRIX_CONST_FIXIDX,
7394 ULTRIX_CONST2_FIXIDX,
7395 ULTRIX_CONST3_FIXIDX,
7396 ULTRIX_FIX_FIXPROTO_FIXIDX,
7397 ULTRIX_IFDEF_FIXIDX,
7398 ULTRIX_LOCALE_FIXIDX,
7399 ULTRIX_MATH_IFDEF_FIXIDX,
7400 ULTRIX_NESTED_IOCTL_FIXIDX,
7401 ULTRIX_NESTED_SVC_FIXIDX,
7403 ULTRIX_STATIC_FIXIDX,
7404 ULTRIX_STDLIB_FIXIDX,
7405 ULTRIX_STRINGS_FIXIDX,
7406 ULTRIX_STRINGS2_FIXIDX,
7407 ULTRIX_SYS_TIME_FIXIDX,
7408 ULTRIX_UNISTD_FIXIDX,
7409 UNDEFINE_NULL_FIXIDX,
7410 UNICOSMK_RESTRICT_FIXIDX,
7411 UW7_BYTEORDER_FIX_FIXIDX,
7412 VA_I960_MACRO_FIXIDX,
7414 VXWORKS_GCC_PROBLEM_FIXIDX,
7415 VXWORKS_NEEDS_VXTYPES_FIXIDX,
7416 VXWORKS_NEEDS_VXWORKS_FIXIDX,
7417 VXWORKS_TIME_FIXIDX,
7418 WINDISS_MATH1_FIXIDX,
7419 WINDISS_MATH2_FIXIDX,
7420 WINDISS_VALIST_FIXIDX,
7422 X11_CLASS_USAGE_FIXIDX,
7427 tFixDesc fixDescList[ FIX_COUNT ] = {
7428 { zAab_Fd_Zero_Asm_Posix_Types_HName, zAab_Fd_Zero_Asm_Posix_Types_HList,
7429 apzAab_Fd_Zero_Asm_Posix_Types_HMachs,
7430 AAB_FD_ZERO_ASM_POSIX_TYPES_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
7431 aAab_Fd_Zero_Asm_Posix_Types_HTests, apzAab_Fd_Zero_Asm_Posix_Types_HPatch, 0 },
7433 { zAab_Fd_Zero_Gnu_Types_HName, zAab_Fd_Zero_Gnu_Types_HList,
7434 apzAab_Fd_Zero_Gnu_Types_HMachs,
7435 AAB_FD_ZERO_GNU_TYPES_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
7436 aAab_Fd_Zero_Gnu_Types_HTests, apzAab_Fd_Zero_Gnu_Types_HPatch, 0 },
7438 { zAab_Fd_Zero_Selectbits_HName, zAab_Fd_Zero_Selectbits_HList,
7439 apzAab_Fd_Zero_Selectbits_HMachs,
7440 AAB_FD_ZERO_SELECTBITS_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
7441 aAab_Fd_Zero_Selectbits_HTests, apzAab_Fd_Zero_Selectbits_HPatch, 0 },
7443 { zAab_Solaris_Sys_Varargs_HName, zAab_Solaris_Sys_Varargs_HList,
7444 apzAab_Solaris_Sys_Varargs_HMachs,
7445 AAB_SOLARIS_SYS_VARARGS_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
7446 aAab_Solaris_Sys_Varargs_HTests, apzAab_Solaris_Sys_Varargs_HPatch, 0 },
7448 { zAab_Sun_MemcpyName, zAab_Sun_MemcpyList,
7449 apzAab_Sun_MemcpyMachs,
7450 AAB_SUN_MEMCPY_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
7451 aAab_Sun_MemcpyTests, apzAab_Sun_MemcpyPatch, 0 },
7453 { zAab_Ultrix_Ansi_CompatName, zAab_Ultrix_Ansi_CompatList,
7454 apzAab_Ultrix_Ansi_CompatMachs,
7455 AAB_ULTRIX_ANSI_COMPAT_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
7456 aAab_Ultrix_Ansi_CompatTests, apzAab_Ultrix_Ansi_CompatPatch, 0 },
7458 { zAab_Ultrix_LimitsName, zAab_Ultrix_LimitsList,
7459 apzAab_Ultrix_LimitsMachs,
7460 AAB_ULTRIX_LIMITS_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
7461 aAab_Ultrix_LimitsTests, apzAab_Ultrix_LimitsPatch, 0 },
7463 { zAab_Ultrix_MemoryName, zAab_Ultrix_MemoryList,
7464 apzAab_Ultrix_MemoryMachs,
7465 AAB_ULTRIX_MEMORY_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
7466 aAab_Ultrix_MemoryTests, apzAab_Ultrix_MemoryPatch, 0 },
7468 { zAab_Ultrix_StringName, zAab_Ultrix_StringList,
7469 apzAab_Ultrix_StringMachs,
7470 AAB_ULTRIX_STRING_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
7471 aAab_Ultrix_StringTests, apzAab_Ultrix_StringPatch, 0 },
7473 { zAix_PthreadName, zAix_PthreadList,
7474 apzAix_PthreadMachs,
7475 AIX_PTHREAD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7476 aAix_PthreadTests, apzAix_PthreadPatch, 0 },
7478 { zAix_SysmachineName, zAix_SysmachineList,
7479 apzAix_SysmachineMachs,
7480 AIX_SYSMACHINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7481 aAix_SysmachineTests, apzAix_SysmachinePatch, 0 },
7483 { zAix_SyswaitName, zAix_SyswaitList,
7484 apzAix_SyswaitMachs,
7485 AIX_SYSWAIT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7486 aAix_SyswaitTests, apzAix_SyswaitPatch, 0 },
7488 { zAix_Syswait_2Name, zAix_Syswait_2List,
7489 apzAix_Syswait_2Machs,
7490 AIX_SYSWAIT_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7491 aAix_Syswait_2Tests, apzAix_Syswait_2Patch, 0 },
7493 { zAix_VolatileName, zAix_VolatileList,
7494 apzAix_VolatileMachs,
7495 AIX_VOLATILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7496 aAix_VolatileTests, apzAix_VolatilePatch, 0 },
7498 { zAlpha___AssertName, zAlpha___AssertList,
7499 apzAlpha___AssertMachs,
7500 ALPHA___ASSERT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7501 aAlpha___AssertTests, apzAlpha___AssertPatch, 0 },
7503 { zAlpha___Extern_PrefixName, zAlpha___Extern_PrefixList,
7504 apzAlpha___Extern_PrefixMachs,
7505 ALPHA___EXTERN_PREFIX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7506 aAlpha___Extern_PrefixTests, apzAlpha___Extern_PrefixPatch, 0 },
7508 { zAlpha___Extern_Prefix_StandardsName, zAlpha___Extern_Prefix_StandardsList,
7509 apzAlpha___Extern_Prefix_StandardsMachs,
7510 ALPHA___EXTERN_PREFIX_STANDARDS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7511 aAlpha___Extern_Prefix_StandardsTests, apzAlpha___Extern_Prefix_StandardsPatch, 0 },
7513 { zAlpha___Extern_Prefix_Sys_StatName, zAlpha___Extern_Prefix_Sys_StatList,
7514 apzAlpha___Extern_Prefix_Sys_StatMachs,
7515 ALPHA___EXTERN_PREFIX_SYS_STAT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7516 aAlpha___Extern_Prefix_Sys_StatTests, apzAlpha___Extern_Prefix_Sys_StatPatch, 0 },
7518 { zAlpha_AssertName, zAlpha_AssertList,
7519 apzAlpha_AssertMachs,
7520 ALPHA_ASSERT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7521 aAlpha_AssertTests, apzAlpha_AssertPatch, 0 },
7523 { zAlpha_Bad_LvalName, zAlpha_Bad_LvalList,
7524 apzAlpha_Bad_LvalMachs,
7525 ALPHA_BAD_LVAL_TEST_CT, FD_MACH_ONLY,
7526 aAlpha_Bad_LvalTests, apzAlpha_Bad_LvalPatch, 0 },
7528 { zAlpha_GetoptName, zAlpha_GetoptList,
7529 apzAlpha_GetoptMachs,
7530 ALPHA_GETOPT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7531 aAlpha_GetoptTests, apzAlpha_GetoptPatch, 0 },
7533 { zAlpha_ParensName, zAlpha_ParensList,
7534 apzAlpha_ParensMachs,
7535 ALPHA_PARENS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7536 aAlpha_ParensTests, apzAlpha_ParensPatch, 0 },
7538 { zAlpha_PthreadName, zAlpha_PthreadList,
7539 apzAlpha_PthreadMachs,
7540 ALPHA_PTHREAD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7541 aAlpha_PthreadTests, apzAlpha_PthreadPatch, 0 },
7543 { zAlpha_Pthread_GccName, zAlpha_Pthread_GccList,
7544 apzAlpha_Pthread_GccMachs,
7545 ALPHA_PTHREAD_GCC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7546 aAlpha_Pthread_GccTests, apzAlpha_Pthread_GccPatch, 0 },
7548 { zAlpha_SbrkName, zAlpha_SbrkList,
7550 ALPHA_SBRK_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7551 aAlpha_SbrkTests, apzAlpha_SbrkPatch, 0 },
7553 { zAlpha_WcharName, zAlpha_WcharList,
7554 apzAlpha_WcharMachs,
7555 ALPHA_WCHAR_TEST_CT, FD_MACH_ONLY,
7556 aAlpha_WcharTests, apzAlpha_WcharPatch, 0 },
7558 { zAvoid_Bool_DefineName, zAvoid_Bool_DefineList,
7559 apzAvoid_Bool_DefineMachs,
7560 AVOID_BOOL_DEFINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7561 aAvoid_Bool_DefineTests, apzAvoid_Bool_DefinePatch, 0 },
7563 { zAvoid_Bool_TypeName, zAvoid_Bool_TypeList,
7564 apzAvoid_Bool_TypeMachs,
7565 AVOID_BOOL_TYPE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7566 aAvoid_Bool_TypeTests, apzAvoid_Bool_TypePatch, 0 },
7568 { zAvoid_Wchar_T_TypeName, zAvoid_Wchar_T_TypeList,
7569 apzAvoid_Wchar_T_TypeMachs,
7570 AVOID_WCHAR_T_TYPE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7571 aAvoid_Wchar_T_TypeTests, apzAvoid_Wchar_T_TypePatch, 0 },
7573 { zBad_Struct_TermName, zBad_Struct_TermList,
7574 apzBad_Struct_TermMachs,
7575 BAD_STRUCT_TERM_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7576 aBad_Struct_TermTests, apzBad_Struct_TermPatch, 0 },
7578 { zBadquoteName, zBadquoteList,
7580 BADQUOTE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7581 aBadquoteTests, apzBadquotePatch, 0 },
7583 { zBroken_Assert_StdioName, zBroken_Assert_StdioList,
7584 apzBroken_Assert_StdioMachs,
7585 BROKEN_ASSERT_STDIO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7586 aBroken_Assert_StdioTests, apzBroken_Assert_StdioPatch, 0 },
7588 { zBroken_Assert_StdlibName, zBroken_Assert_StdlibList,
7589 apzBroken_Assert_StdlibMachs,
7590 BROKEN_ASSERT_STDLIB_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7591 aBroken_Assert_StdlibTests, apzBroken_Assert_StdlibPatch, 0 },
7593 { zBroken_CabsName, zBroken_CabsList,
7594 apzBroken_CabsMachs,
7595 BROKEN_CABS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7596 aBroken_CabsTests, apzBroken_CabsPatch, 0 },
7598 { zBsd_Stdio_Attrs_ConflictName, zBsd_Stdio_Attrs_ConflictList,
7599 apzBsd_Stdio_Attrs_ConflictMachs,
7600 BSD_STDIO_ATTRS_CONFLICT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7601 aBsd_Stdio_Attrs_ConflictTests, apzBsd_Stdio_Attrs_ConflictPatch, 0 },
7603 { zCtrl_Quotes_DefName, zCtrl_Quotes_DefList,
7604 apzCtrl_Quotes_DefMachs,
7605 CTRL_QUOTES_DEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7606 aCtrl_Quotes_DefTests, apzCtrl_Quotes_DefPatch, 0 },
7608 { zCtrl_Quotes_UseName, zCtrl_Quotes_UseList,
7609 apzCtrl_Quotes_UseMachs,
7610 CTRL_QUOTES_USE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7611 aCtrl_Quotes_UseTests, apzCtrl_Quotes_UsePatch, 0 },
7613 { zCxx_UnreadyName, zCxx_UnreadyList,
7614 apzCxx_UnreadyMachs,
7615 CXX_UNREADY_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7616 aCxx_UnreadyTests, apzCxx_UnreadyPatch, 0 },
7618 { zDarwin_Gcc4_BreakageName, zDarwin_Gcc4_BreakageList,
7619 apzDarwin_Gcc4_BreakageMachs,
7620 DARWIN_GCC4_BREAKAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7621 aDarwin_Gcc4_BreakageTests, apzDarwin_Gcc4_BreakagePatch, 0 },
7623 { zDarwin_Private_ExternName, zDarwin_Private_ExternList,
7624 apzDarwin_Private_ExternMachs,
7625 DARWIN_PRIVATE_EXTERN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7626 aDarwin_Private_ExternTests, apzDarwin_Private_ExternPatch, 0 },
7628 { zDec_Intern_AsmName, zDec_Intern_AsmList,
7629 apzDec_Intern_AsmMachs,
7630 DEC_INTERN_ASM_TEST_CT, FD_MACH_ONLY,
7631 aDec_Intern_AsmTests, apzDec_Intern_AsmPatch, 0 },
7633 { zDjgpp_Wchar_HName, zDjgpp_Wchar_HList,
7634 apzDjgpp_Wchar_HMachs,
7635 DJGPP_WCHAR_H_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7636 aDjgpp_Wchar_HTests, apzDjgpp_Wchar_HPatch, 0 },
7638 { zEcd_CursorName, zEcd_CursorList,
7640 ECD_CURSOR_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7641 aEcd_CursorTests, apzEcd_CursorPatch, 0 },
7643 { zException_StructureName, zException_StructureList,
7644 apzException_StructureMachs,
7645 EXCEPTION_STRUCTURE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7646 aException_StructureTests, apzException_StructurePatch, 0 },
7648 { zFreebsd_Gcc3_BreakageName, zFreebsd_Gcc3_BreakageList,
7649 apzFreebsd_Gcc3_BreakageMachs,
7650 FREEBSD_GCC3_BREAKAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7651 aFreebsd_Gcc3_BreakageTests, apzFreebsd_Gcc3_BreakagePatch, 0 },
7653 { zFreebsd_Gcc4_BreakageName, zFreebsd_Gcc4_BreakageList,
7654 apzFreebsd_Gcc4_BreakageMachs,
7655 FREEBSD_GCC4_BREAKAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7656 aFreebsd_Gcc4_BreakageTests, apzFreebsd_Gcc4_BreakagePatch, 0 },
7658 { zGnu_TypesName, zGnu_TypesList,
7660 GNU_TYPES_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7661 aGnu_TypesTests, apzGnu_TypesPatch, 0 },
7663 { zHp_InlineName, zHp_InlineList,
7665 HP_INLINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7666 aHp_InlineTests, apzHp_InlinePatch, 0 },
7668 { zHp_SysfileName, zHp_SysfileList,
7670 HP_SYSFILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7671 aHp_SysfileTests, apzHp_SysfilePatch, 0 },
7673 { zHpux10_Cpp_Pow_InlineName, zHpux10_Cpp_Pow_InlineList,
7674 apzHpux10_Cpp_Pow_InlineMachs,
7675 HPUX10_CPP_POW_INLINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7676 aHpux10_Cpp_Pow_InlineTests, apzHpux10_Cpp_Pow_InlinePatch, 0 },
7678 { zHpux11_Cpp_Pow_InlineName, zHpux11_Cpp_Pow_InlineList,
7679 apzHpux11_Cpp_Pow_InlineMachs,
7680 HPUX11_CPP_POW_INLINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7681 aHpux11_Cpp_Pow_InlineTests, apzHpux11_Cpp_Pow_InlinePatch, 0 },
7683 { zHpux10_Ctype_Declarations1Name, zHpux10_Ctype_Declarations1List,
7684 apzHpux10_Ctype_Declarations1Machs,
7685 HPUX10_CTYPE_DECLARATIONS1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7686 aHpux10_Ctype_Declarations1Tests, apzHpux10_Ctype_Declarations1Patch, 0 },
7688 { zHpux10_Ctype_Declarations2Name, zHpux10_Ctype_Declarations2List,
7689 apzHpux10_Ctype_Declarations2Machs,
7690 HPUX10_CTYPE_DECLARATIONS2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7691 aHpux10_Ctype_Declarations2Tests, apzHpux10_Ctype_Declarations2Patch, 0 },
7693 { zHpux10_Stdio_DeclarationsName, zHpux10_Stdio_DeclarationsList,
7694 apzHpux10_Stdio_DeclarationsMachs,
7695 HPUX10_STDIO_DECLARATIONS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7696 aHpux10_Stdio_DeclarationsTests, apzHpux10_Stdio_DeclarationsPatch, 0 },
7698 { zHpux11_AbsName, zHpux11_AbsList,
7700 HPUX11_ABS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7701 aHpux11_AbsTests, apzHpux11_AbsPatch, 0 },
7703 { zHpux11_FabsfName, zHpux11_FabsfList,
7704 apzHpux11_FabsfMachs,
7705 HPUX11_FABSF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7706 aHpux11_FabsfTests, apzHpux11_FabsfPatch, 0 },
7708 { zHpux11_Size_TName, zHpux11_Size_TList,
7709 apzHpux11_Size_TMachs,
7710 HPUX11_SIZE_T_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7711 aHpux11_Size_TTests, apzHpux11_Size_TPatch, 0 },
7713 { zHpux11_SnprintfName, zHpux11_SnprintfList,
7714 apzHpux11_SnprintfMachs,
7715 HPUX11_SNPRINTF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7716 aHpux11_SnprintfTests, apzHpux11_SnprintfPatch, 0 },
7718 { zHpux11_Uint32_CName, zHpux11_Uint32_CList,
7719 apzHpux11_Uint32_CMachs,
7720 HPUX11_UINT32_C_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7721 aHpux11_Uint32_CTests, apzHpux11_Uint32_CPatch, 0 },
7723 { zHpux11_VsnprintfName, zHpux11_VsnprintfList,
7724 apzHpux11_VsnprintfMachs,
7725 HPUX11_VSNPRINTF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7726 aHpux11_VsnprintfTests, apzHpux11_VsnprintfPatch, 0 },
7728 { zHpux8_Bogus_InlinesName, zHpux8_Bogus_InlinesList,
7729 apzHpux8_Bogus_InlinesMachs,
7730 HPUX8_BOGUS_INLINES_TEST_CT, FD_MACH_ONLY,
7731 aHpux8_Bogus_InlinesTests, apzHpux8_Bogus_InlinesPatch, 0 },
7733 { zHpux_Ctype_MacrosName, zHpux_Ctype_MacrosList,
7734 apzHpux_Ctype_MacrosMachs,
7735 HPUX_CTYPE_MACROS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7736 aHpux_Ctype_MacrosTests, apzHpux_Ctype_MacrosPatch, 0 },
7738 { zHpux_Long_DoubleName, zHpux_Long_DoubleList,
7739 apzHpux_Long_DoubleMachs,
7740 HPUX_LONG_DOUBLE_TEST_CT, FD_MACH_ONLY,
7741 aHpux_Long_DoubleTests, apzHpux_Long_DoublePatch, 0 },
7743 { zHpux_MaxintName, zHpux_MaxintList,
7744 apzHpux_MaxintMachs,
7745 HPUX_MAXINT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7746 aHpux_MaxintTests, apzHpux_MaxintPatch, 0 },
7748 { zHpux_SystimeName, zHpux_SystimeList,
7749 apzHpux_SystimeMachs,
7750 HPUX_SYSTIME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7751 aHpux_SystimeTests, apzHpux_SystimePatch, 0 },
7753 { zInt_Abort_Free_And_ExitName, zInt_Abort_Free_And_ExitList,
7754 apzInt_Abort_Free_And_ExitMachs,
7755 INT_ABORT_FREE_AND_EXIT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7756 aInt_Abort_Free_And_ExitTests, apzInt_Abort_Free_And_ExitPatch, 0 },
7758 { zIo_Quotes_DefName, zIo_Quotes_DefList,
7759 apzIo_Quotes_DefMachs,
7760 IO_QUOTES_DEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7761 aIo_Quotes_DefTests, apzIo_Quotes_DefPatch, 0 },
7763 { zIo_Quotes_UseName, zIo_Quotes_UseList,
7764 apzIo_Quotes_UseMachs,
7765 IO_QUOTES_USE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7766 aIo_Quotes_UseTests, apzIo_Quotes_UsePatch, 0 },
7768 { zIp_Missing_SemiName, zIp_Missing_SemiList,
7769 apzIp_Missing_SemiMachs,
7770 IP_MISSING_SEMI_TEST_CT, FD_MACH_ONLY,
7771 aIp_Missing_SemiTests, apzIp_Missing_SemiPatch, 0 },
7773 { zIrix___RestrictName, zIrix___RestrictList,
7774 apzIrix___RestrictMachs,
7775 IRIX___RESTRICT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7776 aIrix___RestrictTests, apzIrix___RestrictPatch, 0 },
7778 { zIrix___Generic1Name, zIrix___Generic1List,
7779 apzIrix___Generic1Machs,
7780 IRIX___GENERIC1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7781 aIrix___Generic1Tests, apzIrix___Generic1Patch, 0 },
7783 { zIrix___Generic2Name, zIrix___Generic2List,
7784 apzIrix___Generic2Machs,
7785 IRIX___GENERIC2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7786 aIrix___Generic2Tests, apzIrix___Generic2Patch, 0 },
7788 { zIrix_Asm_ApostropheName, zIrix_Asm_ApostropheList,
7789 apzIrix_Asm_ApostropheMachs,
7790 IRIX_ASM_APOSTROPHE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7791 aIrix_Asm_ApostropheTests, apzIrix_Asm_ApostrophePatch, 0 },
7793 { zIrix_Limits_ConstName, zIrix_Limits_ConstList,
7794 apzIrix_Limits_ConstMachs,
7795 IRIX_LIMITS_CONST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7796 aIrix_Limits_ConstTests, apzIrix_Limits_ConstPatch, 0 },
7798 { zIrix_Socklen_TName, zIrix_Socklen_TList,
7799 apzIrix_Socklen_TMachs,
7800 IRIX_SOCKLEN_T_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7801 aIrix_Socklen_TTests, apzIrix_Socklen_TPatch, 0 },
7803 { zIrix_Stdio_Va_ListName, zIrix_Stdio_Va_ListList,
7804 apzIrix_Stdio_Va_ListMachs,
7805 IRIX_STDIO_VA_LIST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7806 aIrix_Stdio_Va_ListTests, apzIrix_Stdio_Va_ListPatch, 0 },
7808 { zIrix_WcsftimeName, zIrix_WcsftimeList,
7809 apzIrix_WcsftimeMachs,
7810 IRIX_WCSFTIME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7811 aIrix_WcsftimeTests, apzIrix_WcsftimePatch, 0 },
7813 { zIsc_FmodName, zIsc_FmodList,
7815 ISC_FMOD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7816 aIsc_FmodTests, apzIsc_FmodPatch, 0 },
7818 { zIsc_Omits_With_StdcName, zIsc_Omits_With_StdcList,
7819 apzIsc_Omits_With_StdcMachs,
7820 ISC_OMITS_WITH_STDC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7821 aIsc_Omits_With_StdcTests, apzIsc_Omits_With_StdcPatch, 0 },
7823 { zKandr_ConcatName, zKandr_ConcatList,
7824 apzKandr_ConcatMachs,
7825 KANDR_CONCAT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7826 aKandr_ConcatTests, apzKandr_ConcatPatch, 0 },
7828 { zLibc1_G_Va_ListName, zLibc1_G_Va_ListList,
7829 apzLibc1_G_Va_ListMachs,
7830 LIBC1_G_VA_LIST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7831 aLibc1_G_Va_ListTests, apzLibc1_G_Va_ListPatch, 0 },
7833 { zLibc1_Ifdefd_MemxName, zLibc1_Ifdefd_MemxList,
7834 apzLibc1_Ifdefd_MemxMachs,
7835 LIBC1_IFDEFD_MEMX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7836 aLibc1_Ifdefd_MemxTests, apzLibc1_Ifdefd_MemxPatch, 0 },
7838 { zLimits_IfndefsName, zLimits_IfndefsList,
7839 apzLimits_IfndefsMachs,
7840 LIMITS_IFNDEFS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7841 aLimits_IfndefsTests, apzLimits_IfndefsPatch, 0 },
7843 { zLinux_Ia64_UcontextName, zLinux_Ia64_UcontextList,
7844 apzLinux_Ia64_UcontextMachs,
7845 LINUX_IA64_UCONTEXT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7846 aLinux_Ia64_UcontextTests, apzLinux_Ia64_UcontextPatch, 0 },
7848 { zLynxos_No_Warning_In_Sys_Time_HName, zLynxos_No_Warning_In_Sys_Time_HList,
7849 apzLynxos_No_Warning_In_Sys_Time_HMachs,
7850 LYNXOS_NO_WARNING_IN_SYS_TIME_H_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7851 aLynxos_No_Warning_In_Sys_Time_HTests, apzLynxos_No_Warning_In_Sys_Time_HPatch, 0 },
7853 { zLynxos_Missing_PutenvName, zLynxos_Missing_PutenvList,
7854 apzLynxos_Missing_PutenvMachs,
7855 LYNXOS_MISSING_PUTENV_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7856 aLynxos_Missing_PutenvTests, apzLynxos_Missing_PutenvPatch, 0 },
7858 { zMachine_Ansi_H_Va_ListName, zMachine_Ansi_H_Va_ListList,
7859 apzMachine_Ansi_H_Va_ListMachs,
7860 MACHINE_ANSI_H_VA_LIST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7861 aMachine_Ansi_H_Va_ListTests, apzMachine_Ansi_H_Va_ListPatch, 0 },
7863 { zMachine_NameName, zMachine_NameList,
7864 apzMachine_NameMachs,
7865 MACHINE_NAME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7866 aMachine_NameTests, apzMachine_NamePatch, 0 },
7868 { zMath_ExceptionName, zMath_ExceptionList,
7869 apzMath_ExceptionMachs,
7870 MATH_EXCEPTION_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7871 aMath_ExceptionTests, apzMath_ExceptionPatch, 0 },
7873 { zMath_Huge_Val_From_Dbl_MaxName, zMath_Huge_Val_From_Dbl_MaxList,
7874 apzMath_Huge_Val_From_Dbl_MaxMachs,
7875 MATH_HUGE_VAL_FROM_DBL_MAX_TEST_CT, FD_MACH_ONLY | FD_SHELL_SCRIPT,
7876 aMath_Huge_Val_From_Dbl_MaxTests, apzMath_Huge_Val_From_Dbl_MaxPatch, 0 },
7878 { zMath_Huge_Val_IfndefName, zMath_Huge_Val_IfndefList,
7879 apzMath_Huge_Val_IfndefMachs,
7880 MATH_HUGE_VAL_IFNDEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7881 aMath_Huge_Val_IfndefTests, apzMath_Huge_Val_IfndefPatch, 0 },
7883 { zNested_Auth_DesName, zNested_Auth_DesList,
7884 apzNested_Auth_DesMachs,
7885 NESTED_AUTH_DES_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7886 aNested_Auth_DesTests, apzNested_Auth_DesPatch, 0 },
7888 { zNested_MotorolaName, zNested_MotorolaList,
7889 apzNested_MotorolaMachs,
7890 NESTED_MOTOROLA_TEST_CT, FD_MACH_ONLY,
7891 aNested_MotorolaTests, apzNested_MotorolaPatch, 0 },
7893 { zNested_Sys_LimitsName, zNested_Sys_LimitsList,
7894 apzNested_Sys_LimitsMachs,
7895 NESTED_SYS_LIMITS_TEST_CT, FD_MACH_ONLY,
7896 aNested_Sys_LimitsTests, apzNested_Sys_LimitsPatch, 0 },
7898 { zNetbsd_Extra_SemicolonName, zNetbsd_Extra_SemicolonList,
7899 apzNetbsd_Extra_SemicolonMachs,
7900 NETBSD_EXTRA_SEMICOLON_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7901 aNetbsd_Extra_SemicolonTests, apzNetbsd_Extra_SemicolonPatch, 0 },
7903 { zNext_Math_PrefixName, zNext_Math_PrefixList,
7904 apzNext_Math_PrefixMachs,
7905 NEXT_MATH_PREFIX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7906 aNext_Math_PrefixTests, apzNext_Math_PrefixPatch, 0 },
7908 { zNext_TemplateName, zNext_TemplateList,
7909 apzNext_TemplateMachs,
7910 NEXT_TEMPLATE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7911 aNext_TemplateTests, apzNext_TemplatePatch, 0 },
7913 { zNext_VolitileName, zNext_VolitileList,
7914 apzNext_VolitileMachs,
7915 NEXT_VOLITILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7916 aNext_VolitileTests, apzNext_VolitilePatch, 0 },
7918 { zNext_Wait_UnionName, zNext_Wait_UnionList,
7919 apzNext_Wait_UnionMachs,
7920 NEXT_WAIT_UNION_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7921 aNext_Wait_UnionTests, apzNext_Wait_UnionPatch, 0 },
7923 { zNodeent_SyntaxName, zNodeent_SyntaxList,
7924 apzNodeent_SyntaxMachs,
7925 NODEENT_SYNTAX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7926 aNodeent_SyntaxTests, apzNodeent_SyntaxPatch, 0 },
7928 { zObstack_Lvalue_CastName, zObstack_Lvalue_CastList,
7929 apzObstack_Lvalue_CastMachs,
7930 OBSTACK_LVALUE_CAST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7931 aObstack_Lvalue_CastTests, apzObstack_Lvalue_CastPatch, 0 },
7933 { zOsf_Namespace_AName, zOsf_Namespace_AList,
7934 apzOsf_Namespace_AMachs,
7935 OSF_NAMESPACE_A_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7936 aOsf_Namespace_ATests, apzOsf_Namespace_APatch, 0 },
7938 { zOsf_Namespace_CName, zOsf_Namespace_CList,
7939 apzOsf_Namespace_CMachs,
7940 OSF_NAMESPACE_C_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7941 aOsf_Namespace_CTests, apzOsf_Namespace_CPatch, 0 },
7943 { zPthread_Page_SizeName, zPthread_Page_SizeList,
7944 apzPthread_Page_SizeMachs,
7945 PTHREAD_PAGE_SIZE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7946 aPthread_Page_SizeTests, apzPthread_Page_SizePatch, 0 },
7948 { zRead_Ret_TypeName, zRead_Ret_TypeList,
7949 apzRead_Ret_TypeMachs,
7950 READ_RET_TYPE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7951 aRead_Ret_TypeTests, apzRead_Ret_TypePatch, 0 },
7953 { zRpc_Xdr_Lvalue_Cast_AName, zRpc_Xdr_Lvalue_Cast_AList,
7954 apzRpc_Xdr_Lvalue_Cast_AMachs,
7955 RPC_XDR_LVALUE_CAST_A_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7956 aRpc_Xdr_Lvalue_Cast_ATests, apzRpc_Xdr_Lvalue_Cast_APatch, 0 },
7958 { zRpc_Xdr_Lvalue_Cast_BName, zRpc_Xdr_Lvalue_Cast_BList,
7959 apzRpc_Xdr_Lvalue_Cast_BMachs,
7960 RPC_XDR_LVALUE_CAST_B_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7961 aRpc_Xdr_Lvalue_Cast_BTests, apzRpc_Xdr_Lvalue_Cast_BPatch, 0 },
7963 { zRs6000_DoubleName, zRs6000_DoubleList,
7964 apzRs6000_DoubleMachs,
7965 RS6000_DOUBLE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7966 aRs6000_DoubleTests, apzRs6000_DoublePatch, 0 },
7968 { zRs6000_FchmodName, zRs6000_FchmodList,
7969 apzRs6000_FchmodMachs,
7970 RS6000_FCHMOD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7971 aRs6000_FchmodTests, apzRs6000_FchmodPatch, 0 },
7973 { zRs6000_ParamName, zRs6000_ParamList,
7974 apzRs6000_ParamMachs,
7975 RS6000_PARAM_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7976 aRs6000_ParamTests, apzRs6000_ParamPatch, 0 },
7978 { zSco_MathName, zSco_MathList,
7980 SCO_MATH_TEST_CT, FD_MACH_ONLY,
7981 aSco_MathTests, apzSco_MathPatch, 0 },
7983 { zSco_RegsetName, zSco_RegsetList,
7985 SCO_REGSET_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7986 aSco_RegsetTests, apzSco_RegsetPatch, 0 },
7988 { zSco_Static_FuncName, zSco_Static_FuncList,
7989 apzSco_Static_FuncMachs,
7990 SCO_STATIC_FUNC_TEST_CT, FD_MACH_ONLY,
7991 aSco_Static_FuncTests, apzSco_Static_FuncPatch, 0 },
7993 { zSco_UtimeName, zSco_UtimeList,
7995 SCO_UTIME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7996 aSco_UtimeTests, apzSco_UtimePatch, 0 },
7998 { zSolaris_Mutex_Init_1Name, zSolaris_Mutex_Init_1List,
7999 apzSolaris_Mutex_Init_1Machs,
8000 SOLARIS_MUTEX_INIT_1_TEST_CT, FD_MACH_ONLY,
8001 aSolaris_Mutex_Init_1Tests, apzSolaris_Mutex_Init_1Patch, 0 },
8003 { zSolaris_Mutex_Init_2Name, zSolaris_Mutex_Init_2List,
8004 apzSolaris_Mutex_Init_2Machs,
8005 SOLARIS_MUTEX_INIT_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8006 aSolaris_Mutex_Init_2Tests, apzSolaris_Mutex_Init_2Patch, 0 },
8008 { zSolaris_SocketName, zSolaris_SocketList,
8009 apzSolaris_SocketMachs,
8010 SOLARIS_SOCKET_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8011 aSolaris_SocketTests, apzSolaris_SocketPatch, 0 },
8013 { zSolaris_Stdio_TagName, zSolaris_Stdio_TagList,
8014 apzSolaris_Stdio_TagMachs,
8015 SOLARIS_STDIO_TAG_TEST_CT, FD_MACH_ONLY,
8016 aSolaris_Stdio_TagTests, apzSolaris_Stdio_TagPatch, 0 },
8018 { zSolaris_UnistdName, zSolaris_UnistdList,
8019 apzSolaris_UnistdMachs,
8020 SOLARIS_UNISTD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8021 aSolaris_UnistdTests, apzSolaris_UnistdPatch, 0 },
8023 { zSolaris_WidecName, zSolaris_WidecList,
8024 apzSolaris_WidecMachs,
8025 SOLARIS_WIDEC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8026 aSolaris_WidecTests, apzSolaris_WidecPatch, 0 },
8028 { zStatsswtchName, zStatsswtchList,
8030 STATSSWTCH_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8031 aStatsswtchTests, apzStatsswtchPatch, 0 },
8033 { zStdio_Stdarg_HName, zStdio_Stdarg_HList,
8034 apzStdio_Stdarg_HMachs,
8035 STDIO_STDARG_H_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8036 aStdio_Stdarg_HTests, apzStdio_Stdarg_HPatch, 0 },
8038 { zStdio_Va_ListName, zStdio_Va_ListList,
8039 apzStdio_Va_ListMachs,
8040 STDIO_VA_LIST_TEST_CT, FD_MACH_ONLY,
8041 aStdio_Va_ListTests, apzStdio_Va_ListPatch, 0 },
8043 { zStdio_Va_List_ClientsName, zStdio_Va_List_ClientsList,
8044 apzStdio_Va_List_ClientsMachs,
8045 STDIO_VA_LIST_CLIENTS_TEST_CT, FD_MACH_ONLY,
8046 aStdio_Va_List_ClientsTests, apzStdio_Va_List_ClientsPatch, 0 },
8048 { zStrict_Ansi_NotName, zStrict_Ansi_NotList,
8049 apzStrict_Ansi_NotMachs,
8050 STRICT_ANSI_NOT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8051 aStrict_Ansi_NotTests, apzStrict_Ansi_NotPatch, 0 },
8053 { zStrict_Ansi_Not_CtdName, zStrict_Ansi_Not_CtdList,
8054 apzStrict_Ansi_Not_CtdMachs,
8055 STRICT_ANSI_NOT_CTD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8056 aStrict_Ansi_Not_CtdTests, apzStrict_Ansi_Not_CtdPatch, 0 },
8058 { zStrict_Ansi_OnlyName, zStrict_Ansi_OnlyList,
8059 apzStrict_Ansi_OnlyMachs,
8060 STRICT_ANSI_ONLY_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8061 aStrict_Ansi_OnlyTests, apzStrict_Ansi_OnlyPatch, 0 },
8063 { zStruct_FileName, zStruct_FileList,
8064 apzStruct_FileMachs,
8065 STRUCT_FILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8066 aStruct_FileTests, apzStruct_FilePatch, 0 },
8068 { zStruct_SockaddrName, zStruct_SockaddrList,
8069 apzStruct_SockaddrMachs,
8070 STRUCT_SOCKADDR_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8071 aStruct_SockaddrTests, apzStruct_SockaddrPatch, 0 },
8073 { zSun_Auth_ProtoName, zSun_Auth_ProtoList,
8074 apzSun_Auth_ProtoMachs,
8075 SUN_AUTH_PROTO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8076 aSun_Auth_ProtoTests, apzSun_Auth_ProtoPatch, 0 },
8078 { zSun_Bogus_IfdefName, zSun_Bogus_IfdefList,
8079 apzSun_Bogus_IfdefMachs,
8080 SUN_BOGUS_IFDEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8081 aSun_Bogus_IfdefTests, apzSun_Bogus_IfdefPatch, 0 },
8083 { zSun_CatmacroName, zSun_CatmacroList,
8084 apzSun_CatmacroMachs,
8085 SUN_CATMACRO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8086 aSun_CatmacroTests, apzSun_CatmacroPatch, 0 },
8088 { zSun_MallocName, zSun_MallocList,
8090 SUN_MALLOC_TEST_CT, FD_MACH_ONLY,
8091 aSun_MallocTests, apzSun_MallocPatch, 0 },
8093 { zSun_Rusers_SemiName, zSun_Rusers_SemiList,
8094 apzSun_Rusers_SemiMachs,
8095 SUN_RUSERS_SEMI_TEST_CT, FD_MACH_ONLY,
8096 aSun_Rusers_SemiTests, apzSun_Rusers_SemiPatch, 0 },
8098 { zSun_SignalName, zSun_SignalList,
8100 SUN_SIGNAL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8101 aSun_SignalTests, apzSun_SignalPatch, 0 },
8103 { zSunos_StrlenName, zSunos_StrlenList,
8104 apzSunos_StrlenMachs,
8105 SUNOS_STRLEN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8106 aSunos_StrlenTests, apzSunos_StrlenPatch, 0 },
8108 { zSvr4__PName, zSvr4__PList,
8110 SVR4__P_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8111 aSvr4__PTests, apzSvr4__PPatch, 0 },
8113 { zSvr4_Disable_OptName, zSvr4_Disable_OptList,
8114 apzSvr4_Disable_OptMachs,
8115 SVR4_DISABLE_OPT_TEST_CT, FD_MACH_ONLY,
8116 aSvr4_Disable_OptTests, apzSvr4_Disable_OptPatch, 0 },
8118 { zSvr4_GetcwdName, zSvr4_GetcwdList,
8119 apzSvr4_GetcwdMachs,
8120 SVR4_GETCWD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8121 aSvr4_GetcwdTests, apzSvr4_GetcwdPatch, 0 },
8123 { zSvr4_KrnlName, zSvr4_KrnlList,
8125 SVR4_KRNL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8126 aSvr4_KrnlTests, apzSvr4_KrnlPatch, 0 },
8128 { zSvr4_ProfilName, zSvr4_ProfilList,
8129 apzSvr4_ProfilMachs,
8130 SVR4_PROFIL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8131 aSvr4_ProfilTests, apzSvr4_ProfilPatch, 0 },
8133 { zSvr4_Sighandler_TypeName, zSvr4_Sighandler_TypeList,
8134 apzSvr4_Sighandler_TypeMachs,
8135 SVR4_SIGHANDLER_TYPE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8136 aSvr4_Sighandler_TypeTests, apzSvr4_Sighandler_TypePatch, 0 },
8138 { zSvr4_Undeclared_GetrngeName, zSvr4_Undeclared_GetrngeList,
8139 apzSvr4_Undeclared_GetrngeMachs,
8140 SVR4_UNDECLARED_GETRNGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8141 aSvr4_Undeclared_GetrngeTests, apzSvr4_Undeclared_GetrngePatch, 0 },
8143 { zSysv68_StringName, zSysv68_StringList,
8144 apzSysv68_StringMachs,
8145 SYSV68_STRING_TEST_CT, FD_MACH_ONLY,
8146 aSysv68_StringTests, apzSysv68_StringPatch, 0 },
8148 { zSysz_Stdlib_For_SunName, zSysz_Stdlib_For_SunList,
8149 apzSysz_Stdlib_For_SunMachs,
8150 SYSZ_STDLIB_FOR_SUN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8151 aSysz_Stdlib_For_SunTests, apzSysz_Stdlib_For_SunPatch, 0 },
8153 { zThread_KeywordName, zThread_KeywordList,
8154 apzThread_KeywordMachs,
8155 THREAD_KEYWORD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8156 aThread_KeywordTests, apzThread_KeywordPatch, 0 },
8158 { zTinfo_CplusplusName, zTinfo_CplusplusList,
8159 apzTinfo_CplusplusMachs,
8160 TINFO_CPLUSPLUS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8161 aTinfo_CplusplusTests, apzTinfo_CplusplusPatch, 0 },
8163 { zUltrix_Atexit_ParamName, zUltrix_Atexit_ParamList,
8164 apzUltrix_Atexit_ParamMachs,
8165 ULTRIX_ATEXIT_PARAM_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8166 aUltrix_Atexit_ParamTests, apzUltrix_Atexit_ParamPatch, 0 },
8168 { zUltrix_Atof_ParamName, zUltrix_Atof_ParamList,
8169 apzUltrix_Atof_ParamMachs,
8170 ULTRIX_ATOF_PARAM_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8171 aUltrix_Atof_ParamTests, apzUltrix_Atof_ParamPatch, 0 },
8173 { zUltrix_ConstName, zUltrix_ConstList,
8174 apzUltrix_ConstMachs,
8175 ULTRIX_CONST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8176 aUltrix_ConstTests, apzUltrix_ConstPatch, 0 },
8178 { zUltrix_Const2Name, zUltrix_Const2List,
8179 apzUltrix_Const2Machs,
8180 ULTRIX_CONST2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8181 aUltrix_Const2Tests, apzUltrix_Const2Patch, 0 },
8183 { zUltrix_Const3Name, zUltrix_Const3List,
8184 apzUltrix_Const3Machs,
8185 ULTRIX_CONST3_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8186 aUltrix_Const3Tests, apzUltrix_Const3Patch, 0 },
8188 { zUltrix_Fix_FixprotoName, zUltrix_Fix_FixprotoList,
8189 apzUltrix_Fix_FixprotoMachs,
8190 ULTRIX_FIX_FIXPROTO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8191 aUltrix_Fix_FixprotoTests, apzUltrix_Fix_FixprotoPatch, 0 },
8193 { zUltrix_IfdefName, zUltrix_IfdefList,
8194 apzUltrix_IfdefMachs,
8195 ULTRIX_IFDEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8196 aUltrix_IfdefTests, apzUltrix_IfdefPatch, 0 },
8198 { zUltrix_LocaleName, zUltrix_LocaleList,
8199 apzUltrix_LocaleMachs,
8200 ULTRIX_LOCALE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8201 aUltrix_LocaleTests, apzUltrix_LocalePatch, 0 },
8203 { zUltrix_Math_IfdefName, zUltrix_Math_IfdefList,
8204 apzUltrix_Math_IfdefMachs,
8205 ULTRIX_MATH_IFDEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8206 aUltrix_Math_IfdefTests, apzUltrix_Math_IfdefPatch, 0 },
8208 { zUltrix_Nested_IoctlName, zUltrix_Nested_IoctlList,
8209 apzUltrix_Nested_IoctlMachs,
8210 ULTRIX_NESTED_IOCTL_TEST_CT, FD_MACH_ONLY,
8211 aUltrix_Nested_IoctlTests, apzUltrix_Nested_IoctlPatch, 0 },
8213 { zUltrix_Nested_SvcName, zUltrix_Nested_SvcList,
8214 apzUltrix_Nested_SvcMachs,
8215 ULTRIX_NESTED_SVC_TEST_CT, FD_MACH_ONLY,
8216 aUltrix_Nested_SvcTests, apzUltrix_Nested_SvcPatch, 0 },
8218 { zUltrix_StatName, zUltrix_StatList,
8219 apzUltrix_StatMachs,
8220 ULTRIX_STAT_TEST_CT, FD_MACH_ONLY,
8221 aUltrix_StatTests, apzUltrix_StatPatch, 0 },
8223 { zUltrix_StaticName, zUltrix_StaticList,
8224 apzUltrix_StaticMachs,
8225 ULTRIX_STATIC_TEST_CT, FD_MACH_ONLY,
8226 aUltrix_StaticTests, apzUltrix_StaticPatch, 0 },
8228 { zUltrix_StdlibName, zUltrix_StdlibList,
8229 apzUltrix_StdlibMachs,
8230 ULTRIX_STDLIB_TEST_CT, FD_MACH_ONLY,
8231 aUltrix_StdlibTests, apzUltrix_StdlibPatch, 0 },
8233 { zUltrix_StringsName, zUltrix_StringsList,
8234 apzUltrix_StringsMachs,
8235 ULTRIX_STRINGS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8236 aUltrix_StringsTests, apzUltrix_StringsPatch, 0 },
8238 { zUltrix_Strings2Name, zUltrix_Strings2List,
8239 apzUltrix_Strings2Machs,
8240 ULTRIX_STRINGS2_TEST_CT, FD_MACH_ONLY,
8241 aUltrix_Strings2Tests, apzUltrix_Strings2Patch, 0 },
8243 { zUltrix_Sys_TimeName, zUltrix_Sys_TimeList,
8244 apzUltrix_Sys_TimeMachs,
8245 ULTRIX_SYS_TIME_TEST_CT, FD_MACH_ONLY,
8246 aUltrix_Sys_TimeTests, apzUltrix_Sys_TimePatch, 0 },
8248 { zUltrix_UnistdName, zUltrix_UnistdList,
8249 apzUltrix_UnistdMachs,
8250 ULTRIX_UNISTD_TEST_CT, FD_MACH_ONLY,
8251 aUltrix_UnistdTests, apzUltrix_UnistdPatch, 0 },
8253 { zUndefine_NullName, zUndefine_NullList,
8254 apzUndefine_NullMachs,
8255 UNDEFINE_NULL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8256 aUndefine_NullTests, apzUndefine_NullPatch, 0 },
8258 { zUnicosmk_RestrictName, zUnicosmk_RestrictList,
8259 apzUnicosmk_RestrictMachs,
8260 UNICOSMK_RESTRICT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8261 aUnicosmk_RestrictTests, apzUnicosmk_RestrictPatch, 0 },
8263 { zUw7_Byteorder_FixName, zUw7_Byteorder_FixList,
8264 apzUw7_Byteorder_FixMachs,
8265 UW7_BYTEORDER_FIX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8266 aUw7_Byteorder_FixTests, apzUw7_Byteorder_FixPatch, 0 },
8268 { zVa_I960_MacroName, zVa_I960_MacroList,
8269 apzVa_I960_MacroMachs,
8270 VA_I960_MACRO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8271 aVa_I960_MacroTests, apzVa_I960_MacroPatch, 0 },
8273 { zVoid_NullName, zVoid_NullList,
8275 VOID_NULL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8276 aVoid_NullTests, apzVoid_NullPatch, 0 },
8278 { zVxworks_Gcc_ProblemName, zVxworks_Gcc_ProblemList,
8279 apzVxworks_Gcc_ProblemMachs,
8280 VXWORKS_GCC_PROBLEM_TEST_CT, FD_MACH_ONLY,
8281 aVxworks_Gcc_ProblemTests, apzVxworks_Gcc_ProblemPatch, 0 },
8283 { zVxworks_Needs_VxtypesName, zVxworks_Needs_VxtypesList,
8284 apzVxworks_Needs_VxtypesMachs,
8285 VXWORKS_NEEDS_VXTYPES_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8286 aVxworks_Needs_VxtypesTests, apzVxworks_Needs_VxtypesPatch, 0 },
8288 { zVxworks_Needs_VxworksName, zVxworks_Needs_VxworksList,
8289 apzVxworks_Needs_VxworksMachs,
8290 VXWORKS_NEEDS_VXWORKS_TEST_CT, FD_MACH_ONLY,
8291 aVxworks_Needs_VxworksTests, apzVxworks_Needs_VxworksPatch, 0 },
8293 { zVxworks_TimeName, zVxworks_TimeList,
8294 apzVxworks_TimeMachs,
8295 VXWORKS_TIME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8296 aVxworks_TimeTests, apzVxworks_TimePatch, 0 },
8298 { zWindiss_Math1Name, zWindiss_Math1List,
8299 apzWindiss_Math1Machs,
8300 WINDISS_MATH1_TEST_CT, FD_MACH_ONLY,
8301 aWindiss_Math1Tests, apzWindiss_Math1Patch, 0 },
8303 { zWindiss_Math2Name, zWindiss_Math2List,
8304 apzWindiss_Math2Machs,
8305 WINDISS_MATH2_TEST_CT, FD_MACH_ONLY,
8306 aWindiss_Math2Tests, apzWindiss_Math2Patch, 0 },
8308 { zWindiss_ValistName, zWindiss_ValistList,
8309 apzWindiss_ValistMachs,
8310 WINDISS_VALIST_TEST_CT, FD_MACH_ONLY,
8311 aWindiss_ValistTests, apzWindiss_ValistPatch, 0 },
8313 { zX11_ClassName, zX11_ClassList,
8315 X11_CLASS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8316 aX11_ClassTests, apzX11_ClassPatch, 0 },
8318 { zX11_Class_UsageName, zX11_Class_UsageList,
8319 apzX11_Class_UsageMachs,
8320 X11_CLASS_USAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8321 aX11_Class_UsageTests, apzX11_Class_UsagePatch, 0 },
8323 { zX11_NewName, zX11_NewList,
8325 X11_NEW_TEST_CT, FD_MACH_ONLY,
8326 aX11_NewTests, apzX11_NewPatch, 0 },
8328 { zX11_SprintfName, zX11_SprintfList,
8329 apzX11_SprintfMachs,
8330 X11_SPRINTF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8331 aX11_SprintfTests, apzX11_SprintfPatch, 0 }