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