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