OSDN Git Service

add fixes for new hp/ux patch
[pf3gnuchains/gcc-fork.git] / gcc / fixinc / fixincl.x
1 /*
2  *  DO NOT EDIT THIS FILE - it has been generated
3  *
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.
7  *
8  * This file contains 147 fixup descriptions.
9  *
10  * See README for more information.
11  *
12  *  inclhack copyright (c) 1998, 1999, 2000, 2001
13  *  The Free Software Foundation, Inc.
14  *
15   *  inclhack is free software.
16  *  
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.
20  *  
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.
25  *  
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.
31  */
32
33 /* * * * * * * * * * * * * * * * * * * * * * * * * *
34  *
35  *  Description of Aab_Dgux_Int_Varargs fix
36  */
37 tSCC zAab_Dgux_Int_VarargsName[] =
38      "AAB_dgux_int_varargs";
39
40 /*
41  *  File name selection pattern
42  */
43 tSCC zAab_Dgux_Int_VarargsList[] =
44   "|_int_varargs.h|";
45 /*
46  *  Machine/OS name selection pattern
47  */
48 #define apzAab_Dgux_Int_VarargsMachs (const char**)NULL
49 #define AAB_DGUX_INT_VARARGS_TEST_CT  0
50 #define aAab_Dgux_Int_VarargsTests   (tTestDesc*)NULL
51
52 /*
53  *  Fix Command Arguments for Aab_Dgux_Int_Varargs
54  */
55 static const char* apzAab_Dgux_Int_VarargsPatch[] = {
56 "#ifndef __INT_VARARGS_H\n\
57 #define __INT_VARARGS_H\n\n\
58 /********************************************************/\n\
59 /*  Define the common stuff for varargs/stdarg/stdio.   */\n\
60 /********************************************************/\n\n\
61 /*\n\
62 ** This file is a DG internal header.  Never include this\n\
63 ** file directly.\n\
64 */\n\n\
65 #ifndef ___int_features_h\n\
66 #include <sys/_int_features.h>\n\
67 #endif\n\n\
68 #if !(defined(_VA_LIST) || defined(_VA_LIST_))\n\
69 #define _VA_LIST\n\
70 #define _VA_LIST_\n\n\
71 #ifdef __LINT__\n\n\
72 #ifdef __STDC__\n\
73 typedef void * va_list;\n\
74 #else\n\
75 typedef char * va_list;\n\
76 #endif\n\n\
77 #else\n\
78 #if _M88K_ANY\n\n\
79 #if defined(__DCC__)\n\n\
80 typedef struct {\n\
81       int     next_arg;\n\
82       int     *mem_ptr;\n\
83       int     *reg_ptr;\n\
84 } va_list;\n\n\
85 #else  /* ! defined(__DCC__) */\n\n\
86 typedef struct {\n\
87       int  __va_arg;       /* argument number */\n\
88       int *__va_stk;       /* start of args passed on stack */\n\
89       int *__va_reg;       /* start of args passed in regs */\n\
90 } va_list;\n\n\
91 #endif  /* ! defined(__DCC__) */\n\n\
92 #elif _IX86_ANY\n\n\
93 #if defined(__GNUC__) || defined(__STDC__)\n\
94 typedef void * va_list;\n\
95 #else\n\
96 typedef char * va_list;\n\
97 #endif\n\n\
98 #endif  /*  _IX86_ANY */\n\n\
99 #endif /* __LINT__ */\n\
100 #endif /*  !(defined(_VA_LIST) || defined(_VA_LIST_)) */\n\
101 #endif /*  #ifndef __INT_VARARGS_H  */",
102     (char*)NULL };
103
104 /* * * * * * * * * * * * * * * * * * * * * * * * * *
105  *
106  *  Description of Aab_Fd_Zero_Asm_Posix_Types_H fix
107  */
108 tSCC zAab_Fd_Zero_Asm_Posix_Types_HName[] =
109      "AAB_fd_zero_asm_posix_types_h";
110
111 /*
112  *  File name selection pattern
113  */
114 tSCC zAab_Fd_Zero_Asm_Posix_Types_HList[] =
115   "|asm/posix_types.h|";
116 /*
117  *  Machine/OS name selection pattern
118  */
119 tSCC* apzAab_Fd_Zero_Asm_Posix_Types_HMachs[] = {
120         "i[34567]86-*-linux*",
121         (const char*)NULL };
122
123 /*
124  *  content bypass pattern - skip fix if pattern found
125  */
126 tSCC zAab_Fd_Zero_Asm_Posix_Types_HBypass0[] =
127        "} while";
128
129 #define    AAB_FD_ZERO_ASM_POSIX_TYPES_H_TEST_CT  1
130 static tTestDesc aAab_Fd_Zero_Asm_Posix_Types_HTests[] = {
131   { TT_NEGREP,   zAab_Fd_Zero_Asm_Posix_Types_HBypass0, (regex_t*)NULL }, };
132
133 /*
134  *  Fix Command Arguments for Aab_Fd_Zero_Asm_Posix_Types_H
135  */
136 static const char* apzAab_Fd_Zero_Asm_Posix_Types_HPatch[] = {
137 "/* This file fixes a bug in the __FD_ZERO macro\n\
138    for older versions of the Linux kernel. */\n\
139 #ifndef _POSIX_TYPES_H_WRAPPER\n\
140 #include <features.h>\n\
141  #include_next <asm/posix_types.h>\n\n\
142 #if defined(__FD_ZERO) && !defined(__GLIBC__)\n\
143 #undef __FD_ZERO\n\
144 #define __FD_ZERO(fdsetp) \\\n\
145   do { \\\n\
146     int __d0, __d1; \\\n\
147 __asm__ __volatile__(\"cld ; rep ; stosl\" \\\n\
148 : \"=&c\" (__d0), \"=&D\" (__d1) \\\n\
149 : \"a\" (0), \"0\" (__FDSET_LONGS), \\\n\
150   \"1\" ((__kernel_fd_set *) (fdsetp)) :\"memory\"); \\\n\
151   } while (0)\n\
152 #endif\n\n\
153 #define _POSIX_TYPES_H_WRAPPER\n\
154 #endif /* _POSIX_TYPES_H_WRAPPER */",
155     (char*)NULL };
156
157 /* * * * * * * * * * * * * * * * * * * * * * * * * *
158  *
159  *  Description of Aab_Fd_Zero_Gnu_Types_H fix
160  */
161 tSCC zAab_Fd_Zero_Gnu_Types_HName[] =
162      "AAB_fd_zero_gnu_types_h";
163
164 /*
165  *  File name selection pattern
166  */
167 tSCC zAab_Fd_Zero_Gnu_Types_HList[] =
168   "|gnu/types.h|";
169 /*
170  *  Machine/OS name selection pattern
171  */
172 tSCC* apzAab_Fd_Zero_Gnu_Types_HMachs[] = {
173         "i[34567]86-*-linux*",
174         (const char*)NULL };
175 #define AAB_FD_ZERO_GNU_TYPES_H_TEST_CT  0
176 #define aAab_Fd_Zero_Gnu_Types_HTests   (tTestDesc*)NULL
177
178 /*
179  *  Fix Command Arguments for Aab_Fd_Zero_Gnu_Types_H
180  */
181 static const char* apzAab_Fd_Zero_Gnu_Types_HPatch[] = {
182 "/* This file fixes a bug in the __FD_ZERO macro present in glibc 1.x. */\n\
183 #ifndef _TYPES_H_WRAPPER\n\
184 #include <features.h>\n\
185  #include_next <gnu/types.h>\n\n\
186 #if defined(__FD_ZERO) && !defined(__GLIBC__)\n\
187 #undef __FD_ZERO\n\
188 # define __FD_ZERO(fdsetp) \\\n\
189   do { \\\n\
190     int __d0, __d1; \\\n\
191 \t__asm__ __volatile__(\"cld ; rep ; stosl\" \\\n\
192         \t: \"=&c\" (__d0), \"=&D\" (__d1) \\\n\
193         \t: \"a\" (0), \"0\" (__FDSET_LONGS), \\\n\
194 \t\t  \"1\" ((__fd_set *) (fdsetp)) :\"memory\"); \\\n\
195   } while (0)\n\
196 #endif\n\n\
197 #define _TYPES_H_WRAPPER\n\
198 #endif /* _TYPES_H_WRAPPER */\n",
199     (char*)NULL };
200
201 /* * * * * * * * * * * * * * * * * * * * * * * * * *
202  *
203  *  Description of Aab_Fd_Zero_Selectbits_H fix
204  */
205 tSCC zAab_Fd_Zero_Selectbits_HName[] =
206      "AAB_fd_zero_selectbits_h";
207
208 /*
209  *  File name selection pattern
210  */
211 tSCC zAab_Fd_Zero_Selectbits_HList[] =
212   "|selectbits.h|";
213 /*
214  *  Machine/OS name selection pattern
215  */
216 tSCC* apzAab_Fd_Zero_Selectbits_HMachs[] = {
217         "i[34567]86-*-linux*",
218         (const char*)NULL };
219 #define AAB_FD_ZERO_SELECTBITS_H_TEST_CT  0
220 #define aAab_Fd_Zero_Selectbits_HTests   (tTestDesc*)NULL
221
222 /*
223  *  Fix Command Arguments for Aab_Fd_Zero_Selectbits_H
224  */
225 static const char* apzAab_Fd_Zero_Selectbits_HPatch[] = {
226 "/* This file fixes a bug in the __FD_ZERO macro present in glibc 2.0.x. */\n\
227 #ifndef _SELECTBITS_H_WRAPPER\n\
228 #include <features.h>\n\
229  #include_next <selectbits.h>\n\n\
230 #if defined(__FD_ZERO) && defined(__GLIBC__) \\\n\
231 \t&& defined(__GLIBC_MINOR__) && __GLIBC__ == 2 \\\n\
232 \t&& __GLIBC_MINOR__ == 0\n\
233 #undef __FD_ZERO\n\
234 #define __FD_ZERO(fdsetp) \\\n\
235   do { \\\n\
236     int __d0, __d1; \\\n\
237   __asm__ __volatile__ (\"cld; rep; stosl\" \\\n\
238                         : \"=&c\" (__d0), \"=&D\" (__d1) \\\n\
239                         : \"a\" (0), \"0\" (sizeof (__fd_set) \\\n\
240                                         / sizeof (__fd_mask)), \\\n\
241                           \"1\" ((__fd_mask *) (fdsetp)) \\\n\
242                         : \"memory\"); \\\n\
243   } while (0)\n\
244 #endif\n\n\
245 #define _SELECTBITS_H_WRAPPER\n\
246 #endif /* _SELECTBITS_H_WRAPPER */\n",
247     (char*)NULL };
248
249 /* * * * * * * * * * * * * * * * * * * * * * * * * *
250  *
251  *  Description of Aab_Solaris_Sys_Varargs_H fix
252  */
253 tSCC zAab_Solaris_Sys_Varargs_HName[] =
254      "AAB_solaris_sys_varargs_h";
255
256 /*
257  *  File name selection pattern
258  */
259 tSCC zAab_Solaris_Sys_Varargs_HList[] =
260   "|sys/varargs.h|";
261 /*
262  *  Machine/OS name selection pattern
263  */
264 tSCC* apzAab_Solaris_Sys_Varargs_HMachs[] = {
265         "*-*-solaris*",
266         (const char*)NULL };
267 #define AAB_SOLARIS_SYS_VARARGS_H_TEST_CT  0
268 #define aAab_Solaris_Sys_Varargs_HTests   (tTestDesc*)NULL
269
270 /*
271  *  Fix Command Arguments for Aab_Solaris_Sys_Varargs_H
272  */
273 static const char* apzAab_Solaris_Sys_Varargs_HPatch[] = {
274 "#ifdef __STDC__\n\
275 #include <stdarg.h>\n\
276 #else\n\
277 #include <varargs.h>\n\
278 #endif\n",
279     (char*)NULL };
280
281 /* * * * * * * * * * * * * * * * * * * * * * * * * *
282  *
283  *  Description of Aab_Sun_Memcpy fix
284  */
285 tSCC zAab_Sun_MemcpyName[] =
286      "AAB_sun_memcpy";
287
288 /*
289  *  File name selection pattern
290  */
291 tSCC zAab_Sun_MemcpyList[] =
292   "|memory.h|";
293 /*
294  *  Machine/OS name selection pattern
295  */
296 #define apzAab_Sun_MemcpyMachs (const char**)NULL
297
298 /*
299  *  content selection pattern - do fix if pattern found
300  */
301 tSCC zAab_Sun_MemcpySelect0[] =
302        "/\\*\t@\\(#\\)(head/memory.h\t50.1\t |memory\\.h 1\\.[2-4] 8./../.. SMI; from S5R2 1\\.2\t)\\*/";
303
304 #define    AAB_SUN_MEMCPY_TEST_CT  1
305 static tTestDesc aAab_Sun_MemcpyTests[] = {
306   { TT_EGREP,    zAab_Sun_MemcpySelect0, (regex_t*)NULL }, };
307
308 /*
309  *  Fix Command Arguments for Aab_Sun_Memcpy
310  */
311 static const char* apzAab_Sun_MemcpyPatch[] = {
312 "/* This file was generated by fixincludes */\n\
313 #ifndef __memory_h__\n\
314 #define __memory_h__\n\n\
315 #ifdef __STDC__\n\
316 extern void *memccpy();\n\
317 extern void *memchr();\n\
318 extern void *memcpy();\n\
319 extern void *memset();\n\
320 #else\n\
321 extern char *memccpy();\n\
322 extern char *memchr();\n\
323 extern char *memcpy();\n\
324 extern char *memset();\n\
325 #endif /* __STDC__ */\n\n\
326 extern int memcmp();\n\n\
327 #endif /* __memory_h__ */\n",
328     (char*)NULL };
329
330 /* * * * * * * * * * * * * * * * * * * * * * * * * *
331  *
332  *  Description of Aab_Svr4_Replace_Byteorder fix
333  */
334 tSCC zAab_Svr4_Replace_ByteorderName[] =
335      "AAB_svr4_replace_byteorder";
336
337 /*
338  *  File name selection pattern
339  */
340 tSCC zAab_Svr4_Replace_ByteorderList[] =
341   "|sys/byteorder.h|";
342 /*
343  *  Machine/OS name selection pattern
344  */
345 tSCC* apzAab_Svr4_Replace_ByteorderMachs[] = {
346         "*-*-sysv4*",
347         "i[34567]86-*-sysv5*",
348         "i[34567]86-*-udk*",
349         "i[34567]86-*-solaris2.[0-4]",
350         "powerpcle-*-solaris2.[0-4]",
351         "sparc-*-solaris2.[0-4]",
352         (const char*)NULL };
353 #define AAB_SVR4_REPLACE_BYTEORDER_TEST_CT  0
354 #define aAab_Svr4_Replace_ByteorderTests   (tTestDesc*)NULL
355
356 /*
357  *  Fix Command Arguments for Aab_Svr4_Replace_Byteorder
358  */
359 static const char* apzAab_Svr4_Replace_ByteorderPatch[] = {
360 "#ifndef _SYS_BYTEORDER_H\n\
361 #define _SYS_BYTEORDER_H\n\n\
362 /* Functions to convert `short' and `long' quantities from host byte order\n\
363    to (internet) network byte order (i.e. big-endian).\n\n\
364    Written by Ron Guilmette (rfg@ncd.com).\n\n\
365    This isn't actually used by GCC.  It is installed by fixinc.svr4.\n\n\
366    For big-endian machines these functions are essentially no-ops.\n\n\
367    For little-endian machines, we define the functions using specialized\n\
368    asm sequences in cases where doing so yields better code (e.g. i386).  */\n\n\
369 #if !defined (__GNUC__) && !defined (__GNUG__)\n\
370 #error You lose!  This file is only useful with GNU compilers.\n\
371 #endif\n\n\
372 #ifndef __BYTE_ORDER__\n\
373 /* Byte order defines.  These are as defined on UnixWare 1.1, but with\n\
374    double underscores added at the front and back.  */\n\
375 #define __LITTLE_ENDIAN__   1234\n\
376 #define __BIG_ENDIAN__      4321\n\
377 #define __PDP_ENDIAN__      3412\n\
378 #endif\n\n\
379 #ifdef __STDC__\n\
380 static __inline__ unsigned long htonl (unsigned long);\n\
381 static __inline__ unsigned short htons (unsigned int);\n\
382 static __inline__ unsigned long ntohl (unsigned long);\n\
383 static __inline__ unsigned short ntohs (unsigned int);\n\
384 #endif /* defined (__STDC__) */\n\n\
385 #if defined (__i386__)\n\n\
386 #ifndef __BYTE_ORDER__\n\
387 #define __BYTE_ORDER__ __LITTLE_ENDIAN__\n\
388 #endif\n\n\
389 /* Convert a host long to a network long.  */\n\n\
390 /* We must use a new-style function definition, so that this will also\n\
391    be valid for C++.  */\n\
392 static __inline__ unsigned long\n\
393 htonl (unsigned long __arg)\n\
394 {\n\
395   register unsigned long __result;\n\n\
396   __asm__ (\"xchg%B0 %b0,%h0\n\
397 \tror%L0 $16,%0\n\
398 \txchg%B0 %b0,%h0\" : \"=q\" (__result) : \"0\" (__arg));\n\
399   return __result;\n\
400 }\n\n\
401 /* Convert a host short to a network short.  */\n\n\
402 static __inline__ unsigned short\n\
403 htons (unsigned int __arg)\n\
404 {\n\
405   register unsigned short __result;\n\n\
406   __asm__ (\"xchg%B0 %b0,%h0\" : \"=q\" (__result) : \"0\" (__arg));\n\
407   return __result;\n\
408 }\n\n\
409 #elif ((defined (__i860__) && !defined (__i860_big_endian__))\t\\\n\
410        || defined (__ns32k__) || defined (__vax__)\t\t\\\n\
411        || defined (__spur__) || defined (__arm__))\n\n\
412 #ifndef __BYTE_ORDER__\n\
413 #define __BYTE_ORDER__ __LITTLE_ENDIAN__\n\
414 #endif\n\n\
415 /* For other little-endian machines, using C code is just as efficient as\n\
416    using assembly code.  */\n\n\
417 /* Convert a host long to a network long.  */\n\n\
418 static __inline__ unsigned long\n\
419 htonl (unsigned long __arg)\n\
420 {\n\
421   register unsigned long __result;\n\n\
422   __result = (__arg >> 24) & 0x000000ff;\n\
423   __result |= (__arg >> 8) & 0x0000ff00;\n\
424   __result |= (__arg << 8) & 0x00ff0000;\n\
425   __result |= (__arg << 24) & 0xff000000;\n\
426   return __result;\n\
427 }\n\n\
428 /* Convert a host short to a network short.  */\n\n\
429 static __inline__ unsigned short\n\
430 htons (unsigned int __arg)\n\
431 {\n\
432   register unsigned short __result;\n\n\
433   __result = (__arg << 8) & 0xff00;\n\
434   __result |= (__arg >> 8) & 0x00ff;\n\
435   return __result;\n\
436 }\n\n\
437 #else /* must be a big-endian machine */\n\n\
438 #ifndef __BYTE_ORDER__\n\
439 #define __BYTE_ORDER__ __BIG_ENDIAN__\n\
440 #endif\n\n\
441 /* Convert a host long to a network long.  */\n\n\
442 static __inline__ unsigned long\n\
443 htonl (unsigned long __arg)\n\
444 {\n\
445   return __arg;\n\
446 }\n\n\
447 /* Convert a host short to a network short.  */\n\n\
448 static __inline__ unsigned short\n\
449 htons (unsigned int __arg)\n\
450 {\n\
451   return __arg;\n\
452 }\n\n\
453 #endif /* big-endian */\n\n\
454 /* Convert a network long to a host long.  */\n\n\
455 static __inline__ unsigned long\n\
456 ntohl (unsigned long __arg)\n\
457 {\n\
458   return htonl (__arg);\n\
459 }\n\n\
460 /* Convert a network short to a host short.  */\n\n\
461 static __inline__ unsigned short\n\
462 ntohs (unsigned int __arg)\n\
463 {\n\
464   return htons (__arg);\n\
465 }\n\
466 #endif\n",
467     (char*)NULL };
468
469 /* * * * * * * * * * * * * * * * * * * * * * * * * *
470  *
471  *  Description of Aab_Ultrix_Ansi_Compat fix
472  */
473 tSCC zAab_Ultrix_Ansi_CompatName[] =
474      "AAB_ultrix_ansi_compat";
475
476 /*
477  *  File name selection pattern
478  */
479 tSCC zAab_Ultrix_Ansi_CompatList[] =
480   "|ansi_compat.h|";
481 /*
482  *  Machine/OS name selection pattern
483  */
484 #define apzAab_Ultrix_Ansi_CompatMachs (const char**)NULL
485
486 /*
487  *  content selection pattern - do fix if pattern found
488  */
489 tSCC zAab_Ultrix_Ansi_CompatSelect0[] =
490        "ULTRIX";
491
492 #define    AAB_ULTRIX_ANSI_COMPAT_TEST_CT  1
493 static tTestDesc aAab_Ultrix_Ansi_CompatTests[] = {
494   { TT_EGREP,    zAab_Ultrix_Ansi_CompatSelect0, (regex_t*)NULL }, };
495
496 /*
497  *  Fix Command Arguments for Aab_Ultrix_Ansi_Compat
498  */
499 static const char* apzAab_Ultrix_Ansi_CompatPatch[] = {
500 "/* This file intentionally left blank.  */\n",
501     (char*)NULL };
502
503 /* * * * * * * * * * * * * * * * * * * * * * * * * *
504  *
505  *  Description of Aab_Ultrix_Limits fix
506  */
507 tSCC zAab_Ultrix_LimitsName[] =
508      "AAB_ultrix_limits";
509
510 /*
511  *  File name selection pattern
512  */
513 tSCC zAab_Ultrix_LimitsList[] =
514   "|limits.h|";
515 /*
516  *  Machine/OS name selection pattern
517  */
518 tSCC* apzAab_Ultrix_LimitsMachs[] = {
519         "*-*-ultrix4.3",
520         (const char*)NULL };
521 #define AAB_ULTRIX_LIMITS_TEST_CT  0
522 #define aAab_Ultrix_LimitsTests   (tTestDesc*)NULL
523
524 /*
525  *  Fix Command Arguments for Aab_Ultrix_Limits
526  */
527 static const char* apzAab_Ultrix_LimitsPatch[] = {
528 "#ifndef _LIMITS_INCLUDED\n\
529 #define _LIMITS_INCLUDED\n\
530 #include <sys/limits.h>\n\
531 #endif /* _LIMITS_INCLUDED */\n",
532     (char*)NULL };
533
534 /* * * * * * * * * * * * * * * * * * * * * * * * * *
535  *
536  *  Description of Aab_Ultrix_Memory fix
537  */
538 tSCC zAab_Ultrix_MemoryName[] =
539      "AAB_ultrix_memory";
540
541 /*
542  *  File name selection pattern
543  */
544 tSCC zAab_Ultrix_MemoryList[] =
545   "|memory.h|";
546 /*
547  *  Machine/OS name selection pattern
548  */
549 tSCC* apzAab_Ultrix_MemoryMachs[] = {
550         "*-*-ultrix4.3",
551         (const char*)NULL };
552 #define AAB_ULTRIX_MEMORY_TEST_CT  0
553 #define aAab_Ultrix_MemoryTests   (tTestDesc*)NULL
554
555 /*
556  *  Fix Command Arguments for Aab_Ultrix_Memory
557  */
558 static const char* apzAab_Ultrix_MemoryPatch[] = {
559 "#ifndef _MEMORY_INCLUDED\n\
560 #define _MEMORY_INCLUDED\n\
561 #include <strings.h>\n\
562 #endif /* _MEMORY_INCLUDED */\n",
563     (char*)NULL };
564
565 /* * * * * * * * * * * * * * * * * * * * * * * * * *
566  *
567  *  Description of Aab_Ultrix_String fix
568  */
569 tSCC zAab_Ultrix_StringName[] =
570      "AAB_ultrix_string";
571
572 /*
573  *  File name selection pattern
574  */
575 tSCC zAab_Ultrix_StringList[] =
576   "|string.h|";
577 /*
578  *  Machine/OS name selection pattern
579  */
580 tSCC* apzAab_Ultrix_StringMachs[] = {
581         "*-*-ultrix4.3",
582         (const char*)NULL };
583 #define AAB_ULTRIX_STRING_TEST_CT  0
584 #define aAab_Ultrix_StringTests   (tTestDesc*)NULL
585
586 /*
587  *  Fix Command Arguments for Aab_Ultrix_String
588  */
589 static const char* apzAab_Ultrix_StringPatch[] = {
590 "#ifndef _STRING_INCLUDED\n\
591 #define _STRING_INCLUDED\n\
592 #include <strings.h>\n\
593 #endif /* _STRING_INCLUDED */\n",
594     (char*)NULL };
595
596 /* * * * * * * * * * * * * * * * * * * * * * * * * *
597  *
598  *  Description of Aix_Pthread fix
599  */
600 tSCC zAix_PthreadName[] =
601      "aix_pthread";
602
603 /*
604  *  File name selection pattern
605  */
606 tSCC zAix_PthreadList[] =
607   "|pthread.h|";
608 /*
609  *  Machine/OS name selection pattern
610  */
611 #define apzAix_PthreadMachs (const char**)NULL
612
613 /*
614  *  content selection pattern - do fix if pattern found
615  */
616 tSCC zAix_PthreadSelect0[] =
617        "(#define [A-Za-z_0-9]+)(\\\\\n\
618 [^A-Za-z_0-9 \t\n\
619 (])";
620
621 #define    AIX_PTHREAD_TEST_CT  1
622 static tTestDesc aAix_PthreadTests[] = {
623   { TT_EGREP,    zAix_PthreadSelect0, (regex_t*)NULL }, };
624
625 /*
626  *  Fix Command Arguments for Aix_Pthread
627  */
628 static const char* apzAix_PthreadPatch[] = {
629     "format",
630     "%1 %2",
631     (char*)NULL };
632
633 /* * * * * * * * * * * * * * * * * * * * * * * * * *
634  *
635  *  Description of Aix_Sysmachine fix
636  */
637 tSCC zAix_SysmachineName[] =
638      "aix_sysmachine";
639
640 /*
641  *  File name selection pattern
642  */
643 tSCC zAix_SysmachineList[] =
644   "|sys/machine.h|";
645 /*
646  *  Machine/OS name selection pattern
647  */
648 #define apzAix_SysmachineMachs (const char**)NULL
649
650 /*
651  *  content selection pattern - do fix if pattern found
652  */
653 tSCC zAix_SysmachineSelect0[] =
654        "\\\\ +\n";
655
656 #define    AIX_SYSMACHINE_TEST_CT  1
657 static tTestDesc aAix_SysmachineTests[] = {
658   { TT_EGREP,    zAix_SysmachineSelect0, (regex_t*)NULL }, };
659
660 /*
661  *  Fix Command Arguments for Aix_Sysmachine
662  */
663 static const char* apzAix_SysmachinePatch[] = {
664     "format",
665     "\\\n",
666     (char*)NULL };
667
668 /* * * * * * * * * * * * * * * * * * * * * * * * * *
669  *
670  *  Description of Aix_Syswait fix
671  */
672 tSCC zAix_SyswaitName[] =
673      "aix_syswait";
674
675 /*
676  *  File name selection pattern
677  */
678 tSCC zAix_SyswaitList[] =
679   "|sys/wait.h|";
680 /*
681  *  Machine/OS name selection pattern
682  */
683 #define apzAix_SyswaitMachs (const char**)NULL
684
685 /*
686  *  content selection pattern - do fix if pattern found
687  */
688 tSCC zAix_SyswaitSelect0[] =
689        "^extern pid_t wait3\\(\\);\n";
690 tSCC zAix_SyswaitSelect1[] =
691        "bos325,";
692
693 #define    AIX_SYSWAIT_TEST_CT  2
694 static tTestDesc aAix_SyswaitTests[] = {
695   { TT_EGREP,    zAix_SyswaitSelect0, (regex_t*)NULL },
696   { TT_EGREP,    zAix_SyswaitSelect1, (regex_t*)NULL }, };
697
698 /*
699  *  Fix Command Arguments for Aix_Syswait
700  */
701 static const char* apzAix_SyswaitPatch[] = {
702     "format",
703     "struct rusage;\n\
704 %0",
705     (char*)NULL };
706
707 /* * * * * * * * * * * * * * * * * * * * * * * * * *
708  *
709  *  Description of Aix_Volatile fix
710  */
711 tSCC zAix_VolatileName[] =
712      "aix_volatile";
713
714 /*
715  *  File name selection pattern
716  */
717 tSCC zAix_VolatileList[] =
718   "|sys/signal.h|";
719 /*
720  *  Machine/OS name selection pattern
721  */
722 #define apzAix_VolatileMachs (const char**)NULL
723
724 /*
725  *  content selection pattern - do fix if pattern found
726  */
727 tSCC zAix_VolatileSelect0[] =
728        "typedef volatile int sig_atomic_t";
729
730 #define    AIX_VOLATILE_TEST_CT  1
731 static tTestDesc aAix_VolatileTests[] = {
732   { TT_EGREP,    zAix_VolatileSelect0, (regex_t*)NULL }, };
733
734 /*
735  *  Fix Command Arguments for Aix_Volatile
736  */
737 static const char* apzAix_VolatilePatch[] = {
738     "format",
739     "typedef int sig_atomic_t",
740     (char*)NULL };
741
742 /* * * * * * * * * * * * * * * * * * * * * * * * * *
743  *
744  *  Description of Alpha___Assert fix
745  */
746 tSCC zAlpha___AssertName[] =
747      "alpha___assert";
748
749 /*
750  *  File name selection pattern
751  */
752 tSCC zAlpha___AssertList[] =
753   "|assert.h|";
754 /*
755  *  Machine/OS name selection pattern
756  */
757 #define apzAlpha___AssertMachs (const char**)NULL
758
759 /*
760  *  content selection pattern - do fix if pattern found
761  */
762 tSCC zAlpha___AssertSelect0[] =
763        "__assert\\(char \\*, char \\*, int\\)";
764
765 #define    ALPHA___ASSERT_TEST_CT  1
766 static tTestDesc aAlpha___AssertTests[] = {
767   { TT_EGREP,    zAlpha___AssertSelect0, (regex_t*)NULL }, };
768
769 /*
770  *  Fix Command Arguments for Alpha___Assert
771  */
772 static const char* apzAlpha___AssertPatch[] = {
773     "format",
774     "__assert(const char *, const char *, int)",
775     (char*)NULL };
776
777 /* * * * * * * * * * * * * * * * * * * * * * * * * *
778  *
779  *  Description of Alpha_Assert fix
780  */
781 tSCC zAlpha_AssertName[] =
782      "alpha_assert";
783
784 /*
785  *  File name selection pattern
786  */
787 tSCC zAlpha_AssertList[] =
788   "|assert.h|";
789 /*
790  *  Machine/OS name selection pattern
791  */
792 #define apzAlpha_AssertMachs (const char**)NULL
793
794 /*
795  *  content selection pattern - do fix if pattern found
796  */
797 tSCC zAlpha_AssertSelect0[] =
798        "(#define assert\\(EX\\).*)\\(\\(int\\) \\(EX\\)\\)";
799
800 #define    ALPHA_ASSERT_TEST_CT  1
801 static tTestDesc aAlpha_AssertTests[] = {
802   { TT_EGREP,    zAlpha_AssertSelect0, (regex_t*)NULL }, };
803
804 /*
805  *  Fix Command Arguments for Alpha_Assert
806  */
807 static const char* apzAlpha_AssertPatch[] = {
808     "format",
809     "%1(EX)",
810     (char*)NULL };
811
812 /* * * * * * * * * * * * * * * * * * * * * * * * * *
813  *
814  *  Description of Alpha_Getopt fix
815  */
816 tSCC zAlpha_GetoptName[] =
817      "alpha_getopt";
818
819 /*
820  *  File name selection pattern
821  */
822 tSCC zAlpha_GetoptList[] =
823   "|stdio.h|stdlib.h|";
824 /*
825  *  Machine/OS name selection pattern
826  */
827 #define apzAlpha_GetoptMachs (const char**)NULL
828
829 /*
830  *  content selection pattern - do fix if pattern found
831  */
832 tSCC zAlpha_GetoptSelect0[] =
833        "getopt\\(int, char \\*\\[\\], *char \\*\\)";
834
835 #define    ALPHA_GETOPT_TEST_CT  1
836 static tTestDesc aAlpha_GetoptTests[] = {
837   { TT_EGREP,    zAlpha_GetoptSelect0, (regex_t*)NULL }, };
838
839 /*
840  *  Fix Command Arguments for Alpha_Getopt
841  */
842 static const char* apzAlpha_GetoptPatch[] = {
843     "format",
844     "getopt(int, char *const[], const char *)",
845     (char*)NULL };
846
847 /* * * * * * * * * * * * * * * * * * * * * * * * * *
848  *
849  *  Description of Alpha_Parens fix
850  */
851 tSCC zAlpha_ParensName[] =
852      "alpha_parens";
853
854 /*
855  *  File name selection pattern
856  */
857 tSCC zAlpha_ParensList[] =
858   "|sym.h|";
859 /*
860  *  Machine/OS name selection pattern
861  */
862 #define apzAlpha_ParensMachs (const char**)NULL
863
864 /*
865  *  content selection pattern - do fix if pattern found
866  */
867 tSCC zAlpha_ParensSelect0[] =
868        "#ifndef\\(__mips64\\)";
869
870 #define    ALPHA_PARENS_TEST_CT  1
871 static tTestDesc aAlpha_ParensTests[] = {
872   { TT_EGREP,    zAlpha_ParensSelect0, (regex_t*)NULL }, };
873
874 /*
875  *  Fix Command Arguments for Alpha_Parens
876  */
877 static const char* apzAlpha_ParensPatch[] = {
878     "format",
879     "#ifndef __mips64",
880     (char*)NULL };
881
882 /* * * * * * * * * * * * * * * * * * * * * * * * * *
883  *
884  *  Description of Alpha_Sbrk fix
885  */
886 tSCC zAlpha_SbrkName[] =
887      "alpha_sbrk";
888
889 /*
890  *  File name selection pattern
891  */
892 tSCC zAlpha_SbrkList[] =
893   "|unistd.h|";
894 /*
895  *  Machine/OS name selection pattern
896  */
897 #define apzAlpha_SbrkMachs (const char**)NULL
898
899 /*
900  *  content selection pattern - do fix if pattern found
901  */
902 tSCC zAlpha_SbrkSelect0[] =
903        "char[ \t]*\\*[\t ]*sbrk[ \t]*\\(";
904
905 #define    ALPHA_SBRK_TEST_CT  1
906 static tTestDesc aAlpha_SbrkTests[] = {
907   { TT_EGREP,    zAlpha_SbrkSelect0, (regex_t*)NULL }, };
908
909 /*
910  *  Fix Command Arguments for Alpha_Sbrk
911  */
912 static const char* apzAlpha_SbrkPatch[] = {
913     "format",
914     "void *sbrk(",
915     (char*)NULL };
916
917 /* * * * * * * * * * * * * * * * * * * * * * * * * *
918  *
919  *  Description of Arm_Norcroft_Hint fix
920  */
921 tSCC zArm_Norcroft_HintName[] =
922      "arm_norcroft_hint";
923
924 /*
925  *  File name selection pattern
926  */
927 tSCC zArm_Norcroft_HintList[] =
928   "|X11/Intrinsic.h|";
929 /*
930  *  Machine/OS name selection pattern
931  */
932 #define apzArm_Norcroft_HintMachs (const char**)NULL
933
934 /*
935  *  content selection pattern - do fix if pattern found
936  */
937 tSCC zArm_Norcroft_HintSelect0[] =
938        "___type p_type";
939
940 #define    ARM_NORCROFT_HINT_TEST_CT  1
941 static tTestDesc aArm_Norcroft_HintTests[] = {
942   { TT_EGREP,    zArm_Norcroft_HintSelect0, (regex_t*)NULL }, };
943
944 /*
945  *  Fix Command Arguments for Arm_Norcroft_Hint
946  */
947 static const char* apzArm_Norcroft_HintPatch[] = {
948     "format",
949     "p_type",
950     (char*)NULL };
951
952 /* * * * * * * * * * * * * * * * * * * * * * * * * *
953  *
954  *  Description of Arm_Wchar fix
955  */
956 tSCC zArm_WcharName[] =
957      "arm_wchar";
958
959 /*
960  *  File name selection pattern
961  */
962 tSCC zArm_WcharList[] =
963   "|stdlib.h|";
964 /*
965  *  Machine/OS name selection pattern
966  */
967 #define apzArm_WcharMachs (const char**)NULL
968
969 /*
970  *  content selection pattern - do fix if pattern found
971  */
972 tSCC zArm_WcharSelect0[] =
973        "#[ \t]*define[ \t]*__wchar_t";
974
975 #define    ARM_WCHAR_TEST_CT  1
976 static tTestDesc aArm_WcharTests[] = {
977   { TT_EGREP,    zArm_WcharSelect0, (regex_t*)NULL }, };
978
979 /*
980  *  Fix Command Arguments for Arm_Wchar
981  */
982 static const char* apzArm_WcharPatch[] = {
983     "format",
984     "%1_GCC_WCHAR_T",
985     "(#[ \t]*(ifndef|define)[ \t]+)__wchar_t",
986     (char*)NULL };
987
988 /* * * * * * * * * * * * * * * * * * * * * * * * * *
989  *
990  *  Description of Aux_Asm fix
991  */
992 tSCC zAux_AsmName[] =
993      "aux_asm";
994
995 /*
996  *  File name selection pattern
997  */
998 tSCC zAux_AsmList[] =
999   "|sys/param.h|";
1000 /*
1001  *  Machine/OS name selection pattern
1002  */
1003 #define apzAux_AsmMachs (const char**)NULL
1004
1005 /*
1006  *  content selection pattern - do fix if pattern found
1007  */
1008 tSCC zAux_AsmSelect0[] =
1009        "#ifndef NOINLINE";
1010
1011 #define    AUX_ASM_TEST_CT  1
1012 static tTestDesc aAux_AsmTests[] = {
1013   { TT_EGREP,    zAux_AsmSelect0, (regex_t*)NULL }, };
1014
1015 /*
1016  *  Fix Command Arguments for Aux_Asm
1017  */
1018 static const char* apzAux_AsmPatch[] = {
1019     "format",
1020     "#if !defined(NOINLINE) && !defined(__GNUC__)",
1021     (char*)NULL };
1022
1023 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1024  *
1025  *  Description of Avoid_Bool_Define fix
1026  */
1027 tSCC zAvoid_Bool_DefineName[] =
1028      "avoid_bool_define";
1029
1030 /*
1031  *  File name selection pattern
1032  */
1033 tSCC zAvoid_Bool_DefineList[] =
1034   "|curses.h|curses_colr/curses.h|term.h|tinfo.h|";
1035 /*
1036  *  Machine/OS name selection pattern
1037  */
1038 #define apzAvoid_Bool_DefineMachs (const char**)NULL
1039
1040 /*
1041  *  content selection pattern - do fix if pattern found
1042  */
1043 tSCC zAvoid_Bool_DefineSelect0[] =
1044        "#[ \t]*define[ \t]+bool[ \t]";
1045
1046 /*
1047  *  content bypass pattern - skip fix if pattern found
1048  */
1049 tSCC zAvoid_Bool_DefineBypass0[] =
1050        "we must use the C\\+\\+ compiler's type";
1051
1052 #define    AVOID_BOOL_DEFINE_TEST_CT  2
1053 static tTestDesc aAvoid_Bool_DefineTests[] = {
1054   { TT_NEGREP,   zAvoid_Bool_DefineBypass0, (regex_t*)NULL },
1055   { TT_EGREP,    zAvoid_Bool_DefineSelect0, (regex_t*)NULL }, };
1056
1057 /*
1058  *  Fix Command Arguments for Avoid_Bool_Define
1059  */
1060 static const char* apzAvoid_Bool_DefinePatch[] = {
1061     "format",
1062     "#ifndef __cplusplus\n\
1063 %0\n\
1064 #endif",
1065     "^[ \t]*#[ \t]*define[ \t]+bool[ \t].*",
1066     (char*)NULL };
1067
1068 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1069  *
1070  *  Description of Avoid_Bool_Type fix
1071  */
1072 tSCC zAvoid_Bool_TypeName[] =
1073      "avoid_bool_type";
1074
1075 /*
1076  *  File name selection pattern
1077  */
1078 tSCC zAvoid_Bool_TypeList[] =
1079   "|curses.h|curses_colr/curses.h|term.h|tinfo.h|";
1080 /*
1081  *  Machine/OS name selection pattern
1082  */
1083 #define apzAvoid_Bool_TypeMachs (const char**)NULL
1084
1085 /*
1086  *  content selection pattern - do fix if pattern found
1087  */
1088 tSCC zAvoid_Bool_TypeSelect0[] =
1089        "^[ \t]*typedef[ \t].*[ \t]bool[ \t]*;";
1090
1091 /*
1092  *  content bypass pattern - skip fix if pattern found
1093  */
1094 tSCC zAvoid_Bool_TypeBypass0[] =
1095        "we must use the C\\+\\+ compiler's type";
1096
1097 #define    AVOID_BOOL_TYPE_TEST_CT  2
1098 static tTestDesc aAvoid_Bool_TypeTests[] = {
1099   { TT_NEGREP,   zAvoid_Bool_TypeBypass0, (regex_t*)NULL },
1100   { TT_EGREP,    zAvoid_Bool_TypeSelect0, (regex_t*)NULL }, };
1101
1102 /*
1103  *  Fix Command Arguments for Avoid_Bool_Type
1104  */
1105 static const char* apzAvoid_Bool_TypePatch[] = {
1106     "format",
1107     "#ifndef __cplusplus\n\
1108 %0\n\
1109 #endif",
1110     (char*)NULL };
1111
1112 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1113  *
1114  *  Description of Avoid_Wchar_T_Type fix
1115  */
1116 tSCC zAvoid_Wchar_T_TypeName[] =
1117      "avoid_wchar_t_type";
1118
1119 /*
1120  *  File name selection pattern
1121  */
1122 #define zAvoid_Wchar_T_TypeList (char*)NULL
1123 /*
1124  *  Machine/OS name selection pattern
1125  */
1126 #define apzAvoid_Wchar_T_TypeMachs (const char**)NULL
1127
1128 /*
1129  *  content selection pattern - do fix if pattern found
1130  */
1131 tSCC zAvoid_Wchar_T_TypeSelect0[] =
1132        "^[ \t]*typedef[ \t].*[ \t]wchar_t[ \t]*;";
1133
1134 #define    AVOID_WCHAR_T_TYPE_TEST_CT  1
1135 static tTestDesc aAvoid_Wchar_T_TypeTests[] = {
1136   { TT_EGREP,    zAvoid_Wchar_T_TypeSelect0, (regex_t*)NULL }, };
1137
1138 /*
1139  *  Fix Command Arguments for Avoid_Wchar_T_Type
1140  */
1141 static const char* apzAvoid_Wchar_T_TypePatch[] = {
1142     "format",
1143     "#ifndef __cplusplus\n\
1144 %0\n\
1145 #endif",
1146     (char*)NULL };
1147
1148 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1149  *
1150  *  Description of Bad_Lval fix
1151  */
1152 tSCC zBad_LvalName[] =
1153      "bad_lval";
1154
1155 /*
1156  *  File name selection pattern
1157  */
1158 tSCC zBad_LvalList[] =
1159   "|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|";
1160 /*
1161  *  Machine/OS name selection pattern
1162  */
1163 #define apzBad_LvalMachs (const char**)NULL
1164
1165 /*
1166  *  content selection pattern - do fix if pattern found
1167  */
1168 tSCC zBad_LvalSelect0[] =
1169        "^[ \t]*#[ \t]*pragma[ \t]+extern_prefix";
1170
1171 #define    BAD_LVAL_TEST_CT  1
1172 static tTestDesc aBad_LvalTests[] = {
1173   { TT_EGREP,    zBad_LvalSelect0, (regex_t*)NULL }, };
1174
1175 /*
1176  *  Fix Command Arguments for Bad_Lval
1177  */
1178 static const char* apzBad_LvalPatch[] = { "sed",
1179     "-e", "s/^[ \t]*#[ \t]*define[ \t][ \t]*\\([^(]*\\)\\(([^)]*)\\)[ \t]*\\(_.*\\)\\1\\2[ \t]*$/#define \\1 \\3\\1/",
1180     (char*)NULL };
1181
1182 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1183  *
1184  *  Description of Bad_Struct_Term fix
1185  */
1186 tSCC zBad_Struct_TermName[] =
1187      "bad_struct_term";
1188
1189 /*
1190  *  File name selection pattern
1191  */
1192 tSCC zBad_Struct_TermList[] =
1193   "|curses.h|";
1194 /*
1195  *  Machine/OS name selection pattern
1196  */
1197 #define apzBad_Struct_TermMachs (const char**)NULL
1198
1199 /*
1200  *  content selection pattern - do fix if pattern found
1201  */
1202 tSCC zBad_Struct_TermSelect0[] =
1203        "^[ \t]*typedef[ \t]+struct[ \t]+term[ \t]*;";
1204
1205 #define    BAD_STRUCT_TERM_TEST_CT  1
1206 static tTestDesc aBad_Struct_TermTests[] = {
1207   { TT_EGREP,    zBad_Struct_TermSelect0, (regex_t*)NULL }, };
1208
1209 /*
1210  *  Fix Command Arguments for Bad_Struct_Term
1211  */
1212 static const char* apzBad_Struct_TermPatch[] = {
1213     "format",
1214     "struct term;",
1215     (char*)NULL };
1216
1217 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1218  *
1219  *  Description of Badquote fix
1220  */
1221 tSCC zBadquoteName[] =
1222      "badquote";
1223
1224 /*
1225  *  File name selection pattern
1226  */
1227 tSCC zBadquoteList[] =
1228   "|sundev/vuid_event.h|";
1229 /*
1230  *  Machine/OS name selection pattern
1231  */
1232 #define apzBadquoteMachs (const char**)NULL
1233
1234 /*
1235  *  content selection pattern - do fix if pattern found
1236  */
1237 tSCC zBadquoteSelect0[] =
1238        "doesn't";
1239
1240 #define    BADQUOTE_TEST_CT  1
1241 static tTestDesc aBadquoteTests[] = {
1242   { TT_EGREP,    zBadquoteSelect0, (regex_t*)NULL }, };
1243
1244 /*
1245  *  Fix Command Arguments for Badquote
1246  */
1247 static const char* apzBadquotePatch[] = {
1248     "format",
1249     "does not",
1250     (char*)NULL };
1251
1252 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1253  *
1254  *  Description of Broken_Assert_Stdio fix
1255  */
1256 tSCC zBroken_Assert_StdioName[] =
1257      "broken_assert_stdio";
1258
1259 /*
1260  *  File name selection pattern
1261  */
1262 tSCC zBroken_Assert_StdioList[] =
1263   "|assert.h|";
1264 /*
1265  *  Machine/OS name selection pattern
1266  */
1267 #define apzBroken_Assert_StdioMachs (const char**)NULL
1268
1269 /*
1270  *  content selection pattern - do fix if pattern found
1271  */
1272 tSCC zBroken_Assert_StdioSelect0[] =
1273        "stderr";
1274
1275 /*
1276  *  content bypass pattern - skip fix if pattern found
1277  */
1278 tSCC zBroken_Assert_StdioBypass0[] =
1279        "include.*stdio\\.h";
1280
1281 #define    BROKEN_ASSERT_STDIO_TEST_CT  2
1282 static tTestDesc aBroken_Assert_StdioTests[] = {
1283   { TT_NEGREP,   zBroken_Assert_StdioBypass0, (regex_t*)NULL },
1284   { TT_EGREP,    zBroken_Assert_StdioSelect0, (regex_t*)NULL }, };
1285
1286 /*
1287  *  Fix Command Arguments for Broken_Assert_Stdio
1288  */
1289 static const char* apzBroken_Assert_StdioPatch[] = {
1290     "wrap",
1291     "#include <stdio.h>\n",
1292     (char*)NULL };
1293
1294 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1295  *
1296  *  Description of Broken_Assert_Stdlib fix
1297  */
1298 tSCC zBroken_Assert_StdlibName[] =
1299      "broken_assert_stdlib";
1300
1301 /*
1302  *  File name selection pattern
1303  */
1304 tSCC zBroken_Assert_StdlibList[] =
1305   "|assert.h|";
1306 /*
1307  *  Machine/OS name selection pattern
1308  */
1309 #define apzBroken_Assert_StdlibMachs (const char**)NULL
1310
1311 /*
1312  *  content selection pattern - do fix if pattern found
1313  */
1314 tSCC zBroken_Assert_StdlibSelect0[] =
1315        "exit *\\(|abort *\\(";
1316
1317 /*
1318  *  content bypass pattern - skip fix if pattern found
1319  */
1320 tSCC zBroken_Assert_StdlibBypass0[] =
1321        "include.*stdlib\\.h";
1322
1323 #define    BROKEN_ASSERT_STDLIB_TEST_CT  2
1324 static tTestDesc aBroken_Assert_StdlibTests[] = {
1325   { TT_NEGREP,   zBroken_Assert_StdlibBypass0, (regex_t*)NULL },
1326   { TT_EGREP,    zBroken_Assert_StdlibSelect0, (regex_t*)NULL }, };
1327
1328 /*
1329  *  Fix Command Arguments for Broken_Assert_Stdlib
1330  */
1331 static const char* apzBroken_Assert_StdlibPatch[] = {
1332     "wrap",
1333     "#ifdef __cplusplus\n\
1334 #include <stdlib.h>\n\
1335 #endif\n",
1336     (char*)NULL };
1337
1338 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1339  *
1340  *  Description of Broken_Cabs fix
1341  */
1342 tSCC zBroken_CabsName[] =
1343      "broken_cabs";
1344
1345 /*
1346  *  File name selection pattern
1347  */
1348 tSCC zBroken_CabsList[] =
1349   "|math.h|";
1350 /*
1351  *  Machine/OS name selection pattern
1352  */
1353 #define apzBroken_CabsMachs (const char**)NULL
1354
1355 /*
1356  *  content selection pattern - do fix if pattern found
1357  */
1358 tSCC zBroken_CabsSelect0[] =
1359        "^extern[ \\t]+double[ \\t]+cabs";
1360
1361 #define    BROKEN_CABS_TEST_CT  1
1362 static tTestDesc aBroken_CabsTests[] = {
1363   { TT_EGREP,    zBroken_CabsSelect0, (regex_t*)NULL }, };
1364
1365 /*
1366  *  Fix Command Arguments for Broken_Cabs
1367  */
1368 static const char* apzBroken_CabsPatch[] = {
1369     "format",
1370     "",
1371     "^extern[ \t]+double[ \t]+cabs\\((struct dbl_hypot|)\\);",
1372     (char*)NULL };
1373
1374 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1375  *
1376  *  Description of Ctrl_Quotes_Def fix
1377  */
1378 tSCC zCtrl_Quotes_DefName[] =
1379      "ctrl_quotes_def";
1380
1381 /*
1382  *  File name selection pattern
1383  */
1384 #define zCtrl_Quotes_DefList (char*)NULL
1385 /*
1386  *  Machine/OS name selection pattern
1387  */
1388 #define apzCtrl_Quotes_DefMachs (const char**)NULL
1389
1390 /*
1391  *  content selection pattern - do fix if pattern found
1392  */
1393 tSCC zCtrl_Quotes_DefSelect0[] =
1394        "define[ \t]+[A-Z0-9_]+CTRL\\([a-zA-Z][,)]";
1395
1396 #define    CTRL_QUOTES_DEF_TEST_CT  1
1397 static tTestDesc aCtrl_Quotes_DefTests[] = {
1398   { TT_EGREP,    zCtrl_Quotes_DefSelect0, (regex_t*)NULL }, };
1399
1400 /*
1401  *  Fix Command Arguments for Ctrl_Quotes_Def
1402  */
1403 static const char* apzCtrl_Quotes_DefPatch[] = {
1404     "char_macro_def",
1405     "CTRL",
1406     (char*)NULL };
1407
1408 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1409  *
1410  *  Description of Ctrl_Quotes_Use fix
1411  */
1412 tSCC zCtrl_Quotes_UseName[] =
1413      "ctrl_quotes_use";
1414
1415 /*
1416  *  File name selection pattern
1417  */
1418 #define zCtrl_Quotes_UseList (char*)NULL
1419 /*
1420  *  Machine/OS name selection pattern
1421  */
1422 #define apzCtrl_Quotes_UseMachs (const char**)NULL
1423
1424 /*
1425  *  content selection pattern - do fix if pattern found
1426  */
1427 tSCC zCtrl_Quotes_UseSelect0[] =
1428        "define[ \t]+[A-Z0-9_]+[ \t]+[A-Z0-9_]+CTRL[ \t]*\\( *[^,']";
1429
1430 #define    CTRL_QUOTES_USE_TEST_CT  1
1431 static tTestDesc aCtrl_Quotes_UseTests[] = {
1432   { TT_EGREP,    zCtrl_Quotes_UseSelect0, (regex_t*)NULL }, };
1433
1434 /*
1435  *  Fix Command Arguments for Ctrl_Quotes_Use
1436  */
1437 static const char* apzCtrl_Quotes_UsePatch[] = {
1438     "char_macro_use",
1439     "CTRL",
1440     (char*)NULL };
1441
1442 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1443  *
1444  *  Description of Cxx_Unready fix
1445  */
1446 tSCC zCxx_UnreadyName[] =
1447      "cxx_unready";
1448
1449 /*
1450  *  File name selection pattern
1451  */
1452 tSCC zCxx_UnreadyList[] =
1453   "|sys/mman.h|rpc/types.h|";
1454 /*
1455  *  Machine/OS name selection pattern
1456  */
1457 #define apzCxx_UnreadyMachs (const char**)NULL
1458
1459 /*
1460  *  content selection pattern - do fix if pattern found
1461  */
1462 tSCC zCxx_UnreadySelect0[] =
1463        "[^#]+malloc.*;";
1464
1465 /*
1466  *  content bypass pattern - skip fix if pattern found
1467  */
1468 tSCC zCxx_UnreadyBypass0[] =
1469        "\"C\"|__BEGIN_DECLS";
1470
1471 #define    CXX_UNREADY_TEST_CT  2
1472 static tTestDesc aCxx_UnreadyTests[] = {
1473   { TT_NEGREP,   zCxx_UnreadyBypass0, (regex_t*)NULL },
1474   { TT_EGREP,    zCxx_UnreadySelect0, (regex_t*)NULL }, };
1475
1476 /*
1477  *  Fix Command Arguments for Cxx_Unready
1478  */
1479 static const char* apzCxx_UnreadyPatch[] = {
1480     "wrap",
1481     "#ifdef __cplusplus\n\
1482 extern \"C\" {\n\
1483 #endif\n",
1484     "#ifdef __cplusplus\n\
1485 }\n\
1486 #endif\n",
1487     (char*)NULL };
1488
1489 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1490  *
1491  *  Description of Dec_Intern_Asm fix
1492  */
1493 tSCC zDec_Intern_AsmName[] =
1494      "dec_intern_asm";
1495
1496 /*
1497  *  File name selection pattern
1498  */
1499 tSCC zDec_Intern_AsmList[] =
1500   "|c_asm.h|";
1501 /*
1502  *  Machine/OS name selection pattern
1503  */
1504 #define apzDec_Intern_AsmMachs (const char**)NULL
1505 #define DEC_INTERN_ASM_TEST_CT  0
1506 #define aDec_Intern_AsmTests   (tTestDesc*)NULL
1507
1508 /*
1509  *  Fix Command Arguments for Dec_Intern_Asm
1510  */
1511 static const char* apzDec_Intern_AsmPatch[] = { "sed",
1512     "-e", "/^[ \t]*float[ \t]*fasm/i\\\n\
1513 #ifdef __DECC\n",
1514     "-e", "/^[ \t]*#[ \t]*pragma[ \t]*intrinsic([ \t]*dasm/a\\\n\
1515 #endif\n",
1516     (char*)NULL };
1517
1518 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1519  *
1520  *  Description of Djgpp_Wchar_H fix
1521  */
1522 tSCC zDjgpp_Wchar_HName[] =
1523      "djgpp_wchar_h";
1524
1525 /*
1526  *  File name selection pattern
1527  */
1528 #define zDjgpp_Wchar_HList (char*)NULL
1529 /*
1530  *  Machine/OS name selection pattern
1531  */
1532 #define apzDjgpp_Wchar_HMachs (const char**)NULL
1533
1534 /*
1535  *  content selection pattern - do fix if pattern found
1536  */
1537 tSCC zDjgpp_Wchar_HSelect0[] =
1538        "__DJ_wint_t";
1539
1540 /*
1541  *  content bypass pattern - skip fix if pattern found
1542  */
1543 tSCC zDjgpp_Wchar_HBypass0[] =
1544        "sys/djtypes.h";
1545
1546 #define    DJGPP_WCHAR_H_TEST_CT  2
1547 static tTestDesc aDjgpp_Wchar_HTests[] = {
1548   { TT_NEGREP,   zDjgpp_Wchar_HBypass0, (regex_t*)NULL },
1549   { TT_EGREP,    zDjgpp_Wchar_HSelect0, (regex_t*)NULL }, };
1550
1551 /*
1552  *  Fix Command Arguments for Djgpp_Wchar_H
1553  */
1554 static const char* apzDjgpp_Wchar_HPatch[] = {
1555     "format",
1556     "%0\n\
1557 #include <sys/djtypes.h>",
1558     "#include <stddef.h>",
1559     (char*)NULL };
1560
1561 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1562  *
1563  *  Description of Ecd_Cursor fix
1564  */
1565 tSCC zEcd_CursorName[] =
1566      "ecd_cursor";
1567
1568 /*
1569  *  File name selection pattern
1570  */
1571 tSCC zEcd_CursorList[] =
1572   "|sunwindow/win_lock.h|sunwindow/win_cursor.h|";
1573 /*
1574  *  Machine/OS name selection pattern
1575  */
1576 #define apzEcd_CursorMachs (const char**)NULL
1577
1578 /*
1579  *  content selection pattern - do fix if pattern found
1580  */
1581 tSCC zEcd_CursorSelect0[] =
1582        "ecd\\.cursor";
1583
1584 #define    ECD_CURSOR_TEST_CT  1
1585 static tTestDesc aEcd_CursorTests[] = {
1586   { TT_EGREP,    zEcd_CursorSelect0, (regex_t*)NULL }, };
1587
1588 /*
1589  *  Fix Command Arguments for Ecd_Cursor
1590  */
1591 static const char* apzEcd_CursorPatch[] = {
1592     "format",
1593     "ecd_cursor",
1594     (char*)NULL };
1595
1596 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1597  *
1598  *  Description of Fix_Header_Breakage fix
1599  */
1600 tSCC zFix_Header_BreakageName[] =
1601      "fix_header_breakage";
1602
1603 /*
1604  *  File name selection pattern
1605  */
1606 tSCC zFix_Header_BreakageList[] =
1607   "|math.h|";
1608 /*
1609  *  Machine/OS name selection pattern
1610  */
1611 tSCC* apzFix_Header_BreakageMachs[] = {
1612         "m88k-motorola-sysv3*",
1613         (const char*)NULL };
1614
1615 /*
1616  *  content selection pattern - do fix if pattern found
1617  */
1618 tSCC zFix_Header_BreakageSelect0[] =
1619        "extern double floor\\(\\), ceil\\(\\), fmod\\(\\), fabs\\(\\);";
1620
1621 #define    FIX_HEADER_BREAKAGE_TEST_CT  1
1622 static tTestDesc aFix_Header_BreakageTests[] = {
1623   { TT_EGREP,    zFix_Header_BreakageSelect0, (regex_t*)NULL }, };
1624
1625 /*
1626  *  Fix Command Arguments for Fix_Header_Breakage
1627  */
1628 static const char* apzFix_Header_BreakagePatch[] = {
1629     "format",
1630     "extern double floor(), ceil(), fmod(), fabs _PARAMS((double));",
1631     (char*)NULL };
1632
1633 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1634  *
1635  *  Description of Freebsd_Gcc3_Breakage fix
1636  */
1637 tSCC zFreebsd_Gcc3_BreakageName[] =
1638      "freebsd_gcc3_breakage";
1639
1640 /*
1641  *  File name selection pattern
1642  */
1643 tSCC zFreebsd_Gcc3_BreakageList[] =
1644   "|sys/cdefs.h|";
1645 /*
1646  *  Machine/OS name selection pattern
1647  */
1648 tSCC* apzFreebsd_Gcc3_BreakageMachs[] = {
1649         "*-*-freebsd*",
1650         (const char*)NULL };
1651
1652 /*
1653  *  content selection pattern - do fix if pattern found
1654  */
1655 tSCC zFreebsd_Gcc3_BreakageSelect0[] =
1656        "^#if __GNUC__ == 2 && __GNUC_MINOR__ >= 7$";
1657
1658 /*
1659  *  content bypass pattern - skip fix if pattern found
1660  */
1661 tSCC zFreebsd_Gcc3_BreakageBypass0[] =
1662        "__GNUC__[ \\t]*([>=]=[ \\t]*[3-9]|>[ \\t]*2)";
1663
1664 #define    FREEBSD_GCC3_BREAKAGE_TEST_CT  2
1665 static tTestDesc aFreebsd_Gcc3_BreakageTests[] = {
1666   { TT_NEGREP,   zFreebsd_Gcc3_BreakageBypass0, (regex_t*)NULL },
1667   { TT_EGREP,    zFreebsd_Gcc3_BreakageSelect0, (regex_t*)NULL }, };
1668
1669 /*
1670  *  Fix Command Arguments for Freebsd_Gcc3_Breakage
1671  */
1672 static const char* apzFreebsd_Gcc3_BreakagePatch[] = {
1673     "format",
1674     "%0 || __GNUC__ >= 3",
1675     (char*)NULL };
1676
1677 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1678  *
1679  *  Description of Gnu_Types fix
1680  */
1681 tSCC zGnu_TypesName[] =
1682      "gnu_types";
1683
1684 /*
1685  *  File name selection pattern
1686  */
1687 tSCC zGnu_TypesList[] =
1688   "|sys/types.h|stdlib.h|sys/stdtypes.h|stddef.h|memory.h|unistd.h|";
1689 /*
1690  *  Machine/OS name selection pattern
1691  */
1692 #define apzGnu_TypesMachs (const char**)NULL
1693
1694 /*
1695  *  content selection pattern - do fix if pattern found
1696  */
1697 tSCC zGnu_TypesSelect0[] =
1698        "^[ \t]*typedef[ \t]+.*[ \t](ptrdiff|size|wchar)_t;";
1699
1700 /*
1701  *  content bypass pattern - skip fix if pattern found
1702  */
1703 tSCC zGnu_TypesBypass0[] =
1704        "_GCC_(PTRDIFF|SIZE|WCHAR)_T";
1705
1706 #define    GNU_TYPES_TEST_CT  2
1707 static tTestDesc aGnu_TypesTests[] = {
1708   { TT_NEGREP,   zGnu_TypesBypass0, (regex_t*)NULL },
1709   { TT_EGREP,    zGnu_TypesSelect0, (regex_t*)NULL }, };
1710
1711 /*
1712  *  Fix Command Arguments for Gnu_Types
1713  */
1714 static const char* apzGnu_TypesPatch[] = {
1715     "gnu_type",
1716     (char*)NULL };
1717
1718 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1719  *
1720  *  Description of Hp_Inline fix
1721  */
1722 tSCC zHp_InlineName[] =
1723      "hp_inline";
1724
1725 /*
1726  *  File name selection pattern
1727  */
1728 tSCC zHp_InlineList[] =
1729   "|sys/spinlock.h|machine/machparam.h|";
1730 /*
1731  *  Machine/OS name selection pattern
1732  */
1733 #define apzHp_InlineMachs (const char**)NULL
1734
1735 /*
1736  *  content selection pattern - do fix if pattern found
1737  */
1738 tSCC zHp_InlineSelect0[] =
1739        "[ \t]*#[ \t]*include[ \t]+\"\\.\\./machine/";
1740
1741 #define    HP_INLINE_TEST_CT  1
1742 static tTestDesc aHp_InlineTests[] = {
1743   { TT_EGREP,    zHp_InlineSelect0, (regex_t*)NULL }, };
1744
1745 /*
1746  *  Fix Command Arguments for Hp_Inline
1747  */
1748 static const char* apzHp_InlinePatch[] = {
1749     "format",
1750     "%1<machine/%2.h>",
1751     "([ \t]*#[ \t]*include[ \t]+)\"\\.\\./machine/([a-z]+)\\.h\"",
1752     (char*)NULL };
1753
1754 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1755  *
1756  *  Description of Hp_Sysfile fix
1757  */
1758 tSCC zHp_SysfileName[] =
1759      "hp_sysfile";
1760
1761 /*
1762  *  File name selection pattern
1763  */
1764 tSCC zHp_SysfileList[] =
1765   "|sys/file.h|";
1766 /*
1767  *  Machine/OS name selection pattern
1768  */
1769 #define apzHp_SysfileMachs (const char**)NULL
1770
1771 /*
1772  *  content selection pattern - do fix if pattern found
1773  */
1774 tSCC zHp_SysfileSelect0[] =
1775        "HPUX_SOURCE";
1776
1777 #define    HP_SYSFILE_TEST_CT  1
1778 static tTestDesc aHp_SysfileTests[] = {
1779   { TT_EGREP,    zHp_SysfileSelect0, (regex_t*)NULL }, };
1780
1781 /*
1782  *  Fix Command Arguments for Hp_Sysfile
1783  */
1784 static const char* apzHp_SysfilePatch[] = {
1785     "format",
1786     "(struct file *, ...)",
1787     "\\(\\.\\.\\.\\)",
1788     (char*)NULL };
1789
1790 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1791  *
1792  *  Description of Hpux10_Cpp_Pow_Inline fix
1793  */
1794 tSCC zHpux10_Cpp_Pow_InlineName[] =
1795      "hpux10_cpp_pow_inline";
1796
1797 /*
1798  *  File name selection pattern
1799  */
1800 tSCC zHpux10_Cpp_Pow_InlineList[] =
1801   "|fixinc-test-limits.h|math.h|";
1802 /*
1803  *  Machine/OS name selection pattern
1804  */
1805 #define apzHpux10_Cpp_Pow_InlineMachs (const char**)NULL
1806
1807 /*
1808  *  content selection pattern - do fix if pattern found
1809  */
1810 tSCC zHpux10_Cpp_Pow_InlineSelect0[] =
1811        "^# +ifdef +__cplusplus\n\
1812  +}\n\
1813  +inline +double +pow\\(double +__d,int +__expon\\) +{\n\
1814 [ \t]+return +pow\\(__d,\\(double\\)__expon\\);\n\
1815  +}\n\
1816  +extern +\"C\" +{\n\
1817 #else\n\
1818 # +endif";
1819
1820 #define    HPUX10_CPP_POW_INLINE_TEST_CT  1
1821 static tTestDesc aHpux10_Cpp_Pow_InlineTests[] = {
1822   { TT_EGREP,    zHpux10_Cpp_Pow_InlineSelect0, (regex_t*)NULL }, };
1823
1824 /*
1825  *  Fix Command Arguments for Hpux10_Cpp_Pow_Inline
1826  */
1827 static const char* apzHpux10_Cpp_Pow_InlinePatch[] = {
1828     "format",
1829     "",
1830     (char*)NULL };
1831
1832 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1833  *
1834  *  Description of Hpux11_Cpp_Pow_Inline fix
1835  */
1836 tSCC zHpux11_Cpp_Pow_InlineName[] =
1837      "hpux11_cpp_pow_inline";
1838
1839 /*
1840  *  File name selection pattern
1841  */
1842 tSCC zHpux11_Cpp_Pow_InlineList[] =
1843   "|math.h|";
1844 /*
1845  *  Machine/OS name selection pattern
1846  */
1847 #define apzHpux11_Cpp_Pow_InlineMachs (const char**)NULL
1848
1849 /*
1850  *  content selection pattern - do fix if pattern found
1851  */
1852 tSCC zHpux11_Cpp_Pow_InlineSelect0[] =
1853        " +inline double pow\\(double d,int expon\\) {\n\
1854  +return pow\\(d, \\(double\\)expon\\);\n\
1855  +}\n";
1856
1857 #define    HPUX11_CPP_POW_INLINE_TEST_CT  1
1858 static tTestDesc aHpux11_Cpp_Pow_InlineTests[] = {
1859   { TT_EGREP,    zHpux11_Cpp_Pow_InlineSelect0, (regex_t*)NULL }, };
1860
1861 /*
1862  *  Fix Command Arguments for Hpux11_Cpp_Pow_Inline
1863  */
1864 static const char* apzHpux11_Cpp_Pow_InlinePatch[] = {
1865     "format",
1866     "",
1867     (char*)NULL };
1868
1869 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1870  *
1871  *  Description of Hpux11_Fabsf fix
1872  */
1873 tSCC zHpux11_FabsfName[] =
1874      "hpux11_fabsf";
1875
1876 /*
1877  *  File name selection pattern
1878  */
1879 tSCC zHpux11_FabsfList[] =
1880   "|math.h|";
1881 /*
1882  *  Machine/OS name selection pattern
1883  */
1884 #define apzHpux11_FabsfMachs (const char**)NULL
1885
1886 /*
1887  *  content selection pattern - do fix if pattern found
1888  */
1889 tSCC zHpux11_FabsfSelect0[] =
1890        "^[ \t]*#[ \t]*define[ \t]+fabsf\\(.*";
1891
1892 /*
1893  *  content bypass pattern - skip fix if pattern found
1894  */
1895 tSCC zHpux11_FabsfBypass0[] =
1896        "__cplusplus";
1897
1898 #define    HPUX11_FABSF_TEST_CT  2
1899 static tTestDesc aHpux11_FabsfTests[] = {
1900   { TT_NEGREP,   zHpux11_FabsfBypass0, (regex_t*)NULL },
1901   { TT_EGREP,    zHpux11_FabsfSelect0, (regex_t*)NULL }, };
1902
1903 /*
1904  *  Fix Command Arguments for Hpux11_Fabsf
1905  */
1906 static const char* apzHpux11_FabsfPatch[] = {
1907     "format",
1908     "#ifndef __cplusplus\n\
1909 %0\n\
1910 #endif",
1911     (char*)NULL };
1912
1913 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1914  *
1915  *  Description of Hpux11_Abs fix
1916  */
1917 tSCC zHpux11_AbsName[] =
1918      "hpux11_abs";
1919
1920 /*
1921  *  File name selection pattern
1922  */
1923 tSCC zHpux11_AbsList[] =
1924   "|stdlib.h|";
1925 /*
1926  *  Machine/OS name selection pattern
1927  */
1928 tSCC* apzHpux11_AbsMachs[] = {
1929         "ia64-hp-hpux11*",
1930         (const char*)NULL };
1931
1932 /*
1933  *  content selection pattern - do fix if pattern found
1934  */
1935 tSCC zHpux11_AbsSelect0[] =
1936        "ifndef _MATH_INCLUDED";
1937
1938 #define    HPUX11_ABS_TEST_CT  1
1939 static tTestDesc aHpux11_AbsTests[] = {
1940   { TT_EGREP,    zHpux11_AbsSelect0, (regex_t*)NULL }, };
1941
1942 /*
1943  *  Fix Command Arguments for Hpux11_Abs
1944  */
1945 static const char* apzHpux11_AbsPatch[] = {
1946     "format",
1947     "if !defined(_MATH_INCLUDED) || defined(__GNUG__)",
1948     (char*)NULL };
1949
1950 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1951  *
1952  *  Description of Hpux11_Size_T fix
1953  */
1954 tSCC zHpux11_Size_TName[] =
1955      "hpux11_size_t";
1956
1957 /*
1958  *  File name selection pattern
1959  */
1960 #define zHpux11_Size_TList (char*)NULL
1961 /*
1962  *  Machine/OS name selection pattern
1963  */
1964 tSCC* apzHpux11_Size_TMachs[] = {
1965         "*-hp-hpux11*",
1966         (const char*)NULL };
1967
1968 /*
1969  *  content selection pattern - do fix if pattern found
1970  */
1971 tSCC zHpux11_Size_TSelect0[] =
1972        "__size_t";
1973
1974 #define    HPUX11_SIZE_T_TEST_CT  1
1975 static tTestDesc aHpux11_Size_TTests[] = {
1976   { TT_EGREP,    zHpux11_Size_TSelect0, (regex_t*)NULL }, };
1977
1978 /*
1979  *  Fix Command Arguments for Hpux11_Size_T
1980  */
1981 static const char* apzHpux11_Size_TPatch[] = {
1982     "format",
1983     "_hpux_size_t",
1984     (char*)NULL };
1985
1986 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1987  *
1988  *  Description of Hpux11_Uint32_C fix
1989  */
1990 tSCC zHpux11_Uint32_CName[] =
1991      "hpux11_uint32_c";
1992
1993 /*
1994  *  File name selection pattern
1995  */
1996 tSCC zHpux11_Uint32_CList[] =
1997   "|inttypes.h|";
1998 /*
1999  *  Machine/OS name selection pattern
2000  */
2001 #define apzHpux11_Uint32_CMachs (const char**)NULL
2002
2003 /*
2004  *  content selection pattern - do fix if pattern found
2005  */
2006 tSCC zHpux11_Uint32_CSelect0[] =
2007        "^#define UINT32_C\\(__c\\)[ \t]*__CONCAT__\\(__CONCAT_U__\\(__c\\),l\\)";
2008
2009 #define    HPUX11_UINT32_C_TEST_CT  1
2010 static tTestDesc aHpux11_Uint32_CTests[] = {
2011   { TT_EGREP,    zHpux11_Uint32_CSelect0, (regex_t*)NULL }, };
2012
2013 /*
2014  *  Fix Command Arguments for Hpux11_Uint32_C
2015  */
2016 static const char* apzHpux11_Uint32_CPatch[] = {
2017     "format",
2018     "#define UINT32_C(__c) __CONCAT__(__c,ul)",
2019     (char*)NULL };
2020
2021 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2022  *
2023  *  Description of Hpux11_Vsnprintf fix
2024  */
2025 tSCC zHpux11_VsnprintfName[] =
2026      "hpux11_vsnprintf";
2027
2028 /*
2029  *  File name selection pattern
2030  */
2031 tSCC zHpux11_VsnprintfList[] =
2032   "|stdio.h|";
2033 /*
2034  *  Machine/OS name selection pattern
2035  */
2036 #define apzHpux11_VsnprintfMachs (const char**)NULL
2037
2038 /*
2039  *  content selection pattern - do fix if pattern found
2040  */
2041 tSCC zHpux11_VsnprintfSelect0[] =
2042        "(extern int vsnprintf\\(char \\*, _[hpux]*_size_t, const char \\*,) __va__list\\);";
2043
2044 #define    HPUX11_VSNPRINTF_TEST_CT  1
2045 static tTestDesc aHpux11_VsnprintfTests[] = {
2046   { TT_EGREP,    zHpux11_VsnprintfSelect0, (regex_t*)NULL }, };
2047
2048 /*
2049  *  Fix Command Arguments for Hpux11_Vsnprintf
2050  */
2051 static const char* apzHpux11_VsnprintfPatch[] = {
2052     "format",
2053     "%1 __va_list);",
2054     (char*)NULL };
2055
2056 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2057  *
2058  *  Description of Hpux8_Bogus_Inlines fix
2059  */
2060 tSCC zHpux8_Bogus_InlinesName[] =
2061      "hpux8_bogus_inlines";
2062
2063 /*
2064  *  File name selection pattern
2065  */
2066 tSCC zHpux8_Bogus_InlinesList[] =
2067   "|math.h|";
2068 /*
2069  *  Machine/OS name selection pattern
2070  */
2071 #define apzHpux8_Bogus_InlinesMachs (const char**)NULL
2072
2073 /*
2074  *  content selection pattern - do fix if pattern found
2075  */
2076 tSCC zHpux8_Bogus_InlinesSelect0[] =
2077        "inline";
2078
2079 #define    HPUX8_BOGUS_INLINES_TEST_CT  1
2080 static tTestDesc aHpux8_Bogus_InlinesTests[] = {
2081   { TT_EGREP,    zHpux8_Bogus_InlinesSelect0, (regex_t*)NULL }, };
2082
2083 /*
2084  *  Fix Command Arguments for Hpux8_Bogus_Inlines
2085  */
2086 static const char* apzHpux8_Bogus_InlinesPatch[] = { "sed",
2087     "-e", "s@inline int abs(int [a-z][a-z]*) {.*}@extern \"C\" int abs(int);@",
2088     "-e", "s@inline double abs(double [a-z][a-z]*) {.*}@@",
2089     "-e", "s@inline int sqr(int [a-z][a-z]*) {.*}@@",
2090     "-e", "s@inline double sqr(double [a-z][a-z]*) {.*}@@",
2091     (char*)NULL };
2092
2093 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2094  *
2095  *  Description of Hpux_Maxint fix
2096  */
2097 tSCC zHpux_MaxintName[] =
2098      "hpux_maxint";
2099
2100 /*
2101  *  File name selection pattern
2102  */
2103 tSCC zHpux_MaxintList[] =
2104   "|sys/param.h|values.h|";
2105 /*
2106  *  Machine/OS name selection pattern
2107  */
2108 #define apzHpux_MaxintMachs (const char**)NULL
2109
2110 /*
2111  *  content selection pattern - do fix if pattern found
2112  */
2113 tSCC zHpux_MaxintSelect0[] =
2114        "^#[ \t]*define[ \t]+MAXINT[ \t]";
2115
2116 /*
2117  *  content bypass pattern - skip fix if pattern found
2118  */
2119 tSCC zHpux_MaxintBypass0[] =
2120        "^#[ \t]*ifndef[ \t]+MAXINT";
2121
2122 /*
2123  *  perform the 'test' shell command - do fix on success
2124  */
2125 tSCC zHpux_MaxintTest0[] =
2126        "-n \"`egrep '#[ \t]*define[ \t]+MAXINT[ \t]' sys/param.h`\"";
2127
2128 #define    HPUX_MAXINT_TEST_CT  3
2129 static tTestDesc aHpux_MaxintTests[] = {
2130   { TT_TEST,     zHpux_MaxintTest0,   0 /* unused */ },
2131   { TT_NEGREP,   zHpux_MaxintBypass0, (regex_t*)NULL },
2132   { TT_EGREP,    zHpux_MaxintSelect0, (regex_t*)NULL }, };
2133
2134 /*
2135  *  Fix Command Arguments for Hpux_Maxint
2136  */
2137 static const char* apzHpux_MaxintPatch[] = {
2138     "format",
2139     "#ifndef MAXINT\n\
2140 %0\n\
2141 #endif",
2142     "^#[ \t]*define[ \t]+MAXINT[ \t].*",
2143     (char*)NULL };
2144
2145 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2146  *
2147  *  Description of Hpux_Systime fix
2148  */
2149 tSCC zHpux_SystimeName[] =
2150      "hpux_systime";
2151
2152 /*
2153  *  File name selection pattern
2154  */
2155 tSCC zHpux_SystimeList[] =
2156   "|sys/time.h|";
2157 /*
2158  *  Machine/OS name selection pattern
2159  */
2160 #define apzHpux_SystimeMachs (const char**)NULL
2161
2162 /*
2163  *  content selection pattern - do fix if pattern found
2164  */
2165 tSCC zHpux_SystimeSelect0[] =
2166        "^extern struct sigevent;";
2167
2168 #define    HPUX_SYSTIME_TEST_CT  1
2169 static tTestDesc aHpux_SystimeTests[] = {
2170   { TT_EGREP,    zHpux_SystimeSelect0, (regex_t*)NULL }, };
2171
2172 /*
2173  *  Fix Command Arguments for Hpux_Systime
2174  */
2175 static const char* apzHpux_SystimePatch[] = {
2176     "format",
2177     "struct sigevent;",
2178     (char*)NULL };
2179
2180 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2181  *
2182  *  Description of Int_Abort_Free_And_Exit fix
2183  */
2184 tSCC zInt_Abort_Free_And_ExitName[] =
2185      "int_abort_free_and_exit";
2186
2187 /*
2188  *  File name selection pattern
2189  */
2190 tSCC zInt_Abort_Free_And_ExitList[] =
2191   "|stdlib.h|";
2192 /*
2193  *  Machine/OS name selection pattern
2194  */
2195 #define apzInt_Abort_Free_And_ExitMachs (const char**)NULL
2196
2197 /*
2198  *  content selection pattern - do fix if pattern found
2199  */
2200 tSCC zInt_Abort_Free_And_ExitSelect0[] =
2201        "int[ \t]+(abort|free|exit)[ \t]*\\(";
2202
2203 #define    INT_ABORT_FREE_AND_EXIT_TEST_CT  1
2204 static tTestDesc aInt_Abort_Free_And_ExitTests[] = {
2205   { TT_EGREP,    zInt_Abort_Free_And_ExitSelect0, (regex_t*)NULL }, };
2206
2207 /*
2208  *  Fix Command Arguments for Int_Abort_Free_And_Exit
2209  */
2210 static const char* apzInt_Abort_Free_And_ExitPatch[] = {
2211     "format",
2212     "void\t%1(",
2213     (char*)NULL };
2214
2215 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2216  *
2217  *  Description of Io_Quotes_Def fix
2218  */
2219 tSCC zIo_Quotes_DefName[] =
2220      "io_quotes_def";
2221
2222 /*
2223  *  File name selection pattern
2224  */
2225 #define zIo_Quotes_DefList (char*)NULL
2226 /*
2227  *  Machine/OS name selection pattern
2228  */
2229 #define apzIo_Quotes_DefMachs (const char**)NULL
2230
2231 /*
2232  *  content selection pattern - do fix if pattern found
2233  */
2234 tSCC zIo_Quotes_DefSelect0[] =
2235        "define[ \t]+[A-Z0-9_]+IO[A-Z]*\\([a-zA-Z][,)]";
2236
2237 #define    IO_QUOTES_DEF_TEST_CT  1
2238 static tTestDesc aIo_Quotes_DefTests[] = {
2239   { TT_EGREP,    zIo_Quotes_DefSelect0, (regex_t*)NULL }, };
2240
2241 /*
2242  *  Fix Command Arguments for Io_Quotes_Def
2243  */
2244 static const char* apzIo_Quotes_DefPatch[] = {
2245     "char_macro_def",
2246     "IO",
2247     (char*)NULL };
2248
2249 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2250  *
2251  *  Description of Io_Quotes_Use fix
2252  */
2253 tSCC zIo_Quotes_UseName[] =
2254      "io_quotes_use";
2255
2256 /*
2257  *  File name selection pattern
2258  */
2259 #define zIo_Quotes_UseList (char*)NULL
2260 /*
2261  *  Machine/OS name selection pattern
2262  */
2263 #define apzIo_Quotes_UseMachs (const char**)NULL
2264
2265 /*
2266  *  content selection pattern - do fix if pattern found
2267  */
2268 tSCC zIo_Quotes_UseSelect0[] =
2269        "define[ \t]+[A-Z0-9_]+[ \t]+[A-Z0-9_]+IO[A-Z]*[ \t]*\\( *[^,']";
2270
2271 #define    IO_QUOTES_USE_TEST_CT  1
2272 static tTestDesc aIo_Quotes_UseTests[] = {
2273   { TT_EGREP,    zIo_Quotes_UseSelect0, (regex_t*)NULL }, };
2274
2275 /*
2276  *  Fix Command Arguments for Io_Quotes_Use
2277  */
2278 static const char* apzIo_Quotes_UsePatch[] = {
2279     "char_macro_use",
2280     "IO",
2281     (char*)NULL };
2282
2283 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2284  *
2285  *  Description of Ip_Missing_Semi fix
2286  */
2287 tSCC zIp_Missing_SemiName[] =
2288      "ip_missing_semi";
2289
2290 /*
2291  *  File name selection pattern
2292  */
2293 tSCC zIp_Missing_SemiList[] =
2294   "|netinet/ip.h|";
2295 /*
2296  *  Machine/OS name selection pattern
2297  */
2298 #define apzIp_Missing_SemiMachs (const char**)NULL
2299
2300 /*
2301  *  content selection pattern - do fix if pattern found
2302  */
2303 tSCC zIp_Missing_SemiSelect0[] =
2304        "}$";
2305
2306 #define    IP_MISSING_SEMI_TEST_CT  1
2307 static tTestDesc aIp_Missing_SemiTests[] = {
2308   { TT_EGREP,    zIp_Missing_SemiSelect0, (regex_t*)NULL }, };
2309
2310 /*
2311  *  Fix Command Arguments for Ip_Missing_Semi
2312  */
2313 static const char* apzIp_Missing_SemiPatch[] = { "sed",
2314     "-e", "/^struct/,/^};/s/}$/};/",
2315     (char*)NULL };
2316
2317 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2318  *
2319  *  Description of Irix_Asm_Apostrophe fix
2320  */
2321 tSCC zIrix_Asm_ApostropheName[] =
2322      "irix_asm_apostrophe";
2323
2324 /*
2325  *  File name selection pattern
2326  */
2327 tSCC zIrix_Asm_ApostropheList[] =
2328   "|sys/asm.h|";
2329 /*
2330  *  Machine/OS name selection pattern
2331  */
2332 #define apzIrix_Asm_ApostropheMachs (const char**)NULL
2333
2334 /*
2335  *  content selection pattern - do fix if pattern found
2336  */
2337 tSCC zIrix_Asm_ApostropheSelect0[] =
2338        "^[ \t]*#.*[Ww]e're";
2339
2340 #define    IRIX_ASM_APOSTROPHE_TEST_CT  1
2341 static tTestDesc aIrix_Asm_ApostropheTests[] = {
2342   { TT_EGREP,    zIrix_Asm_ApostropheSelect0, (regex_t*)NULL }, };
2343
2344 /*
2345  *  Fix Command Arguments for Irix_Asm_Apostrophe
2346  */
2347 static const char* apzIrix_Asm_ApostrophePatch[] = {
2348     "format",
2349     "%1 are",
2350     "^([ \t]*#.*[Ww]e)'re",
2351     (char*)NULL };
2352
2353 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2354  *
2355  *  Description of Irix_Limits_Const fix
2356  */
2357 tSCC zIrix_Limits_ConstName[] =
2358      "irix_limits_const";
2359
2360 /*
2361  *  File name selection pattern
2362  */
2363 tSCC zIrix_Limits_ConstList[] =
2364   "|fixinc-test-limits.h|limits.h|";
2365 /*
2366  *  Machine/OS name selection pattern
2367  */
2368 #define apzIrix_Limits_ConstMachs (const char**)NULL
2369
2370 /*
2371  *  content selection pattern - do fix if pattern found
2372  */
2373 tSCC zIrix_Limits_ConstSelect0[] =
2374        "^extern const ";
2375
2376 #define    IRIX_LIMITS_CONST_TEST_CT  1
2377 static tTestDesc aIrix_Limits_ConstTests[] = {
2378   { TT_EGREP,    zIrix_Limits_ConstSelect0, (regex_t*)NULL }, };
2379
2380 /*
2381  *  Fix Command Arguments for Irix_Limits_Const
2382  */
2383 static const char* apzIrix_Limits_ConstPatch[] = {
2384     "format",
2385     "extern __const ",
2386     (char*)NULL };
2387
2388 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2389  *
2390  *  Description of Irix_Stdio_Va_List fix
2391  */
2392 tSCC zIrix_Stdio_Va_ListName[] =
2393      "irix_stdio_va_list";
2394
2395 /*
2396  *  File name selection pattern
2397  */
2398 tSCC zIrix_Stdio_Va_ListList[] =
2399   "|stdio.h|";
2400 /*
2401  *  Machine/OS name selection pattern
2402  */
2403 #define apzIrix_Stdio_Va_ListMachs (const char**)NULL
2404
2405 /*
2406  *  content selection pattern - do fix if pattern found
2407  */
2408 tSCC zIrix_Stdio_Va_ListSelect0[] =
2409        "(printf\\(.*), /\\* va_list \\*/ char \\*";
2410
2411 #define    IRIX_STDIO_VA_LIST_TEST_CT  1
2412 static tTestDesc aIrix_Stdio_Va_ListTests[] = {
2413   { TT_EGREP,    zIrix_Stdio_Va_ListSelect0, (regex_t*)NULL }, };
2414
2415 /*
2416  *  Fix Command Arguments for Irix_Stdio_Va_List
2417  */
2418 static const char* apzIrix_Stdio_Va_ListPatch[] = {
2419     "format",
2420     "%1, __gnuc_va_list",
2421     (char*)NULL };
2422
2423 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2424  *
2425  *  Description of Isc_Fmod fix
2426  */
2427 tSCC zIsc_FmodName[] =
2428      "isc_fmod";
2429
2430 /*
2431  *  File name selection pattern
2432  */
2433 tSCC zIsc_FmodList[] =
2434   "|math.h|";
2435 /*
2436  *  Machine/OS name selection pattern
2437  */
2438 #define apzIsc_FmodMachs (const char**)NULL
2439
2440 /*
2441  *  content selection pattern - do fix if pattern found
2442  */
2443 tSCC zIsc_FmodSelect0[] =
2444        "fmod\\(double\\)";
2445
2446 #define    ISC_FMOD_TEST_CT  1
2447 static tTestDesc aIsc_FmodTests[] = {
2448   { TT_EGREP,    zIsc_FmodSelect0, (regex_t*)NULL }, };
2449
2450 /*
2451  *  Fix Command Arguments for Isc_Fmod
2452  */
2453 static const char* apzIsc_FmodPatch[] = {
2454     "format",
2455     "fmod(double, double)",
2456     (char*)NULL };
2457
2458 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2459  *
2460  *  Description of Isc_Omits_With_Stdc fix
2461  */
2462 tSCC zIsc_Omits_With_StdcName[] =
2463      "isc_omits_with_stdc";
2464
2465 /*
2466  *  File name selection pattern
2467  */
2468 tSCC zIsc_Omits_With_StdcList[] =
2469   "|stdio.h|math.h|ctype.h|sys/limits.h|sys/fcntl.h|sys/dirent.h|";
2470 /*
2471  *  Machine/OS name selection pattern
2472  */
2473 #define apzIsc_Omits_With_StdcMachs (const char**)NULL
2474
2475 /*
2476  *  content selection pattern - do fix if pattern found
2477  */
2478 tSCC zIsc_Omits_With_StdcSelect0[] =
2479        "!defined\\(__STDC__\\) && !defined\\(_POSIX_SOURCE\\)";
2480
2481 #define    ISC_OMITS_WITH_STDC_TEST_CT  1
2482 static tTestDesc aIsc_Omits_With_StdcTests[] = {
2483   { TT_EGREP,    zIsc_Omits_With_StdcSelect0, (regex_t*)NULL }, };
2484
2485 /*
2486  *  Fix Command Arguments for Isc_Omits_With_Stdc
2487  */
2488 static const char* apzIsc_Omits_With_StdcPatch[] = {
2489     "format",
2490     "!defined(_POSIX_SOURCE)",
2491     (char*)NULL };
2492
2493 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2494  *
2495  *  Description of Kandr_Concat fix
2496  */
2497 tSCC zKandr_ConcatName[] =
2498      "kandr_concat";
2499
2500 /*
2501  *  File name selection pattern
2502  */
2503 tSCC zKandr_ConcatList[] =
2504   "|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|";
2505 /*
2506  *  Machine/OS name selection pattern
2507  */
2508 #define apzKandr_ConcatMachs (const char**)NULL
2509
2510 /*
2511  *  content selection pattern - do fix if pattern found
2512  */
2513 tSCC zKandr_ConcatSelect0[] =
2514        "/\\*\\*/";
2515
2516 #define    KANDR_CONCAT_TEST_CT  1
2517 static tTestDesc aKandr_ConcatTests[] = {
2518   { TT_EGREP,    zKandr_ConcatSelect0, (regex_t*)NULL }, };
2519
2520 /*
2521  *  Fix Command Arguments for Kandr_Concat
2522  */
2523 static const char* apzKandr_ConcatPatch[] = {
2524     "format",
2525     "##",
2526     (char*)NULL };
2527
2528 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2529  *
2530  *  Description of Libc1_Ifdefd_Memx fix
2531  */
2532 tSCC zLibc1_Ifdefd_MemxName[] =
2533      "libc1_ifdefd_memx";
2534
2535 /*
2536  *  File name selection pattern
2537  */
2538 tSCC zLibc1_Ifdefd_MemxList[] =
2539   "|testing.h|string.h|";
2540 /*
2541  *  Machine/OS name selection pattern
2542  */
2543 #define apzLibc1_Ifdefd_MemxMachs (const char**)NULL
2544
2545 /*
2546  *  content selection pattern - do fix if pattern found
2547  */
2548 tSCC zLibc1_Ifdefd_MemxSelect0[] =
2549        "' is a built-in function for gcc 2\\.x\\. \\*/";
2550
2551 /*
2552  *  content bypass pattern - skip fix if pattern found
2553  */
2554 tSCC zLibc1_Ifdefd_MemxBypass0[] =
2555        "__cplusplus";
2556
2557 #define    LIBC1_IFDEFD_MEMX_TEST_CT  2
2558 static tTestDesc aLibc1_Ifdefd_MemxTests[] = {
2559   { TT_NEGREP,   zLibc1_Ifdefd_MemxBypass0, (regex_t*)NULL },
2560   { TT_EGREP,    zLibc1_Ifdefd_MemxSelect0, (regex_t*)NULL }, };
2561
2562 /*
2563  *  Fix Command Arguments for Libc1_Ifdefd_Memx
2564  */
2565 static const char* apzLibc1_Ifdefd_MemxPatch[] = {
2566     "format",
2567     "%1",
2568     "/\\* `mem...' is a built-in function for gcc 2\\.x\\. \\*/\n\
2569 #if defined\\(__STDC__\\) && __GNUC__ < 2\n\
2570 (/\\* .* \\*/\n\
2571 extern [a-z_]+ mem.*(\n\
2572 [^#].*)*;)\n\
2573 #endif",
2574     (char*)NULL };
2575
2576 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2577  *
2578  *  Description of Limits_Ifndefs fix
2579  */
2580 tSCC zLimits_IfndefsName[] =
2581      "limits_ifndefs";
2582
2583 /*
2584  *  File name selection pattern
2585  */
2586 tSCC zLimits_IfndefsList[] =
2587   "|sys/limits.h|limits.h|";
2588 /*
2589  *  Machine/OS name selection pattern
2590  */
2591 #define apzLimits_IfndefsMachs (const char**)NULL
2592
2593 /*
2594  *  content bypass pattern - skip fix if pattern found
2595  */
2596 tSCC zLimits_IfndefsBypass0[] =
2597        "ifndef[ \t]+FLT_MIN";
2598
2599 #define    LIMITS_IFNDEFS_TEST_CT  1
2600 static tTestDesc aLimits_IfndefsTests[] = {
2601   { TT_NEGREP,   zLimits_IfndefsBypass0, (regex_t*)NULL }, };
2602
2603 /*
2604  *  Fix Command Arguments for Limits_Ifndefs
2605  */
2606 static const char* apzLimits_IfndefsPatch[] = {
2607     "format",
2608     "#ifndef %1\n\
2609 %0\n\
2610 #endif",
2611     "^[ \t]*#[ \t]*define[ \t]+((FLT|DBL)_(MIN|MAX|DIG))[ \t].*",
2612     (char*)NULL };
2613
2614 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2615  *
2616  *  Description of Lynx_Void_Int fix
2617  */
2618 tSCC zLynx_Void_IntName[] =
2619      "lynx_void_int";
2620
2621 /*
2622  *  File name selection pattern
2623  */
2624 tSCC zLynx_Void_IntList[] =
2625   "|curses.h|";
2626 /*
2627  *  Machine/OS name selection pattern
2628  */
2629 #define apzLynx_Void_IntMachs (const char**)NULL
2630
2631 /*
2632  *  content selection pattern - do fix if pattern found
2633  */
2634 tSCC zLynx_Void_IntSelect0[] =
2635        "#[ \t]*define[ \t]+void[ \t]+int[ \t]*";
2636
2637 #define    LYNX_VOID_INT_TEST_CT  1
2638 static tTestDesc aLynx_Void_IntTests[] = {
2639   { TT_EGREP,    zLynx_Void_IntSelect0, (regex_t*)NULL }, };
2640
2641 /*
2642  *  Fix Command Arguments for Lynx_Void_Int
2643  */
2644 static const char* apzLynx_Void_IntPatch[] = {
2645     "format",
2646     "",
2647     (char*)NULL };
2648
2649 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2650  *
2651  *  Description of Lynxos_Fcntl_Proto fix
2652  */
2653 tSCC zLynxos_Fcntl_ProtoName[] =
2654      "lynxos_fcntl_proto";
2655
2656 /*
2657  *  File name selection pattern
2658  */
2659 tSCC zLynxos_Fcntl_ProtoList[] =
2660   "|fcntl.h|";
2661 /*
2662  *  Machine/OS name selection pattern
2663  */
2664 #define apzLynxos_Fcntl_ProtoMachs (const char**)NULL
2665
2666 /*
2667  *  content selection pattern - do fix if pattern found
2668  */
2669 tSCC zLynxos_Fcntl_ProtoSelect0[] =
2670        "fcntl[ \t]*\\(int, int, int\\)";
2671
2672 #define    LYNXOS_FCNTL_PROTO_TEST_CT  1
2673 static tTestDesc aLynxos_Fcntl_ProtoTests[] = {
2674   { TT_EGREP,    zLynxos_Fcntl_ProtoSelect0, (regex_t*)NULL }, };
2675
2676 /*
2677  *  Fix Command Arguments for Lynxos_Fcntl_Proto
2678  */
2679 static const char* apzLynxos_Fcntl_ProtoPatch[] = {
2680     "format",
2681     "%1...)",
2682     "(fcntl[ \t]*\\(int, int, )int\\)",
2683     (char*)NULL };
2684
2685 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2686  *
2687  *  Description of M88k_Bad_Hypot_Opt fix
2688  */
2689 tSCC zM88k_Bad_Hypot_OptName[] =
2690      "m88k_bad_hypot_opt";
2691
2692 /*
2693  *  File name selection pattern
2694  */
2695 tSCC zM88k_Bad_Hypot_OptList[] =
2696   "|math.h|";
2697 /*
2698  *  Machine/OS name selection pattern
2699  */
2700 tSCC* apzM88k_Bad_Hypot_OptMachs[] = {
2701         "m88k-motorola-sysv3*",
2702         (const char*)NULL };
2703
2704 /*
2705  *  content selection pattern - do fix if pattern found
2706  */
2707 tSCC zM88k_Bad_Hypot_OptSelect0[] =
2708        "^extern double hypot\\(\\);\n";
2709
2710 #define    M88K_BAD_HYPOT_OPT_TEST_CT  1
2711 static tTestDesc aM88k_Bad_Hypot_OptTests[] = {
2712   { TT_EGREP,    zM88k_Bad_Hypot_OptSelect0, (regex_t*)NULL }, };
2713
2714 /*
2715  *  Fix Command Arguments for M88k_Bad_Hypot_Opt
2716  */
2717 static const char* apzM88k_Bad_Hypot_OptPatch[] = {
2718     "format",
2719     "%0/* Workaround a stupid Motorola optimization if one\n\
2720    of x or y is 0.0 and the other is negative!  */\n\
2721 #ifdef __STDC__\n\
2722 static __inline__ double fake_hypot (double x, double y)\n\
2723 #else\n\
2724 static __inline__ double fake_hypot (x, y)\n\
2725 \tdouble x, y;\n\
2726 #endif\n\
2727 {\n\
2728 \treturn fabs (hypot (x, y));\n\
2729 }\n\
2730 #define hypot\tfake_hypot\n",
2731     (char*)NULL };
2732
2733 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2734  *
2735  *  Description of M88k_Bad_S_If fix
2736  */
2737 tSCC zM88k_Bad_S_IfName[] =
2738      "m88k_bad_s_if";
2739
2740 /*
2741  *  File name selection pattern
2742  */
2743 tSCC zM88k_Bad_S_IfList[] =
2744   "|sys/stat.h|";
2745 /*
2746  *  Machine/OS name selection pattern
2747  */
2748 tSCC* apzM88k_Bad_S_IfMachs[] = {
2749         "m88k-*-sysv3*",
2750         (const char*)NULL };
2751
2752 /*
2753  *  content selection pattern - do fix if pattern found
2754  */
2755 tSCC zM88k_Bad_S_IfSelect0[] =
2756        "#define[ \t]+S_IS[A-Z]+\\(m\\)[ \t]+\\(m[ \t]*&";
2757
2758 #define    M88K_BAD_S_IF_TEST_CT  1
2759 static tTestDesc aM88k_Bad_S_IfTests[] = {
2760   { TT_EGREP,    zM88k_Bad_S_IfSelect0, (regex_t*)NULL }, };
2761
2762 /*
2763  *  Fix Command Arguments for M88k_Bad_S_If
2764  */
2765 static const char* apzM88k_Bad_S_IfPatch[] = {
2766     "format",
2767     "#define %1(m) (((m) & S_IFMT) == %2)",
2768     "#define[ \t]+(S_IS[A-Z]+)\\(m\\)[ \t]+\\(m[ \t]*&[ \t]*(S_IF[A-Z][A-Z][A-Z]+|0[0-9]+)[ \t]*\\)",
2769     (char*)NULL };
2770
2771 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2772  *
2773  *  Description of M88k_Multi_Incl fix
2774  */
2775 tSCC zM88k_Multi_InclName[] =
2776      "m88k_multi_incl";
2777
2778 /*
2779  *  File name selection pattern
2780  */
2781 tSCC zM88k_Multi_InclList[] =
2782   "|time.h|";
2783 /*
2784  *  Machine/OS name selection pattern
2785  */
2786 tSCC* apzM88k_Multi_InclMachs[] = {
2787         "m88k-tektronix-sysv3*",
2788         (const char*)NULL };
2789
2790 /*
2791  *  content bypass pattern - skip fix if pattern found
2792  */
2793 tSCC zM88k_Multi_InclBypass0[] =
2794        "#ifndef";
2795
2796 #define    M88K_MULTI_INCL_TEST_CT  1
2797 static tTestDesc aM88k_Multi_InclTests[] = {
2798   { TT_NEGREP,   zM88k_Multi_InclBypass0, (regex_t*)NULL }, };
2799
2800 /*
2801  *  Fix Command Arguments for M88k_Multi_Incl
2802  */
2803 static const char* apzM88k_Multi_InclPatch[] = {
2804     "wrap",
2805     (char*)NULL };
2806
2807 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2808  *
2809  *  Description of Machine_Ansi_H_Va_List fix
2810  */
2811 tSCC zMachine_Ansi_H_Va_ListName[] =
2812      "machine_ansi_h_va_list";
2813
2814 /*
2815  *  File name selection pattern
2816  */
2817 #define zMachine_Ansi_H_Va_ListList (char*)NULL
2818 /*
2819  *  Machine/OS name selection pattern
2820  */
2821 #define apzMachine_Ansi_H_Va_ListMachs (const char**)NULL
2822
2823 /*
2824  *  content selection pattern - do fix if pattern found
2825  */
2826 tSCC zMachine_Ansi_H_Va_ListSelect0[] =
2827        "define[ \t]+_BSD_VA_LIST_[ \t]";
2828
2829 /*
2830  *  content bypass pattern - skip fix if pattern found
2831  */
2832 tSCC zMachine_Ansi_H_Va_ListBypass0[] =
2833        "__builtin_va_list";
2834
2835 #define    MACHINE_ANSI_H_VA_LIST_TEST_CT  2
2836 static tTestDesc aMachine_Ansi_H_Va_ListTests[] = {
2837   { TT_NEGREP,   zMachine_Ansi_H_Va_ListBypass0, (regex_t*)NULL },
2838   { TT_EGREP,    zMachine_Ansi_H_Va_ListSelect0, (regex_t*)NULL }, };
2839
2840 /*
2841  *  Fix Command Arguments for Machine_Ansi_H_Va_List
2842  */
2843 static const char* apzMachine_Ansi_H_Va_ListPatch[] = {
2844     "format",
2845     "%1__builtin_va_list",
2846     "(define[ \t]+_BSD_VA_LIST_[ \t]+).*",
2847     (char*)NULL };
2848
2849 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2850  *
2851  *  Description of Machine_Name fix
2852  */
2853 tSCC zMachine_NameName[] =
2854      "machine_name";
2855
2856 /*
2857  *  File name selection pattern
2858  */
2859 #define zMachine_NameList (char*)NULL
2860 /*
2861  *  Machine/OS name selection pattern
2862  */
2863 #define apzMachine_NameMachs (const char**)NULL
2864
2865 /*
2866  *  perform the C function call test
2867  */
2868 tSCC zMachine_NameFTst0[] = "machine_name";
2869
2870 #define    MACHINE_NAME_TEST_CT  1
2871 static tTestDesc aMachine_NameTests[] = {
2872   { TT_FUNCTION, zMachine_NameFTst0,   0 /* unused */ }, };
2873
2874 /*
2875  *  Fix Command Arguments for Machine_Name
2876  */
2877 static const char* apzMachine_NamePatch[] = {
2878     "machine_name",
2879     (char*)NULL };
2880
2881 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2882  *
2883  *  Description of Math_Exception fix
2884  */
2885 tSCC zMath_ExceptionName[] =
2886      "math_exception";
2887
2888 /*
2889  *  File name selection pattern
2890  */
2891 tSCC zMath_ExceptionList[] =
2892   "|math.h|";
2893 /*
2894  *  Machine/OS name selection pattern
2895  */
2896 #define apzMath_ExceptionMachs (const char**)NULL
2897
2898 /*
2899  *  content selection pattern - do fix if pattern found
2900  */
2901 tSCC zMath_ExceptionSelect0[] =
2902        "struct exception";
2903
2904 /*
2905  *  content bypass pattern - skip fix if pattern found
2906  */
2907 tSCC zMath_ExceptionBypass0[] =
2908        "We have a problem when using C\\+\\+";
2909
2910 #define    MATH_EXCEPTION_TEST_CT  2
2911 static tTestDesc aMath_ExceptionTests[] = {
2912   { TT_NEGREP,   zMath_ExceptionBypass0, (regex_t*)NULL },
2913   { TT_EGREP,    zMath_ExceptionSelect0, (regex_t*)NULL }, };
2914
2915 /*
2916  *  Fix Command Arguments for Math_Exception
2917  */
2918 static const char* apzMath_ExceptionPatch[] = {
2919     "wrap",
2920     "#ifdef __cplusplus\n\
2921 #define exception __math_exception\n\
2922 #endif\n",
2923     "#ifdef __cplusplus\n\
2924 #undef exception\n\
2925 #endif\n",
2926     (char*)NULL };
2927
2928 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2929  *
2930  *  Description of Math_Huge_Val_From_Dbl_Max fix
2931  */
2932 tSCC zMath_Huge_Val_From_Dbl_MaxName[] =
2933      "math_huge_val_from_dbl_max";
2934
2935 /*
2936  *  File name selection pattern
2937  */
2938 tSCC zMath_Huge_Val_From_Dbl_MaxList[] =
2939   "|math.h|";
2940 /*
2941  *  Machine/OS name selection pattern
2942  */
2943 #define apzMath_Huge_Val_From_Dbl_MaxMachs (const char**)NULL
2944
2945 /*
2946  *  content selection pattern - do fix if pattern found
2947  */
2948 tSCC zMath_Huge_Val_From_Dbl_MaxSelect0[] =
2949        "define[ \t]+HUGE_VAL[ \t]+DBL_MAX";
2950
2951 /*
2952  *  content bypass pattern - skip fix if pattern found
2953  */
2954 tSCC zMath_Huge_Val_From_Dbl_MaxBypass0[] =
2955        "define[ \t]+DBL_MAX";
2956
2957 #define    MATH_HUGE_VAL_FROM_DBL_MAX_TEST_CT  2
2958 static tTestDesc aMath_Huge_Val_From_Dbl_MaxTests[] = {
2959   { TT_NEGREP,   zMath_Huge_Val_From_Dbl_MaxBypass0, (regex_t*)NULL },
2960   { TT_EGREP,    zMath_Huge_Val_From_Dbl_MaxSelect0, (regex_t*)NULL }, };
2961
2962 /*
2963  *  Fix Command Arguments for Math_Huge_Val_From_Dbl_Max
2964  */
2965 static const char* apzMath_Huge_Val_From_Dbl_MaxPatch[] = { "sh", "-c",
2966     "\tdbl_max_def=`egrep 'define[ \t]+DBL_MAX[ \t]+.*' float.h | sed 's/.*DBL_MAX[ \t]*//' 2>/dev/null`\n\n\
2967 \tif ( test -n \"${dbl_max_def}\" ) > /dev/null 2>&1\n\
2968 \tthen sed -e '/define[ \t]*HUGE_VAL[ \t]*DBL_MAX/s@DBL_MAX@'\"$dbl_max_def@\"\n\
2969 \telse cat\n\
2970 \tfi",
2971     (char*)NULL };
2972
2973 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2974  *
2975  *  Description of Math_Huge_Val_Ifndef fix
2976  */
2977 tSCC zMath_Huge_Val_IfndefName[] =
2978      "math_huge_val_ifndef";
2979
2980 /*
2981  *  File name selection pattern
2982  */
2983 tSCC zMath_Huge_Val_IfndefList[] =
2984   "|math.h|math/math.h|";
2985 /*
2986  *  Machine/OS name selection pattern
2987  */
2988 #define apzMath_Huge_Val_IfndefMachs (const char**)NULL
2989
2990 /*
2991  *  content selection pattern - do fix if pattern found
2992  */
2993 tSCC zMath_Huge_Val_IfndefSelect0[] =
2994        "define[ \t]+HUGE_VAL";
2995
2996 #define    MATH_HUGE_VAL_IFNDEF_TEST_CT  1
2997 static tTestDesc aMath_Huge_Val_IfndefTests[] = {
2998   { TT_EGREP,    zMath_Huge_Val_IfndefSelect0, (regex_t*)NULL }, };
2999
3000 /*
3001  *  Fix Command Arguments for Math_Huge_Val_Ifndef
3002  */
3003 static const char* apzMath_Huge_Val_IfndefPatch[] = {
3004     "format",
3005     "#ifndef HUGE_VAL\n\
3006 %0\n\
3007 #endif",
3008     "^[ \t]*#[ \t]*define[ \t]+HUGE_VAL[ \t].*",
3009     (char*)NULL };
3010
3011 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3012  *
3013  *  Description of Nested_Auth_Des fix
3014  */
3015 tSCC zNested_Auth_DesName[] =
3016      "nested_auth_des";
3017
3018 /*
3019  *  File name selection pattern
3020  */
3021 tSCC zNested_Auth_DesList[] =
3022   "|rpc/rpc.h|";
3023 /*
3024  *  Machine/OS name selection pattern
3025  */
3026 #define apzNested_Auth_DesMachs (const char**)NULL
3027
3028 /*
3029  *  content selection pattern - do fix if pattern found
3030  */
3031 tSCC zNested_Auth_DesSelect0[] =
3032        "(/\\*.*rpc/auth_des\\.h>.*)/\\*";
3033
3034 #define    NESTED_AUTH_DES_TEST_CT  1
3035 static tTestDesc aNested_Auth_DesTests[] = {
3036   { TT_EGREP,    zNested_Auth_DesSelect0, (regex_t*)NULL }, };
3037
3038 /*
3039  *  Fix Command Arguments for Nested_Auth_Des
3040  */
3041 static const char* apzNested_Auth_DesPatch[] = {
3042     "format",
3043     "%1*/ /*",
3044     (char*)NULL };
3045
3046 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3047  *
3048  *  Description of Nested_Motorola fix
3049  */
3050 tSCC zNested_MotorolaName[] =
3051      "nested_motorola";
3052
3053 /*
3054  *  File name selection pattern
3055  */
3056 tSCC zNested_MotorolaList[] =
3057   "|sys/limits.h|limits.h|";
3058 /*
3059  *  Machine/OS name selection pattern
3060  */
3061 tSCC* apzNested_MotorolaMachs[] = {
3062         "m68k-motorola-sysv*",
3063         (const char*)NULL };
3064
3065 /*
3066  *  content selection pattern - do fix if pattern found
3067  */
3068 tSCC zNested_MotorolaSelect0[] =
3069        "max # bytes atomic in write|error value returned by Math lib";
3070
3071 #define    NESTED_MOTOROLA_TEST_CT  1
3072 static tTestDesc aNested_MotorolaTests[] = {
3073   { TT_EGREP,    zNested_MotorolaSelect0, (regex_t*)NULL }, };
3074
3075 /*
3076  *  Fix Command Arguments for Nested_Motorola
3077  */
3078 static const char* apzNested_MotorolaPatch[] = { "sed",
3079     "-e", "s@^\\(#undef[ \t][ \t]*PIPE_BUF[ \t]*/\\* max # bytes atomic in write to a\\)$@\\1 */@",
3080     "-e", "s@\\(/\\*#define\tHUGE_VAL\t3.[0-9e+]* \\)\\(/\\*error value returned by Math lib\\*/\\)$@\\1*/ \\2@",
3081     (char*)NULL };
3082
3083 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3084  *
3085  *  Description of Nested_Sys_Limits fix
3086  */
3087 tSCC zNested_Sys_LimitsName[] =
3088      "nested_sys_limits";
3089
3090 /*
3091  *  File name selection pattern
3092  */
3093 tSCC zNested_Sys_LimitsList[] =
3094   "|sys/limits.h|";
3095 /*
3096  *  Machine/OS name selection pattern
3097  */
3098 #define apzNested_Sys_LimitsMachs (const char**)NULL
3099
3100 /*
3101  *  content selection pattern - do fix if pattern found
3102  */
3103 tSCC zNested_Sys_LimitsSelect0[] =
3104        "CHILD_MAX";
3105
3106 #define    NESTED_SYS_LIMITS_TEST_CT  1
3107 static tTestDesc aNested_Sys_LimitsTests[] = {
3108   { TT_EGREP,    zNested_Sys_LimitsSelect0, (regex_t*)NULL }, };
3109
3110 /*
3111  *  Fix Command Arguments for Nested_Sys_Limits
3112  */
3113 static const char* apzNested_Sys_LimitsPatch[] = { "sed",
3114     "-e", "/CHILD_MAX/s,/\\* Max, Max,",
3115     "-e", "/OPEN_MAX/s,/\\* Max, Max,",
3116     (char*)NULL };
3117
3118 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3119  *
3120  *  Description of News_Os_Recursion fix
3121  */
3122 tSCC zNews_Os_RecursionName[] =
3123      "news_os_recursion";
3124
3125 /*
3126  *  File name selection pattern
3127  */
3128 tSCC zNews_Os_RecursionList[] =
3129   "|stdlib.h|";
3130 /*
3131  *  Machine/OS name selection pattern
3132  */
3133 #define apzNews_Os_RecursionMachs (const char**)NULL
3134
3135 /*
3136  *  content selection pattern - do fix if pattern found
3137  */
3138 tSCC zNews_Os_RecursionSelect0[] =
3139        "[ \t]*#include <stdlib\\.h>.*";
3140
3141 #define    NEWS_OS_RECURSION_TEST_CT  1
3142 static tTestDesc aNews_Os_RecursionTests[] = {
3143   { TT_EGREP,    zNews_Os_RecursionSelect0, (regex_t*)NULL }, };
3144
3145 /*
3146  *  Fix Command Arguments for News_Os_Recursion
3147  */
3148 static const char* apzNews_Os_RecursionPatch[] = {
3149     "format",
3150     "#ifdef BOGUS_RECURSION\n\
3151 %0\n\
3152 #endif",
3153     (char*)NULL };
3154
3155 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3156  *
3157  *  Description of Next_Math_Prefix fix
3158  */
3159 tSCC zNext_Math_PrefixName[] =
3160      "next_math_prefix";
3161
3162 /*
3163  *  File name selection pattern
3164  */
3165 tSCC zNext_Math_PrefixList[] =
3166   "|ansi/math.h|";
3167 /*
3168  *  Machine/OS name selection pattern
3169  */
3170 #define apzNext_Math_PrefixMachs (const char**)NULL
3171
3172 /*
3173  *  content selection pattern - do fix if pattern found
3174  */
3175 tSCC zNext_Math_PrefixSelect0[] =
3176        "^extern[ \t]+double[ \t]+__const__[ \t]";
3177
3178 #define    NEXT_MATH_PREFIX_TEST_CT  1
3179 static tTestDesc aNext_Math_PrefixTests[] = {
3180   { TT_EGREP,    zNext_Math_PrefixSelect0, (regex_t*)NULL }, };
3181
3182 /*
3183  *  Fix Command Arguments for Next_Math_Prefix
3184  */
3185 static const char* apzNext_Math_PrefixPatch[] = {
3186     "format",
3187     "extern double %1(",
3188     "^extern[ \t]+double[ \t]+__const__[ \t]+([a-z]+)\\(",
3189     (char*)NULL };
3190
3191 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3192  *
3193  *  Description of Next_Template fix
3194  */
3195 tSCC zNext_TemplateName[] =
3196      "next_template";
3197
3198 /*
3199  *  File name selection pattern
3200  */
3201 tSCC zNext_TemplateList[] =
3202   "|bsd/libc.h|";
3203 /*
3204  *  Machine/OS name selection pattern
3205  */
3206 #define apzNext_TemplateMachs (const char**)NULL
3207
3208 /*
3209  *  content selection pattern - do fix if pattern found
3210  */
3211 tSCC zNext_TemplateSelect0[] =
3212        "[ \t]template\\)";
3213
3214 #define    NEXT_TEMPLATE_TEST_CT  1
3215 static tTestDesc aNext_TemplateTests[] = {
3216   { TT_EGREP,    zNext_TemplateSelect0, (regex_t*)NULL }, };
3217
3218 /*
3219  *  Fix Command Arguments for Next_Template
3220  */
3221 static const char* apzNext_TemplatePatch[] = {
3222     "format",
3223     "(%1)",
3224     "\\(([^)]*)[ \t]template\\)",
3225     (char*)NULL };
3226
3227 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3228  *
3229  *  Description of Next_Volitile fix
3230  */
3231 tSCC zNext_VolitileName[] =
3232      "next_volitile";
3233
3234 /*
3235  *  File name selection pattern
3236  */
3237 tSCC zNext_VolitileList[] =
3238   "|ansi/stdlib.h|";
3239 /*
3240  *  Machine/OS name selection pattern
3241  */
3242 #define apzNext_VolitileMachs (const char**)NULL
3243
3244 /*
3245  *  content selection pattern - do fix if pattern found
3246  */
3247 tSCC zNext_VolitileSelect0[] =
3248        "^extern[ \t]+volatile[ \t]+void[ \t]";
3249
3250 #define    NEXT_VOLITILE_TEST_CT  1
3251 static tTestDesc aNext_VolitileTests[] = {
3252   { TT_EGREP,    zNext_VolitileSelect0, (regex_t*)NULL }, };
3253
3254 /*
3255  *  Fix Command Arguments for Next_Volitile
3256  */
3257 static const char* apzNext_VolitilePatch[] = {
3258     "format",
3259     "extern void %1(",
3260     "^extern[ \t]+volatile[ \t]+void[ \t]+(exit|abort)\\(",
3261     (char*)NULL };
3262
3263 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3264  *
3265  *  Description of Next_Wait_Union fix
3266  */
3267 tSCC zNext_Wait_UnionName[] =
3268      "next_wait_union";
3269
3270 /*
3271  *  File name selection pattern
3272  */
3273 tSCC zNext_Wait_UnionList[] =
3274   "|sys/wait.h|";
3275 /*
3276  *  Machine/OS name selection pattern
3277  */
3278 #define apzNext_Wait_UnionMachs (const char**)NULL
3279
3280 /*
3281  *  content selection pattern - do fix if pattern found
3282  */
3283 tSCC zNext_Wait_UnionSelect0[] =
3284        "wait\\(union wait";
3285
3286 #define    NEXT_WAIT_UNION_TEST_CT  1
3287 static tTestDesc aNext_Wait_UnionTests[] = {
3288   { TT_EGREP,    zNext_Wait_UnionSelect0, (regex_t*)NULL }, };
3289
3290 /*
3291  *  Fix Command Arguments for Next_Wait_Union
3292  */
3293 static const char* apzNext_Wait_UnionPatch[] = {
3294     "format",
3295     "wait(void",
3296     (char*)NULL };
3297
3298 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3299  *
3300  *  Description of Nodeent_Syntax fix
3301  */
3302 tSCC zNodeent_SyntaxName[] =
3303      "nodeent_syntax";
3304
3305 /*
3306  *  File name selection pattern
3307  */
3308 tSCC zNodeent_SyntaxList[] =
3309   "|netdnet/dnetdb.h|";
3310 /*
3311  *  Machine/OS name selection pattern
3312  */
3313 #define apzNodeent_SyntaxMachs (const char**)NULL
3314
3315 /*
3316  *  content selection pattern - do fix if pattern found
3317  */
3318 tSCC zNodeent_SyntaxSelect0[] =
3319        "char[ \t]*\\*na_addr[ \t]*$";
3320
3321 #define    NODEENT_SYNTAX_TEST_CT  1
3322 static tTestDesc aNodeent_SyntaxTests[] = {
3323   { TT_EGREP,    zNodeent_SyntaxSelect0, (regex_t*)NULL }, };
3324
3325 /*
3326  *  Fix Command Arguments for Nodeent_Syntax
3327  */
3328 static const char* apzNodeent_SyntaxPatch[] = {
3329     "format",
3330     "%0;",
3331     (char*)NULL };
3332
3333 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3334  *
3335  *  Description of Osf_Namespace_A fix
3336  */
3337 tSCC zOsf_Namespace_AName[] =
3338      "osf_namespace_a";
3339
3340 /*
3341  *  File name selection pattern
3342  */
3343 tSCC zOsf_Namespace_AList[] =
3344   "|reg_types.h|sys/lc_core.h|";
3345 /*
3346  *  Machine/OS name selection pattern
3347  */
3348 #define apzOsf_Namespace_AMachs (const char**)NULL
3349
3350 /*
3351  *  perform the 'test' shell command - do fix on success
3352  */
3353 tSCC zOsf_Namespace_ATest0[] =
3354        " -r reg_types.h";
3355 tSCC zOsf_Namespace_ATest1[] =
3356        " -r sys/lc_core.h";
3357 tSCC zOsf_Namespace_ATest2[] =
3358        " -n \"`grep '} regex_t;' reg_types.h`\"";
3359 tSCC zOsf_Namespace_ATest3[] =
3360        " -z \"`grep __regex_t regex.h`\"";
3361
3362 #define    OSF_NAMESPACE_A_TEST_CT  4
3363 static tTestDesc aOsf_Namespace_ATests[] = {
3364   { TT_TEST,     zOsf_Namespace_ATest0,   0 /* unused */ },
3365   { TT_TEST,     zOsf_Namespace_ATest1,   0 /* unused */ },
3366   { TT_TEST,     zOsf_Namespace_ATest2,   0 /* unused */ },
3367   { TT_TEST,     zOsf_Namespace_ATest3,   0 /* unused */ }, };
3368
3369 /*
3370  *  Fix Command Arguments for Osf_Namespace_A
3371  */
3372 static const char* apzOsf_Namespace_APatch[] = {
3373     "format",
3374     "__%0",
3375     "reg(ex|off|match)_t",
3376     (char*)NULL };
3377
3378 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3379  *
3380  *  Description of Osf_Namespace_C fix
3381  */
3382 tSCC zOsf_Namespace_CName[] =
3383      "osf_namespace_c";
3384
3385 /*
3386  *  File name selection pattern
3387  */
3388 tSCC zOsf_Namespace_CList[] =
3389   "|regex.h|";
3390 /*
3391  *  Machine/OS name selection pattern
3392  */
3393 #define apzOsf_Namespace_CMachs (const char**)NULL
3394
3395 /*
3396  *  content selection pattern - do fix if pattern found
3397  */
3398 tSCC zOsf_Namespace_CSelect0[] =
3399        "#include <reg_types.h>.*";
3400
3401 /*
3402  *  perform the 'test' shell command - do fix on success
3403  */
3404 tSCC zOsf_Namespace_CTest0[] =
3405        " -r reg_types.h";
3406 tSCC zOsf_Namespace_CTest1[] =
3407        " -r sys/lc_core.h";
3408 tSCC zOsf_Namespace_CTest2[] =
3409        " -n \"`grep '} regex_t;' reg_types.h`\"";
3410 tSCC zOsf_Namespace_CTest3[] =
3411        " -z \"`grep __regex_t regex.h`\"";
3412
3413 #define    OSF_NAMESPACE_C_TEST_CT  5
3414 static tTestDesc aOsf_Namespace_CTests[] = {
3415   { TT_TEST,     zOsf_Namespace_CTest0,   0 /* unused */ },
3416   { TT_TEST,     zOsf_Namespace_CTest1,   0 /* unused */ },
3417   { TT_TEST,     zOsf_Namespace_CTest2,   0 /* unused */ },
3418   { TT_TEST,     zOsf_Namespace_CTest3,   0 /* unused */ },
3419   { TT_EGREP,    zOsf_Namespace_CSelect0, (regex_t*)NULL }, };
3420
3421 /*
3422  *  Fix Command Arguments for Osf_Namespace_C
3423  */
3424 static const char* apzOsf_Namespace_CPatch[] = {
3425     "format",
3426     "%0\n\
3427 typedef __regex_t\tregex_t;\n\
3428 typedef __regoff_t\tregoff_t;\n\
3429 typedef __regmatch_t\tregmatch_t;",
3430     (char*)NULL };
3431
3432 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3433  *
3434  *  Description of Pthread_Page_Size fix
3435  */
3436 tSCC zPthread_Page_SizeName[] =
3437      "pthread_page_size";
3438
3439 /*
3440  *  File name selection pattern
3441  */
3442 tSCC zPthread_Page_SizeList[] =
3443   "|pthread.h|";
3444 /*
3445  *  Machine/OS name selection pattern
3446  */
3447 #define apzPthread_Page_SizeMachs (const char**)NULL
3448
3449 /*
3450  *  content selection pattern - do fix if pattern found
3451  */
3452 tSCC zPthread_Page_SizeSelect0[] =
3453        "^int __page_size";
3454
3455 #define    PTHREAD_PAGE_SIZE_TEST_CT  1
3456 static tTestDesc aPthread_Page_SizeTests[] = {
3457   { TT_EGREP,    zPthread_Page_SizeSelect0, (regex_t*)NULL }, };
3458
3459 /*
3460  *  Fix Command Arguments for Pthread_Page_Size
3461  */
3462 static const char* apzPthread_Page_SizePatch[] = {
3463     "format",
3464     "extern %0",
3465     (char*)NULL };
3466
3467 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3468  *
3469  *  Description of Read_Ret_Type fix
3470  */
3471 tSCC zRead_Ret_TypeName[] =
3472      "read_ret_type";
3473
3474 /*
3475  *  File name selection pattern
3476  */
3477 tSCC zRead_Ret_TypeList[] =
3478   "|stdio.h|";
3479 /*
3480  *  Machine/OS name selection pattern
3481  */
3482 #define apzRead_Ret_TypeMachs (const char**)NULL
3483
3484 /*
3485  *  content selection pattern - do fix if pattern found
3486  */
3487 tSCC zRead_Ret_TypeSelect0[] =
3488        "extern int\t.*, fread\\(\\), fwrite\\(\\)";
3489
3490 #define    READ_RET_TYPE_TEST_CT  1
3491 static tTestDesc aRead_Ret_TypeTests[] = {
3492   { TT_EGREP,    zRead_Ret_TypeSelect0, (regex_t*)NULL }, };
3493
3494 /*
3495  *  Fix Command Arguments for Read_Ret_Type
3496  */
3497 static const char* apzRead_Ret_TypePatch[] = {
3498     "format",
3499     "extern unsigned int fread(), fwrite();\n\
3500 %1%2",
3501     "(extern int\t.*), fread\\(\\), fwrite\\(\\)(.*)",
3502     (char*)NULL };
3503
3504 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3505  *
3506  *  Description of Rs6000_Double fix
3507  */
3508 tSCC zRs6000_DoubleName[] =
3509      "rs6000_double";
3510
3511 /*
3512  *  File name selection pattern
3513  */
3514 tSCC zRs6000_DoubleList[] =
3515   "|math.h|";
3516 /*
3517  *  Machine/OS name selection pattern
3518  */
3519 #define apzRs6000_DoubleMachs (const char**)NULL
3520
3521 /*
3522  *  content selection pattern - do fix if pattern found
3523  */
3524 tSCC zRs6000_DoubleSelect0[] =
3525        "[^a-zA-Z_]class\\(";
3526
3527 #define    RS6000_DOUBLE_TEST_CT  1
3528 static tTestDesc aRs6000_DoubleTests[] = {
3529   { TT_EGREP,    zRs6000_DoubleSelect0, (regex_t*)NULL }, };
3530
3531 /*
3532  *  Fix Command Arguments for Rs6000_Double
3533  */
3534 static const char* apzRs6000_DoublePatch[] = {
3535     "format",
3536     "#ifndef __cplusplus\n\
3537 %0\n\
3538 #endif",
3539     "^.*[^a-zA-Z_]class\\(.*",
3540     (char*)NULL };
3541
3542 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3543  *
3544  *  Description of Rs6000_Fchmod fix
3545  */
3546 tSCC zRs6000_FchmodName[] =
3547      "rs6000_fchmod";
3548
3549 /*
3550  *  File name selection pattern
3551  */
3552 tSCC zRs6000_FchmodList[] =
3553   "|sys/stat.h|";
3554 /*
3555  *  Machine/OS name selection pattern
3556  */
3557 #define apzRs6000_FchmodMachs (const char**)NULL
3558
3559 /*
3560  *  content selection pattern - do fix if pattern found
3561  */
3562 tSCC zRs6000_FchmodSelect0[] =
3563        "fchmod\\(char \\*";
3564
3565 #define    RS6000_FCHMOD_TEST_CT  1
3566 static tTestDesc aRs6000_FchmodTests[] = {
3567   { TT_EGREP,    zRs6000_FchmodSelect0, (regex_t*)NULL }, };
3568
3569 /*
3570  *  Fix Command Arguments for Rs6000_Fchmod
3571  */
3572 static const char* apzRs6000_FchmodPatch[] = {
3573     "format",
3574     "fchmod(int",
3575     (char*)NULL };
3576
3577 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3578  *
3579  *  Description of Rs6000_Param fix
3580  */
3581 tSCC zRs6000_ParamName[] =
3582      "rs6000_param";
3583
3584 /*
3585  *  File name selection pattern
3586  */
3587 tSCC zRs6000_ParamList[] =
3588   "|stdio.h|unistd.h|";
3589 /*
3590  *  Machine/OS name selection pattern
3591  */
3592 #define apzRs6000_ParamMachs (const char**)NULL
3593
3594 /*
3595  *  content selection pattern - do fix if pattern found
3596  */
3597 tSCC zRs6000_ParamSelect0[] =
3598        "rename\\(const char \\*old, const char \\*new\\)";
3599
3600 #define    RS6000_PARAM_TEST_CT  1
3601 static tTestDesc aRs6000_ParamTests[] = {
3602   { TT_EGREP,    zRs6000_ParamSelect0, (regex_t*)NULL }, };
3603
3604 /*
3605  *  Fix Command Arguments for Rs6000_Param
3606  */
3607 static const char* apzRs6000_ParamPatch[] = {
3608     "format",
3609     "rename(const char *_old, const char *_new)",
3610     (char*)NULL };
3611
3612 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3613  *
3614  *  Description of Sco_Static_Func fix
3615  */
3616 tSCC zSco_Static_FuncName[] =
3617      "sco_static_func";
3618
3619 /*
3620  *  File name selection pattern
3621  */
3622 tSCC zSco_Static_FuncList[] =
3623   "|sys/stat.h|";
3624 /*
3625  *  Machine/OS name selection pattern
3626  */
3627 tSCC* apzSco_Static_FuncMachs[] = {
3628         "i?86-*-sco3.2*",
3629         (const char*)NULL };
3630
3631 /*
3632  *  content selection pattern - do fix if pattern found
3633  */
3634 tSCC zSco_Static_FuncSelect0[] =
3635        "^static int";
3636
3637 #define    SCO_STATIC_FUNC_TEST_CT  1
3638 static tTestDesc aSco_Static_FuncTests[] = {
3639   { TT_EGREP,    zSco_Static_FuncSelect0, (regex_t*)NULL }, };
3640
3641 /*
3642  *  Fix Command Arguments for Sco_Static_Func
3643  */
3644 static const char* apzSco_Static_FuncPatch[] = { "sed",
3645     "-e", "/^static int/i\\\n\
3646 #if __cplusplus\\\n\
3647 extern \"C\" {\\\n\
3648 #endif /* __cplusplus */",
3649     "-e", "/^}$/a\\\n\
3650 #if __cplusplus\\\n\
3651  }\\\n\
3652 #endif /* __cplusplus */",
3653     (char*)NULL };
3654
3655 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3656  *
3657  *  Description of Sco_Utime fix
3658  */
3659 tSCC zSco_UtimeName[] =
3660      "sco_utime";
3661
3662 /*
3663  *  File name selection pattern
3664  */
3665 tSCC zSco_UtimeList[] =
3666   "|sys/times.h|";
3667 /*
3668  *  Machine/OS name selection pattern
3669  */
3670 tSCC* apzSco_UtimeMachs[] = {
3671         "i?86-*-sco3.2v4*",
3672         (const char*)NULL };
3673
3674 /*
3675  *  content selection pattern - do fix if pattern found
3676  */
3677 tSCC zSco_UtimeSelect0[] =
3678        "\\(const char \\*, struct utimbuf \\*\\);";
3679
3680 #define    SCO_UTIME_TEST_CT  1
3681 static tTestDesc aSco_UtimeTests[] = {
3682   { TT_EGREP,    zSco_UtimeSelect0, (regex_t*)NULL }, };
3683
3684 /*
3685  *  Fix Command Arguments for Sco_Utime
3686  */
3687 static const char* apzSco_UtimePatch[] = {
3688     "format",
3689     "(const char *, const struct utimbuf *);",
3690     (char*)NULL };
3691
3692 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3693  *
3694  *  Description of Solaris_Mutex_Init fix
3695  */
3696 tSCC zSolaris_Mutex_InitName[] =
3697      "solaris_mutex_init";
3698
3699 /*
3700  *  File name selection pattern
3701  */
3702 tSCC zSolaris_Mutex_InitList[] =
3703   "|pthread.h|";
3704 /*
3705  *  Machine/OS name selection pattern
3706  */
3707 #define apzSolaris_Mutex_InitMachs (const char**)NULL
3708
3709 /*
3710  *  content selection pattern - do fix if pattern found
3711  */
3712 tSCC zSolaris_Mutex_InitSelect0[] =
3713        "@\\(#\\)pthread.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
3714
3715 #define    SOLARIS_MUTEX_INIT_TEST_CT  1
3716 static tTestDesc aSolaris_Mutex_InitTests[] = {
3717   { TT_EGREP,    zSolaris_Mutex_InitSelect0, (regex_t*)NULL }, };
3718
3719 /*
3720  *  Fix Command Arguments for Solaris_Mutex_Init
3721  */
3722 static const char* apzSolaris_Mutex_InitPatch[] = {
3723     "format",
3724     "#if __STDC__ - 0 == 0 && !defined(_NO_LONGLONG)\n\
3725 %0\n\
3726 #else\n\
3727 %1, {0}}%3\n\
3728 #endif",
3729     "(^#define[ \t]+PTHREAD_(MUTEX|COND)_INITIALIZER[ \t]+{.*),[ \t]*0}(|[ \t].*)$",
3730     (char*)NULL };
3731
3732 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3733  *
3734  *  Description of Solaris_Stdio_Tag fix
3735  */
3736 tSCC zSolaris_Stdio_TagName[] =
3737      "solaris_stdio_tag";
3738
3739 /*
3740  *  File name selection pattern
3741  */
3742 tSCC zSolaris_Stdio_TagList[] =
3743   "|stdio_tag.h|";
3744 /*
3745  *  Machine/OS name selection pattern
3746  */
3747 #define apzSolaris_Stdio_TagMachs (const char**)NULL
3748
3749 /*
3750  *  content selection pattern - do fix if pattern found
3751  */
3752 tSCC zSolaris_Stdio_TagSelect0[] =
3753        "__cplusplus < 54321L";
3754
3755 #define    SOLARIS_STDIO_TAG_TEST_CT  1
3756 static tTestDesc aSolaris_Stdio_TagTests[] = {
3757   { TT_EGREP,    zSolaris_Stdio_TagSelect0, (regex_t*)NULL }, };
3758
3759 /*
3760  *  Fix Command Arguments for Solaris_Stdio_Tag
3761  */
3762 static const char* apzSolaris_Stdio_TagPatch[] = { "sed",
3763     "-e", "s/defined(__cplusplus) && (__cplusplus < 54321L)/0/",
3764     (char*)NULL };
3765
3766 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3767  *
3768  *  Description of Solaris_Widec fix
3769  */
3770 tSCC zSolaris_WidecName[] =
3771      "solaris_widec";
3772
3773 /*
3774  *  File name selection pattern
3775  */
3776 tSCC zSolaris_WidecList[] =
3777   "|widec.h|";
3778 /*
3779  *  Machine/OS name selection pattern
3780  */
3781 tSCC* apzSolaris_WidecMachs[] = {
3782         "*-*-solaris2.[0-5]*",
3783         (const char*)NULL };
3784
3785 /*
3786  *  content selection pattern - do fix if pattern found
3787  */
3788 tSCC zSolaris_WidecSelect0[] =
3789        "#include <euc.h>";
3790
3791 /*
3792  *  content bypass pattern - skip fix if pattern found
3793  */
3794 tSCC zSolaris_WidecBypass0[] =
3795        "include.*wchar\\.h";
3796
3797 #define    SOLARIS_WIDEC_TEST_CT  2
3798 static tTestDesc aSolaris_WidecTests[] = {
3799   { TT_NEGREP,   zSolaris_WidecBypass0, (regex_t*)NULL },
3800   { TT_EGREP,    zSolaris_WidecSelect0, (regex_t*)NULL }, };
3801
3802 /*
3803  *  Fix Command Arguments for Solaris_Widec
3804  */
3805 static const char* apzSolaris_WidecPatch[] = {
3806     "format",
3807     "%0\n\
3808 #include <wchar.h>",
3809     (char*)NULL };
3810
3811 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3812  *
3813  *  Description of Statsswtch fix
3814  */
3815 tSCC zStatsswtchName[] =
3816      "statsswtch";
3817
3818 /*
3819  *  File name selection pattern
3820  */
3821 tSCC zStatsswtchList[] =
3822   "|rpcsvc/rstat.h|";
3823 /*
3824  *  Machine/OS name selection pattern
3825  */
3826 #define apzStatsswtchMachs (const char**)NULL
3827
3828 /*
3829  *  content selection pattern - do fix if pattern found
3830  */
3831 tSCC zStatsswtchSelect0[] =
3832        "boottime$";
3833
3834 #define    STATSSWTCH_TEST_CT  1
3835 static tTestDesc aStatsswtchTests[] = {
3836   { TT_EGREP,    zStatsswtchSelect0, (regex_t*)NULL }, };
3837
3838 /*
3839  *  Fix Command Arguments for Statsswtch
3840  */
3841 static const char* apzStatsswtchPatch[] = {
3842     "format",
3843     "boottime;",
3844     (char*)NULL };
3845
3846 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3847  *
3848  *  Description of Stdio_Stdarg_H fix
3849  */
3850 tSCC zStdio_Stdarg_HName[] =
3851      "stdio_stdarg_h";
3852
3853 /*
3854  *  File name selection pattern
3855  */
3856 tSCC zStdio_Stdarg_HList[] =
3857   "|stdio.h|";
3858 /*
3859  *  Machine/OS name selection pattern
3860  */
3861 #define apzStdio_Stdarg_HMachs (const char**)NULL
3862
3863 /*
3864  *  content bypass pattern - skip fix if pattern found
3865  */
3866 tSCC zStdio_Stdarg_HBypass0[] =
3867        "include.*(stdarg.h|machine/ansi.h)";
3868
3869 #define    STDIO_STDARG_H_TEST_CT