1 /* -*- buffer-read-only: t -*- vi: set ro:
3 * DO NOT EDIT THIS FILE (fixincl.x)
5 * It has been AutoGen-ed Wednesday October 22, 2003 at 10:23:00 PM UTC
6 * From the definitions inclhack.def
7 * and the template file fixincl
9 /* DO NOT CVS-MERGE THIS FILE, EITHER Wed Oct 22 22:23:00 UTC 2003
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 161 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 tSCC zAlpha___Extern_PrefixList[] =
733 * Machine/OS name selection pattern
735 tSCC* apzAlpha___Extern_PrefixMachs[] = {
740 * content selection pattern - do fix if pattern found
742 tSCC zAlpha___Extern_PrefixSelect0[] =
743 "#[ \t]*if[ \t]*defined\\(__DECC\\)";
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 "%0 || defined(__PRAGMA_EXTERN_PREFIX)",
757 /* * * * * * * * * * * * * * * * * * * * * * * * * *
759 * Description of Alpha_Assert fix
761 tSCC zAlpha_AssertName[] =
765 * File name selection pattern
767 tSCC zAlpha_AssertList[] =
770 * Machine/OS name selection pattern
772 #define apzAlpha_AssertMachs (const char**)NULL
775 * content selection pattern - do fix if pattern found
777 tSCC zAlpha_AssertSelect0[] =
778 "(#define assert\\(EX\\).*)\\(\\(int\\) \\(EX\\)\\)";
780 #define ALPHA_ASSERT_TEST_CT 1
781 static tTestDesc aAlpha_AssertTests[] = {
782 { TT_EGREP, zAlpha_AssertSelect0, (regex_t*)NULL }, };
785 * Fix Command Arguments for Alpha_Assert
787 static const char* apzAlpha_AssertPatch[] = {
792 /* * * * * * * * * * * * * * * * * * * * * * * * * *
794 * Description of Alpha_Getopt fix
796 tSCC zAlpha_GetoptName[] =
800 * File name selection pattern
802 tSCC zAlpha_GetoptList[] =
803 "|stdio.h|stdlib.h|";
805 * Machine/OS name selection pattern
807 #define apzAlpha_GetoptMachs (const char**)NULL
810 * content selection pattern - do fix if pattern found
812 tSCC zAlpha_GetoptSelect0[] =
813 "getopt\\(int, char \\*\\[\\], *char \\*\\)";
815 #define ALPHA_GETOPT_TEST_CT 1
816 static tTestDesc aAlpha_GetoptTests[] = {
817 { TT_EGREP, zAlpha_GetoptSelect0, (regex_t*)NULL }, };
820 * Fix Command Arguments for Alpha_Getopt
822 static const char* apzAlpha_GetoptPatch[] = {
824 "getopt(int, char *const[], const char *)",
827 /* * * * * * * * * * * * * * * * * * * * * * * * * *
829 * Description of Alpha_Parens fix
831 tSCC zAlpha_ParensName[] =
835 * File name selection pattern
837 tSCC zAlpha_ParensList[] =
840 * Machine/OS name selection pattern
842 #define apzAlpha_ParensMachs (const char**)NULL
845 * content selection pattern - do fix if pattern found
847 tSCC zAlpha_ParensSelect0[] =
848 "#ifndef\\(__mips64\\)";
850 #define ALPHA_PARENS_TEST_CT 1
851 static tTestDesc aAlpha_ParensTests[] = {
852 { TT_EGREP, zAlpha_ParensSelect0, (regex_t*)NULL }, };
855 * Fix Command Arguments for Alpha_Parens
857 static const char* apzAlpha_ParensPatch[] = {
862 /* * * * * * * * * * * * * * * * * * * * * * * * * *
864 * Description of Alpha_Pthread fix
866 tSCC zAlpha_PthreadName[] =
870 * File name selection pattern
872 tSCC zAlpha_PthreadList[] =
875 * Machine/OS name selection pattern
877 tSCC* apzAlpha_PthreadMachs[] = {
882 * content selection pattern - do fix if pattern found
884 tSCC zAlpha_PthreadSelect0[] =
885 "(#[ \t]*if defined \\(_PTHREAD_ENV_DECC\\) || defined \\(_PTHREAD_ENV_EPCC\\))\n\
886 (#[ \t]*define _PTHREAD_USE_PTDNAM_)";
888 #define ALPHA_PTHREAD_TEST_CT 1
889 static tTestDesc aAlpha_PthreadTests[] = {
890 { TT_EGREP, zAlpha_PthreadSelect0, (regex_t*)NULL }, };
893 * Fix Command Arguments for Alpha_Pthread
895 static const char* apzAlpha_PthreadPatch[] = {
897 "%1 || defined (__PRAGMA_EXTERN_PREFIX)\n\
901 /* * * * * * * * * * * * * * * * * * * * * * * * * *
903 * Description of Alpha_Pthread_Gcc fix
905 tSCC zAlpha_Pthread_GccName[] =
909 * File name selection pattern
911 tSCC zAlpha_Pthread_GccList[] =
914 * Machine/OS name selection pattern
916 tSCC* apzAlpha_Pthread_GccMachs[] = {
921 * content selection pattern - do fix if pattern found
923 tSCC zAlpha_Pthread_GccSelect0[] =
925 # error <pthread.h>: unrecognized compiler.";
927 #define ALPHA_PTHREAD_GCC_TEST_CT 1
928 static tTestDesc aAlpha_Pthread_GccTests[] = {
929 { TT_EGREP, zAlpha_Pthread_GccSelect0, (regex_t*)NULL }, };
932 * Fix Command Arguments for Alpha_Pthread_Gcc
934 static const char* apzAlpha_Pthread_GccPatch[] = {
936 "#elif defined (__GNUC__)\n\
937 # define _PTHREAD_ENV_GCC\n\
941 /* * * * * * * * * * * * * * * * * * * * * * * * * *
943 * Description of Alpha_Sbrk fix
945 tSCC zAlpha_SbrkName[] =
949 * File name selection pattern
951 tSCC zAlpha_SbrkList[] =
954 * Machine/OS name selection pattern
956 #define apzAlpha_SbrkMachs (const char**)NULL
959 * content selection pattern - do fix if pattern found
961 tSCC zAlpha_SbrkSelect0[] =
962 "char[ \t]*\\*[\t ]*sbrk[ \t]*\\(";
964 #define ALPHA_SBRK_TEST_CT 1
965 static tTestDesc aAlpha_SbrkTests[] = {
966 { TT_EGREP, zAlpha_SbrkSelect0, (regex_t*)NULL }, };
969 * Fix Command Arguments for Alpha_Sbrk
971 static const char* apzAlpha_SbrkPatch[] = {
976 /* * * * * * * * * * * * * * * * * * * * * * * * * *
978 * Description of Avoid_Bool_Define fix
980 tSCC zAvoid_Bool_DefineName[] =
984 * File name selection pattern
986 tSCC zAvoid_Bool_DefineList[] =
987 "|curses.h|curses_colr/curses.h|term.h|tinfo.h|";
989 * Machine/OS name selection pattern
991 #define apzAvoid_Bool_DefineMachs (const char**)NULL
994 * content selection pattern - do fix if pattern found
996 tSCC zAvoid_Bool_DefineSelect0[] =
997 "#[ \t]*define[ \t]+bool[ \t]";
1000 * content bypass pattern - skip fix if pattern found
1002 tSCC zAvoid_Bool_DefineBypass0[] =
1005 #define AVOID_BOOL_DEFINE_TEST_CT 2
1006 static tTestDesc aAvoid_Bool_DefineTests[] = {
1007 { TT_NEGREP, zAvoid_Bool_DefineBypass0, (regex_t*)NULL },
1008 { TT_EGREP, zAvoid_Bool_DefineSelect0, (regex_t*)NULL }, };
1011 * Fix Command Arguments for Avoid_Bool_Define
1013 static const char* apzAvoid_Bool_DefinePatch[] = {
1015 "#ifndef __cplusplus\n\
1018 "^[ \t]*#[ \t]*define[ \t]+bool[ \t].*",
1021 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1023 * Description of Avoid_Bool_Type fix
1025 tSCC zAvoid_Bool_TypeName[] =
1029 * File name selection pattern
1031 tSCC zAvoid_Bool_TypeList[] =
1032 "|curses.h|curses_colr/curses.h|term.h|tinfo.h|";
1034 * Machine/OS name selection pattern
1036 #define apzAvoid_Bool_TypeMachs (const char**)NULL
1039 * content selection pattern - do fix if pattern found
1041 tSCC zAvoid_Bool_TypeSelect0[] =
1042 "^[ \t]*typedef[ \t].*[ \t]bool[ \t]*;";
1045 * content bypass pattern - skip fix if pattern found
1047 tSCC zAvoid_Bool_TypeBypass0[] =
1050 #define AVOID_BOOL_TYPE_TEST_CT 2
1051 static tTestDesc aAvoid_Bool_TypeTests[] = {
1052 { TT_NEGREP, zAvoid_Bool_TypeBypass0, (regex_t*)NULL },
1053 { TT_EGREP, zAvoid_Bool_TypeSelect0, (regex_t*)NULL }, };
1056 * Fix Command Arguments for Avoid_Bool_Type
1058 static const char* apzAvoid_Bool_TypePatch[] = {
1060 "#ifndef __cplusplus\n\
1065 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1067 * Description of Avoid_Wchar_T_Type fix
1069 tSCC zAvoid_Wchar_T_TypeName[] =
1070 "avoid_wchar_t_type";
1073 * File name selection pattern
1075 #define zAvoid_Wchar_T_TypeList (char*)NULL
1077 * Machine/OS name selection pattern
1079 #define apzAvoid_Wchar_T_TypeMachs (const char**)NULL
1082 * content selection pattern - do fix if pattern found
1084 tSCC zAvoid_Wchar_T_TypeSelect0[] =
1085 "^[ \t]*typedef[ \t].*[ \t]wchar_t[ \t]*;";
1088 * content bypass pattern - skip fix if pattern found
1090 tSCC zAvoid_Wchar_T_TypeBypass0[] =
1092 tSCC zAvoid_Wchar_T_TypeBypass1[] =
1094 tSCC zAvoid_Wchar_T_TypeBypass2[] =
1095 "XFree86: xc/lib/X11/Xlib\\.h";
1097 #define AVOID_WCHAR_T_TYPE_TEST_CT 4
1098 static tTestDesc aAvoid_Wchar_T_TypeTests[] = {
1099 { TT_NEGREP, zAvoid_Wchar_T_TypeBypass0, (regex_t*)NULL },
1100 { TT_NEGREP, zAvoid_Wchar_T_TypeBypass1, (regex_t*)NULL },
1101 { TT_NEGREP, zAvoid_Wchar_T_TypeBypass2, (regex_t*)NULL },
1102 { TT_EGREP, zAvoid_Wchar_T_TypeSelect0, (regex_t*)NULL }, };
1105 * Fix Command Arguments for Avoid_Wchar_T_Type
1107 static const char* apzAvoid_Wchar_T_TypePatch[] = {
1109 "#ifndef __cplusplus\n\
1114 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1116 * Description of Bad_Lval fix
1118 tSCC zBad_LvalName[] =
1122 * File name selection pattern
1124 tSCC zBad_LvalList[] =
1125 "|libgen.h|dirent.h|ftw.h|grp.h|ndbm.h|pthread.h|pwd.h|signal.h|standards.h|stdlib.h|string.h|stropts.h|time.h|unistd.h|";
1127 * Machine/OS name selection pattern
1129 #define apzBad_LvalMachs (const char**)NULL
1132 * content selection pattern - do fix if pattern found
1134 tSCC zBad_LvalSelect0[] =
1135 "^[ \t]*#[ \t]*pragma[ \t]+extern_prefix";
1137 #define BAD_LVAL_TEST_CT 1
1138 static tTestDesc aBad_LvalTests[] = {
1139 { TT_EGREP, zBad_LvalSelect0, (regex_t*)NULL }, };
1142 * Fix Command Arguments for Bad_Lval
1144 static const char* apzBad_LvalPatch[] = { "sed",
1145 "-e", "s/^[ \t]*#[ \t]*define[ \t][ \t]*\\([^(]*\\)\\(([^)]*)\\)[ \t]*\\(_.*\\)\\1\\2[ \t]*$/#define \\1 \\3\\1/",
1148 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1150 * Description of Bad_Struct_Term fix
1152 tSCC zBad_Struct_TermName[] =
1156 * File name selection pattern
1158 tSCC zBad_Struct_TermList[] =
1161 * Machine/OS name selection pattern
1163 #define apzBad_Struct_TermMachs (const char**)NULL
1166 * content selection pattern - do fix if pattern found
1168 tSCC zBad_Struct_TermSelect0[] =
1169 "^[ \t]*typedef[ \t]+struct[ \t]+term[ \t]*;";
1171 #define BAD_STRUCT_TERM_TEST_CT 1
1172 static tTestDesc aBad_Struct_TermTests[] = {
1173 { TT_EGREP, zBad_Struct_TermSelect0, (regex_t*)NULL }, };
1176 * Fix Command Arguments for Bad_Struct_Term
1178 static const char* apzBad_Struct_TermPatch[] = {
1183 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1185 * Description of Badquote fix
1187 tSCC zBadquoteName[] =
1191 * File name selection pattern
1193 tSCC zBadquoteList[] =
1194 "|sundev/vuid_event.h|";
1196 * Machine/OS name selection pattern
1198 #define apzBadquoteMachs (const char**)NULL
1201 * content selection pattern - do fix if pattern found
1203 tSCC zBadquoteSelect0[] =
1206 #define BADQUOTE_TEST_CT 1
1207 static tTestDesc aBadquoteTests[] = {
1208 { TT_EGREP, zBadquoteSelect0, (regex_t*)NULL }, };
1211 * Fix Command Arguments for Badquote
1213 static const char* apzBadquotePatch[] = {
1218 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1220 * Description of Broken_Assert_Stdio fix
1222 tSCC zBroken_Assert_StdioName[] =
1223 "broken_assert_stdio";
1226 * File name selection pattern
1228 tSCC zBroken_Assert_StdioList[] =
1231 * Machine/OS name selection pattern
1233 #define apzBroken_Assert_StdioMachs (const char**)NULL
1236 * content selection pattern - do fix if pattern found
1238 tSCC zBroken_Assert_StdioSelect0[] =
1242 * content bypass pattern - skip fix if pattern found
1244 tSCC zBroken_Assert_StdioBypass0[] =
1245 "include.*stdio\\.h";
1247 #define BROKEN_ASSERT_STDIO_TEST_CT 2
1248 static tTestDesc aBroken_Assert_StdioTests[] = {
1249 { TT_NEGREP, zBroken_Assert_StdioBypass0, (regex_t*)NULL },
1250 { TT_EGREP, zBroken_Assert_StdioSelect0, (regex_t*)NULL }, };
1253 * Fix Command Arguments for Broken_Assert_Stdio
1255 static const char* apzBroken_Assert_StdioPatch[] = {
1257 "#include <stdio.h>\n",
1260 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1262 * Description of Broken_Assert_Stdlib fix
1264 tSCC zBroken_Assert_StdlibName[] =
1265 "broken_assert_stdlib";
1268 * File name selection pattern
1270 tSCC zBroken_Assert_StdlibList[] =
1273 * Machine/OS name selection pattern
1275 #define apzBroken_Assert_StdlibMachs (const char**)NULL
1278 * content selection pattern - do fix if pattern found
1280 tSCC zBroken_Assert_StdlibSelect0[] =
1281 "exit *\\(|abort *\\(";
1284 * content bypass pattern - skip fix if pattern found
1286 tSCC zBroken_Assert_StdlibBypass0[] =
1287 "include.*stdlib\\.h";
1289 #define BROKEN_ASSERT_STDLIB_TEST_CT 2
1290 static tTestDesc aBroken_Assert_StdlibTests[] = {
1291 { TT_NEGREP, zBroken_Assert_StdlibBypass0, (regex_t*)NULL },
1292 { TT_EGREP, zBroken_Assert_StdlibSelect0, (regex_t*)NULL }, };
1295 * Fix Command Arguments for Broken_Assert_Stdlib
1297 static const char* apzBroken_Assert_StdlibPatch[] = {
1299 "#ifdef __cplusplus\n\
1300 #include <stdlib.h>\n\
1304 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1306 * Description of Broken_Cabs fix
1308 tSCC zBroken_CabsName[] =
1312 * File name selection pattern
1314 tSCC zBroken_CabsList[] =
1315 "|math.h|architecture/ppc/math.h|architecture/i386/math.h|";
1317 * Machine/OS name selection pattern
1319 #define apzBroken_CabsMachs (const char**)NULL
1322 * content selection pattern - do fix if pattern found
1324 tSCC zBroken_CabsSelect0[] =
1325 "^extern[ \\t]+double[ \\t]+cabs";
1327 #define BROKEN_CABS_TEST_CT 1
1328 static tTestDesc aBroken_CabsTests[] = {
1329 { TT_EGREP, zBroken_CabsSelect0, (regex_t*)NULL }, };
1332 * Fix Command Arguments for Broken_Cabs
1334 static const char* apzBroken_CabsPatch[] = {
1337 "^extern[ \t]+double[ \t]+cabs[ \t]*\\([^\\)]*\\);",
1340 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1342 * Description of Bsd_Stdio_Attrs_Conflict fix
1344 tSCC zBsd_Stdio_Attrs_ConflictName[] =
1345 "bsd_stdio_attrs_conflict";
1348 * File name selection pattern
1350 tSCC zBsd_Stdio_Attrs_ConflictList[] =
1353 * Machine/OS name selection pattern
1355 tSCC* apzBsd_Stdio_Attrs_ConflictMachs[] = {
1358 (const char*)NULL };
1361 * content selection pattern - do fix if pattern found
1363 tSCC zBsd_Stdio_Attrs_ConflictSelect0[] =
1364 "^#define[ \t]*vfscanf[ \t]*__svfscanf[ \t]*$";
1366 #define BSD_STDIO_ATTRS_CONFLICT_TEST_CT 1
1367 static tTestDesc aBsd_Stdio_Attrs_ConflictTests[] = {
1368 { TT_EGREP, zBsd_Stdio_Attrs_ConflictSelect0, (regex_t*)NULL }, };
1371 * Fix Command Arguments for Bsd_Stdio_Attrs_Conflict
1373 static const char* apzBsd_Stdio_Attrs_ConflictPatch[] = {
1375 "#define _BSD_STRING(_BSD_X) _BSD_STRINGX(_BSD_X)\n\
1376 #define _BSD_STRINGX(_BSD_X) #_BSD_X\n\
1377 int vfscanf(FILE *, const char *, __builtin_va_list) __asm__ (_BSD_STRING(__USER_LABEL_PREFIX__) \"__svfscanf\");",
1380 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1382 * Description of Ctrl_Quotes_Def fix
1384 tSCC zCtrl_Quotes_DefName[] =
1388 * File name selection pattern
1390 #define zCtrl_Quotes_DefList (char*)NULL
1392 * Machine/OS name selection pattern
1394 #define apzCtrl_Quotes_DefMachs (const char**)NULL
1397 * content selection pattern - do fix if pattern found
1399 tSCC zCtrl_Quotes_DefSelect0[] =
1400 "define[ \t]+[A-Z0-9_]+CTRL\\([a-zA-Z][,)]";
1402 #define CTRL_QUOTES_DEF_TEST_CT 1
1403 static tTestDesc aCtrl_Quotes_DefTests[] = {
1404 { TT_EGREP, zCtrl_Quotes_DefSelect0, (regex_t*)NULL }, };
1407 * Fix Command Arguments for Ctrl_Quotes_Def
1409 static const char* apzCtrl_Quotes_DefPatch[] = {
1414 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1416 * Description of Ctrl_Quotes_Use fix
1418 tSCC zCtrl_Quotes_UseName[] =
1422 * File name selection pattern
1424 #define zCtrl_Quotes_UseList (char*)NULL
1426 * Machine/OS name selection pattern
1428 #define apzCtrl_Quotes_UseMachs (const char**)NULL
1431 * content selection pattern - do fix if pattern found
1433 tSCC zCtrl_Quotes_UseSelect0[] =
1434 "define[ \t]+[A-Z0-9_]+[ \t]+[A-Z0-9_]+CTRL[ \t]*\\( *[^,']";
1436 #define CTRL_QUOTES_USE_TEST_CT 1
1437 static tTestDesc aCtrl_Quotes_UseTests[] = {
1438 { TT_EGREP, zCtrl_Quotes_UseSelect0, (regex_t*)NULL }, };
1441 * Fix Command Arguments for Ctrl_Quotes_Use
1443 static const char* apzCtrl_Quotes_UsePatch[] = {
1448 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1450 * Description of Cxx_Unready fix
1452 tSCC zCxx_UnreadyName[] =
1456 * File name selection pattern
1458 tSCC zCxx_UnreadyList[] =
1459 "|sys/mman.h|rpc/types.h|";
1461 * Machine/OS name selection pattern
1463 #define apzCxx_UnreadyMachs (const char**)NULL
1466 * content selection pattern - do fix if pattern found
1468 tSCC zCxx_UnreadySelect0[] =
1472 * content bypass pattern - skip fix if pattern found
1474 tSCC zCxx_UnreadyBypass0[] =
1475 "\"C\"|__BEGIN_DECLS";
1477 #define CXX_UNREADY_TEST_CT 2
1478 static tTestDesc aCxx_UnreadyTests[] = {
1479 { TT_NEGREP, zCxx_UnreadyBypass0, (regex_t*)NULL },
1480 { TT_EGREP, zCxx_UnreadySelect0, (regex_t*)NULL }, };
1483 * Fix Command Arguments for Cxx_Unready
1485 static const char* apzCxx_UnreadyPatch[] = {
1487 "#ifdef __cplusplus\n\
1490 "#ifdef __cplusplus\n\
1495 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1497 * Description of Dec_Intern_Asm fix
1499 tSCC zDec_Intern_AsmName[] =
1503 * File name selection pattern
1505 tSCC zDec_Intern_AsmList[] =
1508 * Machine/OS name selection pattern
1510 #define apzDec_Intern_AsmMachs (const char**)NULL
1511 #define DEC_INTERN_ASM_TEST_CT 0
1512 #define aDec_Intern_AsmTests (tTestDesc*)NULL
1515 * Fix Command Arguments for Dec_Intern_Asm
1517 static const char* apzDec_Intern_AsmPatch[] = { "sed",
1518 "-e", "/^[ \t]*float[ \t]*fasm/i\\\n\
1520 "-e", "/^[ \t]*#[ \t]*pragma[ \t]*intrinsic([ \t]*dasm/a\\\n\
1524 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1526 * Description of Djgpp_Wchar_H fix
1528 tSCC zDjgpp_Wchar_HName[] =
1532 * File name selection pattern
1534 #define zDjgpp_Wchar_HList (char*)NULL
1536 * Machine/OS name selection pattern
1538 #define apzDjgpp_Wchar_HMachs (const char**)NULL
1541 * content selection pattern - do fix if pattern found
1543 tSCC zDjgpp_Wchar_HSelect0[] =
1547 * content bypass pattern - skip fix if pattern found
1549 tSCC zDjgpp_Wchar_HBypass0[] =
1552 #define DJGPP_WCHAR_H_TEST_CT 2
1553 static tTestDesc aDjgpp_Wchar_HTests[] = {
1554 { TT_NEGREP, zDjgpp_Wchar_HBypass0, (regex_t*)NULL },
1555 { TT_EGREP, zDjgpp_Wchar_HSelect0, (regex_t*)NULL }, };
1558 * Fix Command Arguments for Djgpp_Wchar_H
1560 static const char* apzDjgpp_Wchar_HPatch[] = {
1563 #include <sys/djtypes.h>",
1564 "#include <stddef.h>",
1567 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1569 * Description of Ecd_Cursor fix
1571 tSCC zEcd_CursorName[] =
1575 * File name selection pattern
1577 tSCC zEcd_CursorList[] =
1578 "|sunwindow/win_lock.h|sunwindow/win_cursor.h|";
1580 * Machine/OS name selection pattern
1582 #define apzEcd_CursorMachs (const char**)NULL
1585 * content selection pattern - do fix if pattern found
1587 tSCC zEcd_CursorSelect0[] =
1590 #define ECD_CURSOR_TEST_CT 1
1591 static tTestDesc aEcd_CursorTests[] = {
1592 { TT_EGREP, zEcd_CursorSelect0, (regex_t*)NULL }, };
1595 * Fix Command Arguments for Ecd_Cursor
1597 static const char* apzEcd_CursorPatch[] = {
1602 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1604 * Description of Freebsd_Gcc3_Breakage fix
1606 tSCC zFreebsd_Gcc3_BreakageName[] =
1607 "freebsd_gcc3_breakage";
1610 * File name selection pattern
1612 tSCC zFreebsd_Gcc3_BreakageList[] =
1615 * Machine/OS name selection pattern
1617 tSCC* apzFreebsd_Gcc3_BreakageMachs[] = {
1619 (const char*)NULL };
1622 * content selection pattern - do fix if pattern found
1624 tSCC zFreebsd_Gcc3_BreakageSelect0[] =
1625 "^#if __GNUC__ == 2 && __GNUC_MINOR__ >= 7$";
1628 * content bypass pattern - skip fix if pattern found
1630 tSCC zFreebsd_Gcc3_BreakageBypass0[] =
1631 "__GNUC__[ \\t]*([>=]=[ \\t]*[3-9]|>[ \\t]*2)";
1633 #define FREEBSD_GCC3_BREAKAGE_TEST_CT 2
1634 static tTestDesc aFreebsd_Gcc3_BreakageTests[] = {
1635 { TT_NEGREP, zFreebsd_Gcc3_BreakageBypass0, (regex_t*)NULL },
1636 { TT_EGREP, zFreebsd_Gcc3_BreakageSelect0, (regex_t*)NULL }, };
1639 * Fix Command Arguments for Freebsd_Gcc3_Breakage
1641 static const char* apzFreebsd_Gcc3_BreakagePatch[] = {
1643 "%0 || __GNUC__ >= 3",
1646 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1648 * Description of Gnu_Types fix
1650 tSCC zGnu_TypesName[] =
1654 * File name selection pattern
1656 tSCC zGnu_TypesList[] =
1657 "|sys/types.h|stdlib.h|sys/stdtypes.h|stddef.h|memory.h|unistd.h|";
1659 * Machine/OS name selection pattern
1661 #define apzGnu_TypesMachs (const char**)NULL
1664 * content selection pattern - do fix if pattern found
1666 tSCC zGnu_TypesSelect0[] =
1667 "^[ \t]*typedef[ \t]+.*[ \t](ptrdiff|size|wchar)_t;";
1670 * content bypass pattern - skip fix if pattern found
1672 tSCC zGnu_TypesBypass0[] =
1673 "_GCC_(PTRDIFF|SIZE|WCHAR)_T";
1675 #define GNU_TYPES_TEST_CT 2
1676 static tTestDesc aGnu_TypesTests[] = {
1677 { TT_NEGREP, zGnu_TypesBypass0, (regex_t*)NULL },
1678 { TT_EGREP, zGnu_TypesSelect0, (regex_t*)NULL }, };
1681 * Fix Command Arguments for Gnu_Types
1683 static const char* apzGnu_TypesPatch[] = {
1687 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1689 * Description of Hp_Inline fix
1691 tSCC zHp_InlineName[] =
1695 * File name selection pattern
1697 tSCC zHp_InlineList[] =
1698 "|sys/spinlock.h|machine/machparam.h|";
1700 * Machine/OS name selection pattern
1702 #define apzHp_InlineMachs (const char**)NULL
1705 * content selection pattern - do fix if pattern found
1707 tSCC zHp_InlineSelect0[] =
1708 "[ \t]*#[ \t]*include[ \t]+\"\\.\\./machine/";
1710 #define HP_INLINE_TEST_CT 1
1711 static tTestDesc aHp_InlineTests[] = {
1712 { TT_EGREP, zHp_InlineSelect0, (regex_t*)NULL }, };
1715 * Fix Command Arguments for Hp_Inline
1717 static const char* apzHp_InlinePatch[] = {
1720 "([ \t]*#[ \t]*include[ \t]+)\"\\.\\./machine/([a-z]+)\\.h\"",
1723 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1725 * Description of Hp_Sysfile fix
1727 tSCC zHp_SysfileName[] =
1731 * File name selection pattern
1733 tSCC zHp_SysfileList[] =
1736 * Machine/OS name selection pattern
1738 #define apzHp_SysfileMachs (const char**)NULL
1741 * content selection pattern - do fix if pattern found
1743 tSCC zHp_SysfileSelect0[] =
1746 #define HP_SYSFILE_TEST_CT 1
1747 static tTestDesc aHp_SysfileTests[] = {
1748 { TT_EGREP, zHp_SysfileSelect0, (regex_t*)NULL }, };
1751 * Fix Command Arguments for Hp_Sysfile
1753 static const char* apzHp_SysfilePatch[] = {
1755 "(struct file *, ...)",
1759 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1761 * Description of Hpux10_Cpp_Pow_Inline fix
1763 tSCC zHpux10_Cpp_Pow_InlineName[] =
1764 "hpux10_cpp_pow_inline";
1767 * File name selection pattern
1769 tSCC zHpux10_Cpp_Pow_InlineList[] =
1770 "|fixinc-test-limits.h|math.h|";
1772 * Machine/OS name selection pattern
1774 #define apzHpux10_Cpp_Pow_InlineMachs (const char**)NULL
1777 * content selection pattern - do fix if pattern found
1779 tSCC zHpux10_Cpp_Pow_InlineSelect0[] =
1780 "^# +ifdef +__cplusplus\n\
1782 +inline +double +pow\\(double +__d,int +__expon\\) +\\{\n\
1783 [ \t]+return +pow\\(__d,\\(double\\)__expon\\);\n\
1785 +extern +\"C\" +\\{\n\
1789 #define HPUX10_CPP_POW_INLINE_TEST_CT 1
1790 static tTestDesc aHpux10_Cpp_Pow_InlineTests[] = {
1791 { TT_EGREP, zHpux10_Cpp_Pow_InlineSelect0, (regex_t*)NULL }, };
1794 * Fix Command Arguments for Hpux10_Cpp_Pow_Inline
1796 static const char* apzHpux10_Cpp_Pow_InlinePatch[] = {
1801 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1803 * Description of Hpux11_Cpp_Pow_Inline fix
1805 tSCC zHpux11_Cpp_Pow_InlineName[] =
1806 "hpux11_cpp_pow_inline";
1809 * File name selection pattern
1811 tSCC zHpux11_Cpp_Pow_InlineList[] =
1814 * Machine/OS name selection pattern
1816 #define apzHpux11_Cpp_Pow_InlineMachs (const char**)NULL
1819 * content selection pattern - do fix if pattern found
1821 tSCC zHpux11_Cpp_Pow_InlineSelect0[] =
1822 " +inline double pow\\(double d,int expon\\) \\{\n\
1823 +return pow\\(d, \\(double\\)expon\\);\n\
1826 #define HPUX11_CPP_POW_INLINE_TEST_CT 1
1827 static tTestDesc aHpux11_Cpp_Pow_InlineTests[] = {
1828 { TT_EGREP, zHpux11_Cpp_Pow_InlineSelect0, (regex_t*)NULL }, };
1831 * Fix Command Arguments for Hpux11_Cpp_Pow_Inline
1833 static const char* apzHpux11_Cpp_Pow_InlinePatch[] = {
1838 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1840 * Description of Hpux10_Ctype_Declarations1 fix
1842 tSCC zHpux10_Ctype_Declarations1Name[] =
1843 "hpux10_ctype_declarations1";
1846 * File name selection pattern
1848 tSCC zHpux10_Ctype_Declarations1List[] =
1851 * Machine/OS name selection pattern
1853 #define apzHpux10_Ctype_Declarations1Machs (const char**)NULL
1856 * content selection pattern - do fix if pattern found
1858 tSCC zHpux10_Ctype_Declarations1Select0[] =
1859 "^#[ \t]*define _toupper\\(__c\\)[ \t]*__toupper\\(__c\\)";
1862 * content bypass pattern - skip fix if pattern found
1864 tSCC zHpux10_Ctype_Declarations1Bypass0[] =
1865 "^[ \t]*extern[ \t]*int[ \t]*__tolower[ \t]*\\(";
1867 #define HPUX10_CTYPE_DECLARATIONS1_TEST_CT 2
1868 static tTestDesc aHpux10_Ctype_Declarations1Tests[] = {
1869 { TT_NEGREP, zHpux10_Ctype_Declarations1Bypass0, (regex_t*)NULL },
1870 { TT_EGREP, zHpux10_Ctype_Declarations1Select0, (regex_t*)NULL }, };
1873 * Fix Command Arguments for Hpux10_Ctype_Declarations1
1875 static const char* apzHpux10_Ctype_Declarations1Patch[] = {
1877 "#ifdef _PROTOTYPES\n\
1878 extern int __tolower(int);\n\
1879 extern int __toupper(int);\n\
1880 #else /* NOT _PROTOTYPES */\n\
1881 extern int __tolower();\n\
1882 extern int __toupper();\n\
1883 #endif /* _PROTOTYPES */\n\n\
1887 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1889 * Description of Hpux10_Ctype_Declarations2 fix
1891 tSCC zHpux10_Ctype_Declarations2Name[] =
1892 "hpux10_ctype_declarations2";
1895 * File name selection pattern
1897 tSCC zHpux10_Ctype_Declarations2List[] =
1900 * Machine/OS name selection pattern
1902 #define apzHpux10_Ctype_Declarations2Machs (const char**)NULL
1905 * content selection pattern - do fix if pattern found
1907 tSCC zHpux10_Ctype_Declarations2Select0[] =
1908 "^# if defined\\(_SB_CTYPE_MACROS\\) && \\!defined\\(__lint\\)";
1911 * content bypass pattern - skip fix if pattern found
1913 tSCC zHpux10_Ctype_Declarations2Bypass0[] =
1914 "^[ \t]*extern[ \t]*int[ \t]*_isalnum[ \t]*\\(";
1916 #define HPUX10_CTYPE_DECLARATIONS2_TEST_CT 2
1917 static tTestDesc aHpux10_Ctype_Declarations2Tests[] = {
1918 { TT_NEGREP, zHpux10_Ctype_Declarations2Bypass0, (regex_t*)NULL },
1919 { TT_EGREP, zHpux10_Ctype_Declarations2Select0, (regex_t*)NULL }, };
1922 * Fix Command Arguments for Hpux10_Ctype_Declarations2
1924 static const char* apzHpux10_Ctype_Declarations2Patch[] = {
1927 #ifdef _PROTOTYPES\n\
1928 extern int _isalnum(int);\n\
1929 extern int _isalpha(int);\n\
1930 extern int _iscntrl(int);\n\
1931 extern int _isdigit(int);\n\
1932 extern int _isgraph(int);\n\
1933 extern int _islower(int);\n\
1934 extern int _isprint(int);\n\
1935 extern int _ispunct(int);\n\
1936 extern int _isspace(int);\n\
1937 extern int _isupper(int);\n\
1938 extern int _isxdigit(int);\n\
1939 # else /* not _PROTOTYPES */\n\
1940 extern int _isalnum();\n\
1941 extern int _isalpha();\n\
1942 extern int _iscntrl();\n\
1943 extern int _isdigit();\n\
1944 extern int _isgraph();\n\
1945 extern int _islower();\n\
1946 extern int _isprint();\n\
1947 extern int _ispunct();\n\
1948 extern int _isspace();\n\
1949 extern int _isupper();\n\
1950 extern int _isxdigit();\n\
1951 #endif /* _PROTOTYPES */\n",
1954 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1956 * Description of Hpux11_Abs fix
1958 tSCC zHpux11_AbsName[] =
1962 * File name selection pattern
1964 tSCC zHpux11_AbsList[] =
1967 * Machine/OS name selection pattern
1969 tSCC* apzHpux11_AbsMachs[] = {
1971 (const char*)NULL };
1974 * content selection pattern - do fix if pattern found
1976 tSCC zHpux11_AbsSelect0[] =
1977 "ifndef _MATH_INCLUDED";
1979 #define HPUX11_ABS_TEST_CT 1
1980 static tTestDesc aHpux11_AbsTests[] = {
1981 { TT_EGREP, zHpux11_AbsSelect0, (regex_t*)NULL }, };
1984 * Fix Command Arguments for Hpux11_Abs
1986 static const char* apzHpux11_AbsPatch[] = {
1988 "if !defined(_MATH_INCLUDED) || defined(__GNUG__)",
1991 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1993 * Description of Hpux11_Fabsf fix
1995 tSCC zHpux11_FabsfName[] =
1999 * File name selection pattern
2001 tSCC zHpux11_FabsfList[] =
2004 * Machine/OS name selection pattern
2006 #define apzHpux11_FabsfMachs (const char**)NULL
2009 * content selection pattern - do fix if pattern found
2011 tSCC zHpux11_FabsfSelect0[] =
2012 "^[ \t]*#[ \t]*define[ \t]+fabsf\\(.*";
2015 * content bypass pattern - skip fix if pattern found
2017 tSCC zHpux11_FabsfBypass0[] =
2020 #define HPUX11_FABSF_TEST_CT 2
2021 static tTestDesc aHpux11_FabsfTests[] = {
2022 { TT_NEGREP, zHpux11_FabsfBypass0, (regex_t*)NULL },
2023 { TT_EGREP, zHpux11_FabsfSelect0, (regex_t*)NULL }, };
2026 * Fix Command Arguments for Hpux11_Fabsf
2028 static const char* apzHpux11_FabsfPatch[] = {
2030 "#ifndef __cplusplus\n\
2035 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2037 * Description of Hpux11_Size_T fix
2039 tSCC zHpux11_Size_TName[] =
2043 * File name selection pattern
2045 #define zHpux11_Size_TList (char*)NULL
2047 * Machine/OS name selection pattern
2049 tSCC* apzHpux11_Size_TMachs[] = {
2051 (const char*)NULL };
2054 * content selection pattern - do fix if pattern found
2056 tSCC zHpux11_Size_TSelect0[] =
2059 #define HPUX11_SIZE_T_TEST_CT 1
2060 static tTestDesc aHpux11_Size_TTests[] = {
2061 { TT_EGREP, zHpux11_Size_TSelect0, (regex_t*)NULL }, };
2064 * Fix Command Arguments for Hpux11_Size_T
2066 static const char* apzHpux11_Size_TPatch[] = {
2071 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2073 * Description of Hpux11_Uint32_C fix
2075 tSCC zHpux11_Uint32_CName[] =
2079 * File name selection pattern
2081 tSCC zHpux11_Uint32_CList[] =
2084 * Machine/OS name selection pattern
2086 #define apzHpux11_Uint32_CMachs (const char**)NULL
2089 * content selection pattern - do fix if pattern found
2091 tSCC zHpux11_Uint32_CSelect0[] =
2092 "^#define UINT32_C\\(__c\\)[ \t]*__CONCAT__\\(__CONCAT_U__\\(__c\\),l\\)";
2094 #define HPUX11_UINT32_C_TEST_CT 1
2095 static tTestDesc aHpux11_Uint32_CTests[] = {
2096 { TT_EGREP, zHpux11_Uint32_CSelect0, (regex_t*)NULL }, };
2099 * Fix Command Arguments for Hpux11_Uint32_C
2101 static const char* apzHpux11_Uint32_CPatch[] = {
2103 "#define UINT32_C(__c) __CONCAT__(__c,ul)",
2106 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2108 * Description of Hpux11_Vsnprintf fix
2110 tSCC zHpux11_VsnprintfName[] =
2114 * File name selection pattern
2116 tSCC zHpux11_VsnprintfList[] =
2119 * Machine/OS name selection pattern
2121 #define apzHpux11_VsnprintfMachs (const char**)NULL
2124 * content selection pattern - do fix if pattern found
2126 tSCC zHpux11_VsnprintfSelect0[] =
2127 "(extern int vsnprintf\\(char \\*, _[hpux]*_size_t, const char \\*,) __va__list\\);";
2129 #define HPUX11_VSNPRINTF_TEST_CT 1
2130 static tTestDesc aHpux11_VsnprintfTests[] = {
2131 { TT_EGREP, zHpux11_VsnprintfSelect0, (regex_t*)NULL }, };
2134 * Fix Command Arguments for Hpux11_Vsnprintf
2136 static const char* apzHpux11_VsnprintfPatch[] = {
2141 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2143 * Description of Hpux11_Snprintf fix
2145 tSCC zHpux11_SnprintfName[] =
2149 * File name selection pattern
2151 tSCC zHpux11_SnprintfList[] =
2154 * Machine/OS name selection pattern
2156 #define apzHpux11_SnprintfMachs (const char**)NULL
2159 * content selection pattern - do fix if pattern found
2161 tSCC zHpux11_SnprintfSelect0[] =
2162 "(extern int snprintf *\\(char *\\*, *(|__|_hpux_)size_t,) *(char *\\*, *\\.\\.\\.\\);)";
2164 #define HPUX11_SNPRINTF_TEST_CT 1
2165 static tTestDesc aHpux11_SnprintfTests[] = {
2166 { TT_EGREP, zHpux11_SnprintfSelect0, (regex_t*)NULL }, };
2169 * Fix Command Arguments for Hpux11_Snprintf
2171 static const char* apzHpux11_SnprintfPatch[] = {
2176 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2178 * Description of Hpux8_Bogus_Inlines fix
2180 tSCC zHpux8_Bogus_InlinesName[] =
2181 "hpux8_bogus_inlines";
2184 * File name selection pattern
2186 tSCC zHpux8_Bogus_InlinesList[] =
2189 * Machine/OS name selection pattern
2191 #define apzHpux8_Bogus_InlinesMachs (const char**)NULL
2194 * content selection pattern - do fix if pattern found
2196 tSCC zHpux8_Bogus_InlinesSelect0[] =
2199 #define HPUX8_BOGUS_INLINES_TEST_CT 1
2200 static tTestDesc aHpux8_Bogus_InlinesTests[] = {
2201 { TT_EGREP, zHpux8_Bogus_InlinesSelect0, (regex_t*)NULL }, };
2204 * Fix Command Arguments for Hpux8_Bogus_Inlines
2206 static const char* apzHpux8_Bogus_InlinesPatch[] = { "sed",
2207 "-e", "s@inline int abs(int [a-z][a-z]*) {.*}@extern \"C\" int abs(int);@",
2208 "-e", "s@inline double abs(double [a-z][a-z]*) {.*}@@",
2209 "-e", "s@inline int sqr(int [a-z][a-z]*) {.*}@@",
2210 "-e", "s@inline double sqr(double [a-z][a-z]*) {.*}@@",
2213 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2215 * Description of Hpux_Ctype_Macros fix
2217 tSCC zHpux_Ctype_MacrosName[] =
2218 "hpux_ctype_macros";
2221 * File name selection pattern
2223 tSCC zHpux_Ctype_MacrosList[] =
2226 * Machine/OS name selection pattern
2228 #define apzHpux_Ctype_MacrosMachs (const char**)NULL
2231 * content selection pattern - do fix if pattern found
2233 tSCC zHpux_Ctype_MacrosSelect0[] =
2234 "((: |\\()__SB_masks \\? )(__SB_masks\\[__(alnum|c)\\] & _IS)";
2236 #define HPUX_CTYPE_MACROS_TEST_CT 1
2237 static tTestDesc aHpux_Ctype_MacrosTests[] = {
2238 { TT_EGREP, zHpux_Ctype_MacrosSelect0, (regex_t*)NULL }, };
2241 * Fix Command Arguments for Hpux_Ctype_Macros
2243 static const char* apzHpux_Ctype_MacrosPatch[] = {
2248 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2250 * Description of Hpux_Long_Double fix
2252 tSCC zHpux_Long_DoubleName[] =
2256 * File name selection pattern
2258 tSCC zHpux_Long_DoubleList[] =
2261 * Machine/OS name selection pattern
2263 #define apzHpux_Long_DoubleMachs (const char**)NULL
2266 * content selection pattern - do fix if pattern found
2268 tSCC zHpux_Long_DoubleSelect0[] =
2269 "extern[ \t]long_double[ \t]strtold";
2272 * content bypass pattern - skip fix if pattern found
2274 tSCC zHpux_Long_DoubleBypass0[] =
2277 #define HPUX_LONG_DOUBLE_TEST_CT 2
2278 static tTestDesc aHpux_Long_DoubleTests[] = {
2279 { TT_NEGREP, zHpux_Long_DoubleBypass0, (regex_t*)NULL },
2280 { TT_EGREP, zHpux_Long_DoubleSelect0, (regex_t*)NULL }, };
2283 * Fix Command Arguments for Hpux_Long_Double
2285 static const char* apzHpux_Long_DoublePatch[] = { "sed",
2286 "-e", "/^#[ \t]*ifndef _LONG_DOUBLE/,/\\/\\* _LONG_DOUBLE \\*\\//D",
2287 "-e", "s/long_double/long double/g",
2290 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2292 * Description of Hpux_Maxint fix
2294 tSCC zHpux_MaxintName[] =
2298 * File name selection pattern
2300 tSCC zHpux_MaxintList[] =
2301 "|sys/param.h|values.h|";
2303 * Machine/OS name selection pattern
2305 #define apzHpux_MaxintMachs (const char**)NULL
2308 * content selection pattern - do fix if pattern found
2310 tSCC zHpux_MaxintSelect0[] =
2311 "^#[ \t]*define[ \t]+MAXINT[ \t]";
2314 * content bypass pattern - skip fix if pattern found
2316 tSCC zHpux_MaxintBypass0[] =
2317 "^#[ \t]*ifndef[ \t]+MAXINT";
2320 * perform the 'test' shell command - do fix on success
2322 tSCC zHpux_MaxintTest0[] =
2323 "-n \"`egrep '#[ \t]*define[ \t]+MAXINT[ \t]' sys/param.h`\"";
2325 #define HPUX_MAXINT_TEST_CT 3
2326 static tTestDesc aHpux_MaxintTests[] = {
2327 { TT_TEST, zHpux_MaxintTest0, 0 /* unused */ },
2328 { TT_NEGREP, zHpux_MaxintBypass0, (regex_t*)NULL },
2329 { TT_EGREP, zHpux_MaxintSelect0, (regex_t*)NULL }, };
2332 * Fix Command Arguments for Hpux_Maxint
2334 static const char* apzHpux_MaxintPatch[] = {
2339 "^#[ \t]*define[ \t]+MAXINT[ \t].*",
2342 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2344 * Description of Hpux_Systime fix
2346 tSCC zHpux_SystimeName[] =
2350 * File name selection pattern
2352 tSCC zHpux_SystimeList[] =
2355 * Machine/OS name selection pattern
2357 #define apzHpux_SystimeMachs (const char**)NULL
2360 * content selection pattern - do fix if pattern found
2362 tSCC zHpux_SystimeSelect0[] =
2363 "^extern struct sigevent;";
2365 #define HPUX_SYSTIME_TEST_CT 1
2366 static tTestDesc aHpux_SystimeTests[] = {
2367 { TT_EGREP, zHpux_SystimeSelect0, (regex_t*)NULL }, };
2370 * Fix Command Arguments for Hpux_Systime
2372 static const char* apzHpux_SystimePatch[] = {
2377 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2379 * Description of Int_Abort_Free_And_Exit fix
2381 tSCC zInt_Abort_Free_And_ExitName[] =
2382 "int_abort_free_and_exit";
2385 * File name selection pattern
2387 tSCC zInt_Abort_Free_And_ExitList[] =
2390 * Machine/OS name selection pattern
2392 #define apzInt_Abort_Free_And_ExitMachs (const char**)NULL
2395 * content selection pattern - do fix if pattern found
2397 tSCC zInt_Abort_Free_And_ExitSelect0[] =
2398 "int[ \t]+(abort|free|exit)[ \t]*\\(";
2400 #define INT_ABORT_FREE_AND_EXIT_TEST_CT 1
2401 static tTestDesc aInt_Abort_Free_And_ExitTests[] = {
2402 { TT_EGREP, zInt_Abort_Free_And_ExitSelect0, (regex_t*)NULL }, };
2405 * Fix Command Arguments for Int_Abort_Free_And_Exit
2407 static const char* apzInt_Abort_Free_And_ExitPatch[] = {
2412 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2414 * Description of Io_Quotes_Def fix
2416 tSCC zIo_Quotes_DefName[] =
2420 * File name selection pattern
2422 #define zIo_Quotes_DefList (char*)NULL
2424 * Machine/OS name selection pattern
2426 #define apzIo_Quotes_DefMachs (const char**)NULL
2429 * content selection pattern - do fix if pattern found
2431 tSCC zIo_Quotes_DefSelect0[] =
2432 "define[ \t]+[A-Z0-9_]+IO[A-Z]*\\([a-zA-Z][,)]";
2434 #define IO_QUOTES_DEF_TEST_CT 1
2435 static tTestDesc aIo_Quotes_DefTests[] = {
2436 { TT_EGREP, zIo_Quotes_DefSelect0, (regex_t*)NULL }, };
2439 * Fix Command Arguments for Io_Quotes_Def
2441 static const char* apzIo_Quotes_DefPatch[] = {
2446 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2448 * Description of Io_Quotes_Use fix
2450 tSCC zIo_Quotes_UseName[] =
2454 * File name selection pattern
2456 #define zIo_Quotes_UseList (char*)NULL
2458 * Machine/OS name selection pattern
2460 #define apzIo_Quotes_UseMachs (const char**)NULL
2463 * content selection pattern - do fix if pattern found
2465 tSCC zIo_Quotes_UseSelect0[] =
2466 "define[ \t]+[A-Z0-9_]+[ \t]+[A-Z0-9_]+IO[A-Z]*[ \t]*\\( *[^,']";
2468 #define IO_QUOTES_USE_TEST_CT 1
2469 static tTestDesc aIo_Quotes_UseTests[] = {
2470 { TT_EGREP, zIo_Quotes_UseSelect0, (regex_t*)NULL }, };
2473 * Fix Command Arguments for Io_Quotes_Use
2475 static const char* apzIo_Quotes_UsePatch[] = {
2480 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2482 * Description of Ip_Missing_Semi fix
2484 tSCC zIp_Missing_SemiName[] =
2488 * File name selection pattern
2490 tSCC zIp_Missing_SemiList[] =
2493 * Machine/OS name selection pattern
2495 #define apzIp_Missing_SemiMachs (const char**)NULL
2498 * content selection pattern - do fix if pattern found
2500 tSCC zIp_Missing_SemiSelect0[] =
2503 #define IP_MISSING_SEMI_TEST_CT 1
2504 static tTestDesc aIp_Missing_SemiTests[] = {
2505 { TT_EGREP, zIp_Missing_SemiSelect0, (regex_t*)NULL }, };
2508 * Fix Command Arguments for Ip_Missing_Semi
2510 static const char* apzIp_Missing_SemiPatch[] = { "sed",
2511 "-e", "/^struct/,/^};/s/}$/};/",
2514 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2516 * Description of Irix___Restrict fix
2518 tSCC zIrix___RestrictName[] =
2522 * File name selection pattern
2524 tSCC zIrix___RestrictList[] =
2525 "|internal/sgimacros.h|";
2527 * Machine/OS name selection pattern
2529 tSCC* apzIrix___RestrictMachs[] = {
2531 (const char*)NULL };
2534 * content selection pattern - do fix if pattern found
2536 tSCC zIrix___RestrictSelect0[] =
2538 )(#[ \t]*define __restrict restrict)";
2540 #define IRIX___RESTRICT_TEST_CT 1
2541 static tTestDesc aIrix___RestrictTests[] = {
2542 { TT_EGREP, zIrix___RestrictSelect0, (regex_t*)NULL }, };
2545 * Fix Command Arguments for Irix___Restrict
2547 static const char* apzIrix___RestrictPatch[] = {
2549 "%1# ifndef __cplusplus\n\
2554 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2556 * Description of Irix_Asm_Apostrophe fix
2558 tSCC zIrix_Asm_ApostropheName[] =
2559 "irix_asm_apostrophe";
2562 * File name selection pattern
2564 tSCC zIrix_Asm_ApostropheList[] =
2567 * Machine/OS name selection pattern
2569 #define apzIrix_Asm_ApostropheMachs (const char**)NULL
2572 * content selection pattern - do fix if pattern found
2574 tSCC zIrix_Asm_ApostropheSelect0[] =
2575 "^[ \t]*#.*[Ww]e're";
2577 #define IRIX_ASM_APOSTROPHE_TEST_CT 1
2578 static tTestDesc aIrix_Asm_ApostropheTests[] = {
2579 { TT_EGREP, zIrix_Asm_ApostropheSelect0, (regex_t*)NULL }, };
2582 * Fix Command Arguments for Irix_Asm_Apostrophe
2584 static const char* apzIrix_Asm_ApostrophePatch[] = {
2587 "^([ \t]*#.*[Ww]e)'re",
2590 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2592 * Description of Irix_Limits_Const fix
2594 tSCC zIrix_Limits_ConstName[] =
2595 "irix_limits_const";
2598 * File name selection pattern
2600 tSCC zIrix_Limits_ConstList[] =
2601 "|fixinc-test-limits.h|limits.h|";
2603 * Machine/OS name selection pattern
2605 #define apzIrix_Limits_ConstMachs (const char**)NULL
2608 * content selection pattern - do fix if pattern found
2610 tSCC zIrix_Limits_ConstSelect0[] =
2613 #define IRIX_LIMITS_CONST_TEST_CT 1
2614 static tTestDesc aIrix_Limits_ConstTests[] = {
2615 { TT_EGREP, zIrix_Limits_ConstSelect0, (regex_t*)NULL }, };
2618 * Fix Command Arguments for Irix_Limits_Const
2620 static const char* apzIrix_Limits_ConstPatch[] = {
2625 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2627 * Description of Irix_Socklen_T fix
2629 tSCC zIrix_Socklen_TName[] =
2633 * File name selection pattern
2635 tSCC zIrix_Socklen_TList[] =
2638 * Machine/OS name selection pattern
2640 tSCC* apzIrix_Socklen_TMachs[] = {
2642 (const char*)NULL };
2645 * content selection pattern - do fix if pattern found
2647 tSCC zIrix_Socklen_TSelect0[] =
2648 "(#define _SOCKLEN_T\n\
2649 )(typedef u_int32_t socklen_t;)";
2651 #define IRIX_SOCKLEN_T_TEST_CT 1
2652 static tTestDesc aIrix_Socklen_TTests[] = {
2653 { TT_EGREP, zIrix_Socklen_TSelect0, (regex_t*)NULL }, };
2656 * Fix Command Arguments for Irix_Socklen_T
2658 static const char* apzIrix_Socklen_TPatch[] = {
2660 "%1#if _NO_XOPEN4 && _NO_XOPEN5\n\
2661 typedef int socklen_t;\n\
2664 #endif /* _NO_XOPEN4 && _NO_XOPEN5 */",
2667 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2669 * Description of Irix_Stdio_Va_List fix
2671 tSCC zIrix_Stdio_Va_ListName[] =
2672 "irix_stdio_va_list";
2675 * File name selection pattern
2677 tSCC zIrix_Stdio_Va_ListList[] =
2678 "|stdio.h|internal/stdio_core.h|";
2680 * Machine/OS name selection pattern
2682 #define apzIrix_Stdio_Va_ListMachs (const char**)NULL
2685 * content selection pattern - do fix if pattern found
2687 tSCC zIrix_Stdio_Va_ListSelect0[] =
2688 "/\\* va_list \\*/ char \\*";
2690 #define IRIX_STDIO_VA_LIST_TEST_CT 1
2691 static tTestDesc aIrix_Stdio_Va_ListTests[] = {
2692 { TT_EGREP, zIrix_Stdio_Va_ListSelect0, (regex_t*)NULL }, };
2695 * Fix Command Arguments for Irix_Stdio_Va_List
2697 static const char* apzIrix_Stdio_Va_ListPatch[] = {
2702 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2704 * Description of Irix_Wcsftime fix
2706 tSCC zIrix_WcsftimeName[] =
2710 * File name selection pattern
2712 tSCC zIrix_WcsftimeList[] =
2713 "|internal/wchar_core.h|";
2715 * Machine/OS name selection pattern
2717 tSCC* apzIrix_WcsftimeMachs[] = {
2719 (const char*)NULL };
2722 * content selection pattern - do fix if pattern found
2724 tSCC zIrix_WcsftimeSelect0[] =
2726 (extern size_t[ \t]+wcsftime.*const char *.*)";
2728 #define IRIX_WCSFTIME_TEST_CT 1
2729 static tTestDesc aIrix_WcsftimeTests[] = {
2730 { TT_EGREP, zIrix_WcsftimeSelect0, (regex_t*)NULL }, };
2733 * Fix Command Arguments for Irix_Wcsftime
2735 static const char* apzIrix_WcsftimePatch[] = {
2737 "#if _NO_XOPEN5 && !defined(__c99)\n\
2741 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2743 * Description of Isc_Fmod fix
2745 tSCC zIsc_FmodName[] =
2749 * File name selection pattern
2751 tSCC zIsc_FmodList[] =
2754 * Machine/OS name selection pattern
2756 #define apzIsc_FmodMachs (const char**)NULL
2759 * content selection pattern - do fix if pattern found
2761 tSCC zIsc_FmodSelect0[] =
2764 #define ISC_FMOD_TEST_CT 1
2765 static tTestDesc aIsc_FmodTests[] = {
2766 { TT_EGREP, zIsc_FmodSelect0, (regex_t*)NULL }, };
2769 * Fix Command Arguments for Isc_Fmod
2771 static const char* apzIsc_FmodPatch[] = {
2773 "fmod(double, double)",
2776 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2778 * Description of Isc_Omits_With_Stdc fix
2780 tSCC zIsc_Omits_With_StdcName[] =
2781 "isc_omits_with_stdc";
2784 * File name selection pattern
2786 tSCC zIsc_Omits_With_StdcList[] =
2787 "|stdio.h|math.h|ctype.h|sys/limits.h|sys/fcntl.h|sys/dirent.h|";
2789 * Machine/OS name selection pattern
2791 #define apzIsc_Omits_With_StdcMachs (const char**)NULL
2794 * content selection pattern - do fix if pattern found
2796 tSCC zIsc_Omits_With_StdcSelect0[] =
2797 "!defined\\(__STDC__\\) && !defined\\(_POSIX_SOURCE\\)";
2799 #define ISC_OMITS_WITH_STDC_TEST_CT 1
2800 static tTestDesc aIsc_Omits_With_StdcTests[] = {
2801 { TT_EGREP, zIsc_Omits_With_StdcSelect0, (regex_t*)NULL }, };
2804 * Fix Command Arguments for Isc_Omits_With_Stdc
2806 static const char* apzIsc_Omits_With_StdcPatch[] = {
2808 "!defined(_POSIX_SOURCE)",
2811 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2813 * Description of Kandr_Concat fix
2815 tSCC zKandr_ConcatName[] =
2819 * File name selection pattern
2821 tSCC zKandr_ConcatList[] =
2822 "|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|";
2824 * Machine/OS name selection pattern
2826 #define apzKandr_ConcatMachs (const char**)NULL
2829 * content selection pattern - do fix if pattern found
2831 tSCC zKandr_ConcatSelect0[] =
2834 #define KANDR_CONCAT_TEST_CT 1
2835 static tTestDesc aKandr_ConcatTests[] = {
2836 { TT_EGREP, zKandr_ConcatSelect0, (regex_t*)NULL }, };
2839 * Fix Command Arguments for Kandr_Concat
2841 static const char* apzKandr_ConcatPatch[] = {
2846 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2848 * Description of Libc1_G_Va_List fix
2850 tSCC zLibc1_G_Va_ListName[] =
2854 * File name selection pattern
2856 tSCC zLibc1_G_Va_ListList[] =
2859 * Machine/OS name selection pattern
2861 tSCC* apzLibc1_G_Va_ListMachs[] = {
2863 (const char*)NULL };
2866 * content selection pattern - do fix if pattern found
2868 tSCC zLibc1_G_Va_ListSelect0[] =
2869 "typedef void \\* _G_va_list;";
2871 #define LIBC1_G_VA_LIST_TEST_CT 1
2872 static tTestDesc aLibc1_G_Va_ListTests[] = {
2873 { TT_EGREP, zLibc1_G_Va_ListSelect0, (regex_t*)NULL }, };
2876 * Fix Command Arguments for Libc1_G_Va_List
2878 static const char* apzLibc1_G_Va_ListPatch[] = {
2880 "typedef __builtin_va_list _G_va_list;",
2883 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2885 * Description of Libc1_Ifdefd_Memx fix
2887 tSCC zLibc1_Ifdefd_MemxName[] =
2888 "libc1_ifdefd_memx";
2891 * File name selection pattern
2893 tSCC zLibc1_Ifdefd_MemxList[] =
2894 "|testing.h|string.h|";
2896 * Machine/OS name selection pattern
2898 #define apzLibc1_Ifdefd_MemxMachs (const char**)NULL
2901 * content selection pattern - do fix if pattern found
2903 tSCC zLibc1_Ifdefd_MemxSelect0[] =
2904 "' is a built-in function for gcc 2\\.x\\. \\*/";
2907 * content bypass pattern - skip fix if pattern found
2909 tSCC zLibc1_Ifdefd_MemxBypass0[] =
2912 #define LIBC1_IFDEFD_MEMX_TEST_CT 2
2913 static tTestDesc aLibc1_Ifdefd_MemxTests[] = {
2914 { TT_NEGREP, zLibc1_Ifdefd_MemxBypass0, (regex_t*)NULL },
2915 { TT_EGREP, zLibc1_Ifdefd_MemxSelect0, (regex_t*)NULL }, };
2918 * Fix Command Arguments for Libc1_Ifdefd_Memx
2920 static const char* apzLibc1_Ifdefd_MemxPatch[] = {
2923 "/\\* `mem...' is a built-in function for gcc 2\\.x\\. \\*/\n\
2924 #if defined\\(__STDC__\\) && __GNUC__ < 2\n\
2926 extern [a-z_]+ mem.*(\n\
2931 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2933 * Description of Limits_Ifndefs fix
2935 tSCC zLimits_IfndefsName[] =
2939 * File name selection pattern
2941 tSCC zLimits_IfndefsList[] =
2942 "|sys/limits.h|limits.h|";
2944 * Machine/OS name selection pattern
2946 #define apzLimits_IfndefsMachs (const char**)NULL
2949 * content selection pattern - do fix if pattern found
2951 tSCC zLimits_IfndefsSelect0[] =
2952 "^[ \t]*#[ \t]*define[ \t]+((FLT|DBL)_(MIN|MAX|DIG))[ \t].*";
2955 * content bypass pattern - skip fix if pattern found
2957 tSCC zLimits_IfndefsBypass0[] =
2958 "ifndef[ \t]+FLT_(MIN|MAX)";
2960 #define LIMITS_IFNDEFS_TEST_CT 2
2961 static tTestDesc aLimits_IfndefsTests[] = {
2962 { TT_NEGREP, zLimits_IfndefsBypass0, (regex_t*)NULL },
2963 { TT_EGREP, zLimits_IfndefsSelect0, (regex_t*)NULL }, };
2966 * Fix Command Arguments for Limits_Ifndefs
2968 static const char* apzLimits_IfndefsPatch[] = {
2975 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2977 * Description of Lynx_Void_Int fix
2979 tSCC zLynx_Void_IntName[] =
2983 * File name selection pattern
2985 tSCC zLynx_Void_IntList[] =
2988 * Machine/OS name selection pattern
2990 #define apzLynx_Void_IntMachs (const char**)NULL
2993 * content selection pattern - do fix if pattern found
2995 tSCC zLynx_Void_IntSelect0[] =
2996 "#[ \t]*define[ \t]+void[ \t]+int[ \t]*";
2998 #define LYNX_VOID_INT_TEST_CT 1
2999 static tTestDesc aLynx_Void_IntTests[] = {
3000 { TT_EGREP, zLynx_Void_IntSelect0, (regex_t*)NULL }, };
3003 * Fix Command Arguments for Lynx_Void_Int
3005 static const char* apzLynx_Void_IntPatch[] = {
3010 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3012 * Description of Lynxos_Fcntl_Proto fix
3014 tSCC zLynxos_Fcntl_ProtoName[] =
3015 "lynxos_fcntl_proto";
3018 * File name selection pattern
3020 tSCC zLynxos_Fcntl_ProtoList[] =
3023 * Machine/OS name selection pattern
3025 #define apzLynxos_Fcntl_ProtoMachs (const char**)NULL
3028 * content selection pattern - do fix if pattern found
3030 tSCC zLynxos_Fcntl_ProtoSelect0[] =
3031 "fcntl[ \t]*\\(int, int, int\\)";
3033 #define LYNXOS_FCNTL_PROTO_TEST_CT 1
3034 static tTestDesc aLynxos_Fcntl_ProtoTests[] = {
3035 { TT_EGREP, zLynxos_Fcntl_ProtoSelect0, (regex_t*)NULL }, };
3038 * Fix Command Arguments for Lynxos_Fcntl_Proto
3040 static const char* apzLynxos_Fcntl_ProtoPatch[] = {
3043 "(fcntl[ \t]*\\(int, int, )int\\)",
3046 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3048 * Description of Machine_Ansi_H_Va_List fix
3050 tSCC zMachine_Ansi_H_Va_ListName[] =
3051 "machine_ansi_h_va_list";
3054 * File name selection pattern
3056 #define zMachine_Ansi_H_Va_ListList (char*)NULL
3058 * Machine/OS name selection pattern
3060 #define apzMachine_Ansi_H_Va_ListMachs (const char**)NULL
3063 * content selection pattern - do fix if pattern found
3065 tSCC zMachine_Ansi_H_Va_ListSelect0[] =
3066 "define[ \t]+_BSD_VA_LIST_[ \t]";
3069 * content bypass pattern - skip fix if pattern found
3071 tSCC zMachine_Ansi_H_Va_ListBypass0[] =
3072 "__builtin_va_list";
3074 #define MACHINE_ANSI_H_VA_LIST_TEST_CT 2
3075 static tTestDesc aMachine_Ansi_H_Va_ListTests[] = {
3076 { TT_NEGREP, zMachine_Ansi_H_Va_ListBypass0, (regex_t*)NULL },
3077 { TT_EGREP, zMachine_Ansi_H_Va_ListSelect0, (regex_t*)NULL }, };
3080 * Fix Command Arguments for Machine_Ansi_H_Va_List
3082 static const char* apzMachine_Ansi_H_Va_ListPatch[] = {
3084 "%1__builtin_va_list",
3085 "(define[ \t]+_BSD_VA_LIST_[ \t]+).*",
3088 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3090 * Description of Machine_Name fix
3092 tSCC zMachine_NameName[] =
3096 * File name selection pattern
3098 #define zMachine_NameList (char*)NULL
3100 * Machine/OS name selection pattern
3102 #define apzMachine_NameMachs (const char**)NULL
3105 * perform the C function call test
3107 tSCC zMachine_NameFTst0[] = "machine_name";
3109 #define MACHINE_NAME_TEST_CT 1
3110 static tTestDesc aMachine_NameTests[] = {
3111 { TT_FUNCTION, zMachine_NameFTst0, 0 /* unused */ }, };
3114 * Fix Command Arguments for Machine_Name
3116 static const char* apzMachine_NamePatch[] = {
3120 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3122 * Description of Math_Exception fix
3124 tSCC zMath_ExceptionName[] =
3128 * File name selection pattern
3130 tSCC zMath_ExceptionList[] =
3133 * Machine/OS name selection pattern
3135 #define apzMath_ExceptionMachs (const char**)NULL
3138 * content selection pattern - do fix if pattern found
3140 tSCC zMath_ExceptionSelect0[] =
3144 * content bypass pattern - skip fix if pattern found
3146 tSCC zMath_ExceptionBypass0[] =
3149 #define MATH_EXCEPTION_TEST_CT 2
3150 static tTestDesc aMath_ExceptionTests[] = {
3151 { TT_NEGREP, zMath_ExceptionBypass0, (regex_t*)NULL },
3152 { TT_EGREP, zMath_ExceptionSelect0, (regex_t*)NULL }, };
3155 * Fix Command Arguments for Math_Exception
3157 static const char* apzMath_ExceptionPatch[] = {
3159 "#ifdef __cplusplus\n\
3160 #define exception __math_exception\n\
3162 "#ifdef __cplusplus\n\
3167 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3169 * Description of Math_Huge_Val_From_Dbl_Max fix
3171 tSCC zMath_Huge_Val_From_Dbl_MaxName[] =
3172 "math_huge_val_from_dbl_max";
3175 * File name selection pattern
3177 tSCC zMath_Huge_Val_From_Dbl_MaxList[] =
3180 * Machine/OS name selection pattern
3182 #define apzMath_Huge_Val_From_Dbl_MaxMachs (const char**)NULL
3185 * content selection pattern - do fix if pattern found
3187 tSCC zMath_Huge_Val_From_Dbl_MaxSelect0[] =
3188 "define[ \t]+HUGE_VAL[ \t]+DBL_MAX";
3191 * content bypass pattern - skip fix if pattern found
3193 tSCC zMath_Huge_Val_From_Dbl_MaxBypass0[] =
3194 "define[ \t]+DBL_MAX";
3196 #define MATH_HUGE_VAL_FROM_DBL_MAX_TEST_CT 2
3197 static tTestDesc aMath_Huge_Val_From_Dbl_MaxTests[] = {
3198 { TT_NEGREP, zMath_Huge_Val_From_Dbl_MaxBypass0, (regex_t*)NULL },
3199 { TT_EGREP, zMath_Huge_Val_From_Dbl_MaxSelect0, (regex_t*)NULL }, };
3202 * Fix Command Arguments for Math_Huge_Val_From_Dbl_Max
3204 static const char* apzMath_Huge_Val_From_Dbl_MaxPatch[] = { "sh", "-c",
3205 "\tdbl_max_def=`egrep 'define[ \t]+DBL_MAX[ \t]+.*' float.h | sed 's/.*DBL_MAX[ \t]*//' 2>/dev/null`\n\n\
3206 \tif ( test -n \"${dbl_max_def}\" ) > /dev/null 2>&1\n\
3207 \tthen sed -e '/define[ \t]*HUGE_VAL[ \t]*DBL_MAX/s@DBL_MAX@'\"$dbl_max_def@\"\n\
3212 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3214 * Description of Math_Huge_Val_Ifndef fix
3216 tSCC zMath_Huge_Val_IfndefName[] =
3217 "math_huge_val_ifndef";
3220 * File name selection pattern
3222 tSCC zMath_Huge_Val_IfndefList[] =
3223 "|math.h|math/math.h|";
3225 * Machine/OS name selection pattern
3227 #define apzMath_Huge_Val_IfndefMachs (const char**)NULL
3230 * content selection pattern - do fix if pattern found
3232 tSCC zMath_Huge_Val_IfndefSelect0[] =
3233 "define[ \t]+HUGE_VAL";
3235 #define MATH_HUGE_VAL_IFNDEF_TEST_CT 1
3236 static tTestDesc aMath_Huge_Val_IfndefTests[] = {
3237 { TT_EGREP, zMath_Huge_Val_IfndefSelect0, (regex_t*)NULL }, };
3240 * Fix Command Arguments for Math_Huge_Val_Ifndef
3242 static const char* apzMath_Huge_Val_IfndefPatch[] = {
3244 "#ifndef HUGE_VAL\n\
3247 "^[ \t]*#[ \t]*define[ \t]+HUGE_VAL[ \t].*",
3250 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3252 * Description of Nested_Auth_Des fix
3254 tSCC zNested_Auth_DesName[] =
3258 * File name selection pattern
3260 tSCC zNested_Auth_DesList[] =
3263 * Machine/OS name selection pattern
3265 #define apzNested_Auth_DesMachs (const char**)NULL
3268 * content selection pattern - do fix if pattern found
3270 tSCC zNested_Auth_DesSelect0[] =
3271 "(/\\*.*rpc/auth_des\\.h>.*)/\\*";
3273 #define NESTED_AUTH_DES_TEST_CT 1
3274 static tTestDesc aNested_Auth_DesTests[] = {
3275 { TT_EGREP, zNested_Auth_DesSelect0, (regex_t*)NULL }, };
3278 * Fix Command Arguments for Nested_Auth_Des
3280 static const char* apzNested_Auth_DesPatch[] = {
3285 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3287 * Description of Nested_Motorola fix
3289 tSCC zNested_MotorolaName[] =
3293 * File name selection pattern
3295 tSCC zNested_MotorolaList[] =
3296 "|sys/limits.h|limits.h|";
3298 * Machine/OS name selection pattern
3300 tSCC* apzNested_MotorolaMachs[] = {
3301 "m68k-motorola-sysv*",
3302 (const char*)NULL };
3305 * content selection pattern - do fix if pattern found
3307 tSCC zNested_MotorolaSelect0[] =
3308 "max # bytes atomic in write|error value returned by Math lib";
3310 #define NESTED_MOTOROLA_TEST_CT 1
3311 static tTestDesc aNested_MotorolaTests[] = {
3312 { TT_EGREP, zNested_MotorolaSelect0, (regex_t*)NULL }, };
3315 * Fix Command Arguments for Nested_Motorola
3317 static const char* apzNested_MotorolaPatch[] = { "sed",
3318 "-e", "s@^\\(#undef[ \t][ \t]*PIPE_BUF[ \t]*/\\* max # bytes atomic in write to a\\)$@\\1 */@",
3319 "-e", "s@\\(/\\*#define\tHUGE_VAL\t3.[0-9e+]* \\)\\(/\\*error value returned by Math lib\\*/\\)$@\\1*/ \\2@",
3322 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3324 * Description of Nested_Sys_Limits fix
3326 tSCC zNested_Sys_LimitsName[] =
3327 "nested_sys_limits";
3330 * File name selection pattern
3332 tSCC zNested_Sys_LimitsList[] =
3335 * Machine/OS name selection pattern
3337 #define apzNested_Sys_LimitsMachs (const char**)NULL
3340 * content selection pattern - do fix if pattern found
3342 tSCC zNested_Sys_LimitsSelect0[] =
3345 #define NESTED_SYS_LIMITS_TEST_CT 1
3346 static tTestDesc aNested_Sys_LimitsTests[] = {
3347 { TT_EGREP, zNested_Sys_LimitsSelect0, (regex_t*)NULL }, };
3350 * Fix Command Arguments for Nested_Sys_Limits
3352 static const char* apzNested_Sys_LimitsPatch[] = { "sed",
3353 "-e", "/CHILD_MAX/s,/\\* Max, Max,",
3354 "-e", "/OPEN_MAX/s,/\\* Max, Max,",
3357 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3359 * Description of Netbsd_Extra_Semicolon fix
3361 tSCC zNetbsd_Extra_SemicolonName[] =
3362 "netbsd_extra_semicolon";
3365 * File name selection pattern
3367 tSCC zNetbsd_Extra_SemicolonList[] =
3370 * Machine/OS name selection pattern
3372 tSCC* apzNetbsd_Extra_SemicolonMachs[] = {
3374 (const char*)NULL };
3377 * content selection pattern - do fix if pattern found
3379 tSCC zNetbsd_Extra_SemicolonSelect0[] =
3380 "#define[ \t]*__END_DECLS[ \t]*};";
3382 #define NETBSD_EXTRA_SEMICOLON_TEST_CT 1
3383 static tTestDesc aNetbsd_Extra_SemicolonTests[] = {
3384 { TT_EGREP, zNetbsd_Extra_SemicolonSelect0, (regex_t*)NULL }, };
3387 * Fix Command Arguments for Netbsd_Extra_Semicolon
3389 static const char* apzNetbsd_Extra_SemicolonPatch[] = {
3391 "#define __END_DECLS }",
3394 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3396 * Description of Next_Math_Prefix fix
3398 tSCC zNext_Math_PrefixName[] =
3402 * File name selection pattern
3404 tSCC zNext_Math_PrefixList[] =
3407 * Machine/OS name selection pattern
3409 #define apzNext_Math_PrefixMachs (const char**)NULL
3412 * content selection pattern - do fix if pattern found
3414 tSCC zNext_Math_PrefixSelect0[] =
3415 "^extern[ \t]+double[ \t]+__const__[ \t]";
3417 #define NEXT_MATH_PREFIX_TEST_CT 1
3418 static tTestDesc aNext_Math_PrefixTests[] = {
3419 { TT_EGREP, zNext_Math_PrefixSelect0, (regex_t*)NULL }, };
3422 * Fix Command Arguments for Next_Math_Prefix
3424 static const char* apzNext_Math_PrefixPatch[] = {
3426 "extern double %1(",
3427 "^extern[ \t]+double[ \t]+__const__[ \t]+([a-z]+)\\(",
3430 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3432 * Description of Next_Template fix
3434 tSCC zNext_TemplateName[] =
3438 * File name selection pattern
3440 tSCC zNext_TemplateList[] =
3443 * Machine/OS name selection pattern
3445 #define apzNext_TemplateMachs (const char**)NULL
3448 * content selection pattern - do fix if pattern found
3450 tSCC zNext_TemplateSelect0[] =
3453 #define NEXT_TEMPLATE_TEST_CT 1
3454 static tTestDesc aNext_TemplateTests[] = {
3455 { TT_EGREP, zNext_TemplateSelect0, (regex_t*)NULL }, };
3458 * Fix Command Arguments for Next_Template
3460 static const char* apzNext_TemplatePatch[] = {
3463 "\\(([^)]*)[ \t]template\\)",
3466 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3468 * Description of Next_Volitile fix
3470 tSCC zNext_VolitileName[] =
3474 * File name selection pattern
3476 tSCC zNext_VolitileList[] =
3479 * Machine/OS name selection pattern
3481 #define apzNext_VolitileMachs (const char**)NULL
3484 * content selection pattern - do fix if pattern found
3486 tSCC zNext_VolitileSelect0[] =
3487 "^extern[ \t]+volatile[ \t]+void[ \t]";
3489 #define NEXT_VOLITILE_TEST_CT 1
3490 static tTestDesc aNext_VolitileTests[] = {
3491 { TT_EGREP, zNext_VolitileSelect0, (regex_t*)NULL }, };
3494 * Fix Command Arguments for Next_Volitile
3496 static const char* apzNext_VolitilePatch[] = {
3499 "^extern[ \t]+volatile[ \t]+void[ \t]+(exit|abort)\\(",
3502 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3504 * Description of Next_Wait_Union fix
3506 tSCC zNext_Wait_UnionName[] =
3510 * File name selection pattern
3512 tSCC zNext_Wait_UnionList[] =
3515 * Machine/OS name selection pattern
3517 #define apzNext_Wait_UnionMachs (const char**)NULL
3520 * content selection pattern - do fix if pattern found
3522 tSCC zNext_Wait_UnionSelect0[] =
3523 "wait\\(union wait";
3525 #define NEXT_WAIT_UNION_TEST_CT 1
3526 static tTestDesc aNext_Wait_UnionTests[] = {
3527 { TT_EGREP, zNext_Wait_UnionSelect0, (regex_t*)NULL }, };
3530 * Fix Command Arguments for Next_Wait_Union
3532 static const char* apzNext_Wait_UnionPatch[] = {
3537 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3539 * Description of Nodeent_Syntax fix
3541 tSCC zNodeent_SyntaxName[] =
3545 * File name selection pattern
3547 tSCC zNodeent_SyntaxList[] =
3548 "|netdnet/dnetdb.h|";
3550 * Machine/OS name selection pattern
3552 #define apzNodeent_SyntaxMachs (const char**)NULL
3555 * content selection pattern - do fix if pattern found
3557 tSCC zNodeent_SyntaxSelect0[] =
3558 "char[ \t]*\\*na_addr[ \t]*$";
3560 #define NODEENT_SYNTAX_TEST_CT 1
3561 static tTestDesc aNodeent_SyntaxTests[] = {
3562 { TT_EGREP, zNodeent_SyntaxSelect0, (regex_t*)NULL }, };
3565 * Fix Command Arguments for Nodeent_Syntax
3567 static const char* apzNodeent_SyntaxPatch[] = {
3572 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3574 * Description of Obstack_Lvalue_Cast fix
3576 tSCC zObstack_Lvalue_CastName[] =
3577 "obstack_lvalue_cast";
3580 * File name selection pattern
3582 tSCC zObstack_Lvalue_CastList[] =
3585 * Machine/OS name selection pattern
3587 #define apzObstack_Lvalue_CastMachs (const char**)NULL
3590 * content selection pattern - do fix if pattern found
3592 tSCC zObstack_Lvalue_CastSelect0[] =
3593 "\\*\\(\\(([^()]*)\\*\\)(.*)\\)\\+\\+ = \\(([^()]*)\\)";
3595 #define OBSTACK_LVALUE_CAST_TEST_CT 1
3596 static tTestDesc aObstack_Lvalue_CastTests[] = {
3597 { TT_EGREP, zObstack_Lvalue_CastSelect0, (regex_t*)NULL }, };
3600 * Fix Command Arguments for Obstack_Lvalue_Cast
3602 static const char* apzObstack_Lvalue_CastPatch[] = {
3604 "((*((%1*)%2) = (%3)), (%2 += sizeof (%1)))",
3607 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3609 * Description of Osf_Namespace_A fix
3611 tSCC zOsf_Namespace_AName[] =
3615 * File name selection pattern
3617 tSCC zOsf_Namespace_AList[] =
3618 "|reg_types.h|sys/lc_core.h|";
3620 * Machine/OS name selection pattern
3622 #define apzOsf_Namespace_AMachs (const char**)NULL
3625 * perform the 'test' shell command - do fix on success
3627 tSCC zOsf_Namespace_ATest0[] =
3629 tSCC zOsf_Namespace_ATest1[] =
3630 " -r sys/lc_core.h";
3631 tSCC zOsf_Namespace_ATest2[] =
3632 " -n \"`grep '} regex_t;' reg_types.h`\"";
3633 tSCC zOsf_Namespace_ATest3[] =
3634 " -z \"`grep __regex_t regex.h`\"";
3636 #define OSF_NAMESPACE_A_TEST_CT 4
3637 static tTestDesc aOsf_Namespace_ATests[] = {
3638 { TT_TEST, zOsf_Namespace_ATest0, 0 /* unused */ },
3639 { TT_TEST, zOsf_Namespace_ATest1, 0 /* unused */ },
3640 { TT_TEST, zOsf_Namespace_ATest2, 0 /* unused */ },
3641 { TT_TEST, zOsf_Namespace_ATest3, 0 /* unused */ }, };
3644 * Fix Command Arguments for Osf_Namespace_A
3646 static const char* apzOsf_Namespace_APatch[] = {
3649 "reg(ex|off|match)_t",
3652 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3654 * Description of Osf_Namespace_C fix
3656 tSCC zOsf_Namespace_CName[] =
3660 * File name selection pattern
3662 tSCC zOsf_Namespace_CList[] =
3665 * Machine/OS name selection pattern
3667 #define apzOsf_Namespace_CMachs (const char**)NULL
3670 * content selection pattern - do fix if pattern found
3672 tSCC zOsf_Namespace_CSelect0[] =
3673 "#include <reg_types.h>.*";
3676 * perform the 'test' shell command - do fix on success
3678 tSCC zOsf_Namespace_CTest0[] =
3680 tSCC zOsf_Namespace_CTest1[] =
3681 " -r sys/lc_core.h";
3682 tSCC zOsf_Namespace_CTest2[] =
3683 " -n \"`grep '} regex_t;' reg_types.h`\"";
3684 tSCC zOsf_Namespace_CTest3[] =
3685 " -z \"`grep __regex_t regex.h`\"";
3687 #define OSF_NAMESPACE_C_TEST_CT 5
3688 static tTestDesc aOsf_Namespace_CTests[] = {
3689 { TT_TEST, zOsf_Namespace_CTest0, 0 /* unused */ },
3690 { TT_TEST, zOsf_Namespace_CTest1, 0 /* unused */ },
3691 { TT_TEST, zOsf_Namespace_CTest2, 0 /* unused */ },
3692 { TT_TEST, zOsf_Namespace_CTest3, 0 /* unused */ },
3693 { TT_EGREP, zOsf_Namespace_CSelect0, (regex_t*)NULL }, };
3696 * Fix Command Arguments for Osf_Namespace_C
3698 static const char* apzOsf_Namespace_CPatch[] = {
3701 typedef __regex_t\tregex_t;\n\
3702 typedef __regoff_t\tregoff_t;\n\
3703 typedef __regmatch_t\tregmatch_t;",
3706 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3708 * Description of Pthread_Page_Size fix
3710 tSCC zPthread_Page_SizeName[] =
3711 "pthread_page_size";
3714 * File name selection pattern
3716 tSCC zPthread_Page_SizeList[] =
3719 * Machine/OS name selection pattern
3721 #define apzPthread_Page_SizeMachs (const char**)NULL
3724 * content selection pattern - do fix if pattern found
3726 tSCC zPthread_Page_SizeSelect0[] =
3729 #define PTHREAD_PAGE_SIZE_TEST_CT 1
3730 static tTestDesc aPthread_Page_SizeTests[] = {
3731 { TT_EGREP, zPthread_Page_SizeSelect0, (regex_t*)NULL }, };
3734 * Fix Command Arguments for Pthread_Page_Size
3736 static const char* apzPthread_Page_SizePatch[] = {
3741 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3743 * Description of Read_Ret_Type fix
3745 tSCC zRead_Ret_TypeName[] =
3749 * File name selection pattern
3751 tSCC zRead_Ret_TypeList[] =
3754 * Machine/OS name selection pattern
3756 #define apzRead_Ret_TypeMachs (const char**)NULL
3759 * content selection pattern - do fix if pattern found
3761 tSCC zRead_Ret_TypeSelect0[] =
3762 "extern int\t.*, fread\\(\\), fwrite\\(\\)";
3764 #define READ_RET_TYPE_TEST_CT 1
3765 static tTestDesc aRead_Ret_TypeTests[] = {
3766 { TT_EGREP, zRead_Ret_TypeSelect0, (regex_t*)NULL }, };
3769 * Fix Command Arguments for Read_Ret_Type
3771 static const char* apzRead_Ret_TypePatch[] = {
3773 "extern unsigned int fread(), fwrite();\n\
3775 "(extern int\t.*), fread\\(\\), fwrite\\(\\)(.*)",
3778 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3780 * Description of Rs6000_Double fix
3782 tSCC zRs6000_DoubleName[] =
3786 * File name selection pattern
3788 tSCC zRs6000_DoubleList[] =
3791 * Machine/OS name selection pattern
3793 #define apzRs6000_DoubleMachs (const char**)NULL
3796 * content selection pattern - do fix if pattern found
3798 tSCC zRs6000_DoubleSelect0[] =
3799 "[^a-zA-Z_]class\\(";
3801 #define RS6000_DOUBLE_TEST_CT 1
3802 static tTestDesc aRs6000_DoubleTests[] = {
3803 { TT_EGREP, zRs6000_DoubleSelect0, (regex_t*)NULL }, };
3806 * Fix Command Arguments for Rs6000_Double
3808 static const char* apzRs6000_DoublePatch[] = {
3810 "#ifndef __cplusplus\n\
3813 "^.*[^a-zA-Z_]class\\(.*",
3816 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3818 * Description of Rs6000_Fchmod fix
3820 tSCC zRs6000_FchmodName[] =
3824 * File name selection pattern
3826 tSCC zRs6000_FchmodList[] =
3829 * Machine/OS name selection pattern
3831 #define apzRs6000_FchmodMachs (const char**)NULL
3834 * content selection pattern - do fix if pattern found
3836 tSCC zRs6000_FchmodSelect0[] =
3837 "fchmod\\(char \\*";
3839 #define RS6000_FCHMOD_TEST_CT 1
3840 static tTestDesc aRs6000_FchmodTests[] = {
3841 { TT_EGREP, zRs6000_FchmodSelect0, (regex_t*)NULL }, };
3844 * Fix Command Arguments for Rs6000_Fchmod
3846 static const char* apzRs6000_FchmodPatch[] = {
3851 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3853 * Description of Rs6000_Param fix
3855 tSCC zRs6000_ParamName[] =
3859 * File name selection pattern
3861 tSCC zRs6000_ParamList[] =
3862 "|stdio.h|unistd.h|";
3864 * Machine/OS name selection pattern
3866 #define apzRs6000_ParamMachs (const char**)NULL
3869 * content selection pattern - do fix if pattern found
3871 tSCC zRs6000_ParamSelect0[] =
3872 "rename\\(const char \\*old, const char \\*new\\)";
3874 #define RS6000_PARAM_TEST_CT 1
3875 static tTestDesc aRs6000_ParamTests[] = {
3876 { TT_EGREP, zRs6000_ParamSelect0, (regex_t*)NULL }, };
3879 * Fix Command Arguments for Rs6000_Param
3881 static const char* apzRs6000_ParamPatch[] = {
3883 "rename(const char *_old, const char *_new)",
3886 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3888 * Description of Sco_Math fix
3890 tSCC zSco_MathName[] =
3894 * File name selection pattern
3896 tSCC zSco_MathList[] =
3897 "|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|";
3899 * Machine/OS name selection pattern
3901 #define apzSco_MathMachs (const char**)NULL
3904 * content selection pattern - do fix if pattern found
3906 tSCC zSco_MathSelect0[] =
3907 "inline double abs";
3909 #define SCO_MATH_TEST_CT 1
3910 static tTestDesc aSco_MathTests[] = {
3911 { TT_EGREP, zSco_MathSelect0, (regex_t*)NULL }, };
3914 * Fix Command Arguments for Sco_Math
3916 static const char* apzSco_MathPatch[] = { "sed",
3917 "-e", "/#define.*__fp_class(a) \\\\/i\\\n\
3918 #ifndef __GNUC__\n",
3919 "-e", "/.*__builtin_generic/a\\\n\
3921 #define __fp_class(a) \\\\\\\n\
3922 __builtin_choose_expr(__builtin_types_compatible_p(typeof(a),long double),\\\\\\\n\
3923 __fpclassifyl(a), \\\\\\\n\
3924 __builtin_choose_expr(__builtin_types_compatible_p(typeof(a), float), \\\\\\\n\
3925 __fpclassifyf(a),__fpclassify(a)))\\\n\
3927 "-e", "/extern \"C\\+\\+\"/N;/inline double abs/i\\\n\
3928 #ifndef __GNUC__\n",
3929 "-e", "/inline long double trunc/N;/inline long double trunc.*}.*extern \"C\\+\\+\"/a\\\n\
3930 #endif /* ! __GNUC__ */",
3933 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3935 * Description of Sco_Regset fix
3937 tSCC zSco_RegsetName[] =
3941 * File name selection pattern
3943 tSCC zSco_RegsetList[] =
3946 * Machine/OS name selection pattern
3948 tSCC* apzSco_RegsetMachs[] = {
3950 (const char*)NULL };
3953 * content selection pattern - do fix if pattern found
3955 tSCC zSco_RegsetSelect0[] =
3956 "(struct[ \t]+.*)fpstate";
3958 #define SCO_REGSET_TEST_CT 1
3959 static tTestDesc aSco_RegsetTests[] = {
3960 { TT_EGREP, zSco_RegsetSelect0, (regex_t*)NULL }, };
3963 * Fix Command Arguments for Sco_Regset
3965 static const char* apzSco_RegsetPatch[] = {
3970 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3972 * Description of Sco_Static_Func fix
3974 tSCC zSco_Static_FuncName[] =
3978 * File name selection pattern
3980 tSCC zSco_Static_FuncList[] =
3983 * Machine/OS name selection pattern
3985 tSCC* apzSco_Static_FuncMachs[] = {
3987 (const char*)NULL };
3990 * content selection pattern - do fix if pattern found
3992 tSCC zSco_Static_FuncSelect0[] =
3995 #define SCO_STATIC_FUNC_TEST_CT 1
3996 static tTestDesc aSco_Static_FuncTests[] = {
3997 { TT_EGREP, zSco_Static_FuncSelect0, (regex_t*)NULL }, };
4000 * Fix Command Arguments for Sco_Static_Func
4002 static const char* apzSco_Static_FuncPatch[] = { "sed",
4003 "-e", "/^static int/i\\\n\
4004 #if __cplusplus\\\n\
4006 #endif /* __cplusplus */",
4008 #if __cplusplus\\\n\
4010 #endif /* __cplusplus */",
4013 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4015 * Description of Sco_Utime fix
4017 tSCC zSco_UtimeName[] =
4021 * File name selection pattern
4023 tSCC zSco_UtimeList[] =
4026 * Machine/OS name selection pattern
4028 tSCC* apzSco_UtimeMachs[] = {
4030 (const char*)NULL };
4033 * content selection pattern - do fix if pattern found
4035 tSCC zSco_UtimeSelect0[] =
4036 "\\(const char \\*, struct utimbuf \\*\\);";
4038 #define SCO_UTIME_TEST_CT 1
4039 static tTestDesc aSco_UtimeTests[] = {
4040 { TT_EGREP, zSco_UtimeSelect0, (regex_t*)NULL }, };
4043 * Fix Command Arguments for Sco_Utime
4045 static const char* apzSco_UtimePatch[] = {
4047 "(const char *, const struct utimbuf *);",
4050 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4052 * Description of Solaris_Mutex_Init_1 fix
4054 tSCC zSolaris_Mutex_Init_1Name[] =
4055 "solaris_mutex_init_1";
4058 * File name selection pattern
4060 tSCC zSolaris_Mutex_Init_1List[] =
4063 * Machine/OS name selection pattern
4065 #define apzSolaris_Mutex_Init_1Machs (const char**)NULL
4068 * content selection pattern - do fix if pattern found
4070 tSCC zSolaris_Mutex_Init_1Select0[] =
4071 "@\\(#\\)pthread.h[ \t]+1.1[0-9][ \t]+9[567]/[0-9/]+ SMI";
4073 #define SOLARIS_MUTEX_INIT_1_TEST_CT 1
4074 static tTestDesc aSolaris_Mutex_Init_1Tests[] = {
4075 { TT_EGREP, zSolaris_Mutex_Init_1Select0, (regex_t*)NULL }, };
4078 * Fix Command Arguments for Solaris_Mutex_Init_1
4080 static const char* apzSolaris_Mutex_Init_1Patch[] = { "sed",
4081 "-e", "/define[ \t]*PTHREAD_MUTEX_INI/s/{0, 0,/{{{0}, 0}, {{{0}}},/\n\
4082 /define[ \t]*PTHREAD_COND_INI/s/{0,/{{{0},0},/",
4085 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4087 * Description of Solaris_Mutex_Init_2 fix
4089 tSCC zSolaris_Mutex_Init_2Name[] =
4090 "solaris_mutex_init_2";
4093 * File name selection pattern
4095 tSCC zSolaris_Mutex_Init_2List[] =
4098 * Machine/OS name selection pattern
4100 #define apzSolaris_Mutex_Init_2Machs (const char**)NULL
4103 * content selection pattern - do fix if pattern found
4105 tSCC zSolaris_Mutex_Init_2Select0[] =
4106 "@\\(#\\)pthread.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
4108 #define SOLARIS_MUTEX_INIT_2_TEST_CT 1
4109 static tTestDesc aSolaris_Mutex_Init_2Tests[] = {
4110 { TT_EGREP, zSolaris_Mutex_Init_2Select0, (regex_t*)NULL }, };
4113 * Fix Command Arguments for Solaris_Mutex_Init_2
4115 static const char* apzSolaris_Mutex_Init_2Patch[] = {
4117 "#if __STDC__ - 0 == 0 && !defined(_NO_LONGLONG)\n\
4122 "(^#define[ \t]+PTHREAD_(MUTEX|COND)_INITIALIZER[ \t]+\\{.*),[ \t]*0\\}(|[ \t].*)$",
4125 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4127 * Description of Solaris_Socket fix
4129 tSCC zSolaris_SocketName[] =
4133 * File name selection pattern
4135 tSCC zSolaris_SocketList[] =
4138 * Machine/OS name selection pattern
4140 #define apzSolaris_SocketMachs (const char**)NULL
4143 * content selection pattern - do fix if pattern found
4145 tSCC zSolaris_SocketSelect0[] =
4146 "@\\(#\\)socket.h[ \t]+1.[123][0-9][ \t]+9[567]/[0-9/]+ SMI";
4148 #define SOLARIS_SOCKET_TEST_CT 1
4149 static tTestDesc aSolaris_SocketTests[] = {
4150 { TT_EGREP, zSolaris_SocketSelect0, (regex_t*)NULL }, };
4153 * Fix Command Arguments for Solaris_Socket
4155 static const char* apzSolaris_SocketPatch[] = {
4157 "extern int %1(int, %2void *, int, int);",
4158 "^extern int (recv|send)\\(int, (const )*char \\*, int, int\\);",
4161 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4163 * Description of Solaris_Stdio_Tag fix
4165 tSCC zSolaris_Stdio_TagName[] =
4166 "solaris_stdio_tag";
4169 * File name selection pattern
4171 tSCC zSolaris_Stdio_TagList[] =
4174 * Machine/OS name selection pattern
4176 #define apzSolaris_Stdio_TagMachs (const char**)NULL
4179 * content selection pattern - do fix if pattern found
4181 tSCC zSolaris_Stdio_TagSelect0[] =
4182 "__cplusplus < 54321L";
4184 #define SOLARIS_STDIO_TAG_TEST_CT 1
4185 static tTestDesc aSolaris_Stdio_TagTests[] = {
4186 { TT_EGREP, zSolaris_Stdio_TagSelect0, (regex_t*)NULL }, };
4189 * Fix Command Arguments for Solaris_Stdio_Tag
4191 static const char* apzSolaris_Stdio_TagPatch[] = { "sed",
4192 "-e", "s/defined(__cplusplus) && (__cplusplus < 54321L)/0/",
4195 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4197 * Description of Solaris_Unistd fix
4199 tSCC zSolaris_UnistdName[] =
4203 * File name selection pattern
4205 tSCC zSolaris_UnistdList[] =
4208 * Machine/OS name selection pattern
4210 #define apzSolaris_UnistdMachs (const char**)NULL
4213 * content selection pattern - do fix if pattern found
4215 tSCC zSolaris_UnistdSelect0[] =
4216 "@\\(#\\)unistd.h[ \t]+1.3[0-9][ \t]+9[567]/[0-9/]+ SMI";
4219 * content bypass pattern - skip fix if pattern found
4221 tSCC zSolaris_UnistdBypass0[] =
4224 #define SOLARIS_UNISTD_TEST_CT 2
4225 static tTestDesc aSolaris_UnistdTests[] = {
4226 { TT_NEGREP, zSolaris_UnistdBypass0, (regex_t*)NULL },
4227 { TT_EGREP, zSolaris_UnistdSelect0, (regex_t*)NULL }, };
4230 * Fix Command Arguments for Solaris_Unistd
4232 static const char* apzSolaris_UnistdPatch[] = {
4234 "extern int getpagesize();\n\
4236 "^extern (pid_t|int) getpgid\\(.*\\);",
4239 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4241 * Description of Solaris_Widec fix
4243 tSCC zSolaris_WidecName[] =
4247 * File name selection pattern
4249 tSCC zSolaris_WidecList[] =
4252 * Machine/OS name selection pattern
4254 tSCC* apzSolaris_WidecMachs[] = {
4255 "*-*-solaris2.[0-5]",
4256 "*-*-solaris2.[0-5].*",
4257 (const char*)NULL };
4260 * content selection pattern - do fix if pattern found
4262 tSCC zSolaris_WidecSelect0[] =
4266 * content bypass pattern - skip fix if pattern found
4268 tSCC zSolaris_WidecBypass0[] =
4269 "include.*wchar\\.h";
4271 #define SOLARIS_WIDEC_TEST_CT 2
4272 static tTestDesc aSolaris_WidecTests[] = {
4273 { TT_NEGREP, zSolaris_WidecBypass0, (regex_t*)NULL },
4274 { TT_EGREP, zSolaris_WidecSelect0, (regex_t*)NULL }, };
4277 * Fix Command Arguments for Solaris_Widec
4279 static const char* apzSolaris_WidecPatch[] = {
4282 #include <wchar.h>",
4285 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4287 * Description of Statsswtch fix
4289 tSCC zStatsswtchName[] =
4293 * File name selection pattern
4295 tSCC zStatsswtchList[] =
4298 * Machine/OS name selection pattern
4300 #define apzStatsswtchMachs (const char**)NULL
4303 * content selection pattern - do fix if pattern found
4305 tSCC zStatsswtchSelect0[] =
4308 #define STATSSWTCH_TEST_CT 1
4309 static tTestDesc aStatsswtchTests[] = {
4310 { TT_EGREP, zStatsswtchSelect0, (regex_t*)NULL }, };
4313 * Fix Command Arguments for Statsswtch
4315 static const char* apzStatsswtchPatch[] = {
4320 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4322 * Description of Stdio_Stdarg_H fix
4324 tSCC zStdio_Stdarg_HName[] =
4328 * File name selection pattern
4330 tSCC zStdio_Stdarg_HList[] =
4333 * Machine/OS name selection pattern
4335 #define apzStdio_Stdarg_HMachs (const char**)NULL
4338 * content bypass pattern - skip fix if pattern found
4340 tSCC zStdio_Stdarg_HBypass0[] =
4341 "include.*(stdarg.h|machine/ansi.h)";
4343 #define STDIO_STDARG_H_TEST_CT 1
4344 static tTestDesc aStdio_Stdarg_HTests[] = {
4345 { TT_NEGREP, zStdio_Stdarg_HBypass0, (regex_t*)NULL }, };
4348 * Fix Command Arguments for Stdio_Stdarg_H
4350 static const char* apzStdio_Stdarg_HPatch[] = {
4352 "#define __need___va_list\n\
4353 #include <stdarg.h>\n",
4356 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4358 * Description of Stdio_Va_List fix
4360 tSCC zStdio_Va_ListName[] =
4364 * File name selection pattern
4366 tSCC zStdio_Va_ListList[] =
4367 "|stdio.h|internal/stdio_core.h|internal/wchar_core.h|";
4369 * Machine/OS name selection pattern
4371 #define apzStdio_Va_ListMachs (const char**)NULL
4374 * content bypass pattern - skip fix if pattern found
4376 tSCC zStdio_Va_ListBypass0[] =
4377 "__gnuc_va_list|_BSD_VA_LIST_|__DJ_va_list|_G_va_list";
4379 #define STDIO_VA_LIST_TEST_CT 1
4380 static tTestDesc aStdio_Va_ListTests[] = {
4381 { TT_NEGREP, zStdio_Va_ListBypass0, (regex_t*)NULL }, };
4384 * Fix Command Arguments for Stdio_Va_List
4386 static const char* apzStdio_Va_ListPatch[] = { "sed",
4387 "-e", "s@ va_list @ __gnuc_va_list @\n\
4388 s@ va_list)@ __gnuc_va_list)@\n\
4389 s@(va_list)&@(__gnuc_va_list)\\&@\n\
4390 s@ _VA_LIST_));@ __gnuc_va_list));@\n\
4391 s@ __VA_LIST__));@ __gnuc_va_list));@\n\
4392 s@ va_list@ __not_va_list__@\n\
4393 s@\\*va_list@*__not_va_list__@\n\
4394 s@ __va_list)@ __gnuc_va_list)@\n\
4395 s@typedef[ \t]\\(.*\\)[ \t]va_list[ \t]*;@typedef \\1 __not_va_list__;@\n\
4396 s@typedef[ \t]*__va_list__@typedef __gnuc_va_list@\n\
4397 s@GNUC_VA_LIST@GNUC_Va_LIST@\n\
4398 s@_VA_LIST_DEFINED@_Va_LIST_DEFINED@\n\
4399 s@_NEED___VA_LIST@_NEED___Va_LIST@\n\
4400 s@VA_LIST@DUMMY_VA_LIST@\n\
4401 s@_Va_LIST@_VA_LIST@",
4404 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4406 * Description of Strict_Ansi_Not fix
4408 tSCC zStrict_Ansi_NotName[] =
4412 * File name selection pattern
4414 #define zStrict_Ansi_NotList (char*)NULL
4416 * Machine/OS name selection pattern
4418 #define apzStrict_Ansi_NotMachs (const char**)NULL
4421 * content selection pattern - do fix if pattern found
4423 tSCC zStrict_Ansi_NotSelect0[] =
4424 "^([ \t]*#[ \t]*if.*)(!__STDC__|__STDC__[ \t]*==[ \t]*0|__STDC__[ \t]*!=[ \t]*1|__STDC__[ \t]*-[ \t]*0[ \t]*==[ \t]*0)";
4427 * content bypass pattern - skip fix if pattern found
4429 tSCC zStrict_Ansi_NotBypass0[] =
4430 "GNU and MIPS C compilers define __STDC__ differently";
4431 tSCC zStrict_Ansi_NotBypass1[] =
4432 "__SCO_VERSION__.*__STDC__ != 1";
4435 * perform the C function call test
4437 tSCC zStrict_Ansi_NotFTst0[] = "stdc_0_in_system_headers";
4439 #define STRICT_ANSI_NOT_TEST_CT 4
4440 static tTestDesc aStrict_Ansi_NotTests[] = {
4441 { TT_FUNCTION, zStrict_Ansi_NotFTst0, 0 /* unused */ },
4442 { TT_NEGREP, zStrict_Ansi_NotBypass0, (regex_t*)NULL },
4443 { TT_NEGREP, zStrict_Ansi_NotBypass1, (regex_t*)NULL },
4444 { TT_EGREP, zStrict_Ansi_NotSelect0, (regex_t*)NULL }, };
4447 * Fix Command Arguments for Strict_Ansi_Not
4449 static const char* apzStrict_Ansi_NotPatch[] = {
4451 "%1 !defined(__STRICT_ANSI__)",
4454 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4456 * Description of Strict_Ansi_Not_Ctd fix
4458 tSCC zStrict_Ansi_Not_CtdName[] =
4459 "strict_ansi_not_ctd";
4462 * File name selection pattern
4464 tSCC zStrict_Ansi_Not_CtdList[] =
4465 "|math.h|limits.h|stdio.h|signal.h|stdlib.h|sys/signal.h|time.h|";
4467 * Machine/OS name selection pattern
4469 #define apzStrict_Ansi_Not_CtdMachs (const char**)NULL
4472 * content selection pattern - do fix if pattern found
4474 tSCC zStrict_Ansi_Not_CtdSelect0[] =
4475 "^([ \t]*(\\(|&&|\\|\\|)([ \t(]*!*[ \t]*defined\\([a-zA-Z_0-9]+\\)[ \t]*[|&][|&])*[ \t(]*)(__STDC__[ \t]*(|-[ \t]*0[ \t]*)==[ \t]*0)";
4478 * perform the C function call test
4480 tSCC zStrict_Ansi_Not_CtdFTst0[] = "stdc_0_in_system_headers";
4482 #define STRICT_ANSI_NOT_CTD_TEST_CT 2
4483 static tTestDesc aStrict_Ansi_Not_CtdTests[] = {
4484 { TT_FUNCTION, zStrict_Ansi_Not_CtdFTst0, 0 /* unused */ },
4485 { TT_EGREP, zStrict_Ansi_Not_CtdSelect0, (regex_t*)NULL }, };
4488 * Fix Command Arguments for Strict_Ansi_Not_Ctd
4490 static const char* apzStrict_Ansi_Not_CtdPatch[] = {
4492 "%1 !defined(__STRICT_ANSI__)",
4495 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4497 * Description of Strict_Ansi_Only fix
4499 tSCC zStrict_Ansi_OnlyName[] =
4503 * File name selection pattern
4505 #define zStrict_Ansi_OnlyList (char*)NULL
4507 * Machine/OS name selection pattern
4509 #define apzStrict_Ansi_OnlyMachs (const char**)NULL
4512 * content selection pattern - do fix if pattern found
4514 tSCC zStrict_Ansi_OnlySelect0[] =
4515 "^([ \t]*#[ \t]*if.*)(__STDC__[ \t]*!=[ \t]*0|__STDC__[ \t]*==[ \t]*1|__STDC__[ \t]*-[ \t]*0[ \t]*==[ \t]*1|__STDC__[ \t]*-[ \t]*0[ \t]*!=[ \t]*0)";
4518 * perform the C function call test
4520 tSCC zStrict_Ansi_OnlyFTst0[] = "stdc_0_in_system_headers";
4522 #define STRICT_ANSI_ONLY_TEST_CT 2
4523 static tTestDesc aStrict_Ansi_OnlyTests[] = {
4524 { TT_FUNCTION, zStrict_Ansi_OnlyFTst0, 0 /* unused */ },
4525 { TT_EGREP, zStrict_Ansi_OnlySelect0, (regex_t*)NULL }, };
4528 * Fix Command Arguments for Strict_Ansi_Only
4530 static const char* apzStrict_Ansi_OnlyPatch[] = {
4532 "%1 defined(__STRICT_ANSI__)",
4535 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4537 * Description of Struct_File fix
4539 tSCC zStruct_FileName[] =
4543 * File name selection pattern
4545 tSCC zStruct_FileList[] =
4548 * Machine/OS name selection pattern
4550 #define apzStruct_FileMachs (const char**)NULL
4553 * content selection pattern - do fix if pattern found
4555 tSCC zStruct_FileSelect0[] =
4556 "^.*xdrstdio_create.*struct __file_s";
4558 #define STRUCT_FILE_TEST_CT 1
4559 static tTestDesc aStruct_FileTests[] = {
4560 { TT_EGREP, zStruct_FileSelect0, (regex_t*)NULL }, };
4563 * Fix Command Arguments for Struct_File
4565 static const char* apzStruct_FilePatch[] = {
4567 "struct __file_s;\n\
4571 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4573 * Description of Struct_Sockaddr fix
4575 tSCC zStruct_SockaddrName[] =
4579 * File name selection pattern
4581 tSCC zStruct_SockaddrList[] =
4584 * Machine/OS name selection pattern
4586 #define apzStruct_SockaddrMachs (const char**)NULL
4589 * content selection pattern - do fix if pattern found
4591 tSCC zStruct_SockaddrSelect0[] =
4592 "^.*authdes_create.*struct sockaddr[^_]";
4595 * content bypass pattern - skip fix if pattern found
4597 tSCC zStruct_SockaddrBypass0[] =
4599 tSCC zStruct_SockaddrBypass1[] =
4600 "struct sockaddr;\n";
4602 #define STRUCT_SOCKADDR_TEST_CT 3
4603 static tTestDesc aStruct_SockaddrTests[] = {
4604 { TT_NEGREP, zStruct_SockaddrBypass0, (regex_t*)NULL },
4605 { TT_NEGREP, zStruct_SockaddrBypass1, (regex_t*)NULL },