inclhack.def (alpha_assert): Fix assert macro in Tru64 UNIX assert.h.
[gcc.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 139 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_Sun_Memcpy fix
252 */
253 tSCC zAab_Sun_MemcpyName[] =
254 "AAB_sun_memcpy";
255
256 /*
257 * File name selection pattern
258 */
259 tSCC zAab_Sun_MemcpyList[] =
260 "|memory.h|";
261 /*
262 * Machine/OS name selection pattern
263 */
264 #define apzAab_Sun_MemcpyMachs (const char**)NULL
265
266 /*
267 * content selection pattern - do fix if pattern found
268 */
269 tSCC zAab_Sun_MemcpySelect0[] =
270 "/\\*\t@\\(#\\)(head/memory.h\t50.1\t |memory\\.h 1\\.[2-4] 8./../.. SMI; from S5R2 1\\.2\t)\\*/";
271
272 #define AAB_SUN_MEMCPY_TEST_CT 1
273 static tTestDesc aAab_Sun_MemcpyTests[] = {
274 { TT_EGREP, zAab_Sun_MemcpySelect0, (regex_t*)NULL }, };
275
276 /*
277 * Fix Command Arguments for Aab_Sun_Memcpy
278 */
279 static const char* apzAab_Sun_MemcpyPatch[] = {
280 "/* This file was generated by fixincludes */\n\
281 #ifndef __memory_h__\n\
282 #define __memory_h__\n\n\
283 #ifdef __STDC__\n\
284 extern void *memccpy();\n\
285 extern void *memchr();\n\
286 extern void *memcpy();\n\
287 extern void *memset();\n\
288 #else\n\
289 extern char *memccpy();\n\
290 extern char *memchr();\n\
291 extern char *memcpy();\n\
292 extern char *memset();\n\
293 #endif /* __STDC__ */\n\n\
294 extern int memcmp();\n\n\
295 #endif /* __memory_h__ */\n",
296 (char*)NULL };
297
298 /* * * * * * * * * * * * * * * * * * * * * * * * * *
299 *
300 * Description of Aab_Svr4_Replace_Byteorder fix
301 */
302 tSCC zAab_Svr4_Replace_ByteorderName[] =
303 "AAB_svr4_replace_byteorder";
304
305 /*
306 * File name selection pattern
307 */
308 tSCC zAab_Svr4_Replace_ByteorderList[] =
309 "|sys/byteorder.h|";
310 /*
311 * Machine/OS name selection pattern
312 */
313 tSCC* apzAab_Svr4_Replace_ByteorderMachs[] = {
314 "*-*-sysv4*",
315 "i[34567]86-*-sysv5*",
316 "i[34567]86-*-udk*",
317 "i[34567]86-*-solaris2.[0-4]",
318 "powerpcle-*-solaris2.[0-4]",
319 "sparc-*-solaris2.[0-4]",
320 (const char*)NULL };
321 #define AAB_SVR4_REPLACE_BYTEORDER_TEST_CT 0
322 #define aAab_Svr4_Replace_ByteorderTests (tTestDesc*)NULL
323
324 /*
325 * Fix Command Arguments for Aab_Svr4_Replace_Byteorder
326 */
327 static const char* apzAab_Svr4_Replace_ByteorderPatch[] = {
328 "#ifndef _SYS_BYTEORDER_H\n\
329 #define _SYS_BYTEORDER_H\n\n\
330 /* Functions to convert `short' and `long' quantities from host byte order\n\
331 to (internet) network byte order (i.e. big-endian).\n\n\
332 Written by Ron Guilmette (rfg@ncd.com).\n\n\
333 This isn't actually used by GCC. It is installed by fixinc.svr4.\n\n\
334 For big-endian machines these functions are essentially no-ops.\n\n\
335 For little-endian machines, we define the functions using specialized\n\
336 asm sequences in cases where doing so yields better code (e.g. i386). */\n\n\
337 #if !defined (__GNUC__) && !defined (__GNUG__)\n\
338 #error You lose! This file is only useful with GNU compilers.\n\
339 #endif\n\n\
340 #ifndef __BYTE_ORDER__\n\
341 /* Byte order defines. These are as defined on UnixWare 1.1, but with\n\
342 double underscores added at the front and back. */\n\
343 #define __LITTLE_ENDIAN__ 1234\n\
344 #define __BIG_ENDIAN__ 4321\n\
345 #define __PDP_ENDIAN__ 3412\n\
346 #endif\n\n\
347 #ifdef __STDC__\n\
348 static __inline__ unsigned long htonl (unsigned long);\n\
349 static __inline__ unsigned short htons (unsigned int);\n\
350 static __inline__ unsigned long ntohl (unsigned long);\n\
351 static __inline__ unsigned short ntohs (unsigned int);\n\
352 #endif /* defined (__STDC__) */\n\n\
353 #if defined (__i386__)\n\n\
354 #ifndef __BYTE_ORDER__\n\
355 #define __BYTE_ORDER__ __LITTLE_ENDIAN__\n\
356 #endif\n\n\
357 /* Convert a host long to a network long. */\n\n\
358 /* We must use a new-style function definition, so that this will also\n\
359 be valid for C++. */\n\
360 static __inline__ unsigned long\n\
361 htonl (unsigned long __arg)\n\
362 {\n\
363 register unsigned long __result;\n\n\
364 __asm__ (\"xchg%B0 %b0,%h0\n\
365 \tror%L0 $16,%0\n\
366 \txchg%B0 %b0,%h0\" : \"=q\" (__result) : \"0\" (__arg));\n\
367 return __result;\n\
368 }\n\n\
369 /* Convert a host short to a network short. */\n\n\
370 static __inline__ unsigned short\n\
371 htons (unsigned int __arg)\n\
372 {\n\
373 register unsigned short __result;\n\n\
374 __asm__ (\"xchg%B0 %b0,%h0\" : \"=q\" (__result) : \"0\" (__arg));\n\
375 return __result;\n\
376 }\n\n\
377 #elif ((defined (__i860__) && !defined (__i860_big_endian__))\t\\\n\
378 || defined (__ns32k__) || defined (__vax__)\t\t\\\n\
379 || defined (__spur__) || defined (__arm__))\n\n\
380 #ifndef __BYTE_ORDER__\n\
381 #define __BYTE_ORDER__ __LITTLE_ENDIAN__\n\
382 #endif\n\n\
383 /* For other little-endian machines, using C code is just as efficient as\n\
384 using assembly code. */\n\n\
385 /* Convert a host long to a network long. */\n\n\
386 static __inline__ unsigned long\n\
387 htonl (unsigned long __arg)\n\
388 {\n\
389 register unsigned long __result;\n\n\
390 __result = (__arg >> 24) & 0x000000ff;\n\
391 __result |= (__arg >> 8) & 0x0000ff00;\n\
392 __result |= (__arg << 8) & 0x00ff0000;\n\
393 __result |= (__arg << 24) & 0xff000000;\n\
394 return __result;\n\
395 }\n\n\
396 /* Convert a host short to a network short. */\n\n\
397 static __inline__ unsigned short\n\
398 htons (unsigned int __arg)\n\
399 {\n\
400 register unsigned short __result;\n\n\
401 __result = (__arg << 8) & 0xff00;\n\
402 __result |= (__arg >> 8) & 0x00ff;\n\
403 return __result;\n\
404 }\n\n\
405 #else /* must be a big-endian machine */\n\n\
406 #ifndef __BYTE_ORDER__\n\
407 #define __BYTE_ORDER__ __BIG_ENDIAN__\n\
408 #endif\n\n\
409 /* Convert a host long to a network long. */\n\n\
410 static __inline__ unsigned long\n\
411 htonl (unsigned long __arg)\n\
412 {\n\
413 return __arg;\n\
414 }\n\n\
415 /* Convert a host short to a network short. */\n\n\
416 static __inline__ unsigned short\n\
417 htons (unsigned int __arg)\n\
418 {\n\
419 return __arg;\n\
420 }\n\n\
421 #endif /* big-endian */\n\n\
422 /* Convert a network long to a host long. */\n\n\
423 static __inline__ unsigned long\n\
424 ntohl (unsigned long __arg)\n\
425 {\n\
426 return htonl (__arg);\n\
427 }\n\n\
428 /* Convert a network short to a host short. */\n\n\
429 static __inline__ unsigned short\n\
430 ntohs (unsigned int __arg)\n\
431 {\n\
432 return htons (__arg);\n\
433 }\n\
434 #endif\n",
435 (char*)NULL };
436
437 /* * * * * * * * * * * * * * * * * * * * * * * * * *
438 *
439 * Description of Aab_Ultrix_Ansi_Compat fix
440 */
441 tSCC zAab_Ultrix_Ansi_CompatName[] =
442 "AAB_ultrix_ansi_compat";
443
444 /*
445 * File name selection pattern
446 */
447 tSCC zAab_Ultrix_Ansi_CompatList[] =
448 "|ansi_compat.h|";
449 /*
450 * Machine/OS name selection pattern
451 */
452 #define apzAab_Ultrix_Ansi_CompatMachs (const char**)NULL
453
454 /*
455 * content selection pattern - do fix if pattern found
456 */
457 tSCC zAab_Ultrix_Ansi_CompatSelect0[] =
458 "ULTRIX";
459
460 #define AAB_ULTRIX_ANSI_COMPAT_TEST_CT 1
461 static tTestDesc aAab_Ultrix_Ansi_CompatTests[] = {
462 { TT_EGREP, zAab_Ultrix_Ansi_CompatSelect0, (regex_t*)NULL }, };
463
464 /*
465 * Fix Command Arguments for Aab_Ultrix_Ansi_Compat
466 */
467 static const char* apzAab_Ultrix_Ansi_CompatPatch[] = {
468 "/* This file intentionally left blank. */\n",
469 (char*)NULL };
470
471 /* * * * * * * * * * * * * * * * * * * * * * * * * *
472 *
473 * Description of Aab_Ultrix_Limits fix
474 */
475 tSCC zAab_Ultrix_LimitsName[] =
476 "AAB_ultrix_limits";
477
478 /*
479 * File name selection pattern
480 */
481 tSCC zAab_Ultrix_LimitsList[] =
482 "|limits.h|";
483 /*
484 * Machine/OS name selection pattern
485 */
486 tSCC* apzAab_Ultrix_LimitsMachs[] = {
487 "*-*-ultrix4.3",
488 (const char*)NULL };
489 #define AAB_ULTRIX_LIMITS_TEST_CT 0
490 #define aAab_Ultrix_LimitsTests (tTestDesc*)NULL
491
492 /*
493 * Fix Command Arguments for Aab_Ultrix_Limits
494 */
495 static const char* apzAab_Ultrix_LimitsPatch[] = {
496 "#ifndef _LIMITS_INCLUDED\n\
497 #define _LIMITS_INCLUDED\n\
498 #include <sys/limits.h>\n\
499 #endif /* _LIMITS_INCLUDED */\n",
500 (char*)NULL };
501
502 /* * * * * * * * * * * * * * * * * * * * * * * * * *
503 *
504 * Description of Aab_Ultrix_Memory fix
505 */
506 tSCC zAab_Ultrix_MemoryName[] =
507 "AAB_ultrix_memory";
508
509 /*
510 * File name selection pattern
511 */
512 tSCC zAab_Ultrix_MemoryList[] =
513 "|memory.h|";
514 /*
515 * Machine/OS name selection pattern
516 */
517 tSCC* apzAab_Ultrix_MemoryMachs[] = {
518 "*-*-ultrix4.3",
519 (const char*)NULL };
520 #define AAB_ULTRIX_MEMORY_TEST_CT 0
521 #define aAab_Ultrix_MemoryTests (tTestDesc*)NULL
522
523 /*
524 * Fix Command Arguments for Aab_Ultrix_Memory
525 */
526 static const char* apzAab_Ultrix_MemoryPatch[] = {
527 "#ifndef _MEMORY_INCLUDED\n\
528 #define _MEMORY_INCLUDED\n\
529 #include <strings.h>\n\
530 #endif /* _MEMORY_INCLUDED */\n",
531 (char*)NULL };
532
533 /* * * * * * * * * * * * * * * * * * * * * * * * * *
534 *
535 * Description of Aab_Ultrix_String fix
536 */
537 tSCC zAab_Ultrix_StringName[] =
538 "AAB_ultrix_string";
539
540 /*
541 * File name selection pattern
542 */
543 tSCC zAab_Ultrix_StringList[] =
544 "|string.h|";
545 /*
546 * Machine/OS name selection pattern
547 */
548 tSCC* apzAab_Ultrix_StringMachs[] = {
549 "*-*-ultrix4.3",
550 (const char*)NULL };
551 #define AAB_ULTRIX_STRING_TEST_CT 0
552 #define aAab_Ultrix_StringTests (tTestDesc*)NULL
553
554 /*
555 * Fix Command Arguments for Aab_Ultrix_String
556 */
557 static const char* apzAab_Ultrix_StringPatch[] = {
558 "#ifndef _STRING_INCLUDED\n\
559 #define _STRING_INCLUDED\n\
560 #include <strings.h>\n\
561 #endif /* _STRING_INCLUDED */\n",
562 (char*)NULL };
563
564 /* * * * * * * * * * * * * * * * * * * * * * * * * *
565 *
566 * Description of Aix_Pthread fix
567 */
568 tSCC zAix_PthreadName[] =
569 "aix_pthread";
570
571 /*
572 * File name selection pattern
573 */
574 tSCC zAix_PthreadList[] =
575 "|pthread.h|";
576 /*
577 * Machine/OS name selection pattern
578 */
579 #define apzAix_PthreadMachs (const char**)NULL
580
581 /*
582 * content selection pattern - do fix if pattern found
583 */
584 tSCC zAix_PthreadSelect0[] =
585 "(#define [A-Za-z_0-9]+)(\\\\\n\
586 [^A-Za-z_0-9 \t\n\
587 (])";
588
589 #define AIX_PTHREAD_TEST_CT 1
590 static tTestDesc aAix_PthreadTests[] = {
591 { TT_EGREP, zAix_PthreadSelect0, (regex_t*)NULL }, };
592
593 /*
594 * Fix Command Arguments for Aix_Pthread
595 */
596 static const char* apzAix_PthreadPatch[] = {
597 "format",
598 "%1 %2",
599 (char*)NULL };
600
601 /* * * * * * * * * * * * * * * * * * * * * * * * * *
602 *
603 * Description of Aix_Sysmachine fix
604 */
605 tSCC zAix_SysmachineName[] =
606 "aix_sysmachine";
607
608 /*
609 * File name selection pattern
610 */
611 tSCC zAix_SysmachineList[] =
612 "|sys/machine.h|";
613 /*
614 * Machine/OS name selection pattern
615 */
616 #define apzAix_SysmachineMachs (const char**)NULL
617
618 /*
619 * content selection pattern - do fix if pattern found
620 */
621 tSCC zAix_SysmachineSelect0[] =
622 "\\\\ +\n";
623
624 #define AIX_SYSMACHINE_TEST_CT 1
625 static tTestDesc aAix_SysmachineTests[] = {
626 { TT_EGREP, zAix_SysmachineSelect0, (regex_t*)NULL }, };
627
628 /*
629 * Fix Command Arguments for Aix_Sysmachine
630 */
631 static const char* apzAix_SysmachinePatch[] = {
632 "format",
633 "\\\n",
634 (char*)NULL };
635
636 /* * * * * * * * * * * * * * * * * * * * * * * * * *
637 *
638 * Description of Aix_Syswait fix
639 */
640 tSCC zAix_SyswaitName[] =
641 "aix_syswait";
642
643 /*
644 * File name selection pattern
645 */
646 tSCC zAix_SyswaitList[] =
647 "|sys/wait.h|";
648 /*
649 * Machine/OS name selection pattern
650 */
651 #define apzAix_SyswaitMachs (const char**)NULL
652
653 /*
654 * content selection pattern - do fix if pattern found
655 */
656 tSCC zAix_SyswaitSelect0[] =
657 "^extern pid_t wait3\\(\\);\n";
658 tSCC zAix_SyswaitSelect1[] =
659 "bos325,";
660
661 #define AIX_SYSWAIT_TEST_CT 2
662 static tTestDesc aAix_SyswaitTests[] = {
663 { TT_EGREP, zAix_SyswaitSelect0, (regex_t*)NULL },
664 { TT_EGREP, zAix_SyswaitSelect1, (regex_t*)NULL }, };
665
666 /*
667 * Fix Command Arguments for Aix_Syswait
668 */
669 static const char* apzAix_SyswaitPatch[] = {
670 "format",
671 "struct rusage;\n\
672 %0",
673 (char*)NULL };
674
675 /* * * * * * * * * * * * * * * * * * * * * * * * * *
676 *
677 * Description of Aix_Volatile fix
678 */
679 tSCC zAix_VolatileName[] =
680 "aix_volatile";
681
682 /*
683 * File name selection pattern
684 */
685 tSCC zAix_VolatileList[] =
686 "|sys/signal.h|";
687 /*
688 * Machine/OS name selection pattern
689 */
690 #define apzAix_VolatileMachs (const char**)NULL
691
692 /*
693 * content selection pattern - do fix if pattern found
694 */
695 tSCC zAix_VolatileSelect0[] =
696 "typedef volatile int sig_atomic_t";
697
698 #define AIX_VOLATILE_TEST_CT 1
699 static tTestDesc aAix_VolatileTests[] = {
700 { TT_EGREP, zAix_VolatileSelect0, (regex_t*)NULL }, };
701
702 /*
703 * Fix Command Arguments for Aix_Volatile
704 */
705 static const char* apzAix_VolatilePatch[] = {
706 "format",
707 "typedef int sig_atomic_t",
708 (char*)NULL };
709
710 /* * * * * * * * * * * * * * * * * * * * * * * * * *
711 *
712 * Description of Alpha___Assert fix
713 */
714 tSCC zAlpha___AssertName[] =
715 "alpha___assert";
716
717 /*
718 * File name selection pattern
719 */
720 tSCC zAlpha___AssertList[] =
721 "|assert.h|";
722 /*
723 * Machine/OS name selection pattern
724 */
725 #define apzAlpha___AssertMachs (const char**)NULL
726
727 /*
728 * content selection pattern - do fix if pattern found
729 */
730 tSCC zAlpha___AssertSelect0[] =
731 "__assert\\(char \\*, char \\*, int\\)";
732
733 #define ALPHA___ASSERT_TEST_CT 1
734 static tTestDesc aAlpha___AssertTests[] = {
735 { TT_EGREP, zAlpha___AssertSelect0, (regex_t*)NULL }, };
736
737 /*
738 * Fix Command Arguments for Alpha___Assert
739 */
740 static const char* apzAlpha___AssertPatch[] = {
741 "format",
742 "__assert(const char *, const char *, int)",
743 (char*)NULL };
744
745 /* * * * * * * * * * * * * * * * * * * * * * * * * *
746 *
747 * Description of Alpha_Assert fix
748 */
749 tSCC zAlpha_AssertName[] =
750 "alpha_assert";
751
752 /*
753 * File name selection pattern
754 */
755 tSCC zAlpha_AssertList[] =
756 "|assert.h|";
757 /*
758 * Machine/OS name selection pattern
759 */
760 #define apzAlpha_AssertMachs (const char**)NULL
761
762 /*
763 * content selection pattern - do fix if pattern found
764 */
765 tSCC zAlpha_AssertSelect0[] =
766 "(#define assert\\(EX\\).*)\\(\\(int\\) \\(EX\\)\\)";
767
768 #define ALPHA_ASSERT_TEST_CT 1
769 static tTestDesc aAlpha_AssertTests[] = {
770 { TT_EGREP, zAlpha_AssertSelect0, (regex_t*)NULL }, };
771
772 /*
773 * Fix Command Arguments for Alpha_Assert
774 */
775 static const char* apzAlpha_AssertPatch[] = {
776 "format",
777 "%1(EX)",
778 (char*)NULL };
779
780 /* * * * * * * * * * * * * * * * * * * * * * * * * *
781 *
782 * Description of Alpha_Getopt fix
783 */
784 tSCC zAlpha_GetoptName[] =
785 "alpha_getopt";
786
787 /*
788 * File name selection pattern
789 */
790 tSCC zAlpha_GetoptList[] =
791 "|stdio.h|stdlib.h|";
792 /*
793 * Machine/OS name selection pattern
794 */
795 #define apzAlpha_GetoptMachs (const char**)NULL
796
797 /*
798 * content selection pattern - do fix if pattern found
799 */
800 tSCC zAlpha_GetoptSelect0[] =
801 "getopt\\(int, char \\*\\[\\], *char \\*\\)";
802
803 #define ALPHA_GETOPT_TEST_CT 1
804 static tTestDesc aAlpha_GetoptTests[] = {
805 { TT_EGREP, zAlpha_GetoptSelect0, (regex_t*)NULL }, };
806
807 /*
808 * Fix Command Arguments for Alpha_Getopt
809 */
810 static const char* apzAlpha_GetoptPatch[] = {
811 "format",
812 "getopt(int, char *const[], const char *)",
813 (char*)NULL };
814
815 /* * * * * * * * * * * * * * * * * * * * * * * * * *
816 *
817 * Description of Alpha_Parens fix
818 */
819 tSCC zAlpha_ParensName[] =
820 "alpha_parens";
821
822 /*
823 * File name selection pattern
824 */
825 tSCC zAlpha_ParensList[] =
826 "|sym.h|";
827 /*
828 * Machine/OS name selection pattern
829 */
830 #define apzAlpha_ParensMachs (const char**)NULL
831
832 /*
833 * content selection pattern - do fix if pattern found
834 */
835 tSCC zAlpha_ParensSelect0[] =
836 "#ifndef\\(__mips64\\)";
837
838 #define ALPHA_PARENS_TEST_CT 1
839 static tTestDesc aAlpha_ParensTests[] = {
840 { TT_EGREP, zAlpha_ParensSelect0, (regex_t*)NULL }, };
841
842 /*
843 * Fix Command Arguments for Alpha_Parens
844 */
845 static const char* apzAlpha_ParensPatch[] = {
846 "format",
847 "#ifndef __mips64",
848 (char*)NULL };
849
850 /* * * * * * * * * * * * * * * * * * * * * * * * * *
851 *
852 * Description of Alpha_Sbrk fix
853 */
854 tSCC zAlpha_SbrkName[] =
855 "alpha_sbrk";
856
857 /*
858 * File name selection pattern
859 */
860 tSCC zAlpha_SbrkList[] =
861 "|unistd.h|";
862 /*
863 * Machine/OS name selection pattern
864 */
865 #define apzAlpha_SbrkMachs (const char**)NULL
866
867 /*
868 * content selection pattern - do fix if pattern found
869 */
870 tSCC zAlpha_SbrkSelect0[] =
871 "char[ \t]*\\*[\t ]*sbrk[ \t]*\\(";
872
873 #define ALPHA_SBRK_TEST_CT 1
874 static tTestDesc aAlpha_SbrkTests[] = {
875 { TT_EGREP, zAlpha_SbrkSelect0, (regex_t*)NULL }, };
876
877 /*
878 * Fix Command Arguments for Alpha_Sbrk
879 */
880 static const char* apzAlpha_SbrkPatch[] = {
881 "format",
882 "void *sbrk(",
883 (char*)NULL };
884
885 /* * * * * * * * * * * * * * * * * * * * * * * * * *
886 *
887 * Description of Arm_Norcroft_Hint fix
888 */
889 tSCC zArm_Norcroft_HintName[] =
890 "arm_norcroft_hint";
891
892 /*
893 * File name selection pattern
894 */
895 tSCC zArm_Norcroft_HintList[] =
896 "|X11/Intrinsic.h|";
897 /*
898 * Machine/OS name selection pattern
899 */
900 #define apzArm_Norcroft_HintMachs (const char**)NULL
901
902 /*
903 * content selection pattern - do fix if pattern found
904 */
905 tSCC zArm_Norcroft_HintSelect0[] =
906 "___type p_type";
907
908 #define ARM_NORCROFT_HINT_TEST_CT 1
909 static tTestDesc aArm_Norcroft_HintTests[] = {
910 { TT_EGREP, zArm_Norcroft_HintSelect0, (regex_t*)NULL }, };
911
912 /*
913 * Fix Command Arguments for Arm_Norcroft_Hint
914 */
915 static const char* apzArm_Norcroft_HintPatch[] = {
916 "format",
917 "p_type",
918 (char*)NULL };
919
920 /* * * * * * * * * * * * * * * * * * * * * * * * * *
921 *
922 * Description of Arm_Wchar fix
923 */
924 tSCC zArm_WcharName[] =
925 "arm_wchar";
926
927 /*
928 * File name selection pattern
929 */
930 tSCC zArm_WcharList[] =
931 "|stdlib.h|";
932 /*
933 * Machine/OS name selection pattern
934 */
935 #define apzArm_WcharMachs (const char**)NULL
936
937 /*
938 * content selection pattern - do fix if pattern found
939 */
940 tSCC zArm_WcharSelect0[] =
941 "#[ \t]*define[ \t]*__wchar_t";
942
943 #define ARM_WCHAR_TEST_CT 1
944 static tTestDesc aArm_WcharTests[] = {
945 { TT_EGREP, zArm_WcharSelect0, (regex_t*)NULL }, };
946
947 /*
948 * Fix Command Arguments for Arm_Wchar
949 */
950 static const char* apzArm_WcharPatch[] = {
951 "format",
952 "%1_GCC_WCHAR_T",
953 "(#[ \t]*(ifndef|define)[ \t]+)__wchar_t",
954 (char*)NULL };
955
956 /* * * * * * * * * * * * * * * * * * * * * * * * * *
957 *
958 * Description of Aux_Asm fix
959 */
960 tSCC zAux_AsmName[] =
961 "aux_asm";
962
963 /*
964 * File name selection pattern
965 */
966 tSCC zAux_AsmList[] =
967 "|sys/param.h|";
968 /*
969 * Machine/OS name selection pattern
970 */
971 #define apzAux_AsmMachs (const char**)NULL
972
973 /*
974 * content selection pattern - do fix if pattern found
975 */
976 tSCC zAux_AsmSelect0[] =
977 "#ifndef NOINLINE";
978
979 #define AUX_ASM_TEST_CT 1
980 static tTestDesc aAux_AsmTests[] = {
981 { TT_EGREP, zAux_AsmSelect0, (regex_t*)NULL }, };
982
983 /*
984 * Fix Command Arguments for Aux_Asm
985 */
986 static const char* apzAux_AsmPatch[] = {
987 "format",
988 "#if !defined(NOINLINE) && !defined(__GNUC__)",
989 (char*)NULL };
990
991 /* * * * * * * * * * * * * * * * * * * * * * * * * *
992 *
993 * Description of Avoid_Bool_Define fix
994 */
995 tSCC zAvoid_Bool_DefineName[] =
996 "avoid_bool_define";
997
998 /*
999 * File name selection pattern
1000 */
1001 tSCC zAvoid_Bool_DefineList[] =
1002 "|curses.h|curses_colr/curses.h|term.h|tinfo.h|";
1003 /*
1004 * Machine/OS name selection pattern
1005 */
1006 #define apzAvoid_Bool_DefineMachs (const char**)NULL
1007
1008 /*
1009 * content selection pattern - do fix if pattern found
1010 */
1011 tSCC zAvoid_Bool_DefineSelect0[] =
1012 "#[ \t]*define[ \t]+bool[ \t]";
1013
1014 /*
1015 * content bypass pattern - skip fix if pattern found
1016 */
1017 tSCC zAvoid_Bool_DefineBypass0[] =
1018 "we must use the C\\+\\+ compiler's type";
1019
1020 #define AVOID_BOOL_DEFINE_TEST_CT 2
1021 static tTestDesc aAvoid_Bool_DefineTests[] = {
1022 { TT_NEGREP, zAvoid_Bool_DefineBypass0, (regex_t*)NULL },
1023 { TT_EGREP, zAvoid_Bool_DefineSelect0, (regex_t*)NULL }, };
1024
1025 /*
1026 * Fix Command Arguments for Avoid_Bool_Define
1027 */
1028 static const char* apzAvoid_Bool_DefinePatch[] = {
1029 "format",
1030 "#ifndef __cplusplus\n\
1031 %0\n\
1032 #endif",
1033 "^[ \t]*#[ \t]*define[ \t]+bool[ \t].*",
1034 (char*)NULL };
1035
1036 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1037 *
1038 * Description of Avoid_Bool_Type fix
1039 */
1040 tSCC zAvoid_Bool_TypeName[] =
1041 "avoid_bool_type";
1042
1043 /*
1044 * File name selection pattern
1045 */
1046 tSCC zAvoid_Bool_TypeList[] =
1047 "|curses.h|curses_colr/curses.h|term.h|tinfo.h|";
1048 /*
1049 * Machine/OS name selection pattern
1050 */
1051 #define apzAvoid_Bool_TypeMachs (const char**)NULL
1052
1053 /*
1054 * content selection pattern - do fix if pattern found
1055 */
1056 tSCC zAvoid_Bool_TypeSelect0[] =
1057 "^[ \t]*typedef[ \t].*[ \t]bool[ \t]*;";
1058
1059 /*
1060 * content bypass pattern - skip fix if pattern found
1061 */
1062 tSCC zAvoid_Bool_TypeBypass0[] =
1063 "we must use the C\\+\\+ compiler's type";
1064
1065 #define AVOID_BOOL_TYPE_TEST_CT 2
1066 static tTestDesc aAvoid_Bool_TypeTests[] = {
1067 { TT_NEGREP, zAvoid_Bool_TypeBypass0, (regex_t*)NULL },
1068 { TT_EGREP, zAvoid_Bool_TypeSelect0, (regex_t*)NULL }, };
1069
1070 /*
1071 * Fix Command Arguments for Avoid_Bool_Type
1072 */
1073 static const char* apzAvoid_Bool_TypePatch[] = {
1074 "format",
1075 "#ifndef __cplusplus\n\
1076 %0\n\
1077 #endif",
1078 (char*)NULL };
1079
1080 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1081 *
1082 * Description of Avoid_Wchar_T_Type fix
1083 */
1084 tSCC zAvoid_Wchar_T_TypeName[] =
1085 "avoid_wchar_t_type";
1086
1087 /*
1088 * File name selection pattern
1089 */
1090 #define zAvoid_Wchar_T_TypeList (char*)NULL
1091 /*
1092 * Machine/OS name selection pattern
1093 */
1094 #define apzAvoid_Wchar_T_TypeMachs (const char**)NULL
1095
1096 /*
1097 * content selection pattern - do fix if pattern found
1098 */
1099 tSCC zAvoid_Wchar_T_TypeSelect0[] =
1100 "^[ \t]*typedef[ \t].*[ \t]wchar_t[ \t]*;";
1101
1102 #define AVOID_WCHAR_T_TYPE_TEST_CT 1
1103 static tTestDesc aAvoid_Wchar_T_TypeTests[] = {
1104 { TT_EGREP, zAvoid_Wchar_T_TypeSelect0, (regex_t*)NULL }, };
1105
1106 /*
1107 * Fix Command Arguments for Avoid_Wchar_T_Type
1108 */
1109 static const char* apzAvoid_Wchar_T_TypePatch[] = {
1110 "format",
1111 "#ifndef __cplusplus\n\
1112 %0\n\
1113 #endif",
1114 (char*)NULL };
1115
1116 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1117 *
1118 * Description of Bad_Lval fix
1119 */
1120 tSCC zBad_LvalName[] =
1121 "bad_lval";
1122
1123 /*
1124 * File name selection pattern
1125 */
1126 tSCC zBad_LvalList[] =
1127 "|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|";
1128 /*
1129 * Machine/OS name selection pattern
1130 */
1131 #define apzBad_LvalMachs (const char**)NULL
1132
1133 /*
1134 * content selection pattern - do fix if pattern found
1135 */
1136 tSCC zBad_LvalSelect0[] =
1137 "^[ \t]*#[ \t]*pragma[ \t]+extern_prefix";
1138
1139 #define BAD_LVAL_TEST_CT 1
1140 static tTestDesc aBad_LvalTests[] = {
1141 { TT_EGREP, zBad_LvalSelect0, (regex_t*)NULL }, };
1142
1143 /*
1144 * Fix Command Arguments for Bad_Lval
1145 */
1146 static const char* apzBad_LvalPatch[] = { "sed",
1147 "-e", "s/^[ \t]*#[ \t]*define[ \t][ \t]*\\([^(]*\\)\\(([^)]*)\\)[ \t]*\\(_.*\\)\\1\\2[ \t]*$/#define \\1 \\3\\1/",
1148 (char*)NULL };
1149
1150 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1151 *
1152 * Description of Bad_Struct_Term fix
1153 */
1154 tSCC zBad_Struct_TermName[] =
1155 "bad_struct_term";
1156
1157 /*
1158 * File name selection pattern
1159 */
1160 tSCC zBad_Struct_TermList[] =
1161 "|curses.h|";
1162 /*
1163 * Machine/OS name selection pattern
1164 */
1165 #define apzBad_Struct_TermMachs (const char**)NULL
1166
1167 /*
1168 * content selection pattern - do fix if pattern found
1169 */
1170 tSCC zBad_Struct_TermSelect0[] =
1171 "^[ \t]*typedef[ \t]+struct[ \t]+term[ \t]*;";
1172
1173 #define BAD_STRUCT_TERM_TEST_CT 1
1174 static tTestDesc aBad_Struct_TermTests[] = {
1175 { TT_EGREP, zBad_Struct_TermSelect0, (regex_t*)NULL }, };
1176
1177 /*
1178 * Fix Command Arguments for Bad_Struct_Term
1179 */
1180 static const char* apzBad_Struct_TermPatch[] = {
1181 "format",
1182 "struct term;",
1183 (char*)NULL };
1184
1185 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1186 *
1187 * Description of Badquote fix
1188 */
1189 tSCC zBadquoteName[] =
1190 "badquote";
1191
1192 /*
1193 * File name selection pattern
1194 */
1195 tSCC zBadquoteList[] =
1196 "|sundev/vuid_event.h|";
1197 /*
1198 * Machine/OS name selection pattern
1199 */
1200 #define apzBadquoteMachs (const char**)NULL
1201
1202 /*
1203 * content selection pattern - do fix if pattern found
1204 */
1205 tSCC zBadquoteSelect0[] =
1206 "doesn't";
1207
1208 #define BADQUOTE_TEST_CT 1
1209 static tTestDesc aBadquoteTests[] = {
1210 { TT_EGREP, zBadquoteSelect0, (regex_t*)NULL }, };
1211
1212 /*
1213 * Fix Command Arguments for Badquote
1214 */
1215 static const char* apzBadquotePatch[] = {
1216 "format",
1217 "does not",
1218 (char*)NULL };
1219
1220 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1221 *
1222 * Description of Broken_Assert_Stdio fix
1223 */
1224 tSCC zBroken_Assert_StdioName[] =
1225 "broken_assert_stdio";
1226
1227 /*
1228 * File name selection pattern
1229 */
1230 tSCC zBroken_Assert_StdioList[] =
1231 "|assert.h|";
1232 /*
1233 * Machine/OS name selection pattern
1234 */
1235 #define apzBroken_Assert_StdioMachs (const char**)NULL
1236
1237 /*
1238 * content selection pattern - do fix if pattern found
1239 */
1240 tSCC zBroken_Assert_StdioSelect0[] =
1241 "stderr";
1242
1243 /*
1244 * content bypass pattern - skip fix if pattern found
1245 */
1246 tSCC zBroken_Assert_StdioBypass0[] =
1247 "include.*stdio\\.h";
1248
1249 #define BROKEN_ASSERT_STDIO_TEST_CT 2
1250 static tTestDesc aBroken_Assert_StdioTests[] = {
1251 { TT_NEGREP, zBroken_Assert_StdioBypass0, (regex_t*)NULL },
1252 { TT_EGREP, zBroken_Assert_StdioSelect0, (regex_t*)NULL }, };
1253
1254 /*
1255 * Fix Command Arguments for Broken_Assert_Stdio
1256 */
1257 static const char* apzBroken_Assert_StdioPatch[] = {
1258 "wrap",
1259 "#include <stdio.h>\n",
1260 (char*)NULL };
1261
1262 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1263 *
1264 * Description of Broken_Assert_Stdlib fix
1265 */
1266 tSCC zBroken_Assert_StdlibName[] =
1267 "broken_assert_stdlib";
1268
1269 /*
1270 * File name selection pattern
1271 */
1272 tSCC zBroken_Assert_StdlibList[] =
1273 "|assert.h|";
1274 /*
1275 * Machine/OS name selection pattern
1276 */
1277 #define apzBroken_Assert_StdlibMachs (const char**)NULL
1278
1279 /*
1280 * content selection pattern - do fix if pattern found
1281 */
1282 tSCC zBroken_Assert_StdlibSelect0[] =
1283 "exit *\\(|abort *\\(";
1284
1285 /*
1286 * content bypass pattern - skip fix if pattern found
1287 */
1288 tSCC zBroken_Assert_StdlibBypass0[] =
1289 "include.*stdlib\\.h";
1290
1291 #define BROKEN_ASSERT_STDLIB_TEST_CT 2
1292 static tTestDesc aBroken_Assert_StdlibTests[] = {
1293 { TT_NEGREP, zBroken_Assert_StdlibBypass0, (regex_t*)NULL },
1294 { TT_EGREP, zBroken_Assert_StdlibSelect0, (regex_t*)NULL }, };
1295
1296 /*
1297 * Fix Command Arguments for Broken_Assert_Stdlib
1298 */
1299 static const char* apzBroken_Assert_StdlibPatch[] = {
1300 "wrap",
1301 "#ifdef __cplusplus\n\
1302 #include <stdlib.h>\n\
1303 #endif\n",
1304 (char*)NULL };
1305
1306 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1307 *
1308 * Description of Broken_Cabs fix
1309 */
1310 tSCC zBroken_CabsName[] =
1311 "broken_cabs";
1312
1313 /*
1314 * File name selection pattern
1315 */
1316 tSCC zBroken_CabsList[] =
1317 "|math.h|";
1318 /*
1319 * Machine/OS name selection pattern
1320 */
1321 #define apzBroken_CabsMachs (const char**)NULL
1322
1323 /*
1324 * content selection pattern - do fix if pattern found
1325 */
1326 tSCC zBroken_CabsSelect0[] =
1327 "^extern[ \\t]+double[ \\t]+cabs";
1328
1329 #define BROKEN_CABS_TEST_CT 1
1330 static tTestDesc aBroken_CabsTests[] = {
1331 { TT_EGREP, zBroken_CabsSelect0, (regex_t*)NULL }, };
1332
1333 /*
1334 * Fix Command Arguments for Broken_Cabs
1335 */
1336 static const char* apzBroken_CabsPatch[] = {
1337 "format",
1338 "",
1339 "^extern[ \t]+double[ \t]+cabs\\((struct dbl_hypot|)\\);",
1340 (char*)NULL };
1341
1342 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1343 *
1344 * Description of Ctrl_Quotes_Def fix
1345 */
1346 tSCC zCtrl_Quotes_DefName[] =
1347 "ctrl_quotes_def";
1348
1349 /*
1350 * File name selection pattern
1351 */
1352 #define zCtrl_Quotes_DefList (char*)NULL
1353 /*
1354 * Machine/OS name selection pattern
1355 */
1356 #define apzCtrl_Quotes_DefMachs (const char**)NULL
1357
1358 /*
1359 * content selection pattern - do fix if pattern found
1360 */
1361 tSCC zCtrl_Quotes_DefSelect0[] =
1362 "define[ \t]+[A-Z0-9_]+CTRL\\([a-zA-Z][,)]";
1363
1364 #define CTRL_QUOTES_DEF_TEST_CT 1
1365 static tTestDesc aCtrl_Quotes_DefTests[] = {
1366 { TT_EGREP, zCtrl_Quotes_DefSelect0, (regex_t*)NULL }, };
1367
1368 /*
1369 * Fix Command Arguments for Ctrl_Quotes_Def
1370 */
1371 static const char* apzCtrl_Quotes_DefPatch[] = {
1372 "char_macro_def",
1373 "CTRL",
1374 (char*)NULL };
1375
1376 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1377 *
1378 * Description of Ctrl_Quotes_Use fix
1379 */
1380 tSCC zCtrl_Quotes_UseName[] =
1381 "ctrl_quotes_use";
1382
1383 /*
1384 * File name selection pattern
1385 */
1386 #define zCtrl_Quotes_UseList (char*)NULL
1387 /*
1388 * Machine/OS name selection pattern
1389 */
1390 #define apzCtrl_Quotes_UseMachs (const char**)NULL
1391
1392 /*
1393 * content selection pattern - do fix if pattern found
1394 */
1395 tSCC zCtrl_Quotes_UseSelect0[] =
1396 "define[ \t]+[A-Z0-9_]+[ \t]+[A-Z0-9_]+CTRL[ \t]*\\( *[^,']";
1397
1398 #define CTRL_QUOTES_USE_TEST_CT 1
1399 static tTestDesc aCtrl_Quotes_UseTests[] = {
1400 { TT_EGREP, zCtrl_Quotes_UseSelect0, (regex_t*)NULL }, };
1401
1402 /*
1403 * Fix Command Arguments for Ctrl_Quotes_Use
1404 */
1405 static const char* apzCtrl_Quotes_UsePatch[] = {
1406 "char_macro_use",
1407 "CTRL",
1408 (char*)NULL };
1409
1410 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1411 *
1412 * Description of Cxx_Unready fix
1413 */
1414 tSCC zCxx_UnreadyName[] =
1415 "cxx_unready";
1416
1417 /*
1418 * File name selection pattern
1419 */
1420 tSCC zCxx_UnreadyList[] =
1421 "|sys/mman.h|rpc/types.h|";
1422 /*
1423 * Machine/OS name selection pattern
1424 */
1425 #define apzCxx_UnreadyMachs (const char**)NULL
1426
1427 /*
1428 * content selection pattern - do fix if pattern found
1429 */
1430 tSCC zCxx_UnreadySelect0[] =
1431 "[^#]+malloc.*;";
1432
1433 /*
1434 * content bypass pattern - skip fix if pattern found
1435 */
1436 tSCC zCxx_UnreadyBypass0[] =
1437 "\"C\"|__BEGIN_DECLS";
1438
1439 #define CXX_UNREADY_TEST_CT 2
1440 static tTestDesc aCxx_UnreadyTests[] = {
1441 { TT_NEGREP, zCxx_UnreadyBypass0, (regex_t*)NULL },
1442 { TT_EGREP, zCxx_UnreadySelect0, (regex_t*)NULL }, };
1443
1444 /*
1445 * Fix Command Arguments for Cxx_Unready
1446 */
1447 static const char* apzCxx_UnreadyPatch[] = {
1448 "wrap",
1449 "#ifdef __cplusplus\n\
1450 extern \"C\" {\n\
1451 #endif\n",
1452 "#ifdef __cplusplus\n\
1453 }\n\
1454 #endif\n",
1455 (char*)NULL };
1456
1457 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1458 *
1459 * Description of Dec_Intern_Asm fix
1460 */
1461 tSCC zDec_Intern_AsmName[] =
1462 "dec_intern_asm";
1463
1464 /*
1465 * File name selection pattern
1466 */
1467 tSCC zDec_Intern_AsmList[] =
1468 "|c_asm.h|";
1469 /*
1470 * Machine/OS name selection pattern
1471 */
1472 #define apzDec_Intern_AsmMachs (const char**)NULL
1473 #define DEC_INTERN_ASM_TEST_CT 0
1474 #define aDec_Intern_AsmTests (tTestDesc*)NULL
1475
1476 /*
1477 * Fix Command Arguments for Dec_Intern_Asm
1478 */
1479 static const char* apzDec_Intern_AsmPatch[] = { "sed",
1480 "-e", "/^[ \t]*float[ \t]*fasm/i\\\n\
1481 #ifdef __DECC\n",
1482 "-e", "/^[ \t]*#[ \t]*pragma[ \t]*intrinsic([ \t]*dasm/a\\\n\
1483 #endif\n",
1484 (char*)NULL };
1485
1486 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1487 *
1488 * Description of Djgpp_Wchar_H fix
1489 */
1490 tSCC zDjgpp_Wchar_HName[] =
1491 "djgpp_wchar_h";
1492
1493 /*
1494 * File name selection pattern
1495 */
1496 #define zDjgpp_Wchar_HList (char*)NULL
1497 /*
1498 * Machine/OS name selection pattern
1499 */
1500 #define apzDjgpp_Wchar_HMachs (const char**)NULL
1501
1502 /*
1503 * content selection pattern - do fix if pattern found
1504 */
1505 tSCC zDjgpp_Wchar_HSelect0[] =
1506 "__DJ_wint_t";
1507
1508 /*
1509 * content bypass pattern - skip fix if pattern found
1510 */
1511 tSCC zDjgpp_Wchar_HBypass0[] =
1512 "sys/djtypes.h";
1513
1514 #define DJGPP_WCHAR_H_TEST_CT 2
1515 static tTestDesc aDjgpp_Wchar_HTests[] = {
1516 { TT_NEGREP, zDjgpp_Wchar_HBypass0, (regex_t*)NULL },
1517 { TT_EGREP, zDjgpp_Wchar_HSelect0, (regex_t*)NULL }, };
1518
1519 /*
1520 * Fix Command Arguments for Djgpp_Wchar_H
1521 */
1522 static const char* apzDjgpp_Wchar_HPatch[] = {
1523 "format",
1524 "%0\n\
1525 #include <sys/djtypes.h>",
1526 "#include <stddef.h>",
1527 (char*)NULL };
1528
1529 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1530 *
1531 * Description of Ecd_Cursor fix
1532 */
1533 tSCC zEcd_CursorName[] =
1534 "ecd_cursor";
1535
1536 /*
1537 * File name selection pattern
1538 */
1539 tSCC zEcd_CursorList[] =
1540 "|sunwindow/win_lock.h|sunwindow/win_cursor.h|";
1541 /*
1542 * Machine/OS name selection pattern
1543 */
1544 #define apzEcd_CursorMachs (const char**)NULL
1545
1546 /*
1547 * content selection pattern - do fix if pattern found
1548 */
1549 tSCC zEcd_CursorSelect0[] =
1550 "ecd\\.cursor";
1551
1552 #define ECD_CURSOR_TEST_CT 1
1553 static tTestDesc aEcd_CursorTests[] = {
1554 { TT_EGREP, zEcd_CursorSelect0, (regex_t*)NULL }, };
1555
1556 /*
1557 * Fix Command Arguments for Ecd_Cursor
1558 */
1559 static const char* apzEcd_CursorPatch[] = {
1560 "format",
1561 "ecd_cursor",
1562 (char*)NULL };
1563
1564 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1565 *
1566 * Description of Fix_Header_Breakage fix
1567 */
1568 tSCC zFix_Header_BreakageName[] =
1569 "fix_header_breakage";
1570
1571 /*
1572 * File name selection pattern
1573 */
1574 tSCC zFix_Header_BreakageList[] =
1575 "|math.h|";
1576 /*
1577 * Machine/OS name selection pattern
1578 */
1579 tSCC* apzFix_Header_BreakageMachs[] = {
1580 "m88k-motorola-sysv3*",
1581 (const char*)NULL };
1582
1583 /*
1584 * content selection pattern - do fix if pattern found
1585 */
1586 tSCC zFix_Header_BreakageSelect0[] =
1587 "extern double floor\\(\\), ceil\\(\\), fmod\\(\\), fabs\\(\\);";
1588
1589 #define FIX_HEADER_BREAKAGE_TEST_CT 1
1590 static tTestDesc aFix_Header_BreakageTests[] = {
1591 { TT_EGREP, zFix_Header_BreakageSelect0, (regex_t*)NULL }, };
1592
1593 /*
1594 * Fix Command Arguments for Fix_Header_Breakage
1595 */
1596 static const char* apzFix_Header_BreakagePatch[] = {
1597 "format",
1598 "extern double floor(), ceil(), fmod(), fabs _PARAMS((double));",
1599 (char*)NULL };
1600
1601 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1602 *
1603 * Description of Freebsd_Gcc3_Breakage fix
1604 */
1605 tSCC zFreebsd_Gcc3_BreakageName[] =
1606 "freebsd_gcc3_breakage";
1607
1608 /*
1609 * File name selection pattern
1610 */
1611 tSCC zFreebsd_Gcc3_BreakageList[] =
1612 "|sys/cdefs.h|";
1613 /*
1614 * Machine/OS name selection pattern
1615 */
1616 tSCC* apzFreebsd_Gcc3_BreakageMachs[] = {
1617 "*-*-freebsd*",
1618 (const char*)NULL };
1619
1620 /*
1621 * content selection pattern - do fix if pattern found
1622 */
1623 tSCC zFreebsd_Gcc3_BreakageSelect0[] =
1624 "^#if __GNUC__ == 2 && __GNUC_MINOR__ >= 7$";
1625
1626 /*
1627 * content bypass pattern - skip fix if pattern found
1628 */
1629 tSCC zFreebsd_Gcc3_BreakageBypass0[] =
1630 "__GNUC__[ \\t]*([>=]=[ \\t]*[3-9]|>[ \\t]*2)";
1631
1632 #define FREEBSD_GCC3_BREAKAGE_TEST_CT 2
1633 static tTestDesc aFreebsd_Gcc3_BreakageTests[] = {
1634 { TT_NEGREP, zFreebsd_Gcc3_BreakageBypass0, (regex_t*)NULL },
1635 { TT_EGREP, zFreebsd_Gcc3_BreakageSelect0, (regex_t*)NULL }, };
1636
1637 /*
1638 * Fix Command Arguments for Freebsd_Gcc3_Breakage
1639 */
1640 static const char* apzFreebsd_Gcc3_BreakagePatch[] = {
1641 "format",
1642 "%0 || __GNUC__ >= 3",
1643 (char*)NULL };
1644
1645 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1646 *
1647 * Description of Gnu_Types fix
1648 */
1649 tSCC zGnu_TypesName[] =
1650 "gnu_types";
1651
1652 /*
1653 * File name selection pattern
1654 */
1655 tSCC zGnu_TypesList[] =
1656 "|sys/types.h|stdlib.h|sys/stdtypes.h|stddef.h|memory.h|unistd.h|";
1657 /*
1658 * Machine/OS name selection pattern
1659 */
1660 #define apzGnu_TypesMachs (const char**)NULL
1661
1662 /*
1663 * content selection pattern - do fix if pattern found
1664 */
1665 tSCC zGnu_TypesSelect0[] =
1666 "^[ \t]*typedef[ \t]+.*[ \t](ptrdiff|size|wchar)_t;";
1667
1668 /*
1669 * content bypass pattern - skip fix if pattern found
1670 */
1671 tSCC zGnu_TypesBypass0[] =
1672 "_GCC_(PTRDIFF|SIZE|WCHAR)_T";
1673
1674 #define GNU_TYPES_TEST_CT 2
1675 static tTestDesc aGnu_TypesTests[] = {
1676 { TT_NEGREP, zGnu_TypesBypass0, (regex_t*)NULL },
1677 { TT_EGREP, zGnu_TypesSelect0, (regex_t*)NULL }, };
1678
1679 /*
1680 * Fix Command Arguments for Gnu_Types
1681 */
1682 static const char* apzGnu_TypesPatch[] = {
1683 "gnu_type",
1684 (char*)NULL };
1685
1686 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1687 *
1688 * Description of Hp_Inline fix
1689 */
1690 tSCC zHp_InlineName[] =
1691 "hp_inline";
1692
1693 /*
1694 * File name selection pattern
1695 */
1696 tSCC zHp_InlineList[] =
1697 "|sys/spinlock.h|machine/machparam.h|";
1698 /*
1699 * Machine/OS name selection pattern
1700 */
1701 #define apzHp_InlineMachs (const char**)NULL
1702
1703 /*
1704 * content selection pattern - do fix if pattern found
1705 */
1706 tSCC zHp_InlineSelect0[] =
1707 "[ \t]*#[ \t]*include[ \t]+\"\\.\\./machine/";
1708
1709 #define HP_INLINE_TEST_CT 1
1710 static tTestDesc aHp_InlineTests[] = {
1711 { TT_EGREP, zHp_InlineSelect0, (regex_t*)NULL }, };
1712
1713 /*
1714 * Fix Command Arguments for Hp_Inline
1715 */
1716 static const char* apzHp_InlinePatch[] = {
1717 "format",
1718 "%1<machine/%2.h>",
1719 "([ \t]*#[ \t]*include[ \t]+)\"\\.\\./machine/([a-z]+)\\.h\"",
1720 (char*)NULL };
1721
1722 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1723 *
1724 * Description of Hp_Sysfile fix
1725 */
1726 tSCC zHp_SysfileName[] =
1727 "hp_sysfile";
1728
1729 /*
1730 * File name selection pattern
1731 */
1732 tSCC zHp_SysfileList[] =
1733 "|sys/file.h|";
1734 /*
1735 * Machine/OS name selection pattern
1736 */
1737 #define apzHp_SysfileMachs (const char**)NULL
1738
1739 /*
1740 * content selection pattern - do fix if pattern found
1741 */
1742 tSCC zHp_SysfileSelect0[] =
1743 "HPUX_SOURCE";
1744
1745 #define HP_SYSFILE_TEST_CT 1
1746 static tTestDesc aHp_SysfileTests[] = {
1747 { TT_EGREP, zHp_SysfileSelect0, (regex_t*)NULL }, };
1748
1749 /*
1750 * Fix Command Arguments for Hp_Sysfile
1751 */
1752 static const char* apzHp_SysfilePatch[] = {
1753 "format",
1754 "(struct file *, ...)",
1755 "\\(\\.\\.\\.\\)",
1756 (char*)NULL };
1757
1758 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1759 *
1760 * Description of Hpux10_Cpp_Pow_Inline fix
1761 */
1762 tSCC zHpux10_Cpp_Pow_InlineName[] =
1763 "hpux10_cpp_pow_inline";
1764
1765 /*
1766 * File name selection pattern
1767 */
1768 tSCC zHpux10_Cpp_Pow_InlineList[] =
1769 "|fixinc-test-limits.h|math.h|";
1770 /*
1771 * Machine/OS name selection pattern
1772 */
1773 #define apzHpux10_Cpp_Pow_InlineMachs (const char**)NULL
1774
1775 /*
1776 * content selection pattern - do fix if pattern found
1777 */
1778 tSCC zHpux10_Cpp_Pow_InlineSelect0[] =
1779 "^# +ifdef +__cplusplus\n\
1780 +}\n\
1781 +inline +double +pow\\(double +__d,int +__expon\\) +{\n\
1782 [ \t]+return +pow\\(__d,\\(double\\)__expon\\);\n\
1783 +}\n\
1784 +extern +\"C\" +{\n\
1785 #else\n\
1786 # +endif";
1787
1788 #define HPUX10_CPP_POW_INLINE_TEST_CT 1
1789 static tTestDesc aHpux10_Cpp_Pow_InlineTests[] = {
1790 { TT_EGREP, zHpux10_Cpp_Pow_InlineSelect0, (regex_t*)NULL }, };
1791
1792 /*
1793 * Fix Command Arguments for Hpux10_Cpp_Pow_Inline
1794 */
1795 static const char* apzHpux10_Cpp_Pow_InlinePatch[] = {
1796 "format",
1797 "",
1798 (char*)NULL };
1799
1800 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1801 *
1802 * Description of Hpux11_Cpp_Pow_Inline fix
1803 */
1804 tSCC zHpux11_Cpp_Pow_InlineName[] =
1805 "hpux11_cpp_pow_inline";
1806
1807 /*
1808 * File name selection pattern
1809 */
1810 tSCC zHpux11_Cpp_Pow_InlineList[] =
1811 "|math.h|";
1812 /*
1813 * Machine/OS name selection pattern
1814 */
1815 #define apzHpux11_Cpp_Pow_InlineMachs (const char**)NULL
1816
1817 /*
1818 * content selection pattern - do fix if pattern found
1819 */
1820 tSCC zHpux11_Cpp_Pow_InlineSelect0[] =
1821 " +inline double pow\\(double d,int expon\\) {\n\
1822 +return pow\\(d, \\(double\\)expon\\);\n\
1823 +}\n";
1824
1825 #define HPUX11_CPP_POW_INLINE_TEST_CT 1
1826 static tTestDesc aHpux11_Cpp_Pow_InlineTests[] = {
1827 { TT_EGREP, zHpux11_Cpp_Pow_InlineSelect0, (regex_t*)NULL }, };
1828
1829 /*
1830 * Fix Command Arguments for Hpux11_Cpp_Pow_Inline
1831 */
1832 static const char* apzHpux11_Cpp_Pow_InlinePatch[] = {
1833 "format",
1834 "",
1835 (char*)NULL };
1836
1837 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1838 *
1839 * Description of Hpux11_Fabsf fix
1840 */
1841 tSCC zHpux11_FabsfName[] =
1842 "hpux11_fabsf";
1843
1844 /*
1845 * File name selection pattern
1846 */
1847 tSCC zHpux11_FabsfList[] =
1848 "|math.h|";
1849 /*
1850 * Machine/OS name selection pattern
1851 */
1852 #define apzHpux11_FabsfMachs (const char**)NULL
1853
1854 /*
1855 * content selection pattern - do fix if pattern found
1856 */
1857 tSCC zHpux11_FabsfSelect0[] =
1858 "^[ \t]*#[ \t]*define[ \t]+fabsf\\(.*";
1859
1860 /*
1861 * content bypass pattern - skip fix if pattern found
1862 */
1863 tSCC zHpux11_FabsfBypass0[] =
1864 "__cplusplus";
1865
1866 #define HPUX11_FABSF_TEST_CT 2
1867 static tTestDesc aHpux11_FabsfTests[] = {
1868 { TT_NEGREP, zHpux11_FabsfBypass0, (regex_t*)NULL },
1869 { TT_EGREP, zHpux11_FabsfSelect0, (regex_t*)NULL }, };
1870
1871 /*
1872 * Fix Command Arguments for Hpux11_Fabsf
1873 */
1874 static const char* apzHpux11_FabsfPatch[] = {
1875 "format",
1876 "#ifndef __cplusplus\n\
1877 %0\n\
1878 #endif",
1879 (char*)NULL };
1880
1881 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1882 *
1883 * Description of Hpux11_Size_T fix
1884 */
1885 tSCC zHpux11_Size_TName[] =
1886 "hpux11_size_t";
1887
1888 /*
1889 * File name selection pattern
1890 */
1891 #define zHpux11_Size_TList (char*)NULL
1892 /*
1893 * Machine/OS name selection pattern
1894 */
1895 tSCC* apzHpux11_Size_TMachs[] = {
1896 "*-hp-hpux11*",
1897 (const char*)NULL };
1898
1899 /*
1900 * content selection pattern - do fix if pattern found
1901 */
1902 tSCC zHpux11_Size_TSelect0[] =
1903 "__size_t";
1904
1905 #define HPUX11_SIZE_T_TEST_CT 1
1906 static tTestDesc aHpux11_Size_TTests[] = {
1907 { TT_EGREP, zHpux11_Size_TSelect0, (regex_t*)NULL }, };
1908
1909 /*
1910 * Fix Command Arguments for Hpux11_Size_T
1911 */
1912 static const char* apzHpux11_Size_TPatch[] = {
1913 "format",
1914 "_hpux_size_t",
1915 (char*)NULL };
1916
1917 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1918 *
1919 * Description of Hpux11_Uint32_C fix
1920 */
1921 tSCC zHpux11_Uint32_CName[] =
1922 "hpux11_uint32_c";
1923
1924 /*
1925 * File name selection pattern
1926 */
1927 tSCC zHpux11_Uint32_CList[] =
1928 "|inttypes.h|";
1929 /*
1930 * Machine/OS name selection pattern
1931 */
1932 #define apzHpux11_Uint32_CMachs (const char**)NULL
1933
1934 /*
1935 * content selection pattern - do fix if pattern found
1936 */
1937 tSCC zHpux11_Uint32_CSelect0[] =
1938 "^#define UINT32_C\\(__c\\)[ \t]*__CONCAT__\\(__CONCAT_U__\\(__c\\),l\\)";
1939
1940 #define HPUX11_UINT32_C_TEST_CT 1
1941 static tTestDesc aHpux11_Uint32_CTests[] = {
1942 { TT_EGREP, zHpux11_Uint32_CSelect0, (regex_t*)NULL }, };
1943
1944 /*
1945 * Fix Command Arguments for Hpux11_Uint32_C
1946 */
1947 static const char* apzHpux11_Uint32_CPatch[] = {
1948 "format",
1949 "#define UINT32_C(__c) __CONCAT__(__c,ul)",
1950 (char*)NULL };
1951
1952 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1953 *
1954 * Description of Hpux11_Vsnprintf fix
1955 */
1956 tSCC zHpux11_VsnprintfName[] =
1957 "hpux11_vsnprintf";
1958
1959 /*
1960 * File name selection pattern
1961 */
1962 tSCC zHpux11_VsnprintfList[] =
1963 "|stdio.h|";
1964 /*
1965 * Machine/OS name selection pattern
1966 */
1967 #define apzHpux11_VsnprintfMachs (const char**)NULL
1968
1969 /*
1970 * content selection pattern - do fix if pattern found
1971 */
1972 tSCC zHpux11_VsnprintfSelect0[] =
1973 "(extern int vsnprintf\\(char \\*, _[hpux]*_size_t, const char \\*,) __va__list\\);";
1974
1975 #define HPUX11_VSNPRINTF_TEST_CT 1
1976 static tTestDesc aHpux11_VsnprintfTests[] = {
1977 { TT_EGREP, zHpux11_VsnprintfSelect0, (regex_t*)NULL }, };
1978
1979 /*
1980 * Fix Command Arguments for Hpux11_Vsnprintf
1981 */
1982 static const char* apzHpux11_VsnprintfPatch[] = {
1983 "format",
1984 "%1 __va_list);",
1985 (char*)NULL };
1986
1987 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1988 *
1989 * Description of Hpux8_Bogus_Inlines fix
1990 */
1991 tSCC zHpux8_Bogus_InlinesName[] =
1992 "hpux8_bogus_inlines";
1993
1994 /*
1995 * File name selection pattern
1996 */
1997 tSCC zHpux8_Bogus_InlinesList[] =
1998 "|math.h|";
1999 /*
2000 * Machine/OS name selection pattern
2001 */
2002 #define apzHpux8_Bogus_InlinesMachs (const char**)NULL
2003
2004 /*
2005 * content selection pattern - do fix if pattern found
2006 */
2007 tSCC zHpux8_Bogus_InlinesSelect0[] =
2008 "inline";
2009
2010 #define HPUX8_BOGUS_INLINES_TEST_CT 1
2011 static tTestDesc aHpux8_Bogus_InlinesTests[] = {
2012 { TT_EGREP, zHpux8_Bogus_InlinesSelect0, (regex_t*)NULL }, };
2013
2014 /*
2015 * Fix Command Arguments for Hpux8_Bogus_Inlines
2016 */
2017 static const char* apzHpux8_Bogus_InlinesPatch[] = { "sed",
2018 "-e", "s@inline int abs(int [a-z][a-z]*) {.*}@extern \"C\" int abs(int);@",
2019 "-e", "s@inline double abs(double [a-z][a-z]*) {.*}@@",
2020 "-e", "s@inline int sqr(int [a-z][a-z]*) {.*}@@",
2021 "-e", "s@inline double sqr(double [a-z][a-z]*) {.*}@@",
2022 (char*)NULL };
2023
2024 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2025 *
2026 * Description of Hpux_Maxint fix
2027 */
2028 tSCC zHpux_MaxintName[] =
2029 "hpux_maxint";
2030
2031 /*
2032 * File name selection pattern
2033 */
2034 tSCC zHpux_MaxintList[] =
2035 "|sys/param.h|values.h|";
2036 /*
2037 * Machine/OS name selection pattern
2038 */
2039 #define apzHpux_MaxintMachs (const char**)NULL
2040
2041 /*
2042 * content selection pattern - do fix if pattern found
2043 */
2044 tSCC zHpux_MaxintSelect0[] =
2045 "^#[ \t]*define[ \t]+MAXINT[ \t]";
2046
2047 /*
2048 * content bypass pattern - skip fix if pattern found
2049 */
2050 tSCC zHpux_MaxintBypass0[] =
2051 "^#[ \t]*ifndef[ \t]+MAXINT";
2052
2053 /*
2054 * perform the 'test' shell command - do fix on success
2055 */
2056 tSCC zHpux_MaxintTest0[] =
2057 "-n \"`egrep '#[ \t]*define[ \t]+MAXINT[ \t]' sys/param.h`\"";
2058
2059 #define HPUX_MAXINT_TEST_CT 3
2060 static tTestDesc aHpux_MaxintTests[] = {
2061 { TT_TEST, zHpux_MaxintTest0, 0 /* unused */ },
2062 { TT_NEGREP, zHpux_MaxintBypass0, (regex_t*)NULL },
2063 { TT_EGREP, zHpux_MaxintSelect0, (regex_t*)NULL }, };
2064
2065 /*
2066 * Fix Command Arguments for Hpux_Maxint
2067 */
2068 static const char* apzHpux_MaxintPatch[] = {
2069 "format",
2070 "#ifndef MAXINT\n\
2071 %0\n\
2072 #endif",
2073 "^#[ \t]*define[ \t]+MAXINT[ \t].*",
2074 (char*)NULL };
2075
2076 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2077 *
2078 * Description of Hpux_Systime fix
2079 */
2080 tSCC zHpux_SystimeName[] =
2081 "hpux_systime";
2082
2083 /*
2084 * File name selection pattern
2085 */
2086 tSCC zHpux_SystimeList[] =
2087 "|sys/time.h|";
2088 /*
2089 * Machine/OS name selection pattern
2090 */
2091 #define apzHpux_SystimeMachs (const char**)NULL
2092
2093 /*
2094 * content selection pattern - do fix if pattern found
2095 */
2096 tSCC zHpux_SystimeSelect0[] =
2097 "^extern struct sigevent;";
2098
2099 #define HPUX_SYSTIME_TEST_CT 1
2100 static tTestDesc aHpux_SystimeTests[] = {
2101 { TT_EGREP, zHpux_SystimeSelect0, (regex_t*)NULL }, };
2102
2103 /*
2104 * Fix Command Arguments for Hpux_Systime
2105 */
2106 static const char* apzHpux_SystimePatch[] = {
2107 "format",
2108 "struct sigevent;",
2109 (char*)NULL };
2110
2111 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2112 *
2113 * Description of Int_Abort_Free_And_Exit fix
2114 */
2115 tSCC zInt_Abort_Free_And_ExitName[] =
2116 "int_abort_free_and_exit";
2117
2118 /*
2119 * File name selection pattern
2120 */
2121 tSCC zInt_Abort_Free_And_ExitList[] =
2122 "|stdlib.h|";
2123 /*
2124 * Machine/OS name selection pattern
2125 */
2126 #define apzInt_Abort_Free_And_ExitMachs (const char**)NULL
2127
2128 /*
2129 * content selection pattern - do fix if pattern found
2130 */
2131 tSCC zInt_Abort_Free_And_ExitSelect0[] =
2132 "int[ \t]+(abort|free|exit)[ \t]*\\(";
2133
2134 #define INT_ABORT_FREE_AND_EXIT_TEST_CT 1
2135 static tTestDesc aInt_Abort_Free_And_ExitTests[] = {
2136 { TT_EGREP, zInt_Abort_Free_And_ExitSelect0, (regex_t*)NULL }, };
2137
2138 /*
2139 * Fix Command Arguments for Int_Abort_Free_And_Exit
2140 */
2141 static const char* apzInt_Abort_Free_And_ExitPatch[] = {
2142 "format",
2143 "void\t%1(",
2144 (char*)NULL };
2145
2146 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2147 *
2148 * Description of Io_Quotes_Def fix
2149 */
2150 tSCC zIo_Quotes_DefName[] =
2151 "io_quotes_def";
2152
2153 /*
2154 * File name selection pattern
2155 */
2156 #define zIo_Quotes_DefList (char*)NULL
2157 /*
2158 * Machine/OS name selection pattern
2159 */
2160 #define apzIo_Quotes_DefMachs (const char**)NULL
2161
2162 /*
2163 * content selection pattern - do fix if pattern found
2164 */
2165 tSCC zIo_Quotes_DefSelect0[] =
2166 "define[ \t]+[A-Z0-9_]+IO[A-Z]*\\([a-zA-Z][,)]";
2167
2168 #define IO_QUOTES_DEF_TEST_CT 1
2169 static tTestDesc aIo_Quotes_DefTests[] = {
2170 { TT_EGREP, zIo_Quotes_DefSelect0, (regex_t*)NULL }, };
2171
2172 /*
2173 * Fix Command Arguments for Io_Quotes_Def
2174 */
2175 static const char* apzIo_Quotes_DefPatch[] = {
2176 "char_macro_def",
2177 "IO",
2178 (char*)NULL };
2179
2180 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2181 *
2182 * Description of Io_Quotes_Use fix
2183 */
2184 tSCC zIo_Quotes_UseName[] =
2185 "io_quotes_use";
2186
2187 /*
2188 * File name selection pattern
2189 */
2190 #define zIo_Quotes_UseList (char*)NULL
2191 /*
2192 * Machine/OS name selection pattern
2193 */
2194 #define apzIo_Quotes_UseMachs (const char**)NULL
2195
2196 /*
2197 * content selection pattern - do fix if pattern found
2198 */
2199 tSCC zIo_Quotes_UseSelect0[] =
2200 "define[ \t]+[A-Z0-9_]+[ \t]+[A-Z0-9_]+IO[A-Z]*[ \t]*\\( *[^,']";
2201
2202 #define IO_QUOTES_USE_TEST_CT 1
2203 static tTestDesc aIo_Quotes_UseTests[] = {
2204 { TT_EGREP, zIo_Quotes_UseSelect0, (regex_t*)NULL }, };
2205
2206 /*
2207 * Fix Command Arguments for Io_Quotes_Use
2208 */
2209 static const char* apzIo_Quotes_UsePatch[] = {
2210 "char_macro_use",
2211 "IO",
2212 (char*)NULL };
2213
2214 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2215 *
2216 * Description of Ip_Missing_Semi fix
2217 */
2218 tSCC zIp_Missing_SemiName[] =
2219 "ip_missing_semi";
2220
2221 /*
2222 * File name selection pattern
2223 */
2224 tSCC zIp_Missing_SemiList[] =
2225 "|netinet/ip.h|";
2226 /*
2227 * Machine/OS name selection pattern
2228 */
2229 #define apzIp_Missing_SemiMachs (const char**)NULL
2230
2231 /*
2232 * content selection pattern - do fix if pattern found
2233 */
2234 tSCC zIp_Missing_SemiSelect0[] =
2235 "}$";
2236
2237 #define IP_MISSING_SEMI_TEST_CT 1
2238 static tTestDesc aIp_Missing_SemiTests[] = {
2239 { TT_EGREP, zIp_Missing_SemiSelect0, (regex_t*)NULL }, };
2240
2241 /*
2242 * Fix Command Arguments for Ip_Missing_Semi
2243 */
2244 static const char* apzIp_Missing_SemiPatch[] = { "sed",
2245 "-e", "/^struct/,/^};/s/}$/};/",
2246 (char*)NULL };
2247
2248 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2249 *
2250 * Description of Irix_Asm_Apostrophe fix
2251 */
2252 tSCC zIrix_Asm_ApostropheName[] =
2253 "irix_asm_apostrophe";
2254
2255 /*
2256 * File name selection pattern
2257 */
2258 tSCC zIrix_Asm_ApostropheList[] =
2259 "|sys/asm.h|";
2260 /*
2261 * Machine/OS name selection pattern
2262 */
2263 #define apzIrix_Asm_ApostropheMachs (const char**)NULL
2264
2265 /*
2266 * content selection pattern - do fix if pattern found
2267 */
2268 tSCC zIrix_Asm_ApostropheSelect0[] =
2269 "^[ \t]*#.*[Ww]e're";
2270
2271 #define IRIX_ASM_APOSTROPHE_TEST_CT 1
2272 static tTestDesc aIrix_Asm_ApostropheTests[] = {
2273 { TT_EGREP, zIrix_Asm_ApostropheSelect0, (regex_t*)NULL }, };
2274
2275 /*
2276 * Fix Command Arguments for Irix_Asm_Apostrophe
2277 */
2278 static const char* apzIrix_Asm_ApostrophePatch[] = {
2279 "format",
2280 "%1 are",
2281 "^([ \t]*#.*[Ww]e)'re",
2282 (char*)NULL };
2283
2284 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2285 *
2286 * Description of Irix_Limits_Const fix
2287 */
2288 tSCC zIrix_Limits_ConstName[] =
2289 "irix_limits_const";
2290
2291 /*
2292 * File name selection pattern
2293 */
2294 tSCC zIrix_Limits_ConstList[] =
2295 "|fixinc-test-limits.h|limits.h|";
2296 /*
2297 * Machine/OS name selection pattern
2298 */
2299 #define apzIrix_Limits_ConstMachs (const char**)NULL
2300
2301 /*
2302 * content selection pattern - do fix if pattern found
2303 */
2304 tSCC zIrix_Limits_ConstSelect0[] =
2305 "^extern const ";
2306
2307 #define IRIX_LIMITS_CONST_TEST_CT 1
2308 static tTestDesc aIrix_Limits_ConstTests[] = {
2309 { TT_EGREP, zIrix_Limits_ConstSelect0, (regex_t*)NULL }, };
2310
2311 /*
2312 * Fix Command Arguments for Irix_Limits_Const
2313 */
2314 static const char* apzIrix_Limits_ConstPatch[] = {
2315 "format",
2316 "extern __const ",
2317 (char*)NULL };
2318
2319 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2320 *
2321 * Description of Irix_Stdio_Va_List fix
2322 */
2323 tSCC zIrix_Stdio_Va_ListName[] =
2324 "irix_stdio_va_list";
2325
2326 /*
2327 * File name selection pattern
2328 */
2329 tSCC zIrix_Stdio_Va_ListList[] =
2330 "|stdio.h|";
2331 /*
2332 * Machine/OS name selection pattern
2333 */
2334 #define apzIrix_Stdio_Va_ListMachs (const char**)NULL
2335
2336 /*
2337 * content selection pattern - do fix if pattern found
2338 */
2339 tSCC zIrix_Stdio_Va_ListSelect0[] =
2340 "(printf\\(.*), /\\* va_list \\*/ char \\*";
2341
2342 #define IRIX_STDIO_VA_LIST_TEST_CT 1
2343 static tTestDesc aIrix_Stdio_Va_ListTests[] = {
2344 { TT_EGREP, zIrix_Stdio_Va_ListSelect0, (regex_t*)NULL }, };
2345
2346 /*
2347 * Fix Command Arguments for Irix_Stdio_Va_List
2348 */
2349 static const char* apzIrix_Stdio_Va_ListPatch[] = {
2350 "format",
2351 "%1, __gnuc_va_list",
2352 (char*)NULL };
2353
2354 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2355 *
2356 * Description of Isc_Fmod fix
2357 */
2358 tSCC zIsc_FmodName[] =
2359 "isc_fmod";
2360
2361 /*
2362 * File name selection pattern
2363 */
2364 tSCC zIsc_FmodList[] =
2365 "|math.h|";
2366 /*
2367 * Machine/OS name selection pattern
2368 */
2369 #define apzIsc_FmodMachs (const char**)NULL
2370
2371 /*
2372 * content selection pattern - do fix if pattern found
2373 */
2374 tSCC zIsc_FmodSelect0[] =
2375 "fmod\\(double\\)";
2376
2377 #define ISC_FMOD_TEST_CT 1
2378 static tTestDesc aIsc_FmodTests[] = {
2379 { TT_EGREP, zIsc_FmodSelect0, (regex_t*)NULL }, };
2380
2381 /*
2382 * Fix Command Arguments for Isc_Fmod
2383 */
2384 static const char* apzIsc_FmodPatch[] = {
2385 "format",
2386 "fmod(double, double)",
2387 (char*)NULL };
2388
2389 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2390 *
2391 * Description of Isc_Omits_With_Stdc fix
2392 */
2393 tSCC zIsc_Omits_With_StdcName[] =
2394 "isc_omits_with_stdc";
2395
2396 /*
2397 * File name selection pattern
2398 */
2399 tSCC zIsc_Omits_With_StdcList[] =
2400 "|stdio.h|math.h|ctype.h|sys/limits.h|sys/fcntl.h|sys/dirent.h|";
2401 /*
2402 * Machine/OS name selection pattern
2403 */
2404 #define apzIsc_Omits_With_StdcMachs (const char**)NULL
2405
2406 /*
2407 * content selection pattern - do fix if pattern found
2408 */
2409 tSCC zIsc_Omits_With_StdcSelect0[] =
2410 "!defined\\(__STDC__\\) && !defined\\(_POSIX_SOURCE\\)";
2411
2412 #define ISC_OMITS_WITH_STDC_TEST_CT 1
2413 static tTestDesc aIsc_Omits_With_StdcTests[] = {
2414 { TT_EGREP, zIsc_Omits_With_StdcSelect0, (regex_t*)NULL }, };
2415
2416 /*
2417 * Fix Command Arguments for Isc_Omits_With_Stdc
2418 */
2419 static const char* apzIsc_Omits_With_StdcPatch[] = {
2420 "format",
2421 "!defined(_POSIX_SOURCE)",
2422 (char*)NULL };
2423
2424 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2425 *
2426 * Description of Kandr_Concat fix
2427 */
2428 tSCC zKandr_ConcatName[] =
2429 "kandr_concat";
2430
2431 /*
2432 * File name selection pattern
2433 */
2434 tSCC zKandr_ConcatList[] =
2435 "|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|";
2436 /*
2437 * Machine/OS name selection pattern
2438 */
2439 #define apzKandr_ConcatMachs (const char**)NULL
2440
2441 /*
2442 * content selection pattern - do fix if pattern found
2443 */
2444 tSCC zKandr_ConcatSelect0[] =
2445 "/\\*\\*/";
2446
2447 #define KANDR_CONCAT_TEST_CT 1
2448 static tTestDesc aKandr_ConcatTests[] = {
2449 { TT_EGREP, zKandr_ConcatSelect0, (regex_t*)NULL }, };
2450
2451 /*
2452 * Fix Command Arguments for Kandr_Concat
2453 */
2454 static const char* apzKandr_ConcatPatch[] = {
2455 "format",
2456 "##",
2457 (char*)NULL };
2458
2459 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2460 *
2461 * Description of Libc1_Ifdefd_Memx fix
2462 */
2463 tSCC zLibc1_Ifdefd_MemxName[] =
2464 "libc1_ifdefd_memx";
2465
2466 /*
2467 * File name selection pattern
2468 */
2469 tSCC zLibc1_Ifdefd_MemxList[] =
2470 "|testing.h|string.h|";
2471 /*
2472 * Machine/OS name selection pattern
2473 */
2474 #define apzLibc1_Ifdefd_MemxMachs (const char**)NULL
2475
2476 /*
2477 * content selection pattern - do fix if pattern found
2478 */
2479 tSCC zLibc1_Ifdefd_MemxSelect0[] =
2480 "' is a built-in function for gcc 2\\.x\\. \\*/";
2481
2482 /*
2483 * content bypass pattern - skip fix if pattern found
2484 */
2485 tSCC zLibc1_Ifdefd_MemxBypass0[] =
2486 "__cplusplus";
2487
2488 #define LIBC1_IFDEFD_MEMX_TEST_CT 2
2489 static tTestDesc aLibc1_Ifdefd_MemxTests[] = {
2490 { TT_NEGREP, zLibc1_Ifdefd_MemxBypass0, (regex_t*)NULL },
2491 { TT_EGREP, zLibc1_Ifdefd_MemxSelect0, (regex_t*)NULL }, };
2492
2493 /*
2494 * Fix Command Arguments for Libc1_Ifdefd_Memx
2495 */
2496 static const char* apzLibc1_Ifdefd_MemxPatch[] = {
2497 "format",
2498 "%1",
2499 "/\\* `mem...' is a built-in function for gcc 2\\.x\\. \\*/\n\
2500 #if defined\\(__STDC__\\) && __GNUC__ < 2\n\
2501 (/\\* .* \\*/\n\
2502 extern [a-z_]+ mem.*(\n\
2503 [^#].*)*;)\n\
2504 #endif",
2505 (char*)NULL };
2506
2507 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2508 *
2509 * Description of Limits_Ifndefs fix
2510 */
2511 tSCC zLimits_IfndefsName[] =
2512 "limits_ifndefs";
2513
2514 /*
2515 * File name selection pattern
2516 */
2517 tSCC zLimits_IfndefsList[] =
2518 "|sys/limits.h|limits.h|";
2519 /*
2520 * Machine/OS name selection pattern
2521 */
2522 #define apzLimits_IfndefsMachs (const char**)NULL
2523
2524 /*
2525 * content bypass pattern - skip fix if pattern found
2526 */
2527 tSCC zLimits_IfndefsBypass0[] =
2528 "ifndef[ \t]+FLT_MIN";
2529
2530 #define LIMITS_IFNDEFS_TEST_CT 1
2531 static tTestDesc aLimits_IfndefsTests[] = {
2532 { TT_NEGREP, zLimits_IfndefsBypass0, (regex_t*)NULL }, };
2533
2534 /*
2535 * Fix Command Arguments for Limits_Ifndefs
2536 */
2537 static const char* apzLimits_IfndefsPatch[] = {
2538 "format",
2539 "#ifndef %1\n\
2540 %0\n\
2541 #endif",
2542 "^[ \t]*#[ \t]*define[ \t]+((FLT|DBL)_(MIN|MAX|DIG))[ \t].*",
2543 (char*)NULL };
2544
2545 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2546 *
2547 * Description of Lynx_Void_Int fix
2548 */
2549 tSCC zLynx_Void_IntName[] =
2550 "lynx_void_int";
2551
2552 /*
2553 * File name selection pattern
2554 */
2555 tSCC zLynx_Void_IntList[] =
2556 "|curses.h|";
2557 /*
2558 * Machine/OS name selection pattern
2559 */
2560 #define apzLynx_Void_IntMachs (const char**)NULL
2561
2562 /*
2563 * content selection pattern - do fix if pattern found
2564 */
2565 tSCC zLynx_Void_IntSelect0[] =
2566 "#[ \t]*define[ \t]+void[ \t]+int[ \t]*";
2567
2568 #define LYNX_VOID_INT_TEST_CT 1
2569 static tTestDesc aLynx_Void_IntTests[] = {
2570 { TT_EGREP, zLynx_Void_IntSelect0, (regex_t*)NULL }, };
2571
2572 /*
2573 * Fix Command Arguments for Lynx_Void_Int
2574 */
2575 static const char* apzLynx_Void_IntPatch[] = {
2576 "format",
2577 "",
2578 (char*)NULL };
2579
2580 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2581 *
2582 * Description of Lynxos_Fcntl_Proto fix
2583 */
2584 tSCC zLynxos_Fcntl_ProtoName[] =
2585 "lynxos_fcntl_proto";
2586
2587 /*
2588 * File name selection pattern
2589 */
2590 tSCC zLynxos_Fcntl_ProtoList[] =
2591 "|fcntl.h|";
2592 /*
2593 * Machine/OS name selection pattern
2594 */
2595 #define apzLynxos_Fcntl_ProtoMachs (const char**)NULL
2596
2597 /*
2598 * content selection pattern - do fix if pattern found
2599 */
2600 tSCC zLynxos_Fcntl_ProtoSelect0[] =
2601 "fcntl[ \t]*\\(int, int, int\\)";
2602
2603 #define LYNXOS_FCNTL_PROTO_TEST_CT 1
2604 static tTestDesc aLynxos_Fcntl_ProtoTests[] = {
2605 { TT_EGREP, zLynxos_Fcntl_ProtoSelect0, (regex_t*)NULL }, };
2606
2607 /*
2608 * Fix Command Arguments for Lynxos_Fcntl_Proto
2609 */
2610 static const char* apzLynxos_Fcntl_ProtoPatch[] = {
2611 "format",
2612 "%1...)",
2613 "(fcntl[ \t]*\\(int, int, )int\\)",
2614 (char*)NULL };
2615
2616 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2617 *
2618 * Description of M88k_Bad_Hypot_Opt fix
2619 */
2620 tSCC zM88k_Bad_Hypot_OptName[] =
2621 "m88k_bad_hypot_opt";
2622
2623 /*
2624 * File name selection pattern
2625 */
2626 tSCC zM88k_Bad_Hypot_OptList[] =
2627 "|math.h|";
2628 /*
2629 * Machine/OS name selection pattern
2630 */
2631 tSCC* apzM88k_Bad_Hypot_OptMachs[] = {
2632 "m88k-motorola-sysv3*",
2633 (const char*)NULL };
2634
2635 /*
2636 * content selection pattern - do fix if pattern found
2637 */
2638 tSCC zM88k_Bad_Hypot_OptSelect0[] =
2639 "^extern double hypot\\(\\);\n";
2640
2641 #define M88K_BAD_HYPOT_OPT_TEST_CT 1
2642 static tTestDesc aM88k_Bad_Hypot_OptTests[] = {
2643 { TT_EGREP, zM88k_Bad_Hypot_OptSelect0, (regex_t*)NULL }, };
2644
2645 /*
2646 * Fix Command Arguments for M88k_Bad_Hypot_Opt
2647 */
2648 static const char* apzM88k_Bad_Hypot_OptPatch[] = {
2649 "format",
2650 "%0/* Workaround a stupid Motorola optimization if one\n\
2651 of x or y is 0.0 and the other is negative! */\n\
2652 #ifdef __STDC__\n\
2653 static __inline__ double fake_hypot (double x, double y)\n\
2654 #else\n\
2655 static __inline__ double fake_hypot (x, y)\n\
2656 \tdouble x, y;\n\
2657 #endif\n\
2658 {\n\
2659 \treturn fabs (hypot (x, y));\n\
2660 }\n\
2661 #define hypot\tfake_hypot\n",
2662 (char*)NULL };
2663
2664 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2665 *
2666 * Description of M88k_Bad_S_If fix
2667 */
2668 tSCC zM88k_Bad_S_IfName[] =
2669 "m88k_bad_s_if";
2670
2671 /*
2672 * File name selection pattern
2673 */
2674 tSCC zM88k_Bad_S_IfList[] =
2675 "|sys/stat.h|";
2676 /*
2677 * Machine/OS name selection pattern
2678 */
2679 tSCC* apzM88k_Bad_S_IfMachs[] = {
2680 "m88k-*-sysv3*",
2681 (const char*)NULL };
2682
2683 /*
2684 * content selection pattern - do fix if pattern found
2685 */
2686 tSCC zM88k_Bad_S_IfSelect0[] =
2687 "#define[ \t]+S_IS[A-Z]+\\(m\\)[ \t]+\\(m[ \t]*&";
2688
2689 #define M88K_BAD_S_IF_TEST_CT 1
2690 static tTestDesc aM88k_Bad_S_IfTests[] = {
2691 { TT_EGREP, zM88k_Bad_S_IfSelect0, (regex_t*)NULL }, };
2692
2693 /*
2694 * Fix Command Arguments for M88k_Bad_S_If
2695 */
2696 static const char* apzM88k_Bad_S_IfPatch[] = {
2697 "format",
2698 "#define %1(m) (((m) & S_IFMT) == %2)",
2699 "#define[ \t]+(S_IS[A-Z]+)\\(m\\)[ \t]+\\(m[ \t]*&[ \t]*(S_IF[A-Z][A-Z][A-Z]+|0[0-9]+)[ \t]*\\)",
2700 (char*)NULL };
2701
2702 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2703 *
2704 * Description of M88k_Multi_Incl fix
2705 */
2706 tSCC zM88k_Multi_InclName[] =
2707 "m88k_multi_incl";
2708
2709 /*
2710 * File name selection pattern
2711 */
2712 tSCC zM88k_Multi_InclList[] =
2713 "|time.h|";
2714 /*
2715 * Machine/OS name selection pattern
2716 */
2717 tSCC* apzM88k_Multi_InclMachs[] = {
2718 "m88k-tektronix-sysv3*",
2719 (const char*)NULL };
2720
2721 /*
2722 * content bypass pattern - skip fix if pattern found
2723 */
2724 tSCC zM88k_Multi_InclBypass0[] =
2725 "#ifndef";
2726
2727 #define M88K_MULTI_INCL_TEST_CT 1
2728 static tTestDesc aM88k_Multi_InclTests[] = {
2729 { TT_NEGREP, zM88k_Multi_InclBypass0, (regex_t*)NULL }, };
2730
2731 /*
2732 * Fix Command Arguments for M88k_Multi_Incl
2733 */
2734 static const char* apzM88k_Multi_InclPatch[] = {
2735 "wrap",
2736 (char*)NULL };
2737
2738 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2739 *
2740 * Description of Machine_Ansi_H_Va_List fix
2741 */
2742 tSCC zMachine_Ansi_H_Va_ListName[] =
2743 "machine_ansi_h_va_list";
2744
2745 /*
2746 * File name selection pattern
2747 */
2748 #define zMachine_Ansi_H_Va_ListList (char*)NULL
2749 /*
2750 * Machine/OS name selection pattern
2751 */
2752 #define apzMachine_Ansi_H_Va_ListMachs (const char**)NULL
2753
2754 /*
2755 * content selection pattern - do fix if pattern found
2756 */
2757 tSCC zMachine_Ansi_H_Va_ListSelect0[] =
2758 "define[ \t]+_BSD_VA_LIST_[ \t]";
2759
2760 /*
2761 * content bypass pattern - skip fix if pattern found
2762 */
2763 tSCC zMachine_Ansi_H_Va_ListBypass0[] =
2764 "__builtin_va_list";
2765
2766 #define MACHINE_ANSI_H_VA_LIST_TEST_CT 2
2767 static tTestDesc aMachine_Ansi_H_Va_ListTests[] = {
2768 { TT_NEGREP, zMachine_Ansi_H_Va_ListBypass0, (regex_t*)NULL },
2769 { TT_EGREP, zMachine_Ansi_H_Va_ListSelect0, (regex_t*)NULL }, };
2770
2771 /*
2772 * Fix Command Arguments for Machine_Ansi_H_Va_List
2773 */
2774 static const char* apzMachine_Ansi_H_Va_ListPatch[] = {
2775 "format",
2776 "%1__builtin_va_list",
2777 "(define[ \t]+_BSD_VA_LIST_[ \t]+).*",
2778 (char*)NULL };
2779
2780 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2781 *
2782 * Description of Machine_Name fix
2783 */
2784 tSCC zMachine_NameName[] =
2785 "machine_name";
2786
2787 /*
2788 * File name selection pattern
2789 */
2790 #define zMachine_NameList (char*)NULL
2791 /*
2792 * Machine/OS name selection pattern
2793 */
2794 #define apzMachine_NameMachs (const char**)NULL
2795
2796 /*
2797 * perform the C function call test
2798 */
2799 tSCC zMachine_NameFTst0[] = "machine_name";
2800
2801 #define MACHINE_NAME_TEST_CT 1
2802 static tTestDesc aMachine_NameTests[] = {
2803 { TT_FUNCTION, zMachine_NameFTst0, 0 /* unused */ }, };
2804
2805 /*
2806 * Fix Command Arguments for Machine_Name
2807 */
2808 static const char* apzMachine_NamePatch[] = {
2809 "machine_name",
2810 (char*)NULL };
2811
2812 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2813 *
2814 * Description of Math_Exception fix
2815 */
2816 tSCC zMath_ExceptionName[] =
2817 "math_exception";
2818
2819 /*
2820 * File name selection pattern
2821 */
2822 tSCC zMath_ExceptionList[] =
2823 "|math.h|";
2824 /*
2825 * Machine/OS name selection pattern
2826 */
2827 #define apzMath_ExceptionMachs (const char**)NULL
2828
2829 /*
2830 * content selection pattern - do fix if pattern found
2831 */
2832 tSCC zMath_ExceptionSelect0[] =
2833 "struct exception";
2834
2835 /*
2836 * content bypass pattern - skip fix if pattern found
2837 */
2838 tSCC zMath_ExceptionBypass0[] =
2839 "We have a problem when using C\\+\\+";
2840
2841 #define MATH_EXCEPTION_TEST_CT 2
2842 static tTestDesc aMath_ExceptionTests[] = {
2843 { TT_NEGREP, zMath_ExceptionBypass0, (regex_t*)NULL },
2844 { TT_EGREP, zMath_ExceptionSelect0, (regex_t*)NULL }, };
2845
2846 /*
2847 * Fix Command Arguments for Math_Exception
2848 */
2849 static const char* apzMath_ExceptionPatch[] = {
2850 "wrap",
2851 "#ifdef __cplusplus\n\
2852 #define exception __math_exception\n\
2853 #endif\n",
2854 "#ifdef __cplusplus\n\
2855 #undef exception\n\
2856 #endif\n",
2857 (char*)NULL };
2858
2859 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2860 *
2861 * Description of Math_Huge_Val_From_Dbl_Max fix
2862 */
2863 tSCC zMath_Huge_Val_From_Dbl_MaxName[] =
2864 "math_huge_val_from_dbl_max";
2865
2866 /*
2867 * File name selection pattern
2868 */
2869 tSCC zMath_Huge_Val_From_Dbl_MaxList[] =
2870 "|math.h|";
2871 /*
2872 * Machine/OS name selection pattern
2873 */
2874 #define apzMath_Huge_Val_From_Dbl_MaxMachs (const char**)NULL
2875
2876 /*
2877 * content selection pattern - do fix if pattern found
2878 */
2879 tSCC zMath_Huge_Val_From_Dbl_MaxSelect0[] =
2880 "define[ \t]+HUGE_VAL[ \t]+DBL_MAX";
2881
2882 /*
2883 * content bypass pattern - skip fix if pattern found
2884 */
2885 tSCC zMath_Huge_Val_From_Dbl_MaxBypass0[] =
2886 "define[ \t]+DBL_MAX";
2887
2888 #define MATH_HUGE_VAL_FROM_DBL_MAX_TEST_CT 2
2889 static tTestDesc aMath_Huge_Val_From_Dbl_MaxTests[] = {
2890 { TT_NEGREP, zMath_Huge_Val_From_Dbl_MaxBypass0, (regex_t*)NULL },
2891 { TT_EGREP, zMath_Huge_Val_From_Dbl_MaxSelect0, (regex_t*)NULL }, };
2892
2893 /*
2894 * Fix Command Arguments for Math_Huge_Val_From_Dbl_Max
2895 */
2896 static const char* apzMath_Huge_Val_From_Dbl_MaxPatch[] = { "sh", "-c",
2897 "\tdbl_max_def=`egrep 'define[ \t]+DBL_MAX[ \t]+.*' float.h | sed 's/.*DBL_MAX[ \t]*//' 2>/dev/null`\n\n\
2898 \tif ( test -n \"${dbl_max_def}\" ) > /dev/null 2>&1\n\
2899 \tthen sed -e '/define[ \t]*HUGE_VAL[ \t]*DBL_MAX/s@DBL_MAX@'\"$dbl_max_def@\"\n\
2900 \telse cat\n\
2901 \tfi",
2902 (char*)NULL };
2903
2904 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2905 *
2906 * Description of Math_Huge_Val_Ifndef fix
2907 */
2908 tSCC zMath_Huge_Val_IfndefName[] =
2909 "math_huge_val_ifndef";
2910
2911 /*
2912 * File name selection pattern
2913 */
2914 tSCC zMath_Huge_Val_IfndefList[] =
2915 "|math.h|math/math.h|";
2916 /*
2917 * Machine/OS name selection pattern
2918 */
2919 #define apzMath_Huge_Val_IfndefMachs (const char**)NULL
2920
2921 /*
2922 * content selection pattern - do fix if pattern found
2923 */
2924 tSCC zMath_Huge_Val_IfndefSelect0[] =
2925 "define[ \t]+HUGE_VAL";
2926
2927 #define MATH_HUGE_VAL_IFNDEF_TEST_CT 1
2928 static tTestDesc aMath_Huge_Val_IfndefTests[] = {
2929 { TT_EGREP, zMath_Huge_Val_IfndefSelect0, (regex_t*)NULL }, };
2930
2931 /*
2932 * Fix Command Arguments for Math_Huge_Val_Ifndef
2933 */
2934 static const char* apzMath_Huge_Val_IfndefPatch[] = {
2935 "format",
2936 "#ifndef HUGE_VAL\n\
2937 %0\n\
2938 #endif",
2939 "^[ \t]*#[ \t]*define[ \t]+HUGE_VAL[ \t].*",
2940 (char*)NULL };
2941
2942 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2943 *
2944 * Description of Nested_Auth_Des fix
2945 */
2946 tSCC zNested_Auth_DesName[] =
2947 "nested_auth_des";
2948
2949 /*
2950 * File name selection pattern
2951 */
2952 tSCC zNested_Auth_DesList[] =
2953 "|rpc/rpc.h|";
2954 /*
2955 * Machine/OS name selection pattern
2956 */
2957 #define apzNested_Auth_DesMachs (const char**)NULL
2958
2959 /*
2960 * content selection pattern - do fix if pattern found
2961 */
2962 tSCC zNested_Auth_DesSelect0[] =
2963 "(/\\*.*rpc/auth_des\\.h>.*)/\\*";
2964
2965 #define NESTED_AUTH_DES_TEST_CT 1
2966 static tTestDesc aNested_Auth_DesTests[] = {
2967 { TT_EGREP, zNested_Auth_DesSelect0, (regex_t*)NULL }, };
2968
2969 /*
2970 * Fix Command Arguments for Nested_Auth_Des
2971 */
2972 static const char* apzNested_Auth_DesPatch[] = {
2973 "format",
2974 "%1*/ /*",
2975 (char*)NULL };
2976
2977 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2978 *
2979 * Description of Nested_Motorola fix
2980 */
2981 tSCC zNested_MotorolaName[] =
2982 "nested_motorola";
2983
2984 /*
2985 * File name selection pattern
2986 */
2987 tSCC zNested_MotorolaList[] =
2988 "|sys/limits.h|limits.h|";
2989 /*
2990 * Machine/OS name selection pattern
2991 */
2992 tSCC* apzNested_MotorolaMachs[] = {
2993 "m68k-motorola-sysv*",
2994 (const char*)NULL };
2995
2996 /*
2997 * content selection pattern - do fix if pattern found
2998 */
2999 tSCC zNested_MotorolaSelect0[] =
3000 "max # bytes atomic in write|error value returned by Math lib";
3001
3002 #define NESTED_MOTOROLA_TEST_CT 1
3003 static tTestDesc aNested_MotorolaTests[] = {
3004 { TT_EGREP, zNested_MotorolaSelect0, (regex_t*)NULL }, };
3005
3006 /*
3007 * Fix Command Arguments for Nested_Motorola
3008 */
3009 static const char* apzNested_MotorolaPatch[] = { "sed",
3010 "-e", "s@^\\(#undef[ \t][ \t]*PIPE_BUF[ \t]*/\\* max # bytes atomic in write to a\\)$@\\1 */@",
3011 "-e", "s@\\(/\\*#define\tHUGE_VAL\t3.[0-9e+]* \\)\\(/\\*error value returned by Math lib\\*/\\)$@\\1*/ \\2@",
3012 (char*)NULL };
3013
3014 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3015 *
3016 * Description of Nested_Sys_Limits fix
3017 */
3018 tSCC zNested_Sys_LimitsName[] =
3019 "nested_sys_limits";
3020
3021 /*
3022 * File name selection pattern
3023 */
3024 tSCC zNested_Sys_LimitsList[] =
3025 "|sys/limits.h|";
3026 /*
3027 * Machine/OS name selection pattern
3028 */
3029 #define apzNested_Sys_LimitsMachs (const char**)NULL
3030
3031 /*
3032 * content selection pattern - do fix if pattern found
3033 */
3034 tSCC zNested_Sys_LimitsSelect0[] =
3035 "CHILD_MAX";
3036
3037 #define NESTED_SYS_LIMITS_TEST_CT 1
3038 static tTestDesc aNested_Sys_LimitsTests[] = {
3039 { TT_EGREP, zNested_Sys_LimitsSelect0, (regex_t*)NULL }, };
3040
3041 /*
3042 * Fix Command Arguments for Nested_Sys_Limits
3043 */
3044 static const char* apzNested_Sys_LimitsPatch[] = { "sed",
3045 "-e", "/CHILD_MAX/s,/\\* Max, Max,",
3046 "-e", "/OPEN_MAX/s,/\\* Max, Max,",
3047 (char*)NULL };
3048
3049 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3050 *
3051 * Description of News_Os_Recursion fix
3052 */
3053 tSCC zNews_Os_RecursionName[] =
3054 "news_os_recursion";
3055
3056 /*
3057 * File name selection pattern
3058 */
3059 tSCC zNews_Os_RecursionList[] =
3060 "|stdlib.h|";
3061 /*
3062 * Machine/OS name selection pattern
3063 */
3064 #define apzNews_Os_RecursionMachs (const char**)NULL
3065
3066 /*
3067 * content selection pattern - do fix if pattern found
3068 */
3069 tSCC zNews_Os_RecursionSelect0[] =
3070 "[ \t]*#include <stdlib\\.h>.*";
3071
3072 #define NEWS_OS_RECURSION_TEST_CT 1
3073 static tTestDesc aNews_Os_RecursionTests[] = {
3074 { TT_EGREP, zNews_Os_RecursionSelect0, (regex_t*)NULL }, };
3075
3076 /*
3077 * Fix Command Arguments for News_Os_Recursion
3078 */
3079 static const char* apzNews_Os_RecursionPatch[] = {
3080 "format",
3081 "#ifdef BOGUS_RECURSION\n\
3082 %0\n\
3083 #endif",
3084 (char*)NULL };
3085
3086 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3087 *
3088 * Description of Next_Math_Prefix fix
3089 */
3090 tSCC zNext_Math_PrefixName[] =
3091 "next_math_prefix";
3092
3093 /*
3094 * File name selection pattern
3095 */
3096 tSCC zNext_Math_PrefixList[] =
3097 "|ansi/math.h|";
3098 /*
3099 * Machine/OS name selection pattern
3100 */
3101 #define apzNext_Math_PrefixMachs (const char**)NULL
3102
3103 /*
3104 * content selection pattern - do fix if pattern found
3105 */
3106 tSCC zNext_Math_PrefixSelect0[] =
3107 "^extern[ \t]+double[ \t]+__const__[ \t]";
3108
3109 #define NEXT_MATH_PREFIX_TEST_CT 1
3110 static tTestDesc aNext_Math_PrefixTests[] = {
3111 { TT_EGREP, zNext_Math_PrefixSelect0, (regex_t*)NULL }, };
3112
3113 /*
3114 * Fix Command Arguments for Next_Math_Prefix
3115 */
3116 static const char* apzNext_Math_PrefixPatch[] = {
3117 "format",
3118 "extern double %1(",
3119 "^extern[ \t]+double[ \t]+__const__[ \t]+([a-z]+)\\(",
3120 (char*)NULL };
3121
3122 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3123 *
3124 * Description of Next_Template fix
3125 */
3126 tSCC zNext_TemplateName[] =
3127 "next_template";
3128
3129 /*
3130 * File name selection pattern
3131 */
3132 tSCC zNext_TemplateList[] =
3133 "|bsd/libc.h|";
3134 /*
3135 * Machine/OS name selection pattern
3136 */
3137 #define apzNext_TemplateMachs (const char**)NULL
3138
3139 /*
3140 * content selection pattern - do fix if pattern found
3141 */
3142 tSCC zNext_TemplateSelect0[] =
3143 "[ \t]template\\)";
3144
3145 #define NEXT_TEMPLATE_TEST_CT 1
3146 static tTestDesc aNext_TemplateTests[] = {
3147 { TT_EGREP, zNext_TemplateSelect0, (regex_t*)NULL }, };
3148
3149 /*
3150 * Fix Command Arguments for Next_Template
3151 */
3152 static const char* apzNext_TemplatePatch[] = {
3153 "format",
3154 "(%1)",
3155 "\\(([^)]*)[ \t]template\\)",
3156 (char*)NULL };
3157
3158 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3159 *
3160 * Description of Next_Volitile fix
3161 */
3162 tSCC zNext_VolitileName[] =
3163 "next_volitile";
3164
3165 /*
3166 * File name selection pattern
3167 */
3168 tSCC zNext_VolitileList[] =
3169 "|ansi/stdlib.h|";
3170 /*
3171 * Machine/OS name selection pattern
3172 */
3173 #define apzNext_VolitileMachs (const char**)NULL
3174
3175 /*
3176 * content selection pattern - do fix if pattern found
3177 */
3178 tSCC zNext_VolitileSelect0[] =
3179 "^extern[ \t]+volatile[ \t]+void[ \t]";
3180
3181 #define NEXT_VOLITILE_TEST_CT 1
3182 static tTestDesc aNext_VolitileTests[] = {
3183 { TT_EGREP, zNext_VolitileSelect0, (regex_t*)NULL }, };
3184
3185 /*
3186 * Fix Command Arguments for Next_Volitile
3187 */
3188 static const char* apzNext_VolitilePatch[] = {
3189 "format",
3190 "extern void %1(",
3191 "^extern[ \t]+volatile[ \t]+void[ \t]+(exit|abort)\\(",
3192 (char*)NULL };
3193
3194 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3195 *
3196 * Description of Next_Wait_Union fix
3197 */
3198 tSCC zNext_Wait_UnionName[] =
3199 "next_wait_union";
3200
3201 /*
3202 * File name selection pattern
3203 */
3204 tSCC zNext_Wait_UnionList[] =
3205 "|sys/wait.h|";
3206 /*
3207 * Machine/OS name selection pattern
3208 */
3209 #define apzNext_Wait_UnionMachs (const char**)NULL
3210
3211 /*
3212 * content selection pattern - do fix if pattern found
3213 */
3214 tSCC zNext_Wait_UnionSelect0[] =
3215 "wait\\(union wait";
3216
3217 #define NEXT_WAIT_UNION_TEST_CT 1
3218 static tTestDesc aNext_Wait_UnionTests[] = {
3219 { TT_EGREP, zNext_Wait_UnionSelect0, (regex_t*)NULL }, };
3220
3221 /*
3222 * Fix Command Arguments for Next_Wait_Union
3223 */
3224 static const char* apzNext_Wait_UnionPatch[] = {
3225 "format",
3226 "wait(void",
3227 (char*)NULL };
3228
3229 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3230 *
3231 * Description of Nodeent_Syntax fix
3232 */
3233 tSCC zNodeent_SyntaxName[] =
3234 "nodeent_syntax";
3235
3236 /*
3237 * File name selection pattern
3238 */
3239 tSCC zNodeent_SyntaxList[] =
3240 "|netdnet/dnetdb.h|";
3241 /*
3242 * Machine/OS name selection pattern
3243 */
3244 #define apzNodeent_SyntaxMachs (const char**)NULL
3245
3246 /*
3247 * content selection pattern - do fix if pattern found
3248 */
3249 tSCC zNodeent_SyntaxSelect0[] =
3250 "char[ \t]*\\*na_addr[ \t]*$";
3251
3252 #define NODEENT_SYNTAX_TEST_CT 1
3253 static tTestDesc aNodeent_SyntaxTests[] = {
3254 { TT_EGREP, zNodeent_SyntaxSelect0, (regex_t*)NULL }, };
3255
3256 /*
3257 * Fix Command Arguments for Nodeent_Syntax
3258 */
3259 static const char* apzNodeent_SyntaxPatch[] = {
3260 "format",
3261 "%0;",
3262 (char*)NULL };
3263
3264 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3265 *
3266 * Description of Osf_Namespace_A fix
3267 */
3268 tSCC zOsf_Namespace_AName[] =
3269 "osf_namespace_a";
3270
3271 /*
3272 * File name selection pattern
3273 */
3274 tSCC zOsf_Namespace_AList[] =
3275 "|reg_types.h|sys/lc_core.h|";
3276 /*
3277 * Machine/OS name selection pattern
3278 */
3279 #define apzOsf_Namespace_AMachs (const char**)NULL
3280
3281 /*
3282 * perform the 'test' shell command - do fix on success
3283 */
3284 tSCC zOsf_Namespace_ATest0[] =
3285 " -r reg_types.h";
3286 tSCC zOsf_Namespace_ATest1[] =
3287 " -r sys/lc_core.h";
3288 tSCC zOsf_Namespace_ATest2[] =
3289 " -n \"`grep '} regex_t;' reg_types.h`\"";
3290 tSCC zOsf_Namespace_ATest3[] =
3291 " -z \"`grep __regex_t regex.h`\"";
3292
3293 #define OSF_NAMESPACE_A_TEST_CT 4
3294 static tTestDesc aOsf_Namespace_ATests[] = {
3295 { TT_TEST, zOsf_Namespace_ATest0, 0 /* unused */ },
3296 { TT_TEST, zOsf_Namespace_ATest1, 0 /* unused */ },
3297 { TT_TEST, zOsf_Namespace_ATest2, 0 /* unused */ },
3298 { TT_TEST, zOsf_Namespace_ATest3, 0 /* unused */ }, };
3299
3300 /*
3301 * Fix Command Arguments for Osf_Namespace_A
3302 */
3303 static const char* apzOsf_Namespace_APatch[] = {
3304 "format",
3305 "__%0",
3306 "reg(ex|off|match)_t",
3307 (char*)NULL };
3308
3309 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3310 *
3311 * Description of Osf_Namespace_C fix
3312 */
3313 tSCC zOsf_Namespace_CName[] =
3314 "osf_namespace_c";
3315
3316 /*
3317 * File name selection pattern
3318 */
3319 tSCC zOsf_Namespace_CList[] =
3320 "|regex.h|";
3321 /*
3322 * Machine/OS name selection pattern
3323 */
3324 #define apzOsf_Namespace_CMachs (const char**)NULL
3325
3326 /*
3327 * content selection pattern - do fix if pattern found
3328 */
3329 tSCC zOsf_Namespace_CSelect0[] =
3330 "#include <reg_types.h>.*";
3331
3332 /*
3333 * perform the 'test' shell command - do fix on success
3334 */
3335 tSCC zOsf_Namespace_CTest0[] =
3336 " -r reg_types.h";
3337 tSCC zOsf_Namespace_CTest1[] =
3338 " -r sys/lc_core.h";
3339 tSCC zOsf_Namespace_CTest2[] =
3340 " -n \"`grep '} regex_t;' reg_types.h`\"";
3341 tSCC zOsf_Namespace_CTest3[] =
3342 " -z \"`grep __regex_t regex.h`\"";
3343
3344 #define OSF_NAMESPACE_C_TEST_CT 5
3345 static tTestDesc aOsf_Namespace_CTests[] = {
3346 { TT_TEST, zOsf_Namespace_CTest0, 0 /* unused */ },
3347 { TT_TEST, zOsf_Namespace_CTest1, 0 /* unused */ },
3348 { TT_TEST, zOsf_Namespace_CTest2, 0 /* unused */ },
3349 { TT_TEST, zOsf_Namespace_CTest3, 0 /* unused */ },
3350 { TT_EGREP, zOsf_Namespace_CSelect0, (regex_t*)NULL }, };
3351
3352 /*
3353 * Fix Command Arguments for Osf_Namespace_C
3354 */
3355 static const char* apzOsf_Namespace_CPatch[] = {
3356 "format",
3357 "%0\n\
3358 typedef __regex_t\tregex_t;\n\
3359 typedef __regoff_t\tregoff_t;\n\
3360 typedef __regmatch_t\tregmatch_t;",
3361 (char*)NULL };
3362
3363 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3364 *
3365 * Description of Pthread_Page_Size fix
3366 */
3367 tSCC zPthread_Page_SizeName[] =
3368 "pthread_page_size";
3369
3370 /*
3371 * File name selection pattern
3372 */
3373 tSCC zPthread_Page_SizeList[] =
3374 "|pthread.h|";
3375 /*
3376 * Machine/OS name selection pattern
3377 */
3378 #define apzPthread_Page_SizeMachs (const char**)NULL
3379
3380 /*
3381 * content selection pattern - do fix if pattern found
3382 */
3383 tSCC zPthread_Page_SizeSelect0[] =
3384 "^int __page_size";
3385
3386 #define PTHREAD_PAGE_SIZE_TEST_CT 1
3387 static tTestDesc aPthread_Page_SizeTests[] = {
3388 { TT_EGREP, zPthread_Page_SizeSelect0, (regex_t*)NULL }, };
3389
3390 /*
3391 * Fix Command Arguments for Pthread_Page_Size
3392 */
3393 static const char* apzPthread_Page_SizePatch[] = {
3394 "format",
3395 "extern %0",
3396 (char*)NULL };
3397
3398 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3399 *
3400 * Description of Read_Ret_Type fix
3401 */
3402 tSCC zRead_Ret_TypeName[] =
3403 "read_ret_type";
3404
3405 /*
3406 * File name selection pattern
3407 */
3408 tSCC zRead_Ret_TypeList[] =
3409 "|stdio.h|";
3410 /*
3411 * Machine/OS name selection pattern
3412 */
3413 #define apzRead_Ret_TypeMachs (const char**)NULL
3414
3415 /*
3416 * content selection pattern - do fix if pattern found
3417 */
3418 tSCC zRead_Ret_TypeSelect0[] =
3419 "extern int\t.*, fread\\(\\), fwrite\\(\\)";
3420
3421 #define READ_RET_TYPE_TEST_CT 1
3422 static tTestDesc aRead_Ret_TypeTests[] = {
3423 { TT_EGREP, zRead_Ret_TypeSelect0, (regex_t*)NULL }, };
3424
3425 /*
3426 * Fix Command Arguments for Read_Ret_Type
3427 */
3428 static const char* apzRead_Ret_TypePatch[] = {
3429 "format",
3430 "extern unsigned int fread(), fwrite();\n\
3431 %1%2",
3432 "(extern int\t.*), fread\\(\\), fwrite\\(\\)(.*)",
3433 (char*)NULL };
3434
3435 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3436 *
3437 * Description of Rs6000_Double fix
3438 */
3439 tSCC zRs6000_DoubleName[] =
3440 "rs6000_double";
3441
3442 /*
3443 * File name selection pattern
3444 */
3445 tSCC zRs6000_DoubleList[] =
3446 "|math.h|";
3447 /*
3448 * Machine/OS name selection pattern
3449 */
3450 #define apzRs6000_DoubleMachs (const char**)NULL
3451
3452 /*
3453 * content selection pattern - do fix if pattern found
3454 */
3455 tSCC zRs6000_DoubleSelect0[] =
3456 "[^a-zA-Z_]class\\(";
3457
3458 #define RS6000_DOUBLE_TEST_CT 1
3459 static tTestDesc aRs6000_DoubleTests[] = {
3460 { TT_EGREP, zRs6000_DoubleSelect0, (regex_t*)NULL }, };
3461
3462 /*
3463 * Fix Command Arguments for Rs6000_Double
3464 */
3465 static const char* apzRs6000_DoublePatch[] = {
3466 "format",
3467 "#ifndef __cplusplus\n\
3468 %0\n\
3469 #endif",
3470 "^.*[^a-zA-Z_]class\\(.*",
3471 (char*)NULL };
3472
3473 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3474 *
3475 * Description of Rs6000_Fchmod fix
3476 */
3477 tSCC zRs6000_FchmodName[] =
3478 "rs6000_fchmod";
3479
3480 /*
3481 * File name selection pattern
3482 */
3483 tSCC zRs6000_FchmodList[] =
3484 "|sys/stat.h|";
3485 /*
3486 * Machine/OS name selection pattern
3487 */
3488 #define apzRs6000_FchmodMachs (const char**)NULL
3489
3490 /*
3491 * content selection pattern - do fix if pattern found
3492 */
3493 tSCC zRs6000_FchmodSelect0[] =
3494 "fchmod\\(char \\*";
3495
3496 #define RS6000_FCHMOD_TEST_CT 1
3497 static tTestDesc aRs6000_FchmodTests[] = {
3498 { TT_EGREP, zRs6000_FchmodSelect0, (regex_t*)NULL }, };
3499
3500 /*
3501 * Fix Command Arguments for Rs6000_Fchmod
3502 */
3503 static const char* apzRs6000_FchmodPatch[] = {
3504 "format",
3505 "fchmod(int",
3506 (char*)NULL };
3507
3508 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3509 *
3510 * Description of Rs6000_Param fix
3511 */
3512 tSCC zRs6000_ParamName[] =
3513 "rs6000_param";
3514
3515 /*
3516 * File name selection pattern
3517 */
3518 tSCC zRs6000_ParamList[] =
3519 "|stdio.h|unistd.h|";
3520 /*
3521 * Machine/OS name selection pattern
3522 */
3523 #define apzRs6000_ParamMachs (const char**)NULL
3524
3525 /*
3526 * content selection pattern - do fix if pattern found
3527 */
3528 tSCC zRs6000_ParamSelect0[] =
3529 "rename\\(const char \\*old, const char \\*new\\)";
3530
3531 #define RS6000_PARAM_TEST_CT 1
3532 static tTestDesc aRs6000_ParamTests[] = {
3533 { TT_EGREP, zRs6000_ParamSelect0, (regex_t*)NULL }, };
3534
3535 /*
3536 * Fix Command Arguments for Rs6000_Param
3537 */
3538 static const char* apzRs6000_ParamPatch[] = {
3539 "format",
3540 "rename(const char *_old, const char *_new)",
3541 (char*)NULL };
3542
3543 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3544 *
3545 * Description of Sco_Static_Func fix
3546 */
3547 tSCC zSco_Static_FuncName[] =
3548 "sco_static_func";
3549
3550 /*
3551 * File name selection pattern
3552 */
3553 tSCC zSco_Static_FuncList[] =
3554 "|sys/stat.h|";
3555 /*
3556 * Machine/OS name selection pattern
3557 */
3558 tSCC* apzSco_Static_FuncMachs[] = {
3559 "i?86-*-sco3.2*",
3560 (const char*)NULL };
3561
3562 /*
3563 * content selection pattern - do fix if pattern found
3564 */
3565 tSCC zSco_Static_FuncSelect0[] =
3566 "^static int";
3567
3568 #define SCO_STATIC_FUNC_TEST_CT 1
3569 static tTestDesc aSco_Static_FuncTests[] = {
3570 { TT_EGREP, zSco_Static_FuncSelect0, (regex_t*)NULL }, };
3571
3572 /*
3573 * Fix Command Arguments for Sco_Static_Func
3574 */
3575 static const char* apzSco_Static_FuncPatch[] = { "sed",
3576 "-e", "/^static int/i\\\n\
3577 #if __cplusplus\\\n\
3578 extern \"C\" {\\\n\
3579 #endif /* __cplusplus */",
3580 "-e", "/^}$/a\\\n\
3581 #if __cplusplus\\\n\
3582 }\\\n\
3583 #endif /* __cplusplus */",
3584 (char*)NULL };
3585
3586 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3587 *
3588 * Description of Sco_Utime fix
3589 */
3590 tSCC zSco_UtimeName[] =
3591 "sco_utime";
3592
3593 /*
3594 * File name selection pattern
3595 */
3596 tSCC zSco_UtimeList[] =
3597 "|sys/times.h|";
3598 /*
3599 * Machine/OS name selection pattern
3600 */
3601 tSCC* apzSco_UtimeMachs[] = {
3602 "i?86-*-sco3.2v4*",
3603 (const char*)NULL };
3604
3605 /*
3606 * content selection pattern - do fix if pattern found
3607 */
3608 tSCC zSco_UtimeSelect0[] =
3609 "\\(const char \\*, struct utimbuf \\*\\);";
3610
3611 #define SCO_UTIME_TEST_CT 1
3612 static tTestDesc aSco_UtimeTests[] = {
3613 { TT_EGREP, zSco_UtimeSelect0, (regex_t*)NULL }, };
3614
3615 /*
3616 * Fix Command Arguments for Sco_Utime
3617 */
3618 static const char* apzSco_UtimePatch[] = {
3619 "format",
3620 "(const char *, const struct utimbuf *);",
3621 (char*)NULL };
3622
3623 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3624 *
3625 * Description of Solaris_Mutex_Init fix
3626 */
3627 tSCC zSolaris_Mutex_InitName[] =
3628 "solaris_mutex_init";
3629
3630 /*
3631 * File name selection pattern
3632 */
3633 tSCC zSolaris_Mutex_InitList[] =
3634 "|pthread.h|";
3635 /*
3636 * Machine/OS name selection pattern
3637 */
3638 #define apzSolaris_Mutex_InitMachs (const char**)NULL
3639
3640 /*
3641 * content selection pattern - do fix if pattern found
3642 */
3643 tSCC zSolaris_Mutex_InitSelect0[] =
3644 "@\\(#\\)pthread.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
3645
3646 #define SOLARIS_MUTEX_INIT_TEST_CT 1
3647 static tTestDesc aSolaris_Mutex_InitTests[] = {
3648 { TT_EGREP, zSolaris_Mutex_InitSelect0, (regex_t*)NULL }, };
3649
3650 /*
3651 * Fix Command Arguments for Solaris_Mutex_Init
3652 */
3653 static const char* apzSolaris_Mutex_InitPatch[] = {
3654 "format",
3655 "#if __STDC__ - 0 == 0 && !defined(_NO_LONGLONG)\n\
3656 %0\n\
3657 #else\n\
3658 %1, {0}}%3\n\
3659 #endif",
3660 "(^#define[ \t]+PTHREAD_(MUTEX|COND)_INITIALIZER[ \t]+{.*),[ \t]*0}(|[ \t].*)$",
3661 (char*)NULL };
3662
3663 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3664 *
3665 * Description of Statsswtch fix
3666 */
3667 tSCC zStatsswtchName[] =
3668 "statsswtch";
3669
3670 /*
3671 * File name selection pattern
3672 */
3673 tSCC zStatsswtchList[] =
3674 "|rpcsvc/rstat.h|";
3675 /*
3676 * Machine/OS name selection pattern
3677 */
3678 #define apzStatsswtchMachs (const char**)NULL
3679
3680 /*
3681 * content selection pattern - do fix if pattern found
3682 */
3683 tSCC zStatsswtchSelect0[] =
3684 "boottime$";
3685
3686 #define STATSSWTCH_TEST_CT 1
3687 static tTestDesc aStatsswtchTests[] = {
3688 { TT_EGREP, zStatsswtchSelect0, (regex_t*)NULL }, };
3689
3690 /*
3691 * Fix Command Arguments for Statsswtch
3692 */
3693 static const char* apzStatsswtchPatch[] = {
3694 "format",
3695 "boottime;",
3696 (char*)NULL };
3697
3698 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3699 *
3700 * Description of Stdio_Stdarg_H fix
3701 */
3702 tSCC zStdio_Stdarg_HName[] =
3703 "stdio_stdarg_h";
3704
3705 /*
3706 * File name selection pattern
3707 */
3708 tSCC zStdio_Stdarg_HList[] =
3709 "|stdio.h|";
3710 /*
3711 * Machine/OS name selection pattern
3712 */
3713 #define apzStdio_Stdarg_HMachs (const char**)NULL
3714
3715 /*
3716 * content bypass pattern - skip fix if pattern found
3717 */
3718 tSCC zStdio_Stdarg_HBypass0[] =
3719 "include.*(stdarg.h|machine/ansi.h)";
3720
3721 #define STDIO_STDARG_H_TEST_CT 1
3722 static tTestDesc aStdio_Stdarg_HTests[] = {
3723 { TT_NEGREP, zStdio_Stdarg_HBypass0, (regex_t*)NULL }, };
3724
3725 /*
3726 * Fix Command Arguments for Stdio_Stdarg_H
3727 */
3728 static const char* apzStdio_Stdarg_HPatch[] = {
3729 "wrap",
3730 "#define __need___va_list\n\
3731 #include <stdarg.h>\n",
3732 (char*)NULL };
3733
3734 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3735 *
3736 * Description of Stdio_Va_List fix
3737 */
3738 tSCC zStdio_Va_ListName[] =
3739 "stdio_va_list";
3740
3741 /*
3742 * File name selection pattern
3743 */
3744 tSCC zStdio_Va_ListList[] =
3745 "|stdio.h|";
3746 /*
3747 * Machine/OS name selection pattern
3748 */
3749 #define apzStdio_Va_ListMachs (const char**)NULL
3750
3751 /*
3752 * content bypass pattern - skip fix if pattern found
3753 */
3754 tSCC zStdio_Va_ListBypass0[] =
3755 "__gnuc_va_list|_BSD_VA_LIST_|__DJ_va_list";
3756
3757 #define STDIO_VA_LIST_TEST_CT 1
3758 static tTestDesc aStdio_Va_ListTests[] = {
3759 { TT_NEGREP, zStdio_Va_ListBypass0, (regex_t*)NULL }, };
3760
3761 /*
3762 * Fix Command Arguments for Stdio_Va_List
3763 */
3764 static const char* apzStdio_Va_ListPatch[] = { "sed",
3765 "-e", "s@ va_list @ __gnuc_va_list @\n\
3766 s@ va_list)@ __gnuc_va_list)@\n\
3767 s@ _VA_LIST_));@ __gnuc_va_list));@\n\
3768 s@ __VA_LIST__));@ __gnuc_va_list));@\n\
3769 s@ va_list@ __not_va_list__@\n\
3770 s@\\*va_list@*__not_va_list__@\n\
3771 s@ __va_list)@ __gnuc_va_list)@\n\
3772 s@typedef[ \t]\\(.*\\)[ \t]va_list[ \t]*;@typedef \\1 __not_va_list__;@\n\
3773 s@GNUC_VA_LIST@GNUC_Va_LIST@\n\
3774 s@_NEED___VA_LIST@_NEED___Va_LIST@\n\
3775 s@VA_LIST@DUMMY_VA_LIST@\n\
3776 s@_Va_LIST@_VA_LIST@",
3777 (char*)NULL };
3778
3779 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3780 *
3781 * Description of Strict_Ansi_Not fix
3782 */
3783 tSCC zStrict_Ansi_NotName[] =
3784 "strict_ansi_not";
3785
3786 /*
3787 * File name selection pattern
3788 */
3789 #define zStrict_Ansi_NotList (char*)NULL
3790 /*
3791 * Machine/OS name selection pattern
3792 */
3793 #define apzStrict_Ansi_NotMachs (const char**)NULL
3794
3795 /*
3796 * content selection pattern - do fix if pattern found
3797 */
3798 tSCC zStrict_Ansi_NotSelect0[] =
3799 "^([ \t]*#[ \t]*if.*)(!__STDC__|__STDC__[ \t]*==[ \t]*0|__STDC__[ \t]*!=[ \t]*1|__STDC__[ \t]*-[ \t]*0[ \t]*==[ \t]*0)";
3800
3801 /*
3802 * content bypass pattern - skip fix if pattern found
3803 */
3804 tSCC zStrict_Ansi_NotBypass0[] =
3805 "GNU and MIPS C compilers define __STDC__ differently";
3806
3807 /*
3808 * perform the C function call test
3809 */
3810 tSCC zStrict_Ansi_NotFTst0[] = "stdc_0_in_system_headers";
3811
3812 #define STRICT_ANSI_NOT_TEST_CT 3
3813 static tTestDesc aStrict_Ansi_NotTests[] = {
3814 { TT_FUNCTION, zStrict_Ansi_NotFTst0, 0 /* unused */ },
3815 { TT_NEGREP, zStrict_Ansi_NotBypass0, (regex_t*)NULL },
3816 { TT_EGREP, zStrict_Ansi_NotSelect0, (regex_t*)NULL }, };
3817
3818 /*
3819 * Fix Command Arguments for Strict_Ansi_Not
3820 */
3821 static const char* apzStrict_Ansi_NotPatch[] = {
3822 "format",
3823 "%1 !defined(__STRICT_ANSI__)",
3824 (char*)NULL };
3825
3826 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3827 *
3828 * Description of Strict_Ansi_Not_Ctd fix
3829 */
3830 tSCC zStrict_Ansi_Not_CtdName[] =
3831 "strict_ansi_not_ctd";
3832
3833 /*
3834 * File name selection pattern
3835 */
3836 tSCC zStrict_Ansi_Not_CtdList[] =
3837 "|math.h|limits.h|stdio.h|signal.h|stdlib.h|sys/signal.h|time.h|";
3838 /*
3839 * Machine/OS name selection pattern
3840 */
3841 #define apzStrict_Ansi_Not_CtdMachs (const char**)NULL
3842
3843 /*
3844 * content selection pattern - do fix if pattern found
3845 */
3846 tSCC zStrict_Ansi_Not_CtdSelect0[] =
3847 "^([ \t]*(\\(|&&|\\|\\|)([ \t(]*!*[ \t]*defined\\([a-zA-Z_0-9]+\\)[ \t]*[|&][|&])*[ \t(]*)(__STDC__[ \t]*(|-[ \t]*0[ \t]*)==[ \t]*0)";
3848
3849 /*
3850 * perform the C function call test
3851 */
3852 tSCC zStrict_Ansi_Not_CtdFTst0[] = "stdc_0_in_system_headers";
3853
3854 #define STRICT_ANSI_NOT_CTD_TEST_CT 2
3855 static tTestDesc aStrict_Ansi_Not_CtdTests[] = {
3856 { TT_FUNCTION, zStrict_Ansi_Not_CtdFTst0, 0 /* unused */ },
3857 { TT_EGREP, zStrict_Ansi_Not_CtdSelect0, (regex_t*)NULL }, };
3858
3859 /*
3860 * Fix Command Arguments for Strict_Ansi_Not_Ctd
3861 */
3862 static const char* apzStrict_Ansi_Not_CtdPatch[] = {
3863 "format",
3864 "%1 !defined(__STRICT_ANSI__)",
3865 (char*)NULL };
3866
3867 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3868 *
3869 * Description of Strict_Ansi_Only fix
3870 */
3871 tSCC zStrict_Ansi_OnlyName[] =
3872 "strict_ansi_only";
3873
3874 /*
3875 * File name selection pattern
3876 */
3877 #define zStrict_Ansi_OnlyList (char*)NULL
3878 /*
3879 * Machine/OS name selection pattern
3880 */
3881 #define apzStrict_Ansi_OnlyMachs (const char**)NULL
3882
3883 /*
3884 * content selection pattern - do fix if pattern found
3885 */
3886 tSCC zStrict_Ansi_OnlySelect0[] =
3887 "^([ \t]*#[ \t]*if.*)(__STDC__[ \t]*!=[ \t]*0|__STDC__[ \t]*==[ \t]*1|__STDC__[ \t]*-[ \t]*0[ \t]*==[ \t]*1|__STDC__[ \t]*-[ \t]*0[ \t]*!=[ \t]*0)";
3888
3889 /*
3890 * perform the C function call test
3891 */
3892 tSCC zStrict_Ansi_OnlyFTst0[] = "stdc_0_in_system_headers";
3893
3894 #define STRICT_ANSI_ONLY_TEST_CT 2
3895 static tTestDesc aStrict_Ansi_OnlyTests[] = {
3896 { TT_FUNCTION, zStrict_Ansi_OnlyFTst0, 0 /* unused */ },
3897 { TT_EGREP, zStrict_Ansi_OnlySelect0, (regex_t*)NULL }, };
3898
3899 /*
3900 * Fix Command Arguments for Strict_Ansi_Only
3901 */
3902 static const char* apzStrict_Ansi_OnlyPatch[] = {
3903 "format",
3904 "%1 defined(__STRICT_ANSI__)",
3905 (char*)NULL };
3906
3907 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3908 *
3909 * Description of Struct_File fix
3910 */
3911 tSCC zStruct_FileName[] =
3912 "struct_file";
3913
3914 /*
3915 * File name selection pattern
3916 */
3917 tSCC zStruct_FileList[] =
3918 "|rpc/xdr.h|";
3919 /*
3920 * Machine/OS name selection pattern
3921 */
3922 #define apzStruct_FileMachs (const char**)NULL
3923
3924 /*
3925 * content selection pattern - do fix if pattern found
3926 */
3927 tSCC zStruct_FileSelect0[] =
3928 "^.*xdrstdio_create.*struct __file_s";
3929
3930 #define STRUCT_FILE_TEST_CT 1
3931 static tTestDesc aStruct_FileTests[] = {
3932 { TT_EGREP, zStruct_FileSelect0, (regex_t*)NULL }, };
3933
3934 /*
3935 * Fix Command Arguments for Struct_File
3936 */
3937 static const char* apzStruct_FilePatch[] = {
3938 "format",
3939 "struct __file_s;\n\
3940 %0",
3941 (char*)NULL };
3942
3943 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3944 *
3945 * Description of Struct_Sockaddr fix
3946 */
3947 tSCC zStruct_SockaddrName[] =
3948 "struct_sockaddr";
3949
3950 /*
3951 * File name selection pattern
3952 */
3953 tSCC zStruct_SockaddrList[] =
3954 "|rpc/auth.h|";
3955 /*
3956 * Machine/OS name selection pattern
3957 */
3958 #define apzStruct_SockaddrMachs (const char**)NULL
3959
3960 /*
3961 * content selection pattern - do fix if pattern found
3962 */
3963 tSCC zStruct_SockaddrSelect0[] =
3964 "^.*authdes_create.*struct sockaddr";
3965
3966 /*
3967 * content bypass pattern - skip fix if pattern found
3968 */
3969 tSCC zStruct_SockaddrBypass0[] =
3970 "<sys/socket.h>";
3971
3972 #define STRUCT_SOCKADDR_TEST_CT 2
3973 static tTestDesc aStruct_SockaddrTests[] = {
3974 { TT_NEGREP, zStruct_SockaddrBypass0, (regex_t*)NULL },
3975 { TT_EGREP, zStruct_SockaddrSelect0, (regex_t*)NULL }, };
3976
3977 /*
3978 * Fix Command Arguments for Struct_Sockaddr
3979 */
3980 static const char* apzStruct_SockaddrPatch[] = {
3981 "format",
3982 "struct sockaddr;\n\
3983 %0",
3984 (char*)NULL };
3985
3986 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3987 *
3988 * Description of Sun_Auth_Proto fix
3989 */
3990 tSCC zSun_Auth_ProtoName[] =
3991 "sun_auth_proto";
3992
3993 /*
3994 * File name selection pattern
3995 */
3996 tSCC zSun_Auth_ProtoList[] =
3997 "|rpc/auth.h|rpc/clnt.h|rpc/svc.h|rpc/xdr.h|";
3998 /*
3999 * Machine/OS name selection pattern
4000 */
4001 #define apzSun_Auth_ProtoMachs (const char**)NULL
4002
4003 /*
4004 * content selection pattern - do fix if pattern found
4005 */
4006 tSCC zSun_Auth_ProtoSelect0[] =
4007 "\\(\\*[a-z][a-z_]*\\)\\(\\)";
4008
4009 #define SUN_AUTH_PROTO_TEST_CT 1
4010 static tTestDesc aSun_Auth_ProtoTests[] = {
4011 { TT_EGREP, zSun_Auth_ProtoSelect0, (regex_t*)NULL }, };
4012
4013 /*
4014 * Fix Command Arguments for Sun_Auth_Proto
4015 */
4016 static const char* apzSun_Auth_ProtoPatch[] = {
4017 "format",
4018 "#ifdef __cplusplus\n\
4019 %1(...);%2\n\
4020 #else\n\
4021 %1();%2\n\
4022 #endif",
4023 "(.*\\(\\*[a-z][a-z_]*\\))\\(\\);(.*)",
4024 (char*)NULL };
4025
4026 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4027 *
4028 * Description of Sun_Bogus_Ifdef fix
4029 */
4030 tSCC zSun_Bogus_IfdefName[] =
4031 "sun_bogus_ifdef";
4032
4033 /*
4034 * File name selection pattern
4035 */
4036 tSCC zSun_Bogus_IfdefList[] =
4037 "|hsfs/hsfs_spec.h|hsfs/iso_spec.h|";
4038 /*
4039 * Machine/OS name selection pattern
4040 */
4041 #define apzSun_Bogus_IfdefMachs (const char**)NULL
4042
4043 /*
4044 * content selection pattern - do fix if pattern found
4045 */
4046 tSCC zSun_Bogus_IfdefSelect0[] =
4047 "#ifdef(.*\\|\\|.*)";
4048
4049 #define SUN_BOGUS_IFDEF_TEST_CT 1
4050 static tTestDesc aSun_Bogus_IfdefTests[] = {
4051 { TT_EGREP, zSun_Bogus_IfdefSelect0, (regex_t*)NULL }, };
4052
4053 /*
4054 * Fix Command Arguments for Sun_Bogus_Ifdef
4055 */
4056 static const char* apzSun_Bogus_IfdefPatch[] = {
4057 "format",
4058 "#if%1",
4059 (char*)NULL };
4060
4061 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4062 *
4063 * Description of Sun_Catmacro fix
4064 */
4065 tSCC zSun_CatmacroName[] =
4066 "sun_catmacro";
4067
4068 /*
4069 * File name selection pattern
4070 */
4071 tSCC zSun_CatmacroList[] =
4072 "|pixrect/memvar.h|";
4073 /*
4074 * Machine/OS name selection pattern
4075 */
4076 #define apzSun_CatmacroMachs (const char**)NULL
4077
4078 /*
4079 * content selection pattern - do fix if pattern found
4080 */
4081 tSCC zSun_CatmacroSelect0[] =
4082 "^#define[ \t]+CAT\\(a,b\\).*";
4083
4084 #define SUN_CATMACRO_TEST_CT 1
4085 static tTestDesc aSun_CatmacroTests[] = {
4086 { TT_EGREP, zSun_CatmacroSelect0, (regex_t*)NULL }, };
4087
4088 /*
4089 * Fix Command Arguments for Sun_Catmacro
4090 */
4091 static const char* apzSun_CatmacroPatch[] = {
4092 "format",
4093 "#ifdef __STDC__\n\
4094 # define CAT(a,b) a##b\n\
4095 #else\n\
4096 %0\n\
4097 #endif",
4098 (char*)NULL };
4099
4100 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4101 *
4102 * Description of Sun_Malloc fix
4103 */
4104 tSCC zSun_MallocName[] =
4105 "sun_malloc";
4106
4107 /*
4108 * File name selection pattern
4109 */
4110 tSCC zSun_MallocList[] =
4111 "|malloc.h|";
4112 /*
4113 * Machine/OS name selection pattern
4114 */
4115 #define apzSun_MallocMachs (const char**)NULL
4116 #define SUN_MALLOC_TEST_CT 0
4117 #define aSun_MallocTests (tTestDesc*)NULL
4118
4119 /*
4120 * Fix Command Arguments for Sun_Malloc
4121 */
4122 static const char* apzSun_MallocPatch[] = { "sed",
4123 "-e", "s/typedef[ \t]char \\*\tmalloc_t/typedef void \\*\tmalloc_t/g",
4124 "-e", "s/int[ \t][ \t]*free/void\tfree/g",
4125 "-e", "s/char\\([ \t]*\\*[ \t]*malloc\\)/void\\1/g",
4126 "-e", "s/char\\([ \t]*\\*[ \t]*realloc\\)/void\\1/g",
4127 "-e", "s/char\\([ \t]*\\*[ \t]*calloc\\)/void\\1/g",
4128 (char*)NULL };
4129
4130 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4131 *
4132 * Description of Sun_Rusers_Semi fix
4133 */
4134 tSCC zSun_Rusers_SemiName[] =
4135 "sun_rusers_semi";
4136
4137 /*
4138 * File name selection pattern
4139 */
4140 tSCC zSun_Rusers_SemiList[] =
4141 "|rpcsvc/rusers.h|";
4142 /*
4143 * Machine/OS name selection pattern
4144 */
4145 #define apzSun_Rusers_SemiMachs (const char**)NULL
4146
4147 /*
4148 * content selection pattern - do fix if pattern found
4149 */
4150 tSCC zSun_Rusers_SemiSelect0[] =
4151 "_cnt$";
4152
4153 #define SUN_RUSERS_SEMI_TEST_CT 1
4154 static tTestDesc aSun_Rusers_SemiTests[] = {
4155 { TT_EGREP, zSun_Rusers_SemiSelect0, (regex_t*)NULL }, };
4156
4157 /*
4158 * Fix Command Arguments for Sun_Rusers_Semi
4159 */
4160 static const char* apzSun_Rusers_SemiPatch[] = { "sed",
4161 "-e", "/^struct/,/^};/s/_cnt$/_cnt;/",
4162 (char*)NULL };
4163
4164 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4165 *
4166 * Description of Sun_Signal fix
4167 */
4168 tSCC zSun_SignalName[] =
4169 "sun_signal";
4170
4171 /*
4172 * File name selection pattern
4173 */
4174 tSCC zSun_SignalList[] =
4175 "|sys/signal.h|signal.h|";
4176 /*
4177 * Machine/OS name selection pattern
4178 */
4179 #define apzSun_SignalMachs (const char**)NULL
4180
4181 /*
4182 * content selection pattern - do fix if pattern found
4183 */
4184 tSCC zSun_SignalSelect0[] =
4185 "^void\t\\(\\*signal\\(\\)\\)\\(\\);.*";
4186
4187 #define SUN_SIGNAL_TEST_CT 1
4188 static tTestDesc aSun_SignalTests[] = {
4189 { TT_EGREP, zSun_SignalSelect0, (regex_t*)NULL }, };
4190
4191 /*
4192 * Fix Command Arguments for Sun_Signal
4193 */
4194 static const char* apzSun_SignalPatch[] = {
4195 "format",
4196 "#ifdef __cplusplus\n\
4197 void\t(*signal(...))(...);\n\
4198 #else\n\
4199 %0\n\
4200 #endif",
4201 (char*)NULL };
4202
4203 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4204 *
4205 * Description of Sunos_Matherr_Decl fix
4206 */
4207 tSCC zSunos_Matherr_DeclName[] =
4208 "sunos_matherr_decl";
4209
4210 /*
4211 * File name selection pattern
4212 */
4213 tSCC zSunos_Matherr_DeclList[] =
4214 "|math.h|";
4215 /*
4216 * Machine/OS name selection pattern
4217 */
4218 #define apzSunos_Matherr_DeclMachs (const char**)NULL
4219
4220 /*
4221 * content selection pattern - do fix if pattern found
4222 */
4223 tSCC zSunos_Matherr_DeclSelect0[] =
4224 "matherr";
4225
4226 /*
4227 * content bypass pattern - skip fix if pattern found
4228 */
4229 tSCC zSunos_Matherr_DeclBypass0[] =
4230 "matherr.*(struct exception|__MATH_EXCEPTION)";
4231
4232 #define SUNOS_MATHERR_DECL_TEST_CT 2
4233 static tTestDesc aSunos_Matherr_DeclTests[] = {
4234 { TT_NEGREP, zSunos_Matherr_DeclBypass0, (regex_t*)NULL },
4235 { TT_EGREP, zSunos_Matherr_DeclSelect0, (regex_t*)NULL }, };
4236
4237 /*
4238 * Fix Command Arguments for Sunos_Matherr_Decl
4239 */
4240 static const char* apzSunos_Matherr_DeclPatch[] = {
4241 "wrap",
4242 "struct exception;\n",
4243 (char*)NULL };
4244
4245 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4246 *
4247 * Description of Sunos_Strlen fix
4248 */
4249 tSCC zSunos_StrlenName[] =
4250 "sunos_strlen";
4251
4252 /*
4253 * File name selection pattern
4254 */
4255 tSCC zSunos_StrlenList[] =
4256 "|strings.h|";
4257 /*
4258 * Machine/OS name selection pattern
4259 */
4260 #define apzSunos_StrlenMachs (const char**)NULL
4261
4262 /*
4263 * content selection pattern - do fix if pattern found
4264 */
4265 tSCC zSunos_StrlenSelect0[] =
4266 "int[ \t]*strlen\\(\\);(.*)";
4267
4268 #define SUNOS_STRLEN_TEST_CT 1
4269 static tTestDesc aSunos_StrlenTests[] = {
4270 { TT_EGREP, zSunos_StrlenSelect0, (regex_t*)NULL }, };
4271
4272 /*
4273 * Fix Command Arguments for Sunos_Strlen
4274 */
4275 static const char* apzSunos_StrlenPatch[] = {
4276 "format",
4277 "__SIZE_TYPE__ strlen();%1",
4278 (char*)NULL };
4279
4280 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4281 *
4282 * Description of Svr4__P fix
4283 */
4284 tSCC zSvr4__PName[] =
4285 "svr4__p";
4286
4287 /*
4288 * File name selection pattern
4289 */
4290 tSCC zSvr4__PList[] =
4291 "|math.h|floatingpoint.h|";
4292 /*
4293 * Machine/OS name selection pattern
4294 */
4295 #define apzSvr4__PMachs (const char**)NULL
4296
4297 /*
4298 * content selection pattern - do fix if pattern found
4299 */
4300 tSCC zSvr4__PSelect0[] =
4301 "^#define[ \t]+__P.*";
4302
4303 #define SVR4__P_TEST_CT 1
4304 static tTestDesc aSvr4__PTests[] = {
4305 { TT_EGREP, zSvr4__PSelect0, (regex_t*)NULL }, };
4306
4307 /*
4308 * Fix Command Arguments for Svr4__P
4309 */
4310 static const char* apzSvr4__PPatch[] = {
4311 "format",
4312 "#ifndef __P\n\
4313 %0\n\
4314 #endif",
4315 (char*)NULL };
4316
4317 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4318 *
4319 * Description of Svr4_Getcwd fix
4320 */
4321 tSCC zSvr4_GetcwdName[] =
4322 "svr4_getcwd";
4323
4324 /*
4325 * File name selection pattern
4326 */
4327 tSCC zSvr4_GetcwdList[] =
4328 "|stdlib.h|unistd.h|prototypes.h|";
4329 /*
4330 * Machine/OS name selection pattern
4331 */
4332 #define apzSvr4_GetcwdMachs (const char**)NULL
4333
4334 /*
4335 * content selection pattern - do fix if pattern found
4336 */
4337 tSCC zSvr4_GetcwdSelect0[] =
4338 "getcwd\\(char \\*, int\\)";
4339
4340 #define SVR4_GETCWD_TEST_CT 1
4341 static tTestDesc aSvr4_GetcwdTests[] = {
4342 { TT_EGREP, zSvr4_GetcwdSelect0, (regex_t*)NULL }, };
4343
4344 /*
4345 * Fix Command Arguments for Svr4_Getcwd
4346 */
4347 static const char* apzSvr4_GetcwdPatch[] = {
4348 "format",
4349 "getcwd(char *, size_t)",
4350 (char*)NULL };
4351
4352 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4353 *
4354 * Description of Svr4_Profil fix
4355 */
4356 tSCC zSvr4_ProfilName[] =
4357 "svr4_profil";
4358
4359 /*
4360 * File name selection pattern
4361 */
4362 tSCC zSvr4_ProfilList[] =
4363 "|stdlib.h|unistd.h|";
4364 /*
4365 * Machine/OS name selection pattern
4366 */
4367 #define apzSvr4_ProfilMachs (const char**)NULL
4368
4369 /*
4370 * content selection pattern - do fix if pattern found
4371 */
4372 tSCC zSvr4_ProfilSelect0[] =
4373 "profil\\(unsigned short \\*, unsigned int, unsigned int, unsigned int\\)";
4374
4375 #define SVR4_PROFIL_TEST_CT 1
4376 static tTestDesc aSvr4_ProfilTests[] = {
4377 { TT_EGREP, zSvr4_ProfilSelect0, (regex_t*)NULL }, };
4378
4379 /*
4380 * Fix Command Arguments for Svr4_Profil
4381 */
4382 static const char* apzSvr4_ProfilPatch[] = {
4383 "format",
4384 "profil(unsigned short *, size_t, int, unsigned int)",
4385 (char*)NULL };
4386
4387 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4388 *
4389 * Description of Sysv68_String fix
4390 */
4391 tSCC zSysv68_StringName[] =
4392 "sysv68_string";
4393
4394 /*
4395 * File name selection pattern
4396 */
4397 tSCC zSysv68_StringList[] =
4398 "|testing.h|string.h|";
4399 /*
4400 * Machine/OS name selection pattern
4401 */
4402 #define apzSysv68_StringMachs (const char**)NULL
4403 #define SYSV68_STRING_TEST_CT 0
4404 #define aSysv68_StringTests (tTestDesc*)NULL
4405
4406 /*
4407 * Fix Command Arguments for Sysv68_String
4408 */
4409 static const char* apzSysv68_StringPatch[] = { "sed",
4410 "-e", "s/extern[ \t]*int[ \t]*strlen();/extern unsigned int strlen();/",
4411 "-e", "s/extern[ \t]*int[ \t]*ffs[ \t]*(long);/extern int ffs(int);/",
4412 "-e", "s/strdup(char \\*s1);/strdup(const char *s1);/",
4413 "-e", "/^extern char$/N",
4414 "-e", "s/^extern char\\(\\n\t\\*memccpy(),\\)$/extern void\\1/",
4415 "-e", "/^extern int$/N",
4416 "-e", "s/^extern int\\(\\n\tstrlen(),\\)/extern size_t\\1/",
4417 "-e", "/^\tstrncmp(),$/N",
4418 "-e", "s/^\\(\tstrncmp()\\),\\n\\(\tstrlen(),\\)$/\\1;\\\n\
4419 extern unsigned int\\\n\
4420 \\2/",
4421 (char*)NULL };
4422
4423 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4424 *
4425 * Description of Sysz_Stdlib_For_Sun fix
4426 */
4427 tSCC zSysz_Stdlib_For_SunName[] =
4428 "sysz_stdlib_for_sun";
4429
4430 /*
4431 * File name selection pattern
4432 */
4433 tSCC zSysz_Stdlib_For_SunList[] =
4434 "|stdlib.h|";
4435 /*
4436 * Machine/OS name selection pattern
4437 */
4438 #define apzSysz_Stdlib_For_SunMachs (const char**)NULL
4439
4440 /*
4441 * content selection pattern - do fix if pattern found
4442 */
4443 tSCC zSysz_Stdlib_For_SunSelect0[] =
4444 "char[ \t]*\\*[ \t]*(calloc|malloc|realloc|bsearch)[ \t]*\\(";
4445
4446 #define SYSZ_STDLIB_FOR_SUN_TEST_CT 1
4447 static tTestDesc aSysz_Stdlib_For_SunTests[] = {
4448 { TT_EGREP, zSysz_Stdlib_For_SunSelect0, (regex_t*)NULL }, };
4449
4450 /*
4451 * Fix Command Arguments for Sysz_Stdlib_For_Sun
4452 */
4453 static const char* apzSysz_Stdlib_For_SunPatch[] = {
4454 "format",
4455 "void *\t%1(",
4456 (char*)NULL };
4457
4458 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4459 *
4460 * Description of Tinfo_Cplusplus fix
4461 */
4462 tSCC zTinfo_CplusplusName[] =
4463 "tinfo_cplusplus";
4464
4465 /*
4466 * File name selection pattern
4467 */
4468 tSCC zTinfo_CplusplusList[] =
4469 "|tinfo.h|";
4470 /*
4471 * Machine/OS name selection pattern
4472 */
4473 #define apzTinfo_CplusplusMachs (const char**)NULL
4474
4475 /*
4476 * content selection pattern - do fix if pattern found
4477 */
4478 tSCC zTinfo_CplusplusSelect0[] =
4479 "[ \t]_cplusplus";
4480
4481 #define TINFO_CPLUSPLUS_TEST_CT 1
4482 static tTestDesc aTinfo_CplusplusTests[] = {
4483 { TT_EGREP, zTinfo_CplusplusSelect0, (regex_t*)NULL }, };
4484
4485 /*
4486 * Fix Command Arguments for Tinfo_Cplusplus
4487 */
4488 static const char* apzTinfo_CplusplusPatch[] = {
4489 "format",
4490 " __cplusplus",
4491 (char*)NULL };
4492
4493 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4494 *
4495 * Description of Ultrix_Atexit_Param fix
4496 */
4497 tSCC zUltrix_Atexit_ParamName[] =
4498 "ultrix_atexit_param";
4499
4500 /*
4501 * File name selection pattern
4502 */
4503 tSCC zUltrix_Atexit_ParamList[] =
4504 "|stdlib.h|";
4505 /*
4506 * Machine/OS name selection pattern
4507 */
4508 #define apzUltrix_Atexit_ParamMachs (const char**)NULL
4509
4510 /*
4511 * content selection pattern - do fix if pattern found
4512 */
4513 tSCC zUltrix_Atexit_ParamSelect0[] =
4514 "atexit\\(.*\\(\\)";
4515
4516 #define ULTRIX_ATEXIT_PARAM_TEST_CT 1
4517 static tTestDesc aUltrix_Atexit_ParamTests[] = {
4518 { TT_EGREP, zUltrix_Atexit_ParamSelect0, (regex_t*)NULL }, };
4519
4520 /*
4521 * Fix Command Arguments for Ultrix_Atexit_Param
4522 */
4523 static const char* apzUltrix_Atexit_ParamPatch[] = {
4524 "format",
4525 "atexit( void (*__func)( void )",
4526 (char*)NULL };
4527
4528 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4529 *
4530 * Description of Ultrix_Atof_Param fix
4531 */
4532 tSCC zUltrix_Atof_ParamName[] =
4533 "ultrix_atof_param";
4534
4535 /*
4536 * File name selection pattern
4537 */
4538 tSCC zUltrix_Atof_ParamList[] =
4539 "|math.h|";
4540 /*
4541 * Machine/OS name selection pattern
4542 */
4543 #define apzUltrix_Atof_ParamMachs (const char**)NULL
4544
4545 /*
4546 * content selection pattern - do fix if pattern found
4547 */
4548 tSCC zUltrix_Atof_ParamSelect0[] =
4549 "atof\\([ \t]*char";
4550
4551 #define ULTRIX_ATOF_PARAM_TEST_CT 1
4552 static tTestDesc aUltrix_Atof_ParamTests[] = {
4553 { TT_EGREP, zUltrix_Atof_ParamSelect0, (regex_t*)NULL }, };
4554
4555 /*
4556 * Fix Command Arguments for Ultrix_Atof_Param
4557 */
4558 static const char* apzUltrix_Atof_ParamPatch[] = {
4559 "format",
4560 "atof(const char",
4561 (char*)NULL };
4562
4563 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4564 *
4565 * Description of Ultrix_Const fix
4566 */
4567 tSCC zUltrix_ConstName[] =
4568 "ultrix_const";
4569
4570 /*
4571 * File name selection pattern
4572 */
4573 tSCC zUltrix_ConstList[] =
4574 "|stdio.h|";
4575 /*
4576 * Machine/OS name selection pattern
4577 */
4578 #define apzUltrix_ConstMachs (const char**)NULL
4579
4580 /*
4581 * content selection pattern - do fix if pattern found
4582 */
4583 tSCC zUltrix_ConstSelect0[] =
4584 "perror\\( char \\*";
4585
4586 #define ULTRIX_CONST_TEST_CT 1
4587 static tTestDesc aUltrix_ConstTests[] = {
4588 { TT_EGREP, zUltrix_ConstSelect0, (regex_t*)NULL }, };
4589
4590 /*
4591 * Fix Command Arguments for Ultrix_Const
4592 */
4593 static const char* apzUltrix_ConstPatch[] = {
4594 "format",
4595 "%1 const %3 *__",
4596 "([ \t*](perror|fputs|fwrite|scanf|fscanf)\\(.*)[ \t]+(char|void) \\*__",
4597 (char*)NULL };
4598
4599 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4600 *
4601 * Description of Ultrix_Const2 fix
4602 */
4603 tSCC zUltrix_Const2Name[] =
4604 "ultrix_const2";
4605
4606 /*
4607 * File name selection pattern
4608 */
4609 tSCC zUltrix_Const2List[] =
4610 "|stdio.h|";
4611 /*
4612 * Machine/OS name selection pattern
4613 */
4614 #define apzUltrix_Const2Machs (const char**)NULL
4615
4616 /*
4617 * content selection pattern - do fix if pattern found
4618 */
4619 tSCC zUltrix_Const2Select0[] =
4620 "\\*fopen\\( char \\*";
4621
4622 #define ULTRIX_CONST2_TEST_CT 1
4623 static tTestDesc aUltrix_Const2Tests[] = {
4624 { TT_EGREP, zUltrix_Const2Select0, (regex_t*)NULL }, };
4625
4626 /*
4627 * Fix Command Arguments for Ultrix_Const2
4628 */
4629 static const char* apzUltrix_Const2Patch[] = {
4630 "format",
4631 "%1( const char *%3, const char *",
4632 "([ \t*](fopen|sscanf|popen|tempnam))\\([ \t]*char[ \t]*\\*([^,]*),[ \t]*char[ \t]*\\*[ \t]*",
4633 (char*)NULL };
4634
4635 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4636 *
4637 * Description of Ultrix_Fix_Fixproto fix
4638 */
4639 tSCC zUltrix_Fix_FixprotoName[] =
4640 "ultrix_fix_fixproto";
4641
4642 /*
4643 * File name selection pattern
4644 */
4645 tSCC zUltrix_Fix_FixprotoList[] =
4646 "|sys/utsname.h|";
4647 /*
4648 * Machine/OS name selection pattern
4649 */
4650 #define apzUltrix_Fix_FixprotoMachs (const char**)NULL
4651
4652 /*
4653 * content selection pattern - do fix if pattern found
4654 */
4655 tSCC zUltrix_Fix_FixprotoSelect0[] =
4656 "ULTRIX";
4657
4658 #define ULTRIX_FIX_FIXPROTO_TEST_CT 1
4659 static tTestDesc aUltrix_Fix_FixprotoTests[] = {
4660 { TT_EGREP, zUltrix_Fix_FixprotoSelect0, (regex_t*)NULL }, };
4661
4662 /*
4663 * Fix Command Arguments for Ultrix_Fix_Fixproto
4664 */
4665 static const char* apzUltrix_Fix_FixprotoPatch[] = {
4666 "format",
4667 "struct utsname;\n\
4668 %0",
4669 "^[ \t]*extern[ \t]*int[ \t]*uname\\(\\);",
4670 (char*)NULL };
4671
4672 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4673 *
4674 * Description of Ultrix_Ifdef fix
4675 */
4676 tSCC zUltrix_IfdefName[] =
4677 "ultrix_ifdef";
4678
4679 /*
4680 * File name selection pattern
4681 */
4682 tSCC zUltrix_IfdefList[] =
4683 "|sys/file.h|";
4684 /*
4685 * Machine/OS name selection pattern
4686 */
4687 #define apzUltrix_IfdefMachs (const char**)NULL
4688
4689 /*
4690 * content selection pattern - do fix if pattern found
4691 */
4692 tSCC zUltrix_IfdefSelect0[] =
4693 "^#ifdef KERNEL[ \t]+&&";
4694
4695 #define ULTRIX_IFDEF_TEST_CT 1
4696 static tTestDesc aUltrix_IfdefTests[] = {
4697 { TT_EGREP, zUltrix_IfdefSelect0, (regex_t*)NULL }, };
4698
4699 /*
4700 * Fix Command Arguments for Ultrix_Ifdef
4701 */
4702 static const char* apzUltrix_IfdefPatch[] = {
4703 "format",
4704 "#if defined(KERNEL) &&",
4705 (char*)NULL };
4706
4707 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4708 *
4709 * Description of Ultrix_Math_Ifdef fix
4710 */
4711 tSCC zUltrix_Math_IfdefName[] =
4712 "ultrix_math_ifdef";
4713
4714 /*
4715 * File name selection pattern
4716 */
4717 tSCC zUltrix_Math_IfdefList[] =
4718 "|sys/limits.h|float.h|math.h|";
4719 /*
4720 * Machine/OS name selection pattern
4721 */
4722 #define apzUltrix_Math_IfdefMachs (const char**)NULL
4723
4724 /*
4725 * content selection pattern - do fix if pattern found
4726 */
4727 tSCC zUltrix_Math_IfdefSelect0[] =
4728 "^(#if.*)\\|\\|[ \t]+CC\\$[a-z]+";
4729
4730 #define ULTRIX_MATH_IFDEF_TEST_CT 1
4731 static tTestDesc aUltrix_Math_IfdefTests[] = {
4732 { TT_EGREP, zUltrix_Math_IfdefSelect0, (regex_t*)NULL }, };
4733
4734 /*
4735 * Fix Command Arguments for Ultrix_Math_Ifdef
4736 */
4737 static const char* apzUltrix_Math_IfdefPatch[] = {
4738 "format",
4739 "%1",
4740 (char*)NULL };
4741
4742 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4743 *
4744 * Description of Ultrix_Nested_Ioctl fix
4745 */
4746 tSCC zUltrix_Nested_IoctlName[] =
4747 "ultrix_nested_ioctl";
4748
4749 /*
4750 * File name selection pattern
4751 */
4752 tSCC zUltrix_Nested_IoctlList[] =
4753 "|sys/ioctl.h|";
4754 /*
4755 * Machine/OS name selection pattern
4756 */
4757 #define apzUltrix_Nested_IoctlMachs (const char**)NULL
4758
4759 /*
4760 * content selection pattern - do fix if pattern found
4761 */
4762 tSCC zUltrix_Nested_IoctlSelect0[] =
4763 "^/\\* #define SIOCSCREEN";
4764
4765 #define ULTRIX_NESTED_IOCTL_TEST_CT 1
4766 static tTestDesc aUltrix_Nested_IoctlTests[] = {
4767 { TT_EGREP, zUltrix_Nested_IoctlSelect0, (regex_t*)NULL }, };
4768
4769 /*
4770 * Fix Command Arguments for Ultrix_Nested_Ioctl
4771 */
4772 static const char* apzUltrix_Nested_IoctlPatch[] = { "sed",
4773 "-e", "/^\\/\\* #define SIOCSCREEN/s@/\\* screend@*//* screend@",
4774 (char*)NULL };
4775
4776 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4777 *
4778 * Description of Ultrix_Nested_Svc fix
4779 */
4780 tSCC zUltrix_Nested_SvcName[] =
4781 "ultrix_nested_svc";
4782
4783 /*
4784 * File name selection pattern
4785 */
4786 tSCC zUltrix_Nested_SvcList[] =
4787 "|rpc/svc.h|";
4788 /*
4789 * Machine/OS name selection pattern
4790 */
4791 #define apzUltrix_Nested_SvcMachs (const char**)NULL
4792
4793 /*
4794 * content selection pattern - do fix if pattern found
4795 */
4796 tSCC zUltrix_Nested_SvcSelect0[] =
4797 "^ \\*[ \t]*int protocol; */\\*";
4798
4799 #define ULTRIX_NESTED_SVC_TEST_CT 1
4800 static tTestDesc aUltrix_Nested_SvcTests[] = {
4801 { TT_EGREP, zUltrix_Nested_SvcSelect0, (regex_t*)NULL }, };
4802
4803 /*
4804 * Fix Command Arguments for Ultrix_Nested_Svc
4805 */
4806 static const char* apzUltrix_Nested_SvcPatch[] = { "sed",
4807 "-e", "s@^\\( \\*\tint protocol; \\)/\\*@\\1*/ /*@",
4808 (char*)NULL };
4809
4810 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4811 *
4812 * Description of Ultrix_Stat fix
4813 */
4814 tSCC zUltrix_StatName[] =
4815 "ultrix_stat";
4816
4817 /*
4818 * File name selection pattern
4819 */
4820 tSCC zUltrix_StatList[] =
4821 "|sys/stat.h|";
4822 /*
4823 * Machine/OS name selection pattern
4824 */
4825 #define apzUltrix_StatMachs (const char**)NULL
4826
4827 /*
4828 * content selection pattern - do fix if pattern found
4829 */
4830 tSCC zUltrix_StatSelect0[] =
4831 "@\\(#\\)stat\\.h.*6\\.1.*\\(ULTRIX\\)";
4832
4833 #define ULTRIX_STAT_TEST_CT 1
4834 static tTestDesc aUltrix_StatTests[] = {
4835 { TT_EGREP, zUltrix_StatSelect0, (regex_t*)NULL }, };
4836
4837 /*
4838 * Fix Command Arguments for Ultrix_Stat
4839 */
4840 static const char* apzUltrix_StatPatch[] = { "sed",
4841 "-e", "/^#define[ \t]S_IFPORT[ \t]*S_IFIFO$/a\\\n\
4842 \\\n\
4843 /* macro to test for symbolic link */\\\n\
4844 #define S_ISLNK(mode) (((mode) & S_IFMT) == S_IFLNK)\\\n\n",
4845 "-e", "/^[ \t]*fstat(),$/a\\\n\
4846 \tlstat(),\n",
4847 (char*)NULL };
4848
4849 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4850 *
4851 * Description of Ultrix_Static fix
4852 */
4853 tSCC zUltrix_StaticName[] =
4854 "ultrix_static";
4855
4856 /*
4857 * File name selection pattern
4858 */
4859 tSCC zUltrix_StaticList[] =
4860 "|machine/cpu.h|";
4861 /*
4862 * Machine/OS name selection pattern
4863 */
4864 #define apzUltrix_StaticMachs (const char**)NULL
4865
4866 /*
4867 * content selection pattern - do fix if pattern found
4868 */
4869 tSCC zUltrix_StaticSelect0[] =
4870 "#include \"r[34]_cpu";
4871
4872 #define ULTRIX_STATIC_TEST_CT 1
4873 static tTestDesc aUltrix_StaticTests[] = {
4874 { TT_EGREP, zUltrix_StaticSelect0, (regex_t*)NULL }, };
4875
4876 /*
4877 * Fix Command Arguments for Ultrix_Static
4878 */
4879 static const char* apzUltrix_StaticPatch[] = { "sed",
4880 "-e", "s/^static struct tlb_pid_state/struct tlb_pid_state/",
4881 "-e", "s/^#include \"r3_cpu\\.h\"$/#include <machine\\/r3_cpu\\.h>/",
4882 "-e", "s/^#include \"r4_cpu\\.h\"$/#include <machine\\/r4_cpu\\.h>/",
4883 (char*)NULL };
4884
4885 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4886 *
4887 * Description of Ultrix_Strings fix
4888 */
4889 tSCC zUltrix_StringsName[] =
4890 "ultrix_strings";
4891
4892 /*
4893 * File name selection pattern
4894 */
4895 tSCC zUltrix_StringsList[] =
4896 "|strings.h|";
4897 /*
4898 * Machine/OS name selection pattern
4899 */
4900 #define apzUltrix_StringsMachs (const char**)NULL
4901
4902 /*
4903 * content selection pattern - do fix if pattern found
4904 */
4905 tSCC zUltrix_StringsSelect0[] =
4906 "@\\(#\\)strings\\.h.*6\\.1.*\\(ULTRIX\\)";
4907
4908 #define ULTRIX_STRINGS_TEST_CT 1
4909 static tTestDesc aUltrix_StringsTests[] = {
4910 { TT_EGREP, zUltrix_StringsSelect0, (regex_t*)NULL }, };
4911
4912 /*
4913 * Fix Command Arguments for Ultrix_Strings
4914 */
4915 static const char* apzUltrix_StringsPatch[] = {
4916 "wrap",
4917 (char*)NULL };
4918
4919 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4920 *
4921 * Description of Undefine_Null fix
4922 */
4923 tSCC zUndefine_NullName[] =
4924 "undefine_null";
4925
4926 /*
4927 * File name selection pattern
4928 */
4929 #define zUndefine_NullList (char*)NULL
4930 /*
4931 * Machine/OS name selection pattern
4932 */
4933 #define apzUndefine_NullMachs (const char**)NULL
4934
4935 /*
4936 * content selection pattern - do fix if pattern found
4937 */
4938 tSCC zUndefine_NullSelect0[] =
4939 "^#[ \t]*define[ \t]+NULL[ \t]";
4940
4941 /*
4942 * content bypass pattern - skip fix if pattern found
4943 */
4944 tSCC zUndefine_NullBypass0[] =
4945 "#[ \t]*(ifn|un)def[ \t]+NULL($|[ \t\r])";
4946
4947 #define UNDEFINE_NULL_TEST_CT 2
4948 static tTestDesc aUndefine_NullTests[] = {
4949 { TT_NEGREP, zUndefine_NullBypass0, (regex_t*)NULL },
4950 { TT_EGREP, zUndefine_NullSelect0, (regex_t*)NULL }, };
4951
4952 /*
4953 * Fix Command Arguments for Undefine_Null
4954 */
4955 static const char* apzUndefine_NullPatch[] = {
4956 "format",
4957 "#ifndef NULL%2\n\
4958 #define NULL%1%2\n\
4959 #endif%2\n",
4960 "^#[ \t]*define[ \t]*[ \t]NULL([^\r\n\
4961 ]+)([\r]*)\n",
4962 (char*)NULL };
4963
4964 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4965 *
4966 * Description of Unicosmk_Restrict fix
4967 */
4968 tSCC zUnicosmk_RestrictName[] =
4969 "unicosmk_restrict";
4970
4971 /*
4972 * File name selection pattern
4973 */
4974 tSCC zUnicosmk_RestrictList[] =
4975 "|stdio.h|stdlib.h|wchar.h|";
4976 /*
4977 * Machine/OS name selection pattern
4978 */
4979 tSCC* apzUnicosmk_RestrictMachs[] = {
4980 "*-*-unicosmk*",
4981 (const char*)NULL };
4982
4983 /*
4984 * content selection pattern - do fix if pattern found
4985 */
4986 tSCC zUnicosmk_RestrictSelect0[] =
4987 "(\\*[ \t]*)restrict([ \t]+)";
4988
4989 #define UNICOSMK_RESTRICT_TEST_CT 1
4990 static tTestDesc aUnicosmk_RestrictTests[] = {
4991 { TT_EGREP, zUnicosmk_RestrictSelect0, (regex_t*)NULL }, };
4992
4993 /*
4994 * Fix Command Arguments for Unicosmk_Restrict
4995 */
4996 static const char* apzUnicosmk_RestrictPatch[] = {
4997 "format",
4998 "%1__restrict__%2",
4999 (char*)NULL };
5000
5001 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5002 *
5003 * Description of Uw7_Byteorder_Fix fix
5004 */
5005 tSCC zUw7_Byteorder_FixName[] =
5006 "uw7_byteorder_fix";
5007
5008 /*
5009 * File name selection pattern
5010 */
5011 tSCC zUw7_Byteorder_FixList[] =
5012 "|arpa/inet.h|";
5013 /*
5014 * Machine/OS name selection pattern
5015 */
5016 tSCC* apzUw7_Byteorder_FixMachs[] = {
5017 "*-*-sysv4*",
5018 "i?86-*-sysv5*",
5019 "i?86-*-udk*",
5020 "i?86-*-solaris2.[0-4]",
5021 "powerpcle-*-solaris2.[0-4]",
5022 "sparc-*-solaris2.[0-4]",
5023 (const char*)NULL };
5024
5025 /*
5026 * content selection pattern - do fix if pattern found
5027 */
5028 tSCC zUw7_Byteorder_FixSelect0[] =
5029 "in_port_t";
5030
5031 /*
5032 * perform the 'test' shell command - do fix on success
5033 */
5034 tSCC zUw7_Byteorder_FixTest0[] =
5035 "-f sys/byteorder.h";
5036
5037 #define UW7_BYTEORDER_FIX_TEST_CT 2
5038 static tTestDesc aUw7_Byteorder_FixTests[] = {
5039 { TT_TEST, zUw7_Byteorder_FixTest0, 0 /* unused */ },
5040 { TT_EGREP, zUw7_Byteorder_FixSelect0, (regex_t*)NULL }, };
5041
5042 /*
5043 * Fix Command Arguments for Uw7_Byteorder_Fix
5044 */
5045 static const char* apzUw7_Byteorder_FixPatch[] = {
5046 "format",
5047 "",
5048 "^extern.*[ \t](htons|ntohs).*\\(in_port_t\\).*;",
5049 (char*)NULL };
5050
5051 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5052 *
5053 * Description of Va_I960_Macro fix
5054 */
5055 tSCC zVa_I960_MacroName[] =
5056 "va_i960_macro";
5057
5058 /*
5059 * File name selection pattern
5060 */
5061 tSCC zVa_I960_MacroList[] =
5062 "|arch/i960/archI960.h|";
5063 /*
5064 * Machine/OS name selection pattern
5065 */
5066 #define apzVa_I960_MacroMachs (const char**)NULL
5067
5068 /*
5069 * content selection pattern - do fix if pattern found
5070 */
5071 tSCC zVa_I960_MacroSelect0[] =
5072 "__(vsiz|vali|vpad|alignof__)";
5073
5074 #define VA_I960_MACRO_TEST_CT 1
5075 static tTestDesc aVa_I960_MacroTests[] = {
5076 { TT_EGREP, zVa_I960_MacroSelect0, (regex_t*)NULL }, };
5077
5078 /*
5079 * Fix Command Arguments for Va_I960_Macro
5080 */
5081 static const char* apzVa_I960_MacroPatch[] = {
5082 "format",
5083 "__vx%1",
5084 (char*)NULL };
5085
5086 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5087 *
5088 * Description of Void_Null fix
5089 */
5090 tSCC zVoid_NullName[] =
5091 "void_null";
5092
5093 /*
5094 * File name selection pattern
5095 */
5096 tSCC zVoid_NullList[] =
5097 "|curses.h|dbm.h|locale.h|stdio.h|stdlib.h|string.h|time.h|unistd.h|sys/dir.h|sys/param.h|sys/types.h|";
5098 /*
5099 * Machine/OS name selection pattern
5100 */
5101 #define apzVoid_NullMachs (const char**)NULL
5102
5103 /*
5104 * content selection pattern - do fix if pattern found
5105 */
5106 tSCC zVoid_NullSelect0[] =
5107 "^#[ \t]*define[ \t]+NULL[ \t]+\\(\\(void[ \t]*\\*\\)0\\)";
5108
5109 #define VOID_NULL_TEST_CT 1
5110 static tTestDesc aVoid_NullTests[] = {
5111 { TT_EGREP, zVoid_NullSelect0, (regex_t*)NULL }, };
5112
5113 /*
5114 * Fix Command Arguments for Void_Null
5115 */
5116 static const char* apzVoid_NullPatch[] = {
5117 "format",
5118 "#define NULL 0",
5119 (char*)NULL };
5120
5121 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5122 *
5123 * Description of Vxworks_Gcc_Problem fix
5124 */
5125 tSCC zVxworks_Gcc_ProblemName[] =
5126 "vxworks_gcc_problem";
5127
5128 /*
5129 * File name selection pattern
5130 */
5131 tSCC zVxworks_Gcc_ProblemList[] =
5132 "|types/vxTypesBase.h|";
5133 /*
5134 * Machine/OS name selection pattern
5135 */
5136 #define apzVxworks_Gcc_ProblemMachs (const char**)NULL
5137
5138 /*
5139 * content selection pattern - do fix if pattern found
5140 */
5141 tSCC zVxworks_Gcc_ProblemSelect0[] =
5142 "__GNUC_TYPEOF_FEATURE_BROKEN_USE_DEFAULT_UNTIL_FIXED__";
5143
5144 #define VXWORKS_GCC_PROBLEM_TEST_CT 1
5145 static tTestDesc aVxworks_Gcc_ProblemTests[] = {
5146 { TT_EGREP, zVxworks_Gcc_ProblemSelect0, (regex_t*)NULL }, };
5147
5148 /*
5149 * Fix Command Arguments for Vxworks_Gcc_Problem
5150 */
5151 static const char* apzVxworks_Gcc_ProblemPatch[] = { "sed",
5152 "-e", "s/#ifdef __GNUC_TYPEOF_FEATURE_BROKEN_USE_DEFAULT_UNTIL_FIXED__/#if 1/",
5153 "-e", "/[ \t]size_t/i\\\n\
5154 #ifndef _GCC_SIZE_T\\\n\
5155 #define _GCC_SIZE_T\n",
5156 "-e", "/[ \t]size_t/a\\\n\
5157 #endif\n",
5158 "-e", "/[ \t]ptrdiff_t/i\\\n\
5159 #ifndef _GCC_PTRDIFF_T\\\n\
5160 #define _GCC_PTRDIFF_T\n",
5161 "-e", "/[ \t]ptrdiff_t/a\\\n\
5162 #endif\n",
5163 "-e", "/[ \t]wchar_t/i\\\n\
5164 #ifndef _GCC_WCHAR_T\\\n\
5165 #define _GCC_WCHAR_T\n",
5166 "-e", "/[ \t]wchar_t/a\\\n\
5167 #endif\n",
5168 (char*)NULL };
5169
5170 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5171 *
5172 * Description of Vxworks_Needs_Vxtypes fix
5173 */
5174 tSCC zVxworks_Needs_VxtypesName[] =
5175 "vxworks_needs_vxtypes";
5176
5177 /*
5178 * File name selection pattern
5179 */
5180 tSCC zVxworks_Needs_VxtypesList[] =
5181 "|time.h|";
5182 /*
5183 * Machine/OS name selection pattern
5184 */
5185 #define apzVxworks_Needs_VxtypesMachs (const char**)NULL
5186
5187 /*
5188 * content selection pattern - do fix if pattern found
5189 */
5190 tSCC zVxworks_Needs_VxtypesSelect0[] =
5191 "uint_t([ \t]+_clocks_per_sec)";
5192
5193 #define VXWORKS_NEEDS_VXTYPES_TEST_CT 1
5194 static tTestDesc aVxworks_Needs_VxtypesTests[] = {
5195 { TT_EGREP, zVxworks_Needs_VxtypesSelect0, (regex_t*)NULL }, };
5196
5197 /*
5198 * Fix Command Arguments for Vxworks_Needs_Vxtypes
5199 */
5200 static const char* apzVxworks_Needs_VxtypesPatch[] = {
5201 "format",
5202 "unsigned int%1",
5203 (char*)NULL };
5204
5205 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5206 *
5207 * Description of Vxworks_Needs_Vxworks fix
5208 */
5209 tSCC zVxworks_Needs_VxworksName[] =
5210 "vxworks_needs_vxworks";
5211
5212 /*
5213 * File name selection pattern
5214 */
5215 tSCC zVxworks_Needs_VxworksList[] =
5216 "|sys/stat.h|";
5217 /*
5218 * Machine/OS name selection pattern
5219 */
5220 #define apzVxworks_Needs_VxworksMachs (const char**)NULL
5221
5222 /*
5223 * content selection pattern - do fix if pattern found
5224 */
5225 tSCC zVxworks_Needs_VxworksSelect0[] =
5226 "#[ \t]define[ \t]+__INCstath";
5227
5228 /*
5229 * perform the 'test' shell command - do fix on success
5230 */
5231 tSCC zVxworks_Needs_VxworksTest0[] =
5232 " -r types/vxTypesOld.h";
5233 tSCC zVxworks_Needs_VxworksTest1[] =
5234 " -n \"`egrep '#include' $file`\"";
5235 tSCC zVxworks_Needs_VxworksTest2[] =
5236 " -n \"`egrep ULONG $file`\"";
5237
5238 #define VXWORKS_NEEDS_VXWORKS_TEST_CT 4
5239 static tTestDesc aVxworks_Needs_VxworksTests[] = {
5240 { TT_TEST, zVxworks_Needs_VxworksTest0, 0 /* unused */ },
5241 { TT_TEST, zVxworks_Needs_VxworksTest1, 0 /* unused */ },
5242 { TT_TEST, zVxworks_Needs_VxworksTest2, 0 /* unused */ },
5243 { TT_EGREP, zVxworks_Needs_VxworksSelect0, (regex_t*)NULL }, };
5244
5245 /*
5246 * Fix Command Arguments for Vxworks_Needs_Vxworks
5247 */
5248 static const char* apzVxworks_Needs_VxworksPatch[] = { "sed",
5249 "-e", "/#[ \t]define[ \t][ \t]*__INCstath/a\\\n\
5250 #include <types/vxTypesOld.h>\n",
5251 (char*)NULL };
5252
5253 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5254 *
5255 * Description of Vxworks_Time fix
5256 */
5257 tSCC zVxworks_TimeName[] =
5258 "vxworks_time";
5259
5260 /*
5261 * File name selection pattern
5262 */
5263 tSCC zVxworks_TimeList[] =
5264 "|time.h|";
5265 /*
5266 * Machine/OS name selection pattern
5267 */
5268 #define apzVxworks_TimeMachs (const char**)NULL
5269
5270 /*
5271 * content selection pattern - do fix if pattern found
5272 */
5273 tSCC zVxworks_TimeSelect0[] =
5274 "#[ \t]*define[ \t]+VOIDFUNCPTR[ \t].*";
5275
5276 /*
5277 * perform the 'test' shell command - do fix on success
5278 */
5279 tSCC zVxworks_TimeTest0[] =
5280 " -r vxWorks.h";
5281
5282 #define VXWORKS_TIME_TEST_CT 2
5283 static tTestDesc aVxworks_TimeTests[] = {
5284 { TT_TEST, zVxworks_TimeTest0, 0 /* unused */ },
5285 { TT_EGREP, zVxworks_TimeSelect0, (regex_t*)NULL }, };
5286
5287 /*
5288 * Fix Command Arguments for Vxworks_Time
5289 */
5290 static const char* apzVxworks_TimePatch[] = {
5291 "format",
5292 "#ifndef __gcc_VOIDFUNCPTR_defined\n\
5293 #ifdef __cplusplus\n\
5294 typedef void (*__gcc_VOIDFUNCPTR) (...);\n\
5295 #else\n\
5296 typedef void (*__gcc_VOIDFUNCPTR) ();\n\
5297 #endif\n\
5298 #define __gcc_VOIDFUNCPTR_defined\n\
5299 #endif\n\
5300 #define VOIDFUNCPTR __gcc_VOIDFUNCPTR",
5301 (char*)NULL };
5302
5303 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5304 *
5305 * Description of X11_Class fix
5306 */
5307 tSCC zX11_ClassName[] =
5308 "x11_class";
5309
5310 /*
5311 * File name selection pattern
5312 */
5313 tSCC zX11_ClassList[] =
5314 "|X11/ShellP.h|";
5315 /*
5316 * Machine/OS name selection pattern
5317 */
5318 #define apzX11_ClassMachs (const char**)NULL
5319
5320 /*
5321 * content selection pattern - do fix if pattern found
5322 */
5323 tSCC zX11_ClassSelect0[] =
5324 "^([ \t]*char \\*)class;(.*)";
5325
5326 /*
5327 * content bypass pattern - skip fix if pattern found
5328 */
5329 tSCC zX11_ClassBypass0[] =
5330 "__cplusplus";
5331
5332 #define X11_CLASS_TEST_CT 2
5333 static tTestDesc aX11_ClassTests[] = {
5334 { TT_NEGREP, zX11_ClassBypass0, (regex_t*)NULL },
5335 { TT_EGREP, zX11_ClassSelect0, (regex_t*)NULL }, };
5336
5337 /*
5338 * Fix Command Arguments for X11_Class
5339 */
5340 static const char* apzX11_ClassPatch[] = {
5341 "format",
5342 "#ifdef __cplusplus\n\
5343 %1c_class;%2\n\
5344 #else\n\
5345 %1class;%2\n\
5346 #endif",
5347 (char*)NULL };
5348
5349 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5350 *
5351 * Description of X11_Class_Usage fix
5352 */
5353 tSCC zX11_Class_UsageName[] =
5354 "x11_class_usage";
5355
5356 /*
5357 * File name selection pattern
5358 */
5359 tSCC zX11_Class_UsageList[] =
5360 "|Xm/BaseClassI.h|";
5361 /*
5362 * Machine/OS name selection pattern
5363 */
5364 #define apzX11_Class_UsageMachs (const char**)NULL
5365
5366 /*
5367 * content selection pattern - do fix if pattern found
5368 */
5369 tSCC zX11_Class_UsageSelect0[] =
5370 " class\\)";
5371
5372 /*
5373 * content bypass pattern - skip fix if pattern found
5374 */
5375 tSCC zX11_Class_UsageBypass0[] =
5376 "__cplusplus";
5377
5378 #define X11_CLASS_USAGE_TEST_CT 2
5379 static tTestDesc aX11_Class_UsageTests[] = {
5380 { TT_NEGREP, zX11_Class_UsageBypass0, (regex_t*)NULL },
5381 { TT_EGREP, zX11_Class_UsageSelect0, (regex_t*)NULL }, };
5382
5383 /*
5384 * Fix Command Arguments for X11_Class_Usage
5385 */
5386 static const char* apzX11_Class_UsagePatch[] = {
5387 "format",
5388 " c_class)",
5389 (char*)NULL };
5390
5391 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5392 *
5393 * Description of X11_New fix
5394 */
5395 tSCC zX11_NewName[] =
5396 "x11_new";
5397
5398 /*
5399 * File name selection pattern
5400 */
5401 tSCC zX11_NewList[] =
5402 "|Xm/Traversal.h|";
5403 /*
5404 * Machine/OS name selection pattern
5405 */
5406 #define apzX11_NewMachs (const char**)NULL
5407
5408 /*
5409 * content bypass pattern - skip fix if pattern found
5410 */
5411 tSCC zX11_NewBypass0[] =
5412 "__cplusplus";
5413
5414 #define X11_NEW_TEST_CT 1
5415 static tTestDesc aX11_NewTests[] = {
5416 { TT_NEGREP, zX11_NewBypass0, (regex_t*)NULL }, };
5417
5418 /*
5419 * Fix Command Arguments for X11_New
5420 */
5421 static const char* apzX11_NewPatch[] = { "sed",
5422 "-e", "/Widget\told, new;/i\\\n\
5423 #ifdef __cplusplus\\\n\
5424 \tWidget\told, c_new;\\\n\
5425 #else\n",
5426 "-e", "/Widget\told, new;/a\\\n\
5427 #endif\n",
5428 "-e", "s/Widget new,/Widget c_new,/g",
5429 (char*)NULL };
5430
5431 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5432 *
5433 * Description of X11_Sprintf fix
5434 */
5435 tSCC zX11_SprintfName[] =
5436 "x11_sprintf";
5437
5438 /*
5439 * File name selection pattern
5440 */
5441 tSCC zX11_SprintfList[] =
5442 "|X11/Xmu.h|X11/Xmu/Xmu.h|";
5443 /*
5444 * Machine/OS name selection pattern
5445 */
5446 #define apzX11_SprintfMachs (const char**)NULL
5447
5448 /*
5449 * content selection pattern - do fix if pattern found
5450 */
5451 tSCC zX11_SprintfSelect0[] =
5452 "^extern char \\*\tsprintf\\(\\);$";
5453
5454 #define X11_SPRINTF_TEST_CT 1
5455 static tTestDesc aX11_SprintfTests[] = {
5456 { TT_EGREP, zX11_SprintfSelect0, (regex_t*)NULL }, };
5457
5458 /*
5459 * Fix Command Arguments for X11_Sprintf
5460 */
5461 static const char* apzX11_SprintfPatch[] = {
5462 "format",
5463 "#ifndef __STDC__\n\
5464 %0\n\
5465 #endif /* !defined __STDC__ */",
5466 (char*)NULL };
5467
5468
5469 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5470 *
5471 * List of all fixes
5472 */
5473 #define REGEX_COUNT 148
5474 #define MACH_LIST_SIZE_LIMIT 279
5475 #define FIX_COUNT 139
5476
5477 /*
5478 * Enumerate the fixes
5479 */
5480 typedef enum {
5481 AAB_DGUX_INT_VARARGS_FIXIDX,
5482 AAB_FD_ZERO_ASM_POSIX_TYPES_H_FIXIDX,
5483 AAB_FD_ZERO_GNU_TYPES_H_FIXIDX,
5484 AAB_FD_ZERO_SELECTBITS_H_FIXIDX,
5485 AAB_SUN_MEMCPY_FIXIDX,
5486 AAB_SVR4_REPLACE_BYTEORDER_FIXIDX,
5487 AAB_ULTRIX_ANSI_COMPAT_FIXIDX,
5488 AAB_ULTRIX_LIMITS_FIXIDX,
5489 AAB_ULTRIX_MEMORY_FIXIDX,
5490 AAB_ULTRIX_STRING_FIXIDX,
5491 AIX_PTHREAD_FIXIDX,
5492 AIX_SYSMACHINE_FIXIDX,
5493 AIX_SYSWAIT_FIXIDX,
5494 AIX_VOLATILE_FIXIDX,
5495 ALPHA___ASSERT_FIXIDX,
5496 ALPHA_ASSERT_FIXIDX,
5497 ALPHA_GETOPT_FIXIDX,
5498 ALPHA_PARENS_FIXIDX,
5499 ALPHA_SBRK_FIXIDX,
5500 ARM_NORCROFT_HINT_FIXIDX,
5501 ARM_WCHAR_FIXIDX,
5502 AUX_ASM_FIXIDX,
5503 AVOID_BOOL_DEFINE_FIXIDX,
5504 AVOID_BOOL_TYPE_FIXIDX,
5505 AVOID_WCHAR_T_TYPE_FIXIDX,
5506 BAD_LVAL_FIXIDX,
5507 BAD_STRUCT_TERM_FIXIDX,
5508 BADQUOTE_FIXIDX,
5509 BROKEN_ASSERT_STDIO_FIXIDX,
5510 BROKEN_ASSERT_STDLIB_FIXIDX,
5511 BROKEN_CABS_FIXIDX,
5512 CTRL_QUOTES_DEF_FIXIDX,
5513 CTRL_QUOTES_USE_FIXIDX,
5514 CXX_UNREADY_FIXIDX,
5515 DEC_INTERN_ASM_FIXIDX,
5516 DJGPP_WCHAR_H_FIXIDX,
5517 ECD_CURSOR_FIXIDX,
5518 FIX_HEADER_BREAKAGE_FIXIDX,
5519 FREEBSD_GCC3_BREAKAGE_FIXIDX,
5520 GNU_TYPES_FIXIDX,
5521 HP_INLINE_FIXIDX,
5522 HP_SYSFILE_FIXIDX,
5523 HPUX10_CPP_POW_INLINE_FIXIDX,
5524 HPUX11_CPP_POW_INLINE_FIXIDX,
5525 HPUX11_FABSF_FIXIDX,
5526 HPUX11_SIZE_T_FIXIDX,
5527 HPUX11_UINT32_C_FIXIDX,
5528 HPUX11_VSNPRINTF_FIXIDX,
5529 HPUX8_BOGUS_INLINES_FIXIDX,
5530 HPUX_MAXINT_FIXIDX,
5531 HPUX_SYSTIME_FIXIDX,
5532 INT_ABORT_FREE_AND_EXIT_FIXIDX,
5533 IO_QUOTES_DEF_FIXIDX,
5534 IO_QUOTES_USE_FIXIDX,
5535 IP_MISSING_SEMI_FIXIDX,
5536 IRIX_ASM_APOSTROPHE_FIXIDX,
5537 IRIX_LIMITS_CONST_FIXIDX,
5538 IRIX_STDIO_VA_LIST_FIXIDX,
5539 ISC_FMOD_FIXIDX,
5540 ISC_OMITS_WITH_STDC_FIXIDX,
5541 KANDR_CONCAT_FIXIDX,
5542 LIBC1_IFDEFD_MEMX_FIXIDX,
5543 LIMITS_IFNDEFS_FIXIDX,
5544 LYNX_VOID_INT_FIXIDX,
5545 LYNXOS_FCNTL_PROTO_FIXIDX,
5546 M88K_BAD_HYPOT_OPT_FIXIDX,
5547 M88K_BAD_S_IF_FIXIDX,
5548 M88K_MULTI_INCL_FIXIDX,
5549 MACHINE_ANSI_H_VA_LIST_FIXIDX,
5550 MACHINE_NAME_FIXIDX,
5551 MATH_EXCEPTION_FIXIDX,
5552 MATH_HUGE_VAL_FROM_DBL_MAX_FIXIDX,
5553 MATH_HUGE_VAL_IFNDEF_FIXIDX,
5554 NESTED_AUTH_DES_FIXIDX,
5555 NESTED_MOTOROLA_FIXIDX,
5556 NESTED_SYS_LIMITS_FIXIDX,
5557 NEWS_OS_RECURSION_FIXIDX,
5558 NEXT_MATH_PREFIX_FIXIDX,
5559 NEXT_TEMPLATE_FIXIDX,
5560 NEXT_VOLITILE_FIXIDX,
5561 NEXT_WAIT_UNION_FIXIDX,
5562 NODEENT_SYNTAX_FIXIDX,
5563 OSF_NAMESPACE_A_FIXIDX,
5564 OSF_NAMESPACE_C_FIXIDX,
5565 PTHREAD_PAGE_SIZE_FIXIDX,
5566 READ_RET_TYPE_FIXIDX,
5567 RS6000_DOUBLE_FIXIDX,
5568 RS6000_FCHMOD_FIXIDX,
5569 RS6000_PARAM_FIXIDX,
5570 SCO_STATIC_FUNC_FIXIDX,
5571 SCO_UTIME_FIXIDX,
5572 SOLARIS_MUTEX_INIT_FIXIDX,
5573 STATSSWTCH_FIXIDX,
5574 STDIO_STDARG_H_FIXIDX,
5575 STDIO_VA_LIST_FIXIDX,
5576 STRICT_ANSI_NOT_FIXIDX,
5577 STRICT_ANSI_NOT_CTD_FIXIDX,
5578 STRICT_ANSI_ONLY_FIXIDX,
5579 STRUCT_FILE_FIXIDX,
5580 STRUCT_SOCKADDR_FIXIDX,
5581 SUN_AUTH_PROTO_FIXIDX,
5582 SUN_BOGUS_IFDEF_FIXIDX,
5583 SUN_CATMACRO_FIXIDX,
5584 SUN_MALLOC_FIXIDX,
5585 SUN_RUSERS_SEMI_FIXIDX,
5586 SUN_SIGNAL_FIXIDX,
5587 SUNOS_MATHERR_DECL_FIXIDX,
5588 SUNOS_STRLEN_FIXIDX,
5589 SVR4__P_FIXIDX,
5590 SVR4_GETCWD_FIXIDX,
5591 SVR4_PROFIL_FIXIDX,
5592 SYSV68_STRING_FIXIDX,
5593 SYSZ_STDLIB_FOR_SUN_FIXIDX,
5594 TINFO_CPLUSPLUS_FIXIDX,
5595 ULTRIX_ATEXIT_PARAM_FIXIDX,
5596 ULTRIX_ATOF_PARAM_FIXIDX,
5597 ULTRIX_CONST_FIXIDX,
5598 ULTRIX_CONST2_FIXIDX,
5599 ULTRIX_FIX_FIXPROTO_FIXIDX,
5600 ULTRIX_IFDEF_FIXIDX,
5601 ULTRIX_MATH_IFDEF_FIXIDX,
5602 ULTRIX_NESTED_IOCTL_FIXIDX,
5603 ULTRIX_NESTED_SVC_FIXIDX,
5604 ULTRIX_STAT_FIXIDX,
5605 ULTRIX_STATIC_FIXIDX,
5606 ULTRIX_STRINGS_FIXIDX,
5607 UNDEFINE_NULL_FIXIDX,
5608 UNICOSMK_RESTRICT_FIXIDX,
5609 UW7_BYTEORDER_FIX_FIXIDX,
5610 VA_I960_MACRO_FIXIDX,
5611 VOID_NULL_FIXIDX,
5612 VXWORKS_GCC_PROBLEM_FIXIDX,
5613 VXWORKS_NEEDS_VXTYPES_FIXIDX,
5614 VXWORKS_NEEDS_VXWORKS_FIXIDX,
5615 VXWORKS_TIME_FIXIDX,
5616 X11_CLASS_FIXIDX,
5617 X11_CLASS_USAGE_FIXIDX,
5618 X11_NEW_FIXIDX,
5619 X11_SPRINTF_FIXIDX
5620 } t_fixinc_idx;
5621
5622 tFixDesc fixDescList[ FIX_COUNT ] = {
5623 { zAab_Dgux_Int_VarargsName, zAab_Dgux_Int_VarargsList,
5624 apzAab_Dgux_Int_VarargsMachs,
5625 AAB_DGUX_INT_VARARGS_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
5626 aAab_Dgux_Int_VarargsTests, apzAab_Dgux_Int_VarargsPatch, 0 },
5627
5628 { zAab_Fd_Zero_Asm_Posix_Types_HName, zAab_Fd_Zero_Asm_Posix_Types_HList,
5629 apzAab_Fd_Zero_Asm_Posix_Types_HMachs,
5630 AAB_FD_ZERO_ASM_POSIX_TYPES_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
5631 aAab_Fd_Zero_Asm_Posix_Types_HTests, apzAab_Fd_Zero_Asm_Posix_Types_HPatch, 0 },
5632
5633 { zAab_Fd_Zero_Gnu_Types_HName, zAab_Fd_Zero_Gnu_Types_HList,
5634 apzAab_Fd_Zero_Gnu_Types_HMachs,
5635 AAB_FD_ZERO_GNU_TYPES_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
5636 aAab_Fd_Zero_Gnu_Types_HTests, apzAab_Fd_Zero_Gnu_Types_HPatch, 0 },
5637
5638 { zAab_Fd_Zero_Selectbits_HName, zAab_Fd_Zero_Selectbits_HList,
5639 apzAab_Fd_Zero_Selectbits_HMachs,
5640 AAB_FD_ZERO_SELECTBITS_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
5641 aAab_Fd_Zero_Selectbits_HTests, apzAab_Fd_Zero_Selectbits_HPatch, 0 },
5642
5643 { zAab_Sun_MemcpyName, zAab_Sun_MemcpyList,
5644 apzAab_Sun_MemcpyMachs,
5645 AAB_SUN_MEMCPY_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
5646 aAab_Sun_MemcpyTests, apzAab_Sun_MemcpyPatch, 0 },
5647
5648 { zAab_Svr4_Replace_ByteorderName, zAab_Svr4_Replace_ByteorderList,
5649 apzAab_Svr4_Replace_ByteorderMachs,
5650 AAB_SVR4_REPLACE_BYTEORDER_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
5651 aAab_Svr4_Replace_ByteorderTests, apzAab_Svr4_Replace_ByteorderPatch, 0 },
5652
5653 { zAab_Ultrix_Ansi_CompatName, zAab_Ultrix_Ansi_CompatList,
5654 apzAab_Ultrix_Ansi_CompatMachs,
5655 AAB_ULTRIX_ANSI_COMPAT_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
5656 aAab_Ultrix_Ansi_CompatTests, apzAab_Ultrix_Ansi_CompatPatch, 0 },
5657
5658 { zAab_Ultrix_LimitsName, zAab_Ultrix_LimitsList,
5659 apzAab_Ultrix_LimitsMachs,
5660 AAB_ULTRIX_LIMITS_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
5661 aAab_Ultrix_LimitsTests, apzAab_Ultrix_LimitsPatch, 0 },
5662
5663 { zAab_Ultrix_MemoryName, zAab_Ultrix_MemoryList,
5664 apzAab_Ultrix_MemoryMachs,
5665 AAB_ULTRIX_MEMORY_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
5666 aAab_Ultrix_MemoryTests, apzAab_Ultrix_MemoryPatch, 0 },
5667
5668 { zAab_Ultrix_StringName, zAab_Ultrix_StringList,
5669 apzAab_Ultrix_StringMachs,
5670 AAB_ULTRIX_STRING_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
5671 aAab_Ultrix_StringTests, apzAab_Ultrix_StringPatch, 0 },
5672
5673 { zAix_PthreadName, zAix_PthreadList,
5674 apzAix_PthreadMachs,
5675 AIX_PTHREAD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5676 aAix_PthreadTests, apzAix_PthreadPatch, 0 },
5677
5678 { zAix_SysmachineName, zAix_SysmachineList,
5679 apzAix_SysmachineMachs,
5680 AIX_SYSMACHINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5681 aAix_SysmachineTests, apzAix_SysmachinePatch, 0 },
5682
5683 { zAix_SyswaitName, zAix_SyswaitList,
5684 apzAix_SyswaitMachs,
5685 AIX_SYSWAIT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5686 aAix_SyswaitTests, apzAix_SyswaitPatch, 0 },
5687
5688 { zAix_VolatileName, zAix_VolatileList,
5689 apzAix_VolatileMachs,
5690 AIX_VOLATILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5691 aAix_VolatileTests, apzAix_VolatilePatch, 0 },
5692
5693 { zAlpha___AssertName, zAlpha___AssertList,
5694 apzAlpha___AssertMachs,
5695 ALPHA___ASSERT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5696 aAlpha___AssertTests, apzAlpha___AssertPatch, 0 },
5697
5698 { zAlpha_AssertName, zAlpha_AssertList,
5699 apzAlpha_AssertMachs,
5700 ALPHA_ASSERT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5701 aAlpha_AssertTests, apzAlpha_AssertPatch, 0 },
5702
5703 { zAlpha_GetoptName, zAlpha_GetoptList,
5704 apzAlpha_GetoptMachs,
5705 ALPHA_GETOPT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5706 aAlpha_GetoptTests, apzAlpha_GetoptPatch, 0 },
5707
5708 { zAlpha_ParensName, zAlpha_ParensList,
5709 apzAlpha_ParensMachs,
5710 ALPHA_PARENS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5711 aAlpha_ParensTests, apzAlpha_ParensPatch, 0 },
5712
5713 { zAlpha_SbrkName, zAlpha_SbrkList,
5714 apzAlpha_SbrkMachs,
5715 ALPHA_SBRK_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5716 aAlpha_SbrkTests, apzAlpha_SbrkPatch, 0 },
5717
5718 { zArm_Norcroft_HintName, zArm_Norcroft_HintList,
5719 apzArm_Norcroft_HintMachs,
5720 ARM_NORCROFT_HINT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5721 aArm_Norcroft_HintTests, apzArm_Norcroft_HintPatch, 0 },
5722
5723 { zArm_WcharName, zArm_WcharList,
5724 apzArm_WcharMachs,
5725 ARM_WCHAR_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5726 aArm_WcharTests, apzArm_WcharPatch, 0 },
5727
5728 { zAux_AsmName, zAux_AsmList,
5729 apzAux_AsmMachs,
5730 AUX_ASM_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5731 aAux_AsmTests, apzAux_AsmPatch, 0 },
5732
5733 { zAvoid_Bool_DefineName, zAvoid_Bool_DefineList,
5734 apzAvoid_Bool_DefineMachs,
5735 AVOID_BOOL_DEFINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5736 aAvoid_Bool_DefineTests, apzAvoid_Bool_DefinePatch, 0 },
5737
5738 { zAvoid_Bool_TypeName, zAvoid_Bool_TypeList,
5739 apzAvoid_Bool_TypeMachs,
5740 AVOID_BOOL_TYPE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5741 aAvoid_Bool_TypeTests, apzAvoid_Bool_TypePatch, 0 },
5742
5743 { zAvoid_Wchar_T_TypeName, zAvoid_Wchar_T_TypeList,
5744 apzAvoid_Wchar_T_TypeMachs,
5745 AVOID_WCHAR_T_TYPE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5746 aAvoid_Wchar_T_TypeTests, apzAvoid_Wchar_T_TypePatch, 0 },
5747
5748 { zBad_LvalName, zBad_LvalList,
5749 apzBad_LvalMachs,
5750 BAD_LVAL_TEST_CT, FD_MACH_ONLY,
5751 aBad_LvalTests, apzBad_LvalPatch, 0 },
5752
5753 { zBad_Struct_TermName, zBad_Struct_TermList,
5754 apzBad_Struct_TermMachs,
5755 BAD_STRUCT_TERM_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5756 aBad_Struct_TermTests, apzBad_Struct_TermPatch, 0 },
5757
5758 { zBadquoteName, zBadquoteList,
5759 apzBadquoteMachs,
5760 BADQUOTE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5761 aBadquoteTests, apzBadquotePatch, 0 },
5762
5763 { zBroken_Assert_StdioName, zBroken_Assert_StdioList,
5764 apzBroken_Assert_StdioMachs,
5765 BROKEN_ASSERT_STDIO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5766 aBroken_Assert_StdioTests, apzBroken_Assert_StdioPatch, 0 },
5767
5768 { zBroken_Assert_StdlibName, zBroken_Assert_StdlibList,
5769 apzBroken_Assert_StdlibMachs,
5770 BROKEN_ASSERT_STDLIB_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5771 aBroken_Assert_StdlibTests, apzBroken_Assert_StdlibPatch, 0 },
5772
5773 { zBroken_CabsName, zBroken_CabsList,
5774 apzBroken_CabsMachs,
5775 BROKEN_CABS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5776 aBroken_CabsTests, apzBroken_CabsPatch, 0 },
5777
5778 { zCtrl_Quotes_DefName, zCtrl_Quotes_DefList,
5779 apzCtrl_Quotes_DefMachs,
5780 CTRL_QUOTES_DEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5781 aCtrl_Quotes_DefTests, apzCtrl_Quotes_DefPatch, 0 },
5782
5783 { zCtrl_Quotes_UseName, zCtrl_Quotes_UseList,
5784 apzCtrl_Quotes_UseMachs,
5785 CTRL_QUOTES_USE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5786 aCtrl_Quotes_UseTests, apzCtrl_Quotes_UsePatch, 0 },
5787
5788 { zCxx_UnreadyName, zCxx_UnreadyList,
5789 apzCxx_UnreadyMachs,
5790 CXX_UNREADY_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5791 aCxx_UnreadyTests, apzCxx_UnreadyPatch, 0 },
5792
5793 { zDec_Intern_AsmName, zDec_Intern_AsmList,
5794 apzDec_Intern_AsmMachs,
5795 DEC_INTERN_ASM_TEST_CT, FD_MACH_ONLY,
5796 aDec_Intern_AsmTests, apzDec_Intern_AsmPatch, 0 },
5797
5798 { zDjgpp_Wchar_HName, zDjgpp_Wchar_HList,
5799 apzDjgpp_Wchar_HMachs,
5800 DJGPP_WCHAR_H_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5801 aDjgpp_Wchar_HTests, apzDjgpp_Wchar_HPatch, 0 },
5802
5803 { zEcd_CursorName, zEcd_CursorList,
5804 apzEcd_CursorMachs,
5805 ECD_CURSOR_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5806 aEcd_CursorTests, apzEcd_CursorPatch, 0 },
5807
5808 { zFix_Header_BreakageName, zFix_Header_BreakageList,
5809 apzFix_Header_BreakageMachs,
5810 FIX_HEADER_BREAKAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5811 aFix_Header_BreakageTests, apzFix_Header_BreakagePatch, 0 },
5812
5813 { zFreebsd_Gcc3_BreakageName, zFreebsd_Gcc3_BreakageList,
5814 apzFreebsd_Gcc3_BreakageMachs,
5815 FREEBSD_GCC3_BREAKAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5816 aFreebsd_Gcc3_BreakageTests, apzFreebsd_Gcc3_BreakagePatch, 0 },
5817
5818 { zGnu_TypesName, zGnu_TypesList,
5819 apzGnu_TypesMachs,
5820 GNU_TYPES_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5821 aGnu_TypesTests, apzGnu_TypesPatch, 0 },
5822
5823 { zHp_InlineName, zHp_InlineList,
5824 apzHp_InlineMachs,
5825 HP_INLINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5826 aHp_InlineTests, apzHp_InlinePatch, 0 },
5827
5828 { zHp_SysfileName, zHp_SysfileList,
5829 apzHp_SysfileMachs,
5830 HP_SYSFILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5831 aHp_SysfileTests, apzHp_SysfilePatch, 0 },
5832
5833 { zHpux10_Cpp_Pow_InlineName, zHpux10_Cpp_Pow_InlineList,
5834 apzHpux10_Cpp_Pow_InlineMachs,
5835 HPUX10_CPP_POW_INLINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5836 aHpux10_Cpp_Pow_InlineTests, apzHpux10_Cpp_Pow_InlinePatch, 0 },
5837
5838 { zHpux11_Cpp_Pow_InlineName, zHpux11_Cpp_Pow_InlineList,
5839 apzHpux11_Cpp_Pow_InlineMachs,
5840 HPUX11_CPP_POW_INLINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5841 aHpux11_Cpp_Pow_InlineTests, apzHpux11_Cpp_Pow_InlinePatch, 0 },
5842
5843 { zHpux11_FabsfName, zHpux11_FabsfList,
5844 apzHpux11_FabsfMachs,
5845 HPUX11_FABSF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5846 aHpux11_FabsfTests, apzHpux11_FabsfPatch, 0 },
5847
5848 { zHpux11_Size_TName, zHpux11_Size_TList,
5849 apzHpux11_Size_TMachs,
5850 HPUX11_SIZE_T_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5851 aHpux11_Size_TTests, apzHpux11_Size_TPatch, 0 },
5852
5853 { zHpux11_Uint32_CName, zHpux11_Uint32_CList,
5854 apzHpux11_Uint32_CMachs,
5855 HPUX11_UINT32_C_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5856 aHpux11_Uint32_CTests, apzHpux11_Uint32_CPatch, 0 },
5857
5858 { zHpux11_VsnprintfName, zHpux11_VsnprintfList,
5859 apzHpux11_VsnprintfMachs,
5860 HPUX11_VSNPRINTF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5861 aHpux11_VsnprintfTests, apzHpux11_VsnprintfPatch, 0 },
5862
5863 { zHpux8_Bogus_InlinesName, zHpux8_Bogus_InlinesList,
5864 apzHpux8_Bogus_InlinesMachs,
5865 HPUX8_BOGUS_INLINES_TEST_CT, FD_MACH_ONLY,
5866 aHpux8_Bogus_InlinesTests, apzHpux8_Bogus_InlinesPatch, 0 },
5867
5868 { zHpux_MaxintName, zHpux_MaxintList,
5869 apzHpux_MaxintMachs,
5870 HPUX_MAXINT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5871 aHpux_MaxintTests, apzHpux_MaxintPatch, 0 },
5872
5873 { zHpux_SystimeName, zHpux_SystimeList,
5874 apzHpux_SystimeMachs,
5875 HPUX_SYSTIME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5876 aHpux_SystimeTests, apzHpux_SystimePatch, 0 },
5877
5878 { zInt_Abort_Free_And_ExitName, zInt_Abort_Free_And_ExitList,
5879 apzInt_Abort_Free_And_ExitMachs,
5880 INT_ABORT_FREE_AND_EXIT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5881 aInt_Abort_Free_And_ExitTests, apzInt_Abort_Free_And_ExitPatch, 0 },
5882
5883 { zIo_Quotes_DefName, zIo_Quotes_DefList,
5884 apzIo_Quotes_DefMachs,
5885 IO_QUOTES_DEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5886 aIo_Quotes_DefTests, apzIo_Quotes_DefPatch, 0 },
5887
5888 { zIo_Quotes_UseName, zIo_Quotes_UseList,
5889 apzIo_Quotes_UseMachs,
5890 IO_QUOTES_USE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5891 aIo_Quotes_UseTests, apzIo_Quotes_UsePatch, 0 },
5892
5893 { zIp_Missing_SemiName, zIp_Missing_SemiList,
5894 apzIp_Missing_SemiMachs,
5895 IP_MISSING_SEMI_TEST_CT, FD_MACH_ONLY,
5896 aIp_Missing_SemiTests, apzIp_Missing_SemiPatch, 0 },
5897
5898 { zIrix_Asm_ApostropheName, zIrix_Asm_ApostropheList,
5899 apzIrix_Asm_ApostropheMachs,
5900 IRIX_ASM_APOSTROPHE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5901 aIrix_Asm_ApostropheTests, apzIrix_Asm_ApostrophePatch, 0 },
5902
5903 { zIrix_Limits_ConstName, zIrix_Limits_ConstList,
5904 apzIrix_Limits_ConstMachs,
5905 IRIX_LIMITS_CONST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5906 aIrix_Limits_ConstTests, apzIrix_Limits_ConstPatch, 0 },
5907
5908 { zIrix_Stdio_Va_ListName, zIrix_Stdio_Va_ListList,
5909 apzIrix_Stdio_Va_ListMachs,
5910 IRIX_STDIO_VA_LIST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5911 aIrix_Stdio_Va_ListTests, apzIrix_Stdio_Va_ListPatch, 0 },
5912
5913 { zIsc_FmodName, zIsc_FmodList,
5914 apzIsc_FmodMachs,
5915 ISC_FMOD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5916 aIsc_FmodTests, apzIsc_FmodPatch, 0 },
5917
5918 { zIsc_Omits_With_StdcName, zIsc_Omits_With_StdcList,
5919 apzIsc_Omits_With_StdcMachs,
5920 ISC_OMITS_WITH_STDC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5921 aIsc_Omits_With_StdcTests, apzIsc_Omits_With_StdcPatch, 0 },
5922
5923 { zKandr_ConcatName, zKandr_ConcatList,
5924 apzKandr_ConcatMachs,
5925 KANDR_CONCAT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5926 aKandr_ConcatTests, apzKandr_ConcatPatch, 0 },
5927
5928 { zLibc1_Ifdefd_MemxName, zLibc1_Ifdefd_MemxList,
5929 apzLibc1_Ifdefd_MemxMachs,
5930 LIBC1_IFDEFD_MEMX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5931 aLibc1_Ifdefd_MemxTests, apzLibc1_Ifdefd_MemxPatch, 0 },
5932
5933 { zLimits_IfndefsName, zLimits_IfndefsList,
5934 apzLimits_IfndefsMachs,
5935 LIMITS_IFNDEFS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5936 aLimits_IfndefsTests, apzLimits_IfndefsPatch, 0 },
5937
5938 { zLynx_Void_IntName, zLynx_Void_IntList,
5939 apzLynx_Void_IntMachs,
5940 LYNX_VOID_INT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5941 aLynx_Void_IntTests, apzLynx_Void_IntPatch, 0 },
5942
5943 { zLynxos_Fcntl_ProtoName, zLynxos_Fcntl_ProtoList,
5944 apzLynxos_Fcntl_ProtoMachs,
5945 LYNXOS_FCNTL_PROTO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5946 aLynxos_Fcntl_ProtoTests, apzLynxos_Fcntl_ProtoPatch, 0 },
5947
5948 { zM88k_Bad_Hypot_OptName, zM88k_Bad_Hypot_OptList,
5949 apzM88k_Bad_Hypot_OptMachs,
5950 M88K_BAD_HYPOT_OPT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5951 aM88k_Bad_Hypot_OptTests, apzM88k_Bad_Hypot_OptPatch, 0 },
5952
5953 { zM88k_Bad_S_IfName, zM88k_Bad_S_IfList,
5954 apzM88k_Bad_S_IfMachs,
5955 M88K_BAD_S_IF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5956 aM88k_Bad_S_IfTests, apzM88k_Bad_S_IfPatch, 0 },
5957
5958 { zM88k_Multi_InclName, zM88k_Multi_InclList,
5959 apzM88k_Multi_InclMachs,
5960 M88K_MULTI_INCL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5961 aM88k_Multi_InclTests, apzM88k_Multi_InclPatch, 0 },
5962
5963 { zMachine_Ansi_H_Va_ListName, zMachine_Ansi_H_Va_ListList,
5964 apzMachine_Ansi_H_Va_ListMachs,
5965 MACHINE_ANSI_H_VA_LIST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5966 aMachine_Ansi_H_Va_ListTests, apzMachine_Ansi_H_Va_ListPatch, 0 },
5967
5968 { zMachine_NameName, zMachine_NameList,
5969 apzMachine_NameMachs,
5970 MACHINE_NAME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5971 aMachine_NameTests, apzMachine_NamePatch, 0 },
5972
5973 { zMath_ExceptionName, zMath_ExceptionList,
5974 apzMath_ExceptionMachs,
5975 MATH_EXCEPTION_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5976 aMath_ExceptionTests, apzMath_ExceptionPatch, 0 },
5977
5978 { zMath_Huge_Val_From_Dbl_MaxName, zMath_Huge_Val_From_Dbl_MaxList,
5979 apzMath_Huge_Val_From_Dbl_MaxMachs,
5980 MATH_HUGE_VAL_FROM_DBL_MAX_TEST_CT, FD_MACH_ONLY | FD_SHELL_SCRIPT,
5981 aMath_Huge_Val_From_Dbl_MaxTests, apzMath_Huge_Val_From_Dbl_MaxPatch, 0 },
5982
5983 { zMath_Huge_Val_IfndefName, zMath_Huge_Val_IfndefList,
5984 apzMath_Huge_Val_IfndefMachs,
5985 MATH_HUGE_VAL_IFNDEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5986 aMath_Huge_Val_IfndefTests, apzMath_Huge_Val_IfndefPatch, 0 },
5987
5988 { zNested_Auth_DesName, zNested_Auth_DesList,
5989 apzNested_Auth_DesMachs,
5990 NESTED_AUTH_DES_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5991 aNested_Auth_DesTests, apzNested_Auth_DesPatch, 0 },
5992
5993 { zNested_MotorolaName, zNested_MotorolaList,
5994 apzNested_MotorolaMachs,
5995 NESTED_MOTOROLA_TEST_CT, FD_MACH_ONLY,
5996 aNested_MotorolaTests, apzNested_MotorolaPatch, 0 },
5997
5998 { zNested_Sys_LimitsName, zNested_Sys_LimitsList,
5999 apzNested_Sys_LimitsMachs,
6000 NESTED_SYS_LIMITS_TEST_CT, FD_MACH_ONLY,
6001 aNested_Sys_LimitsTests, apzNested_Sys_LimitsPatch, 0 },
6002
6003 { zNews_Os_RecursionName, zNews_Os_RecursionList,
6004 apzNews_Os_RecursionMachs,
6005 NEWS_OS_RECURSION_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6006 aNews_Os_RecursionTests, apzNews_Os_RecursionPatch, 0 },
6007
6008 { zNext_Math_PrefixName, zNext_Math_PrefixList,
6009 apzNext_Math_PrefixMachs,
6010 NEXT_MATH_PREFIX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6011 aNext_Math_PrefixTests, apzNext_Math_PrefixPatch, 0 },
6012
6013 { zNext_TemplateName, zNext_TemplateList,
6014 apzNext_TemplateMachs,
6015 NEXT_TEMPLATE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6016 aNext_TemplateTests, apzNext_TemplatePatch, 0 },
6017
6018 { zNext_VolitileName, zNext_VolitileList,
6019 apzNext_VolitileMachs,
6020 NEXT_VOLITILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6021 aNext_VolitileTests, apzNext_VolitilePatch, 0 },
6022
6023 { zNext_Wait_UnionName, zNext_Wait_UnionList,
6024 apzNext_Wait_UnionMachs,
6025 NEXT_WAIT_UNION_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6026 aNext_Wait_UnionTests, apzNext_Wait_UnionPatch, 0 },
6027
6028 { zNodeent_SyntaxName, zNodeent_SyntaxList,
6029 apzNodeent_SyntaxMachs,
6030 NODEENT_SYNTAX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6031 aNodeent_SyntaxTests, apzNodeent_SyntaxPatch, 0 },
6032
6033 { zOsf_Namespace_AName, zOsf_Namespace_AList,
6034 apzOsf_Namespace_AMachs,
6035 OSF_NAMESPACE_A_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6036 aOsf_Namespace_ATests, apzOsf_Namespace_APatch, 0 },
6037
6038 { zOsf_Namespace_CName, zOsf_Namespace_CList,
6039 apzOsf_Namespace_CMachs,
6040 OSF_NAMESPACE_C_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6041 aOsf_Namespace_CTests, apzOsf_Namespace_CPatch, 0 },
6042
6043 { zPthread_Page_SizeName, zPthread_Page_SizeList,
6044 apzPthread_Page_SizeMachs,
6045 PTHREAD_PAGE_SIZE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6046 aPthread_Page_SizeTests, apzPthread_Page_SizePatch, 0 },
6047
6048 { zRead_Ret_TypeName, zRead_Ret_TypeList,
6049 apzRead_Ret_TypeMachs,
6050 READ_RET_TYPE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6051 aRead_Ret_TypeTests, apzRead_Ret_TypePatch, 0 },
6052
6053 { zRs6000_DoubleName, zRs6000_DoubleList,
6054 apzRs6000_DoubleMachs,
6055 RS6000_DOUBLE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6056 aRs6000_DoubleTests, apzRs6000_DoublePatch, 0 },
6057
6058 { zRs6000_FchmodName, zRs6000_FchmodList,
6059 apzRs6000_FchmodMachs,
6060 RS6000_FCHMOD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6061 aRs6000_FchmodTests, apzRs6000_FchmodPatch, 0 },
6062
6063 { zRs6000_ParamName, zRs6000_ParamList,
6064 apzRs6000_ParamMachs,
6065 RS6000_PARAM_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6066 aRs6000_ParamTests, apzRs6000_ParamPatch, 0 },
6067
6068 { zSco_Static_FuncName, zSco_Static_FuncList,
6069 apzSco_Static_FuncMachs,
6070 SCO_STATIC_FUNC_TEST_CT, FD_MACH_ONLY,
6071 aSco_Static_FuncTests, apzSco_Static_FuncPatch, 0 },
6072
6073 { zSco_UtimeName, zSco_UtimeList,
6074 apzSco_UtimeMachs,
6075 SCO_UTIME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6076 aSco_UtimeTests, apzSco_UtimePatch, 0 },
6077
6078 { zSolaris_Mutex_InitName, zSolaris_Mutex_InitList,
6079 apzSolaris_Mutex_InitMachs,
6080 SOLARIS_MUTEX_INIT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6081 aSolaris_Mutex_InitTests, apzSolaris_Mutex_InitPatch, 0 },
6082
6083 { zStatsswtchName, zStatsswtchList,
6084 apzStatsswtchMachs,
6085 STATSSWTCH_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6086 aStatsswtchTests, apzStatsswtchPatch, 0 },
6087
6088 { zStdio_Stdarg_HName, zStdio_Stdarg_HList,
6089 apzStdio_Stdarg_HMachs,
6090 STDIO_STDARG_H_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6091 aStdio_Stdarg_HTests, apzStdio_Stdarg_HPatch, 0 },
6092
6093 { zStdio_Va_ListName, zStdio_Va_ListList,
6094 apzStdio_Va_ListMachs,
6095 STDIO_VA_LIST_TEST_CT, FD_MACH_ONLY,
6096 aStdio_Va_ListTests, apzStdio_Va_ListPatch, 0 },
6097
6098 { zStrict_Ansi_NotName, zStrict_Ansi_NotList,
6099 apzStrict_Ansi_NotMachs,
6100 STRICT_ANSI_NOT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6101 aStrict_Ansi_NotTests, apzStrict_Ansi_NotPatch, 0 },
6102
6103 { zStrict_Ansi_Not_CtdName, zStrict_Ansi_Not_CtdList,
6104 apzStrict_Ansi_Not_CtdMachs,
6105 STRICT_ANSI_NOT_CTD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6106 aStrict_Ansi_Not_CtdTests, apzStrict_Ansi_Not_CtdPatch, 0 },
6107
6108 { zStrict_Ansi_OnlyName, zStrict_Ansi_OnlyList,
6109 apzStrict_Ansi_OnlyMachs,
6110 STRICT_ANSI_ONLY_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6111 aStrict_Ansi_OnlyTests, apzStrict_Ansi_OnlyPatch, 0 },
6112
6113 { zStruct_FileName, zStruct_FileList,
6114 apzStruct_FileMachs,
6115 STRUCT_FILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6116 aStruct_FileTests, apzStruct_FilePatch, 0 },
6117
6118 { zStruct_SockaddrName, zStruct_SockaddrList,
6119 apzStruct_SockaddrMachs,
6120 STRUCT_SOCKADDR_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6121 aStruct_SockaddrTests, apzStruct_SockaddrPatch, 0 },
6122
6123 { zSun_Auth_ProtoName, zSun_Auth_ProtoList,
6124 apzSun_Auth_ProtoMachs,
6125 SUN_AUTH_PROTO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6126 aSun_Auth_ProtoTests, apzSun_Auth_ProtoPatch, 0 },
6127
6128 { zSun_Bogus_IfdefName, zSun_Bogus_IfdefList,
6129 apzSun_Bogus_IfdefMachs,
6130 SUN_BOGUS_IFDEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6131 aSun_Bogus_IfdefTests, apzSun_Bogus_IfdefPatch, 0 },
6132
6133 { zSun_CatmacroName, zSun_CatmacroList,
6134 apzSun_CatmacroMachs,
6135 SUN_CATMACRO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6136 aSun_CatmacroTests, apzSun_CatmacroPatch, 0 },
6137
6138 { zSun_MallocName, zSun_MallocList,
6139 apzSun_MallocMachs,
6140 SUN_MALLOC_TEST_CT, FD_MACH_ONLY,
6141 aSun_MallocTests, apzSun_MallocPatch, 0 },
6142
6143 { zSun_Rusers_SemiName, zSun_Rusers_SemiList,
6144 apzSun_Rusers_SemiMachs,
6145 SUN_RUSERS_SEMI_TEST_CT, FD_MACH_ONLY,
6146 aSun_Rusers_SemiTests, apzSun_Rusers_SemiPatch, 0 },
6147
6148 { zSun_SignalName, zSun_SignalList,
6149 apzSun_SignalMachs,
6150 SUN_SIGNAL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6151 aSun_SignalTests, apzSun_SignalPatch, 0 },
6152
6153 { zSunos_Matherr_DeclName, zSunos_Matherr_DeclList,
6154 apzSunos_Matherr_DeclMachs,
6155 SUNOS_MATHERR_DECL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6156 aSunos_Matherr_DeclTests, apzSunos_Matherr_DeclPatch, 0 },
6157
6158 { zSunos_StrlenName, zSunos_StrlenList,
6159 apzSunos_StrlenMachs,
6160 SUNOS_STRLEN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6161 aSunos_StrlenTests, apzSunos_StrlenPatch, 0 },
6162
6163 { zSvr4__PName, zSvr4__PList,
6164 apzSvr4__PMachs,
6165 SVR4__P_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6166 aSvr4__PTests, apzSvr4__PPatch, 0 },
6167
6168 { zSvr4_GetcwdName, zSvr4_GetcwdList,
6169 apzSvr4_GetcwdMachs,
6170 SVR4_GETCWD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6171 aSvr4_GetcwdTests, apzSvr4_GetcwdPatch, 0 },
6172
6173 { zSvr4_ProfilName, zSvr4_ProfilList,
6174 apzSvr4_ProfilMachs,
6175 SVR4_PROFIL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6176 aSvr4_ProfilTests, apzSvr4_ProfilPatch, 0 },
6177
6178 { zSysv68_StringName, zSysv68_StringList,
6179 apzSysv68_StringMachs,
6180 SYSV68_STRING_TEST_CT, FD_MACH_ONLY,
6181 aSysv68_StringTests, apzSysv68_StringPatch, 0 },
6182
6183 { zSysz_Stdlib_For_SunName, zSysz_Stdlib_For_SunList,
6184 apzSysz_Stdlib_For_SunMachs,
6185 SYSZ_STDLIB_FOR_SUN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6186 aSysz_Stdlib_For_SunTests, apzSysz_Stdlib_For_SunPatch, 0 },
6187
6188 { zTinfo_CplusplusName, zTinfo_CplusplusList,
6189 apzTinfo_CplusplusMachs,
6190 TINFO_CPLUSPLUS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6191 aTinfo_CplusplusTests, apzTinfo_CplusplusPatch, 0 },
6192
6193 { zUltrix_Atexit_ParamName, zUltrix_Atexit_ParamList,
6194 apzUltrix_Atexit_ParamMachs,
6195 ULTRIX_ATEXIT_PARAM_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6196 aUltrix_Atexit_ParamTests, apzUltrix_Atexit_ParamPatch, 0 },
6197
6198 { zUltrix_Atof_ParamName, zUltrix_Atof_ParamList,
6199 apzUltrix_Atof_ParamMachs,
6200 ULTRIX_ATOF_PARAM_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6201 aUltrix_Atof_ParamTests, apzUltrix_Atof_ParamPatch, 0 },
6202
6203 { zUltrix_ConstName, zUltrix_ConstList,
6204 apzUltrix_ConstMachs,
6205 ULTRIX_CONST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6206 aUltrix_ConstTests, apzUltrix_ConstPatch, 0 },
6207
6208 { zUltrix_Const2Name, zUltrix_Const2List,
6209 apzUltrix_Const2Machs,
6210 ULTRIX_CONST2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6211 aUltrix_Const2Tests, apzUltrix_Const2Patch, 0 },
6212
6213 { zUltrix_Fix_FixprotoName, zUltrix_Fix_FixprotoList,
6214 apzUltrix_Fix_FixprotoMachs,
6215 ULTRIX_FIX_FIXPROTO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6216 aUltrix_Fix_FixprotoTests, apzUltrix_Fix_FixprotoPatch, 0 },
6217
6218 { zUltrix_IfdefName, zUltrix_IfdefList,
6219 apzUltrix_IfdefMachs,
6220 ULTRIX_IFDEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6221 aUltrix_IfdefTests, apzUltrix_IfdefPatch, 0 },
6222
6223 { zUltrix_Math_IfdefName, zUltrix_Math_IfdefList,
6224 apzUltrix_Math_IfdefMachs,
6225 ULTRIX_MATH_IFDEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6226 aUltrix_Math_IfdefTests, apzUltrix_Math_IfdefPatch, 0 },
6227
6228 { zUltrix_Nested_IoctlName, zUltrix_Nested_IoctlList,
6229 apzUltrix_Nested_IoctlMachs,
6230 ULTRIX_NESTED_IOCTL_TEST_CT, FD_MACH_ONLY,
6231 aUltrix_Nested_IoctlTests, apzUltrix_Nested_IoctlPatch, 0 },
6232
6233 { zUltrix_Nested_SvcName, zUltrix_Nested_SvcList,
6234 apzUltrix_Nested_SvcMachs,
6235 ULTRIX_NESTED_SVC_TEST_CT, FD_MACH_ONLY,
6236 aUltrix_Nested_SvcTests, apzUltrix_Nested_SvcPatch, 0 },
6237
6238 { zUltrix_StatName, zUltrix_StatList,
6239 apzUltrix_StatMachs,
6240 ULTRIX_STAT_TEST_CT, FD_MACH_ONLY,
6241 aUltrix_StatTests, apzUltrix_StatPatch, 0 },
6242
6243 { zUltrix_StaticName, zUltrix_StaticList,
6244 apzUltrix_StaticMachs,
6245 ULTRIX_STATIC_TEST_CT, FD_MACH_ONLY,
6246 aUltrix_StaticTests, apzUltrix_StaticPatch, 0 },
6247
6248 { zUltrix_StringsName, zUltrix_StringsList,
6249 apzUltrix_StringsMachs,
6250 ULTRIX_STRINGS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6251 aUltrix_StringsTests, apzUltrix_StringsPatch, 0 },
6252
6253 { zUndefine_NullName, zUndefine_NullList,
6254 apzUndefine_NullMachs,
6255 UNDEFINE_NULL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6256 aUndefine_NullTests, apzUndefine_NullPatch, 0 },
6257
6258 { zUnicosmk_RestrictName, zUnicosmk_RestrictList,
6259 apzUnicosmk_RestrictMachs,
6260 UNICOSMK_RESTRICT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6261 aUnicosmk_RestrictTests, apzUnicosmk_RestrictPatch, 0 },
6262
6263 { zUw7_Byteorder_FixName, zUw7_Byteorder_FixList,
6264 apzUw7_Byteorder_FixMachs,
6265 UW7_BYTEORDER_FIX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6266 aUw7_Byteorder_FixTests, apzUw7_Byteorder_FixPatch, 0 },
6267
6268 { zVa_I960_MacroName, zVa_I960_MacroList,
6269 apzVa_I960_MacroMachs,
6270 VA_I960_MACRO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6271 aVa_I960_MacroTests, apzVa_I960_MacroPatch, 0 },
6272
6273 { zVoid_NullName, zVoid_NullList,
6274 apzVoid_NullMachs,
6275 VOID_NULL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6276 aVoid_NullTests, apzVoid_NullPatch, 0 },
6277
6278 { zVxworks_Gcc_ProblemName, zVxworks_Gcc_ProblemList,
6279 apzVxworks_Gcc_ProblemMachs,
6280 VXWORKS_GCC_PROBLEM_TEST_CT, FD_MACH_ONLY,
6281 aVxworks_Gcc_ProblemTests, apzVxworks_Gcc_ProblemPatch, 0 },
6282
6283 { zVxworks_Needs_VxtypesName, zVxworks_Needs_VxtypesList,
6284 apzVxworks_Needs_VxtypesMachs,
6285 VXWORKS_NEEDS_VXTYPES_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6286 aVxworks_Needs_VxtypesTests, apzVxworks_Needs_VxtypesPatch, 0 },
6287
6288 { zVxworks_Needs_VxworksName, zVxworks_Needs_VxworksList,
6289 apzVxworks_Needs_VxworksMachs,
6290 VXWORKS_NEEDS_VXWORKS_TEST_CT, FD_MACH_ONLY,
6291 aVxworks_Needs_VxworksTests, apzVxworks_Needs_VxworksPatch, 0 },
6292
6293 { zVxworks_TimeName, zVxworks_TimeList,
6294 apzVxworks_TimeMachs,
6295 VXWORKS_TIME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6296 aVxworks_TimeTests, apzVxworks_TimePatch, 0 },
6297
6298 { zX11_ClassName, zX11_ClassList,
6299 apzX11_ClassMachs,
6300 X11_CLASS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6301 aX11_ClassTests, apzX11_ClassPatch, 0 },
6302
6303 { zX11_Class_UsageName, zX11_Class_UsageList,
6304 apzX11_Class_UsageMachs,
6305 X11_CLASS_USAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6306 aX11_Class_UsageTests, apzX11_Class_UsagePatch, 0 },
6307
6308 { zX11_NewName, zX11_NewList,
6309 apzX11_NewMachs,
6310 X11_NEW_TEST_CT, FD_MACH_ONLY,
6311 aX11_NewTests, apzX11_NewPatch, 0 },
6312
6313 { zX11_SprintfName, zX11_SprintfList,
6314 apzX11_SprintfMachs,
6315 X11_SPRINTF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6316 aX11_SprintfTests, apzX11_SprintfPatch, 0 }
6317 };