2 * DO NOT EDIT THIS FILE - it has been generated
4 * Install modified versions of certain ANSI-incompatible system header
5 * files which are fixed to work correctly with ANSI C and placed in a
6 * directory that GNU C will search.
8 * This file contains 138 fixup descriptions.
10 * See README for more information.
12 * inclhack copyright (c) 1998, 1999, 2000, 2001
13 * The Free Software Foundation, Inc.
15 * inclhack is free software.
17 * You may redistribute it and/or modify it under the terms of the
18 * GNU General Public License, as published by the Free Software
19 * Foundation; either version 2, or (at your option) any later version.
21 * inclhack is distributed in the hope that it will be useful,
22 * but WITHOUT ANY WARRANTY; without even the implied warranty of
23 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
24 * See the GNU General Public License for more details.
26 * You should have received a copy of the GNU General Public License
27 * along with inclhack. See the file "COPYING". If not,
28 * write to: The Free Software Foundation, Inc.,
29 * 59 Temple Place - Suite 330,
30 * Boston, MA 02111-1307, USA.
33 /* * * * * * * * * * * * * * * * * * * * * * * * * *
35 * Description of Aab_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 Hpux11_Fabsf fix
1702 tSCC zHpux11_FabsfName[] =
1706 * File name selection pattern
1708 tSCC zHpux11_FabsfList[] =
1711 * Machine/OS name selection pattern
1713 #define apzHpux11_FabsfMachs (const char**)NULL
1716 * content selection pattern - do fix if pattern found
1718 tSCC zHpux11_FabsfSelect0[] =
1719 "^[ \t]*#[ \t]*define[ \t]+fabsf\\(.*";
1722 * content bypass pattern - skip fix if pattern found
1724 tSCC zHpux11_FabsfBypass0[] =
1727 #define HPUX11_FABSF_TEST_CT 2
1728 static tTestDesc aHpux11_FabsfTests[] = {
1729 { TT_NEGREP, zHpux11_FabsfBypass0, (regex_t*)NULL },
1730 { TT_EGREP, zHpux11_FabsfSelect0, (regex_t*)NULL }, };
1733 * Fix Command Arguments for Hpux11_Fabsf
1735 static const char* apzHpux11_FabsfPatch[] = {
1737 "#ifndef __cplusplus\n\
1742 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1744 * Description of Hpux11_Size_T fix
1746 tSCC zHpux11_Size_TName[] =
1750 * File name selection pattern
1752 #define zHpux11_Size_TList (char*)NULL
1754 * Machine/OS name selection pattern
1756 tSCC* apzHpux11_Size_TMachs[] = {
1758 (const char*)NULL };
1761 * content selection pattern - do fix if pattern found
1763 tSCC zHpux11_Size_TSelect0[] =
1766 #define HPUX11_SIZE_T_TEST_CT 1
1767 static tTestDesc aHpux11_Size_TTests[] = {
1768 { TT_EGREP, zHpux11_Size_TSelect0, (regex_t*)NULL }, };
1771 * Fix Command Arguments for Hpux11_Size_T
1773 static const char* apzHpux11_Size_TPatch[] = {
1778 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1780 * Description of Hpux11_Uint32_C fix
1782 tSCC zHpux11_Uint32_CName[] =
1786 * File name selection pattern
1788 tSCC zHpux11_Uint32_CList[] =
1791 * Machine/OS name selection pattern
1793 #define apzHpux11_Uint32_CMachs (const char**)NULL
1796 * content selection pattern - do fix if pattern found
1798 tSCC zHpux11_Uint32_CSelect0[] =
1799 "^#define UINT32_C\\(__c\\)[ \t]*__CONCAT__\\(__CONCAT_U__\\(__c\\),l\\)";
1801 #define HPUX11_UINT32_C_TEST_CT 1
1802 static tTestDesc aHpux11_Uint32_CTests[] = {
1803 { TT_EGREP, zHpux11_Uint32_CSelect0, (regex_t*)NULL }, };
1806 * Fix Command Arguments for Hpux11_Uint32_C
1808 static const char* apzHpux11_Uint32_CPatch[] = {
1810 "#define UINT32_C(__c) __CONCAT__(__c,ul)",
1813 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1815 * Description of Hpux11_Vsnprintf fix
1817 tSCC zHpux11_VsnprintfName[] =
1821 * File name selection pattern
1823 tSCC zHpux11_VsnprintfList[] =
1826 * Machine/OS name selection pattern
1828 #define apzHpux11_VsnprintfMachs (const char**)NULL
1831 * content selection pattern - do fix if pattern found
1833 tSCC zHpux11_VsnprintfSelect0[] =
1834 "(extern int vsnprintf\\(char \\*, _[hpux]*_size_t, const char \\*,) __va__list\\);";
1836 #define HPUX11_VSNPRINTF_TEST_CT 1
1837 static tTestDesc aHpux11_VsnprintfTests[] = {
1838 { TT_EGREP, zHpux11_VsnprintfSelect0, (regex_t*)NULL }, };
1841 * Fix Command Arguments for Hpux11_Vsnprintf
1843 static const char* apzHpux11_VsnprintfPatch[] = {
1848 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1850 * Description of Hpux8_Bogus_Inlines fix
1852 tSCC zHpux8_Bogus_InlinesName[] =
1853 "hpux8_bogus_inlines";
1856 * File name selection pattern
1858 tSCC zHpux8_Bogus_InlinesList[] =
1861 * Machine/OS name selection pattern
1863 #define apzHpux8_Bogus_InlinesMachs (const char**)NULL
1866 * content selection pattern - do fix if pattern found
1868 tSCC zHpux8_Bogus_InlinesSelect0[] =
1871 #define HPUX8_BOGUS_INLINES_TEST_CT 1
1872 static tTestDesc aHpux8_Bogus_InlinesTests[] = {
1873 { TT_EGREP, zHpux8_Bogus_InlinesSelect0, (regex_t*)NULL }, };
1876 * Fix Command Arguments for Hpux8_Bogus_Inlines
1878 static const char* apzHpux8_Bogus_InlinesPatch[] = { "sed",
1879 "-e", "s@inline int abs(int [a-z][a-z]*) {.*}@extern \"C\" int abs(int);@",
1880 "-e", "s@inline double abs(double [a-z][a-z]*) {.*}@@",
1881 "-e", "s@inline int sqr(int [a-z][a-z]*) {.*}@@",
1882 "-e", "s@inline double sqr(double [a-z][a-z]*) {.*}@@",
1885 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1887 * Description of Hpux_Maxint fix
1889 tSCC zHpux_MaxintName[] =
1893 * File name selection pattern
1895 tSCC zHpux_MaxintList[] =
1896 "|sys/param.h|values.h|";
1898 * Machine/OS name selection pattern
1900 #define apzHpux_MaxintMachs (const char**)NULL
1903 * content selection pattern - do fix if pattern found
1905 tSCC zHpux_MaxintSelect0[] =
1906 "^#[ \t]*define[ \t]+MAXINT[ \t]";
1909 * content bypass pattern - skip fix if pattern found
1911 tSCC zHpux_MaxintBypass0[] =
1912 "^#[ \t]*ifndef[ \t]+MAXINT";
1915 * perform the 'test' shell command - do fix on success
1917 tSCC zHpux_MaxintTest0[] =
1918 "-n \"`egrep '#[ \t]*define[ \t]+MAXINT[ \t]' sys/param.h`\"";
1920 #define HPUX_MAXINT_TEST_CT 3
1921 static tTestDesc aHpux_MaxintTests[] = {
1922 { TT_TEST, zHpux_MaxintTest0, 0 /* unused */ },
1923 { TT_NEGREP, zHpux_MaxintBypass0, (regex_t*)NULL },
1924 { TT_EGREP, zHpux_MaxintSelect0, (regex_t*)NULL }, };
1927 * Fix Command Arguments for Hpux_Maxint
1929 static const char* apzHpux_MaxintPatch[] = {
1934 "^#[ \t]*define[ \t]+MAXINT[ \t].*",
1937 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1939 * Description of Hpux_Systime fix
1941 tSCC zHpux_SystimeName[] =
1945 * File name selection pattern
1947 tSCC zHpux_SystimeList[] =
1950 * Machine/OS name selection pattern
1952 #define apzHpux_SystimeMachs (const char**)NULL
1955 * content selection pattern - do fix if pattern found
1957 tSCC zHpux_SystimeSelect0[] =
1958 "^extern struct sigevent;";
1960 #define HPUX_SYSTIME_TEST_CT 1
1961 static tTestDesc aHpux_SystimeTests[] = {
1962 { TT_EGREP, zHpux_SystimeSelect0, (regex_t*)NULL }, };
1965 * Fix Command Arguments for Hpux_Systime
1967 static const char* apzHpux_SystimePatch[] = {
1972 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1974 * Description of Int_Abort_Free_And_Exit fix
1976 tSCC zInt_Abort_Free_And_ExitName[] =
1977 "int_abort_free_and_exit";
1980 * File name selection pattern
1982 tSCC zInt_Abort_Free_And_ExitList[] =
1985 * Machine/OS name selection pattern
1987 #define apzInt_Abort_Free_And_ExitMachs (const char**)NULL
1990 * content selection pattern - do fix if pattern found
1992 tSCC zInt_Abort_Free_And_ExitSelect0[] =
1993 "int[ \t]+(abort|free|exit)[ \t]*\\(";
1995 #define INT_ABORT_FREE_AND_EXIT_TEST_CT 1
1996 static tTestDesc aInt_Abort_Free_And_ExitTests[] = {
1997 { TT_EGREP, zInt_Abort_Free_And_ExitSelect0, (regex_t*)NULL }, };
2000 * Fix Command Arguments for Int_Abort_Free_And_Exit
2002 static const char* apzInt_Abort_Free_And_ExitPatch[] = {
2007 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2009 * Description of Io_Quotes_Def fix
2011 tSCC zIo_Quotes_DefName[] =
2015 * File name selection pattern
2017 #define zIo_Quotes_DefList (char*)NULL
2019 * Machine/OS name selection pattern
2021 #define apzIo_Quotes_DefMachs (const char**)NULL
2024 * content selection pattern - do fix if pattern found
2026 tSCC zIo_Quotes_DefSelect0[] =
2027 "define[ \t]+[A-Z0-9_]+IO[A-Z]*\\([a-zA-Z][,)]";
2029 #define IO_QUOTES_DEF_TEST_CT 1
2030 static tTestDesc aIo_Quotes_DefTests[] = {
2031 { TT_EGREP, zIo_Quotes_DefSelect0, (regex_t*)NULL }, };
2034 * Fix Command Arguments for Io_Quotes_Def
2036 static const char* apzIo_Quotes_DefPatch[] = {
2041 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2043 * Description of Io_Quotes_Use fix
2045 tSCC zIo_Quotes_UseName[] =
2049 * File name selection pattern
2051 #define zIo_Quotes_UseList (char*)NULL
2053 * Machine/OS name selection pattern
2055 #define apzIo_Quotes_UseMachs (const char**)NULL
2058 * content selection pattern - do fix if pattern found
2060 tSCC zIo_Quotes_UseSelect0[] =
2061 "define[ \t]+[A-Z0-9_]+[ \t]+[A-Z0-9_]+IO[A-Z]*[ \t]*\\( *[^,']";
2063 #define IO_QUOTES_USE_TEST_CT 1
2064 static tTestDesc aIo_Quotes_UseTests[] = {
2065 { TT_EGREP, zIo_Quotes_UseSelect0, (regex_t*)NULL }, };
2068 * Fix Command Arguments for Io_Quotes_Use
2070 static const char* apzIo_Quotes_UsePatch[] = {
2075 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2077 * Description of Ip_Missing_Semi fix
2079 tSCC zIp_Missing_SemiName[] =
2083 * File name selection pattern
2085 tSCC zIp_Missing_SemiList[] =
2088 * Machine/OS name selection pattern
2090 #define apzIp_Missing_SemiMachs (const char**)NULL
2093 * content selection pattern - do fix if pattern found
2095 tSCC zIp_Missing_SemiSelect0[] =
2098 #define IP_MISSING_SEMI_TEST_CT 1
2099 static tTestDesc aIp_Missing_SemiTests[] = {
2100 { TT_EGREP, zIp_Missing_SemiSelect0, (regex_t*)NULL }, };
2103 * Fix Command Arguments for Ip_Missing_Semi
2105 static const char* apzIp_Missing_SemiPatch[] = { "sed",
2106 "-e", "/^struct/,/^};/s/}$/};/",
2109 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2111 * Description of Irix_Asm_Apostrophe fix
2113 tSCC zIrix_Asm_ApostropheName[] =
2114 "irix_asm_apostrophe";
2117 * File name selection pattern
2119 tSCC zIrix_Asm_ApostropheList[] =
2122 * Machine/OS name selection pattern
2124 #define apzIrix_Asm_ApostropheMachs (const char**)NULL
2127 * content selection pattern - do fix if pattern found
2129 tSCC zIrix_Asm_ApostropheSelect0[] =
2130 "^[ \t]*#.*[Ww]e're";
2132 #define IRIX_ASM_APOSTROPHE_TEST_CT 1
2133 static tTestDesc aIrix_Asm_ApostropheTests[] = {
2134 { TT_EGREP, zIrix_Asm_ApostropheSelect0, (regex_t*)NULL }, };
2137 * Fix Command Arguments for Irix_Asm_Apostrophe
2139 static const char* apzIrix_Asm_ApostrophePatch[] = {
2142 "^([ \t]*#.*[Ww]e)'re",
2145 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2147 * Description of Irix_Limits_Const fix
2149 tSCC zIrix_Limits_ConstName[] =
2150 "irix_limits_const";
2153 * File name selection pattern
2155 tSCC zIrix_Limits_ConstList[] =
2156 "|fixinc-test-limits.h|limits.h|";
2158 * Machine/OS name selection pattern
2160 #define apzIrix_Limits_ConstMachs (const char**)NULL
2163 * content selection pattern - do fix if pattern found
2165 tSCC zIrix_Limits_ConstSelect0[] =
2168 #define IRIX_LIMITS_CONST_TEST_CT 1
2169 static tTestDesc aIrix_Limits_ConstTests[] = {
2170 { TT_EGREP, zIrix_Limits_ConstSelect0, (regex_t*)NULL }, };
2173 * Fix Command Arguments for Irix_Limits_Const
2175 static const char* apzIrix_Limits_ConstPatch[] = {
2180 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2182 * Description of Irix_Stdio_Va_List fix
2184 tSCC zIrix_Stdio_Va_ListName[] =
2185 "irix_stdio_va_list";
2188 * File name selection pattern
2190 tSCC zIrix_Stdio_Va_ListList[] =
2193 * Machine/OS name selection pattern
2195 #define apzIrix_Stdio_Va_ListMachs (const char**)NULL
2198 * content selection pattern - do fix if pattern found
2200 tSCC zIrix_Stdio_Va_ListSelect0[] =
2201 "(printf\\(.*), /\\* va_list \\*/ char \\*";
2203 #define IRIX_STDIO_VA_LIST_TEST_CT 1
2204 static tTestDesc aIrix_Stdio_Va_ListTests[] = {
2205 { TT_EGREP, zIrix_Stdio_Va_ListSelect0, (regex_t*)NULL }, };
2208 * Fix Command Arguments for Irix_Stdio_Va_List
2210 static const char* apzIrix_Stdio_Va_ListPatch[] = {
2212 "%1, __gnuc_va_list",
2215 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2217 * Description of Isc_Fmod fix
2219 tSCC zIsc_FmodName[] =
2223 * File name selection pattern
2225 tSCC zIsc_FmodList[] =
2228 * Machine/OS name selection pattern
2230 #define apzIsc_FmodMachs (const char**)NULL
2233 * content selection pattern - do fix if pattern found
2235 tSCC zIsc_FmodSelect0[] =
2238 #define ISC_FMOD_TEST_CT 1
2239 static tTestDesc aIsc_FmodTests[] = {
2240 { TT_EGREP, zIsc_FmodSelect0, (regex_t*)NULL }, };
2243 * Fix Command Arguments for Isc_Fmod
2245 static const char* apzIsc_FmodPatch[] = {
2247 "fmod(double, double)",
2250 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2252 * Description of Isc_Omits_With_Stdc fix
2254 tSCC zIsc_Omits_With_StdcName[] =
2255 "isc_omits_with_stdc";
2258 * File name selection pattern
2260 tSCC zIsc_Omits_With_StdcList[] =
2261 "|stdio.h|math.h|ctype.h|sys/limits.h|sys/fcntl.h|sys/dirent.h|";
2263 * Machine/OS name selection pattern
2265 #define apzIsc_Omits_With_StdcMachs (const char**)NULL
2268 * content selection pattern - do fix if pattern found
2270 tSCC zIsc_Omits_With_StdcSelect0[] =
2271 "!defined\\(__STDC__\\) && !defined\\(_POSIX_SOURCE\\)";
2273 #define ISC_OMITS_WITH_STDC_TEST_CT 1
2274 static tTestDesc aIsc_Omits_With_StdcTests[] = {
2275 { TT_EGREP, zIsc_Omits_With_StdcSelect0, (regex_t*)NULL }, };
2278 * Fix Command Arguments for Isc_Omits_With_Stdc
2280 static const char* apzIsc_Omits_With_StdcPatch[] = {
2282 "!defined(_POSIX_SOURCE)",
2285 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2287 * Description of Kandr_Concat fix
2289 tSCC zKandr_ConcatName[] =
2293 * File name selection pattern
2295 tSCC zKandr_ConcatList[] =
2296 "|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|";
2298 * Machine/OS name selection pattern
2300 #define apzKandr_ConcatMachs (const char**)NULL
2303 * content selection pattern - do fix if pattern found
2305 tSCC zKandr_ConcatSelect0[] =
2308 #define KANDR_CONCAT_TEST_CT 1
2309 static tTestDesc aKandr_ConcatTests[] = {
2310 { TT_EGREP, zKandr_ConcatSelect0, (regex_t*)NULL }, };
2313 * Fix Command Arguments for Kandr_Concat
2315 static const char* apzKandr_ConcatPatch[] = {
2320 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2322 * Description of Libc1_G_Va_List fix
2324 tSCC zLibc1_G_Va_ListName[] =
2328 * File name selection pattern
2330 tSCC zLibc1_G_Va_ListList[] =
2333 * Machine/OS name selection pattern
2335 tSCC* apzLibc1_G_Va_ListMachs[] = {
2337 (const char*)NULL };
2340 * content selection pattern - do fix if pattern found
2342 tSCC zLibc1_G_Va_ListSelect0[] =
2343 "typedef void \\* _G_va_list;";
2345 #define LIBC1_G_VA_LIST_TEST_CT 1
2346 static tTestDesc aLibc1_G_Va_ListTests[] = {
2347 { TT_EGREP, zLibc1_G_Va_ListSelect0, (regex_t*)NULL }, };
2350 * Fix Command Arguments for Libc1_G_Va_List
2352 static const char* apzLibc1_G_Va_ListPatch[] = {
2354 "typedef __builtin_va_list _G_va_list;",
2357 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2359 * Description of Libc1_Ifdefd_Memx fix
2361 tSCC zLibc1_Ifdefd_MemxName[] =
2362 "libc1_ifdefd_memx";
2365 * File name selection pattern
2367 tSCC zLibc1_Ifdefd_MemxList[] =
2368 "|testing.h|string.h|";
2370 * Machine/OS name selection pattern
2372 #define apzLibc1_Ifdefd_MemxMachs (const char**)NULL
2375 * content selection pattern - do fix if pattern found
2377 tSCC zLibc1_Ifdefd_MemxSelect0[] =
2378 "' is a built-in function for gcc 2\\.x\\. \\*/";
2381 * content bypass pattern - skip fix if pattern found
2383 tSCC zLibc1_Ifdefd_MemxBypass0[] =
2386 #define LIBC1_IFDEFD_MEMX_TEST_CT 2
2387 static tTestDesc aLibc1_Ifdefd_MemxTests[] = {
2388 { TT_NEGREP, zLibc1_Ifdefd_MemxBypass0, (regex_t*)NULL },
2389 { TT_EGREP, zLibc1_Ifdefd_MemxSelect0, (regex_t*)NULL }, };
2392 * Fix Command Arguments for Libc1_Ifdefd_Memx
2394 static const char* apzLibc1_Ifdefd_MemxPatch[] = {
2397 "/\\* `mem...' is a built-in function for gcc 2\\.x\\. \\*/\n\
2398 #if defined\\(__STDC__\\) && __GNUC__ < 2\n\
2400 extern [a-z_]+ mem.*(\n\
2405 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2407 * Description of Limits_Ifndefs fix
2409 tSCC zLimits_IfndefsName[] =
2413 * File name selection pattern
2415 tSCC zLimits_IfndefsList[] =
2416 "|sys/limits.h|limits.h|";
2418 * Machine/OS name selection pattern
2420 #define apzLimits_IfndefsMachs (const char**)NULL
2423 * content bypass pattern - skip fix if pattern found
2425 tSCC zLimits_IfndefsBypass0[] =
2426 "ifndef[ \t]+FLT_MIN";
2428 #define LIMITS_IFNDEFS_TEST_CT 1
2429 static tTestDesc aLimits_IfndefsTests[] = {
2430 { TT_NEGREP, zLimits_IfndefsBypass0, (regex_t*)NULL }, };
2433 * Fix Command Arguments for Limits_Ifndefs
2435 static const char* apzLimits_IfndefsPatch[] = {
2440 "^[ \t]*#[ \t]*define[ \t]+((FLT|DBL)_(MIN|MAX|DIG))[ \t].*",
2443 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2445 * Description of Lynx_Void_Int fix
2447 tSCC zLynx_Void_IntName[] =
2451 * File name selection pattern
2453 tSCC zLynx_Void_IntList[] =
2456 * Machine/OS name selection pattern
2458 #define apzLynx_Void_IntMachs (const char**)NULL
2461 * content selection pattern - do fix if pattern found
2463 tSCC zLynx_Void_IntSelect0[] =
2464 "#[ \t]*define[ \t]+void[ \t]+int[ \t]*";
2466 #define LYNX_VOID_INT_TEST_CT 1
2467 static tTestDesc aLynx_Void_IntTests[] = {
2468 { TT_EGREP, zLynx_Void_IntSelect0, (regex_t*)NULL }, };
2471 * Fix Command Arguments for Lynx_Void_Int
2473 static const char* apzLynx_Void_IntPatch[] = {
2478 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2480 * Description of Lynxos_Fcntl_Proto fix
2482 tSCC zLynxos_Fcntl_ProtoName[] =
2483 "lynxos_fcntl_proto";
2486 * File name selection pattern
2488 tSCC zLynxos_Fcntl_ProtoList[] =
2491 * Machine/OS name selection pattern
2493 #define apzLynxos_Fcntl_ProtoMachs (const char**)NULL
2496 * content selection pattern - do fix if pattern found
2498 tSCC zLynxos_Fcntl_ProtoSelect0[] =
2499 "fcntl[ \t]*\\(int, int, int\\)";
2501 #define LYNXOS_FCNTL_PROTO_TEST_CT 1
2502 static tTestDesc aLynxos_Fcntl_ProtoTests[] = {
2503 { TT_EGREP, zLynxos_Fcntl_ProtoSelect0, (regex_t*)NULL }, };
2506 * Fix Command Arguments for Lynxos_Fcntl_Proto
2508 static const char* apzLynxos_Fcntl_ProtoPatch[] = {
2511 "(fcntl[ \t]*\\(int, int, )int\\)",
2514 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2516 * Description of Machine_Ansi_H_Va_List fix
2518 tSCC zMachine_Ansi_H_Va_ListName[] =
2519 "machine_ansi_h_va_list";
2522 * File name selection pattern
2524 #define zMachine_Ansi_H_Va_ListList (char*)NULL
2526 * Machine/OS name selection pattern
2528 #define apzMachine_Ansi_H_Va_ListMachs (const char**)NULL
2531 * content selection pattern - do fix if pattern found
2533 tSCC zMachine_Ansi_H_Va_ListSelect0[] =
2534 "define[ \t]+_BSD_VA_LIST_[ \t]";
2537 * content bypass pattern - skip fix if pattern found
2539 tSCC zMachine_Ansi_H_Va_ListBypass0[] =
2540 "__builtin_va_list";
2542 #define MACHINE_ANSI_H_VA_LIST_TEST_CT 2
2543 static tTestDesc aMachine_Ansi_H_Va_ListTests[] = {
2544 { TT_NEGREP, zMachine_Ansi_H_Va_ListBypass0, (regex_t*)NULL },
2545 { TT_EGREP, zMachine_Ansi_H_Va_ListSelect0, (regex_t*)NULL }, };
2548 * Fix Command Arguments for Machine_Ansi_H_Va_List
2550 static const char* apzMachine_Ansi_H_Va_ListPatch[] = {
2552 "%1__builtin_va_list",
2553 "(define[ \t]+_BSD_VA_LIST_[ \t]+).*",
2556 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2558 * Description of Machine_Name fix
2560 tSCC zMachine_NameName[] =
2564 * File name selection pattern
2566 #define zMachine_NameList (char*)NULL
2568 * Machine/OS name selection pattern
2570 #define apzMachine_NameMachs (const char**)NULL
2573 * perform the C function call test
2575 tSCC zMachine_NameFTst0[] = "machine_name";
2577 #define MACHINE_NAME_TEST_CT 1
2578 static tTestDesc aMachine_NameTests[] = {
2579 { TT_FUNCTION, zMachine_NameFTst0, 0 /* unused */ }, };
2582 * Fix Command Arguments for Machine_Name
2584 static const char* apzMachine_NamePatch[] = {
2588 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2590 * Description of Math_Exception fix
2592 tSCC zMath_ExceptionName[] =
2596 * File name selection pattern
2598 tSCC zMath_ExceptionList[] =
2601 * Machine/OS name selection pattern
2603 #define apzMath_ExceptionMachs (const char**)NULL
2606 * content selection pattern - do fix if pattern found
2608 tSCC zMath_ExceptionSelect0[] =
2612 * content bypass pattern - skip fix if pattern found
2614 tSCC zMath_ExceptionBypass0[] =
2615 "We have a problem when using C\\+\\+";
2617 #define MATH_EXCEPTION_TEST_CT 2
2618 static tTestDesc aMath_ExceptionTests[] = {
2619 { TT_NEGREP, zMath_ExceptionBypass0, (regex_t*)NULL },
2620 { TT_EGREP, zMath_ExceptionSelect0, (regex_t*)NULL }, };
2623 * Fix Command Arguments for Math_Exception
2625 static const char* apzMath_ExceptionPatch[] = {
2627 "#ifdef __cplusplus\n\
2628 #define exception __math_exception\n\
2630 "#ifdef __cplusplus\n\
2635 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2637 * Description of Math_Huge_Val_From_Dbl_Max fix
2639 tSCC zMath_Huge_Val_From_Dbl_MaxName[] =
2640 "math_huge_val_from_dbl_max";
2643 * File name selection pattern
2645 tSCC zMath_Huge_Val_From_Dbl_MaxList[] =
2648 * Machine/OS name selection pattern
2650 #define apzMath_Huge_Val_From_Dbl_MaxMachs (const char**)NULL
2653 * content selection pattern - do fix if pattern found
2655 tSCC zMath_Huge_Val_From_Dbl_MaxSelect0[] =
2656 "define[ \t]+HUGE_VAL[ \t]+DBL_MAX";
2659 * content bypass pattern - skip fix if pattern found
2661 tSCC zMath_Huge_Val_From_Dbl_MaxBypass0[] =
2662 "define[ \t]+DBL_MAX";
2664 #define MATH_HUGE_VAL_FROM_DBL_MAX_TEST_CT 2
2665 static tTestDesc aMath_Huge_Val_From_Dbl_MaxTests[] = {
2666 { TT_NEGREP, zMath_Huge_Val_From_Dbl_MaxBypass0, (regex_t*)NULL },
2667 { TT_EGREP, zMath_Huge_Val_From_Dbl_MaxSelect0, (regex_t*)NULL }, };
2670 * Fix Command Arguments for Math_Huge_Val_From_Dbl_Max
2672 static const char* apzMath_Huge_Val_From_Dbl_MaxPatch[] = { "sh", "-c",
2673 "\tdbl_max_def=`egrep 'define[ \t]+DBL_MAX[ \t]+.*' float.h | sed 's/.*DBL_MAX[ \t]*//' 2>/dev/null`\n\n\
2674 \tif ( test -n \"${dbl_max_def}\" ) > /dev/null 2>&1\n\
2675 \tthen sed -e '/define[ \t]*HUGE_VAL[ \t]*DBL_MAX/s@DBL_MAX@'\"$dbl_max_def@\"\n\
2680 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2682 * Description of Math_Huge_Val_Ifndef fix
2684 tSCC zMath_Huge_Val_IfndefName[] =
2685 "math_huge_val_ifndef";
2688 * File name selection pattern
2690 tSCC zMath_Huge_Val_IfndefList[] =
2691 "|math.h|math/math.h|";
2693 * Machine/OS name selection pattern
2695 #define apzMath_Huge_Val_IfndefMachs (const char**)NULL
2698 * content selection pattern - do fix if pattern found
2700 tSCC zMath_Huge_Val_IfndefSelect0[] =
2701 "define[ \t]+HUGE_VAL";
2703 #define MATH_HUGE_VAL_IFNDEF_TEST_CT 1
2704 static tTestDesc aMath_Huge_Val_IfndefTests[] = {
2705 { TT_EGREP, zMath_Huge_Val_IfndefSelect0, (regex_t*)NULL }, };
2708 * Fix Command Arguments for Math_Huge_Val_Ifndef
2710 static const char* apzMath_Huge_Val_IfndefPatch[] = {
2712 "#ifndef HUGE_VAL\n\
2715 "^[ \t]*#[ \t]*define[ \t]+HUGE_VAL[ \t].*",
2718 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2720 * Description of Nested_Auth_Des fix
2722 tSCC zNested_Auth_DesName[] =
2726 * File name selection pattern
2728 tSCC zNested_Auth_DesList[] =
2731 * Machine/OS name selection pattern
2733 #define apzNested_Auth_DesMachs (const char**)NULL
2736 * content selection pattern - do fix if pattern found
2738 tSCC zNested_Auth_DesSelect0[] =
2739 "(/\\*.*rpc/auth_des\\.h>.*)/\\*";
2741 #define NESTED_AUTH_DES_TEST_CT 1
2742 static tTestDesc aNested_Auth_DesTests[] = {
2743 { TT_EGREP, zNested_Auth_DesSelect0, (regex_t*)NULL }, };
2746 * Fix Command Arguments for Nested_Auth_Des
2748 static const char* apzNested_Auth_DesPatch[] = {
2753 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2755 * Description of Nested_Motorola fix
2757 tSCC zNested_MotorolaName[] =
2761 * File name selection pattern
2763 tSCC zNested_MotorolaList[] =
2764 "|sys/limits.h|limits.h|";
2766 * Machine/OS name selection pattern
2768 tSCC* apzNested_MotorolaMachs[] = {
2769 "m68k-motorola-sysv*",
2770 (const char*)NULL };
2773 * content selection pattern - do fix if pattern found
2775 tSCC zNested_MotorolaSelect0[] =
2776 "max # bytes atomic in write|error value returned by Math lib";
2778 #define NESTED_MOTOROLA_TEST_CT 1
2779 static tTestDesc aNested_MotorolaTests[] = {
2780 { TT_EGREP, zNested_MotorolaSelect0, (regex_t*)NULL }, };
2783 * Fix Command Arguments for Nested_Motorola
2785 static const char* apzNested_MotorolaPatch[] = { "sed",
2786 "-e", "s@^\\(#undef[ \t][ \t]*PIPE_BUF[ \t]*/\\* max # bytes atomic in write to a\\)$@\\1 */@",
2787 "-e", "s@\\(/\\*#define\tHUGE_VAL\t3.[0-9e+]* \\)\\(/\\*error value returned by Math lib\\*/\\)$@\\1*/ \\2@",
2790 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2792 * Description of Nested_Sys_Limits fix
2794 tSCC zNested_Sys_LimitsName[] =
2795 "nested_sys_limits";
2798 * File name selection pattern
2800 tSCC zNested_Sys_LimitsList[] =
2803 * Machine/OS name selection pattern
2805 #define apzNested_Sys_LimitsMachs (const char**)NULL
2808 * content selection pattern - do fix if pattern found
2810 tSCC zNested_Sys_LimitsSelect0[] =
2813 #define NESTED_SYS_LIMITS_TEST_CT 1
2814 static tTestDesc aNested_Sys_LimitsTests[] = {
2815 { TT_EGREP, zNested_Sys_LimitsSelect0, (regex_t*)NULL }, };
2818 * Fix Command Arguments for Nested_Sys_Limits
2820 static const char* apzNested_Sys_LimitsPatch[] = { "sed",
2821 "-e", "/CHILD_MAX/s,/\\* Max, Max,",
2822 "-e", "/OPEN_MAX/s,/\\* Max, Max,",
2825 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2827 * Description of Next_Math_Prefix fix
2829 tSCC zNext_Math_PrefixName[] =
2833 * File name selection pattern
2835 tSCC zNext_Math_PrefixList[] =
2838 * Machine/OS name selection pattern
2840 #define apzNext_Math_PrefixMachs (const char**)NULL
2843 * content selection pattern - do fix if pattern found
2845 tSCC zNext_Math_PrefixSelect0[] =
2846 "^extern[ \t]+double[ \t]+__const__[ \t]";
2848 #define NEXT_MATH_PREFIX_TEST_CT 1
2849 static tTestDesc aNext_Math_PrefixTests[] = {
2850 { TT_EGREP, zNext_Math_PrefixSelect0, (regex_t*)NULL }, };
2853 * Fix Command Arguments for Next_Math_Prefix
2855 static const char* apzNext_Math_PrefixPatch[] = {
2857 "extern double %1(",
2858 "^extern[ \t]+double[ \t]+__const__[ \t]+([a-z]+)\\(",
2861 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2863 * Description of Next_Template fix
2865 tSCC zNext_TemplateName[] =
2869 * File name selection pattern
2871 tSCC zNext_TemplateList[] =
2874 * Machine/OS name selection pattern
2876 #define apzNext_TemplateMachs (const char**)NULL
2879 * content selection pattern - do fix if pattern found
2881 tSCC zNext_TemplateSelect0[] =
2884 #define NEXT_TEMPLATE_TEST_CT 1
2885 static tTestDesc aNext_TemplateTests[] = {
2886 { TT_EGREP, zNext_TemplateSelect0, (regex_t*)NULL }, };
2889 * Fix Command Arguments for Next_Template
2891 static const char* apzNext_TemplatePatch[] = {
2894 "\\(([^)]*)[ \t]template\\)",
2897 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2899 * Description of Next_Volitile fix
2901 tSCC zNext_VolitileName[] =
2905 * File name selection pattern
2907 tSCC zNext_VolitileList[] =
2910 * Machine/OS name selection pattern
2912 #define apzNext_VolitileMachs (const char**)NULL
2915 * content selection pattern - do fix if pattern found
2917 tSCC zNext_VolitileSelect0[] =
2918 "^extern[ \t]+volatile[ \t]+void[ \t]";
2920 #define NEXT_VOLITILE_TEST_CT 1
2921 static tTestDesc aNext_VolitileTests[] = {
2922 { TT_EGREP, zNext_VolitileSelect0, (regex_t*)NULL }, };
2925 * Fix Command Arguments for Next_Volitile
2927 static const char* apzNext_VolitilePatch[] = {
2930 "^extern[ \t]+volatile[ \t]+void[ \t]+(exit|abort)\\(",
2933 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2935 * Description of Next_Wait_Union fix
2937 tSCC zNext_Wait_UnionName[] =
2941 * File name selection pattern
2943 tSCC zNext_Wait_UnionList[] =
2946 * Machine/OS name selection pattern
2948 #define apzNext_Wait_UnionMachs (const char**)NULL
2951 * content selection pattern - do fix if pattern found
2953 tSCC zNext_Wait_UnionSelect0[] =
2954 "wait\\(union wait";
2956 #define NEXT_WAIT_UNION_TEST_CT 1
2957 static tTestDesc aNext_Wait_UnionTests[] = {
2958 { TT_EGREP, zNext_Wait_UnionSelect0, (regex_t*)NULL }, };
2961 * Fix Command Arguments for Next_Wait_Union
2963 static const char* apzNext_Wait_UnionPatch[] = {
2968 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2970 * Description of Nodeent_Syntax fix
2972 tSCC zNodeent_SyntaxName[] =
2976 * File name selection pattern
2978 tSCC zNodeent_SyntaxList[] =
2979 "|netdnet/dnetdb.h|";
2981 * Machine/OS name selection pattern
2983 #define apzNodeent_SyntaxMachs (const char**)NULL
2986 * content selection pattern - do fix if pattern found
2988 tSCC zNodeent_SyntaxSelect0[] =
2989 "char[ \t]*\\*na_addr[ \t]*$";
2991 #define NODEENT_SYNTAX_TEST_CT 1
2992 static tTestDesc aNodeent_SyntaxTests[] = {
2993 { TT_EGREP, zNodeent_SyntaxSelect0, (regex_t*)NULL }, };
2996 * Fix Command Arguments for Nodeent_Syntax
2998 static const char* apzNodeent_SyntaxPatch[] = {
3003 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3005 * Description of Osf_Namespace_A fix
3007 tSCC zOsf_Namespace_AName[] =
3011 * File name selection pattern
3013 tSCC zOsf_Namespace_AList[] =
3014 "|reg_types.h|sys/lc_core.h|";
3016 * Machine/OS name selection pattern
3018 #define apzOsf_Namespace_AMachs (const char**)NULL
3021 * perform the 'test' shell command - do fix on success
3023 tSCC zOsf_Namespace_ATest0[] =
3025 tSCC zOsf_Namespace_ATest1[] =
3026 " -r sys/lc_core.h";
3027 tSCC zOsf_Namespace_ATest2[] =
3028 " -n \"`grep '} regex_t;' reg_types.h`\"";
3029 tSCC zOsf_Namespace_ATest3[] =
3030 " -z \"`grep __regex_t regex.h`\"";
3032 #define OSF_NAMESPACE_A_TEST_CT 4
3033 static tTestDesc aOsf_Namespace_ATests[] = {
3034 { TT_TEST, zOsf_Namespace_ATest0, 0 /* unused */ },
3035 { TT_TEST, zOsf_Namespace_ATest1, 0 /* unused */ },
3036 { TT_TEST, zOsf_Namespace_ATest2, 0 /* unused */ },
3037 { TT_TEST, zOsf_Namespace_ATest3, 0 /* unused */ }, };
3040 * Fix Command Arguments for Osf_Namespace_A
3042 static const char* apzOsf_Namespace_APatch[] = {
3045 "reg(ex|off|match)_t",
3048 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3050 * Description of Osf_Namespace_C fix
3052 tSCC zOsf_Namespace_CName[] =
3056 * File name selection pattern
3058 tSCC zOsf_Namespace_CList[] =
3061 * Machine/OS name selection pattern
3063 #define apzOsf_Namespace_CMachs (const char**)NULL
3066 * content selection pattern - do fix if pattern found
3068 tSCC zOsf_Namespace_CSelect0[] =
3069 "#include <reg_types.h>.*";
3072 * perform the 'test' shell command - do fix on success
3074 tSCC zOsf_Namespace_CTest0[] =
3076 tSCC zOsf_Namespace_CTest1[] =
3077 " -r sys/lc_core.h";
3078 tSCC zOsf_Namespace_CTest2[] =
3079 " -n \"`grep '} regex_t;' reg_types.h`\"";
3080 tSCC zOsf_Namespace_CTest3[] =
3081 " -z \"`grep __regex_t regex.h`\"";
3083 #define OSF_NAMESPACE_C_TEST_CT 5
3084 static tTestDesc aOsf_Namespace_CTests[] = {
3085 { TT_TEST, zOsf_Namespace_CTest0, 0 /* unused */ },
3086 { TT_TEST, zOsf_Namespace_CTest1, 0 /* unused */ },
3087 { TT_TEST, zOsf_Namespace_CTest2, 0 /* unused */ },
3088 { TT_TEST, zOsf_Namespace_CTest3, 0 /* unused */ },
3089 { TT_EGREP, zOsf_Namespace_CSelect0, (regex_t*)NULL }, };
3092 * Fix Command Arguments for Osf_Namespace_C
3094 static const char* apzOsf_Namespace_CPatch[] = {
3097 typedef __regex_t\tregex_t;\n\
3098 typedef __regoff_t\tregoff_t;\n\
3099 typedef __regmatch_t\tregmatch_t;",
3102 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3104 * Description of Pthread_Page_Size fix
3106 tSCC zPthread_Page_SizeName[] =
3107 "pthread_page_size";
3110 * File name selection pattern
3112 tSCC zPthread_Page_SizeList[] =
3115 * Machine/OS name selection pattern
3117 #define apzPthread_Page_SizeMachs (const char**)NULL
3120 * content selection pattern - do fix if pattern found
3122 tSCC zPthread_Page_SizeSelect0[] =
3125 #define PTHREAD_PAGE_SIZE_TEST_CT 1
3126 static tTestDesc aPthread_Page_SizeTests[] = {
3127 { TT_EGREP, zPthread_Page_SizeSelect0, (regex_t*)NULL }, };
3130 * Fix Command Arguments for Pthread_Page_Size
3132 static const char* apzPthread_Page_SizePatch[] = {
3137 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3139 * Description of Read_Ret_Type fix
3141 tSCC zRead_Ret_TypeName[] =
3145 * File name selection pattern
3147 tSCC zRead_Ret_TypeList[] =
3150 * Machine/OS name selection pattern
3152 #define apzRead_Ret_TypeMachs (const char**)NULL
3155 * content selection pattern - do fix if pattern found
3157 tSCC zRead_Ret_TypeSelect0[] =
3158 "extern int\t.*, fread\\(\\), fwrite\\(\\)";
3160 #define READ_RET_TYPE_TEST_CT 1
3161 static tTestDesc aRead_Ret_TypeTests[] = {
3162 { TT_EGREP, zRead_Ret_TypeSelect0, (regex_t*)NULL }, };
3165 * Fix Command Arguments for Read_Ret_Type
3167 static const char* apzRead_Ret_TypePatch[] = {
3169 "extern unsigned int fread(), fwrite();\n\
3171 "(extern int\t.*), fread\\(\\), fwrite\\(\\)(.*)",
3174 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3176 * Description of Rs6000_Double fix
3178 tSCC zRs6000_DoubleName[] =
3182 * File name selection pattern
3184 tSCC zRs6000_DoubleList[] =
3187 * Machine/OS name selection pattern
3189 #define apzRs6000_DoubleMachs (const char**)NULL
3192 * content selection pattern - do fix if pattern found
3194 tSCC zRs6000_DoubleSelect0[] =
3195 "[^a-zA-Z_]class\\(";
3197 #define RS6000_DOUBLE_TEST_CT 1
3198 static tTestDesc aRs6000_DoubleTests[] = {
3199 { TT_EGREP, zRs6000_DoubleSelect0, (regex_t*)NULL }, };
3202 * Fix Command Arguments for Rs6000_Double
3204 static const char* apzRs6000_DoublePatch[] = {
3206 "#ifndef __cplusplus\n\
3209 "^.*[^a-zA-Z_]class\\(.*",
3212 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3214 * Description of Rs6000_Fchmod fix
3216 tSCC zRs6000_FchmodName[] =
3220 * File name selection pattern
3222 tSCC zRs6000_FchmodList[] =
3225 * Machine/OS name selection pattern
3227 #define apzRs6000_FchmodMachs (const char**)NULL
3230 * content selection pattern - do fix if pattern found
3232 tSCC zRs6000_FchmodSelect0[] =
3233 "fchmod\\(char \\*";
3235 #define RS6000_FCHMOD_TEST_CT 1
3236 static tTestDesc aRs6000_FchmodTests[] = {
3237 { TT_EGREP, zRs6000_FchmodSelect0, (regex_t*)NULL }, };
3240 * Fix Command Arguments for Rs6000_Fchmod
3242 static const char* apzRs6000_FchmodPatch[] = {
3247 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3249 * Description of Rs6000_Param fix
3251 tSCC zRs6000_ParamName[] =
3255 * File name selection pattern
3257 tSCC zRs6000_ParamList[] =
3258 "|stdio.h|unistd.h|";
3260 * Machine/OS name selection pattern
3262 #define apzRs6000_ParamMachs (const char**)NULL
3265 * content selection pattern - do fix if pattern found
3267 tSCC zRs6000_ParamSelect0[] =
3268 "rename\\(const char \\*old, const char \\*new\\)";
3270 #define RS6000_PARAM_TEST_CT 1
3271 static tTestDesc aRs6000_ParamTests[] = {
3272 { TT_EGREP, zRs6000_ParamSelect0, (regex_t*)NULL }, };
3275 * Fix Command Arguments for Rs6000_Param
3277 static const char* apzRs6000_ParamPatch[] = {
3279 "rename(const char *_old, const char *_new)",
3282 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3284 * Description of Sco_Static_Func fix
3286 tSCC zSco_Static_FuncName[] =
3290 * File name selection pattern
3292 tSCC zSco_Static_FuncList[] =
3295 * Machine/OS name selection pattern
3297 tSCC* apzSco_Static_FuncMachs[] = {
3299 (const char*)NULL };
3302 * content selection pattern - do fix if pattern found
3304 tSCC zSco_Static_FuncSelect0[] =
3307 #define SCO_STATIC_FUNC_TEST_CT 1
3308 static tTestDesc aSco_Static_FuncTests[] = {
3309 { TT_EGREP, zSco_Static_FuncSelect0, (regex_t*)NULL }, };
3312 * Fix Command Arguments for Sco_Static_Func
3314 static const char* apzSco_Static_FuncPatch[] = { "sed",
3315 "-e", "/^static int/i\\\n\
3316 #if __cplusplus\\\n\
3318 #endif /* __cplusplus */",
3320 #if __cplusplus\\\n\
3322 #endif /* __cplusplus */",
3325 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3327 * Description of Sco_Utime fix
3329 tSCC zSco_UtimeName[] =
3333 * File name selection pattern
3335 tSCC zSco_UtimeList[] =
3338 * Machine/OS name selection pattern
3340 tSCC* apzSco_UtimeMachs[] = {
3342 (const char*)NULL };
3345 * content selection pattern - do fix if pattern found
3347 tSCC zSco_UtimeSelect0[] =
3348 "\\(const char \\*, struct utimbuf \\*\\);";
3350 #define SCO_UTIME_TEST_CT 1
3351 static tTestDesc aSco_UtimeTests[] = {
3352 { TT_EGREP, zSco_UtimeSelect0, (regex_t*)NULL }, };
3355 * Fix Command Arguments for Sco_Utime
3357 static const char* apzSco_UtimePatch[] = {
3359 "(const char *, const struct utimbuf *);",
3362 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3364 * Description of Solaris_Mutex_Init fix
3366 tSCC zSolaris_Mutex_InitName[] =
3367 "solaris_mutex_init";
3370 * File name selection pattern
3372 tSCC zSolaris_Mutex_InitList[] =
3375 * Machine/OS name selection pattern
3377 #define apzSolaris_Mutex_InitMachs (const char**)NULL
3380 * content selection pattern - do fix if pattern found
3382 tSCC zSolaris_Mutex_InitSelect0[] =
3383 "@\\(#\\)pthread.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
3385 #define SOLARIS_MUTEX_INIT_TEST_CT 1
3386 static tTestDesc aSolaris_Mutex_InitTests[] = {
3387 { TT_EGREP, zSolaris_Mutex_InitSelect0, (regex_t*)NULL }, };
3390 * Fix Command Arguments for Solaris_Mutex_Init
3392 static const char* apzSolaris_Mutex_InitPatch[] = {
3394 "#if __STDC__ - 0 == 0 && !defined(_NO_LONGLONG)\n\
3399 "(^#define[ \t]+PTHREAD_(MUTEX|COND)_INITIALIZER[ \t]+{.*),[ \t]*0}(|[ \t].*)$",
3402 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3404 * Description of Solaris_Stdio_Tag fix
3406 tSCC zSolaris_Stdio_TagName[] =
3407 "solaris_stdio_tag";
3410 * File name selection pattern
3412 tSCC zSolaris_Stdio_TagList[] =
3415 * Machine/OS name selection pattern
3417 #define apzSolaris_Stdio_TagMachs (const char**)NULL
3420 * content selection pattern - do fix if pattern found
3422 tSCC zSolaris_Stdio_TagSelect0[] =
3423 "__cplusplus < 54321L";
3425 #define SOLARIS_STDIO_TAG_TEST_CT 1
3426 static tTestDesc aSolaris_Stdio_TagTests[] = {
3427 { TT_EGREP, zSolaris_Stdio_TagSelect0, (regex_t*)NULL }, };
3430 * Fix Command Arguments for Solaris_Stdio_Tag
3432 static const char* apzSolaris_Stdio_TagPatch[] = { "sed",
3433 "-e", "s/defined(__cplusplus) && (__cplusplus < 54321L)/0/",
3436 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3438 * Description of Solaris_Widec fix
3440 tSCC zSolaris_WidecName[] =
3444 * File name selection pattern
3446 tSCC zSolaris_WidecList[] =
3449 * Machine/OS name selection pattern
3451 tSCC* apzSolaris_WidecMachs[] = {
3452 "*-*-solaris2.[0-5]*",
3453 (const char*)NULL };
3456 * content selection pattern - do fix if pattern found
3458 tSCC zSolaris_WidecSelect0[] =
3462 * content bypass pattern - skip fix if pattern found
3464 tSCC zSolaris_WidecBypass0[] =
3465 "include.*wchar\\.h";
3467 #define SOLARIS_WIDEC_TEST_CT 2
3468 static tTestDesc aSolaris_WidecTests[] = {
3469 { TT_NEGREP, zSolaris_WidecBypass0, (regex_t*)NULL },
3470 { TT_EGREP, zSolaris_WidecSelect0, (regex_t*)NULL }, };
3473 * Fix Command Arguments for Solaris_Widec
3475 static const char* apzSolaris_WidecPatch[] = {
3478 #include <wchar.h>",
3481 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3483 * Description of Statsswtch fix
3485 tSCC zStatsswtchName[] =
3489 * File name selection pattern
3491 tSCC zStatsswtchList[] =
3494 * Machine/OS name selection pattern
3496 #define apzStatsswtchMachs (const char**)NULL
3499 * content selection pattern - do fix if pattern found
3501 tSCC zStatsswtchSelect0[] =
3504 #define STATSSWTCH_TEST_CT 1
3505 static tTestDesc aStatsswtchTests[] = {
3506 { TT_EGREP, zStatsswtchSelect0, (regex_t*)NULL }, };
3509 * Fix Command Arguments for Statsswtch
3511 static const char* apzStatsswtchPatch[] = {
3516 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3518 * Description of Stdio_Stdarg_H fix
3520 tSCC zStdio_Stdarg_HName[] =
3524 * File name selection pattern
3526 tSCC zStdio_Stdarg_HList[] =
3529 * Machine/OS name selection pattern
3531 #define apzStdio_Stdarg_HMachs (const char**)NULL
3534 * content bypass pattern - skip fix if pattern found
3536 tSCC zStdio_Stdarg_HBypass0[] =
3537 "include.*(stdarg.h|machine/ansi.h)";
3539 #define STDIO_STDARG_H_TEST_CT 1
3540 static tTestDesc aStdio_Stdarg_HTests[] = {
3541 { TT_NEGREP, zStdio_Stdarg_HBypass0, (regex_t*)NULL }, };
3544 * Fix Command Arguments for Stdio_Stdarg_H
3546 static const char* apzStdio_Stdarg_HPatch[] = {
3548 "#define __need___va_list\n\
3549 #include <stdarg.h>\n",
3552 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3554 * Description of Stdio_Va_List fix
3556 tSCC zStdio_Va_ListName[] =
3560 * File name selection pattern
3562 tSCC zStdio_Va_ListList[] =
3565 * Machine/OS name selection pattern
3567 #define apzStdio_Va_ListMachs (const char**)NULL
3570 * content bypass pattern - skip fix if pattern found
3572 tSCC zStdio_Va_ListBypass0[] =
3573 "__gnuc_va_list|_BSD_VA_LIST_|__DJ_va_list";
3575 #define STDIO_VA_LIST_TEST_CT 1
3576 static tTestDesc aStdio_Va_ListTests[] = {
3577 { TT_NEGREP, zStdio_Va_ListBypass0, (regex_t*)NULL }, };
3580 * Fix Command Arguments for Stdio_Va_List
3582 static const char* apzStdio_Va_ListPatch[] = { "sed",
3583 "-e", "s@ va_list @ __gnuc_va_list @\n\
3584 s@ va_list)@ __gnuc_va_list)@\n\
3585 s@ _VA_LIST_));@ __gnuc_va_list));@\n\
3586 s@ __VA_LIST__));@ __gnuc_va_list));@\n\
3587 s@ va_list@ __not_va_list__@\n\
3588 s@\\*va_list@*__not_va_list__@\n\
3589 s@ __va_list)@ __gnuc_va_list)@\n\
3590 s@typedef[ \t]\\(.*\\)[ \t]va_list[ \t]*;@typedef \\1 __not_va_list__;@\n\
3591 s@typedef[ \t]*__va_list__@typedef __gnuc_va_list@\n\
3592 s@GNUC_VA_LIST@GNUC_Va_LIST@\n\
3593 s@_NEED___VA_LIST@_NEED___Va_LIST@\n\
3594 s@VA_LIST@DUMMY_VA_LIST@\n\
3595 s@_Va_LIST@_VA_LIST@",
3598 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3600 * Description of Strict_Ansi_Not fix
3602 tSCC zStrict_Ansi_NotName[] =
3606 * File name selection pattern
3608 #define zStrict_Ansi_NotList (char*)NULL
3610 * Machine/OS name selection pattern
3612 #define apzStrict_Ansi_NotMachs (const char**)NULL
3615 * content selection pattern - do fix if pattern found
3617 tSCC zStrict_Ansi_NotSelect0[] =
3618 "^([ \t]*#[ \t]*if.*)(!__STDC__|__STDC__[ \t]*==[ \t]*0|__STDC__[ \t]*!=[ \t]*1|__STDC__[ \t]*-[ \t]*0[ \t]*==[ \t]*0)";
3621 * content bypass pattern - skip fix if pattern found
3623 tSCC zStrict_Ansi_NotBypass0[] =
3624 "GNU and MIPS C compilers define __STDC__ differently";
3627 * perform the C function call test
3629 tSCC zStrict_Ansi_NotFTst0[] = "stdc_0_in_system_headers";
3631 #define STRICT_ANSI_NOT_TEST_CT 3
3632 static tTestDesc aStrict_Ansi_NotTests[] = {
3633 { TT_FUNCTION, zStrict_Ansi_NotFTst0, 0 /* unused */ },
3634 { TT_NEGREP, zStrict_Ansi_NotBypass0, (regex_t*)NULL },
3635 { TT_EGREP, zStrict_Ansi_NotSelect0, (regex_t*)NULL }, };
3638 * Fix Command Arguments for Strict_Ansi_Not
3640 static const char* apzStrict_Ansi_NotPatch[] = {
3642 "%1 !defined(__STRICT_ANSI__)",
3645 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3647 * Description of Strict_Ansi_Not_Ctd fix
3649 tSCC zStrict_Ansi_Not_CtdName[] =
3650 "strict_ansi_not_ctd";
3653 * File name selection pattern
3655 tSCC zStrict_Ansi_Not_CtdList[] =
3656 "|math.h|limits.h|stdio.h|signal.h|stdlib.h|sys/signal.h|time.h|";
3658 * Machine/OS name selection pattern
3660 #define apzStrict_Ansi_Not_CtdMachs (const char**)NULL
3663 * content selection pattern - do fix if pattern found
3665 tSCC zStrict_Ansi_Not_CtdSelect0[] =
3666 "^([ \t]*(\\(|&&|\\|\\|)([ \t(]*!*[ \t]*defined\\([a-zA-Z_0-9]+\\)[ \t]*[|&][|&])*[ \t(]*)(__STDC__[ \t]*(|-[ \t]*0[ \t]*)==[ \t]*0)";
3669 * perform the C function call test
3671 tSCC zStrict_Ansi_Not_CtdFTst0[] = "stdc_0_in_system_headers";
3673 #define STRICT_ANSI_NOT_CTD_TEST_CT 2
3674 static tTestDesc aStrict_Ansi_Not_CtdTests[] = {
3675 { TT_FUNCTION, zStrict_Ansi_Not_CtdFTst0, 0 /* unused */ },
3676 { TT_EGREP, zStrict_Ansi_Not_CtdSelect0, (regex_t*)NULL }, };
3679 * Fix Command Arguments for Strict_Ansi_Not_Ctd
3681 static const char* apzStrict_Ansi_Not_CtdPatch[] = {
3683 "%1 !defined(__STRICT_ANSI__)",
3686 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3688 * Description of Strict_Ansi_Only fix
3690 tSCC zStrict_Ansi_OnlyName[] =
3694 * File name selection pattern
3696 #define zStrict_Ansi_OnlyList (char*)NULL
3698 * Machine/OS name selection pattern
3700 #define apzStrict_Ansi_OnlyMachs (const char**)NULL
3703 * content selection pattern - do fix if pattern found
3705 tSCC zStrict_Ansi_OnlySelect0[] =
3706 "^([ \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)";
3709 * perform the C function call test
3711 tSCC zStrict_Ansi_OnlyFTst0[] = "stdc_0_in_system_headers";
3713 #define STRICT_ANSI_ONLY_TEST_CT 2
3714 static tTestDesc aStrict_Ansi_OnlyTests[] = {
3715 { TT_FUNCTION, zStrict_Ansi_OnlyFTst0, 0 /* unused */ },
3716 { TT_EGREP, zStrict_Ansi_OnlySelect0, (regex_t*)NULL }, };
3719 * Fix Command Arguments for Strict_Ansi_Only
3721 static const char* apzStrict_Ansi_OnlyPatch[] = {
3723 "%1 defined(__STRICT_ANSI__)",
3726 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3728 * Description of Struct_File fix
3730 tSCC zStruct_FileName[] =
3734 * File name selection pattern
3736 tSCC zStruct_FileList[] =
3739 * Machine/OS name selection pattern
3741 #define apzStruct_FileMachs (const char**)NULL
3744 * content selection pattern - do fix if pattern found
3746 tSCC zStruct_FileSelect0[] =
3747 "^.*xdrstdio_create.*struct __file_s";
3749 #define STRUCT_FILE_TEST_CT 1
3750 static tTestDesc aStruct_FileTests[] = {
3751 { TT_EGREP, zStruct_FileSelect0, (regex_t*)NULL }, };
3754 * Fix Command Arguments for Struct_File
3756 static const char* apzStruct_FilePatch[] = {
3758 "struct __file_s;\n\
3762 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3764 * Description of Struct_Sockaddr fix
3766 tSCC zStruct_SockaddrName[] =
3770 * File name selection pattern
3772 tSCC zStruct_SockaddrList[] =
3775 * Machine/OS name selection pattern
3777 #define apzStruct_SockaddrMachs (const char**)NULL
3780 * content selection pattern - do fix if pattern found
3782 tSCC zStruct_SockaddrSelect0[] =
3783 "^.*authdes_create.*struct sockaddr";
3786 * content bypass pattern - skip fix if pattern found
3788 tSCC zStruct_SockaddrBypass0[] =
3791 #define STRUCT_SOCKADDR_TEST_CT 2
3792 static tTestDesc aStruct_SockaddrTests[] = {
3793 { TT_NEGREP, zStruct_SockaddrBypass0, (regex_t*)NULL },
3794 { TT_EGREP, zStruct_SockaddrSelect0, (regex_t*)NULL }, };
3797 * Fix Command Arguments for Struct_Sockaddr
3799 static const char* apzStruct_SockaddrPatch[] = {
3801 "struct sockaddr;\n\
3805 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3807 * Description of Sun_Auth_Proto fix
3809 tSCC zSun_Auth_ProtoName[] =
3813 * File name selection pattern
3815 tSCC zSun_Auth_ProtoList[] =
3816 "|rpc/auth.h|rpc/clnt.h|rpc/svc.h|rpc/xdr.h|";
3818 * Machine/OS name selection pattern
3820 #define apzSun_Auth_ProtoMachs (const char**)NULL
3823 * content selection pattern - do fix if pattern found
3825 tSCC zSun_Auth_ProtoSelect0[] =
3826 "\\(\\*[a-z][a-z_]*\\)\\(\\)";
3828 #define SUN_AUTH_PROTO_TEST_CT 1
3829 static tTestDesc aSun_Auth_ProtoTests[] = {
3830 { TT_EGREP, zSun_Auth_ProtoSelect0, (regex_t*)NULL }, };
3833 * Fix Command Arguments for Sun_Auth_Proto
3835 static const char* apzSun_Auth_ProtoPatch[] = {
3837 "#ifdef __cplusplus\n\
3842 "(.*\\(\\*[a-z][a-z_]*\\))\\(\\);(.*)",
3845 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3847 * Description of Sun_Bogus_Ifdef fix
3849 tSCC zSun_Bogus_IfdefName[] =
3853 * File name selection pattern
3855 tSCC zSun_Bogus_IfdefList[] =
3856 "|hsfs/hsfs_spec.h|hsfs/iso_spec.h|";
3858 * Machine/OS name selection pattern
3860 #define apzSun_Bogus_IfdefMachs (const char**)NULL
3863 * content selection pattern - do fix if pattern found
3865 tSCC zSun_Bogus_IfdefSelect0[] =
3866 "#ifdef(.*\\|\\|.*)";
3868 #define SUN_BOGUS_IFDEF_TEST_CT 1
3869 static tTestDesc aSun_Bogus_IfdefTests[] = {
3870 { TT_EGREP, zSun_Bogus_IfdefSelect0, (regex_t*)NULL }, };
3873 * Fix Command Arguments for Sun_Bogus_Ifdef
3875 static const char* apzSun_Bogus_IfdefPatch[] = {
3880 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3882 * Description of Sun_Catmacro fix
3884 tSCC zSun_CatmacroName[] =
3888 * File name selection pattern
3890 tSCC zSun_CatmacroList[] =
3891 "|pixrect/memvar.h|";
3893 * Machine/OS name selection pattern
3895 #define apzSun_CatmacroMachs (const char**)NULL
3898 * content selection pattern - do fix if pattern found
3900 tSCC zSun_CatmacroSelect0[] =
3901 "^#define[ \t]+CAT\\(a,b\\).*";
3903 #define SUN_CATMACRO_TEST_CT 1
3904 static tTestDesc aSun_CatmacroTests[] = {
3905 { TT_EGREP, zSun_CatmacroSelect0, (regex_t*)NULL }, };
3908 * Fix Command Arguments for Sun_Catmacro
3910 static const char* apzSun_CatmacroPatch[] = {
3913 # define CAT(a,b) a##b\n\
3919 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3921 * Description of Sun_Malloc fix
3923 tSCC zSun_MallocName[] =
3927 * File name selection pattern
3929 tSCC zSun_MallocList[] =
3932 * Machine/OS name selection pattern
3934 #define apzSun_MallocMachs (const char**)NULL
3935 #define SUN_MALLOC_TEST_CT 0
3936 #define aSun_MallocTests (tTestDesc*)NULL
3939 * Fix Command Arguments for Sun_Malloc
3941 static const char* apzSun_MallocPatch[] = { "sed",
3942 "-e", "s/typedef[ \t]char \\*\tmalloc_t/typedef void \\*\tmalloc_t/g",
3943 "-e", "s/int[ \t][ \t]*free/void\tfree/g",
3944 "-e", "s/char\\([ \t]*\\*[ \t]*malloc\\)/void\\1/g",
3945 "-e", "s/char\\([ \t]*\\*[ \t]*realloc\\)/void\\1/g",
3946 "-e", "s/char\\([ \t]*\\*[ \t]*calloc\\)/void\\1/g",
3949 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3951 * Description of Sun_Rusers_Semi fix
3953 tSCC zSun_Rusers_SemiName[] =
3957 * File name selection pattern
3959 tSCC zSun_Rusers_SemiList[] =
3960 "|rpcsvc/rusers.h|";
3962 * Machine/OS name selection pattern
3964 #define apzSun_Rusers_SemiMachs (const char**)NULL
3967 * content selection pattern - do fix if pattern found
3969 tSCC zSun_Rusers_SemiSelect0[] =
3972 #define SUN_RUSERS_SEMI_TEST_CT 1
3973 static tTestDesc aSun_Rusers_SemiTests[] = {
3974 { TT_EGREP, zSun_Rusers_SemiSelect0, (regex_t*)NULL }, };
3977 * Fix Command Arguments for Sun_Rusers_Semi
3979 static const char* apzSun_Rusers_SemiPatch[] = { "sed",
3980 "-e", "/^struct/,/^};/s/_cnt$/_cnt;/",
3983 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3985 * Description of Sun_Signal fix
3987 tSCC zSun_SignalName[] =
3991 * File name selection pattern
3993 tSCC zSun_SignalList[] =
3994 "|sys/signal.h|signal.h|";
3996 * Machine/OS name selection pattern
3998 #define apzSun_SignalMachs (const char**)NULL
4001 * content selection pattern - do fix if pattern found
4003 tSCC zSun_SignalSelect0[] =
4004 "^void\t\\(\\*signal\\(\\)\\)\\(\\);.*";
4006 #define SUN_SIGNAL_TEST_CT 1
4007 static tTestDesc aSun_SignalTests[] = {
4008 { TT_EGREP, zSun_SignalSelect0, (regex_t*)NULL }, };
4011 * Fix Command Arguments for Sun_Signal
4013 static const char* apzSun_SignalPatch[] = {
4015 "#ifdef __cplusplus\n\
4016 void\t(*signal(...))(...);\n\
4022 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4024 * Description of Sunos_Matherr_Decl fix
4026 tSCC zSunos_Matherr_DeclName[] =
4027 "sunos_matherr_decl";
4030 * File name selection pattern
4032 tSCC zSunos_Matherr_DeclList[] =
4035 * Machine/OS name selection pattern
4037 #define apzSunos_Matherr_DeclMachs (const char**)NULL
4040 * content selection pattern - do fix if pattern found
4042 tSCC zSunos_Matherr_DeclSelect0[] =
4046 * content bypass pattern - skip fix if pattern found
4048 tSCC zSunos_Matherr_DeclBypass0[] =
4049 "matherr.*(struct exception|__MATH_EXCEPTION)";
4051 #define SUNOS_MATHERR_DECL_TEST_CT 2
4052 static tTestDesc aSunos_Matherr_DeclTests[] = {
4053 { TT_NEGREP, zSunos_Matherr_DeclBypass0, (regex_t*)NULL },
4054 { TT_EGREP, zSunos_Matherr_DeclSelect0, (regex_t*)NULL }, };
4057 * Fix Command Arguments for Sunos_Matherr_Decl
4059 static const char* apzSunos_Matherr_DeclPatch[] = {
4061 "struct exception;\n",
4064 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4066 * Description of Sunos_Strlen fix
4068 tSCC zSunos_StrlenName[] =
4072 * File name selection pattern
4074 tSCC zSunos_StrlenList[] =
4077 * Machine/OS name selection pattern
4079 #define apzSunos_StrlenMachs (const char**)NULL
4082 * content selection pattern - do fix if pattern found
4084 tSCC zSunos_StrlenSelect0[] =
4085 "int[ \t]*strlen\\(\\);(.*)";
4087 #define SUNOS_STRLEN_TEST_CT 1
4088 static tTestDesc aSunos_StrlenTests[] = {
4089 { TT_EGREP, zSunos_StrlenSelect0, (regex_t*)NULL }, };
4092 * Fix Command Arguments for Sunos_Strlen
4094 static const char* apzSunos_StrlenPatch[] = {
4096 "__SIZE_TYPE__ strlen();%1",
4099 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4101 * Description of Svr4__P fix
4103 tSCC zSvr4__PName[] =
4107 * File name selection pattern
4109 tSCC zSvr4__PList[] =
4110 "|math.h|floatingpoint.h|";
4112 * Machine/OS name selection pattern
4114 #define apzSvr4__PMachs (const char**)NULL
4117 * content selection pattern - do fix if pattern found
4119 tSCC zSvr4__PSelect0[] =
4120 "^#define[ \t]+__P.*";
4122 #define SVR4__P_TEST_CT 1
4123 static tTestDesc aSvr4__PTests[] = {
4124 { TT_EGREP, zSvr4__PSelect0, (regex_t*)NULL }, };
4127 * Fix Command Arguments for Svr4__P
4129 static const char* apzSvr4__PPatch[] = {
4136 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4138 * Description of Svr4_Getcwd fix
4140 tSCC zSvr4_GetcwdName[] =
4144 * File name selection pattern
4146 tSCC zSvr4_GetcwdList[] =
4147 "|stdlib.h|unistd.h|prototypes.h|";
4149 * Machine/OS name selection pattern
4151 #define apzSvr4_GetcwdMachs (const char**)NULL
4154 * content selection pattern - do fix if pattern found
4156 tSCC zSvr4_GetcwdSelect0[] =
4157 "getcwd\\(char \\*, int\\)";
4159 #define SVR4_GETCWD_TEST_CT 1
4160 static tTestDesc aSvr4_GetcwdTests[] = {
4161 { TT_EGREP, zSvr4_GetcwdSelect0, (regex_t*)NULL }, };
4164 * Fix Command Arguments for Svr4_Getcwd
4166 static const char* apzSvr4_GetcwdPatch[] = {
4168 "getcwd(char *, size_t)",
4171 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4173 * Description of Svr4_Profil fix
4175 tSCC zSvr4_ProfilName[] =
4179 * File name selection pattern
4181 tSCC zSvr4_ProfilList[] =
4182 "|stdlib.h|unistd.h|";
4184 * Machine/OS name selection pattern
4186 #define apzSvr4_ProfilMachs (const char**)NULL
4189 * content selection pattern - do fix if pattern found
4191 tSCC zSvr4_ProfilSelect0[] =
4192 "profil\\(unsigned short \\*, unsigned int, unsigned int, unsigned int\\)";
4194 #define SVR4_PROFIL_TEST_CT 1
4195 static tTestDesc aSvr4_ProfilTests[] = {
4196 { TT_EGREP, zSvr4_ProfilSelect0, (regex_t*)NULL }, };
4199 * Fix Command Arguments for Svr4_Profil
4201 static const char* apzSvr4_ProfilPatch[] = {
4203 "profil(unsigned short *, size_t, int, unsigned int)",
4206 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4208 * Description of Sysv68_String fix
4210 tSCC zSysv68_StringName[] =
4214 * File name selection pattern
4216 tSCC zSysv68_StringList[] =
4217 "|testing.h|string.h|";
4219 * Machine/OS name selection pattern
4221 #define apzSysv68_StringMachs (const char**)NULL
4222 #define SYSV68_STRING_TEST_CT 0
4223 #define aSysv68_StringTests (tTestDesc*)NULL
4226 * Fix Command Arguments for Sysv68_String
4228 static const char* apzSysv68_StringPatch[] = { "sed",
4229 "-e", "s/extern[ \t]*int[ \t]*strlen();/extern unsigned int strlen();/",
4230 "-e", "s/extern[ \t]*int[ \t]*ffs[ \t]*(long);/extern int ffs(int);/",
4231 "-e", "s/strdup(char \\*s1);/strdup(const char *s1);/",
4232 "-e", "/^extern char$/N",
4233 "-e", "s/^extern char\\(\\n\t\\*memccpy(),\\)$/extern void\\1/",
4234 "-e", "/^extern int$/N",
4235 "-e", "s/^extern int\\(\\n\tstrlen(),\\)/extern size_t\\1/",
4236 "-e", "/^\tstrncmp(),$/N",
4237 "-e", "s/^\\(\tstrncmp()\\),\\n\\(\tstrlen(),\\)$/\\1;\\\n\
4238 extern unsigned int\\\n\
4242 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4244 * Description of Sysz_Stdlib_For_Sun fix
4246 tSCC zSysz_Stdlib_For_SunName[] =
4247 "sysz_stdlib_for_sun";
4250 * File name selection pattern
4252 tSCC zSysz_Stdlib_For_SunList[] =
4255 * Machine/OS name selection pattern
4257 #define apzSysz_Stdlib_For_SunMachs (const char**)NULL
4260 * content selection pattern - do fix if pattern found
4262 tSCC zSysz_Stdlib_For_SunSelect0[] =
4263 "char[ \t]*\\*[ \t]*(calloc|malloc|realloc|bsearch)[ \t]*\\(";
4265 #define SYSZ_STDLIB_FOR_SUN_TEST_CT 1
4266 static tTestDesc aSysz_Stdlib_For_SunTests[] = {
4267 { TT_EGREP, zSysz_Stdlib_For_SunSelect0, (regex_t*)NULL }, };
4270 * Fix Command Arguments for Sysz_Stdlib_For_Sun
4272 static const char* apzSysz_Stdlib_For_SunPatch[] = {
4277 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4279 * Description of Thread_Keyword fix
4281 tSCC zThread_KeywordName[] =
4285 * File name selection pattern
4287 tSCC zThread_KeywordList[] =
4288 "|pthread.h|bits/sigthread.h|";
4290 * Machine/OS name selection pattern
4292 #define apzThread_KeywordMachs (const char**)NULL
4295 * content selection pattern - do fix if pattern found
4297 tSCC zThread_KeywordSelect0[] =
4298 "([* ])__thread([,)])";
4300 #define THREAD_KEYWORD_TEST_CT 1
4301 static tTestDesc aThread_KeywordTests[] = {
4302 { TT_EGREP, zThread_KeywordSelect0, (regex_t*)NULL }, };
4305 * Fix Command Arguments for Thread_Keyword
4307 static const char* apzThread_KeywordPatch[] = {
4312 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4314 * Description of Tinfo_Cplusplus fix
4316 tSCC zTinfo_CplusplusName[] =
4320 * File name selection pattern
4322 tSCC zTinfo_CplusplusList[] =
4325 * Machine/OS name selection pattern
4327 #define apzTinfo_CplusplusMachs (const char**)NULL
4330 * content selection pattern - do fix if pattern found
4332 tSCC zTinfo_CplusplusSelect0[] =
4335 #define TINFO_CPLUSPLUS_TEST_CT 1
4336 static tTestDesc aTinfo_CplusplusTests[] = {
4337 { TT_EGREP, zTinfo_CplusplusSelect0, (regex_t*)NULL }, };
4340 * Fix Command Arguments for Tinfo_Cplusplus
4342 static const char* apzTinfo_CplusplusPatch[] = {
4347 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4349 * Description of Ultrix_Atexit_Param fix
4351 tSCC zUltrix_Atexit_ParamName[] =
4352 "ultrix_atexit_param";
4355 * File name selection pattern
4357 tSCC zUltrix_Atexit_ParamList[] =
4360 * Machine/OS name selection pattern
4362 #define apzUltrix_Atexit_ParamMachs (const char**)NULL
4365 * content selection pattern - do fix if pattern found
4367 tSCC zUltrix_Atexit_ParamSelect0[] =
4368 "atexit\\(.*\\(\\)";
4370 #define ULTRIX_ATEXIT_PARAM_TEST_CT 1
4371 static tTestDesc aUltrix_Atexit_ParamTests[] = {
4372 { TT_EGREP, zUltrix_Atexit_ParamSelect0, (regex_t*)NULL }, };
4375 * Fix Command Arguments for Ultrix_Atexit_Param
4377 static const char* apzUltrix_Atexit_ParamPatch[] = {
4379 "atexit( void (*__func)( void )",
4382 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4384 * Description of Ultrix_Atof_Param fix
4386 tSCC zUltrix_Atof_ParamName[] =
4387 "ultrix_atof_param";
4390 * File name selection pattern
4392 tSCC zUltrix_Atof_ParamList[] =
4395 * Machine/OS name selection pattern
4397 #define apzUltrix_Atof_ParamMachs (const char**)NULL
4400 * content selection pattern - do fix if pattern found
4402 tSCC zUltrix_Atof_ParamSelect0[] =
4403 "atof\\([ \t]*char";
4405 #define ULTRIX_ATOF_PARAM_TEST_CT 1
4406 static tTestDesc aUltrix_Atof_ParamTests[] = {
4407 { TT_EGREP, zUltrix_Atof_ParamSelect0, (regex_t*)NULL }, };
4410 * Fix Command Arguments for Ultrix_Atof_Param
4412 static const char* apzUltrix_Atof_ParamPatch[] = {
4417 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4419 * Description of Ultrix_Const fix
4421 tSCC zUltrix_ConstName[] =
4425 * File name selection pattern
4427 tSCC zUltrix_ConstList[] =
4430 * Machine/OS name selection pattern
4432 #define apzUltrix_ConstMachs (const char**)NULL
4435 * content selection pattern - do fix if pattern found
4437 tSCC zUltrix_ConstSelect0[] =
4438 "perror\\( char \\*";
4440 #define ULTRIX_CONST_TEST_CT 1
4441 static tTestDesc aUltrix_ConstTests[] = {
4442 { TT_EGREP, zUltrix_ConstSelect0, (regex_t*)NULL }, };
4445 * Fix Command Arguments for Ultrix_Const
4447 static const char* apzUltrix_ConstPatch[] = {
4450 "([ \t*](perror|fputs|fwrite|scanf|fscanf)\\(.*)[ \t]+(char|void) \\*__",
4453 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4455 * Description of Ultrix_Const2 fix
4457 tSCC zUltrix_Const2Name[] =
4461 * File name selection pattern
4463 tSCC zUltrix_Const2List[] =
4466 * Machine/OS name selection pattern
4468 #define apzUltrix_Const2Machs (const char**)NULL
4471 * content selection pattern - do fix if pattern found
4473 tSCC zUltrix_Const2Select0[] =
4474 "\\*fopen\\( char \\*";
4476 #define ULTRIX_CONST2_TEST_CT 1
4477 static tTestDesc aUltrix_Const2Tests[] = {
4478 { TT_EGREP, zUltrix_Const2Select0, (regex_t*)NULL }, };
4481 * Fix Command Arguments for Ultrix_Const2
4483 static const char* apzUltrix_Const2Patch[] = {
4485 "%1( const char *%3, const char *",
4486 "([ \t*](fopen|sscanf|popen|tempnam))\\([ \t]*char[ \t]*\\*([^,]*),[ \t]*char[ \t]*\\*[ \t]*",
4489 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4491 * Description of Ultrix_Fix_Fixproto fix
4493 tSCC zUltrix_Fix_FixprotoName[] =
4494 "ultrix_fix_fixproto";
4497 * File name selection pattern
4499 tSCC zUltrix_Fix_FixprotoList[] =
4502 * Machine/OS name selection pattern
4504 #define apzUltrix_Fix_FixprotoMachs (const char**)NULL
4507 * content selection pattern - do fix if pattern found
4509 tSCC zUltrix_Fix_FixprotoSelect0[] =
4512 #define ULTRIX_FIX_FIXPROTO_TEST_CT 1
4513 static tTestDesc aUltrix_Fix_FixprotoTests[] = {
4514 { TT_EGREP, zUltrix_Fix_FixprotoSelect0, (regex_t*)NULL }, };
4517 * Fix Command Arguments for Ultrix_Fix_Fixproto
4519 static const char* apzUltrix_Fix_FixprotoPatch[] = {
4523 "^[ \t]*extern[ \t]*int[ \t]*uname\\(\\);",
4526 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4528 * Description of Ultrix_Ifdef fix
4530 tSCC zUltrix_IfdefName[] =
4534 * File name selection pattern
4536 tSCC zUltrix_IfdefList[] =
4539 * Machine/OS name selection pattern
4541 #define apzUltrix_IfdefMachs (const char**)NULL
4544 * content selection pattern - do fix if pattern found
4546 tSCC zUltrix_IfdefSelect0[] =
4547 "^#ifdef KERNEL[ \t]+&&";
4549 #define ULTRIX_IFDEF_TEST_CT 1
4550 static tTestDesc aUltrix_IfdefTests[] = {
4551 { TT_EGREP, zUltrix_IfdefSelect0, (regex_t*)NULL }, };
4554 * Fix Command Arguments for Ultrix_Ifdef
4556 static const char* apzUltrix_IfdefPatch[] = {
4558 "#if defined(KERNEL) &&",
4561 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4563 * Description of Ultrix_Math_Ifdef fix
4565 tSCC zUltrix_Math_IfdefName[] =
4566 "ultrix_math_ifdef";
4569 * File name selection pattern
4571 tSCC zUltrix_Math_IfdefList[] =
4572 "|sys/limits.h|float.h|math.h|";
4574 * Machine/OS name selection pattern
4576 #define apzUltrix_Math_IfdefMachs (const char**)NULL
4579 * content selection pattern - do fix if pattern found
4581 tSCC zUltrix_Math_IfdefSelect0[] =
4582 "^(#if.*)\\|\\|[ \t]+CC\\$[a-z]+";
4584 #define ULTRIX_MATH_IFDEF_TEST_CT 1
4585 static tTestDesc aUltrix_Math_IfdefTests[] = {
4586 { TT_EGREP, zUltrix_Math_IfdefSelect0, (regex_t*)NULL }, };
4589 * Fix Command Arguments for Ultrix_Math_Ifdef
4591 static const char* apzUltrix_Math_IfdefPatch[] = {
4596 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4598 * Description of Ultrix_Nested_Ioctl fix
4600 tSCC zUltrix_Nested_IoctlName[] =
4601 "ultrix_nested_ioctl";
4604 * File name selection pattern
4606 tSCC zUltrix_Nested_IoctlList[] =
4609 * Machine/OS name selection pattern
4611 #define apzUltrix_Nested_IoctlMachs (const char**)NULL
4614 * content selection pattern - do fix if pattern found
4616 tSCC zUltrix_Nested_IoctlSelect0[] =
4617 "^/\\* #define SIOCSCREEN";