1 /* -*- buffer-read-only: t -*- vi: set ro:
3 * DO NOT EDIT THIS FILE (fixincl.x)
5 * It has been AutoGen-ed Thursday January 22, 2004 at 08:36:55 PM MET
6 * From the definitions inclhack.def
7 * and the template file fixincl
9 /* DO NOT CVS-MERGE THIS FILE, EITHER Thu Jan 22 20:36:56 MET 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 172 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_Volatile fix
654 tSCC zAix_VolatileName[] =
658 * File name selection pattern
660 tSCC zAix_VolatileList[] =
663 * Machine/OS name selection pattern
665 #define apzAix_VolatileMachs (const char**)NULL
668 * content selection pattern - do fix if pattern found
670 tSCC zAix_VolatileSelect0[] =
671 "typedef volatile int sig_atomic_t";
673 #define AIX_VOLATILE_TEST_CT 1
674 static tTestDesc aAix_VolatileTests[] = {
675 { TT_EGREP, zAix_VolatileSelect0, (regex_t*)NULL }, };
678 * Fix Command Arguments for Aix_Volatile
680 static const char* apzAix_VolatilePatch[] = {
682 "typedef int sig_atomic_t",
685 /* * * * * * * * * * * * * * * * * * * * * * * * * *
687 * Description of Alpha___Assert fix
689 tSCC zAlpha___AssertName[] =
693 * File name selection pattern
695 tSCC zAlpha___AssertList[] =
698 * Machine/OS name selection pattern
700 #define apzAlpha___AssertMachs (const char**)NULL
703 * content selection pattern - do fix if pattern found
705 tSCC zAlpha___AssertSelect0[] =
706 "__assert\\(char \\*, char \\*, int\\)";
708 #define ALPHA___ASSERT_TEST_CT 1
709 static tTestDesc aAlpha___AssertTests[] = {
710 { TT_EGREP, zAlpha___AssertSelect0, (regex_t*)NULL }, };
713 * Fix Command Arguments for Alpha___Assert
715 static const char* apzAlpha___AssertPatch[] = {
717 "__assert(const char *, const char *, int)",
720 /* * * * * * * * * * * * * * * * * * * * * * * * * *
722 * Description of Alpha___Extern_Prefix fix
724 tSCC zAlpha___Extern_PrefixName[] =
725 "alpha___extern_prefix";
728 * File name selection pattern
730 #define zAlpha___Extern_PrefixList (char*)NULL
732 * Machine/OS name selection pattern
734 tSCC* apzAlpha___Extern_PrefixMachs[] = {
739 * content selection pattern - do fix if pattern found
741 tSCC zAlpha___Extern_PrefixSelect0[] =
742 "(.*)(defined\\(__DECC\\)|def[ \t]*__DECC)[ \t]*\n\
743 (#[ \t]*pragma[ \t]*extern_prefix.*)";
745 #define ALPHA___EXTERN_PREFIX_TEST_CT 1
746 static tTestDesc aAlpha___Extern_PrefixTests[] = {
747 { TT_EGREP, zAlpha___Extern_PrefixSelect0, (regex_t*)NULL }, };
750 * Fix Command Arguments for Alpha___Extern_Prefix
752 static const char* apzAlpha___Extern_PrefixPatch[] = {
754 "%1 (defined(__DECC) || defined(__PRAGMA_EXTERN_PREFIX))\n\
758 /* * * * * * * * * * * * * * * * * * * * * * * * * *
760 * Description of Alpha___Extern_Prefix_Standards fix
762 tSCC zAlpha___Extern_Prefix_StandardsName[] =
763 "alpha___extern_prefix_standards";
766 * File name selection pattern
768 tSCC zAlpha___Extern_Prefix_StandardsList[] =
771 * Machine/OS name selection pattern
773 tSCC* apzAlpha___Extern_Prefix_StandardsMachs[] = {
778 * content selection pattern - do fix if pattern found
780 tSCC zAlpha___Extern_Prefix_StandardsSelect0[] =
781 ".*!defined\\(_LIBC_POLLUTION_H_\\) && !defined\\(__DECC\\)";
783 #define ALPHA___EXTERN_PREFIX_STANDARDS_TEST_CT 1
784 static tTestDesc aAlpha___Extern_Prefix_StandardsTests[] = {
785 { TT_EGREP, zAlpha___Extern_Prefix_StandardsSelect0, (regex_t*)NULL }, };
788 * Fix Command Arguments for Alpha___Extern_Prefix_Standards
790 static const char* apzAlpha___Extern_Prefix_StandardsPatch[] = {
792 "%0 && !defined(__PRAGMA_EXTERN_PREFIX)",
795 /* * * * * * * * * * * * * * * * * * * * * * * * * *
797 * Description of Alpha___Extern_Prefix_Sys_Stat fix
799 tSCC zAlpha___Extern_Prefix_Sys_StatName[] =
800 "alpha___extern_prefix_sys_stat";
803 * File name selection pattern
805 tSCC zAlpha___Extern_Prefix_Sys_StatList[] =
806 "|sys/stat.h|sys/mount.h|";
808 * Machine/OS name selection pattern
810 tSCC* apzAlpha___Extern_Prefix_Sys_StatMachs[] = {
815 * content selection pattern - do fix if pattern found
817 tSCC zAlpha___Extern_Prefix_Sys_StatSelect0[] =
818 "#[ \t]*if[ \t]*defined\\(__DECC\\)";
820 #define ALPHA___EXTERN_PREFIX_SYS_STAT_TEST_CT 1
821 static tTestDesc aAlpha___Extern_Prefix_Sys_StatTests[] = {
822 { TT_EGREP, zAlpha___Extern_Prefix_Sys_StatSelect0, (regex_t*)NULL }, };
825 * Fix Command Arguments for Alpha___Extern_Prefix_Sys_Stat
827 static const char* apzAlpha___Extern_Prefix_Sys_StatPatch[] = {
829 "%0 || defined(__PRAGMA_EXTERN_PREFIX)",
832 /* * * * * * * * * * * * * * * * * * * * * * * * * *
834 * Description of Alpha_Assert fix
836 tSCC zAlpha_AssertName[] =
840 * File name selection pattern
842 tSCC zAlpha_AssertList[] =
845 * Machine/OS name selection pattern
847 #define apzAlpha_AssertMachs (const char**)NULL
850 * content selection pattern - do fix if pattern found
852 tSCC zAlpha_AssertSelect0[] =
853 "(#define assert\\(EX\\).*)\\(\\(int\\) \\(EX\\)\\)";
855 #define ALPHA_ASSERT_TEST_CT 1
856 static tTestDesc aAlpha_AssertTests[] = {
857 { TT_EGREP, zAlpha_AssertSelect0, (regex_t*)NULL }, };
860 * Fix Command Arguments for Alpha_Assert
862 static const char* apzAlpha_AssertPatch[] = {
867 /* * * * * * * * * * * * * * * * * * * * * * * * * *
869 * Description of Alpha_Bad_Lval fix
871 tSCC zAlpha_Bad_LvalName[] =
875 * File name selection pattern
877 #define zAlpha_Bad_LvalList (char*)NULL
879 * Machine/OS name selection pattern
881 tSCC* apzAlpha_Bad_LvalMachs[] = {
886 * content selection pattern - do fix if pattern found
888 tSCC zAlpha_Bad_LvalSelect0[] =
889 "^[ \t]*#[ \t]*pragma[ \t]+extern_prefix";
891 #define ALPHA_BAD_LVAL_TEST_CT 1
892 static tTestDesc aAlpha_Bad_LvalTests[] = {
893 { TT_EGREP, zAlpha_Bad_LvalSelect0, (regex_t*)NULL }, };
896 * Fix Command Arguments for Alpha_Bad_Lval
898 static const char* apzAlpha_Bad_LvalPatch[] = { "sed",
899 "-e", "s/^[ \t]*#[ \t]*define[ \t][ \t]*\\([^(]*\\)\\(([^)]*)\\)[ \t]*\\(_.*\\)\\1\\2[ \t]*$/#define \\1 \\3\\1/",
902 /* * * * * * * * * * * * * * * * * * * * * * * * * *
904 * Description of Alpha_Getopt fix
906 tSCC zAlpha_GetoptName[] =
910 * File name selection pattern
912 tSCC zAlpha_GetoptList[] =
913 "|stdio.h|stdlib.h|";
915 * Machine/OS name selection pattern
917 #define apzAlpha_GetoptMachs (const char**)NULL
920 * content selection pattern - do fix if pattern found
922 tSCC zAlpha_GetoptSelect0[] =
923 "getopt\\(int, char \\*\\[\\], *char \\*\\)";
925 #define ALPHA_GETOPT_TEST_CT 1
926 static tTestDesc aAlpha_GetoptTests[] = {
927 { TT_EGREP, zAlpha_GetoptSelect0, (regex_t*)NULL }, };
930 * Fix Command Arguments for Alpha_Getopt
932 static const char* apzAlpha_GetoptPatch[] = {
934 "getopt(int, char *const[], const char *)",
937 /* * * * * * * * * * * * * * * * * * * * * * * * * *
939 * Description of Alpha_Parens fix
941 tSCC zAlpha_ParensName[] =
945 * File name selection pattern
947 tSCC zAlpha_ParensList[] =
950 * Machine/OS name selection pattern
952 #define apzAlpha_ParensMachs (const char**)NULL
955 * content selection pattern - do fix if pattern found
957 tSCC zAlpha_ParensSelect0[] =
958 "#ifndef\\(__mips64\\)";
960 #define ALPHA_PARENS_TEST_CT 1
961 static tTestDesc aAlpha_ParensTests[] = {
962 { TT_EGREP, zAlpha_ParensSelect0, (regex_t*)NULL }, };
965 * Fix Command Arguments for Alpha_Parens
967 static const char* apzAlpha_ParensPatch[] = {
972 /* * * * * * * * * * * * * * * * * * * * * * * * * *
974 * Description of Alpha_Pthread fix
976 tSCC zAlpha_PthreadName[] =
980 * File name selection pattern
982 tSCC zAlpha_PthreadList[] =
985 * Machine/OS name selection pattern
987 tSCC* apzAlpha_PthreadMachs[] = {
992 * content selection pattern - do fix if pattern found
994 tSCC zAlpha_PthreadSelect0[] =
995 "((#[ \t]*if)([ \t]*defined[ \t]*\\(_PTHREAD_ENV_DECC\\)|def _PTHREAD_ENV_DECC)(.*))\n\
996 (#[ \t]*define _PTHREAD_USE_PTDNAM_)";
998 #define ALPHA_PTHREAD_TEST_CT 1
999 static tTestDesc aAlpha_PthreadTests[] = {
1000 { TT_EGREP, zAlpha_PthreadSelect0, (regex_t*)NULL }, };
1003 * Fix Command Arguments for Alpha_Pthread
1005 static const char* apzAlpha_PthreadPatch[] = {
1007 "%2 defined (_PTHREAD_ENV_DECC)%4 || defined (__PRAGMA_EXTERN_PREFIX)\n\
1011 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1013 * Description of Alpha_Pthread_Gcc fix
1015 tSCC zAlpha_Pthread_GccName[] =
1016 "alpha_pthread_gcc";
1019 * File name selection pattern
1021 tSCC zAlpha_Pthread_GccList[] =
1024 * Machine/OS name selection pattern
1026 tSCC* apzAlpha_Pthread_GccMachs[] = {
1028 (const char*)NULL };
1031 * content selection pattern - do fix if pattern found
1033 tSCC zAlpha_Pthread_GccSelect0[] =
1035 # error <pthread.h>: unrecognized compiler.";
1037 #define ALPHA_PTHREAD_GCC_TEST_CT 1
1038 static tTestDesc aAlpha_Pthread_GccTests[] = {
1039 { TT_EGREP, zAlpha_Pthread_GccSelect0, (regex_t*)NULL }, };
1042 * Fix Command Arguments for Alpha_Pthread_Gcc
1044 static const char* apzAlpha_Pthread_GccPatch[] = {
1046 "#elif defined (__GNUC__)\n\
1047 # define _PTHREAD_ENV_GCC\n\
1051 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1053 * Description of Alpha_Sbrk fix
1055 tSCC zAlpha_SbrkName[] =
1059 * File name selection pattern
1061 tSCC zAlpha_SbrkList[] =
1064 * Machine/OS name selection pattern
1066 #define apzAlpha_SbrkMachs (const char**)NULL
1069 * content selection pattern - do fix if pattern found
1071 tSCC zAlpha_SbrkSelect0[] =
1072 "char[ \t]*\\*[\t ]*sbrk[ \t]*\\(";
1074 #define ALPHA_SBRK_TEST_CT 1
1075 static tTestDesc aAlpha_SbrkTests[] = {
1076 { TT_EGREP, zAlpha_SbrkSelect0, (regex_t*)NULL }, };
1079 * Fix Command Arguments for Alpha_Sbrk
1081 static const char* apzAlpha_SbrkPatch[] = {
1086 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1088 * Description of Alpha_Wchar fix
1090 tSCC zAlpha_WcharName[] =
1094 * File name selection pattern
1096 tSCC zAlpha_WcharList[] =
1099 * Machine/OS name selection pattern
1101 tSCC* apzAlpha_WcharMachs[] = {
1103 (const char*)NULL };
1106 * content selection pattern - do fix if pattern found
1108 tSCC zAlpha_WcharSelect0[] =
1109 "#define wcstok wcstok_r";
1111 #define ALPHA_WCHAR_TEST_CT 1
1112 static tTestDesc aAlpha_WcharTests[] = {
1113 { TT_EGREP, zAlpha_WcharSelect0, (regex_t*)NULL }, };
1116 * Fix Command Arguments for Alpha_Wchar
1118 static const char* apzAlpha_WcharPatch[] = { "sed",
1119 "-e", "s@#define wcstok wcstok_r@extern wchar_t *wcstok __((wchar_t *, const wchar_t *, wchar_t **)) __asm__(\"wcstok_r\");@",
1120 "-e", "s@#define wcsftime __wcsftime_isoc@extern size_t wcsftime __((wchar_t *, size_t, const wchar_t *, const struct tm *)) __asm__(\"__wcsftime_isoc\");@",
1123 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1125 * Description of Avoid_Bool_Define fix
1127 tSCC zAvoid_Bool_DefineName[] =
1128 "avoid_bool_define";
1131 * File name selection pattern
1133 tSCC zAvoid_Bool_DefineList[] =
1134 "|curses.h|curses_colr/curses.h|term.h|tinfo.h|";
1136 * Machine/OS name selection pattern
1138 #define apzAvoid_Bool_DefineMachs (const char**)NULL
1141 * content selection pattern - do fix if pattern found
1143 tSCC zAvoid_Bool_DefineSelect0[] =
1144 "#[ \t]*define[ \t]+bool[ \t]";
1147 * content bypass pattern - skip fix if pattern found
1149 tSCC zAvoid_Bool_DefineBypass0[] =
1152 #define AVOID_BOOL_DEFINE_TEST_CT 2
1153 static tTestDesc aAvoid_Bool_DefineTests[] = {
1154 { TT_NEGREP, zAvoid_Bool_DefineBypass0, (regex_t*)NULL },
1155 { TT_EGREP, zAvoid_Bool_DefineSelect0, (regex_t*)NULL }, };
1158 * Fix Command Arguments for Avoid_Bool_Define
1160 static const char* apzAvoid_Bool_DefinePatch[] = {
1162 "#ifndef __cplusplus\n\
1165 "^[ \t]*#[ \t]*define[ \t]+bool[ \t].*",
1168 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1170 * Description of Avoid_Bool_Type fix
1172 tSCC zAvoid_Bool_TypeName[] =
1176 * File name selection pattern
1178 tSCC zAvoid_Bool_TypeList[] =
1179 "|curses.h|curses_colr/curses.h|term.h|tinfo.h|";
1181 * Machine/OS name selection pattern
1183 #define apzAvoid_Bool_TypeMachs (const char**)NULL
1186 * content selection pattern - do fix if pattern found
1188 tSCC zAvoid_Bool_TypeSelect0[] =
1189 "^[ \t]*typedef[ \t].*[ \t]bool[ \t]*;";
1192 * content bypass pattern - skip fix if pattern found
1194 tSCC zAvoid_Bool_TypeBypass0[] =
1197 #define AVOID_BOOL_TYPE_TEST_CT 2
1198 static tTestDesc aAvoid_Bool_TypeTests[] = {
1199 { TT_NEGREP, zAvoid_Bool_TypeBypass0, (regex_t*)NULL },
1200 { TT_EGREP, zAvoid_Bool_TypeSelect0, (regex_t*)NULL }, };
1203 * Fix Command Arguments for Avoid_Bool_Type
1205 static const char* apzAvoid_Bool_TypePatch[] = {
1207 "#ifndef __cplusplus\n\
1212 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1214 * Description of Avoid_Wchar_T_Type fix
1216 tSCC zAvoid_Wchar_T_TypeName[] =
1217 "avoid_wchar_t_type";
1220 * File name selection pattern
1222 #define zAvoid_Wchar_T_TypeList (char*)NULL
1224 * Machine/OS name selection pattern
1226 #define apzAvoid_Wchar_T_TypeMachs (const char**)NULL
1229 * content selection pattern - do fix if pattern found
1231 tSCC zAvoid_Wchar_T_TypeSelect0[] =
1232 "^[ \t]*typedef[ \t].*[ \t]wchar_t[ \t]*;";
1235 * content bypass pattern - skip fix if pattern found
1237 tSCC zAvoid_Wchar_T_TypeBypass0[] =
1239 tSCC zAvoid_Wchar_T_TypeBypass1[] =
1241 tSCC zAvoid_Wchar_T_TypeBypass2[] =
1242 "XFree86: xc/lib/X11/Xlib\\.h";
1244 #define AVOID_WCHAR_T_TYPE_TEST_CT 4
1245 static tTestDesc aAvoid_Wchar_T_TypeTests[] = {
1246 { TT_NEGREP, zAvoid_Wchar_T_TypeBypass0, (regex_t*)NULL },
1247 { TT_NEGREP, zAvoid_Wchar_T_TypeBypass1, (regex_t*)NULL },
1248 { TT_NEGREP, zAvoid_Wchar_T_TypeBypass2, (regex_t*)NULL },
1249 { TT_EGREP, zAvoid_Wchar_T_TypeSelect0, (regex_t*)NULL }, };
1252 * Fix Command Arguments for Avoid_Wchar_T_Type
1254 static const char* apzAvoid_Wchar_T_TypePatch[] = {
1256 "#ifndef __cplusplus\n\
1261 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1263 * Description of Bad_Struct_Term fix
1265 tSCC zBad_Struct_TermName[] =
1269 * File name selection pattern
1271 tSCC zBad_Struct_TermList[] =
1274 * Machine/OS name selection pattern
1276 #define apzBad_Struct_TermMachs (const char**)NULL
1279 * content selection pattern - do fix if pattern found
1281 tSCC zBad_Struct_TermSelect0[] =
1282 "^[ \t]*typedef[ \t]+struct[ \t]+term[ \t]*;";
1284 #define BAD_STRUCT_TERM_TEST_CT 1
1285 static tTestDesc aBad_Struct_TermTests[] = {
1286 { TT_EGREP, zBad_Struct_TermSelect0, (regex_t*)NULL }, };
1289 * Fix Command Arguments for Bad_Struct_Term
1291 static const char* apzBad_Struct_TermPatch[] = {
1296 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1298 * Description of Badquote fix
1300 tSCC zBadquoteName[] =
1304 * File name selection pattern
1306 tSCC zBadquoteList[] =
1307 "|sundev/vuid_event.h|";
1309 * Machine/OS name selection pattern
1311 #define apzBadquoteMachs (const char**)NULL
1314 * content selection pattern - do fix if pattern found
1316 tSCC zBadquoteSelect0[] =
1319 #define BADQUOTE_TEST_CT 1
1320 static tTestDesc aBadquoteTests[] = {
1321 { TT_EGREP, zBadquoteSelect0, (regex_t*)NULL }, };
1324 * Fix Command Arguments for Badquote
1326 static const char* apzBadquotePatch[] = {
1331 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1333 * Description of Broken_Assert_Stdio fix
1335 tSCC zBroken_Assert_StdioName[] =
1336 "broken_assert_stdio";
1339 * File name selection pattern
1341 tSCC zBroken_Assert_StdioList[] =
1344 * Machine/OS name selection pattern
1346 #define apzBroken_Assert_StdioMachs (const char**)NULL
1349 * content selection pattern - do fix if pattern found
1351 tSCC zBroken_Assert_StdioSelect0[] =
1355 * content bypass pattern - skip fix if pattern found
1357 tSCC zBroken_Assert_StdioBypass0[] =
1358 "include.*stdio\\.h";
1360 #define BROKEN_ASSERT_STDIO_TEST_CT 2
1361 static tTestDesc aBroken_Assert_StdioTests[] = {
1362 { TT_NEGREP, zBroken_Assert_StdioBypass0, (regex_t*)NULL },
1363 { TT_EGREP, zBroken_Assert_StdioSelect0, (regex_t*)NULL }, };
1366 * Fix Command Arguments for Broken_Assert_Stdio
1368 static const char* apzBroken_Assert_StdioPatch[] = {
1370 "#include <stdio.h>\n",
1373 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1375 * Description of Broken_Assert_Stdlib fix
1377 tSCC zBroken_Assert_StdlibName[] =
1378 "broken_assert_stdlib";
1381 * File name selection pattern
1383 tSCC zBroken_Assert_StdlibList[] =
1386 * Machine/OS name selection pattern
1388 #define apzBroken_Assert_StdlibMachs (const char**)NULL
1391 * content selection pattern - do fix if pattern found
1393 tSCC zBroken_Assert_StdlibSelect0[] =
1394 "exit *\\(|abort *\\(";
1397 * content bypass pattern - skip fix if pattern found
1399 tSCC zBroken_Assert_StdlibBypass0[] =
1400 "include.*stdlib\\.h";
1402 #define BROKEN_ASSERT_STDLIB_TEST_CT 2
1403 static tTestDesc aBroken_Assert_StdlibTests[] = {
1404 { TT_NEGREP, zBroken_Assert_StdlibBypass0, (regex_t*)NULL },
1405 { TT_EGREP, zBroken_Assert_StdlibSelect0, (regex_t*)NULL }, };
1408 * Fix Command Arguments for Broken_Assert_Stdlib
1410 static const char* apzBroken_Assert_StdlibPatch[] = {
1412 "#ifdef __cplusplus\n\
1413 #include <stdlib.h>\n\
1417 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1419 * Description of Broken_Cabs fix
1421 tSCC zBroken_CabsName[] =
1425 * File name selection pattern
1427 tSCC zBroken_CabsList[] =
1428 "|math.h|architecture/ppc/math.h|architecture/i386/math.h|";
1430 * Machine/OS name selection pattern
1432 #define apzBroken_CabsMachs (const char**)NULL
1435 * content selection pattern - do fix if pattern found
1437 tSCC zBroken_CabsSelect0[] =
1438 "^extern[ \\t]+double[ \\t]+cabs";
1440 #define BROKEN_CABS_TEST_CT 1
1441 static tTestDesc aBroken_CabsTests[] = {
1442 { TT_EGREP, zBroken_CabsSelect0, (regex_t*)NULL }, };
1445 * Fix Command Arguments for Broken_Cabs
1447 static const char* apzBroken_CabsPatch[] = {
1450 "^extern[ \t]+double[ \t]+cabs[ \t]*\\([^\\)]*\\);",
1453 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1455 * Description of Bsd_Stdio_Attrs_Conflict fix
1457 tSCC zBsd_Stdio_Attrs_ConflictName[] =
1458 "bsd_stdio_attrs_conflict";
1461 * File name selection pattern
1463 tSCC zBsd_Stdio_Attrs_ConflictList[] =
1466 * Machine/OS name selection pattern
1468 tSCC* apzBsd_Stdio_Attrs_ConflictMachs[] = {
1471 (const char*)NULL };
1474 * content selection pattern - do fix if pattern found
1476 tSCC zBsd_Stdio_Attrs_ConflictSelect0[] =
1477 "^#define[ \t]*vfscanf[ \t]*__svfscanf[ \t]*$";
1479 #define BSD_STDIO_ATTRS_CONFLICT_TEST_CT 1
1480 static tTestDesc aBsd_Stdio_Attrs_ConflictTests[] = {
1481 { TT_EGREP, zBsd_Stdio_Attrs_ConflictSelect0, (regex_t*)NULL }, };
1484 * Fix Command Arguments for Bsd_Stdio_Attrs_Conflict
1486 static const char* apzBsd_Stdio_Attrs_ConflictPatch[] = {
1488 "#define _BSD_STRING(_BSD_X) _BSD_STRINGX(_BSD_X)\n\
1489 #define _BSD_STRINGX(_BSD_X) #_BSD_X\n\
1490 int vfscanf(FILE *, const char *, __builtin_va_list) __asm__ (_BSD_STRING(__USER_LABEL_PREFIX__) \"__svfscanf\");",
1493 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1495 * Description of Ctrl_Quotes_Def fix
1497 tSCC zCtrl_Quotes_DefName[] =
1501 * File name selection pattern
1503 #define zCtrl_Quotes_DefList (char*)NULL
1505 * Machine/OS name selection pattern
1507 #define apzCtrl_Quotes_DefMachs (const char**)NULL
1510 * content selection pattern - do fix if pattern found
1512 tSCC zCtrl_Quotes_DefSelect0[] =
1513 "define[ \t]+[A-Z0-9_]+CTRL\\([a-zA-Z][,)]";
1515 #define CTRL_QUOTES_DEF_TEST_CT 1
1516 static tTestDesc aCtrl_Quotes_DefTests[] = {
1517 { TT_EGREP, zCtrl_Quotes_DefSelect0, (regex_t*)NULL }, };
1520 * Fix Command Arguments for Ctrl_Quotes_Def
1522 static const char* apzCtrl_Quotes_DefPatch[] = {
1527 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1529 * Description of Ctrl_Quotes_Use fix
1531 tSCC zCtrl_Quotes_UseName[] =
1535 * File name selection pattern
1537 #define zCtrl_Quotes_UseList (char*)NULL
1539 * Machine/OS name selection pattern
1541 #define apzCtrl_Quotes_UseMachs (const char**)NULL
1544 * content selection pattern - do fix if pattern found
1546 tSCC zCtrl_Quotes_UseSelect0[] =
1547 "define[ \t]+[A-Z0-9_]+[ \t]+[A-Z0-9_]+CTRL[ \t]*\\( *[^,']";
1549 #define CTRL_QUOTES_USE_TEST_CT 1
1550 static tTestDesc aCtrl_Quotes_UseTests[] = {
1551 { TT_EGREP, zCtrl_Quotes_UseSelect0, (regex_t*)NULL }, };
1554 * Fix Command Arguments for Ctrl_Quotes_Use
1556 static const char* apzCtrl_Quotes_UsePatch[] = {
1561 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1563 * Description of Cxx_Unready fix
1565 tSCC zCxx_UnreadyName[] =
1569 * File name selection pattern
1571 tSCC zCxx_UnreadyList[] =
1572 "|sys/mman.h|rpc/types.h|";
1574 * Machine/OS name selection pattern
1576 #define apzCxx_UnreadyMachs (const char**)NULL
1579 * content selection pattern - do fix if pattern found
1581 tSCC zCxx_UnreadySelect0[] =
1585 * content bypass pattern - skip fix if pattern found
1587 tSCC zCxx_UnreadyBypass0[] =
1588 "\"C\"|__BEGIN_DECLS";
1590 #define CXX_UNREADY_TEST_CT 2
1591 static tTestDesc aCxx_UnreadyTests[] = {
1592 { TT_NEGREP, zCxx_UnreadyBypass0, (regex_t*)NULL },
1593 { TT_EGREP, zCxx_UnreadySelect0, (regex_t*)NULL }, };
1596 * Fix Command Arguments for Cxx_Unready
1598 static const char* apzCxx_UnreadyPatch[] = {
1600 "#ifdef __cplusplus\n\
1603 "#ifdef __cplusplus\n\
1608 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1610 * Description of Darwin_Private_Extern fix
1612 tSCC zDarwin_Private_ExternName[] =
1613 "darwin_private_extern";
1616 * File name selection pattern
1618 tSCC zDarwin_Private_ExternList[] =
1621 * Machine/OS name selection pattern
1623 tSCC* apzDarwin_Private_ExternMachs[] = {
1625 (const char*)NULL };
1628 * content selection pattern - do fix if pattern found
1630 tSCC zDarwin_Private_ExternSelect0[] =
1631 "__private_extern__ [a-z_]+ _dyld_";
1633 #define DARWIN_PRIVATE_EXTERN_TEST_CT 1
1634 static tTestDesc aDarwin_Private_ExternTests[] = {
1635 { TT_EGREP, zDarwin_Private_ExternSelect0, (regex_t*)NULL }, };
1638 * Fix Command Arguments for Darwin_Private_Extern
1640 static const char* apzDarwin_Private_ExternPatch[] = {
1643 "__private_extern__",
1646 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1648 * Description of Dec_Intern_Asm fix
1650 tSCC zDec_Intern_AsmName[] =
1654 * File name selection pattern
1656 tSCC zDec_Intern_AsmList[] =
1659 * Machine/OS name selection pattern
1661 #define apzDec_Intern_AsmMachs (const char**)NULL
1662 #define DEC_INTERN_ASM_TEST_CT 0
1663 #define aDec_Intern_AsmTests (tTestDesc*)NULL
1666 * Fix Command Arguments for Dec_Intern_Asm
1668 static const char* apzDec_Intern_AsmPatch[] = { "sed",
1669 "-e", "/^[ \t]*float[ \t]*fasm/i\\\n\
1671 "-e", "/^[ \t]*#[ \t]*pragma[ \t]*intrinsic([ \t]*dasm/a\\\n\
1675 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1677 * Description of Djgpp_Wchar_H fix
1679 tSCC zDjgpp_Wchar_HName[] =
1683 * File name selection pattern
1685 #define zDjgpp_Wchar_HList (char*)NULL
1687 * Machine/OS name selection pattern
1689 #define apzDjgpp_Wchar_HMachs (const char**)NULL
1692 * content selection pattern - do fix if pattern found
1694 tSCC zDjgpp_Wchar_HSelect0[] =
1698 * content bypass pattern - skip fix if pattern found
1700 tSCC zDjgpp_Wchar_HBypass0[] =
1703 #define DJGPP_WCHAR_H_TEST_CT 2
1704 static tTestDesc aDjgpp_Wchar_HTests[] = {
1705 { TT_NEGREP, zDjgpp_Wchar_HBypass0, (regex_t*)NULL },
1706 { TT_EGREP, zDjgpp_Wchar_HSelect0, (regex_t*)NULL }, };
1709 * Fix Command Arguments for Djgpp_Wchar_H
1711 static const char* apzDjgpp_Wchar_HPatch[] = {
1714 #include <sys/djtypes.h>",
1715 "#include <stddef.h>",
1718 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1720 * Description of Ecd_Cursor fix
1722 tSCC zEcd_CursorName[] =
1726 * File name selection pattern
1728 tSCC zEcd_CursorList[] =
1729 "|sunwindow/win_lock.h|sunwindow/win_cursor.h|";
1731 * Machine/OS name selection pattern
1733 #define apzEcd_CursorMachs (const char**)NULL
1736 * content selection pattern - do fix if pattern found
1738 tSCC zEcd_CursorSelect0[] =
1741 #define ECD_CURSOR_TEST_CT 1
1742 static tTestDesc aEcd_CursorTests[] = {
1743 { TT_EGREP, zEcd_CursorSelect0, (regex_t*)NULL }, };
1746 * Fix Command Arguments for Ecd_Cursor
1748 static const char* apzEcd_CursorPatch[] = {
1753 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1755 * Description of Exception_Structure fix
1757 tSCC zException_StructureName[] =
1758 "exception_structure";
1761 * File name selection pattern
1763 tSCC zException_StructureList[] =
1766 * Machine/OS name selection pattern
1768 #define apzException_StructureMachs (const char**)NULL
1771 * content selection pattern - do fix if pattern found
1773 tSCC zException_StructureSelect0[] =
1777 * content bypass pattern - skip fix if pattern found
1779 tSCC zException_StructureBypass0[] =
1780 "matherr.*(struct exception|__MATH_EXCEPTION)";
1782 #define EXCEPTION_STRUCTURE_TEST_CT 2
1783 static tTestDesc aException_StructureTests[] = {
1784 { TT_NEGREP, zException_StructureBypass0, (regex_t*)NULL },
1785 { TT_EGREP, zException_StructureSelect0, (regex_t*)NULL }, };
1788 * Fix Command Arguments for Exception_Structure
1790 static const char* apzException_StructurePatch[] = {
1792 "struct exception;\n",
1795 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1797 * Description of Freebsd_Gcc3_Breakage fix
1799 tSCC zFreebsd_Gcc3_BreakageName[] =
1800 "freebsd_gcc3_breakage";
1803 * File name selection pattern
1805 tSCC zFreebsd_Gcc3_BreakageList[] =
1808 * Machine/OS name selection pattern
1810 tSCC* apzFreebsd_Gcc3_BreakageMachs[] = {
1812 (const char*)NULL };
1815 * content selection pattern - do fix if pattern found
1817 tSCC zFreebsd_Gcc3_BreakageSelect0[] =
1818 "^#if __GNUC__ == 2 && __GNUC_MINOR__ >= 7$";
1821 * content bypass pattern - skip fix if pattern found
1823 tSCC zFreebsd_Gcc3_BreakageBypass0[] =
1824 "__GNUC__[ \\t]*([>=]=[ \\t]*[3-9]|>[ \\t]*2)";
1826 #define FREEBSD_GCC3_BREAKAGE_TEST_CT 2
1827 static tTestDesc aFreebsd_Gcc3_BreakageTests[] = {
1828 { TT_NEGREP, zFreebsd_Gcc3_BreakageBypass0, (regex_t*)NULL },
1829 { TT_EGREP, zFreebsd_Gcc3_BreakageSelect0, (regex_t*)NULL }, };
1832 * Fix Command Arguments for Freebsd_Gcc3_Breakage
1834 static const char* apzFreebsd_Gcc3_BreakagePatch[] = {
1836 "%0 || __GNUC__ >= 3",
1839 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1841 * Description of Gnu_Types fix
1843 tSCC zGnu_TypesName[] =
1847 * File name selection pattern
1849 tSCC zGnu_TypesList[] =
1850 "|sys/types.h|stdlib.h|sys/stdtypes.h|stddef.h|memory.h|unistd.h|";
1852 * Machine/OS name selection pattern
1854 #define apzGnu_TypesMachs (const char**)NULL
1857 * content selection pattern - do fix if pattern found
1859 tSCC zGnu_TypesSelect0[] =
1860 "^[ \t]*typedef[ \t]+.*[ \t](ptrdiff|size|wchar)_t;";
1863 * content bypass pattern - skip fix if pattern found
1865 tSCC zGnu_TypesBypass0[] =
1866 "_GCC_(PTRDIFF|SIZE|WCHAR)_T";
1868 #define GNU_TYPES_TEST_CT 2
1869 static tTestDesc aGnu_TypesTests[] = {
1870 { TT_NEGREP, zGnu_TypesBypass0, (regex_t*)NULL },
1871 { TT_EGREP, zGnu_TypesSelect0, (regex_t*)NULL }, };
1874 * Fix Command Arguments for Gnu_Types
1876 static const char* apzGnu_TypesPatch[] = {
1880 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1882 * Description of Hp_Inline fix
1884 tSCC zHp_InlineName[] =
1888 * File name selection pattern
1890 tSCC zHp_InlineList[] =
1891 "|sys/spinlock.h|machine/machparam.h|";
1893 * Machine/OS name selection pattern
1895 #define apzHp_InlineMachs (const char**)NULL
1898 * content selection pattern - do fix if pattern found
1900 tSCC zHp_InlineSelect0[] =
1901 "[ \t]*#[ \t]*include[ \t]+\"\\.\\./machine/";
1903 #define HP_INLINE_TEST_CT 1
1904 static tTestDesc aHp_InlineTests[] = {
1905 { TT_EGREP, zHp_InlineSelect0, (regex_t*)NULL }, };
1908 * Fix Command Arguments for Hp_Inline
1910 static const char* apzHp_InlinePatch[] = {
1913 "([ \t]*#[ \t]*include[ \t]+)\"\\.\\./machine/([a-z]+)\\.h\"",
1916 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1918 * Description of Hp_Sysfile fix
1920 tSCC zHp_SysfileName[] =
1924 * File name selection pattern
1926 tSCC zHp_SysfileList[] =
1929 * Machine/OS name selection pattern
1931 #define apzHp_SysfileMachs (const char**)NULL
1934 * content selection pattern - do fix if pattern found
1936 tSCC zHp_SysfileSelect0[] =
1939 #define HP_SYSFILE_TEST_CT 1
1940 static tTestDesc aHp_SysfileTests[] = {
1941 { TT_EGREP, zHp_SysfileSelect0, (regex_t*)NULL }, };
1944 * Fix Command Arguments for Hp_Sysfile
1946 static const char* apzHp_SysfilePatch[] = {
1948 "(struct file *, ...)",
1952 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1954 * Description of Hpux10_Cpp_Pow_Inline fix
1956 tSCC zHpux10_Cpp_Pow_InlineName[] =
1957 "hpux10_cpp_pow_inline";
1960 * File name selection pattern
1962 tSCC zHpux10_Cpp_Pow_InlineList[] =
1963 "|fixinc-test-limits.h|math.h|";
1965 * Machine/OS name selection pattern
1967 #define apzHpux10_Cpp_Pow_InlineMachs (const char**)NULL
1970 * content selection pattern - do fix if pattern found
1972 tSCC zHpux10_Cpp_Pow_InlineSelect0[] =
1973 "^# +ifdef +__cplusplus\n\
1975 +inline +double +pow\\(double +__d,int +__expon\\) +\\{\n\
1976 [ \t]+return +pow\\(__d,\\(double\\)__expon\\);\n\
1978 +extern +\"C\" +\\{\n\
1982 #define HPUX10_CPP_POW_INLINE_TEST_CT 1
1983 static tTestDesc aHpux10_Cpp_Pow_InlineTests[] = {
1984 { TT_EGREP, zHpux10_Cpp_Pow_InlineSelect0, (regex_t*)NULL }, };
1987 * Fix Command Arguments for Hpux10_Cpp_Pow_Inline
1989 static const char* apzHpux10_Cpp_Pow_InlinePatch[] = {
1994 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1996 * Description of Hpux11_Cpp_Pow_Inline fix
1998 tSCC zHpux11_Cpp_Pow_InlineName[] =
1999 "hpux11_cpp_pow_inline";
2002 * File name selection pattern
2004 tSCC zHpux11_Cpp_Pow_InlineList[] =
2007 * Machine/OS name selection pattern
2009 #define apzHpux11_Cpp_Pow_InlineMachs (const char**)NULL
2012 * content selection pattern - do fix if pattern found
2014 tSCC zHpux11_Cpp_Pow_InlineSelect0[] =
2015 " +inline double pow\\(double d,int expon\\) \\{\n\
2016 +return pow\\(d, \\(double\\)expon\\);\n\
2019 #define HPUX11_CPP_POW_INLINE_TEST_CT 1
2020 static tTestDesc aHpux11_Cpp_Pow_InlineTests[] = {
2021 { TT_EGREP, zHpux11_Cpp_Pow_InlineSelect0, (regex_t*)NULL }, };
2024 * Fix Command Arguments for Hpux11_Cpp_Pow_Inline
2026 static const char* apzHpux11_Cpp_Pow_InlinePatch[] = {
2031 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2033 * Description of Hpux10_Ctype_Declarations1 fix
2035 tSCC zHpux10_Ctype_Declarations1Name[] =
2036 "hpux10_ctype_declarations1";
2039 * File name selection pattern
2041 tSCC zHpux10_Ctype_Declarations1List[] =
2044 * Machine/OS name selection pattern
2046 #define apzHpux10_Ctype_Declarations1Machs (const char**)NULL
2049 * content selection pattern - do fix if pattern found
2051 tSCC zHpux10_Ctype_Declarations1Select0[] =
2052 "^#[ \t]*define _toupper\\(__c\\)[ \t]*__toupper\\(__c\\)";
2055 * content bypass pattern - skip fix if pattern found
2057 tSCC zHpux10_Ctype_Declarations1Bypass0[] =
2058 "^[ \t]*extern[ \t]*int[ \t]*__tolower[ \t]*\\(";
2060 #define HPUX10_CTYPE_DECLARATIONS1_TEST_CT 2
2061 static tTestDesc aHpux10_Ctype_Declarations1Tests[] = {
2062 { TT_NEGREP, zHpux10_Ctype_Declarations1Bypass0, (regex_t*)NULL },
2063 { TT_EGREP, zHpux10_Ctype_Declarations1Select0, (regex_t*)NULL }, };
2066 * Fix Command Arguments for Hpux10_Ctype_Declarations1
2068 static const char* apzHpux10_Ctype_Declarations1Patch[] = {
2070 "#ifdef _PROTOTYPES\n\
2071 extern int __tolower(int);\n\
2072 extern int __toupper(int);\n\
2073 #else /* NOT _PROTOTYPES */\n\
2074 extern int __tolower();\n\
2075 extern int __toupper();\n\
2076 #endif /* _PROTOTYPES */\n\n\
2080 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2082 * Description of Hpux10_Ctype_Declarations2 fix
2084 tSCC zHpux10_Ctype_Declarations2Name[] =
2085 "hpux10_ctype_declarations2";
2088 * File name selection pattern
2090 tSCC zHpux10_Ctype_Declarations2List[] =
2093 * Machine/OS name selection pattern
2095 #define apzHpux10_Ctype_Declarations2Machs (const char**)NULL
2098 * content selection pattern - do fix if pattern found
2100 tSCC zHpux10_Ctype_Declarations2Select0[] =
2101 "^# if defined\\(_SB_CTYPE_MACROS\\) && \\!defined\\(__lint\\)";
2104 * content bypass pattern - skip fix if pattern found
2106 tSCC zHpux10_Ctype_Declarations2Bypass0[] =
2107 "^[ \t]*extern[ \t]*int[ \t]*_isalnum[ \t]*\\(";
2109 #define HPUX10_CTYPE_DECLARATIONS2_TEST_CT 2
2110 static tTestDesc aHpux10_Ctype_Declarations2Tests[] = {
2111 { TT_NEGREP, zHpux10_Ctype_Declarations2Bypass0, (regex_t*)NULL },
2112 { TT_EGREP, zHpux10_Ctype_Declarations2Select0, (regex_t*)NULL }, };
2115 * Fix Command Arguments for Hpux10_Ctype_Declarations2
2117 static const char* apzHpux10_Ctype_Declarations2Patch[] = {
2120 #ifdef _PROTOTYPES\n\
2121 extern int _isalnum(int);\n\
2122 extern int _isalpha(int);\n\
2123 extern int _iscntrl(int);\n\
2124 extern int _isdigit(int);\n\
2125 extern int _isgraph(int);\n\
2126 extern int _islower(int);\n\
2127 extern int _isprint(int);\n\
2128 extern int _ispunct(int);\n\
2129 extern int _isspace(int);\n\
2130 extern int _isupper(int);\n\
2131 extern int _isxdigit(int);\n\
2132 # else /* not _PROTOTYPES */\n\
2133 extern int _isalnum();\n\
2134 extern int _isalpha();\n\
2135 extern int _iscntrl();\n\
2136 extern int _isdigit();\n\
2137 extern int _isgraph();\n\
2138 extern int _islower();\n\
2139 extern int _isprint();\n\
2140 extern int _ispunct();\n\
2141 extern int _isspace();\n\
2142 extern int _isupper();\n\
2143 extern int _isxdigit();\n\
2144 #endif /* _PROTOTYPES */\n",
2147 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2149 * Description of Hpux10_Stdio_Declarations fix
2151 tSCC zHpux10_Stdio_DeclarationsName[] =
2152 "hpux10_stdio_declarations";
2155 * File name selection pattern
2157 tSCC zHpux10_Stdio_DeclarationsList[] =
2160 * Machine/OS name selection pattern
2162 #define apzHpux10_Stdio_DeclarationsMachs (const char**)NULL
2165 * content selection pattern - do fix if pattern found
2167 tSCC zHpux10_Stdio_DeclarationsSelect0[] =
2168 "^#[ \t]*define _iob[ \t]*__iob";
2171 * content bypass pattern - skip fix if pattern found
2173 tSCC zHpux10_Stdio_DeclarationsBypass0[] =
2174 "^[ \t]*extern[ \t]*int[ \t]*vsnprintf[ \t]*\\(";
2176 #define HPUX10_STDIO_DECLARATIONS_TEST_CT 2
2177 static tTestDesc aHpux10_Stdio_DeclarationsTests[] = {
2178 { TT_NEGREP, zHpux10_Stdio_DeclarationsBypass0, (regex_t*)NULL },
2179 { TT_EGREP, zHpux10_Stdio_DeclarationsSelect0, (regex_t*)NULL }, };
2182 * Fix Command Arguments for Hpux10_Stdio_Declarations
2184 static const char* apzHpux10_Stdio_DeclarationsPatch[] = {
2187 # if defined(__STDC__) || defined(__cplusplus)\n\
2188 extern int snprintf(char *, size_t, const char *, ...);\n\
2189 extern int vsnprintf(char *, size_t, const char *, __va_list);\n\
2190 # else /* not __STDC__) || __cplusplus */\n\
2191 extern int snprintf();\n\
2192 extern int vsnprintf();\n\
2193 # endif /* __STDC__) || __cplusplus */\n",
2196 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2198 * Description of Hpux11_Abs fix
2200 tSCC zHpux11_AbsName[] =
2204 * File name selection pattern
2206 tSCC zHpux11_AbsList[] =
2209 * Machine/OS name selection pattern
2211 tSCC* apzHpux11_AbsMachs[] = {
2213 (const char*)NULL };
2216 * content selection pattern - do fix if pattern found
2218 tSCC zHpux11_AbsSelect0[] =
2219 "ifndef _MATH_INCLUDED";
2221 #define HPUX11_ABS_TEST_CT 1
2222 static tTestDesc aHpux11_AbsTests[] = {
2223 { TT_EGREP, zHpux11_AbsSelect0, (regex_t*)NULL }, };
2226 * Fix Command Arguments for Hpux11_Abs
2228 static const char* apzHpux11_AbsPatch[] = {
2230 "if !defined(_MATH_INCLUDED) || defined(__GNUG__)",
2233 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2235 * Description of Hpux11_Fabsf fix
2237 tSCC zHpux11_FabsfName[] =
2241 * File name selection pattern
2243 tSCC zHpux11_FabsfList[] =
2246 * Machine/OS name selection pattern
2248 #define apzHpux11_FabsfMachs (const char**)NULL
2251 * content selection pattern - do fix if pattern found
2253 tSCC zHpux11_FabsfSelect0[] =
2254 "^[ \t]*#[ \t]*define[ \t]+fabsf\\(.*";
2257 * content bypass pattern - skip fix if pattern found
2259 tSCC zHpux11_FabsfBypass0[] =
2262 #define HPUX11_FABSF_TEST_CT 2
2263 static tTestDesc aHpux11_FabsfTests[] = {
2264 { TT_NEGREP, zHpux11_FabsfBypass0, (regex_t*)NULL },
2265 { TT_EGREP, zHpux11_FabsfSelect0, (regex_t*)NULL }, };
2268 * Fix Command Arguments for Hpux11_Fabsf
2270 static const char* apzHpux11_FabsfPatch[] = {
2272 "#ifndef __cplusplus\n\
2277 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2279 * Description of Hpux11_Size_T fix
2281 tSCC zHpux11_Size_TName[] =
2285 * File name selection pattern
2287 #define zHpux11_Size_TList (char*)NULL
2289 * Machine/OS name selection pattern
2291 tSCC* apzHpux11_Size_TMachs[] = {
2293 (const char*)NULL };
2296 * content selection pattern - do fix if pattern found
2298 tSCC zHpux11_Size_TSelect0[] =
2301 #define HPUX11_SIZE_T_TEST_CT 1
2302 static tTestDesc aHpux11_Size_TTests[] = {
2303 { TT_EGREP, zHpux11_Size_TSelect0, (regex_t*)NULL }, };
2306 * Fix Command Arguments for Hpux11_Size_T
2308 static const char* apzHpux11_Size_TPatch[] = {
2313 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2315 * Description of Hpux11_Snprintf fix
2317 tSCC zHpux11_SnprintfName[] =
2321 * File name selection pattern
2323 tSCC zHpux11_SnprintfList[] =
2326 * Machine/OS name selection pattern
2328 #define apzHpux11_SnprintfMachs (const char**)NULL
2331 * content selection pattern - do fix if pattern found
2333 tSCC zHpux11_SnprintfSelect0[] =
2334 "(extern int snprintf *\\(char *\\*, *(|__|_hpux_)size_t,) *(char *\\*, *\\.\\.\\.\\);)";
2336 #define HPUX11_SNPRINTF_TEST_CT 1
2337 static tTestDesc aHpux11_SnprintfTests[] = {
2338 { TT_EGREP, zHpux11_SnprintfSelect0, (regex_t*)NULL }, };
2341 * Fix Command Arguments for Hpux11_Snprintf
2343 static const char* apzHpux11_SnprintfPatch[] = {
2348 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2350 * Description of Hpux11_Uint32_C fix
2352 tSCC zHpux11_Uint32_CName[] =
2356 * File name selection pattern
2358 tSCC zHpux11_Uint32_CList[] =
2361 * Machine/OS name selection pattern
2363 #define apzHpux11_Uint32_CMachs (const char**)NULL
2366 * content selection pattern - do fix if pattern found
2368 tSCC zHpux11_Uint32_CSelect0[] =
2369 "^#define UINT32_C\\(__c\\)[ \t]*__CONCAT__\\(__CONCAT_U__\\(__c\\),l\\)";
2371 #define HPUX11_UINT32_C_TEST_CT 1
2372 static tTestDesc aHpux11_Uint32_CTests[] = {
2373 { TT_EGREP, zHpux11_Uint32_CSelect0, (regex_t*)NULL }, };
2376 * Fix Command Arguments for Hpux11_Uint32_C
2378 static const char* apzHpux11_Uint32_CPatch[] = {
2380 "#define UINT32_C(__c) __CONCAT__(__c,ul)",
2383 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2385 * Description of Hpux11_Vsnprintf fix
2387 tSCC zHpux11_VsnprintfName[] =
2391 * File name selection pattern
2393 tSCC zHpux11_VsnprintfList[] =
2396 * Machine/OS name selection pattern
2398 #define apzHpux11_VsnprintfMachs (const char**)NULL
2401 * content selection pattern - do fix if pattern found
2403 tSCC zHpux11_VsnprintfSelect0[] =
2404 "(extern int vsnprintf\\(char \\*, _[hpux]*_size_t, const char \\*,) __va__list\\);";
2406 #define HPUX11_VSNPRINTF_TEST_CT 1
2407 static tTestDesc aHpux11_VsnprintfTests[] = {
2408 { TT_EGREP, zHpux11_VsnprintfSelect0, (regex_t*)NULL }, };
2411 * Fix Command Arguments for Hpux11_Vsnprintf
2413 static const char* apzHpux11_VsnprintfPatch[] = {
2418 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2420 * Description of Hpux8_Bogus_Inlines fix
2422 tSCC zHpux8_Bogus_InlinesName[] =
2423 "hpux8_bogus_inlines";
2426 * File name selection pattern
2428 tSCC zHpux8_Bogus_InlinesList[] =
2431 * Machine/OS name selection pattern
2433 #define apzHpux8_Bogus_InlinesMachs (const char**)NULL
2436 * content selection pattern - do fix if pattern found
2438 tSCC zHpux8_Bogus_InlinesSelect0[] =
2441 #define HPUX8_BOGUS_INLINES_TEST_CT 1
2442 static tTestDesc aHpux8_Bogus_InlinesTests[] = {
2443 { TT_EGREP, zHpux8_Bogus_InlinesSelect0, (regex_t*)NULL }, };
2446 * Fix Command Arguments for Hpux8_Bogus_Inlines
2448 static const char* apzHpux8_Bogus_InlinesPatch[] = { "sed",
2449 "-e", "s@inline int abs(int [a-z][a-z]*) {.*}@extern \"C\" int abs(int);@",
2450 "-e", "s@inline double abs(double [a-z][a-z]*) {.*}@@",
2451 "-e", "s@inline int sqr(int [a-z][a-z]*) {.*}@@",
2452 "-e", "s@inline double sqr(double [a-z][a-z]*) {.*}@@",
2455 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2457 * Description of Hpux_Ctype_Macros fix
2459 tSCC zHpux_Ctype_MacrosName[] =
2460 "hpux_ctype_macros";
2463 * File name selection pattern
2465 tSCC zHpux_Ctype_MacrosList[] =
2468 * Machine/OS name selection pattern
2470 #define apzHpux_Ctype_MacrosMachs (const char**)NULL
2473 * content selection pattern - do fix if pattern found
2475 tSCC zHpux_Ctype_MacrosSelect0[] =
2476 "((: |\\()__SB_masks \\? )(__SB_masks\\[__(alnum|c)\\] & _IS)";
2478 #define HPUX_CTYPE_MACROS_TEST_CT 1
2479 static tTestDesc aHpux_Ctype_MacrosTests[] = {
2480 { TT_EGREP, zHpux_Ctype_MacrosSelect0, (regex_t*)NULL }, };
2483 * Fix Command Arguments for Hpux_Ctype_Macros
2485 static const char* apzHpux_Ctype_MacrosPatch[] = {
2490 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2492 * Description of Hpux_Long_Double fix
2494 tSCC zHpux_Long_DoubleName[] =
2498 * File name selection pattern
2500 tSCC zHpux_Long_DoubleList[] =
2503 * Machine/OS name selection pattern
2505 #define apzHpux_Long_DoubleMachs (const char**)NULL
2508 * content selection pattern - do fix if pattern found
2510 tSCC zHpux_Long_DoubleSelect0[] =
2511 "extern[ \t]long_double[ \t]strtold";
2514 * content bypass pattern - skip fix if pattern found
2516 tSCC zHpux_Long_DoubleBypass0[] =
2519 #define HPUX_LONG_DOUBLE_TEST_CT 2
2520 static tTestDesc aHpux_Long_DoubleTests[] = {
2521 { TT_NEGREP, zHpux_Long_DoubleBypass0, (regex_t*)NULL },
2522 { TT_EGREP, zHpux_Long_DoubleSelect0, (regex_t*)NULL }, };
2525 * Fix Command Arguments for Hpux_Long_Double
2527 static const char* apzHpux_Long_DoublePatch[] = { "sed",
2528 "-e", "/^#[ \t]*ifndef _LONG_DOUBLE/,/\\/\\* _LONG_DOUBLE \\*\\//D",
2529 "-e", "s/long_double/long double/g",
2532 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2534 * Description of Hpux_Maxint fix
2536 tSCC zHpux_MaxintName[] =
2540 * File name selection pattern
2542 tSCC zHpux_MaxintList[] =
2543 "|sys/param.h|values.h|";
2545 * Machine/OS name selection pattern
2547 #define apzHpux_MaxintMachs (const char**)NULL
2550 * content selection pattern - do fix if pattern found
2552 tSCC zHpux_MaxintSelect0[] =
2553 "^#[ \t]*define[ \t]+MAXINT[ \t]";
2556 * content bypass pattern - skip fix if pattern found
2558 tSCC zHpux_MaxintBypass0[] =
2559 "^#[ \t]*ifndef[ \t]+MAXINT";
2562 * perform the 'test' shell command - do fix on success
2564 tSCC zHpux_MaxintTest0[] =
2565 "-n \"`egrep '#[ \t]*define[ \t]+MAXINT[ \t]' sys/param.h`\"";
2567 #define HPUX_MAXINT_TEST_CT 3
2568 static tTestDesc aHpux_MaxintTests[] = {
2569 { TT_TEST, zHpux_MaxintTest0, 0 /* unused */ },
2570 { TT_NEGREP, zHpux_MaxintBypass0, (regex_t*)NULL },
2571 { TT_EGREP, zHpux_MaxintSelect0, (regex_t*)NULL }, };
2574 * Fix Command Arguments for Hpux_Maxint
2576 static const char* apzHpux_MaxintPatch[] = {
2581 "^#[ \t]*define[ \t]+MAXINT[ \t].*",
2584 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2586 * Description of Hpux_Systime fix
2588 tSCC zHpux_SystimeName[] =
2592 * File name selection pattern
2594 tSCC zHpux_SystimeList[] =
2597 * Machine/OS name selection pattern
2599 #define apzHpux_SystimeMachs (const char**)NULL
2602 * content selection pattern - do fix if pattern found
2604 tSCC zHpux_SystimeSelect0[] =
2605 "^extern struct sigevent;";
2607 #define HPUX_SYSTIME_TEST_CT 1
2608 static tTestDesc aHpux_SystimeTests[] = {
2609 { TT_EGREP, zHpux_SystimeSelect0, (regex_t*)NULL }, };
2612 * Fix Command Arguments for Hpux_Systime
2614 static const char* apzHpux_SystimePatch[] = {
2619 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2621 * Description of Int_Abort_Free_And_Exit fix
2623 tSCC zInt_Abort_Free_And_ExitName[] =
2624 "int_abort_free_and_exit";
2627 * File name selection pattern
2629 tSCC zInt_Abort_Free_And_ExitList[] =
2632 * Machine/OS name selection pattern
2634 #define apzInt_Abort_Free_And_ExitMachs (const char**)NULL
2637 * content selection pattern - do fix if pattern found
2639 tSCC zInt_Abort_Free_And_ExitSelect0[] =
2640 "int[ \t]+(abort|free|exit)[ \t]*\\(";
2642 #define INT_ABORT_FREE_AND_EXIT_TEST_CT 1
2643 static tTestDesc aInt_Abort_Free_And_ExitTests[] = {
2644 { TT_EGREP, zInt_Abort_Free_And_ExitSelect0, (regex_t*)NULL }, };
2647 * Fix Command Arguments for Int_Abort_Free_And_Exit
2649 static const char* apzInt_Abort_Free_And_ExitPatch[] = {
2654 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2656 * Description of Io_Quotes_Def fix
2658 tSCC zIo_Quotes_DefName[] =
2662 * File name selection pattern
2664 #define zIo_Quotes_DefList (char*)NULL
2666 * Machine/OS name selection pattern
2668 #define apzIo_Quotes_DefMachs (const char**)NULL
2671 * content selection pattern - do fix if pattern found
2673 tSCC zIo_Quotes_DefSelect0[] =
2674 "define[ \t]+[A-Z0-9_]+IO[A-Z]*\\([a-zA-Z][,)]";
2676 #define IO_QUOTES_DEF_TEST_CT 1
2677 static tTestDesc aIo_Quotes_DefTests[] = {
2678 { TT_EGREP, zIo_Quotes_DefSelect0, (regex_t*)NULL }, };
2681 * Fix Command Arguments for Io_Quotes_Def
2683 static const char* apzIo_Quotes_DefPatch[] = {
2688 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2690 * Description of Io_Quotes_Use fix
2692 tSCC zIo_Quotes_UseName[] =
2696 * File name selection pattern
2698 #define zIo_Quotes_UseList (char*)NULL
2700 * Machine/OS name selection pattern
2702 #define apzIo_Quotes_UseMachs (const char**)NULL
2705 * content selection pattern - do fix if pattern found
2707 tSCC zIo_Quotes_UseSelect0[] =
2708 "define[ \t]+[A-Z0-9_]+[ \t]+[A-Z0-9_]+IO[A-Z]*[ \t]*\\( *[^,']";
2710 #define IO_QUOTES_USE_TEST_CT 1
2711 static tTestDesc aIo_Quotes_UseTests[] = {
2712 { TT_EGREP, zIo_Quotes_UseSelect0, (regex_t*)NULL }, };
2715 * Fix Command Arguments for Io_Quotes_Use
2717 static const char* apzIo_Quotes_UsePatch[] = {
2722 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2724 * Description of Ip_Missing_Semi fix
2726 tSCC zIp_Missing_SemiName[] =
2730 * File name selection pattern
2732 tSCC zIp_Missing_SemiList[] =
2735 * Machine/OS name selection pattern
2737 #define apzIp_Missing_SemiMachs (const char**)NULL
2740 * content selection pattern - do fix if pattern found
2742 tSCC zIp_Missing_SemiSelect0[] =
2745 #define IP_MISSING_SEMI_TEST_CT 1
2746 static tTestDesc aIp_Missing_SemiTests[] = {
2747 { TT_EGREP, zIp_Missing_SemiSelect0, (regex_t*)NULL }, };
2750 * Fix Command Arguments for Ip_Missing_Semi
2752 static const char* apzIp_Missing_SemiPatch[] = { "sed",
2753 "-e", "/^struct/,/^};/s/}$/};/",
2756 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2758 * Description of Irix___Restrict fix
2760 tSCC zIrix___RestrictName[] =
2764 * File name selection pattern
2766 tSCC zIrix___RestrictList[] =
2767 "|internal/sgimacros.h|";
2769 * Machine/OS name selection pattern
2771 tSCC* apzIrix___RestrictMachs[] = {
2773 (const char*)NULL };
2776 * content selection pattern - do fix if pattern found
2778 tSCC zIrix___RestrictSelect0[] =
2780 )(#[ \t]*define __restrict restrict)";
2782 #define IRIX___RESTRICT_TEST_CT 1
2783 static tTestDesc aIrix___RestrictTests[] = {
2784 { TT_EGREP, zIrix___RestrictSelect0, (regex_t*)NULL }, };
2787 * Fix Command Arguments for Irix___Restrict
2789 static const char* apzIrix___RestrictPatch[] = {
2791 "%1# ifndef __cplusplus\n\
2796 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2798 * Description of Irix_Asm_Apostrophe fix
2800 tSCC zIrix_Asm_ApostropheName[] =
2801 "irix_asm_apostrophe";
2804 * File name selection pattern
2806 tSCC zIrix_Asm_ApostropheList[] =
2809 * Machine/OS name selection pattern
2811 #define apzIrix_Asm_ApostropheMachs (const char**)NULL
2814 * content selection pattern - do fix if pattern found
2816 tSCC zIrix_Asm_ApostropheSelect0[] =
2817 "^[ \t]*#.*[Ww]e're";
2819 #define IRIX_ASM_APOSTROPHE_TEST_CT 1
2820 static tTestDesc aIrix_Asm_ApostropheTests[] = {
2821 { TT_EGREP, zIrix_Asm_ApostropheSelect0, (regex_t*)NULL }, };
2824 * Fix Command Arguments for Irix_Asm_Apostrophe
2826 static const char* apzIrix_Asm_ApostrophePatch[] = {
2829 "^([ \t]*#.*[Ww]e)'re",
2832 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2834 * Description of Irix_Limits_Const fix
2836 tSCC zIrix_Limits_ConstName[] =
2837 "irix_limits_const";
2840 * File name selection pattern
2842 tSCC zIrix_Limits_ConstList[] =
2843 "|fixinc-test-limits.h|limits.h|";
2845 * Machine/OS name selection pattern
2847 #define apzIrix_Limits_ConstMachs (const char**)NULL
2850 * content selection pattern - do fix if pattern found
2852 tSCC zIrix_Limits_ConstSelect0[] =
2855 #define IRIX_LIMITS_CONST_TEST_CT 1
2856 static tTestDesc aIrix_Limits_ConstTests[] = {
2857 { TT_EGREP, zIrix_Limits_ConstSelect0, (regex_t*)NULL }, };
2860 * Fix Command Arguments for Irix_Limits_Const
2862 static const char* apzIrix_Limits_ConstPatch[] = {
2867 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2869 * Description of Irix_Socklen_T fix
2871 tSCC zIrix_Socklen_TName[] =
2875 * File name selection pattern
2877 tSCC zIrix_Socklen_TList[] =
2880 * Machine/OS name selection pattern
2882 tSCC* apzIrix_Socklen_TMachs[] = {
2884 (const char*)NULL };
2887 * content selection pattern - do fix if pattern found
2889 tSCC zIrix_Socklen_TSelect0[] =
2890 "(#define _SOCKLEN_T\n\
2891 )(typedef u_int32_t socklen_t;)";
2893 #define IRIX_SOCKLEN_T_TEST_CT 1
2894 static tTestDesc aIrix_Socklen_TTests[] = {
2895 { TT_EGREP, zIrix_Socklen_TSelect0, (regex_t*)NULL }, };
2898 * Fix Command Arguments for Irix_Socklen_T
2900 static const char* apzIrix_Socklen_TPatch[] = {
2902 "%1#if _NO_XOPEN4 && _NO_XOPEN5\n\
2903 typedef int socklen_t;\n\
2906 #endif /* _NO_XOPEN4 && _NO_XOPEN5 */",
2909 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2911 * Description of Irix_Stdio_Va_List fix
2913 tSCC zIrix_Stdio_Va_ListName[] =
2914 "irix_stdio_va_list";
2917 * File name selection pattern
2919 tSCC zIrix_Stdio_Va_ListList[] =
2920 "|stdio.h|internal/stdio_core.h|";
2922 * Machine/OS name selection pattern
2924 #define apzIrix_Stdio_Va_ListMachs (const char**)NULL
2927 * content selection pattern - do fix if pattern found
2929 tSCC zIrix_Stdio_Va_ListSelect0[] =
2930 "/\\* va_list \\*/ char \\*";
2932 #define IRIX_STDIO_VA_LIST_TEST_CT 1
2933 static tTestDesc aIrix_Stdio_Va_ListTests[] = {
2934 { TT_EGREP, zIrix_Stdio_Va_ListSelect0, (regex_t*)NULL }, };
2937 * Fix Command Arguments for Irix_Stdio_Va_List
2939 static const char* apzIrix_Stdio_Va_ListPatch[] = {
2944 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2946 * Description of Irix_Wcsftime fix
2948 tSCC zIrix_WcsftimeName[] =
2952 * File name selection pattern
2954 tSCC zIrix_WcsftimeList[] =
2955 "|internal/wchar_core.h|";
2957 * Machine/OS name selection pattern
2959 tSCC* apzIrix_WcsftimeMachs[] = {
2961 (const char*)NULL };
2964 * content selection pattern - do fix if pattern found
2966 tSCC zIrix_WcsftimeSelect0[] =
2968 (extern size_t[ \t]+wcsftime.*const char *.*)";
2970 #define IRIX_WCSFTIME_TEST_CT 1
2971 static tTestDesc aIrix_WcsftimeTests[] = {
2972 { TT_EGREP, zIrix_WcsftimeSelect0, (regex_t*)NULL }, };
2975 * Fix Command Arguments for Irix_Wcsftime
2977 static const char* apzIrix_WcsftimePatch[] = {
2979 "#if _NO_XOPEN5 && !defined(__c99)\n\
2983 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2985 * Description of Isc_Fmod fix
2987 tSCC zIsc_FmodName[] =
2991 * File name selection pattern
2993 tSCC zIsc_FmodList[] =
2996 * Machine/OS name selection pattern
2998 #define apzIsc_FmodMachs (const char**)NULL
3001 * content selection pattern - do fix if pattern found
3003 tSCC zIsc_FmodSelect0[] =
3006 #define ISC_FMOD_TEST_CT 1
3007 static tTestDesc aIsc_FmodTests[] = {
3008 { TT_EGREP, zIsc_FmodSelect0, (regex_t*)NULL }, };
3011 * Fix Command Arguments for Isc_Fmod
3013 static const char* apzIsc_FmodPatch[] = {
3015 "fmod(double, double)",
3018 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3020 * Description of Isc_Omits_With_Stdc fix
3022 tSCC zIsc_Omits_With_StdcName[] =
3023 "isc_omits_with_stdc";
3026 * File name selection pattern
3028 tSCC zIsc_Omits_With_StdcList[] =
3029 "|stdio.h|math.h|ctype.h|sys/limits.h|sys/fcntl.h|sys/dirent.h|";
3031 * Machine/OS name selection pattern
3033 #define apzIsc_Omits_With_StdcMachs (const char**)NULL
3036 * content selection pattern - do fix if pattern found
3038 tSCC zIsc_Omits_With_StdcSelect0[] =
3039 "!defined\\(__STDC__\\) && !defined\\(_POSIX_SOURCE\\)";
3041 #define ISC_OMITS_WITH_STDC_TEST_CT 1
3042 static tTestDesc aIsc_Omits_With_StdcTests[] = {
3043 { TT_EGREP, zIsc_Omits_With_StdcSelect0, (regex_t*)NULL }, };
3046 * Fix Command Arguments for Isc_Omits_With_Stdc
3048 static const char* apzIsc_Omits_With_StdcPatch[] = {
3050 "!defined(_POSIX_SOURCE)",
3053 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3055 * Description of Kandr_Concat fix
3057 tSCC zKandr_ConcatName[] =
3061 * File name selection pattern
3063 tSCC zKandr_ConcatList[] =
3064 "|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|";
3066 * Machine/OS name selection pattern
3068 #define apzKandr_ConcatMachs (const char**)NULL
3071 * content selection pattern - do fix if pattern found
3073 tSCC zKandr_ConcatSelect0[] =
3076 #define KANDR_CONCAT_TEST_CT 1
3077 static tTestDesc aKandr_ConcatTests[] = {
3078 { TT_EGREP, zKandr_ConcatSelect0, (regex_t*)NULL }, };
3081 * Fix Command Arguments for Kandr_Concat
3083 static const char* apzKandr_ConcatPatch[] = {
3088 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3090 * Description of Libc1_G_Va_List fix
3092 tSCC zLibc1_G_Va_ListName[] =
3096 * File name selection pattern
3098 tSCC zLibc1_G_Va_ListList[] =
3101 * Machine/OS name selection pattern
3103 tSCC* apzLibc1_G_Va_ListMachs[] = {
3105 (const char*)NULL };
3108 * content selection pattern - do fix if pattern found
3110 tSCC zLibc1_G_Va_ListSelect0[] =
3111 "typedef void \\* _G_va_list;";
3113 #define LIBC1_G_VA_LIST_TEST_CT 1
3114 static tTestDesc aLibc1_G_Va_ListTests[] = {
3115 { TT_EGREP, zLibc1_G_Va_ListSelect0, (regex_t*)NULL }, };
3118 * Fix Command Arguments for Libc1_G_Va_List
3120 static const char* apzLibc1_G_Va_ListPatch[] = {
3122 "typedef __builtin_va_list _G_va_list;",
3125 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3127 * Description of Libc1_Ifdefd_Memx fix
3129 tSCC zLibc1_Ifdefd_MemxName[] =
3130 "libc1_ifdefd_memx";
3133 * File name selection pattern
3135 tSCC zLibc1_Ifdefd_MemxList[] =
3136 "|testing.h|string.h|";
3138 * Machine/OS name selection pattern
3140 #define apzLibc1_Ifdefd_MemxMachs (const char**)NULL
3143 * content selection pattern - do fix if pattern found
3145 tSCC zLibc1_Ifdefd_MemxSelect0[] =
3146 "' is a built-in function for gcc 2\\.x\\. \\*/";
3149 * content bypass pattern - skip fix if pattern found
3151 tSCC zLibc1_Ifdefd_MemxBypass0[] =
3154 #define LIBC1_IFDEFD_MEMX_TEST_CT 2
3155 static tTestDesc aLibc1_Ifdefd_MemxTests[] = {
3156 { TT_NEGREP, zLibc1_Ifdefd_MemxBypass0, (regex_t*)NULL },
3157 { TT_EGREP, zLibc1_Ifdefd_MemxSelect0, (regex_t*)NULL }, };
3160 * Fix Command Arguments for Libc1_Ifdefd_Memx
3162 static const char* apzLibc1_Ifdefd_MemxPatch[] = {
3165 "/\\* `mem...' is a built-in function for gcc 2\\.x\\. \\*/\n\
3166 #if defined\\(__STDC__\\) && __GNUC__ < 2\n\
3168 extern [a-z_]+ mem.*(\n\
3173 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3175 * Description of Limits_Ifndefs fix
3177 tSCC zLimits_IfndefsName[] =
3181 * File name selection pattern
3183 tSCC zLimits_IfndefsList[] =
3184 "|sys/limits.h|limits.h|";
3186 * Machine/OS name selection pattern
3188 #define apzLimits_IfndefsMachs (const char**)NULL
3191 * content selection pattern - do fix if pattern found
3193 tSCC zLimits_IfndefsSelect0[] =
3194 "^[ \t]*#[ \t]*define[ \t]+((FLT|DBL)_(MIN|MAX|DIG))[ \t].*";
3197 * content bypass pattern - skip fix if pattern found
3199 tSCC zLimits_IfndefsBypass0[] =
3200 "ifndef[ \t]+FLT_(MIN|MAX)";
3202 #define LIMITS_IFNDEFS_TEST_CT 2
3203 static tTestDesc aLimits_IfndefsTests[] = {
3204 { TT_NEGREP, zLimits_IfndefsBypass0, (regex_t*)NULL },
3205 { TT_EGREP, zLimits_IfndefsSelect0, (regex_t*)NULL }, };
3208 * Fix Command Arguments for Limits_Ifndefs
3210 static const char* apzLimits_IfndefsPatch[] = {
3217 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3219 * Description of Lynx_Void_Int fix
3221 tSCC zLynx_Void_IntName[] =
3225 * File name selection pattern
3227 tSCC zLynx_Void_IntList[] =
3230 * Machine/OS name selection pattern
3232 #define apzLynx_Void_IntMachs (const char**)NULL
3235 * content selection pattern - do fix if pattern found
3237 tSCC zLynx_Void_IntSelect0[] =
3238 "#[ \t]*define[ \t]+void[ \t]+int[ \t]*";
3240 #define LYNX_VOID_INT_TEST_CT 1
3241 static tTestDesc aLynx_Void_IntTests[] = {
3242 { TT_EGREP, zLynx_Void_IntSelect0, (regex_t*)NULL }, };
3245 * Fix Command Arguments for Lynx_Void_Int
3247 static const char* apzLynx_Void_IntPatch[] = {
3252 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3254 * Description of Lynxos_Fcntl_Proto fix
3256 tSCC zLynxos_Fcntl_ProtoName[] =
3257 "lynxos_fcntl_proto";
3260 * File name selection pattern
3262 tSCC zLynxos_Fcntl_ProtoList[] =
3265 * Machine/OS name selection pattern
3267 #define apzLynxos_Fcntl_ProtoMachs (const char**)NULL
3270 * content selection pattern - do fix if pattern found
3272 tSCC zLynxos_Fcntl_ProtoSelect0[] =
3273 "fcntl[ \t]*\\(int, int, int\\)";
3275 #define LYNXOS_FCNTL_PROTO_TEST_CT 1
3276 static tTestDesc aLynxos_Fcntl_ProtoTests[] = {
3277 { TT_EGREP, zLynxos_Fcntl_ProtoSelect0, (regex_t*)NULL }, };
3280 * Fix Command Arguments for Lynxos_Fcntl_Proto
3282 static const char* apzLynxos_Fcntl_ProtoPatch[] = {
3285 "(fcntl[ \t]*\\(int, int, )int\\)",
3288 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3290 * Description of Machine_Ansi_H_Va_List fix
3292 tSCC zMachine_Ansi_H_Va_ListName[] =
3293 "machine_ansi_h_va_list";
3296 * File name selection pattern
3298 #define zMachine_Ansi_H_Va_ListList (char*)NULL
3300 * Machine/OS name selection pattern
3302 #define apzMachine_Ansi_H_Va_ListMachs (const char**)NULL
3305 * content selection pattern - do fix if pattern found
3307 tSCC zMachine_Ansi_H_Va_ListSelect0[] =
3308 "define[ \t]+_BSD_VA_LIST_[ \t]";
3311 * content bypass pattern - skip fix if pattern found
3313 tSCC zMachine_Ansi_H_Va_ListBypass0[] =
3314 "__builtin_va_list";
3316 #define MACHINE_ANSI_H_VA_LIST_TEST_CT 2
3317 static tTestDesc aMachine_Ansi_H_Va_ListTests[] = {
3318 { TT_NEGREP, zMachine_Ansi_H_Va_ListBypass0, (regex_t*)NULL },
3319 { TT_EGREP, zMachine_Ansi_H_Va_ListSelect0, (regex_t*)NULL }, };
3322 * Fix Command Arguments for Machine_Ansi_H_Va_List
3324 static const char* apzMachine_Ansi_H_Va_ListPatch[] = {
3326 "%1__builtin_va_list",
3327 "(define[ \t]+_BSD_VA_LIST_[ \t]+).*",
3330 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3332 * Description of Machine_Name fix
3334 tSCC zMachine_NameName[] =
3338 * File name selection pattern
3340 #define zMachine_NameList (char*)NULL
3342 * Machine/OS name selection pattern
3344 #define apzMachine_NameMachs (const char**)NULL
3347 * perform the C function call test
3349 tSCC zMachine_NameFTst0[] = "machine_name";
3351 #define MACHINE_NAME_TEST_CT 1
3352 static tTestDesc aMachine_NameTests[] = {
3353 { TT_FUNCTION, zMachine_NameFTst0, 0 /* unused */ }, };
3356 * Fix Command Arguments for Machine_Name
3358 static const char* apzMachine_NamePatch[] = {
3362 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3364 * Description of Math_Exception fix
3366 tSCC zMath_ExceptionName[] =
3370 * File name selection pattern
3372 tSCC zMath_ExceptionList[] =
3375 * Machine/OS name selection pattern
3377 #define apzMath_ExceptionMachs (const char**)NULL
3380 * content selection pattern - do fix if pattern found
3382 tSCC zMath_ExceptionSelect0[] =
3386 * content bypass pattern - skip fix if pattern found
3388 tSCC zMath_ExceptionBypass0[] =
3389 "We have a problem when using C\\+\\+";
3391 #define MATH_EXCEPTION_TEST_CT 2
3392 static tTestDesc aMath_ExceptionTests[] = {
3393 { TT_NEGREP, zMath_ExceptionBypass0, (regex_t*)NULL },
3394 { TT_EGREP, zMath_ExceptionSelect0, (regex_t*)NULL }, };
3397 * Fix Command Arguments for Math_Exception
3399 static const char* apzMath_ExceptionPatch[] = {
3401 "#ifdef __cplusplus\n\
3402 #define exception __math_exception\n\
3404 "#ifdef __cplusplus\n\
3409 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3411 * Description of Math_Huge_Val_From_Dbl_Max fix
3413 tSCC zMath_Huge_Val_From_Dbl_MaxName[] =
3414 "math_huge_val_from_dbl_max";
3417 * File name selection pattern
3419 tSCC zMath_Huge_Val_From_Dbl_MaxList[] =
3422 * Machine/OS name selection pattern
3424 #define apzMath_Huge_Val_From_Dbl_MaxMachs (const char**)NULL
3427 * content selection pattern - do fix if pattern found
3429 tSCC zMath_Huge_Val_From_Dbl_MaxSelect0[] =
3430 "define[ \t]+HUGE_VAL[ \t]+DBL_MAX";
3433 * content bypass pattern - skip fix if pattern found
3435 tSCC zMath_Huge_Val_From_Dbl_MaxBypass0[] =
3436 "define[ \t]+DBL_MAX";
3438 #define MATH_HUGE_VAL_FROM_DBL_MAX_TEST_CT 2
3439 static tTestDesc aMath_Huge_Val_From_Dbl_MaxTests[] = {
3440 { TT_NEGREP, zMath_Huge_Val_From_Dbl_MaxBypass0, (regex_t*)NULL },
3441 { TT_EGREP, zMath_Huge_Val_From_Dbl_MaxSelect0, (regex_t*)NULL }, };
3444 * Fix Command Arguments for Math_Huge_Val_From_Dbl_Max
3446 static const char* apzMath_Huge_Val_From_Dbl_MaxPatch[] = { "sh", "-c",
3447 "\tdbl_max_def=`egrep 'define[ \t]+DBL_MAX[ \t]+.*' float.h | sed 's/.*DBL_MAX[ \t]*//' 2>/dev/null`\n\n\
3448 \tif ( test -n \"${dbl_max_def}\" ) > /dev/null 2>&1\n\
3449 \tthen sed -e '/define[ \t]*HUGE_VAL[ \t]*DBL_MAX/s@DBL_MAX@'\"$dbl_max_def@\"\n\
3454 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3456 * Description of Math_Huge_Val_Ifndef fix
3458 tSCC zMath_Huge_Val_IfndefName[] =
3459 "math_huge_val_ifndef";
3462 * File name selection pattern
3464 tSCC zMath_Huge_Val_IfndefList[] =
3465 "|math.h|math/math.h|";
3467 * Machine/OS name selection pattern
3469 #define apzMath_Huge_Val_IfndefMachs (const char**)NULL
3472 * content selection pattern - do fix if pattern found
3474 tSCC zMath_Huge_Val_IfndefSelect0[] =
3475 "define[ \t]+HUGE_VAL";
3477 #define MATH_HUGE_VAL_IFNDEF_TEST_CT 1
3478 static tTestDesc aMath_Huge_Val_IfndefTests[] = {
3479 { TT_EGREP, zMath_Huge_Val_IfndefSelect0, (regex_t*)NULL }, };
3482 * Fix Command Arguments for Math_Huge_Val_Ifndef
3484 static const char* apzMath_Huge_Val_IfndefPatch[] = {
3486 "#ifndef HUGE_VAL\n\
3489 "^[ \t]*#[ \t]*define[ \t]+HUGE_VAL[ \t].*",
3492 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3494 * Description of Nested_Auth_Des fix
3496 tSCC zNested_Auth_DesName[] =
3500 * File name selection pattern
3502 tSCC zNested_Auth_DesList[] =
3505 * Machine/OS name selection pattern
3507 #define apzNested_Auth_DesMachs (const char**)NULL
3510 * content selection pattern - do fix if pattern found
3512 tSCC zNested_Auth_DesSelect0[] =
3513 "(/\\*.*rpc/auth_des\\.h>.*)/\\*";
3515 #define NESTED_AUTH_DES_TEST_CT 1
3516 static tTestDesc aNested_Auth_DesTests[] = {
3517 { TT_EGREP, zNested_Auth_DesSelect0, (regex_t*)NULL }, };
3520 * Fix Command Arguments for Nested_Auth_Des
3522 static const char* apzNested_Auth_DesPatch[] = {
3527 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3529 * Description of Nested_Motorola fix
3531 tSCC zNested_MotorolaName[] =
3535 * File name selection pattern
3537 tSCC zNested_MotorolaList[] =
3538 "|sys/limits.h|limits.h|";
3540 * Machine/OS name selection pattern
3542 tSCC* apzNested_MotorolaMachs[] = {
3543 "m68k-motorola-sysv*",
3544 (const char*)NULL };
3547 * content selection pattern - do fix if pattern found
3549 tSCC zNested_MotorolaSelect0[] =
3550 "max # bytes atomic in write|error value returned by Math lib";
3552 #define NESTED_MOTOROLA_TEST_CT 1
3553 static tTestDesc aNested_MotorolaTests[] = {
3554 { TT_EGREP, zNested_MotorolaSelect0, (regex_t*)NULL }, };
3557 * Fix Command Arguments for Nested_Motorola
3559 static const char* apzNested_MotorolaPatch[] = { "sed",
3560 "-e", "s@^\\(#undef[ \t][ \t]*PIPE_BUF[ \t]*/\\* max # bytes atomic in write to a\\)$@\\1 */@",
3561 "-e", "s@\\(/\\*#define\tHUGE_VAL\t3.[0-9e+]* \\)\\(/\\*error value returned by Math lib\\*/\\)$@\\1*/ \\2@",
3564 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3566 * Description of Nested_Sys_Limits fix
3568 tSCC zNested_Sys_LimitsName[] =
3569 "nested_sys_limits";
3572 * File name selection pattern
3574 tSCC zNested_Sys_LimitsList[] =
3577 * Machine/OS name selection pattern
3579 #define apzNested_Sys_LimitsMachs (const char**)NULL
3582 * content selection pattern - do fix if pattern found
3584 tSCC zNested_Sys_LimitsSelect0[] =
3587 #define NESTED_SYS_LIMITS_TEST_CT 1
3588 static tTestDesc aNested_Sys_LimitsTests[] = {
3589 { TT_EGREP, zNested_Sys_LimitsSelect0, (regex_t*)NULL }, };
3592 * Fix Command Arguments for Nested_Sys_Limits
3594 static const char* apzNested_Sys_LimitsPatch[] = { "sed",
3595 "-e", "/CHILD_MAX/s,/\\* Max, Max,",
3596 "-e", "/OPEN_MAX/s,/\\* Max, Max,",
3599 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3601 * Description of Netbsd_Extra_Semicolon fix
3603 tSCC zNetbsd_Extra_SemicolonName[] =
3604 "netbsd_extra_semicolon";
3607 * File name selection pattern
3609 tSCC zNetbsd_Extra_SemicolonList[] =
3612 * Machine/OS name selection pattern
3614 tSCC* apzNetbsd_Extra_SemicolonMachs[] = {
3616 (const char*)NULL };
3619 * content selection pattern - do fix if pattern found
3621 tSCC zNetbsd_Extra_SemicolonSelect0[] =
3622 "#define[ \t]*__END_DECLS[ \t]*};";
3624 #define NETBSD_EXTRA_SEMICOLON_TEST_CT 1
3625 static tTestDesc aNetbsd_Extra_SemicolonTests[] = {
3626 { TT_EGREP, zNetbsd_Extra_SemicolonSelect0, (regex_t*)NULL }, };
3629 * Fix Command Arguments for Netbsd_Extra_Semicolon
3631 static const char* apzNetbsd_Extra_SemicolonPatch[] = {
3633 "#define __END_DECLS }",
3636 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3638 * Description of Next_Math_Prefix fix
3640 tSCC zNext_Math_PrefixName[] =
3644 * File name selection pattern
3646 tSCC zNext_Math_PrefixList[] =
3649 * Machine/OS name selection pattern
3651 #define apzNext_Math_PrefixMachs (const char**)NULL
3654 * content selection pattern - do fix if pattern found
3656 tSCC zNext_Math_PrefixSelect0[] =
3657 "^extern[ \t]+double[ \t]+__const__[ \t]";
3659 #define NEXT_MATH_PREFIX_TEST_CT 1
3660 static tTestDesc aNext_Math_PrefixTests[] = {
3661 { TT_EGREP, zNext_Math_PrefixSelect0, (regex_t*)NULL }, };
3664 * Fix Command Arguments for Next_Math_Prefix
3666 static const char* apzNext_Math_PrefixPatch[] = {
3668 "extern double %1(",
3669 "^extern[ \t]+double[ \t]+__const__[ \t]+([a-z]+)\\(",
3672 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3674 * Description of Next_Template fix
3676 tSCC zNext_TemplateName[] =
3680 * File name selection pattern
3682 tSCC zNext_TemplateList[] =
3685 * Machine/OS name selection pattern
3687 #define apzNext_TemplateMachs (const char**)NULL
3690 * content selection pattern - do fix if pattern found
3692 tSCC zNext_TemplateSelect0[] =
3695 #define NEXT_TEMPLATE_TEST_CT 1
3696 static tTestDesc aNext_TemplateTests[] = {
3697 { TT_EGREP, zNext_TemplateSelect0, (regex_t*)NULL }, };
3700 * Fix Command Arguments for Next_Template
3702 static const char* apzNext_TemplatePatch[] = {
3705 "\\(([^)]*)[ \t]template\\)",
3708 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3710 * Description of Next_Volitile fix
3712 tSCC zNext_VolitileName[] =
3716 * File name selection pattern
3718 tSCC zNext_VolitileList[] =
3721 * Machine/OS name selection pattern
3723 #define apzNext_VolitileMachs (const char**)NULL
3726 * content selection pattern - do fix if pattern found
3728 tSCC zNext_VolitileSelect0[] =
3729 "^extern[ \t]+volatile[ \t]+void[ \t]";
3731 #define NEXT_VOLITILE_TEST_CT 1
3732 static tTestDesc aNext_VolitileTests[] = {
3733 { TT_EGREP, zNext_VolitileSelect0, (regex_t*)NULL }, };
3736 * Fix Command Arguments for Next_Volitile
3738 static const char* apzNext_VolitilePatch[] = {
3741 "^extern[ \t]+volatile[ \t]+void[ \t]+(exit|abort)\\(",
3744 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3746 * Description of Next_Wait_Union fix
3748 tSCC zNext_Wait_UnionName[] =
3752 * File name selection pattern
3754 tSCC zNext_Wait_UnionList[] =
3757 * Machine/OS name selection pattern
3759 #define apzNext_Wait_UnionMachs (const char**)NULL
3762 * content selection pattern - do fix if pattern found
3764 tSCC zNext_Wait_UnionSelect0[] =
3765 "wait\\(union wait";
3767 #define NEXT_WAIT_UNION_TEST_CT 1
3768 static tTestDesc aNext_Wait_UnionTests[] = {
3769 { TT_EGREP, zNext_Wait_UnionSelect0, (regex_t*)NULL }, };
3772 * Fix Command Arguments for Next_Wait_Union
3774 static const char* apzNext_Wait_UnionPatch[] = {
3779 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3781 * Description of Nodeent_Syntax fix
3783 tSCC zNodeent_SyntaxName[] =
3787 * File name selection pattern
3789 tSCC zNodeent_SyntaxList[] =
3790 "|netdnet/dnetdb.h|";
3792 * Machine/OS name selection pattern
3794 #define apzNodeent_SyntaxMachs (const char**)NULL
3797 * content selection pattern - do fix if pattern found
3799 tSCC zNodeent_SyntaxSelect0[] =
3800 "char[ \t]*\\*na_addr[ \t]*$";
3802 #define NODEENT_SYNTAX_TEST_CT 1
3803 static tTestDesc aNodeent_SyntaxTests[] = {
3804 { TT_EGREP, zNodeent_SyntaxSelect0, (regex_t*)NULL }, };
3807 * Fix Command Arguments for Nodeent_Syntax
3809 static const char* apzNodeent_SyntaxPatch[] = {
3814 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3816 * Description of Obstack_Lvalue_Cast fix
3818 tSCC zObstack_Lvalue_CastName[] =
3819 "obstack_lvalue_cast";
3822 * File name selection pattern
3824 tSCC zObstack_Lvalue_CastList[] =
3827 * Machine/OS name selection pattern
3829 #define apzObstack_Lvalue_CastMachs (const char**)NULL
3832 * content selection pattern - do fix if pattern found
3834 tSCC zObstack_Lvalue_CastSelect0[] =
3835 "\\*\\(\\(([^()]*)\\*\\)(.*)\\)\\+\\+ = \\(([^()]*)\\)";
3837 #define OBSTACK_LVALUE_CAST_TEST_CT 1
3838 static tTestDesc aObstack_Lvalue_CastTests[] = {
3839 { TT_EGREP, zObstack_Lvalue_CastSelect0, (regex_t*)NULL }, };
3842 * Fix Command Arguments for Obstack_Lvalue_Cast
3844 static const char* apzObstack_Lvalue_CastPatch[] = {
3846 "((*((%1*)%2) = (%3)), (%2 += sizeof (%1)))",
3849 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3851 * Description of Osf_Namespace_A fix
3853 tSCC zOsf_Namespace_AName[] =
3857 * File name selection pattern
3859 tSCC zOsf_Namespace_AList[] =
3860 "|reg_types.h|sys/lc_core.h|";
3862 * Machine/OS name selection pattern
3864 #define apzOsf_Namespace_AMachs (const char**)NULL
3867 * perform the 'test' shell command - do fix on success
3869 tSCC zOsf_Namespace_ATest0[] =
3871 tSCC zOsf_Namespace_ATest1[] =
3872 " -r sys/lc_core.h";
3873 tSCC zOsf_Namespace_ATest2[] =
3874 " -n \"`grep '} regex_t;' reg_types.h`\"";
3875 tSCC zOsf_Namespace_ATest3[] =
3876 " -z \"`grep __regex_t regex.h`\"";
3878 #define OSF_NAMESPACE_A_TEST_CT 4
3879 static tTestDesc aOsf_Namespace_ATests[] = {
3880 { TT_TEST, zOsf_Namespace_ATest0, 0 /* unused */ },
3881 { TT_TEST, zOsf_Namespace_ATest1, 0 /* unused */ },
3882 { TT_TEST, zOsf_Namespace_ATest2, 0 /* unused */ },
3883 { TT_TEST, zOsf_Namespace_ATest3, 0 /* unused */ }, };
3886 * Fix Command Arguments for Osf_Namespace_A
3888 static const char* apzOsf_Namespace_APatch[] = {
3891 "reg(ex|off|match)_t",
3894 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3896 * Description of Osf_Namespace_C fix
3898 tSCC zOsf_Namespace_CName[] =
3902 * File name selection pattern
3904 tSCC zOsf_Namespace_CList[] =
3907 * Machine/OS name selection pattern
3909 #define apzOsf_Namespace_CMachs (const char**)NULL
3912 * content selection pattern - do fix if pattern found
3914 tSCC zOsf_Namespace_CSelect0[] =
3915 "#include <reg_types.h>.*";
3918 * perform the 'test' shell command - do fix on success
3920 tSCC zOsf_Namespace_CTest0[] =
3922 tSCC zOsf_Namespace_CTest1[] =
3923 " -r sys/lc_core.h";
3924 tSCC zOsf_Namespace_CTest2[] =
3925 " -n \"`grep '} regex_t;' reg_types.h`\"";
3926 tSCC zOsf_Namespace_CTest3[] =
3927 " -z \"`grep __regex_t regex.h`\"";
3929 #define OSF_NAMESPACE_C_TEST_CT 5
3930 static tTestDesc aOsf_Namespace_CTests[] = {
3931 { TT_TEST, zOsf_Namespace_CTest0, 0 /* unused */ },
3932 { TT_TEST, zOsf_Namespace_CTest1, 0 /* unused */ },
3933 { TT_TEST, zOsf_Namespace_CTest2, 0 /* unused */ },
3934 { TT_TEST, zOsf_Namespace_CTest3, 0 /* unused */ },
3935 { TT_EGREP, zOsf_Namespace_CSelect0, (regex_t*)NULL }, };
3938 * Fix Command Arguments for Osf_Namespace_C
3940 static const char* apzOsf_Namespace_CPatch[] = {
3943 typedef __regex_t\tregex_t;\n\
3944 typedef __regoff_t\tregoff_t;\n\
3945 typedef __regmatch_t\tregmatch_t;",
3948 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3950 * Description of Pthread_Page_Size fix
3952 tSCC zPthread_Page_SizeName[] =
3953 "pthread_page_size";
3956 * File name selection pattern
3958 tSCC zPthread_Page_SizeList[] =
3961 * Machine/OS name selection pattern
3963 #define apzPthread_Page_SizeMachs (const char**)NULL
3966 * content selection pattern - do fix if pattern found
3968 tSCC zPthread_Page_SizeSelect0[] =
3971 #define PTHREAD_PAGE_SIZE_TEST_CT 1
3972 static tTestDesc aPthread_Page_SizeTests[] = {
3973 { TT_EGREP, zPthread_Page_SizeSelect0, (regex_t*)NULL }, };
3976 * Fix Command Arguments for Pthread_Page_Size
3978 static const char* apzPthread_Page_SizePatch[] = {
3983 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3985 * Description of Read_Ret_Type fix
3987 tSCC zRead_Ret_TypeName[] =
3991 * File name selection pattern
3993 tSCC zRead_Ret_TypeList[] =
3996 * Machine/OS name selection pattern
3998 #define apzRead_Ret_TypeMachs (const char**)NULL
4001 * content selection pattern - do fix if pattern found
4003 tSCC zRead_Ret_TypeSelect0[] =
4004 "extern int\t.*, fread\\(\\), fwrite\\(\\)";
4006 #define READ_RET_TYPE_TEST_CT 1
4007 static tTestDesc aRead_Ret_TypeTests[] = {
4008 { TT_EGREP, zRead_Ret_TypeSelect0, (regex_t*)NULL }, };
4011 * Fix Command Arguments for Read_Ret_Type
4013 static const char* apzRead_Ret_TypePatch[] = {
4015 "extern unsigned int fread(), fwrite();\n\
4017 "(extern int\t.*), fread\\(\\), fwrite\\(\\)(.*)",
4020 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4022 * Description of Rs6000_Double fix
4024 tSCC zRs6000_DoubleName[] =
4028 * File name selection pattern
4030 tSCC zRs6000_DoubleList[] =
4033 * Machine/OS name selection pattern
4035 #define apzRs6000_DoubleMachs (const char**)NULL
4038 * content selection pattern - do fix if pattern found
4040 tSCC zRs6000_DoubleSelect0[] =
4041 "[^a-zA-Z_]class\\(";
4043 #define RS6000_DOUBLE_TEST_CT 1
4044 static tTestDesc aRs6000_DoubleTests[] = {
4045 { TT_EGREP, zRs6000_DoubleSelect0, (regex_t*)NULL }, };
4048 * Fix Command Arguments for Rs6000_Double
4050 static const char* apzRs6000_DoublePatch[] = {
4052 "#ifndef __cplusplus\n\
4055 "^.*[^a-zA-Z_]class\\(.*",
4058 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4060 * Description of Rs6000_Fchmod fix
4062 tSCC zRs6000_FchmodName[] =
4066 * File name selection pattern
4068 tSCC zRs6000_FchmodList[] =
4071 * Machine/OS name selection pattern
4073 #define apzRs6000_FchmodMachs (const char**)NULL
4076 * content selection pattern - do fix if pattern found
4078 tSCC zRs6000_FchmodSelect0[] =
4079 "fchmod\\(char \\*";
4081 #define RS6000_FCHMOD_TEST_CT 1
4082 static tTestDesc aRs6000_FchmodTests[] = {
4083 { TT_EGREP, zRs6000_FchmodSelect0, (regex_t*)NULL }, };
4086 * Fix Command Arguments for Rs6000_Fchmod
4088 static const char* apzRs6000_FchmodPatch[] = {
4093 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4095 * Description of Rs6000_Param fix
4097 tSCC zRs6000_ParamName[] =
4101 * File name selection pattern
4103 tSCC zRs6000_ParamList[] =
4104 "|stdio.h|unistd.h|";
4106 * Machine/OS name selection pattern
4108 #define apzRs6000_ParamMachs (const char**)NULL
4111 * content selection pattern - do fix if pattern found
4113 tSCC zRs6000_ParamSelect0[] =
4114 "rename\\(const char \\*old, const char \\*new\\)";
4116 #define RS6000_PARAM_TEST_CT 1
4117 static tTestDesc aRs6000_ParamTests[] = {
4118 { TT_EGREP, zRs6000_ParamSelect0, (regex_t*)NULL }, };
4121 * Fix Command Arguments for Rs6000_Param
4123 static const char* apzRs6000_ParamPatch[] = {
4125 "rename(const char *_old, const char *_new)",
4128 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4130 * Description of Sco_Math fix
4132 tSCC zSco_MathName[] =
4136 * File name selection pattern
4138 tSCC zSco_MathList[] =
4139 "|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|";
4141 * Machine/OS name selection pattern
4143 #define apzSco_MathMachs (const char**)NULL
4146 * content selection pattern - do fix if pattern found
4148 tSCC zSco_MathSelect0[] =
4149 "inline double abs";
4151 #define SCO_MATH_TEST_CT 1
4152 static tTestDesc aSco_MathTests[] = {
4153 { TT_EGREP, zSco_MathSelect0, (regex_t*)NULL }, };
4156 * Fix Command Arguments for Sco_Math
4158 static const char* apzSco_MathPatch[] = { "sed",
4159 "-e", "/#define.*__fp_class(a) \\\\/i\\\n\
4160 #ifndef __GNUC__\n",
4161 "-e", "/.*__builtin_generic/a\\\n\
4163 #define __fp_class(a) \\\\\\\n\
4164 __builtin_choose_expr(__builtin_types_compatible_p(typeof(a),long double),\\\\\\\n\
4165 __fpclassifyl(a), \\\\\\\n\
4166 __builtin_choose_expr(__builtin_types_compatible_p(typeof(a), float), \\\\\\\n\
4167 __fpclassifyf(a),__fpclassify(a)))\\\n\
4169 "-e", "/extern \"C\\+\\+\"/N;/inline double abs/i\\\n\
4170 #ifndef __GNUC__\n",
4171 "-e", "/inline long double trunc/N;/inline long double trunc.*}.*extern \"C\\+\\+\"/a\\\n\
4172 #endif /* ! __GNUC__ */",
4175 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4177 * Description of Sco_Regset fix
4179 tSCC zSco_RegsetName[] =
4183 * File name selection pattern
4185 tSCC zSco_RegsetList[] =
4188 * Machine/OS name selection pattern
4190 tSCC* apzSco_RegsetMachs[] = {
4192 (const char*)NULL };
4195 * content selection pattern - do fix if pattern found
4197 tSCC zSco_RegsetSelect0[] =
4198 "(struct[ \t]+.*)fpstate";
4200 #define SCO_REGSET_TEST_CT 1
4201 static tTestDesc aSco_RegsetTests[] = {
4202 { TT_EGREP, zSco_RegsetSelect0, (regex_t*)NULL }, };
4205 * Fix Command Arguments for Sco_Regset
4207 static const char* apzSco_RegsetPatch[] = {
4212 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4214 * Description of Sco_Static_Func fix
4216 tSCC zSco_Static_FuncName[] =
4220 * File name selection pattern
4222 tSCC zSco_Static_FuncList[] =
4225 * Machine/OS name selection pattern
4227 tSCC* apzSco_Static_FuncMachs[] = {
4229 (const char*)NULL };
4232 * content selection pattern - do fix if pattern found
4234 tSCC zSco_Static_FuncSelect0[] =
4237 #define SCO_STATIC_FUNC_TEST_CT 1
4238 static tTestDesc aSco_Static_FuncTests[] = {
4239 { TT_EGREP, zSco_Static_FuncSelect0, (regex_t*)NULL }, };
4242 * Fix Command Arguments for Sco_Static_Func
4244 static const char* apzSco_Static_FuncPatch[] = { "sed",
4245 "-e", "/^static int/i\\\n\
4246 #if __cplusplus\\\n\
4248 #endif /* __cplusplus */",
4250 #if __cplusplus\\\n\
4252 #endif /* __cplusplus */",
4255 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4257 * Description of Sco_Utime fix
4259 tSCC zSco_UtimeName[] =
4263 * File name selection pattern
4265 tSCC zSco_UtimeList[] =
4268 * Machine/OS name selection pattern
4270 tSCC* apzSco_UtimeMachs[] = {
4272 (const char*)NULL };
4275 * content selection pattern - do fix if pattern found
4277 tSCC zSco_UtimeSelect0[] =
4278 "\\(const char \\*, struct utimbuf \\*\\);";
4280 #define SCO_UTIME_TEST_CT 1
4281 static tTestDesc aSco_UtimeTests[] = {
4282 { TT_EGREP, zSco_UtimeSelect0, (regex_t*)NULL }, };
4285 * Fix Command Arguments for Sco_Utime
4287 static const char* apzSco_UtimePatch[] = {
4289 "(const char *, const struct utimbuf *);",
4292 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4294 * Description of Solaris_Mutex_Init_1 fix
4296 tSCC zSolaris_Mutex_Init_1Name[] =
4297 "solaris_mutex_init_1";
4300 * File name selection pattern
4302 tSCC zSolaris_Mutex_Init_1List[] =
4305 * Machine/OS name selection pattern
4307 #define apzSolaris_Mutex_Init_1Machs (const char**)NULL
4310 * content selection pattern - do fix if pattern found
4312 tSCC zSolaris_Mutex_Init_1Select0[] =
4313 "@\\(#\\)pthread.h[ \t]+1.1[0-9][ \t]+9[567]/[0-9/]+ SMI";
4315 #define SOLARIS_MUTEX_INIT_1_TEST_CT 1
4316 static tTestDesc aSolaris_Mutex_Init_1Tests[] = {
4317 { TT_EGREP, zSolaris_Mutex_Init_1Select0, (regex_t*)NULL }, };
4320 * Fix Command Arguments for Solaris_Mutex_Init_1
4322 static const char* apzSolaris_Mutex_Init_1Patch[] = { "sed",
4323 "-e", "/define[ \t]*PTHREAD_MUTEX_INI/s/{0, 0,/{{{0}, 0}, {{{0}}},/\n\
4324 /define[ \t]*PTHREAD_COND_INI/s/{0,/{{{0},0},/",
4327 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4329 * Description of Solaris_Mutex_Init_2 fix
4331 tSCC zSolaris_Mutex_Init_2Name[] =
4332 "solaris_mutex_init_2";
4335 * File name selection pattern
4337 tSCC zSolaris_Mutex_Init_2List[] =
4340 * Machine/OS name selection pattern
4342 #define apzSolaris_Mutex_Init_2Machs (const char**)NULL
4345 * content selection pattern - do fix if pattern found
4347 tSCC zSolaris_Mutex_Init_2Select0[] =
4348 "@\\(#\\)pthread.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
4350 #define SOLARIS_MUTEX_INIT_2_TEST_CT 1
4351 static tTestDesc aSolaris_Mutex_Init_2Tests[] = {
4352 { TT_EGREP, zSolaris_Mutex_Init_2Select0, (regex_t*)NULL }, };
4355 * Fix Command Arguments for Solaris_Mutex_Init_2
4357 static const char* apzSolaris_Mutex_Init_2Patch[] = {
4359 "#if __STDC__ - 0 == 0 && !defined(_NO_LONGLONG)\n\
4364 "(^#define[ \t]+PTHREAD_(MUTEX|COND)_INITIALIZER[ \t]+\\{.*),[ \t]*0\\}(|[ \t].*)$",
4367 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4369 * Description of Solaris_Socket fix
4371 tSCC zSolaris_SocketName[] =
4375 * File name selection pattern
4377 tSCC zSolaris_SocketList[] =
4380 * Machine/OS name selection pattern
4382 #define apzSolaris_SocketMachs (const char**)NULL
4385 * content selection pattern - do fix if pattern found
4387 tSCC zSolaris_SocketSelect0[] =
4388 "@\\(#\\)socket.h[ \t]+1.[123][0-9][ \t]+9[567]/[0-9/]+ SMI";
4390 #define SOLARIS_SOCKET_TEST_CT 1
4391 static tTestDesc aSolaris_SocketTests[] = {
4392 { TT_EGREP, zSolaris_SocketSelect0, (regex_t*)NULL }, };
4395 * Fix Command Arguments for Solaris_Socket
4397 static const char* apzSolaris_SocketPatch[] = {
4399 "extern int %1(int, %2void *, int, int);",
4400 "^extern int (recv|send)\\(int, (const )*char \\*, int, int\\);",
4403 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4405 * Description of Solaris_Stdio_Tag fix
4407 tSCC zSolaris_Stdio_TagName[] =
4408 "solaris_stdio_tag";
4411 * File name selection pattern
4413 tSCC zSolaris_Stdio_TagList[] =
4416 * Machine/OS name selection pattern
4418 #define apzSolaris_Stdio_TagMachs (const char**)NULL
4421 * content selection pattern - do fix if pattern found
4423 tSCC zSolaris_Stdio_TagSelect0[] =
4424 "__cplusplus < 54321L";
4426 #define SOLARIS_STDIO_TAG_TEST_CT 1
4427 static tTestDesc aSolaris_Stdio_TagTests[] = {
4428 { TT_EGREP, zSolaris_Stdio_TagSelect0, (regex_t*)NULL }, };
4431 * Fix Command Arguments for Solaris_Stdio_Tag
4433 static const char* apzSolaris_Stdio_TagPatch[] = { "sed",
4434 "-e", "s/defined(__cplusplus) && (__cplusplus < 54321L)/0/",
4437 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4439 * Description of Solaris_Unistd fix
4441 tSCC zSolaris_UnistdName[] =
4445 * File name selection pattern
4447 tSCC zSolaris_UnistdList[] =
4450 * Machine/OS name selection pattern
4452 #define apzSolaris_UnistdMachs (const char**)NULL
4455 * content selection pattern - do fix if pattern found
4457 tSCC zSolaris_UnistdSelect0[] =
4458 "@\\(#\\)unistd.h[ \t]+1.3[0-9][ \t]+9[567]/[0-9/]+ SMI";
4461 * content bypass pattern - skip fix if pattern found
4463 tSCC zSolaris_UnistdBypass0[] =
4466 #define SOLARIS_UNISTD_TEST_CT 2
4467 static tTestDesc aSolaris_UnistdTests[] = {
4468 { TT_NEGREP, zSolaris_UnistdBypass0, (regex_t*)NULL },
4469 { TT_EGREP, zSolaris_UnistdSelect0, (regex_t*)NULL }, };
4472 * Fix Command Arguments for Solaris_Unistd
4474 static const char* apzSolaris_UnistdPatch[] = {
4476 "extern int getpagesize();\n\
4478 "^extern (pid_t|int) getpgid\\(.*\\);",
4481 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4483 * Description of Solaris_Widec fix
4485 tSCC zSolaris_WidecName[] =
4489 * File name selection pattern
4491 tSCC zSolaris_WidecList[] =
4494 * Machine/OS name selection pattern
4496 tSCC* apzSolaris_WidecMachs[] = {
4497 "*-*-solaris2.[0-5]",
4498 "*-*-solaris2.[0-5].*",
4499 (const char*)NULL };
4502 * content selection pattern - do fix if pattern found
4504 tSCC zSolaris_WidecSelect0[] =
4508 * content bypass pattern - skip fix if pattern found
4510 tSCC zSolaris_WidecBypass0[] =
4511 "include.*wchar\\.h";
4513 #define SOLARIS_WIDEC_TEST_CT 2
4514 static tTestDesc aSolaris_WidecTests[] = {
4515 { TT_NEGREP, zSolaris_WidecBypass0, (regex_t*)NULL },
4516 { TT_EGREP, zSolaris_WidecSelect0, (regex_t*)NULL }, };
4519 * Fix Command Arguments for Solaris_Widec
4521 static const char* apzSolaris_WidecPatch[] = {
4524 #include <wchar.h>",
4527 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4529 * Description of Statsswtch fix
4531 tSCC zStatsswtchName[] =
4535 * File name selection pattern
4537 tSCC zStatsswtchList[] =
4540 * Machine/OS name selection pattern
4542 #define apzStatsswtchMachs (const char**)NULL
4545 * content selection pattern - do fix if pattern found
4547 tSCC zStatsswtchSelect0[] =
4550 #define STATSSWTCH_TEST_CT 1
4551 static tTestDesc aStatsswtchTests[] = {
4552 { TT_EGREP, zStatsswtchSelect0, (regex_t*)NULL }, };
4555 * Fix Command Arguments for Statsswtch
4557 static const char* apzStatsswtchPatch[] = {
4562 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4564 * Description of Stdio_Stdarg_H fix
4566 tSCC zStdio_Stdarg_HName[] =
4570 * File name selection pattern
4572 tSCC zStdio_Stdarg_HList[] =
4575 * Machine/OS name selection pattern
4577 #define apzStdio_Stdarg_HMachs (const char**)NULL
4580 * content bypass pattern - skip fix if pattern found
4582 tSCC zStdio_Stdarg_HBypass0[] =
4583 "include.*(stdarg.h|machine/ansi.h)";
4585 #define STDIO_STDARG_H_TEST_CT 1
4586 static tTestDesc aStdio_Stdarg_HTests[] = {
4587 { TT_NEGREP, zStdio_Stdarg_HBypass0, (regex_t*)NULL }, };
4590 * Fix Command Arguments for Stdio_Stdarg_H
4592 static const char* apzStdio_Stdarg_HPatch[] = {
4594 "#define __need___va_list\n\
4595 #include <stdarg.h>\n",
4598 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4600 * Description of Stdio_Va_List fix
4602 tSCC zStdio_Va_ListNa