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