2 * DO NOT EDIT THIS FILE - it has been generated
4 * Install modified versions of certain ANSI-incompatible system header
5 * files which are fixed to work correctly with ANSI C and placed in a
6 * directory that GNU C will search.
8 * This file contains 143 fixup descriptions.
10 * See README for more information.
12 * inclhack copyright (c) 1998, 1999, 2000, 2001
13 * The Free Software Foundation, Inc.
15 * inclhack is free software.
17 * You may redistribute it and/or modify it under the terms of the
18 * GNU General Public License, as published by the Free Software
19 * Foundation; either version 2, or (at your option) any later version.
21 * inclhack is distributed in the hope that it will be useful,
22 * but WITHOUT ANY WARRANTY; without even the implied warranty of
23 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
24 * See the GNU General Public License for more details.
26 * You should have received a copy of the GNU General Public License
27 * along with inclhack. See the file "COPYING". If not,
28 * write to: The Free Software Foundation, Inc.,
29 * 59 Temple Place - Suite 330,
30 * Boston, MA 02111-1307, USA.
33 /* * * * * * * * * * * * * * * * * * * * * * * * * *
35 * Description of Aab_Fd_Zero_Asm_Posix_Types_H fix
37 tSCC zAab_Fd_Zero_Asm_Posix_Types_HName[] =
38 "AAB_fd_zero_asm_posix_types_h";
41 * File name selection pattern
43 tSCC zAab_Fd_Zero_Asm_Posix_Types_HList[] =
44 "|asm/posix_types.h|";
46 * Machine/OS name selection pattern
48 tSCC* apzAab_Fd_Zero_Asm_Posix_Types_HMachs[] = {
49 "i[34567]86-*-linux*",
53 * content bypass pattern - skip fix if pattern found
55 tSCC zAab_Fd_Zero_Asm_Posix_Types_HBypass0[] =
58 #define AAB_FD_ZERO_ASM_POSIX_TYPES_H_TEST_CT 1
59 static tTestDesc aAab_Fd_Zero_Asm_Posix_Types_HTests[] = {
60 { TT_NEGREP, zAab_Fd_Zero_Asm_Posix_Types_HBypass0, (regex_t*)NULL }, };
63 * Fix Command Arguments for Aab_Fd_Zero_Asm_Posix_Types_H
65 static const char* apzAab_Fd_Zero_Asm_Posix_Types_HPatch[] = {
66 "/* This file fixes a bug in the __FD_ZERO macro\n\
67 for older versions of the Linux kernel. */\n\
68 #ifndef _POSIX_TYPES_H_WRAPPER\n\
69 #include <features.h>\n\
70 #include_next <asm/posix_types.h>\n\n\
71 #if defined(__FD_ZERO) && !defined(__GLIBC__)\n\
73 #define __FD_ZERO(fdsetp) \\\n\
76 __asm__ __volatile__(\"cld ; rep ; stosl\" \\\n\
77 : \"=&c\" (__d0), \"=&D\" (__d1) \\\n\
78 : \"a\" (0), \"0\" (__FDSET_LONGS), \\\n\
79 \"1\" ((__kernel_fd_set *) (fdsetp)) :\"memory\"); \\\n\
82 #define _POSIX_TYPES_H_WRAPPER\n\
83 #endif /* _POSIX_TYPES_H_WRAPPER */",
86 /* * * * * * * * * * * * * * * * * * * * * * * * * *
88 * Description of Aab_Fd_Zero_Gnu_Types_H fix
90 tSCC zAab_Fd_Zero_Gnu_Types_HName[] =
91 "AAB_fd_zero_gnu_types_h";
94 * File name selection pattern
96 tSCC zAab_Fd_Zero_Gnu_Types_HList[] =
99 * Machine/OS name selection pattern
101 tSCC* apzAab_Fd_Zero_Gnu_Types_HMachs[] = {
102 "i[34567]86-*-linux*",
104 #define AAB_FD_ZERO_GNU_TYPES_H_TEST_CT 0
105 #define aAab_Fd_Zero_Gnu_Types_HTests (tTestDesc*)NULL
108 * Fix Command Arguments for Aab_Fd_Zero_Gnu_Types_H
110 static const char* apzAab_Fd_Zero_Gnu_Types_HPatch[] = {
111 "/* This file fixes a bug in the __FD_ZERO macro present in glibc 1.x. */\n\
112 #ifndef _TYPES_H_WRAPPER\n\
113 #include <features.h>\n\
114 #include_next <gnu/types.h>\n\n\
115 #if defined(__FD_ZERO) && !defined(__GLIBC__)\n\
117 # define __FD_ZERO(fdsetp) \\\\\n\
119 int __d0, __d1; \\\\\n\
120 __asm__ __volatile__(\"cld ; rep ; stosl\" \\\\\n\
121 \t: \"=&c\" (__d0), \"=&D\" (__d1) \\\\\n\
122 \t: \"a\" (0), \"0\" (__FDSET_LONGS), \\\\\n\
123 \"1\" ((__fd_set *) (fdsetp)) :\"memory\"); \\\\\n\
126 #define _TYPES_H_WRAPPER\n\
127 #endif /* _TYPES_H_WRAPPER */",
130 /* * * * * * * * * * * * * * * * * * * * * * * * * *
132 * Description of Aab_Fd_Zero_Selectbits_H fix
134 tSCC zAab_Fd_Zero_Selectbits_HName[] =
135 "AAB_fd_zero_selectbits_h";
138 * File name selection pattern
140 tSCC zAab_Fd_Zero_Selectbits_HList[] =
143 * Machine/OS name selection pattern
145 tSCC* apzAab_Fd_Zero_Selectbits_HMachs[] = {
146 "i[34567]86-*-linux*",
148 #define AAB_FD_ZERO_SELECTBITS_H_TEST_CT 0
149 #define aAab_Fd_Zero_Selectbits_HTests (tTestDesc*)NULL
152 * Fix Command Arguments for Aab_Fd_Zero_Selectbits_H
154 static const char* apzAab_Fd_Zero_Selectbits_HPatch[] = {
155 "/* This file fixes a bug in the __FD_ZERO macro present in glibc 2.0.x. */\n\
156 #ifndef _SELECTBITS_H_WRAPPER\n\
157 #include <features.h>\n\
158 #include_next <selectbits.h>\n\n\
159 #if defined(__FD_ZERO) && defined(__GLIBC__) \\\\\n\
160 && defined(__GLIBC_MINOR__) && __GLIBC__ == 2 \\\\\n\
161 && __GLIBC_MINOR__ == 0\n\
163 #define __FD_ZERO(fdsetp) \\\\\n\
165 int __d0, __d1; \\\\\n\
166 __asm__ __volatile__ (\"cld; rep; stosl\" \\\\\n\
167 : \"=&c\" (__d0), \"=&D\" (__d1) \\\\\n\
168 : \"a\" (0), \"0\" (sizeof (__fd_set) \\\\\n\
169 / sizeof (__fd_mask)), \\\\\n\
170 \"1\" ((__fd_mask *) (fdsetp)) \\\\\n\
171 : \"memory\"); \\\\\n\
174 #define _SELECTBITS_H_WRAPPER\n\
175 #endif /* _SELECTBITS_H_WRAPPER */",
178 /* * * * * * * * * * * * * * * * * * * * * * * * * *
180 * Description of Aab_Solaris_Sys_Varargs_H fix
182 tSCC zAab_Solaris_Sys_Varargs_HName[] =
183 "AAB_solaris_sys_varargs_h";
186 * File name selection pattern
188 tSCC zAab_Solaris_Sys_Varargs_HList[] =
191 * Machine/OS name selection pattern
193 tSCC* apzAab_Solaris_Sys_Varargs_HMachs[] = {
196 #define AAB_SOLARIS_SYS_VARARGS_H_TEST_CT 0
197 #define aAab_Solaris_Sys_Varargs_HTests (tTestDesc*)NULL
200 * Fix Command Arguments for Aab_Solaris_Sys_Varargs_H
202 static const char* apzAab_Solaris_Sys_Varargs_HPatch[] = {
204 #include <stdarg.h>\n\
206 #include <varargs.h>\n\
210 /* * * * * * * * * * * * * * * * * * * * * * * * * *
212 * Description of Aab_Sun_Memcpy fix
214 tSCC zAab_Sun_MemcpyName[] =
218 * File name selection pattern
220 tSCC zAab_Sun_MemcpyList[] =
223 * Machine/OS name selection pattern
225 #define apzAab_Sun_MemcpyMachs (const char**)NULL
228 * content selection pattern - do fix if pattern found
230 tSCC zAab_Sun_MemcpySelect0[] =
231 "/\\*\t@\\(#\\)(head/memory.h\t50.1\t |memory\\.h 1\\.[2-4] 8./../.. SMI; from S5R2 1\\.2\t)\\*/";
233 #define AAB_SUN_MEMCPY_TEST_CT 1
234 static tTestDesc aAab_Sun_MemcpyTests[] = {
235 { TT_EGREP, zAab_Sun_MemcpySelect0, (regex_t*)NULL }, };
238 * Fix Command Arguments for Aab_Sun_Memcpy
240 static const char* apzAab_Sun_MemcpyPatch[] = {
241 "/* This file was generated by fixincludes */\n\
242 #ifndef __memory_h__\n\
243 #define __memory_h__\n\n\
245 extern void *memccpy();\n\
246 extern void *memchr();\n\
247 extern void *memcpy();\n\
248 extern void *memset();\n\
250 extern char *memccpy();\n\
251 extern char *memchr();\n\
252 extern char *memcpy();\n\
253 extern char *memset();\n\
254 #endif /* __STDC__ */\n\n\
255 extern int memcmp();\n\n\
256 #endif /* __memory_h__ */\n\
260 * Completely replace <sys/varargs.h> with a file that includes gcc's\n\
261 * stdarg.h or varargs.h files as appropriate.\n\
265 hackname = AAB_svr4_no_varargs;\n\
266 files = sys/varargs.h;\n\
267 replace = \"/* This file was generated by fixincludes. */\\n\"\n\
268 \"#ifndef _SYS_VARARGS_H\\n\"\n\
269 \"#define _SYS_VARARGS_H\\n\\n\"\n\
271 \"#ifdef __STDC__\\n\"\n\
272 \"#include <stdarg.h>\\n\"\n\
274 \"#include <varargs.h>\\n\"\n\
277 \"#endif /* _SYS_VARARGS_H */\\n\";\n\
281 * Completely replace <sys/byteorder.h>; with a file that implements gcc's\n\
282 * optimized byteswapping. Restricted to \"SVR4\" machines until either\n\
283 * it is shown to be safe to replace this file always, or we get bolder ;-)\n\
286 hackname = AAB_svr4_replace_byteorder;\n\
288 mach = \"*-*-sysv4*\";\n\
289 mach = \"i[34567]86-*-sysv5*\";\n\
290 mach = \"i[34567]86-*-udk*\";\n\
291 mach = \"i[34567]86-*-solaris2.[0-4]\";\n\
292 mach = \"powerpcle-*-solaris2.[0-4]\";\n\
293 mach = \"sparc-*-solaris2.[0-4]\";\n\
295 files = sys/byteorder.h;\n\
296 replace = <<- _EndOfHeader_\n\
297 #ifndef _SYS_BYTEORDER_H\n\
298 #define _SYS_BYTEORDER_H\n\n\
299 /* Functions to convert `short' and `long' quantities from host byte order\n\
300 to (internet) network byte order (i.e. big-endian).\n\n\
301 Written by Ron Guilmette (rfg@ncd.com).\n\n\
302 This isn't actually used by GCC. It is installed by fixinc.svr4.\n\n\
303 For big-endian machines these functions are essentially no-ops.\n\n\
304 For little-endian machines, we define the functions using specialized\n\
305 asm sequences in cases where doing so yields better code (e.g. i386). */\n\n\
306 #if !defined (__GNUC__) && !defined (__GNUG__)\n\
307 #error You lose! This file is only useful with GNU compilers.\n\
309 #ifndef __BYTE_ORDER__\n\
310 /* Byte order defines. These are as defined on UnixWare 1.1, but with\n\
311 double underscores added at the front and back. */\n\
312 #define __LITTLE_ENDIAN__ 1234\n\
313 #define __BIG_ENDIAN__ 4321\n\
314 #define __PDP_ENDIAN__ 3412\n\
317 static __inline__ unsigned long htonl (unsigned long);\n\
318 static __inline__ unsigned short htons (unsigned int);\n\
319 static __inline__ unsigned long ntohl (unsigned long);\n\
320 static __inline__ unsigned short ntohs (unsigned int);\n\
321 #endif /* defined (__STDC__) */\n\n\
322 #if defined (__i386__)\n\n\
323 #ifndef __BYTE_ORDER__\n\
324 #define __BYTE_ORDER__ __LITTLE_ENDIAN__\n\
326 /* Convert a host long to a network long. */\n\n\
327 /* We must use a new-style function definition, so that this will also\n\
328 be valid for C++. */\n\
329 static __inline__ unsigned long\n\
330 htonl (unsigned long __arg)\n\
332 register unsigned long __result;\n\n\
333 __asm__ (\"xchg%B0 %b0,%h0\n\
335 xchg%B0 %b0,%h0\" : \"=q\" (__result) : \"0\" (__arg));\n\
338 /* Convert a host short to a network short. */\n\n\
339 static __inline__ unsigned short\n\
340 htons (unsigned int __arg)\n\
342 register unsigned short __result;\n\n\
343 __asm__ (\"xchg%B0 %b0,%h0\" : \"=q\" (__result) : \"0\" (__arg));\n\
346 #elif (defined (__ns32k__) || defined (__vax__) || defined (__arm__))\n\n\
347 #ifndef __BYTE_ORDER__\n\
348 #define __BYTE_ORDER__ __LITTLE_ENDIAN__\n\
350 /* For other little-endian machines, using C code is just as efficient as\n\
351 using assembly code. */\n\n\
352 /* Convert a host long to a network long. */\n\n\
353 static __inline__ unsigned long\n\
354 htonl (unsigned long __arg)\n\
356 register unsigned long __result;\n\n\
357 __result = (__arg >> 24) & 0x000000ff;\n\
358 __result |= (__arg >> 8) & 0x0000ff00;\n\
359 __result |= (__arg << 8) & 0x00ff0000;\n\
360 __result |= (__arg << 24) & 0xff000000;\n\
363 /* Convert a host short to a network short. */\n\n\
364 static __inline__ unsigned short\n\
365 htons (unsigned int __arg)\n\
367 register unsigned short __result;\n\n\
368 __result = (__arg << 8) & 0xff00;\n\
369 __result |= (__arg >> 8) & 0x00ff;\n\
372 #else /* must be a big-endian machine */\n\n\
373 #ifndef __BYTE_ORDER__\n\
374 #define __BYTE_ORDER__ __BIG_ENDIAN__\n\
376 /* Convert a host long to a network long. */\n\n\
377 static __inline__ unsigned long\n\
378 htonl (unsigned long __arg)\n\
382 /* Convert a host short to a network short. */\n\n\
383 static __inline__ unsigned short\n\
384 htons (unsigned int __arg)\n\
388 #endif /* big-endian */\n\n\
389 /* Convert a network long to a host long. */\n\n\
390 static __inline__ unsigned long\n\
391 ntohl (unsigned long __arg)\n\
393 return htonl (__arg);\n\
395 /* Convert a network short to a host short. */\n\n\
396 static __inline__ unsigned short\n\
397 ntohs (unsigned int __arg)\n\
399 return htons (__arg);\n\
404 /* * * * * * * * * * * * * * * * * * * * * * * * * *
406 * Description of Aab_Ultrix_Ansi_Compat fix
408 tSCC zAab_Ultrix_Ansi_CompatName[] =
409 "AAB_ultrix_ansi_compat";
412 * File name selection pattern
414 tSCC zAab_Ultrix_Ansi_CompatList[] =
417 * Machine/OS name selection pattern
419 #define apzAab_Ultrix_Ansi_CompatMachs (const char**)NULL
422 * content selection pattern - do fix if pattern found
424 tSCC zAab_Ultrix_Ansi_CompatSelect0[] =
427 #define AAB_ULTRIX_ANSI_COMPAT_TEST_CT 1
428 static tTestDesc aAab_Ultrix_Ansi_CompatTests[] = {
429 { TT_EGREP, zAab_Ultrix_Ansi_CompatSelect0, (regex_t*)NULL }, };
432 * Fix Command Arguments for Aab_Ultrix_Ansi_Compat
434 static const char* apzAab_Ultrix_Ansi_CompatPatch[] = {
435 "/* This file intentionally left blank. */\n",
438 /* * * * * * * * * * * * * * * * * * * * * * * * * *
440 * Description of Aab_Ultrix_Limits fix
442 tSCC zAab_Ultrix_LimitsName[] =
446 * File name selection pattern
448 tSCC zAab_Ultrix_LimitsList[] =
451 * Machine/OS name selection pattern
453 tSCC* apzAab_Ultrix_LimitsMachs[] = {
456 #define AAB_ULTRIX_LIMITS_TEST_CT 0
457 #define aAab_Ultrix_LimitsTests (tTestDesc*)NULL
460 * Fix Command Arguments for Aab_Ultrix_Limits
462 static const char* apzAab_Ultrix_LimitsPatch[] = {
463 "#ifndef _LIMITS_INCLUDED\n\
464 #define _LIMITS_INCLUDED\n\
465 #include <sys/limits.h>\n\
466 #endif /* _LIMITS_INCLUDED */",
469 /* * * * * * * * * * * * * * * * * * * * * * * * * *
471 * Description of Aab_Ultrix_Memory fix
473 tSCC zAab_Ultrix_MemoryName[] =
477 * File name selection pattern
479 tSCC zAab_Ultrix_MemoryList[] =
482 * Machine/OS name selection pattern
484 tSCC* apzAab_Ultrix_MemoryMachs[] = {
487 #define AAB_ULTRIX_MEMORY_TEST_CT 0
488 #define aAab_Ultrix_MemoryTests (tTestDesc*)NULL
491 * Fix Command Arguments for Aab_Ultrix_Memory
493 static const char* apzAab_Ultrix_MemoryPatch[] = {
494 "#ifndef _MEMORY_INCLUDED\n\
495 #define _MEMORY_INCLUDED\n\
496 #include <strings.h>\n\
497 #endif /* _MEMORY_INCLUDED */",
500 /* * * * * * * * * * * * * * * * * * * * * * * * * *
502 * Description of Aab_Ultrix_String fix
504 tSCC zAab_Ultrix_StringName[] =
508 * File name selection pattern
510 tSCC zAab_Ultrix_StringList[] =
513 * Machine/OS name selection pattern
515 tSCC* apzAab_Ultrix_StringMachs[] = {
518 #define AAB_ULTRIX_STRING_TEST_CT 0
519 #define aAab_Ultrix_StringTests (tTestDesc*)NULL
522 * Fix Command Arguments for Aab_Ultrix_String
524 static const char* apzAab_Ultrix_StringPatch[] = {
525 "#ifndef _STRING_INCLUDED\n\
526 #define _STRING_INCLUDED\n\
527 #include <strings.h>\n\
528 #endif /* _STRING_INCLUDED */",
531 /* * * * * * * * * * * * * * * * * * * * * * * * * *
533 * Description of Aix_Pthread fix
535 tSCC zAix_PthreadName[] =
539 * File name selection pattern
541 tSCC zAix_PthreadList[] =
544 * Machine/OS name selection pattern
546 #define apzAix_PthreadMachs (const char**)NULL
549 * content selection pattern - do fix if pattern found
551 tSCC zAix_PthreadSelect0[] =
552 "(#define [A-Za-z_0-9]+)(\\\\\n\
556 #define AIX_PTHREAD_TEST_CT 1
557 static tTestDesc aAix_PthreadTests[] = {
558 { TT_EGREP, zAix_PthreadSelect0, (regex_t*)NULL }, };
561 * Fix Command Arguments for Aix_Pthread
563 static const char* apzAix_PthreadPatch[] = {
568 /* * * * * * * * * * * * * * * * * * * * * * * * * *
570 * Description of Aix_Sysmachine fix
572 tSCC zAix_SysmachineName[] =
576 * File name selection pattern
578 tSCC zAix_SysmachineList[] =
581 * Machine/OS name selection pattern
583 #define apzAix_SysmachineMachs (const char**)NULL
586 * content selection pattern - do fix if pattern found
588 tSCC zAix_SysmachineSelect0[] =
591 #define AIX_SYSMACHINE_TEST_CT 1
592 static tTestDesc aAix_SysmachineTests[] = {
593 { TT_EGREP, zAix_SysmachineSelect0, (regex_t*)NULL }, };
596 * Fix Command Arguments for Aix_Sysmachine
598 static const char* apzAix_SysmachinePatch[] = {
603 /* * * * * * * * * * * * * * * * * * * * * * * * * *
605 * Description of Aix_Syswait fix
607 tSCC zAix_SyswaitName[] =
611 * File name selection pattern
613 tSCC zAix_SyswaitList[] =
616 * Machine/OS name selection pattern
618 #define apzAix_SyswaitMachs (const char**)NULL
621 * content selection pattern - do fix if pattern found
623 tSCC zAix_SyswaitSelect0[] =
624 "^extern pid_t wait3\\(\\);\n";
625 tSCC zAix_SyswaitSelect1[] =
628 #define AIX_SYSWAIT_TEST_CT 2
629 static tTestDesc aAix_SyswaitTests[] = {
630 { TT_EGREP, zAix_SyswaitSelect0, (regex_t*)NULL },
631 { TT_EGREP, zAix_SyswaitSelect1, (regex_t*)NULL }, };
634 * Fix Command Arguments for Aix_Syswait
636 static const char* apzAix_SyswaitPatch[] = {
642 /* * * * * * * * * * * * * * * * * * * * * * * * * *
644 * Description of Aix_Volatile fix
646 tSCC zAix_VolatileName[] =
650 * File name selection pattern
652 tSCC zAix_VolatileList[] =
655 * Machine/OS name selection pattern
657 #define apzAix_VolatileMachs (const char**)NULL
660 * content selection pattern - do fix if pattern found
662 tSCC zAix_VolatileSelect0[] =
663 "typedef volatile int sig_atomic_t";
665 #define AIX_VOLATILE_TEST_CT 1
666 static tTestDesc aAix_VolatileTests[] = {
667 { TT_EGREP, zAix_VolatileSelect0, (regex_t*)NULL }, };
670 * Fix Command Arguments for Aix_Volatile
672 static const char* apzAix_VolatilePatch[] = {
674 "typedef int sig_atomic_t",
677 /* * * * * * * * * * * * * * * * * * * * * * * * * *
679 * Description of Alpha___Assert fix
681 tSCC zAlpha___AssertName[] =
685 * File name selection pattern
687 tSCC zAlpha___AssertList[] =
690 * Machine/OS name selection pattern
692 #define apzAlpha___AssertMachs (const char**)NULL
695 * content selection pattern - do fix if pattern found
697 tSCC zAlpha___AssertSelect0[] =
698 "__assert\\(char \\*, char \\*, int\\)";
700 #define ALPHA___ASSERT_TEST_CT 1
701 static tTestDesc aAlpha___AssertTests[] = {
702 { TT_EGREP, zAlpha___AssertSelect0, (regex_t*)NULL }, };
705 * Fix Command Arguments for Alpha___Assert
707 static const char* apzAlpha___AssertPatch[] = {
709 "__assert(const char *, const char *, int)",
712 /* * * * * * * * * * * * * * * * * * * * * * * * * *
714 * Description of Alpha_Assert fix
716 tSCC zAlpha_AssertName[] =
720 * File name selection pattern
722 tSCC zAlpha_AssertList[] =
725 * Machine/OS name selection pattern
727 #define apzAlpha_AssertMachs (const char**)NULL
730 * content selection pattern - do fix if pattern found
732 tSCC zAlpha_AssertSelect0[] =
733 "(#define assert\\(EX\\).*)\\(\\(int\\) \\(EX\\)\\)";
735 #define ALPHA_ASSERT_TEST_CT 1
736 static tTestDesc aAlpha_AssertTests[] = {
737 { TT_EGREP, zAlpha_AssertSelect0, (regex_t*)NULL }, };
740 * Fix Command Arguments for Alpha_Assert
742 static const char* apzAlpha_AssertPatch[] = {
747 /* * * * * * * * * * * * * * * * * * * * * * * * * *
749 * Description of Alpha_Getopt fix
751 tSCC zAlpha_GetoptName[] =
755 * File name selection pattern
757 tSCC zAlpha_GetoptList[] =
758 "|stdio.h|stdlib.h|";
760 * Machine/OS name selection pattern
762 #define apzAlpha_GetoptMachs (const char**)NULL
765 * content selection pattern - do fix if pattern found
767 tSCC zAlpha_GetoptSelect0[] =
768 "getopt\\(int, char \\*\\[\\], *char \\*\\)";
770 #define ALPHA_GETOPT_TEST_CT 1
771 static tTestDesc aAlpha_GetoptTests[] = {
772 { TT_EGREP, zAlpha_GetoptSelect0, (regex_t*)NULL }, };
775 * Fix Command Arguments for Alpha_Getopt
777 static const char* apzAlpha_GetoptPatch[] = {
779 "getopt(int, char *const[], const char *)",
782 /* * * * * * * * * * * * * * * * * * * * * * * * * *
784 * Description of Alpha_Parens fix
786 tSCC zAlpha_ParensName[] =
790 * File name selection pattern
792 tSCC zAlpha_ParensList[] =
795 * Machine/OS name selection pattern
797 #define apzAlpha_ParensMachs (const char**)NULL
800 * content selection pattern - do fix if pattern found
802 tSCC zAlpha_ParensSelect0[] =
803 "#ifndef\\(__mips64\\)";
805 #define ALPHA_PARENS_TEST_CT 1
806 static tTestDesc aAlpha_ParensTests[] = {
807 { TT_EGREP, zAlpha_ParensSelect0, (regex_t*)NULL }, };
810 * Fix Command Arguments for Alpha_Parens
812 static const char* apzAlpha_ParensPatch[] = {
817 /* * * * * * * * * * * * * * * * * * * * * * * * * *
819 * Description of Alpha_Sbrk fix
821 tSCC zAlpha_SbrkName[] =
825 * File name selection pattern
827 tSCC zAlpha_SbrkList[] =
830 * Machine/OS name selection pattern
832 #define apzAlpha_SbrkMachs (const char**)NULL
835 * content selection pattern - do fix if pattern found
837 tSCC zAlpha_SbrkSelect0[] =
838 "char[ \t]*\\*[\t ]*sbrk[ \t]*\\(";
840 #define ALPHA_SBRK_TEST_CT 1
841 static tTestDesc aAlpha_SbrkTests[] = {
842 { TT_EGREP, zAlpha_SbrkSelect0, (regex_t*)NULL }, };
845 * Fix Command Arguments for Alpha_Sbrk
847 static const char* apzAlpha_SbrkPatch[] = {
852 /* * * * * * * * * * * * * * * * * * * * * * * * * *
854 * Description of Avoid_Bool_Define fix
856 tSCC zAvoid_Bool_DefineName[] =
860 * File name selection pattern
862 tSCC zAvoid_Bool_DefineList[] =
863 "|curses.h|curses_colr/curses.h|term.h|tinfo.h|";
865 * Machine/OS name selection pattern
867 #define apzAvoid_Bool_DefineMachs (const char**)NULL
870 * content selection pattern - do fix if pattern found
872 tSCC zAvoid_Bool_DefineSelect0[] =
873 "#[ \t]*define[ \t]+bool[ \t]";
876 * content bypass pattern - skip fix if pattern found
878 tSCC zAvoid_Bool_DefineBypass0[] =
879 "we must use the C\\+\\+ compiler's type";
881 #define AVOID_BOOL_DEFINE_TEST_CT 2
882 static tTestDesc aAvoid_Bool_DefineTests[] = {
883 { TT_NEGREP, zAvoid_Bool_DefineBypass0, (regex_t*)NULL },
884 { TT_EGREP, zAvoid_Bool_DefineSelect0, (regex_t*)NULL }, };
887 * Fix Command Arguments for Avoid_Bool_Define
889 static const char* apzAvoid_Bool_DefinePatch[] = {
891 "#ifndef __cplusplus\n\
894 "^[ \t]*#[ \t]*define[ \t]+bool[ \t].*",
897 /* * * * * * * * * * * * * * * * * * * * * * * * * *
899 * Description of Avoid_Bool_Type fix
901 tSCC zAvoid_Bool_TypeName[] =
905 * File name selection pattern
907 tSCC zAvoid_Bool_TypeList[] =
908 "|curses.h|curses_colr/curses.h|term.h|tinfo.h|";
910 * Machine/OS name selection pattern
912 #define apzAvoid_Bool_TypeMachs (const char**)NULL
915 * content selection pattern - do fix if pattern found
917 tSCC zAvoid_Bool_TypeSelect0[] =
918 "^[ \t]*typedef[ \t].*[ \t]bool[ \t]*;";
921 * content bypass pattern - skip fix if pattern found
923 tSCC zAvoid_Bool_TypeBypass0[] =
924 "we must use the C\\+\\+ compiler's type";
926 #define AVOID_BOOL_TYPE_TEST_CT 2
927 static tTestDesc aAvoid_Bool_TypeTests[] = {
928 { TT_NEGREP, zAvoid_Bool_TypeBypass0, (regex_t*)NULL },
929 { TT_EGREP, zAvoid_Bool_TypeSelect0, (regex_t*)NULL }, };
932 * Fix Command Arguments for Avoid_Bool_Type
934 static const char* apzAvoid_Bool_TypePatch[] = {
936 "#ifndef __cplusplus\n\
941 /* * * * * * * * * * * * * * * * * * * * * * * * * *
943 * Description of Avoid_Wchar_T_Type fix
945 tSCC zAvoid_Wchar_T_TypeName[] =
946 "avoid_wchar_t_type";
949 * File name selection pattern
951 #define zAvoid_Wchar_T_TypeList (char*)NULL
953 * Machine/OS name selection pattern
955 #define apzAvoid_Wchar_T_TypeMachs (const char**)NULL
958 * content selection pattern - do fix if pattern found
960 tSCC zAvoid_Wchar_T_TypeSelect0[] =
961 "^[ \t]*typedef[ \t].*[ \t]wchar_t[ \t]*;";
963 #define AVOID_WCHAR_T_TYPE_TEST_CT 1
964 static tTestDesc aAvoid_Wchar_T_TypeTests[] = {
965 { TT_EGREP, zAvoid_Wchar_T_TypeSelect0, (regex_t*)NULL }, };
968 * Fix Command Arguments for Avoid_Wchar_T_Type
970 static const char* apzAvoid_Wchar_T_TypePatch[] = {
972 "#ifndef __cplusplus\n\
977 /* * * * * * * * * * * * * * * * * * * * * * * * * *
979 * Description of Bad_Lval fix
981 tSCC zBad_LvalName[] =
985 * File name selection pattern
987 tSCC zBad_LvalList[] =
988 "|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|";
990 * Machine/OS name selection pattern
992 #define apzBad_LvalMachs (const char**)NULL
995 * content selection pattern - do fix if pattern found
997 tSCC zBad_LvalSelect0[] =
998 "^[ \t]*#[ \t]*pragma[ \t]+extern_prefix";
1000 #define BAD_LVAL_TEST_CT 1
1001 static tTestDesc aBad_LvalTests[] = {
1002 { TT_EGREP, zBad_LvalSelect0, (regex_t*)NULL }, };
1005 * Fix Command Arguments for Bad_Lval
1007 static const char* apzBad_LvalPatch[] = { "sed",
1008 "-e", "s/^[ \t]*#[ \t]*define[ \t][ \t]*\\([^(]*\\)\\(([^)]*)\\)[ \t]*\\(_.*\\)\\1\\2[ \t]*$/#define \\1 \\3\\1/",
1011 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1013 * Description of Bad_Struct_Term fix
1015 tSCC zBad_Struct_TermName[] =
1019 * File name selection pattern
1021 tSCC zBad_Struct_TermList[] =
1024 * Machine/OS name selection pattern
1026 #define apzBad_Struct_TermMachs (const char**)NULL
1029 * content selection pattern - do fix if pattern found
1031 tSCC zBad_Struct_TermSelect0[] =
1032 "^[ \t]*typedef[ \t]+struct[ \t]+term[ \t]*;";
1034 #define BAD_STRUCT_TERM_TEST_CT 1
1035 static tTestDesc aBad_Struct_TermTests[] = {
1036 { TT_EGREP, zBad_Struct_TermSelect0, (regex_t*)NULL }, };
1039 * Fix Command Arguments for Bad_Struct_Term
1041 static const char* apzBad_Struct_TermPatch[] = {
1046 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1048 * Description of Badquote fix
1050 tSCC zBadquoteName[] =
1054 * File name selection pattern
1056 tSCC zBadquoteList[] =
1057 "|sundev/vuid_event.h|";
1059 * Machine/OS name selection pattern
1061 #define apzBadquoteMachs (const char**)NULL
1064 * content selection pattern - do fix if pattern found
1066 tSCC zBadquoteSelect0[] =
1069 #define BADQUOTE_TEST_CT 1
1070 static tTestDesc aBadquoteTests[] = {
1071 { TT_EGREP, zBadquoteSelect0, (regex_t*)NULL }, };
1074 * Fix Command Arguments for Badquote
1076 static const char* apzBadquotePatch[] = {
1081 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1083 * Description of Broken_Assert_Stdio fix
1085 tSCC zBroken_Assert_StdioName[] =
1086 "broken_assert_stdio";
1089 * File name selection pattern
1091 tSCC zBroken_Assert_StdioList[] =
1094 * Machine/OS name selection pattern
1096 #define apzBroken_Assert_StdioMachs (const char**)NULL
1099 * content selection pattern - do fix if pattern found
1101 tSCC zBroken_Assert_StdioSelect0[] =
1105 * content bypass pattern - skip fix if pattern found
1107 tSCC zBroken_Assert_StdioBypass0[] =
1108 "include.*stdio\\.h";
1110 #define BROKEN_ASSERT_STDIO_TEST_CT 2
1111 static tTestDesc aBroken_Assert_StdioTests[] = {
1112 { TT_NEGREP, zBroken_Assert_StdioBypass0, (regex_t*)NULL },
1113 { TT_EGREP, zBroken_Assert_StdioSelect0, (regex_t*)NULL }, };
1116 * Fix Command Arguments for Broken_Assert_Stdio
1118 static const char* apzBroken_Assert_StdioPatch[] = {
1120 "#include <stdio.h>\n",
1123 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1125 * Description of Broken_Assert_Stdlib fix
1127 tSCC zBroken_Assert_StdlibName[] =
1128 "broken_assert_stdlib";
1131 * File name selection pattern
1133 tSCC zBroken_Assert_StdlibList[] =
1136 * Machine/OS name selection pattern
1138 #define apzBroken_Assert_StdlibMachs (const char**)NULL
1141 * content selection pattern - do fix if pattern found
1143 tSCC zBroken_Assert_StdlibSelect0[] =
1144 "exit *\\(|abort *\\(";
1147 * content bypass pattern - skip fix if pattern found
1149 tSCC zBroken_Assert_StdlibBypass0[] =
1150 "include.*stdlib\\.h";
1152 #define BROKEN_ASSERT_STDLIB_TEST_CT 2
1153 static tTestDesc aBroken_Assert_StdlibTests[] = {
1154 { TT_NEGREP, zBroken_Assert_StdlibBypass0, (regex_t*)NULL },
1155 { TT_EGREP, zBroken_Assert_StdlibSelect0, (regex_t*)NULL }, };
1158 * Fix Command Arguments for Broken_Assert_Stdlib
1160 static const char* apzBroken_Assert_StdlibPatch[] = {
1162 "#ifdef __cplusplus\n\
1163 #include <stdlib.h>\n\
1167 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1169 * Description of Broken_Cabs fix
1171 tSCC zBroken_CabsName[] =
1175 * File name selection pattern
1177 tSCC zBroken_CabsList[] =
1180 * Machine/OS name selection pattern
1182 #define apzBroken_CabsMachs (const char**)NULL
1185 * content selection pattern - do fix if pattern found
1187 tSCC zBroken_CabsSelect0[] =
1188 "^extern[ \\t]+double[ \\t]+cabs";
1190 #define BROKEN_CABS_TEST_CT 1
1191 static tTestDesc aBroken_CabsTests[] = {
1192 { TT_EGREP, zBroken_CabsSelect0, (regex_t*)NULL }, };
1195 * Fix Command Arguments for Broken_Cabs
1197 static const char* apzBroken_CabsPatch[] = {
1200 "^extern[ \t]+double[ \t]+cabs\\((struct dbl_hypot|)\\);",
1203 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1205 * Description of Ctrl_Quotes_Def fix
1207 tSCC zCtrl_Quotes_DefName[] =
1211 * File name selection pattern
1213 #define zCtrl_Quotes_DefList (char*)NULL
1215 * Machine/OS name selection pattern
1217 #define apzCtrl_Quotes_DefMachs (const char**)NULL
1220 * content selection pattern - do fix if pattern found
1222 tSCC zCtrl_Quotes_DefSelect0[] =
1223 "define[ \t]+[A-Z0-9_]+CTRL\\([a-zA-Z][,)]";
1225 #define CTRL_QUOTES_DEF_TEST_CT 1
1226 static tTestDesc aCtrl_Quotes_DefTests[] = {
1227 { TT_EGREP, zCtrl_Quotes_DefSelect0, (regex_t*)NULL }, };
1230 * Fix Command Arguments for Ctrl_Quotes_Def
1232 static const char* apzCtrl_Quotes_DefPatch[] = {
1237 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1239 * Description of Ctrl_Quotes_Use fix
1241 tSCC zCtrl_Quotes_UseName[] =
1245 * File name selection pattern
1247 #define zCtrl_Quotes_UseList (char*)NULL
1249 * Machine/OS name selection pattern
1251 #define apzCtrl_Quotes_UseMachs (const char**)NULL
1254 * content selection pattern - do fix if pattern found
1256 tSCC zCtrl_Quotes_UseSelect0[] =
1257 "define[ \t]+[A-Z0-9_]+[ \t]+[A-Z0-9_]+CTRL[ \t]*\\( *[^,']";
1259 #define CTRL_QUOTES_USE_TEST_CT 1
1260 static tTestDesc aCtrl_Quotes_UseTests[] = {
1261 { TT_EGREP, zCtrl_Quotes_UseSelect0, (regex_t*)NULL }, };
1264 * Fix Command Arguments for Ctrl_Quotes_Use
1266 static const char* apzCtrl_Quotes_UsePatch[] = {
1271 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1273 * Description of Cxx_Unready fix
1275 tSCC zCxx_UnreadyName[] =
1279 * File name selection pattern
1281 tSCC zCxx_UnreadyList[] =
1282 "|sys/mman.h|rpc/types.h|";
1284 * Machine/OS name selection pattern
1286 #define apzCxx_UnreadyMachs (const char**)NULL
1289 * content selection pattern - do fix if pattern found
1291 tSCC zCxx_UnreadySelect0[] =
1295 * content bypass pattern - skip fix if pattern found
1297 tSCC zCxx_UnreadyBypass0[] =
1298 "\"C\"|__BEGIN_DECLS";
1300 #define CXX_UNREADY_TEST_CT 2
1301 static tTestDesc aCxx_UnreadyTests[] = {
1302 { TT_NEGREP, zCxx_UnreadyBypass0, (regex_t*)NULL },
1303 { TT_EGREP, zCxx_UnreadySelect0, (regex_t*)NULL }, };
1306 * Fix Command Arguments for Cxx_Unready
1308 static const char* apzCxx_UnreadyPatch[] = {
1310 "#ifdef __cplusplus\n\
1313 "#ifdef __cplusplus\n\
1318 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1320 * Description of Dec_Intern_Asm fix
1322 tSCC zDec_Intern_AsmName[] =
1326 * File name selection pattern
1328 tSCC zDec_Intern_AsmList[] =
1331 * Machine/OS name selection pattern
1333 #define apzDec_Intern_AsmMachs (const char**)NULL
1334 #define DEC_INTERN_ASM_TEST_CT 0
1335 #define aDec_Intern_AsmTests (tTestDesc*)NULL
1338 * Fix Command Arguments for Dec_Intern_Asm
1340 static const char* apzDec_Intern_AsmPatch[] = { "sed",
1341 "-e", "/^[ \t]*float[ \t]*fasm/i\\\n\
1343 "-e", "/^[ \t]*#[ \t]*pragma[ \t]*intrinsic([ \t]*dasm/a\\\n\
1347 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1349 * Description of Djgpp_Wchar_H fix
1351 tSCC zDjgpp_Wchar_HName[] =
1355 * File name selection pattern
1357 #define zDjgpp_Wchar_HList (char*)NULL
1359 * Machine/OS name selection pattern
1361 #define apzDjgpp_Wchar_HMachs (const char**)NULL
1364 * content selection pattern - do fix if pattern found
1366 tSCC zDjgpp_Wchar_HSelect0[] =
1370 * content bypass pattern - skip fix if pattern found
1372 tSCC zDjgpp_Wchar_HBypass0[] =
1375 #define DJGPP_WCHAR_H_TEST_CT 2
1376 static tTestDesc aDjgpp_Wchar_HTests[] = {
1377 { TT_NEGREP, zDjgpp_Wchar_HBypass0, (regex_t*)NULL },
1378 { TT_EGREP, zDjgpp_Wchar_HSelect0, (regex_t*)NULL }, };
1381 * Fix Command Arguments for Djgpp_Wchar_H
1383 static const char* apzDjgpp_Wchar_HPatch[] = {
1386 #include <sys/djtypes.h>",
1387 "#include <stddef.h>",
1390 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1392 * Description of Ecd_Cursor fix
1394 tSCC zEcd_CursorName[] =
1398 * File name selection pattern
1400 tSCC zEcd_CursorList[] =
1401 "|sunwindow/win_lock.h|sunwindow/win_cursor.h|";
1403 * Machine/OS name selection pattern
1405 #define apzEcd_CursorMachs (const char**)NULL
1408 * content selection pattern - do fix if pattern found
1410 tSCC zEcd_CursorSelect0[] =
1413 #define ECD_CURSOR_TEST_CT 1
1414 static tTestDesc aEcd_CursorTests[] = {
1415 { TT_EGREP, zEcd_CursorSelect0, (regex_t*)NULL }, };
1418 * Fix Command Arguments for Ecd_Cursor
1420 static const char* apzEcd_CursorPatch[] = {
1425 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1427 * Description of Freebsd_Gcc3_Breakage fix
1429 tSCC zFreebsd_Gcc3_BreakageName[] =
1430 "freebsd_gcc3_breakage";
1433 * File name selection pattern
1435 tSCC zFreebsd_Gcc3_BreakageList[] =
1438 * Machine/OS name selection pattern
1440 tSCC* apzFreebsd_Gcc3_BreakageMachs[] = {
1442 (const char*)NULL };
1445 * content selection pattern - do fix if pattern found
1447 tSCC zFreebsd_Gcc3_BreakageSelect0[] =
1448 "^#if __GNUC__ == 2 && __GNUC_MINOR__ >= 7$";
1451 * content bypass pattern - skip fix if pattern found
1453 tSCC zFreebsd_Gcc3_BreakageBypass0[] =
1454 "__GNUC__[ \\t]*([>=]=[ \\t]*[3-9]|>[ \\t]*2)";
1456 #define FREEBSD_GCC3_BREAKAGE_TEST_CT 2
1457 static tTestDesc aFreebsd_Gcc3_BreakageTests[] = {
1458 { TT_NEGREP, zFreebsd_Gcc3_BreakageBypass0, (regex_t*)NULL },
1459 { TT_EGREP, zFreebsd_Gcc3_BreakageSelect0, (regex_t*)NULL }, };
1462 * Fix Command Arguments for Freebsd_Gcc3_Breakage
1464 static const char* apzFreebsd_Gcc3_BreakagePatch[] = {
1466 "%0 || __GNUC__ >= 3",
1469 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1471 * Description of Gnu_Types fix
1473 tSCC zGnu_TypesName[] =
1477 * File name selection pattern
1479 tSCC zGnu_TypesList[] =
1480 "|sys/types.h|stdlib.h|sys/stdtypes.h|stddef.h|memory.h|unistd.h|";
1482 * Machine/OS name selection pattern
1484 #define apzGnu_TypesMachs (const char**)NULL
1487 * content selection pattern - do fix if pattern found
1489 tSCC zGnu_TypesSelect0[] =
1490 "^[ \t]*typedef[ \t]+.*[ \t](ptrdiff|size|wchar)_t;";
1493 * content bypass pattern - skip fix if pattern found
1495 tSCC zGnu_TypesBypass0[] =
1496 "_GCC_(PTRDIFF|SIZE|WCHAR)_T";
1498 #define GNU_TYPES_TEST_CT 2
1499 static tTestDesc aGnu_TypesTests[] = {
1500 { TT_NEGREP, zGnu_TypesBypass0, (regex_t*)NULL },
1501 { TT_EGREP, zGnu_TypesSelect0, (regex_t*)NULL }, };
1504 * Fix Command Arguments for Gnu_Types
1506 static const char* apzGnu_TypesPatch[] = {
1510 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1512 * Description of Hp_Inline fix
1514 tSCC zHp_InlineName[] =
1518 * File name selection pattern
1520 tSCC zHp_InlineList[] =
1521 "|sys/spinlock.h|machine/machparam.h|";
1523 * Machine/OS name selection pattern
1525 #define apzHp_InlineMachs (const char**)NULL
1528 * content selection pattern - do fix if pattern found
1530 tSCC zHp_InlineSelect0[] =
1531 "[ \t]*#[ \t]*include[ \t]+\"\\.\\./machine/";
1533 #define HP_INLINE_TEST_CT 1
1534 static tTestDesc aHp_InlineTests[] = {
1535 { TT_EGREP, zHp_InlineSelect0, (regex_t*)NULL }, };
1538 * Fix Command Arguments for Hp_Inline
1540 static const char* apzHp_InlinePatch[] = {
1543 "([ \t]*#[ \t]*include[ \t]+)\"\\.\\./machine/([a-z]+)\\.h\"",
1546 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1548 * Description of Hp_Sysfile fix
1550 tSCC zHp_SysfileName[] =
1554 * File name selection pattern
1556 tSCC zHp_SysfileList[] =
1559 * Machine/OS name selection pattern
1561 #define apzHp_SysfileMachs (const char**)NULL
1564 * content selection pattern - do fix if pattern found
1566 tSCC zHp_SysfileSelect0[] =
1569 #define HP_SYSFILE_TEST_CT 1
1570 static tTestDesc aHp_SysfileTests[] = {
1571 { TT_EGREP, zHp_SysfileSelect0, (regex_t*)NULL }, };
1574 * Fix Command Arguments for Hp_Sysfile
1576 static const char* apzHp_SysfilePatch[] = {
1578 "(struct file *, ...)",
1582 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1584 * Description of Hpux10_Cpp_Pow_Inline fix
1586 tSCC zHpux10_Cpp_Pow_InlineName[] =
1587 "hpux10_cpp_pow_inline";
1590 * File name selection pattern
1592 tSCC zHpux10_Cpp_Pow_InlineList[] =
1593 "|fixinc-test-limits.h|math.h|";
1595 * Machine/OS name selection pattern
1597 #define apzHpux10_Cpp_Pow_InlineMachs (const char**)NULL
1600 * content selection pattern - do fix if pattern found
1602 tSCC zHpux10_Cpp_Pow_InlineSelect0[] =
1603 "^# +ifdef +__cplusplus\n\
1605 +inline +double +pow\\(double +__d,int +__expon\\) +{\n\
1606 [ \t]+return +pow\\(__d,\\(double\\)__expon\\);\n\
1608 +extern +\"C\" +{\n\
1612 #define HPUX10_CPP_POW_INLINE_TEST_CT 1
1613 static tTestDesc aHpux10_Cpp_Pow_InlineTests[] = {
1614 { TT_EGREP, zHpux10_Cpp_Pow_InlineSelect0, (regex_t*)NULL }, };
1617 * Fix Command Arguments for Hpux10_Cpp_Pow_Inline
1619 static const char* apzHpux10_Cpp_Pow_InlinePatch[] = {
1624 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1626 * Description of Hpux11_Cpp_Pow_Inline fix
1628 tSCC zHpux11_Cpp_Pow_InlineName[] =
1629 "hpux11_cpp_pow_inline";
1632 * File name selection pattern
1634 tSCC zHpux11_Cpp_Pow_InlineList[] =
1637 * Machine/OS name selection pattern
1639 #define apzHpux11_Cpp_Pow_InlineMachs (const char**)NULL
1642 * content selection pattern - do fix if pattern found
1644 tSCC zHpux11_Cpp_Pow_InlineSelect0[] =
1645 " +inline double pow\\(double d,int expon\\) {\n\
1646 +return pow\\(d, \\(double\\)expon\\);\n\
1649 #define HPUX11_CPP_POW_INLINE_TEST_CT 1
1650 static tTestDesc aHpux11_Cpp_Pow_InlineTests[] = {
1651 { TT_EGREP, zHpux11_Cpp_Pow_InlineSelect0, (regex_t*)NULL }, };
1654 * Fix Command Arguments for Hpux11_Cpp_Pow_Inline
1656 static const char* apzHpux11_Cpp_Pow_InlinePatch[] = {
1661 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1663 * Description of Hpux11_Abs fix
1665 tSCC zHpux11_AbsName[] =
1669 * File name selection pattern
1671 tSCC zHpux11_AbsList[] =
1674 * Machine/OS name selection pattern
1676 tSCC* apzHpux11_AbsMachs[] = {
1678 (const char*)NULL };
1681 * content selection pattern - do fix if pattern found
1683 tSCC zHpux11_AbsSelect0[] =
1684 "ifndef _MATH_INCLUDED";
1686 #define HPUX11_ABS_TEST_CT 1
1687 static tTestDesc aHpux11_AbsTests[] = {
1688 { TT_EGREP, zHpux11_AbsSelect0, (regex_t*)NULL }, };
1691 * Fix Command Arguments for Hpux11_Abs
1693 static const char* apzHpux11_AbsPatch[] = {
1695 "if !defined(_MATH_INCLUDED) || defined(__GNUG__)",
1698 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1700 * Description of Hpux_Long_Double fix
1702 tSCC zHpux_Long_DoubleName[] =
1706 * File name selection pattern
1708 tSCC zHpux_Long_DoubleList[] =
1711 * Machine/OS name selection pattern
1713 #define apzHpux_Long_DoubleMachs (const char**)NULL
1716 * content selection pattern - do fix if pattern found
1718 tSCC zHpux_Long_DoubleSelect0[] =
1719 "extern[ \t]long_double[ \t]strtold";
1722 * content bypass pattern - skip fix if pattern found
1724 tSCC zHpux_Long_DoubleBypass0[] =
1727 #define HPUX_LONG_DOUBLE_TEST_CT 2
1728 static tTestDesc aHpux_Long_DoubleTests[] = {
1729 { TT_NEGREP, zHpux_Long_DoubleBypass0, (regex_t*)NULL },
1730 { TT_EGREP, zHpux_Long_DoubleSelect0, (regex_t*)NULL }, };
1733 * Fix Command Arguments for Hpux_Long_Double
1735 static const char* apzHpux_Long_DoublePatch[] = { "sed",
1736 "-e", "/^#[ \t]*ifndef _LONG_DOUBLE/,/\\/\\* _LONG_DOUBLE \\*\\//D",
1737 "-e", "s/long_double/long double/g",
1740 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1742 * Description of Hpux11_Fabsf fix
1744 tSCC zHpux11_FabsfName[] =
1748 * File name selection pattern
1750 tSCC zHpux11_FabsfList[] =
1753 * Machine/OS name selection pattern
1755 #define apzHpux11_FabsfMachs (const char**)NULL
1758 * content selection pattern - do fix if pattern found
1760 tSCC zHpux11_FabsfSelect0[] =
1761 "^[ \t]*#[ \t]*define[ \t]+fabsf\\(.*";
1764 * content bypass pattern - skip fix if pattern found
1766 tSCC zHpux11_FabsfBypass0[] =
1769 #define HPUX11_FABSF_TEST_CT 2
1770 static tTestDesc aHpux11_FabsfTests[] = {
1771 { TT_NEGREP, zHpux11_FabsfBypass0, (regex_t*)NULL },
1772 { TT_EGREP, zHpux11_FabsfSelect0, (regex_t*)NULL }, };
1775 * Fix Command Arguments for Hpux11_Fabsf
1777 static const char* apzHpux11_FabsfPatch[] = {
1779 "#ifndef __cplusplus\n\
1784 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1786 * Description of Hpux11_Size_T fix
1788 tSCC zHpux11_Size_TName[] =
1792 * File name selection pattern
1794 #define zHpux11_Size_TList (char*)NULL
1796 * Machine/OS name selection pattern
1798 tSCC* apzHpux11_Size_TMachs[] = {
1800 (const char*)NULL };
1803 * content selection pattern - do fix if pattern found
1805 tSCC zHpux11_Size_TSelect0[] =
1808 #define HPUX11_SIZE_T_TEST_CT 1
1809 static tTestDesc aHpux11_Size_TTests[] = {
1810 { TT_EGREP, zHpux11_Size_TSelect0, (regex_t*)NULL }, };
1813 * Fix Command Arguments for Hpux11_Size_T
1815 static const char* apzHpux11_Size_TPatch[] = {
1820 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1822 * Description of Hpux11_Uint32_C fix
1824 tSCC zHpux11_Uint32_CName[] =
1828 * File name selection pattern
1830 tSCC zHpux11_Uint32_CList[] =
1833 * Machine/OS name selection pattern
1835 #define apzHpux11_Uint32_CMachs (const char**)NULL
1838 * content selection pattern - do fix if pattern found
1840 tSCC zHpux11_Uint32_CSelect0[] =
1841 "^#define UINT32_C\\(__c\\)[ \t]*__CONCAT__\\(__CONCAT_U__\\(__c\\),l\\)";
1843 #define HPUX11_UINT32_C_TEST_CT 1
1844 static tTestDesc aHpux11_Uint32_CTests[] = {
1845 { TT_EGREP, zHpux11_Uint32_CSelect0, (regex_t*)NULL }, };
1848 * Fix Command Arguments for Hpux11_Uint32_C
1850 static const char* apzHpux11_Uint32_CPatch[] = {
1852 "#define UINT32_C(__c) __CONCAT__(__c,ul)",
1855 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1857 * Description of Hpux10_Ctype_Declarations1 fix
1859 tSCC zHpux10_Ctype_Declarations1Name[] =
1860 "hpux10_ctype_declarations1";
1863 * File name selection pattern
1865 tSCC zHpux10_Ctype_Declarations1List[] =
1868 * Machine/OS name selection pattern
1870 #define apzHpux10_Ctype_Declarations1Machs (const char**)NULL
1873 * content selection pattern - do fix if pattern found
1875 tSCC zHpux10_Ctype_Declarations1Select0[] =
1876 "^#[ \t]*define _toupper\\(__c\\)[ \t]*__toupper\\(__c\\)";
1879 * content bypass pattern - skip fix if pattern found
1881 tSCC zHpux10_Ctype_Declarations1Bypass0[] =
1882 "^[ \t]*extern[ \t]*int[ \t]*__tolower[ \t]*\\(";
1884 #define HPUX10_CTYPE_DECLARATIONS1_TEST_CT 2
1885 static tTestDesc aHpux10_Ctype_Declarations1Tests[] = {
1886 { TT_NEGREP, zHpux10_Ctype_Declarations1Bypass0, (regex_t*)NULL },
1887 { TT_EGREP, zHpux10_Ctype_Declarations1Select0, (regex_t*)NULL }, };
1890 * Fix Command Arguments for Hpux10_Ctype_Declarations1
1892 static const char* apzHpux10_Ctype_Declarations1Patch[] = {
1894 "#ifdef _PROTOTYPES\n\
1895 extern int __tolower(int);\n\
1896 extern int __toupper(int);\n\
1897 #else /* NOT _PROTOTYPES */\n\
1898 extern int __tolower();\n\
1899 extern int __toupper();\n\
1900 #endif /* _PROTOTYPES */\n\n\
1904 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1906 * Description of Hpux10_Ctype_Declarations2 fix
1908 tSCC zHpux10_Ctype_Declarations2Name[] =
1909 "hpux10_ctype_declarations2";
1912 * File name selection pattern
1914 tSCC zHpux10_Ctype_Declarations2List[] =
1917 * Machine/OS name selection pattern
1919 #define apzHpux10_Ctype_Declarations2Machs (const char**)NULL
1922 * content selection pattern - do fix if pattern found
1924 tSCC zHpux10_Ctype_Declarations2Select0[] =
1925 "^# if defined\\(_SB_CTYPE_MACROS\\) && \\!defined\\(__lint\\)";
1928 * content bypass pattern - skip fix if pattern found
1930 tSCC zHpux10_Ctype_Declarations2Bypass0[] =
1931 "^[ \t]*extern[ \t]*int[ \t]*_isalnum[ \t]*\\(";
1933 #define HPUX10_CTYPE_DECLARATIONS2_TEST_CT 2
1934 static tTestDesc aHpux10_Ctype_Declarations2Tests[] = {
1935 { TT_NEGREP, zHpux10_Ctype_Declarations2Bypass0, (regex_t*)NULL },
1936 { TT_EGREP, zHpux10_Ctype_Declarations2Select0, (regex_t*)NULL }, };
1939 * Fix Command Arguments for Hpux10_Ctype_Declarations2
1941 static const char* apzHpux10_Ctype_Declarations2Patch[] = {
1944 #ifdef _PROTOTYPES\n\
1945 extern int _isalnum(int);\n\
1946 extern int _isalpha(int);\n\
1947 extern int _iscntrl(int);\n\
1948 extern int _isdigit(int);\n\
1949 extern int _isgraph(int);\n\
1950 extern int _islower(int);\n\
1951 extern int _isprint(int);\n\
1952 extern int _ispunct(int);\n\
1953 extern int _isspace(int);\n\
1954 extern int _isupper(int);\n\
1955 extern int _isxdigit(int);\n\
1956 # else /* not _PROTOTYPES */\n\
1957 extern int _isalnum();\n\
1958 extern int _isalpha();\n\
1959 extern int _iscntrl();\n\
1960 extern int _isdigit();\n\
1961 extern int _isgraph();\n\
1962 extern int _islower();\n\
1963 extern int _isprint();\n\
1964 extern int _ispunct();\n\
1965 extern int _isspace();\n\
1966 extern int _isupper();\n\
1967 extern int _isxdigit();\n\
1968 #endif /* _PROTOTYPES */\n",
1971 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1973 * Description of Hpux_Ctype_Macros fix
1975 tSCC zHpux_Ctype_MacrosName[] =
1976 "hpux_ctype_macros";
1979 * File name selection pattern
1981 tSCC zHpux_Ctype_MacrosList[] =
1984 * Machine/OS name selection pattern
1986 #define apzHpux_Ctype_MacrosMachs (const char**)NULL
1989 * content selection pattern - do fix if pattern found
1991 tSCC zHpux_Ctype_MacrosSelect0[] =
1992 "((: |\\()__SB_masks \\? )(__SB_masks\\[__(alnum|c)\\] & _IS)";
1994 #define HPUX_CTYPE_MACROS_TEST_CT 1
1995 static tTestDesc aHpux_Ctype_MacrosTests[] = {
1996 { TT_EGREP, zHpux_Ctype_MacrosSelect0, (regex_t*)NULL }, };
1999 * Fix Command Arguments for Hpux_Ctype_Macros
2001 static const char* apzHpux_Ctype_MacrosPatch[] = {
2006 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2008 * Description of Hpux11_Vsnprintf fix
2010 tSCC zHpux11_VsnprintfName[] =
2014 * File name selection pattern
2016 tSCC zHpux11_VsnprintfList[] =
2019 * Machine/OS name selection pattern
2021 #define apzHpux11_VsnprintfMachs (const char**)NULL
2024 * content selection pattern - do fix if pattern found
2026 tSCC zHpux11_VsnprintfSelect0[] =
2027 "(extern int vsnprintf\\(char \\*, _[hpux]*_size_t, const char \\*,) __va__list\\);";
2029 #define HPUX11_VSNPRINTF_TEST_CT 1
2030 static tTestDesc aHpux11_VsnprintfTests[] = {
2031 { TT_EGREP, zHpux11_VsnprintfSelect0, (regex_t*)NULL }, };
2034 * Fix Command Arguments for Hpux11_Vsnprintf
2036 static const char* apzHpux11_VsnprintfPatch[] = {
2041 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2043 * Description of Hpux8_Bogus_Inlines fix
2045 tSCC zHpux8_Bogus_InlinesName[] =
2046 "hpux8_bogus_inlines";
2049 * File name selection pattern
2051 tSCC zHpux8_Bogus_InlinesList[] =
2054 * Machine/OS name selection pattern
2056 #define apzHpux8_Bogus_InlinesMachs (const char**)NULL
2059 * content selection pattern - do fix if pattern found
2061 tSCC zHpux8_Bogus_InlinesSelect0[] =
2064 #define HPUX8_BOGUS_INLINES_TEST_CT 1
2065 static tTestDesc aHpux8_Bogus_InlinesTests[] = {
2066 { TT_EGREP, zHpux8_Bogus_InlinesSelect0, (regex_t*)NULL }, };
2069 * Fix Command Arguments for Hpux8_Bogus_Inlines
2071 static const char* apzHpux8_Bogus_InlinesPatch[] = { "sed",
2072 "-e", "s@inline int abs(int [a-z][a-z]*) {.*}@extern \"C\" int abs(int);@",
2073 "-e", "s@inline double abs(double [a-z][a-z]*) {.*}@@",
2074 "-e", "s@inline int sqr(int [a-z][a-z]*) {.*}@@",
2075 "-e", "s@inline double sqr(double [a-z][a-z]*) {.*}@@",
2078 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2080 * Description of Hpux_Maxint fix
2082 tSCC zHpux_MaxintName[] =
2086 * File name selection pattern
2088 tSCC zHpux_MaxintList[] =
2089 "|sys/param.h|values.h|";
2091 * Machine/OS name selection pattern
2093 #define apzHpux_MaxintMachs (const char**)NULL
2096 * content selection pattern - do fix if pattern found
2098 tSCC zHpux_MaxintSelect0[] =
2099 "^#[ \t]*define[ \t]+MAXINT[ \t]";
2102 * content bypass pattern - skip fix if pattern found
2104 tSCC zHpux_MaxintBypass0[] =
2105 "^#[ \t]*ifndef[ \t]+MAXINT";
2108 * perform the 'test' shell command - do fix on success
2110 tSCC zHpux_MaxintTest0[] =
2111 "-n \"`egrep '#[ \t]*define[ \t]+MAXINT[ \t]' sys/param.h`\"";
2113 #define HPUX_MAXINT_TEST_CT 3
2114 static tTestDesc aHpux_MaxintTests[] = {
2115 { TT_TEST, zHpux_MaxintTest0, 0 /* unused */ },
2116 { TT_NEGREP, zHpux_MaxintBypass0, (regex_t*)NULL },
2117 { TT_EGREP, zHpux_MaxintSelect0, (regex_t*)NULL }, };
2120 * Fix Command Arguments for Hpux_Maxint
2122 static const char* apzHpux_MaxintPatch[] = {
2127 "^#[ \t]*define[ \t]+MAXINT[ \t].*",
2130 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2132 * Description of Hpux_Systime fix
2134 tSCC zHpux_SystimeName[] =
2138 * File name selection pattern
2140 tSCC zHpux_SystimeList[] =
2143 * Machine/OS name selection pattern
2145 #define apzHpux_SystimeMachs (const char**)NULL
2148 * content selection pattern - do fix if pattern found
2150 tSCC zHpux_SystimeSelect0[] =
2151 "^extern struct sigevent;";
2153 #define HPUX_SYSTIME_TEST_CT 1
2154 static tTestDesc aHpux_SystimeTests[] = {
2155 { TT_EGREP, zHpux_SystimeSelect0, (regex_t*)NULL }, };
2158 * Fix Command Arguments for Hpux_Systime
2160 static const char* apzHpux_SystimePatch[] = {
2165 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2167 * Description of Int_Abort_Free_And_Exit fix
2169 tSCC zInt_Abort_Free_And_ExitName[] =
2170 "int_abort_free_and_exit";
2173 * File name selection pattern
2175 tSCC zInt_Abort_Free_And_ExitList[] =
2178 * Machine/OS name selection pattern
2180 #define apzInt_Abort_Free_And_ExitMachs (const char**)NULL
2183 * content selection pattern - do fix if pattern found
2185 tSCC zInt_Abort_Free_And_ExitSelect0[] =
2186 "int[ \t]+(abort|free|exit)[ \t]*\\(";
2188 #define INT_ABORT_FREE_AND_EXIT_TEST_CT 1
2189 static tTestDesc aInt_Abort_Free_And_ExitTests[] = {
2190 { TT_EGREP, zInt_Abort_Free_And_ExitSelect0, (regex_t*)NULL }, };
2193 * Fix Command Arguments for Int_Abort_Free_And_Exit
2195 static const char* apzInt_Abort_Free_And_ExitPatch[] = {
2200 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2202 * Description of Io_Quotes_Def fix
2204 tSCC zIo_Quotes_DefName[] =
2208 * File name selection pattern
2210 #define zIo_Quotes_DefList (char*)NULL
2212 * Machine/OS name selection pattern
2214 #define apzIo_Quotes_DefMachs (const char**)NULL
2217 * content selection pattern - do fix if pattern found
2219 tSCC zIo_Quotes_DefSelect0[] =
2220 "define[ \t]+[A-Z0-9_]+IO[A-Z]*\\([a-zA-Z][,)]";
2222 #define IO_QUOTES_DEF_TEST_CT 1
2223 static tTestDesc aIo_Quotes_DefTests[] = {
2224 { TT_EGREP, zIo_Quotes_DefSelect0, (regex_t*)NULL }, };
2227 * Fix Command Arguments for Io_Quotes_Def
2229 static const char* apzIo_Quotes_DefPatch[] = {
2234 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2236 * Description of Io_Quotes_Use fix
2238 tSCC zIo_Quotes_UseName[] =
2242 * File name selection pattern
2244 #define zIo_Quotes_UseList (char*)NULL
2246 * Machine/OS name selection pattern
2248 #define apzIo_Quotes_UseMachs (const char**)NULL
2251 * content selection pattern - do fix if pattern found
2253 tSCC zIo_Quotes_UseSelect0[] =
2254 "define[ \t]+[A-Z0-9_]+[ \t]+[A-Z0-9_]+IO[A-Z]*[ \t]*\\( *[^,']";
2256 #define IO_QUOTES_USE_TEST_CT 1
2257 static tTestDesc aIo_Quotes_UseTests[] = {
2258 { TT_EGREP, zIo_Quotes_UseSelect0, (regex_t*)NULL }, };
2261 * Fix Command Arguments for Io_Quotes_Use
2263 static const char* apzIo_Quotes_UsePatch[] = {
2268 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2270 * Description of Ip_Missing_Semi fix
2272 tSCC zIp_Missing_SemiName[] =
2276 * File name selection pattern
2278 tSCC zIp_Missing_SemiList[] =
2281 * Machine/OS name selection pattern
2283 #define apzIp_Missing_SemiMachs (const char**)NULL
2286 * content selection pattern - do fix if pattern found
2288 tSCC zIp_Missing_SemiSelect0[] =
2291 #define IP_MISSING_SEMI_TEST_CT 1
2292 static tTestDesc aIp_Missing_SemiTests[] = {
2293 { TT_EGREP, zIp_Missing_SemiSelect0, (regex_t*)NULL }, };
2296 * Fix Command Arguments for Ip_Missing_Semi
2298 static const char* apzIp_Missing_SemiPatch[] = { "sed",
2299 "-e", "/^struct/,/^};/s/}$/};/",
2302 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2304 * Description of Irix_Asm_Apostrophe fix
2306 tSCC zIrix_Asm_ApostropheName[] =
2307 "irix_asm_apostrophe";
2310 * File name selection pattern
2312 tSCC zIrix_Asm_ApostropheList[] =
2315 * Machine/OS name selection pattern
2317 #define apzIrix_Asm_ApostropheMachs (const char**)NULL
2320 * content selection pattern - do fix if pattern found
2322 tSCC zIrix_Asm_ApostropheSelect0[] =
2323 "^[ \t]*#.*[Ww]e're";
2325 #define IRIX_ASM_APOSTROPHE_TEST_CT 1
2326 static tTestDesc aIrix_Asm_ApostropheTests[] = {
2327 { TT_EGREP, zIrix_Asm_ApostropheSelect0, (regex_t*)NULL }, };
2330 * Fix Command Arguments for Irix_Asm_Apostrophe
2332 static const char* apzIrix_Asm_ApostrophePatch[] = {
2335 "^([ \t]*#.*[Ww]e)'re",
2338 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2340 * Description of Irix_Limits_Const fix
2342 tSCC zIrix_Limits_ConstName[] =
2343 "irix_limits_const";
2346 * File name selection pattern
2348 tSCC zIrix_Limits_ConstList[] =
2349 "|fixinc-test-limits.h|limits.h|";
2351 * Machine/OS name selection pattern
2353 #define apzIrix_Limits_ConstMachs (const char**)NULL
2356 * content selection pattern - do fix if pattern found
2358 tSCC zIrix_Limits_ConstSelect0[] =
2361 #define IRIX_LIMITS_CONST_TEST_CT 1
2362 static tTestDesc aIrix_Limits_ConstTests[] = {
2363 { TT_EGREP, zIrix_Limits_ConstSelect0, (regex_t*)NULL }, };
2366 * Fix Command Arguments for Irix_Limits_Const
2368 static const char* apzIrix_Limits_ConstPatch[] = {
2373 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2375 * Description of Irix_Stdio_Va_List fix
2377 tSCC zIrix_Stdio_Va_ListName[] =
2378 "irix_stdio_va_list";
2381 * File name selection pattern
2383 tSCC zIrix_Stdio_Va_ListList[] =
2386 * Machine/OS name selection pattern
2388 #define apzIrix_Stdio_Va_ListMachs (const char**)NULL
2391 * content selection pattern - do fix if pattern found
2393 tSCC zIrix_Stdio_Va_ListSelect0[] =
2394 "(printf\\(.*), /\\* va_list \\*/ char \\*";
2396 #define IRIX_STDIO_VA_LIST_TEST_CT 1
2397 static tTestDesc aIrix_Stdio_Va_ListTests[] = {
2398 { TT_EGREP, zIrix_Stdio_Va_ListSelect0, (regex_t*)NULL }, };
2401 * Fix Command Arguments for Irix_Stdio_Va_List
2403 static const char* apzIrix_Stdio_Va_ListPatch[] = {
2405 "%1, __gnuc_va_list",
2408 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2410 * Description of Isc_Fmod fix
2412 tSCC zIsc_FmodName[] =
2416 * File name selection pattern
2418 tSCC zIsc_FmodList[] =
2421 * Machine/OS name selection pattern
2423 #define apzIsc_FmodMachs (const char**)NULL
2426 * content selection pattern - do fix if pattern found
2428 tSCC zIsc_FmodSelect0[] =
2431 #define ISC_FMOD_TEST_CT 1
2432 static tTestDesc aIsc_FmodTests[] = {
2433 { TT_EGREP, zIsc_FmodSelect0, (regex_t*)NULL }, };
2436 * Fix Command Arguments for Isc_Fmod
2438 static const char* apzIsc_FmodPatch[] = {
2440 "fmod(double, double)",
2443 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2445 * Description of Isc_Omits_With_Stdc fix
2447 tSCC zIsc_Omits_With_StdcName[] =
2448 "isc_omits_with_stdc";
2451 * File name selection pattern
2453 tSCC zIsc_Omits_With_StdcList[] =
2454 "|stdio.h|math.h|ctype.h|sys/limits.h|sys/fcntl.h|sys/dirent.h|";
2456 * Machine/OS name selection pattern
2458 #define apzIsc_Omits_With_StdcMachs (const char**)NULL
2461 * content selection pattern - do fix if pattern found
2463 tSCC zIsc_Omits_With_StdcSelect0[] =
2464 "!defined\\(__STDC__\\) && !defined\\(_POSIX_SOURCE\\)";
2466 #define ISC_OMITS_WITH_STDC_TEST_CT 1
2467 static tTestDesc aIsc_Omits_With_StdcTests[] = {
2468 { TT_EGREP, zIsc_Omits_With_StdcSelect0, (regex_t*)NULL }, };
2471 * Fix Command Arguments for Isc_Omits_With_Stdc
2473 static const char* apzIsc_Omits_With_StdcPatch[] = {
2475 "!defined(_POSIX_SOURCE)",
2478 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2480 * Description of Kandr_Concat fix
2482 tSCC zKandr_ConcatName[] =
2486 * File name selection pattern
2488 tSCC zKandr_ConcatList[] =
2489 "|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|";
2491 * Machine/OS name selection pattern
2493 #define apzKandr_ConcatMachs (const char**)NULL
2496 * content selection pattern - do fix if pattern found
2498 tSCC zKandr_ConcatSelect0[] =
2501 #define KANDR_CONCAT_TEST_CT 1
2502 static tTestDesc aKandr_ConcatTests[] = {
2503 { TT_EGREP, zKandr_ConcatSelect0, (regex_t*)NULL }, };
2506 * Fix Command Arguments for Kandr_Concat
2508 static const char* apzKandr_ConcatPatch[] = {
2513 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2515 * Description of Libc1_G_Va_List fix
2517 tSCC zLibc1_G_Va_ListName[] =
2521 * File name selection pattern
2523 tSCC zLibc1_G_Va_ListList[] =
2526 * Machine/OS name selection pattern
2528 tSCC* apzLibc1_G_Va_ListMachs[] = {
2530 (const char*)NULL };
2533 * content selection pattern - do fix if pattern found
2535 tSCC zLibc1_G_Va_ListSelect0[] =
2536 "typedef void \\* _G_va_list;";
2538 #define LIBC1_G_VA_LIST_TEST_CT 1
2539 static tTestDesc aLibc1_G_Va_ListTests[] = {
2540 { TT_EGREP, zLibc1_G_Va_ListSelect0, (regex_t*)NULL }, };
2543 * Fix Command Arguments for Libc1_G_Va_List
2545 static const char* apzLibc1_G_Va_ListPatch[] = {
2547 "typedef __builtin_va_list _G_va_list;",
2550 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2552 * Description of Libc1_Ifdefd_Memx fix
2554 tSCC zLibc1_Ifdefd_MemxName[] =
2555 "libc1_ifdefd_memx";
2558 * File name selection pattern
2560 tSCC zLibc1_Ifdefd_MemxList[] =
2561 "|testing.h|string.h|";
2563 * Machine/OS name selection pattern
2565 #define apzLibc1_Ifdefd_MemxMachs (const char**)NULL
2568 * content selection pattern - do fix if pattern found
2570 tSCC zLibc1_Ifdefd_MemxSelect0[] =
2571 "' is a built-in function for gcc 2\\.x\\. \\*/";
2574 * content bypass pattern - skip fix if pattern found
2576 tSCC zLibc1_Ifdefd_MemxBypass0[] =
2579 #define LIBC1_IFDEFD_MEMX_TEST_CT 2
2580 static tTestDesc aLibc1_Ifdefd_MemxTests[] = {
2581 { TT_NEGREP, zLibc1_Ifdefd_MemxBypass0, (regex_t*)NULL },
2582 { TT_EGREP, zLibc1_Ifdefd_MemxSelect0, (regex_t*)NULL }, };
2585 * Fix Command Arguments for Libc1_Ifdefd_Memx
2587 static const char* apzLibc1_Ifdefd_MemxPatch[] = {
2590 "/\\* `mem...' is a built-in function for gcc 2\\.x\\. \\*/\n\
2591 #if defined\\(__STDC__\\) && __GNUC__ < 2\n\
2593 extern [a-z_]+ mem.*(\n\
2598 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2600 * Description of Limits_Ifndefs fix
2602 tSCC zLimits_IfndefsName[] =
2606 * File name selection pattern
2608 tSCC zLimits_IfndefsList[] =
2609 "|sys/limits.h|limits.h|";
2611 * Machine/OS name selection pattern
2613 #define apzLimits_IfndefsMachs (const char**)NULL
2616 * content bypass pattern - skip fix if pattern found
2618 tSCC zLimits_IfndefsBypass0[] =
2619 "ifndef[ \t]+FLT_(MIN|MAX)";
2621 #define LIMITS_IFNDEFS_TEST_CT 1
2622 static tTestDesc aLimits_IfndefsTests[] = {
2623 { TT_NEGREP, zLimits_IfndefsBypass0, (regex_t*)NULL }, };
2626 * Fix Command Arguments for Limits_Ifndefs
2628 static const char* apzLimits_IfndefsPatch[] = {
2633 "^[ \t]*#[ \t]*define[ \t]+((FLT|DBL)_(MIN|MAX|DIG))[ \t].*",
2636 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2638 * Description of Lynx_Void_Int fix
2640 tSCC zLynx_Void_IntName[] =
2644 * File name selection pattern
2646 tSCC zLynx_Void_IntList[] =
2649 * Machine/OS name selection pattern
2651 #define apzLynx_Void_IntMachs (const char**)NULL
2654 * content selection pattern - do fix if pattern found
2656 tSCC zLynx_Void_IntSelect0[] =
2657 "#[ \t]*define[ \t]+void[ \t]+int[ \t]*";
2659 #define LYNX_VOID_INT_TEST_CT 1
2660 static tTestDesc aLynx_Void_IntTests[] = {
2661 { TT_EGREP, zLynx_Void_IntSelect0, (regex_t*)NULL }, };
2664 * Fix Command Arguments for Lynx_Void_Int
2666 static const char* apzLynx_Void_IntPatch[] = {
2671 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2673 * Description of Lynxos_Fcntl_Proto fix
2675 tSCC zLynxos_Fcntl_ProtoName[] =
2676 "lynxos_fcntl_proto";
2679 * File name selection pattern
2681 tSCC zLynxos_Fcntl_ProtoList[] =
2684 * Machine/OS name selection pattern
2686 #define apzLynxos_Fcntl_ProtoMachs (const char**)NULL
2689 * content selection pattern - do fix if pattern found
2691 tSCC zLynxos_Fcntl_ProtoSelect0[] =
2692 "fcntl[ \t]*\\(int, int, int\\)";
2694 #define LYNXOS_FCNTL_PROTO_TEST_CT 1
2695 static tTestDesc aLynxos_Fcntl_ProtoTests[] = {
2696 { TT_EGREP, zLynxos_Fcntl_ProtoSelect0, (regex_t*)NULL }, };
2699 * Fix Command Arguments for Lynxos_Fcntl_Proto
2701 static const char* apzLynxos_Fcntl_ProtoPatch[] = {
2704 "(fcntl[ \t]*\\(int, int, )int\\)",
2707 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2709 * Description of Machine_Ansi_H_Va_List fix
2711 tSCC zMachine_Ansi_H_Va_ListName[] =
2712 "machine_ansi_h_va_list";
2715 * File name selection pattern
2717 #define zMachine_Ansi_H_Va_ListList (char*)NULL
2719 * Machine/OS name selection pattern
2721 #define apzMachine_Ansi_H_Va_ListMachs (const char**)NULL
2724 * content selection pattern - do fix if pattern found
2726 tSCC zMachine_Ansi_H_Va_ListSelect0[] =
2727 "define[ \t]+_BSD_VA_LIST_[ \t]";
2730 * content bypass pattern - skip fix if pattern found
2732 tSCC zMachine_Ansi_H_Va_ListBypass0[] =
2733 "__builtin_va_list";
2735 #define MACHINE_ANSI_H_VA_LIST_TEST_CT 2
2736 static tTestDesc aMachine_Ansi_H_Va_ListTests[] = {
2737 { TT_NEGREP, zMachine_Ansi_H_Va_ListBypass0, (regex_t*)NULL },
2738 { TT_EGREP, zMachine_Ansi_H_Va_ListSelect0, (regex_t*)NULL }, };
2741 * Fix Command Arguments for Machine_Ansi_H_Va_List
2743 static const char* apzMachine_Ansi_H_Va_ListPatch[] = {
2745 "%1__builtin_va_list",
2746 "(define[ \t]+_BSD_VA_LIST_[ \t]+).*",
2749 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2751 * Description of Machine_Name fix
2753 tSCC zMachine_NameName[] =
2757 * File name selection pattern
2759 #define zMachine_NameList (char*)NULL
2761 * Machine/OS name selection pattern
2763 #define apzMachine_NameMachs (const char**)NULL
2766 * perform the C function call test
2768 tSCC zMachine_NameFTst0[] = "machine_name";
2770 #define MACHINE_NAME_TEST_CT 1
2771 static tTestDesc aMachine_NameTests[] = {
2772 { TT_FUNCTION, zMachine_NameFTst0, 0 /* unused */ }, };
2775 * Fix Command Arguments for Machine_Name
2777 static const char* apzMachine_NamePatch[] = {
2781 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2783 * Description of Math_Exception fix
2785 tSCC zMath_ExceptionName[] =
2789 * File name selection pattern
2791 tSCC zMath_ExceptionList[] =
2794 * Machine/OS name selection pattern
2796 #define apzMath_ExceptionMachs (const char**)NULL
2799 * content selection pattern - do fix if pattern found
2801 tSCC zMath_ExceptionSelect0[] =
2805 * content bypass pattern - skip fix if pattern found
2807 tSCC zMath_ExceptionBypass0[] =
2808 "We have a problem when using C\\+\\+";
2810 #define MATH_EXCEPTION_TEST_CT 2
2811 static tTestDesc aMath_ExceptionTests[] = {
2812 { TT_NEGREP, zMath_ExceptionBypass0, (regex_t*)NULL },
2813 { TT_EGREP, zMath_ExceptionSelect0, (regex_t*)NULL }, };
2816 * Fix Command Arguments for Math_Exception
2818 static const char* apzMath_ExceptionPatch[] = {
2820 "#ifdef __cplusplus\n\
2821 #define exception __math_exception\n\
2823 "#ifdef __cplusplus\n\
2828 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2830 * Description of Math_Huge_Val_From_Dbl_Max fix
2832 tSCC zMath_Huge_Val_From_Dbl_MaxName[] =
2833 "math_huge_val_from_dbl_max";
2836 * File name selection pattern
2838 tSCC zMath_Huge_Val_From_Dbl_MaxList[] =
2841 * Machine/OS name selection pattern
2843 #define apzMath_Huge_Val_From_Dbl_MaxMachs (const char**)NULL
2846 * content selection pattern - do fix if pattern found
2848 tSCC zMath_Huge_Val_From_Dbl_MaxSelect0[] =
2849 "define[ \t]+HUGE_VAL[ \t]+DBL_MAX";
2852 * content bypass pattern - skip fix if pattern found
2854 tSCC zMath_Huge_Val_From_Dbl_MaxBypass0[] =
2855 "define[ \t]+DBL_MAX";
2857 #define MATH_HUGE_VAL_FROM_DBL_MAX_TEST_CT 2
2858 static tTestDesc aMath_Huge_Val_From_Dbl_MaxTests[] = {
2859 { TT_NEGREP, zMath_Huge_Val_From_Dbl_MaxBypass0, (regex_t*)NULL },
2860 { TT_EGREP, zMath_Huge_Val_From_Dbl_MaxSelect0, (regex_t*)NULL }, };
2863 * Fix Command Arguments for Math_Huge_Val_From_Dbl_Max
2865 static const char* apzMath_Huge_Val_From_Dbl_MaxPatch[] = { "sh", "-c",
2866 "\tdbl_max_def=`egrep 'define[ \t]+DBL_MAX[ \t]+.*' float.h | sed 's/.*DBL_MAX[ \t]*//' 2>/dev/null`\n\n\
2867 \tif ( test -n \"${dbl_max_def}\" ) > /dev/null 2>&1\n\
2868 \tthen sed -e '/define[ \t]*HUGE_VAL[ \t]*DBL_MAX/s@DBL_MAX@'\"$dbl_max_def@\"\n\
2873 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2875 * Description of Math_Huge_Val_Ifndef fix
2877 tSCC zMath_Huge_Val_IfndefName[] =
2878 "math_huge_val_ifndef";
2881 * File name selection pattern
2883 tSCC zMath_Huge_Val_IfndefList[] =
2884 "|math.h|math/math.h|";
2886 * Machine/OS name selection pattern
2888 #define apzMath_Huge_Val_IfndefMachs (const char**)NULL
2891 * content selection pattern - do fix if pattern found
2893 tSCC zMath_Huge_Val_IfndefSelect0[] =
2894 "define[ \t]+HUGE_VAL";
2896 #define MATH_HUGE_VAL_IFNDEF_TEST_CT 1
2897 static tTestDesc aMath_Huge_Val_IfndefTests[] = {
2898 { TT_EGREP, zMath_Huge_Val_IfndefSelect0, (regex_t*)NULL }, };
2901 * Fix Command Arguments for Math_Huge_Val_Ifndef
2903 static const char* apzMath_Huge_Val_IfndefPatch[] = {
2905 "#ifndef HUGE_VAL\n\
2908 "^[ \t]*#[ \t]*define[ \t]+HUGE_VAL[ \t].*",
2911 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2913 * Description of Nested_Auth_Des fix
2915 tSCC zNested_Auth_DesName[] =
2919 * File name selection pattern
2921 tSCC zNested_Auth_DesList[] =
2924 * Machine/OS name selection pattern
2926 #define apzNested_Auth_DesMachs (const char**)NULL
2929 * content selection pattern - do fix if pattern found
2931 tSCC zNested_Auth_DesSelect0[] =
2932 "(/\\*.*rpc/auth_des\\.h>.*)/\\*";
2934 #define NESTED_AUTH_DES_TEST_CT 1
2935 static tTestDesc aNested_Auth_DesTests[] = {
2936 { TT_EGREP, zNested_Auth_DesSelect0, (regex_t*)NULL }, };
2939 * Fix Command Arguments for Nested_Auth_Des
2941 static const char* apzNested_Auth_DesPatch[] = {
2946 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2948 * Description of Nested_Motorola fix
2950 tSCC zNested_MotorolaName[] =
2954 * File name selection pattern
2956 tSCC zNested_MotorolaList[] =
2957 "|sys/limits.h|limits.h|";
2959 * Machine/OS name selection pattern
2961 tSCC* apzNested_MotorolaMachs[] = {
2962 "m68k-motorola-sysv*",
2963 (const char*)NULL };
2966 * content selection pattern - do fix if pattern found
2968 tSCC zNested_MotorolaSelect0[] =
2969 "max # bytes atomic in write|error value returned by Math lib";
2971 #define NESTED_MOTOROLA_TEST_CT 1
2972 static tTestDesc aNested_MotorolaTests[] = {
2973 { TT_EGREP, zNested_MotorolaSelect0, (regex_t*)NULL }, };
2976 * Fix Command Arguments for Nested_Motorola
2978 static const char* apzNested_MotorolaPatch[] = { "sed",
2979 "-e", "s@^\\(#undef[ \t][ \t]*PIPE_BUF[ \t]*/\\* max # bytes atomic in write to a\\)$@\\1 */@",
2980 "-e", "s@\\(/\\*#define\tHUGE_VAL\t3.[0-9e+]* \\)\\(/\\*error value returned by Math lib\\*/\\)$@\\1*/ \\2@",
2983 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2985 * Description of Nested_Sys_Limits fix
2987 tSCC zNested_Sys_LimitsName[] =
2988 "nested_sys_limits";
2991 * File name selection pattern
2993 tSCC zNested_Sys_LimitsList[] =
2996 * Machine/OS name selection pattern
2998 #define apzNested_Sys_LimitsMachs (const char**)NULL
3001 * content selection pattern - do fix if pattern found
3003 tSCC zNested_Sys_LimitsSelect0[] =
3006 #define NESTED_SYS_LIMITS_TEST_CT 1
3007 static tTestDesc aNested_Sys_LimitsTests[] = {
3008 { TT_EGREP, zNested_Sys_LimitsSelect0, (regex_t*)NULL }, };
3011 * Fix Command Arguments for Nested_Sys_Limits
3013 static const char* apzNested_Sys_LimitsPatch[] = { "sed",
3014 "-e", "/CHILD_MAX/s,/\\* Max, Max,",
3015 "-e", "/OPEN_MAX/s,/\\* Max, Max,",
3018 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3020 * Description of Netbsd_Extra_Semicolon fix
3022 tSCC zNetbsd_Extra_SemicolonName[] =
3023 "netbsd_extra_semicolon";
3026 * File name selection pattern
3028 tSCC zNetbsd_Extra_SemicolonList[] =
3031 * Machine/OS name selection pattern
3033 tSCC* apzNetbsd_Extra_SemicolonMachs[] = {
3035 (const char*)NULL };
3038 * content selection pattern - do fix if pattern found
3040 tSCC zNetbsd_Extra_SemicolonSelect0[] =
3041 "#define[ \t]*__END_DECLS[ \t]*};";
3043 #define NETBSD_EXTRA_SEMICOLON_TEST_CT 1
3044 static tTestDesc aNetbsd_Extra_SemicolonTests[] = {
3045 { TT_EGREP, zNetbsd_Extra_SemicolonSelect0, (regex_t*)NULL }, };
3048 * Fix Command Arguments for Netbsd_Extra_Semicolon
3050 static const char* apzNetbsd_Extra_SemicolonPatch[] = {
3052 "#define __END_DECLS }",
3055 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3057 * Description of Next_Math_Prefix fix
3059 tSCC zNext_Math_PrefixName[] =
3063 * File name selection pattern
3065 tSCC zNext_Math_PrefixList[] =
3068 * Machine/OS name selection pattern
3070 #define apzNext_Math_PrefixMachs (const char**)NULL
3073 * content selection pattern - do fix if pattern found
3075 tSCC zNext_Math_PrefixSelect0[] =
3076 "^extern[ \t]+double[ \t]+__const__[ \t]";
3078 #define NEXT_MATH_PREFIX_TEST_CT 1
3079 static tTestDesc aNext_Math_PrefixTests[] = {
3080 { TT_EGREP, zNext_Math_PrefixSelect0, (regex_t*)NULL }, };
3083 * Fix Command Arguments for Next_Math_Prefix
3085 static const char* apzNext_Math_PrefixPatch[] = {
3087 "extern double %1(",
3088 "^extern[ \t]+double[ \t]+__const__[ \t]+([a-z]+)\\(",
3091 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3093 * Description of Next_Template fix
3095 tSCC zNext_TemplateName[] =
3099 * File name selection pattern
3101 tSCC zNext_TemplateList[] =
3104 * Machine/OS name selection pattern
3106 #define apzNext_TemplateMachs (const char**)NULL
3109 * content selection pattern - do fix if pattern found
3111 tSCC zNext_TemplateSelect0[] =
3114 #define NEXT_TEMPLATE_TEST_CT 1
3115 static tTestDesc aNext_TemplateTests[] = {
3116 { TT_EGREP, zNext_TemplateSelect0, (regex_t*)NULL }, };
3119 * Fix Command Arguments for Next_Template
3121 static const char* apzNext_TemplatePatch[] = {
3124 "\\(([^)]*)[ \t]template\\)",
3127 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3129 * Description of Next_Volitile fix
3131 tSCC zNext_VolitileName[] =
3135 * File name selection pattern
3137 tSCC zNext_VolitileList[] =
3140 * Machine/OS name selection pattern
3142 #define apzNext_VolitileMachs (const char**)NULL
3145 * content selection pattern - do fix if pattern found
3147 tSCC zNext_VolitileSelect0[] =
3148 "^extern[ \t]+volatile[ \t]+void[ \t]";
3150 #define NEXT_VOLITILE_TEST_CT 1
3151 static tTestDesc aNext_VolitileTests[] = {
3152 { TT_EGREP, zNext_VolitileSelect0, (regex_t*)NULL }, };
3155 * Fix Command Arguments for Next_Volitile
3157 static const char* apzNext_VolitilePatch[] = {
3160 "^extern[ \t]+volatile[ \t]+void[ \t]+(exit|abort)\\(",
3163 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3165 * Description of Next_Wait_Union fix
3167 tSCC zNext_Wait_UnionName[] =
3171 * File name selection pattern
3173 tSCC zNext_Wait_UnionList[] =
3176 * Machine/OS name selection pattern
3178 #define apzNext_Wait_UnionMachs (const char**)NULL
3181 * content selection pattern - do fix if pattern found
3183 tSCC zNext_Wait_UnionSelect0[] =
3184 "wait\\(union wait";
3186 #define NEXT_WAIT_UNION_TEST_CT 1
3187 static tTestDesc aNext_Wait_UnionTests[] = {
3188 { TT_EGREP, zNext_Wait_UnionSelect0, (regex_t*)NULL }, };
3191 * Fix Command Arguments for Next_Wait_Union
3193 static const char* apzNext_Wait_UnionPatch[] = {
3198 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3200 * Description of Nodeent_Syntax fix
3202 tSCC zNodeent_SyntaxName[] =
3206 * File name selection pattern
3208 tSCC zNodeent_SyntaxList[] =
3209 "|netdnet/dnetdb.h|";
3211 * Machine/OS name selection pattern
3213 #define apzNodeent_SyntaxMachs (const char**)NULL
3216 * content selection pattern - do fix if pattern found
3218 tSCC zNodeent_SyntaxSelect0[] =
3219 "char[ \t]*\\*na_addr[ \t]*$";
3221 #define NODEENT_SYNTAX_TEST_CT 1
3222 static tTestDesc aNodeent_SyntaxTests[] = {
3223 { TT_EGREP, zNodeent_SyntaxSelect0, (regex_t*)NULL }, };
3226 * Fix Command Arguments for Nodeent_Syntax
3228 static const char* apzNodeent_SyntaxPatch[] = {
3233 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3235 * Description of Osf_Namespace_A fix
3237 tSCC zOsf_Namespace_AName[] =
3241 * File name selection pattern
3243 tSCC zOsf_Namespace_AList[] =
3244 "|reg_types.h|sys/lc_core.h|";
3246 * Machine/OS name selection pattern
3248 #define apzOsf_Namespace_AMachs (const char**)NULL
3251 * perform the 'test' shell command - do fix on success
3253 tSCC zOsf_Namespace_ATest0[] =
3255 tSCC zOsf_Namespace_ATest1[] =
3256 " -r sys/lc_core.h";
3257 tSCC zOsf_Namespace_ATest2[] =
3258 " -n \"`grep '} regex_t;' reg_types.h`\"";
3259 tSCC zOsf_Namespace_ATest3[] =
3260 " -z \"`grep __regex_t regex.h`\"";
3262 #define OSF_NAMESPACE_A_TEST_CT 4
3263 static tTestDesc aOsf_Namespace_ATests[] = {
3264 { TT_TEST, zOsf_Namespace_ATest0, 0 /* unused */ },
3265 { TT_TEST, zOsf_Namespace_ATest1, 0 /* unused */ },
3266 { TT_TEST, zOsf_Namespace_ATest2, 0 /* unused */ },
3267 { TT_TEST, zOsf_Namespace_ATest3, 0 /* unused */ }, };
3270 * Fix Command Arguments for Osf_Namespace_A
3272 static const char* apzOsf_Namespace_APatch[] = {
3275 "reg(ex|off|match)_t",
3278 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3280 * Description of Osf_Namespace_C fix
3282 tSCC zOsf_Namespace_CName[] =
3286 * File name selection pattern
3288 tSCC zOsf_Namespace_CList[] =
3291 * Machine/OS name selection pattern
3293 #define apzOsf_Namespace_CMachs (const char**)NULL
3296 * content selection pattern - do fix if pattern found
3298 tSCC zOsf_Namespace_CSelect0[] =
3299 "#include <reg_types.h>.*";
3302 * perform the 'test' shell command - do fix on success
3304 tSCC zOsf_Namespace_CTest0[] =
3306 tSCC zOsf_Namespace_CTest1[] =
3307 " -r sys/lc_core.h";
3308 tSCC zOsf_Namespace_CTest2[] =
3309 " -n \"`grep '} regex_t;' reg_types.h`\"";
3310 tSCC zOsf_Namespace_CTest3[] =
3311 " -z \"`grep __regex_t regex.h`\"";
3313 #define OSF_NAMESPACE_C_TEST_CT 5
3314 static tTestDesc aOsf_Namespace_CTests[] = {
3315 { TT_TEST, zOsf_Namespace_CTest0, 0 /* unused */ },
3316 { TT_TEST, zOsf_Namespace_CTest1, 0 /* unused */ },
3317 { TT_TEST, zOsf_Namespace_CTest2, 0 /* unused */ },
3318 { TT_TEST, zOsf_Namespace_CTest3, 0 /* unused */ },
3319 { TT_EGREP, zOsf_Namespace_CSelect0, (regex_t*)NULL }, };
3322 * Fix Command Arguments for Osf_Namespace_C
3324 static const char* apzOsf_Namespace_CPatch[] = {
3327 typedef __regex_t\tregex_t;\n\
3328 typedef __regoff_t\tregoff_t;\n\
3329 typedef __regmatch_t\tregmatch_t;",
3332 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3334 * Description of Pthread_Page_Size fix
3336 tSCC zPthread_Page_SizeName[] =
3337 "pthread_page_size";
3340 * File name selection pattern
3342 tSCC zPthread_Page_SizeList[] =
3345 * Machine/OS name selection pattern
3347 #define apzPthread_Page_SizeMachs (const char**)NULL
3350 * content selection pattern - do fix if pattern found
3352 tSCC zPthread_Page_SizeSelect0[] =
3355 #define PTHREAD_PAGE_SIZE_TEST_CT 1
3356 static tTestDesc aPthread_Page_SizeTests[] = {
3357 { TT_EGREP, zPthread_Page_SizeSelect0, (regex_t*)NULL }, };
3360 * Fix Command Arguments for Pthread_Page_Size
3362 static const char* apzPthread_Page_SizePatch[] = {
3367 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3369 * Description of Read_Ret_Type fix
3371 tSCC zRead_Ret_TypeName[] =
3375 * File name selection pattern
3377 tSCC zRead_Ret_TypeList[] =
3380 * Machine/OS name selection pattern
3382 #define apzRead_Ret_TypeMachs (const char**)NULL
3385 * content selection pattern - do fix if pattern found
3387 tSCC zRead_Ret_TypeSelect0[] =
3388 "extern int\t.*, fread\\(\\), fwrite\\(\\)";
3390 #define READ_RET_TYPE_TEST_CT 1
3391 static tTestDesc aRead_Ret_TypeTests[] = {
3392 { TT_EGREP, zRead_Ret_TypeSelect0, (regex_t*)NULL }, };
3395 * Fix Command Arguments for Read_Ret_Type
3397 static const char* apzRead_Ret_TypePatch[] = {
3399 "extern unsigned int fread(), fwrite();\n\
3401 "(extern int\t.*), fread\\(\\), fwrite\\(\\)(.*)",
3404 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3406 * Description of Rs6000_Double fix
3408 tSCC zRs6000_DoubleName[] =
3412 * File name selection pattern
3414 tSCC zRs6000_DoubleList[] =
3417 * Machine/OS name selection pattern
3419 #define apzRs6000_DoubleMachs (const char**)NULL
3422 * content selection pattern - do fix if pattern found
3424 tSCC zRs6000_DoubleSelect0[] =
3425 "[^a-zA-Z_]class\\(";
3427 #define RS6000_DOUBLE_TEST_CT 1
3428 static tTestDesc aRs6000_DoubleTests[] = {
3429 { TT_EGREP, zRs6000_DoubleSelect0, (regex_t*)NULL }, };
3432 * Fix Command Arguments for Rs6000_Double
3434 static const char* apzRs6000_DoublePatch[] = {
3436 "#ifndef __cplusplus\n\
3439 "^.*[^a-zA-Z_]class\\(.*",
3442 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3444 * Description of Rs6000_Fchmod fix
3446 tSCC zRs6000_FchmodName[] =
3450 * File name selection pattern
3452 tSCC zRs6000_FchmodList[] =
3455 * Machine/OS name selection pattern
3457 #define apzRs6000_FchmodMachs (const char**)NULL
3460 * content selection pattern - do fix if pattern found
3462 tSCC zRs6000_FchmodSelect0[] =
3463 "fchmod\\(char \\*";
3465 #define RS6000_FCHMOD_TEST_CT 1
3466 static tTestDesc aRs6000_FchmodTests[] = {
3467 { TT_EGREP, zRs6000_FchmodSelect0, (regex_t*)NULL }, };
3470 * Fix Command Arguments for Rs6000_Fchmod
3472 static const char* apzRs6000_FchmodPatch[] = {
3477 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3479 * Description of Rs6000_Param fix
3481 tSCC zRs6000_ParamName[] =
3485 * File name selection pattern
3487 tSCC zRs6000_ParamList[] =
3488 "|stdio.h|unistd.h|";
3490 * Machine/OS name selection pattern
3492 #define apzRs6000_ParamMachs (const char**)NULL
3495 * content selection pattern - do fix if pattern found
3497 tSCC zRs6000_ParamSelect0[] =
3498 "rename\\(const char \\*old, const char \\*new\\)";
3500 #define RS6000_PARAM_TEST_CT 1
3501 static tTestDesc aRs6000_ParamTests[] = {
3502 { TT_EGREP, zRs6000_ParamSelect0, (regex_t*)NULL }, };
3505 * Fix Command Arguments for Rs6000_Param
3507 static const char* apzRs6000_ParamPatch[] = {
3509 "rename(const char *_old, const char *_new)",
3512 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3514 * Description of Sco_Static_Func fix
3516 tSCC zSco_Static_FuncName[] =
3520 * File name selection pattern
3522 tSCC zSco_Static_FuncList[] =
3525 * Machine/OS name selection pattern
3527 tSCC* apzSco_Static_FuncMachs[] = {
3529 (const char*)NULL };
3532 * content selection pattern - do fix if pattern found
3534 tSCC zSco_Static_FuncSelect0[] =
3537 #define SCO_STATIC_FUNC_TEST_CT 1
3538 static tTestDesc aSco_Static_FuncTests[] = {
3539 { TT_EGREP, zSco_Static_FuncSelect0, (regex_t*)NULL }, };
3542 * Fix Command Arguments for Sco_Static_Func
3544 static const char* apzSco_Static_FuncPatch[] = { "sed",
3545 "-e", "/^static int/i\\\n\
3546 #if __cplusplus\\\n\
3548 #endif /* __cplusplus */",
3550 #if __cplusplus\\\n\
3552 #endif /* __cplusplus */",
3555 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3557 * Description of Sco_Utime fix
3559 tSCC zSco_UtimeName[] =
3563 * File name selection pattern
3565 tSCC zSco_UtimeList[] =
3568 * Machine/OS name selection pattern
3570 tSCC* apzSco_UtimeMachs[] = {
3572 (const char*)NULL };
3575 * content selection pattern - do fix if pattern found
3577 tSCC zSco_UtimeSelect0[] =
3578 "\\(const char \\*, struct utimbuf \\*\\);";
3580 #define SCO_UTIME_TEST_CT 1
3581 static tTestDesc aSco_UtimeTests[] = {
3582 { TT_EGREP, zSco_UtimeSelect0, (regex_t*)NULL }, };
3585 * Fix Command Arguments for Sco_Utime
3587 static const char* apzSco_UtimePatch[] = {
3589 "(const char *, const struct utimbuf *);",
3592 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3594 * Description of Solaris_Mutex_Init fix
3596 tSCC zSolaris_Mutex_InitName[] =
3597 "solaris_mutex_init";
3600 * File name selection pattern
3602 tSCC zSolaris_Mutex_InitList[] =
3605 * Machine/OS name selection pattern
3607 #define apzSolaris_Mutex_InitMachs (const char**)NULL
3610 * content selection pattern - do fix if pattern found
3612 tSCC zSolaris_Mutex_InitSelect0[] =
3613 "@\\(#\\)pthread.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
3615 #define SOLARIS_MUTEX_INIT_TEST_CT 1
3616 static tTestDesc aSolaris_Mutex_InitTests[] = {
3617 { TT_EGREP, zSolaris_Mutex_InitSelect0, (regex_t*)NULL }, };
3620 * Fix Command Arguments for Solaris_Mutex_Init
3622 static const char* apzSolaris_Mutex_InitPatch[] = {
3624 "#if __STDC__ - 0 == 0 && !defined(_NO_LONGLONG)\n\
3629 "(^#define[ \t]+PTHREAD_(MUTEX|COND)_INITIALIZER[ \t]+{.*),[ \t]*0}(|[ \t].*)$",
3632 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3634 * Description of Solaris_Stdio_Tag fix
3636 tSCC zSolaris_Stdio_TagName[] =
3637 "solaris_stdio_tag";
3640 * File name selection pattern
3642 tSCC zSolaris_Stdio_TagList[] =
3645 * Machine/OS name selection pattern
3647 #define apzSolaris_Stdio_TagMachs (const char**)NULL
3650 * content selection pattern - do fix if pattern found
3652 tSCC zSolaris_Stdio_TagSelect0[] =
3653 "__cplusplus < 54321L";
3655 #define SOLARIS_STDIO_TAG_TEST_CT 1
3656 static tTestDesc aSolaris_Stdio_TagTests[] = {
3657 { TT_EGREP, zSolaris_Stdio_TagSelect0, (regex_t*)NULL }, };
3660 * Fix Command Arguments for Solaris_Stdio_Tag
3662 static const char* apzSolaris_Stdio_TagPatch[] = { "sed",
3663 "-e", "s/defined(__cplusplus) && (__cplusplus < 54321L)/0/",
3666 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3668 * Description of Solaris_Widec fix
3670 tSCC zSolaris_WidecName[] =
3674 * File name selection pattern
3676 tSCC zSolaris_WidecList[] =
3679 * Machine/OS name selection pattern
3681 tSCC* apzSolaris_WidecMachs[] = {
3682 "*-*-solaris2.[0-5]*",
3683 (const char*)NULL };
3686 * content selection pattern - do fix if pattern found
3688 tSCC zSolaris_WidecSelect0[] =
3692 * content bypass pattern - skip fix if pattern found
3694 tSCC zSolaris_WidecBypass0[] =
3695 "include.*wchar\\.h";
3697 #define SOLARIS_WIDEC_TEST_CT 2
3698 static tTestDesc aSolaris_WidecTests[] = {
3699 { TT_NEGREP, zSolaris_WidecBypass0, (regex_t*)NULL },
3700 { TT_EGREP, zSolaris_WidecSelect0, (regex_t*)NULL }, };
3703 * Fix Command Arguments for Solaris_Widec
3705 static const char* apzSolaris_WidecPatch[] = {
3708 #include <wchar.h>",
3711 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3713 * Description of Statsswtch fix
3715 tSCC zStatsswtchName[] =
3719 * File name selection pattern
3721 tSCC zStatsswtchList[] =
3724 * Machine/OS name selection pattern
3726 #define apzStatsswtchMachs (const char**)NULL
3729 * content selection pattern - do fix if pattern found
3731 tSCC zStatsswtchSelect0[] =
3734 #define STATSSWTCH_TEST_CT 1
3735 static tTestDesc aStatsswtchTests[] = {
3736 { TT_EGREP, zStatsswtchSelect0, (regex_t*)NULL }, };
3739 * Fix Command Arguments for Statsswtch
3741 static const char* apzStatsswtchPatch[] = {
3746 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3748 * Description of Stdio_Stdarg_H fix
3750 tSCC zStdio_Stdarg_HName[] =
3754 * File name selection pattern
3756 tSCC zStdio_Stdarg_HList[] =
3759 * Machine/OS name selection pattern
3761 #define apzStdio_Stdarg_HMachs (const char**)NULL
3764 * content bypass pattern - skip fix if pattern found
3766 tSCC zStdio_Stdarg_HBypass0[] =
3767 "include.*(stdarg.h|machine/ansi.h)";
3769 #define STDIO_STDARG_H_TEST_CT 1
3770 static tTestDesc aStdio_Stdarg_HTests[] = {
3771 { TT_NEGREP, zStdio_Stdarg_HBypass0, (regex_t*)NULL }, };
3774 * Fix Command Arguments for Stdio_Stdarg_H
3776 static const char* apzStdio_Stdarg_HPatch[] = {
3778 "#define __need___va_list\n\
3779 #include <stdarg.h>\n",
3782 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3784 * Description of Stdio_Va_List fix
3786 tSCC zStdio_Va_ListName[] =
3790 * File name selection pattern
3792 tSCC zStdio_Va_ListList[] =
3795 * Machine/OS name selection pattern
3797 #define apzStdio_Va_ListMachs (const char**)NULL
3800 * content bypass pattern - skip fix if pattern found
3802 tSCC zStdio_Va_ListBypass0[] =
3803 "__gnuc_va_list|_BSD_VA_LIST_|__DJ_va_list";
3805 #define STDIO_VA_LIST_TEST_CT 1
3806 static tTestDesc aStdio_Va_ListTests[] = {
3807 { TT_NEGREP, zStdio_Va_ListBypass0, (regex_t*)NULL }, };
3810 * Fix Command Arguments for Stdio_Va_List
3812 static const char* apzStdio_Va_ListPatch[] = { "sed",
3813 "-e", "s@ va_list @ __gnuc_va_list @\n\
3814 s@ va_list)@ __gnuc_va_list)@\n\
3815 s@ _VA_LIST_));@ __gnuc_va_list));@\n\
3816 s@ __VA_LIST__));@ __gnuc_va_list));@\n\
3817 s@ va_list@ __not_va_list__@\n\
3818 s@\\*va_list@*__not_va_list__@\n\
3819 s@ __va_list)@ __gnuc_va_list)@\n\
3820 s@typedef[ \t]\\(.*\\)[ \t]va_list[ \t]*;@typedef \\1 __not_va_list__;@\n\
3821 s@typedef[ \t]*__va_list__@typedef __gnuc_va_list@\n\
3822 s@GNUC_VA_LIST@GNUC_Va_LIST@\n\
3823 s@_NEED___VA_LIST@_NEED___Va_LIST@\n\
3824 s@VA_LIST@DUMMY_VA_LIST@\n\
3825 s@_Va_LIST@_VA_LIST@",
3828 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3830 * Description of Strict_Ansi_Not fix
3832 tSCC zStrict_Ansi_NotName[] =
3836 * File name selection pattern
3838 #define zStrict_Ansi_NotList (char*)NULL
3840 * Machine/OS name selection pattern
3842 #define apzStrict_Ansi_NotMachs (const char**)NULL
3845 * content selection pattern - do fix if pattern found
3847 tSCC zStrict_Ansi_NotSelect0[] =
3848 "^([ \t]*#[ \t]*if.*)(!__STDC__|__STDC__[ \t]*==[ \t]*0|__STDC__[ \t]*!=[ \t]*1|__STDC__[ \t]*-[ \t]*0[ \t]*==[ \t]*0)";
3851 * content bypass pattern - skip fix if pattern found
3853 tSCC zStrict_Ansi_NotBypass0[] =
3854 "GNU and MIPS C compilers define __STDC__ differently";
3857 * perform the C function call test
3859 tSCC zStrict_Ansi_NotFTst0[] = "stdc_0_in_system_headers";
3861 #define STRICT_ANSI_NOT_TEST_CT 3
3862 static tTestDesc aStrict_Ansi_NotTests[] = {
3863 { TT_FUNCTION, zStrict_Ansi_NotFTst0, 0 /* unused */ },
3864 { TT_NEGREP, zStrict_Ansi_NotBypass0, (regex_t*)NULL },
3865 { TT_EGREP, zStrict_Ansi_NotSelect0, (regex_t*)NULL }, };
3868 * Fix Command Arguments for Strict_Ansi_Not
3870 static const char* apzStrict_Ansi_NotPatch[] = {
3872 "%1 !defined(__STRICT_ANSI__)",
3875 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3877 * Description of Strict_Ansi_Not_Ctd fix
3879 tSCC zStrict_Ansi_Not_CtdName[] =
3880 "strict_ansi_not_ctd";
3883 * File name selection pattern
3885 tSCC zStrict_Ansi_Not_CtdList[] =
3886 "|math.h|limits.h|stdio.h|signal.h|stdlib.h|sys/signal.h|time.h|";
3888 * Machine/OS name selection pattern
3890 #define apzStrict_Ansi_Not_CtdMachs (const char**)NULL
3893 * content selection pattern - do fix if pattern found
3895 tSCC zStrict_Ansi_Not_CtdSelect0[] =
3896 "^([ \t]*(\\(|&&|\\|\\|)([ \t(]*!*[ \t]*defined\\([a-zA-Z_0-9]+\\)[ \t]*[|&][|&])*[ \t(]*)(__STDC__[ \t]*(|-[ \t]*0[ \t]*)==[ \t]*0)";
3899 * perform the C function call test
3901 tSCC zStrict_Ansi_Not_CtdFTst0[] = "stdc_0_in_system_headers";
3903 #define STRICT_ANSI_NOT_CTD_TEST_CT 2
3904 static tTestDesc aStrict_Ansi_Not_CtdTests[] = {
3905 { TT_FUNCTION, zStrict_Ansi_Not_CtdFTst0, 0 /* unused */ },
3906 { TT_EGREP, zStrict_Ansi_Not_CtdSelect0, (regex_t*)NULL }, };
3909 * Fix Command Arguments for Strict_Ansi_Not_Ctd
3911 static const char* apzStrict_Ansi_Not_CtdPatch[] = {
3913 "%1 !defined(__STRICT_ANSI__)",
3916 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3918 * Description of Strict_Ansi_Only fix
3920 tSCC zStrict_Ansi_OnlyName[] =
3924 * File name selection pattern
3926 #define zStrict_Ansi_OnlyList (char*)NULL
3928 * Machine/OS name selection pattern
3930 #define apzStrict_Ansi_OnlyMachs (const char**)NULL
3933 * content selection pattern - do fix if pattern found
3935 tSCC zStrict_Ansi_OnlySelect0[] =
3936 "^([ \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)";
3939 * perform the C function call test
3941 tSCC zStrict_Ansi_OnlyFTst0[] = "stdc_0_in_system_headers";
3943 #define STRICT_ANSI_ONLY_TEST_CT 2
3944 static tTestDesc aStrict_Ansi_OnlyTests[] = {
3945 { TT_FUNCTION, zStrict_Ansi_OnlyFTst0, 0 /* unused */ },
3946 { TT_EGREP, zStrict_Ansi_OnlySelect0, (regex_t*)NULL }, };
3949 * Fix Command Arguments for Strict_Ansi_Only
3951 static const char* apzStrict_Ansi_OnlyPatch[] = {
3953 "%1 defined(__STRICT_ANSI__)",
3956 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3958 * Description of Struct_File fix
3960 tSCC zStruct_FileName[] =
3964 * File name selection pattern
3966 tSCC zStruct_FileList[] =
3969 * Machine/OS name selection pattern
3971 #define apzStruct_FileMachs (const char**)NULL
3974 * content selection pattern - do fix if pattern found
3976 tSCC zStruct_FileSelect0[] =
3977 "^.*xdrstdio_create.*struct __file_s";
3979 #define STRUCT_FILE_TEST_CT 1
3980 static tTestDesc aStruct_FileTests[] = {
3981 { TT_EGREP, zStruct_FileSelect0, (regex_t*)NULL }, };
3984 * Fix Command Arguments for Struct_File
3986 static const char* apzStruct_FilePatch[] = {
3988 "struct __file_s;\n\
3992 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3994 * Description of Struct_Sockaddr fix
3996 tSCC zStruct_SockaddrName[] =
4000 * File name selection pattern
4002 tSCC zStruct_SockaddrList[] =
4005 * Machine/OS name selection pattern
4007 #define apzStruct_SockaddrMachs (const char**)NULL
4010 * content selection pattern - do fix if pattern found
4012 tSCC zStruct_SockaddrSelect0[] =
4013 "^.*authdes_create.*struct sockaddr";
4016 * content bypass pattern - skip fix if pattern found
4018 tSCC zStruct_SockaddrBypass0[] =
4021 #define STRUCT_SOCKADDR_TEST_CT 2
4022 static tTestDesc aStruct_SockaddrTests[] = {
4023 { TT_NEGREP, zStruct_SockaddrBypass0, (regex_t*)NULL },
4024 { TT_EGREP, zStruct_SockaddrSelect0, (regex_t*)NULL }, };
4027 * Fix Command Arguments for Struct_Sockaddr
4029 static const char* apzStruct_SockaddrPatch[] = {
4031 "struct sockaddr;\n\
4035 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4037 * Description of Sun_Auth_Proto fix
4039 tSCC zSun_Auth_ProtoName[] =
4043 * File name selection pattern
4045 tSCC zSun_Auth_ProtoList[] =
4046 "|rpc/auth.h|rpc/clnt.h|rpc/svc.h|rpc/xdr.h|";
4048 * Machine/OS name selection pattern
4050 #define apzSun_Auth_ProtoMachs (const char**)NULL
4053 * content selection pattern - do fix if pattern found
4055 tSCC zSun_Auth_ProtoSelect0[] =
4056 "\\(\\*[a-z][a-z_]*\\)\\(\\)";
4058 #define SUN_AUTH_PROTO_TEST_CT 1
4059 static tTestDesc aSun_Auth_ProtoTests[] = {
4060 { TT_EGREP, zSun_Auth_ProtoSelect0, (regex_t*)NULL }, };
4063 * Fix Command Arguments for Sun_Auth_Proto
4065 static const char* apzSun_Auth_ProtoPatch[] = {
4067 "#ifdef __cplusplus\n\
4072 "(.*\\(\\*[a-z][a-z_]*\\))\\(\\);(.*)",
4075 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4077 * Description of Sun_Bogus_Ifdef fix
4079 tSCC zSun_Bogus_IfdefName[] =
4083 * File name selection pattern
4085 tSCC zSun_Bogus_IfdefList[] =
4086 "|hsfs/hsfs_spec.h|hsfs/iso_spec.h|";
4088 * Machine/OS name selection pattern
4090 #define apzSun_Bogus_IfdefMachs (const char**)NULL
4093 * content selection pattern - do fix if pattern found
4095 tSCC zSun_Bogus_IfdefSelect0[] =
4096 "#ifdef(.*\\|\\|.*)";
4098 #define SUN_BOGUS_IFDEF_TEST_CT 1
4099 static tTestDesc aSun_Bogus_IfdefTests[] = {
4100 { TT_EGREP, zSun_Bogus_IfdefSelect0, (regex_t*)NULL }, };
4103 * Fix Command Arguments for Sun_Bogus_Ifdef
4105 static const char* apzSun_Bogus_IfdefPatch[] = {
4110 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4112 * Description of Sun_Catmacro fix
4114 tSCC zSun_CatmacroName[] =
4118 * File name selection pattern
4120 tSCC zSun_CatmacroList[] =
4121 "|pixrect/memvar.h|";
4123 * Machine/OS name selection pattern
4125 #define apzSun_CatmacroMachs (const char**)NULL
4128 * content selection pattern - do fix if pattern found
4130 tSCC zSun_CatmacroSelect0[] =
4131 "^#define[ \t]+CAT\\(a,b\\).*";
4133 #define SUN_CATMACRO_TEST_CT 1
4134 static tTestDesc aSun_CatmacroTests[] = {
4135 { TT_EGREP, zSun_CatmacroSelect0, (regex_t*)NULL }, };
4138 * Fix Command Arguments for Sun_Catmacro
4140 static const char* apzSun_CatmacroPatch[] = {
4143 # define CAT(a,b) a##b\n\
4149 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4151 * Description of Sun_Malloc fix
4153 tSCC zSun_MallocName[] =
4157 * File name selection pattern
4159 tSCC zSun_MallocList[] =
4162 * Machine/OS name selection pattern
4164 #define apzSun_MallocMachs (const char**)NULL
4165 #define SUN_MALLOC_TEST_CT 0
4166 #define aSun_MallocTests (tTestDesc*)NULL
4169 * Fix Command Arguments for Sun_Malloc
4171 static const char* apzSun_MallocPatch[] = { "sed",
4172 "-e", "s/typedef[ \t]char \\*\tmalloc_t/typedef void \\*\tmalloc_t/g",
4173 "-e", "s/int[ \t][ \t]*free/void\tfree/g",
4174 "-e", "s/char\\([ \t]*\\*[ \t]*malloc\\)/void\\1/g",
4175 "-e", "s/char\\([ \t]*\\*[ \t]*realloc\\)/void\\1/g",
4176 "-e", "s/char\\([ \t]*\\*[ \t]*calloc\\)/void\\1/g",
4179 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4181 * Description of Sun_Rusers_Semi fix
4183 tSCC zSun_Rusers_SemiName[] =
4187 * File name selection pattern
4189 tSCC zSun_Rusers_SemiList[] =
4190 "|rpcsvc/rusers.h|";
4192 * Machine/OS name selection pattern
4194 #define apzSun_Rusers_SemiMachs (const char**)NULL
4197 * content selection pattern - do fix if pattern found
4199 tSCC zSun_Rusers_SemiSelect0[] =
4202 #define SUN_RUSERS_SEMI_TEST_CT 1
4203 static tTestDesc aSun_Rusers_SemiTests[] = {
4204 { TT_EGREP, zSun_Rusers_SemiSelect0, (regex_t*)NULL }, };
4207 * Fix Command Arguments for Sun_Rusers_Semi
4209 static const char* apzSun_Rusers_SemiPatch[] = { "sed",
4210 "-e", "/^struct/,/^};/s/_cnt$/_cnt;/",
4213 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4215 * Description of Sun_Signal fix
4217 tSCC zSun_SignalName[] =
4221 * File name selection pattern
4223 tSCC zSun_SignalList[] =
4224 "|sys/signal.h|signal.h|";
4226 * Machine/OS name selection pattern
4228 #define apzSun_SignalMachs (const char**)NULL
4231 * content selection pattern - do fix if pattern found
4233 tSCC zSun_SignalSelect0[] =
4234 "^void\t\\(\\*signal\\(\\)\\)\\(\\);.*";
4236 #define SUN_SIGNAL_TEST_CT 1
4237 static tTestDesc aSun_SignalTests[] = {
4238 { TT_EGREP, zSun_SignalSelect0, (regex_t*)NULL }, };
4241 * Fix Command Arguments for Sun_Signal
4243 static const char* apzSun_SignalPatch[] = {
4245 "#ifdef __cplusplus\n\
4246 void\t(*signal(...))(...);\n\
4252 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4254 * Description of Sunos_Matherr_Decl fix
4256 tSCC zSunos_Matherr_DeclName[] =
4257 "sunos_matherr_decl";
4260 * File name selection pattern
4262 tSCC zSunos_Matherr_DeclList[] =
4265 * Machine/OS name selection pattern
4267 #define apzSunos_Matherr_DeclMachs (const char**)NULL
4270 * content selection pattern - do fix if pattern found
4272 tSCC zSunos_Matherr_DeclSelect0[] =
4276 * content bypass pattern - skip fix if pattern found
4278 tSCC zSunos_Matherr_DeclBypass0[] =
4279 "matherr.*(struct exception|__MATH_EXCEPTION)";
4281 #define SUNOS_MATHERR_DECL_TEST_CT 2
4282 static tTestDesc aSunos_Matherr_DeclTests[] = {
4283 { TT_NEGREP, zSunos_Matherr_DeclBypass0, (regex_t*)NULL },
4284 { TT_EGREP, zSunos_Matherr_DeclSelect0, (regex_t*)NULL }, };
4287 * Fix Command Arguments for Sunos_Matherr_Decl
4289 static const char* apzSunos_Matherr_DeclPatch[] = {
4291 "struct exception;\n",
4294 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4296 * Description of Sunos_Strlen fix
4298 tSCC zSunos_StrlenName[] =
4302 * File name selection pattern
4304 tSCC zSunos_StrlenList[] =
4307 * Machine/OS name selection pattern
4309 #define apzSunos_StrlenMachs (const char**)NULL
4312 * content selection pattern - do fix if pattern found
4314 tSCC zSunos_StrlenSelect0[] =
4315 "int[ \t]*strlen\\(\\);(.*)";
4317 #define SUNOS_STRLEN_TEST_CT 1
4318 static tTestDesc aSunos_StrlenTests[] = {
4319 { TT_EGREP, zSunos_StrlenSelect0, (regex_t*)NULL }, };
4322 * Fix Command Arguments for Sunos_Strlen
4324 static const char* apzSunos_StrlenPatch[] = {
4326 "__SIZE_TYPE__ strlen();%1",
4329 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4331 * Description of Svr4__P fix
4333 tSCC zSvr4__PName[] =
4337 * File name selection pattern
4339 tSCC zSvr4__PList[] =
4340 "|math.h|floatingpoint.h|";
4342 * Machine/OS name selection pattern
4344 #define apzSvr4__PMachs (const char**)NULL
4347 * content selection pattern - do fix if pattern found
4349 tSCC zSvr4__PSelect0[] =
4350 "^#define[ \t]+__P.*";
4352 #define SVR4__P_TEST_CT 1
4353 static tTestDesc aSvr4__PTests[] = {
4354 { TT_EGREP, zSvr4__PSelect0, (regex_t*)NULL }, };
4357 * Fix Command Arguments for Svr4__P
4359 static const char* apzSvr4__PPatch[] = {
4366 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4368 * Description of Svr4_Getcwd fix
4370 tSCC zSvr4_GetcwdName[] =
4374 * File name selection pattern
4376 tSCC zSvr4_GetcwdList[] =
4377 "|stdlib.h|unistd.h|prototypes.h|";
4379 * Machine/OS name selection pattern
4381 #define apzSvr4_GetcwdMachs (const char**)NULL
4384 * content selection pattern - do fix if pattern found
4386 tSCC zSvr4_GetcwdSelect0[] =
4387 "getcwd\\(char \\*, int\\)";
4389 #define SVR4_GETCWD_TEST_CT 1
4390 static tTestDesc aSvr4_GetcwdTests[] = {
4391 { TT_EGREP, zSvr4_GetcwdSelect0, (regex_t*)NULL }, };
4394 * Fix Command Arguments for Svr4_Getcwd
4396 static const char* apzSvr4_GetcwdPatch[] = {
4398 "getcwd(char *, size_t)",
4401 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4403 * Description of Svr4_Profil fix
4405 tSCC zSvr4_ProfilName[] =
4409 * File name selection pattern
4411 tSCC zSvr4_ProfilList[] =
4412 "|stdlib.h|unistd.h|";
4414 * Machine/OS name selection pattern
4416 #define apzSvr4_ProfilMachs (const char**)NULL
4419 * content selection pattern - do fix if pattern found
4421 tSCC zSvr4_ProfilSelect0[] =
4422 "profil\\(unsigned short \\*, unsigned int, unsigned int, unsigned int\\)";
4424 #define SVR4_PROFIL_TEST_CT 1
4425 static tTestDesc aSvr4_ProfilTests[] = {
4426 { TT_EGREP, zSvr4_ProfilSelect0, (regex_t*)NULL }, };
4429 * Fix Command Arguments for Svr4_Profil
4431 static const char* apzSvr4_ProfilPatch[] = {
4433 "profil(unsigned short *, size_t, int, unsigned int)",
4436 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4438 * Description of Sysv68_String fix
4440 tSCC zSysv68_StringName[] =
4444 * File name selection pattern
4446 tSCC zSysv68_StringList[] =
4447 "|testing.h|string.h|";
4449 * Machine/OS name selection pattern
4451 #define apzSysv68_StringMachs (const char**)NULL
4452 #define SYSV68_STRING_TEST_CT 0
4453 #define aSysv68_StringTests (tTestDesc*)NULL
4456 * Fix Command Arguments for Sysv68_String
4458 static const char* apzSysv68_StringPatch[] = { "sed",
4459 "-e", "s/extern[ \t]*int[ \t]*strlen();/extern unsigned int strlen();/",
4460 "-e", "s/extern[ \t]*int[ \t]*ffs[ \t]*(long);/extern int ffs(int);/",
4461 "-e", "s/strdup(char \\*s1);/strdup(const char *s1);/",
4462 "-e", "/^extern char$/N",
4463 "-e", "s/^extern char\\(\\n\t\\*memccpy(),\\)$/extern void\\1/",
4464 "-e", "/^extern int$/N",
4465 "-e", "s/^extern int\\(\\n\tstrlen(),\\)/extern size_t\\1/",
4466 "-e", "/^\tstrncmp(),$/N",
4467 "-e", "s/^\\(\tstrncmp()\\),\\n\\(\tstrlen(),\\)$/\\1;\\\n\
4468 extern unsigned int\\\n\
4472 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4474 * Description of Sysz_Stdlib_For_Sun fix
4476 tSCC zSysz_Stdlib_For_SunName[] =
4477 "sysz_stdlib_for_sun";
4480 * File name selection pattern
4482 tSCC zSysz_Stdlib_For_SunList[] =
4485 * Machine/OS name selection pattern
4487 #define apzSysz_Stdlib_For_SunMachs (const char**)NULL
4490 * content selection pattern - do fix if pattern found
4492 tSCC zSysz_Stdlib_For_SunSelect0[] =
4493 "char[ \t]*\\*[ \t]*(calloc|malloc|realloc|bsearch)[ \t]*\\(";
4495 #define SYSZ_STDLIB_FOR_SUN_TEST_CT 1
4496 static tTestDesc aSysz_Stdlib_For_SunTests[] = {
4497 { TT_EGREP, zSysz_Stdlib_For_SunSelect0, (regex_t*)NULL }, };
4500 * Fix Command Arguments for Sysz_Stdlib_For_Sun
4502 static const char* apzSysz_Stdlib_For_SunPatch[] = {
4507 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4509 * Description of Thread_Keyword fix
4511 tSCC zThread_KeywordName[] =
4515 * File name selection pattern
4517 tSCC zThread_KeywordList[] =
4518 "|pthread.h|bits/sigthread.h|";
4520 * Machine/OS name selection pattern
4522 #define apzThread_KeywordMachs (const char**)NULL
4525 * content selection pattern - do fix if pattern found
4527 tSCC zThread_KeywordSelect0[] =
4528 "([* ])__thread([,)])";
4530 #define THREAD_KEYWORD_TEST_CT 1
4531 static tTestDesc aThread_KeywordTests[] = {
4532 { TT_EGREP, zThread_KeywordSelect0, (regex_t*)NULL }, };
4535 * Fix Command Arguments for Thread_Keyword
4537 static const char* apzThread_KeywordPatch[] = {
4542 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4544 * Description of Tinfo_Cplusplus fix
4546 tSCC zTinfo_CplusplusName[] =
4550 * File name selection pattern
4552 tSCC zTinfo_CplusplusList[] =
4555 * Machine/OS name selection pattern
4557 #define apzTinfo_CplusplusMachs (const char**)NULL
4560 * content selection pattern - do fix if pattern found
4562 tSCC zTinfo_CplusplusSelect0[] =
4565 #define TINFO_CPLUSPLUS_TEST_CT 1
4566 static tTestDesc aTinfo_CplusplusTests[] = {
4567 { TT_EGREP, zTinfo_CplusplusSelect0, (regex_t*)NULL }, };
4570 * Fix Command Arguments for Tinfo_Cplusplus
4572 static const char* apzTinfo_CplusplusPatch[] = {
4577 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4579 * Description of Ultrix_Atexit_Param fix
4581 tSCC zUltrix_Atexit_ParamName[] =
4582 "ultrix_atexit_param";
4585 * File name selection pattern
4587 tSCC zUltrix_Atexit_ParamList[] =
4590 * Machine/OS name selection pattern
4592 #define apzUltrix_Atexit_ParamMachs (const char**)NULL
4595 * content selection pattern - do fix if pattern found
4597 tSCC zUltrix_Atexit_ParamSelect0[] =
4598 "atexit\\(.*\\(\\)";
4600 #define ULTRIX_ATEXIT_PARAM_TEST_CT 1
4601 static tTestDesc aUltrix_Atexit_ParamTests[] = {
4602 { TT_EGREP, zUltrix_Atexit_ParamSelect0, (regex_t*)NULL }, };
4605 * Fix Command Arguments for Ultrix_Atexit_Param
4607 static const char* apzUltrix_Atexit_ParamPatch[] = {
4609 "atexit( void (*__func)( void )",