prevent dual double definition protection
[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 130 fixup descriptions.
9 *
10 * See README-fixinc for more information.
11 *
12 * inclhack copyright (c) 1998, 1999, 2000
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 Isc_Fmod fix
2285 */
2286 #define ISC_FMOD_FIXIDX 54
2287 tSCC zIsc_FmodName[] =
2288 "isc_fmod";
2289
2290 /*
2291 * File name selection pattern
2292 */
2293 tSCC zIsc_FmodList[] =
2294 "|math.h|";
2295 /*
2296 * Machine/OS name selection pattern
2297 */
2298 #define apzIsc_FmodMachs (const char**)NULL
2299
2300 /*
2301 * content selection pattern - do fix if pattern found
2302 */
2303 tSCC zIsc_FmodSelect0[] =
2304 "fmod\\(double\\)";
2305
2306 #define ISC_FMOD_TEST_CT 1
2307 static tTestDesc aIsc_FmodTests[] = {
2308 { TT_EGREP, zIsc_FmodSelect0, (regex_t*)NULL }, };
2309
2310 /*
2311 * Fix Command Arguments for Isc_Fmod
2312 */
2313 static const char* apzIsc_FmodPatch[] = {
2314 "format",
2315 "fmod(double, double)",
2316 (char*)NULL };
2317
2318 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2319 *
2320 * Description of Kandr_Concat fix
2321 */
2322 #define KANDR_CONCAT_FIXIDX 55
2323 tSCC zKandr_ConcatName[] =
2324 "kandr_concat";
2325
2326 /*
2327 * File name selection pattern
2328 */
2329 tSCC zKandr_ConcatList[] =
2330 "|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|";
2331 /*
2332 * Machine/OS name selection pattern
2333 */
2334 #define apzKandr_ConcatMachs (const char**)NULL
2335
2336 /*
2337 * content selection pattern - do fix if pattern found
2338 */
2339 tSCC zKandr_ConcatSelect0[] =
2340 "/\\*\\*/";
2341
2342 #define KANDR_CONCAT_TEST_CT 1
2343 static tTestDesc aKandr_ConcatTests[] = {
2344 { TT_EGREP, zKandr_ConcatSelect0, (regex_t*)NULL }, };
2345
2346 /*
2347 * Fix Command Arguments for Kandr_Concat
2348 */
2349 static const char* apzKandr_ConcatPatch[] = {
2350 "format",
2351 "##",
2352 (char*)NULL };
2353
2354 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2355 *
2356 * Description of Libc1_Ifdefd_Memx fix
2357 */
2358 #define LIBC1_IFDEFD_MEMX_FIXIDX 56
2359 tSCC zLibc1_Ifdefd_MemxName[] =
2360 "libc1_ifdefd_memx";
2361
2362 /*
2363 * File name selection pattern
2364 */
2365 tSCC zLibc1_Ifdefd_MemxList[] =
2366 "|testing.h|string.h|";
2367 /*
2368 * Machine/OS name selection pattern
2369 */
2370 #define apzLibc1_Ifdefd_MemxMachs (const char**)NULL
2371
2372 /*
2373 * content selection pattern - do fix if pattern found
2374 */
2375 tSCC zLibc1_Ifdefd_MemxSelect0[] =
2376 "' is a built-in function for gcc 2\\.x\\. \\*/";
2377
2378 /*
2379 * content bypass pattern - skip fix if pattern found
2380 */
2381 tSCC zLibc1_Ifdefd_MemxBypass0[] =
2382 "__cplusplus";
2383
2384 #define LIBC1_IFDEFD_MEMX_TEST_CT 2
2385 static tTestDesc aLibc1_Ifdefd_MemxTests[] = {
2386 { TT_NEGREP, zLibc1_Ifdefd_MemxBypass0, (regex_t*)NULL },
2387 { TT_EGREP, zLibc1_Ifdefd_MemxSelect0, (regex_t*)NULL }, };
2388
2389 /*
2390 * Fix Command Arguments for Libc1_Ifdefd_Memx
2391 */
2392 static const char* apzLibc1_Ifdefd_MemxPatch[] = {
2393 "format",
2394 "%1",
2395 "/\\* `mem...' is a built-in function for gcc 2\\.x\\. \\*/\n\
2396 #if defined\\(__STDC__\\) && __GNUC__ < 2\n\
2397 (/\\* .* \\*/\n\
2398 extern [a-z_]+ mem.*(\n\
2399 [^#].*)*;)\n\
2400 #endif",
2401 (char*)NULL };
2402
2403 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2404 *
2405 * Description of Limits_Ifndefs fix
2406 */
2407 #define LIMITS_IFNDEFS_FIXIDX 57
2408 tSCC zLimits_IfndefsName[] =
2409 "limits_ifndefs";
2410
2411 /*
2412 * File name selection pattern
2413 */
2414 tSCC zLimits_IfndefsList[] =
2415 "|sys/limits.h|limits.h|";
2416 /*
2417 * Machine/OS name selection pattern
2418 */
2419 #define apzLimits_IfndefsMachs (const char**)NULL
2420
2421 /*
2422 * content bypass pattern - skip fix if pattern found
2423 */
2424 tSCC zLimits_IfndefsBypass0[] =
2425 "ifndef[ \t]+FLT_MIN";
2426
2427 #define LIMITS_IFNDEFS_TEST_CT 1
2428 static tTestDesc aLimits_IfndefsTests[] = {
2429 { TT_NEGREP, zLimits_IfndefsBypass0, (regex_t*)NULL }, };
2430
2431 /*
2432 * Fix Command Arguments for Limits_Ifndefs
2433 */
2434 static const char* apzLimits_IfndefsPatch[] = {
2435 "format",
2436 "#ifndef %1\n\
2437 %0\n\
2438 #endif",
2439 "^[ \t]*#[ \t]*define[ \t]+((FLT|DBL)_(MIN|MAX|DIG))[ \t].*",
2440 (char*)NULL };
2441
2442 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2443 *
2444 * Description of Lynx_Void_Int fix
2445 */
2446 #define LYNX_VOID_INT_FIXIDX 58
2447 tSCC zLynx_Void_IntName[] =
2448 "lynx_void_int";
2449
2450 /*
2451 * File name selection pattern
2452 */
2453 tSCC zLynx_Void_IntList[] =
2454 "|curses.h|";
2455 /*
2456 * Machine/OS name selection pattern
2457 */
2458 #define apzLynx_Void_IntMachs (const char**)NULL
2459
2460 /*
2461 * content selection pattern - do fix if pattern found
2462 */
2463 tSCC zLynx_Void_IntSelect0[] =
2464 "#[ \t]*define[ \t]+void[ \t]+int[ \t]*";
2465
2466 #define LYNX_VOID_INT_TEST_CT 1
2467 static tTestDesc aLynx_Void_IntTests[] = {
2468 { TT_EGREP, zLynx_Void_IntSelect0, (regex_t*)NULL }, };
2469
2470 /*
2471 * Fix Command Arguments for Lynx_Void_Int
2472 */
2473 static const char* apzLynx_Void_IntPatch[] = {
2474 "format",
2475 "",
2476 (char*)NULL };
2477
2478 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2479 *
2480 * Description of Lynxos_Fcntl_Proto fix
2481 */
2482 #define LYNXOS_FCNTL_PROTO_FIXIDX 59
2483 tSCC zLynxos_Fcntl_ProtoName[] =
2484 "lynxos_fcntl_proto";
2485
2486 /*
2487 * File name selection pattern
2488 */
2489 tSCC zLynxos_Fcntl_ProtoList[] =
2490 "|fcntl.h|";
2491 /*
2492 * Machine/OS name selection pattern
2493 */
2494 #define apzLynxos_Fcntl_ProtoMachs (const char**)NULL
2495
2496 /*
2497 * content selection pattern - do fix if pattern found
2498 */
2499 tSCC zLynxos_Fcntl_ProtoSelect0[] =
2500 "fcntl[ \t]*\\(int, int, int\\)";
2501
2502 #define LYNXOS_FCNTL_PROTO_TEST_CT 1
2503 static tTestDesc aLynxos_Fcntl_ProtoTests[] = {
2504 { TT_EGREP, zLynxos_Fcntl_ProtoSelect0, (regex_t*)NULL }, };
2505
2506 /*
2507 * Fix Command Arguments for Lynxos_Fcntl_Proto
2508 */
2509 static const char* apzLynxos_Fcntl_ProtoPatch[] = {
2510 "format",
2511 "%1...)",
2512 "(fcntl[ \t]*\\(int, int, )int\\)",
2513 (char*)NULL };
2514
2515 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2516 *
2517 * Description of M88k_Bad_Hypot_Opt fix
2518 */
2519 #define M88K_BAD_HYPOT_OPT_FIXIDX 60
2520 tSCC zM88k_Bad_Hypot_OptName[] =
2521 "m88k_bad_hypot_opt";
2522
2523 /*
2524 * File name selection pattern
2525 */
2526 tSCC zM88k_Bad_Hypot_OptList[] =
2527 "|math.h|";
2528 /*
2529 * Machine/OS name selection pattern
2530 */
2531 tSCC* apzM88k_Bad_Hypot_OptMachs[] = {
2532 "m88k-motorola-sysv3*",
2533 (const char*)NULL };
2534
2535 /*
2536 * content selection pattern - do fix if pattern found
2537 */
2538 tSCC zM88k_Bad_Hypot_OptSelect0[] =
2539 "^extern double hypot\\(\\);\n";
2540
2541 #define M88K_BAD_HYPOT_OPT_TEST_CT 1
2542 static tTestDesc aM88k_Bad_Hypot_OptTests[] = {
2543 { TT_EGREP, zM88k_Bad_Hypot_OptSelect0, (regex_t*)NULL }, };
2544
2545 /*
2546 * Fix Command Arguments for M88k_Bad_Hypot_Opt
2547 */
2548 static const char* apzM88k_Bad_Hypot_OptPatch[] = {
2549 "format",
2550 "%0/* Workaround a stupid Motorola optimization if one\n\
2551 of x or y is 0.0 and the other is negative! */\n\
2552 #ifdef __STDC__\n\
2553 static __inline__ double fake_hypot (double x, double y)\n\
2554 #else\n\
2555 static __inline__ double fake_hypot (x, y)\n\
2556 \tdouble x, y;\n\
2557 #endif\n\
2558 {\n\
2559 \treturn fabs (hypot (x, y));\n\
2560 }\n\
2561 #define hypot\tfake_hypot\n",
2562 (char*)NULL };
2563
2564 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2565 *
2566 * Description of M88k_Bad_S_If fix
2567 */
2568 #define M88K_BAD_S_IF_FIXIDX 61
2569 tSCC zM88k_Bad_S_IfName[] =
2570 "m88k_bad_s_if";
2571
2572 /*
2573 * File name selection pattern
2574 */
2575 tSCC zM88k_Bad_S_IfList[] =
2576 "|sys/stat.h|";
2577 /*
2578 * Machine/OS name selection pattern
2579 */
2580 tSCC* apzM88k_Bad_S_IfMachs[] = {
2581 "m88k-*-sysv3*",
2582 (const char*)NULL };
2583
2584 /*
2585 * content selection pattern - do fix if pattern found
2586 */
2587 tSCC zM88k_Bad_S_IfSelect0[] =
2588 "#define[ \t]+S_IS[A-Z]+\\(m\\)[ \t]+\\(m[ \t]*&";
2589
2590 #define M88K_BAD_S_IF_TEST_CT 1
2591 static tTestDesc aM88k_Bad_S_IfTests[] = {
2592 { TT_EGREP, zM88k_Bad_S_IfSelect0, (regex_t*)NULL }, };
2593
2594 /*
2595 * Fix Command Arguments for M88k_Bad_S_If
2596 */
2597 static const char* apzM88k_Bad_S_IfPatch[] = {
2598 "format",
2599 "#define %1(m) (((m) & S_IFMT) == %2)",
2600 "#define[ \t]+(S_IS[A-Z]+)\\(m\\)[ \t]+\\(m[ \t]*&[ \t]*(S_IF[A-Z][A-Z][A-Z]+|0[0-9]+)[ \t]*\\)",
2601 (char*)NULL };
2602
2603 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2604 *
2605 * Description of M88k_Multi_Incl fix
2606 */
2607 #define M88K_MULTI_INCL_FIXIDX 62
2608 tSCC zM88k_Multi_InclName[] =
2609 "m88k_multi_incl";
2610
2611 /*
2612 * File name selection pattern
2613 */
2614 tSCC zM88k_Multi_InclList[] =
2615 "|time.h|";
2616 /*
2617 * Machine/OS name selection pattern
2618 */
2619 tSCC* apzM88k_Multi_InclMachs[] = {
2620 "m88k-tektronix-sysv3*",
2621 (const char*)NULL };
2622
2623 /*
2624 * content bypass pattern - skip fix if pattern found
2625 */
2626 tSCC zM88k_Multi_InclBypass0[] =
2627 "#ifndef";
2628
2629 #define M88K_MULTI_INCL_TEST_CT 1
2630 static tTestDesc aM88k_Multi_InclTests[] = {
2631 { TT_NEGREP, zM88k_Multi_InclBypass0, (regex_t*)NULL }, };
2632
2633 /*
2634 * Fix Command Arguments for M88k_Multi_Incl
2635 */
2636 static const char* apzM88k_Multi_InclPatch[] = {
2637 "wrap",
2638 (char*)NULL };
2639
2640 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2641 *
2642 * Description of Machine_Ansi_H_Va_List fix
2643 */
2644 #define MACHINE_ANSI_H_VA_LIST_FIXIDX 63
2645 tSCC zMachine_Ansi_H_Va_ListName[] =
2646 "machine_ansi_h_va_list";
2647
2648 /*
2649 * File name selection pattern
2650 */
2651 tSCC zMachine_Ansi_H_Va_ListList[] =
2652 "|machine/ansi.h|";
2653 /*
2654 * Machine/OS name selection pattern
2655 */
2656 #define apzMachine_Ansi_H_Va_ListMachs (const char**)NULL
2657
2658 /*
2659 * content selection pattern - do fix if pattern found
2660 */
2661 tSCC zMachine_Ansi_H_Va_ListSelect0[] =
2662 "define[ \t]+_BSD_VA_LIST_[ \t]";
2663
2664 /*
2665 * content bypass pattern - skip fix if pattern found
2666 */
2667 tSCC zMachine_Ansi_H_Va_ListBypass0[] =
2668 "__builtin_va_list";
2669
2670 #define MACHINE_ANSI_H_VA_LIST_TEST_CT 2
2671 static tTestDesc aMachine_Ansi_H_Va_ListTests[] = {
2672 { TT_NEGREP, zMachine_Ansi_H_Va_ListBypass0, (regex_t*)NULL },
2673 { TT_EGREP, zMachine_Ansi_H_Va_ListSelect0, (regex_t*)NULL }, };
2674
2675 /*
2676 * Fix Command Arguments for Machine_Ansi_H_Va_List
2677 */
2678 static const char* apzMachine_Ansi_H_Va_ListPatch[] = {
2679 "format",
2680 "%1__builtin_va_list",
2681 "(define[ \t]+_BSD_VA_LIST_[ \t]+).*",
2682 (char*)NULL };
2683
2684 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2685 *
2686 * Description of Machine_Name fix
2687 */
2688 #define MACHINE_NAME_FIXIDX 64
2689 tSCC zMachine_NameName[] =
2690 "machine_name";
2691
2692 /*
2693 * File name selection pattern
2694 */
2695 #define zMachine_NameList (char*)NULL
2696 /*
2697 * Machine/OS name selection pattern
2698 */
2699 #define apzMachine_NameMachs (const char**)NULL
2700
2701 /*
2702 * perform the C function call test
2703 */
2704 tSCC zMachine_NameFTst0[] = "machine_name";
2705
2706 #define MACHINE_NAME_TEST_CT 1
2707 static tTestDesc aMachine_NameTests[] = {
2708 { TT_FUNCTION, zMachine_NameFTst0, 0 /* unused */ }, };
2709
2710 /*
2711 * Fix Command Arguments for Machine_Name
2712 */
2713 static const char* apzMachine_NamePatch[] = {
2714 "machine_name",
2715 (char*)NULL };
2716
2717 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2718 *
2719 * Description of Math_Exception fix
2720 */
2721 #define MATH_EXCEPTION_FIXIDX 65
2722 tSCC zMath_ExceptionName[] =
2723 "math_exception";
2724
2725 /*
2726 * File name selection pattern
2727 */
2728 tSCC zMath_ExceptionList[] =
2729 "|math.h|";
2730 /*
2731 * Machine/OS name selection pattern
2732 */
2733 #define apzMath_ExceptionMachs (const char**)NULL
2734
2735 /*
2736 * content selection pattern - do fix if pattern found
2737 */
2738 tSCC zMath_ExceptionSelect0[] =
2739 "struct exception";
2740
2741 /*
2742 * content bypass pattern - skip fix if pattern found
2743 */
2744 tSCC zMath_ExceptionBypass0[] =
2745 "We have a problem when using C\\+\\+";
2746
2747 #define MATH_EXCEPTION_TEST_CT 2
2748 static tTestDesc aMath_ExceptionTests[] = {
2749 { TT_NEGREP, zMath_ExceptionBypass0, (regex_t*)NULL },
2750 { TT_EGREP, zMath_ExceptionSelect0, (regex_t*)NULL }, };
2751
2752 /*
2753 * Fix Command Arguments for Math_Exception
2754 */
2755 static const char* apzMath_ExceptionPatch[] = {
2756 "wrap",
2757 "#ifdef __cplusplus\n\
2758 #define exception __math_exception\n\
2759 #endif\n",
2760 "#ifdef __cplusplus\n\
2761 #undef exception\n\
2762 #endif\n",
2763 (char*)NULL };
2764
2765 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2766 *
2767 * Description of Math_Huge_Val_From_Dbl_Max fix
2768 */
2769 #define MATH_HUGE_VAL_FROM_DBL_MAX_FIXIDX 66
2770 tSCC zMath_Huge_Val_From_Dbl_MaxName[] =
2771 "math_huge_val_from_dbl_max";
2772
2773 /*
2774 * File name selection pattern
2775 */
2776 tSCC zMath_Huge_Val_From_Dbl_MaxList[] =
2777 "|math.h|";
2778 /*
2779 * Machine/OS name selection pattern
2780 */
2781 #define apzMath_Huge_Val_From_Dbl_MaxMachs (const char**)NULL
2782
2783 /*
2784 * content selection pattern - do fix if pattern found
2785 */
2786 tSCC zMath_Huge_Val_From_Dbl_MaxSelect0[] =
2787 "define[ \t]+HUGE_VAL[ \t]+DBL_MAX";
2788
2789 /*
2790 * content bypass pattern - skip fix if pattern found
2791 */
2792 tSCC zMath_Huge_Val_From_Dbl_MaxBypass0[] =
2793 "define[ \t]+DBL_MAX";
2794
2795 #define MATH_HUGE_VAL_FROM_DBL_MAX_TEST_CT 2
2796 static tTestDesc aMath_Huge_Val_From_Dbl_MaxTests[] = {
2797 { TT_NEGREP, zMath_Huge_Val_From_Dbl_MaxBypass0, (regex_t*)NULL },
2798 { TT_EGREP, zMath_Huge_Val_From_Dbl_MaxSelect0, (regex_t*)NULL }, };
2799
2800 /*
2801 * Fix Command Arguments for Math_Huge_Val_From_Dbl_Max
2802 */
2803 static const char* apzMath_Huge_Val_From_Dbl_MaxPatch[] = { "sh", "-c",
2804 "\tdbl_max_def=`egrep 'define[ \t]+DBL_MAX[ \t]+.*' float.h | sed 's/.*DBL_MAX[ \t]*//' 2>/dev/null`\n\
2805 \n\
2806 \tif ( test -n \"${dbl_max_def}\" ) > /dev/null 2>&1\n\
2807 \tthen sed -e '/define[ \t]*HUGE_VAL[ \t]*DBL_MAX/s@DBL_MAX@'\"$dbl_max_def@\"\n\
2808 \telse cat\n\
2809 \tfi",
2810 (char*)NULL };
2811
2812 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2813 *
2814 * Description of Math_Huge_Val_Ifndef fix
2815 */
2816 #define MATH_HUGE_VAL_IFNDEF_FIXIDX 67
2817 tSCC zMath_Huge_Val_IfndefName[] =
2818 "math_huge_val_ifndef";
2819
2820 /*
2821 * File name selection pattern
2822 */
2823 tSCC zMath_Huge_Val_IfndefList[] =
2824 "|math.h|math/math.h|";
2825 /*
2826 * Machine/OS name selection pattern
2827 */
2828 #define apzMath_Huge_Val_IfndefMachs (const char**)NULL
2829
2830 /*
2831 * content selection pattern - do fix if pattern found
2832 */
2833 tSCC zMath_Huge_Val_IfndefSelect0[] =
2834 "define[ \t]+HUGE_VAL";
2835
2836 #define MATH_HUGE_VAL_IFNDEF_TEST_CT 1
2837 static tTestDesc aMath_Huge_Val_IfndefTests[] = {
2838 { TT_EGREP, zMath_Huge_Val_IfndefSelect0, (regex_t*)NULL }, };
2839
2840 /*
2841 * Fix Command Arguments for Math_Huge_Val_Ifndef
2842 */
2843 static const char* apzMath_Huge_Val_IfndefPatch[] = {
2844 "format",
2845 "#ifndef HUGE_VAL\n\
2846 %0\n\
2847 #endif",
2848 "^[ \t]*#[ \t]*define[ \t]+HUGE_VAL[ \t].*",
2849 (char*)NULL };
2850
2851 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2852 *
2853 * Description of Nested_Motorola fix
2854 */
2855 #define NESTED_MOTOROLA_FIXIDX 68
2856 tSCC zNested_MotorolaName[] =
2857 "nested_motorola";
2858
2859 /*
2860 * File name selection pattern
2861 */
2862 tSCC zNested_MotorolaList[] =
2863 "|sys/limits.h|limits.h|";
2864 /*
2865 * Machine/OS name selection pattern
2866 */
2867 tSCC* apzNested_MotorolaMachs[] = {
2868 "m68k-motorola-sysv*",
2869 (const char*)NULL };
2870
2871 /*
2872 * content selection pattern - do fix if pattern found
2873 */
2874 tSCC zNested_MotorolaSelect0[] =
2875 "max # bytes atomic in write|error value returned by Math lib";
2876
2877 #define NESTED_MOTOROLA_TEST_CT 1
2878 static tTestDesc aNested_MotorolaTests[] = {
2879 { TT_EGREP, zNested_MotorolaSelect0, (regex_t*)NULL }, };
2880
2881 /*
2882 * Fix Command Arguments for Nested_Motorola
2883 */
2884 static const char* apzNested_MotorolaPatch[] = { "sed",
2885 "-e", "s@^\\(#undef[ \t][ \t]*PIPE_BUF[ \t]*/\\* max # bytes atomic in write to a\\)$@\\1 */@",
2886 "-e", "s@\\(/\\*#define\tHUGE_VAL\t3.[0-9e+]* \\)\\(/\\*error value returned by Math lib\\*/\\)$@\\1*/ \\2@",
2887 (char*)NULL };
2888
2889 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2890 *
2891 * Description of Nested_Sys_Limits fix
2892 */
2893 #define NESTED_SYS_LIMITS_FIXIDX 69
2894 tSCC zNested_Sys_LimitsName[] =
2895 "nested_sys_limits";
2896
2897 /*
2898 * File name selection pattern
2899 */
2900 tSCC zNested_Sys_LimitsList[] =
2901 "|sys/limits.h|";
2902 /*
2903 * Machine/OS name selection pattern
2904 */
2905 #define apzNested_Sys_LimitsMachs (const char**)NULL
2906
2907 /*
2908 * content selection pattern - do fix if pattern found
2909 */
2910 tSCC zNested_Sys_LimitsSelect0[] =
2911 "CHILD_MAX";
2912
2913 #define NESTED_SYS_LIMITS_TEST_CT 1
2914 static tTestDesc aNested_Sys_LimitsTests[] = {
2915 { TT_EGREP, zNested_Sys_LimitsSelect0, (regex_t*)NULL }, };
2916
2917 /*
2918 * Fix Command Arguments for Nested_Sys_Limits
2919 */
2920 static const char* apzNested_Sys_LimitsPatch[] = { "sed",
2921 "-e", "/CHILD_MAX/s,/\\* Max, Max,",
2922 "-e", "/OPEN_MAX/s,/\\* Max, Max,",
2923 (char*)NULL };
2924
2925 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2926 *
2927 * Description of Nested_Auth_Des fix
2928 */
2929 #define NESTED_AUTH_DES_FIXIDX 70
2930 tSCC zNested_Auth_DesName[] =
2931 "nested_auth_des";
2932
2933 /*
2934 * File name selection pattern
2935 */
2936 tSCC zNested_Auth_DesList[] =
2937 "|rpc/rpc.h|";
2938 /*
2939 * Machine/OS name selection pattern
2940 */
2941 #define apzNested_Auth_DesMachs (const char**)NULL
2942
2943 /*
2944 * content selection pattern - do fix if pattern found
2945 */
2946 tSCC zNested_Auth_DesSelect0[] =
2947 "(/\\*.*rpc/auth_des\\.h>.*)/\\*";
2948
2949 #define NESTED_AUTH_DES_TEST_CT 1
2950 static tTestDesc aNested_Auth_DesTests[] = {
2951 { TT_EGREP, zNested_Auth_DesSelect0, (regex_t*)NULL }, };
2952
2953 /*
2954 * Fix Command Arguments for Nested_Auth_Des
2955 */
2956 static const char* apzNested_Auth_DesPatch[] = {
2957 "format",
2958 "%1*/ /*",
2959 (char*)NULL };
2960
2961 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2962 *
2963 * Description of News_Os_Recursion fix
2964 */
2965 #define NEWS_OS_RECURSION_FIXIDX 71
2966 tSCC zNews_Os_RecursionName[] =
2967 "news_os_recursion";
2968
2969 /*
2970 * File name selection pattern
2971 */
2972 tSCC zNews_Os_RecursionList[] =
2973 "|stdlib.h|";
2974 /*
2975 * Machine/OS name selection pattern
2976 */
2977 #define apzNews_Os_RecursionMachs (const char**)NULL
2978
2979 /*
2980 * content selection pattern - do fix if pattern found
2981 */
2982 tSCC zNews_Os_RecursionSelect0[] =
2983 "[ \t]*#include <stdlib\\.h>.*";
2984
2985 #define NEWS_OS_RECURSION_TEST_CT 1
2986 static tTestDesc aNews_Os_RecursionTests[] = {
2987 { TT_EGREP, zNews_Os_RecursionSelect0, (regex_t*)NULL }, };
2988
2989 /*
2990 * Fix Command Arguments for News_Os_Recursion
2991 */
2992 static const char* apzNews_Os_RecursionPatch[] = {
2993 "format",
2994 "#ifdef BOGUS_RECURSION\n\
2995 %0\n\
2996 #endif",
2997 (char*)NULL };
2998
2999 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3000 *
3001 * Description of Next_Math_Prefix fix
3002 */
3003 #define NEXT_MATH_PREFIX_FIXIDX 72
3004 tSCC zNext_Math_PrefixName[] =
3005 "next_math_prefix";
3006
3007 /*
3008 * File name selection pattern
3009 */
3010 tSCC zNext_Math_PrefixList[] =
3011 "|ansi/math.h|";
3012 /*
3013 * Machine/OS name selection pattern
3014 */
3015 #define apzNext_Math_PrefixMachs (const char**)NULL
3016
3017 /*
3018 * content selection pattern - do fix if pattern found
3019 */
3020 tSCC zNext_Math_PrefixSelect0[] =
3021 "^extern[ \t]+double[ \t]+__const__[ \t]";
3022
3023 #define NEXT_MATH_PREFIX_TEST_CT 1
3024 static tTestDesc aNext_Math_PrefixTests[] = {
3025 { TT_EGREP, zNext_Math_PrefixSelect0, (regex_t*)NULL }, };
3026
3027 /*
3028 * Fix Command Arguments for Next_Math_Prefix
3029 */
3030 static const char* apzNext_Math_PrefixPatch[] = {
3031 "format",
3032 "extern double %1(",
3033 "^extern[ \t]+double[ \t]+__const__[ \t]+([a-z]+)\\(",
3034 (char*)NULL };
3035
3036 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3037 *
3038 * Description of Next_Template fix
3039 */
3040 #define NEXT_TEMPLATE_FIXIDX 73
3041 tSCC zNext_TemplateName[] =
3042 "next_template";
3043
3044 /*
3045 * File name selection pattern
3046 */
3047 tSCC zNext_TemplateList[] =
3048 "|bsd/libc.h|";
3049 /*
3050 * Machine/OS name selection pattern
3051 */
3052 #define apzNext_TemplateMachs (const char**)NULL
3053
3054 /*
3055 * content selection pattern - do fix if pattern found
3056 */
3057 tSCC zNext_TemplateSelect0[] =
3058 "[ \t]template\\)";
3059
3060 #define NEXT_TEMPLATE_TEST_CT 1
3061 static tTestDesc aNext_TemplateTests[] = {
3062 { TT_EGREP, zNext_TemplateSelect0, (regex_t*)NULL }, };
3063
3064 /*
3065 * Fix Command Arguments for Next_Template
3066 */
3067 static const char* apzNext_TemplatePatch[] = {
3068 "format",
3069 "(%1)",
3070 "\\(([^)]*)[ \t]template\\)",
3071 (char*)NULL };
3072
3073 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3074 *
3075 * Description of Next_Volitile fix
3076 */
3077 #define NEXT_VOLITILE_FIXIDX 74
3078 tSCC zNext_VolitileName[] =
3079 "next_volitile";
3080
3081 /*
3082 * File name selection pattern
3083 */
3084 tSCC zNext_VolitileList[] =
3085 "|ansi/stdlib.h|";
3086 /*
3087 * Machine/OS name selection pattern
3088 */
3089 #define apzNext_VolitileMachs (const char**)NULL
3090
3091 /*
3092 * content selection pattern - do fix if pattern found
3093 */
3094 tSCC zNext_VolitileSelect0[] =
3095 "^extern[ \t]+volatile[ \t]+void[ \t]";
3096
3097 #define NEXT_VOLITILE_TEST_CT 1
3098 static tTestDesc aNext_VolitileTests[] = {
3099 { TT_EGREP, zNext_VolitileSelect0, (regex_t*)NULL }, };
3100
3101 /*
3102 * Fix Command Arguments for Next_Volitile
3103 */
3104 static const char* apzNext_VolitilePatch[] = {
3105 "format",
3106 "extern void %1(",
3107 "^extern[ \t]+volatile[ \t]+void[ \t]+(exit|abort)\\(",
3108 (char*)NULL };
3109
3110 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3111 *
3112 * Description of Next_Wait_Union fix
3113 */
3114 #define NEXT_WAIT_UNION_FIXIDX 75
3115 tSCC zNext_Wait_UnionName[] =
3116 "next_wait_union";
3117
3118 /*
3119 * File name selection pattern
3120 */
3121 tSCC zNext_Wait_UnionList[] =
3122 "|sys/wait.h|";
3123 /*
3124 * Machine/OS name selection pattern
3125 */
3126 #define apzNext_Wait_UnionMachs (const char**)NULL
3127
3128 /*
3129 * content selection pattern - do fix if pattern found
3130 */
3131 tSCC zNext_Wait_UnionSelect0[] =
3132 "wait\\(union wait";
3133
3134 #define NEXT_WAIT_UNION_TEST_CT 1
3135 static tTestDesc aNext_Wait_UnionTests[] = {
3136 { TT_EGREP, zNext_Wait_UnionSelect0, (regex_t*)NULL }, };
3137
3138 /*
3139 * Fix Command Arguments for Next_Wait_Union
3140 */
3141 static const char* apzNext_Wait_UnionPatch[] = {
3142 "format",
3143 "wait(void",
3144 (char*)NULL };
3145
3146 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3147 *
3148 * Description of Nodeent_Syntax fix
3149 */
3150 #define NODEENT_SYNTAX_FIXIDX 76
3151 tSCC zNodeent_SyntaxName[] =
3152 "nodeent_syntax";
3153
3154 /*
3155 * File name selection pattern
3156 */
3157 tSCC zNodeent_SyntaxList[] =
3158 "|netdnet/dnetdb.h|";
3159 /*
3160 * Machine/OS name selection pattern
3161 */
3162 #define apzNodeent_SyntaxMachs (const char**)NULL
3163
3164 /*
3165 * content selection pattern - do fix if pattern found
3166 */
3167 tSCC zNodeent_SyntaxSelect0[] =
3168 "char[ \t]*\\*na_addr[ \t]*$";
3169
3170 #define NODEENT_SYNTAX_TEST_CT 1
3171 static tTestDesc aNodeent_SyntaxTests[] = {
3172 { TT_EGREP, zNodeent_SyntaxSelect0, (regex_t*)NULL }, };
3173
3174 /*
3175 * Fix Command Arguments for Nodeent_Syntax
3176 */
3177 static const char* apzNodeent_SyntaxPatch[] = {
3178 "format",
3179 "%0;",
3180 (char*)NULL };
3181
3182 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3183 *
3184 * Description of Osf_Namespace_A fix
3185 */
3186 #define OSF_NAMESPACE_A_FIXIDX 77
3187 tSCC zOsf_Namespace_AName[] =
3188 "osf_namespace_a";
3189
3190 /*
3191 * File name selection pattern
3192 */
3193 tSCC zOsf_Namespace_AList[] =
3194 "|reg_types.h|sys/lc_core.h|";
3195 /*
3196 * Machine/OS name selection pattern
3197 */
3198 #define apzOsf_Namespace_AMachs (const char**)NULL
3199
3200 /*
3201 * perform the 'test' shell command - do fix on success
3202 */
3203 tSCC zOsf_Namespace_ATest0[] =
3204 " -r reg_types.h";
3205 tSCC zOsf_Namespace_ATest1[] =
3206 " -r sys/lc_core.h";
3207 tSCC zOsf_Namespace_ATest2[] =
3208 " -n \"`grep '} regex_t;' reg_types.h`\"";
3209 tSCC zOsf_Namespace_ATest3[] =
3210 " -z \"`grep __regex_t regex.h`\"";
3211
3212 #define OSF_NAMESPACE_A_TEST_CT 4
3213 static tTestDesc aOsf_Namespace_ATests[] = {
3214 { TT_TEST, zOsf_Namespace_ATest0, 0 /* unused */ },
3215 { TT_TEST, zOsf_Namespace_ATest1, 0 /* unused */ },
3216 { TT_TEST, zOsf_Namespace_ATest2, 0 /* unused */ },
3217 { TT_TEST, zOsf_Namespace_ATest3, 0 /* unused */ }, };
3218
3219 /*
3220 * Fix Command Arguments for Osf_Namespace_A
3221 */
3222 static const char* apzOsf_Namespace_APatch[] = {
3223 "format",
3224 "__%0",
3225 "reg(ex|off|match)_t",
3226 (char*)NULL };
3227
3228 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3229 *
3230 * Description of Osf_Namespace_C fix
3231 */
3232 #define OSF_NAMESPACE_C_FIXIDX 78
3233 tSCC zOsf_Namespace_CName[] =
3234 "osf_namespace_c";
3235
3236 /*
3237 * File name selection pattern
3238 */
3239 tSCC zOsf_Namespace_CList[] =
3240 "|regex.h|";
3241 /*
3242 * Machine/OS name selection pattern
3243 */
3244 #define apzOsf_Namespace_CMachs (const char**)NULL
3245
3246 /*
3247 * content selection pattern - do fix if pattern found
3248 */
3249 tSCC zOsf_Namespace_CSelect0[] =
3250 "#include <reg_types.h>.*";
3251
3252 /*
3253 * perform the 'test' shell command - do fix on success
3254 */
3255 tSCC zOsf_Namespace_CTest0[] =
3256 " -r reg_types.h";
3257 tSCC zOsf_Namespace_CTest1[] =
3258 " -r sys/lc_core.h";
3259 tSCC zOsf_Namespace_CTest2[] =
3260 " -n \"`grep '} regex_t;' reg_types.h`\"";
3261 tSCC zOsf_Namespace_CTest3[] =
3262 " -z \"`grep __regex_t regex.h`\"";
3263
3264 #define OSF_NAMESPACE_C_TEST_CT 5
3265 static tTestDesc aOsf_Namespace_CTests[] = {
3266 { TT_TEST, zOsf_Namespace_CTest0, 0 /* unused */ },
3267 { TT_TEST, zOsf_Namespace_CTest1, 0 /* unused */ },
3268 { TT_TEST, zOsf_Namespace_CTest2, 0 /* unused */ },
3269 { TT_TEST, zOsf_Namespace_CTest3, 0 /* unused */ },
3270 { TT_EGREP, zOsf_Namespace_CSelect0, (regex_t*)NULL }, };
3271
3272 /*
3273 * Fix Command Arguments for Osf_Namespace_C
3274 */
3275 static const char* apzOsf_Namespace_CPatch[] = {
3276 "format",
3277 "%0\n\
3278 typedef __regex_t\tregex_t;\n\
3279 typedef __regoff_t\tregoff_t;\n\
3280 typedef __regmatch_t\tregmatch_t;",
3281 (char*)NULL };
3282
3283 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3284 *
3285 * Description of Pthread_Page_Size fix
3286 */
3287 #define PTHREAD_PAGE_SIZE_FIXIDX 79
3288 tSCC zPthread_Page_SizeName[] =
3289 "pthread_page_size";
3290
3291 /*
3292 * File name selection pattern
3293 */
3294 tSCC zPthread_Page_SizeList[] =
3295 "|pthread.h|";
3296 /*
3297 * Machine/OS name selection pattern
3298 */
3299 #define apzPthread_Page_SizeMachs (const char**)NULL
3300
3301 /*
3302 * content selection pattern - do fix if pattern found
3303 */
3304 tSCC zPthread_Page_SizeSelect0[] =
3305 "^int __page_size";
3306
3307 #define PTHREAD_PAGE_SIZE_TEST_CT 1
3308 static tTestDesc aPthread_Page_SizeTests[] = {
3309 { TT_EGREP, zPthread_Page_SizeSelect0, (regex_t*)NULL }, };
3310
3311 /*
3312 * Fix Command Arguments for Pthread_Page_Size
3313 */
3314 static const char* apzPthread_Page_SizePatch[] = {
3315 "format",
3316 "extern %0",
3317 (char*)NULL };
3318
3319 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3320 *
3321 * Description of Read_Ret_Type fix
3322 */
3323 #define READ_RET_TYPE_FIXIDX 80
3324 tSCC zRead_Ret_TypeName[] =
3325 "read_ret_type";
3326
3327 /*
3328 * File name selection pattern
3329 */
3330 tSCC zRead_Ret_TypeList[] =
3331 "|stdio.h|";
3332 /*
3333 * Machine/OS name selection pattern
3334 */
3335 #define apzRead_Ret_TypeMachs (const char**)NULL
3336
3337 /*
3338 * content selection pattern - do fix if pattern found
3339 */
3340 tSCC zRead_Ret_TypeSelect0[] =
3341 "extern int\t.*, fread\\(\\), fwrite\\(\\)";
3342
3343 #define READ_RET_TYPE_TEST_CT 1
3344 static tTestDesc aRead_Ret_TypeTests[] = {
3345 { TT_EGREP, zRead_Ret_TypeSelect0, (regex_t*)NULL }, };
3346
3347 /*
3348 * Fix Command Arguments for Read_Ret_Type
3349 */
3350 static const char* apzRead_Ret_TypePatch[] = {
3351 "format",
3352 "extern unsigned int fread(), fwrite();\n\
3353 %1%2",
3354 "(extern int\t.*), fread\\(\\), fwrite\\(\\)(.*)",
3355 (char*)NULL };
3356
3357 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3358 *
3359 * Description of Rs6000_Double fix
3360 */
3361 #define RS6000_DOUBLE_FIXIDX 81
3362 tSCC zRs6000_DoubleName[] =
3363 "rs6000_double";
3364
3365 /*
3366 * File name selection pattern
3367 */
3368 tSCC zRs6000_DoubleList[] =
3369 "|math.h|";
3370 /*
3371 * Machine/OS name selection pattern
3372 */
3373 #define apzRs6000_DoubleMachs (const char**)NULL
3374
3375 /*
3376 * content selection pattern - do fix if pattern found
3377 */
3378 tSCC zRs6000_DoubleSelect0[] =
3379 "[^a-zA-Z_]class\\(";
3380
3381 #define RS6000_DOUBLE_TEST_CT 1
3382 static tTestDesc aRs6000_DoubleTests[] = {
3383 { TT_EGREP, zRs6000_DoubleSelect0, (regex_t*)NULL }, };
3384
3385 /*
3386 * Fix Command Arguments for Rs6000_Double
3387 */
3388 static const char* apzRs6000_DoublePatch[] = {
3389 "format",
3390 "#ifndef __cplusplus\n\
3391 %0\n\
3392 #endif",
3393 "^.*[^a-zA-Z_]class\\(.*",
3394 (char*)NULL };
3395
3396 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3397 *
3398 * Description of Rs6000_Fchmod fix
3399 */
3400 #define RS6000_FCHMOD_FIXIDX 82
3401 tSCC zRs6000_FchmodName[] =
3402 "rs6000_fchmod";
3403
3404 /*
3405 * File name selection pattern
3406 */
3407 tSCC zRs6000_FchmodList[] =
3408 "|sys/stat.h|";
3409 /*
3410 * Machine/OS name selection pattern
3411 */
3412 #define apzRs6000_FchmodMachs (const char**)NULL
3413
3414 /*
3415 * content selection pattern - do fix if pattern found
3416 */
3417 tSCC zRs6000_FchmodSelect0[] =
3418 "fchmod\\(char \\*";
3419
3420 #define RS6000_FCHMOD_TEST_CT 1
3421 static tTestDesc aRs6000_FchmodTests[] = {
3422 { TT_EGREP, zRs6000_FchmodSelect0, (regex_t*)NULL }, };
3423
3424 /*
3425 * Fix Command Arguments for Rs6000_Fchmod
3426 */
3427 static const char* apzRs6000_FchmodPatch[] = {
3428 "format",
3429 "fchmod(int",
3430 (char*)NULL };
3431
3432 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3433 *
3434 * Description of Rs6000_Param fix
3435 */
3436 #define RS6000_PARAM_FIXIDX 83
3437 tSCC zRs6000_ParamName[] =
3438 "rs6000_param";
3439
3440 /*
3441 * File name selection pattern
3442 */
3443 tSCC zRs6000_ParamList[] =
3444 "|stdio.h|unistd.h|";
3445 /*
3446 * Machine/OS name selection pattern
3447 */
3448 #define apzRs6000_ParamMachs (const char**)NULL
3449
3450 /*
3451 * content selection pattern - do fix if pattern found
3452 */
3453 tSCC zRs6000_ParamSelect0[] =
3454 "rename\\(const char \\*old, const char \\*new\\)";
3455
3456 #define RS6000_PARAM_TEST_CT 1
3457 static tTestDesc aRs6000_ParamTests[] = {
3458 { TT_EGREP, zRs6000_ParamSelect0, (regex_t*)NULL }, };
3459
3460 /*
3461 * Fix Command Arguments for Rs6000_Param
3462 */
3463 static const char* apzRs6000_ParamPatch[] = {
3464 "format",
3465 "rename(const char *_old, const char *_new)",
3466 (char*)NULL };
3467
3468 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3469 *
3470 * Description of Sco_Static_Func fix
3471 */
3472 #define SCO_STATIC_FUNC_FIXIDX 84
3473 tSCC zSco_Static_FuncName[] =
3474 "sco_static_func";
3475
3476 /*
3477 * File name selection pattern
3478 */
3479 tSCC zSco_Static_FuncList[] =
3480 "|sys/stat.h|";
3481 /*
3482 * Machine/OS name selection pattern
3483 */
3484 tSCC* apzSco_Static_FuncMachs[] = {
3485 "i?86-*-sco3.2*",
3486 (const char*)NULL };
3487
3488 /*
3489 * content selection pattern - do fix if pattern found
3490 */
3491 tSCC zSco_Static_FuncSelect0[] =
3492 "^static int";
3493
3494 #define SCO_STATIC_FUNC_TEST_CT 1
3495 static tTestDesc aSco_Static_FuncTests[] = {
3496 { TT_EGREP, zSco_Static_FuncSelect0, (regex_t*)NULL }, };
3497
3498 /*
3499 * Fix Command Arguments for Sco_Static_Func
3500 */
3501 static const char* apzSco_Static_FuncPatch[] = { "sed",
3502 "-e", "/^static int/i\\\n\
3503 #if __cplusplus\\\n\
3504 extern \"C\" {\\\n\
3505 #endif /* __cplusplus */",
3506 "-e", "/^}$/a\\\n\
3507 #if __cplusplus\\\n\
3508 }\\\n\
3509 #endif /* __cplusplus */",
3510 (char*)NULL };
3511
3512 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3513 *
3514 * Description of Sco_Strict_Ansi fix
3515 */
3516 #define SCO_STRICT_ANSI_FIXIDX 85
3517 tSCC zSco_Strict_AnsiName[] =
3518 "sco_strict_ansi";
3519
3520 /*
3521 * File name selection pattern
3522 */
3523 #define zSco_Strict_AnsiList (char*)NULL
3524 /*
3525 * Machine/OS name selection pattern
3526 */
3527 tSCC* apzSco_Strict_AnsiMachs[] = {
3528 "i?86-*-sco3.2*",
3529 (const char*)NULL };
3530
3531 /*
3532 * content selection pattern - do fix if pattern found
3533 */
3534 tSCC zSco_Strict_AnsiSelect0[] =
3535 "^[ \t]*#[ \t]*if.*!__STDC__";
3536
3537 #define SCO_STRICT_ANSI_TEST_CT 1
3538 static tTestDesc aSco_Strict_AnsiTests[] = {
3539 { TT_EGREP, zSco_Strict_AnsiSelect0, (regex_t*)NULL }, };
3540
3541 /*
3542 * Fix Command Arguments for Sco_Strict_Ansi
3543 */
3544 static const char* apzSco_Strict_AnsiPatch[] = {
3545 "format",
3546 "%1defined(__STRICT_ANSI__)%2",
3547 "^([ \t]*#[ \t]*if[ \t].*!)__STDC__(.*)",
3548 (char*)NULL };
3549
3550 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3551 *
3552 * Description of Sco_Utime fix
3553 */
3554 #define SCO_UTIME_FIXIDX 86
3555 tSCC zSco_UtimeName[] =
3556 "sco_utime";
3557
3558 /*
3559 * File name selection pattern
3560 */
3561 tSCC zSco_UtimeList[] =
3562 "|sys/times.h|";
3563 /*
3564 * Machine/OS name selection pattern
3565 */
3566 tSCC* apzSco_UtimeMachs[] = {
3567 "i?86-*-sco3.2v4*",
3568 (const char*)NULL };
3569
3570 /*
3571 * content selection pattern - do fix if pattern found
3572 */
3573 tSCC zSco_UtimeSelect0[] =
3574 "\\(const char \\*, struct utimbuf \\*\\);";
3575
3576 #define SCO_UTIME_TEST_CT 1
3577 static tTestDesc aSco_UtimeTests[] = {
3578 { TT_EGREP, zSco_UtimeSelect0, (regex_t*)NULL }, };
3579
3580 /*
3581 * Fix Command Arguments for Sco_Utime
3582 */
3583 static const char* apzSco_UtimePatch[] = {
3584 "format",
3585 "(const char *, const struct utimbuf *);",
3586 (char*)NULL };
3587
3588 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3589 *
3590 * Description of Statsswtch fix
3591 */
3592 #define STATSSWTCH_FIXIDX 87
3593 tSCC zStatsswtchName[] =
3594 "statsswtch";
3595
3596 /*
3597 * File name selection pattern
3598 */
3599 tSCC zStatsswtchList[] =
3600 "|rpcsvc/rstat.h|";
3601 /*
3602 * Machine/OS name selection pattern
3603 */
3604 #define apzStatsswtchMachs (const char**)NULL
3605
3606 /*
3607 * content selection pattern - do fix if pattern found
3608 */
3609 tSCC zStatsswtchSelect0[] =
3610 "boottime$";
3611
3612 #define STATSSWTCH_TEST_CT 1
3613 static tTestDesc aStatsswtchTests[] = {
3614 { TT_EGREP, zStatsswtchSelect0, (regex_t*)NULL }, };
3615
3616 /*
3617 * Fix Command Arguments for Statsswtch
3618 */
3619 static const char* apzStatsswtchPatch[] = {
3620 "format",
3621 "boottime;",
3622 (char*)NULL };
3623
3624 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3625 *
3626 * Description of Stdio_Stdarg_H fix
3627 */
3628 #define STDIO_STDARG_H_FIXIDX 88
3629 tSCC zStdio_Stdarg_HName[] =
3630 "stdio_stdarg_h";
3631
3632 /*
3633 * File name selection pattern
3634 */
3635 tSCC zStdio_Stdarg_HList[] =
3636 "|stdio.h|";
3637 /*
3638 * Machine/OS name selection pattern
3639 */
3640 #define apzStdio_Stdarg_HMachs (const char**)NULL
3641
3642 /*
3643 * content bypass pattern - skip fix if pattern found
3644 */
3645 tSCC zStdio_Stdarg_HBypass0[] =
3646 "include.*(stdarg.h|machine/ansi.h)";
3647
3648 #define STDIO_STDARG_H_TEST_CT 1
3649 static tTestDesc aStdio_Stdarg_HTests[] = {
3650 { TT_NEGREP, zStdio_Stdarg_HBypass0, (regex_t*)NULL }, };
3651
3652 /*
3653 * Fix Command Arguments for Stdio_Stdarg_H
3654 */
3655 static const char* apzStdio_Stdarg_HPatch[] = {
3656 "wrap",
3657 "#define __need___va_list\n\
3658 #include <stdarg.h>\n",
3659 (char*)NULL };
3660
3661 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3662 *
3663 * Description of Stdio_Va_List fix
3664 */
3665 #define STDIO_VA_LIST_FIXIDX 89
3666 tSCC zStdio_Va_ListName[] =
3667 "stdio_va_list";
3668
3669 /*
3670 * File name selection pattern
3671 */
3672 tSCC zStdio_Va_ListList[] =
3673 "|stdio.h|";
3674 /*
3675 * Machine/OS name selection pattern
3676 */
3677 #define apzStdio_Va_ListMachs (const char**)NULL
3678
3679 /*
3680 * content bypass pattern - skip fix if pattern found
3681 */
3682 tSCC zStdio_Va_ListBypass0[] =
3683 "__gnuc_va_list|_BSD_VA_LIST_";
3684
3685 #define STDIO_VA_LIST_TEST_CT 1
3686 static tTestDesc aStdio_Va_ListTests[] = {
3687 { TT_NEGREP, zStdio_Va_ListBypass0, (regex_t*)NULL }, };
3688
3689 /*
3690 * Fix Command Arguments for Stdio_Va_List
3691 */
3692 static const char* apzStdio_Va_ListPatch[] = { "sed",
3693 "-e", "s@ va_list @ __gnuc_va_list @\n\
3694 s@ va_list)@ __gnuc_va_list)@\n\
3695 s@ _VA_LIST_));@ __gnuc_va_list));@\n\
3696 s@ va_list@ __not_va_list__@\n\
3697 s@\\*va_list@*__not_va_list__@\n\
3698 s@ __va_list)@ __gnuc_va_list)@\n\
3699 s@typedef[ \t]\\(.*\\)[ \t]va_list[ \t]*;@typedef \\1 __not_va_list__;@\n\
3700 s@GNUC_VA_LIST@GNUC_Va_LIST@\n\
3701 s@_NEED___VA_LIST@_NEED___Va_LIST@\n\
3702 s@VA_LIST@DUMMY_VA_LIST@\n\
3703 s@_Va_LIST@_VA_LIST@",
3704 (char*)NULL };
3705
3706 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3707 *
3708 * Description of Struct_File fix
3709 */
3710 #define STRUCT_FILE_FIXIDX 90
3711 tSCC zStruct_FileName[] =
3712 "struct_file";
3713
3714 /*
3715 * File name selection pattern
3716 */
3717 tSCC zStruct_FileList[] =
3718 "|rpc/xdr.h|";
3719 /*
3720 * Machine/OS name selection pattern
3721 */
3722 #define apzStruct_FileMachs (const char**)NULL
3723
3724 /*
3725 * content selection pattern - do fix if pattern found
3726 */
3727 tSCC zStruct_FileSelect0[] =
3728 "^.*xdrstdio_create.*struct __file_s";
3729
3730 #define STRUCT_FILE_TEST_CT 1
3731 static tTestDesc aStruct_FileTests[] = {
3732 { TT_EGREP, zStruct_FileSelect0, (regex_t*)NULL }, };
3733
3734 /*
3735 * Fix Command Arguments for Struct_File
3736 */
3737 static const char* apzStruct_FilePatch[] = {
3738 "format",
3739 "struct __file_s;\n\
3740 %0",
3741 (char*)NULL };
3742
3743 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3744 *
3745 * Description of Struct_Sockaddr fix
3746 */
3747 #define STRUCT_SOCKADDR_FIXIDX 91
3748 tSCC zStruct_SockaddrName[] =
3749 "struct_sockaddr";
3750
3751 /*
3752 * File name selection pattern
3753 */
3754 tSCC zStruct_SockaddrList[] =
3755 "|rpc/auth.h|";
3756 /*
3757 * Machine/OS name selection pattern
3758 */
3759 #define apzStruct_SockaddrMachs (const char**)NULL
3760
3761 /*
3762 * content selection pattern - do fix if pattern found
3763 */
3764 tSCC zStruct_SockaddrSelect0[] =
3765 "^.*authdes_create.*struct sockaddr";
3766
3767 /*
3768 * content bypass pattern - skip fix if pattern found
3769 */
3770 tSCC zStruct_SockaddrBypass0[] =
3771 "<sys/socket.h>";
3772
3773 #define STRUCT_SOCKADDR_TEST_CT 2
3774 static tTestDesc aStruct_SockaddrTests[] = {
3775 { TT_NEGREP, zStruct_SockaddrBypass0, (regex_t*)NULL },
3776 { TT_EGREP, zStruct_SockaddrSelect0, (regex_t*)NULL }, };
3777
3778 /*
3779 * Fix Command Arguments for Struct_Sockaddr
3780 */
3781 static const char* apzStruct_SockaddrPatch[] = {
3782 "format",
3783 "struct sockaddr;\n\
3784 %0",
3785 (char*)NULL };
3786
3787 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3788 *
3789 * Description of Sun_Auth_Proto fix
3790 */
3791 #define SUN_AUTH_PROTO_FIXIDX 92
3792 tSCC zSun_Auth_ProtoName[] =
3793 "sun_auth_proto";
3794
3795 /*
3796 * File name selection pattern
3797 */
3798 tSCC zSun_Auth_ProtoList[] =
3799 "|rpc/auth.h|rpc/clnt.h|rpc/svc.h|rpc/xdr.h|";
3800 /*
3801 * Machine/OS name selection pattern
3802 */
3803 #define apzSun_Auth_ProtoMachs (const char**)NULL
3804
3805 /*
3806 * content selection pattern - do fix if pattern found
3807 */
3808 tSCC zSun_Auth_ProtoSelect0[] =
3809 "\\(\\*[a-z][a-z_]*\\)\\(\\)";
3810
3811 #define SUN_AUTH_PROTO_TEST_CT 1
3812 static tTestDesc aSun_Auth_ProtoTests[] = {
3813 { TT_EGREP, zSun_Auth_ProtoSelect0, (regex_t*)NULL }, };
3814
3815 /*
3816 * Fix Command Arguments for Sun_Auth_Proto
3817 */
3818 static const char* apzSun_Auth_ProtoPatch[] = {
3819 "format",
3820 "#ifdef __cplusplus\n\
3821 %1(...);%2\n\
3822 #else\n\
3823 %1();%2\n\
3824 #endif",
3825 "(.*\\(\\*[a-z][a-z_]*\\))\\(\\);(.*)",
3826 (char*)NULL };
3827
3828 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3829 *
3830 * Description of Sun_Bogus_Ifdef fix
3831 */
3832 #define SUN_BOGUS_IFDEF_FIXIDX 93
3833 tSCC zSun_Bogus_IfdefName[] =
3834 "sun_bogus_ifdef";
3835
3836 /*
3837 * File name selection pattern
3838 */
3839 tSCC zSun_Bogus_IfdefList[] =
3840 "|hsfs/hsfs_spec.h|hsfs/iso_spec.h|";
3841 /*
3842 * Machine/OS name selection pattern
3843 */
3844 #define apzSun_Bogus_IfdefMachs (const char**)NULL
3845
3846 /*
3847 * content selection pattern - do fix if pattern found
3848 */
3849 tSCC zSun_Bogus_IfdefSelect0[] =
3850 "#ifdef(.*\\|\\|.*)";
3851
3852 #define SUN_BOGUS_IFDEF_TEST_CT 1
3853 static tTestDesc aSun_Bogus_IfdefTests[] = {
3854 { TT_EGREP, zSun_Bogus_IfdefSelect0, (regex_t*)NULL }, };
3855
3856 /*
3857 * Fix Command Arguments for Sun_Bogus_Ifdef
3858 */
3859 static const char* apzSun_Bogus_IfdefPatch[] = {
3860 "format",
3861 "#if%1",
3862 (char*)NULL };
3863
3864 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3865 *
3866 * Description of Sun_Catmacro fix
3867 */
3868 #define SUN_CATMACRO_FIXIDX 94
3869 tSCC zSun_CatmacroName[] =
3870 "sun_catmacro";
3871
3872 /*
3873 * File name selection pattern
3874 */
3875 tSCC zSun_CatmacroList[] =
3876 "|pixrect/memvar.h|";
3877 /*
3878 * Machine/OS name selection pattern
3879 */
3880 #define apzSun_CatmacroMachs (const char**)NULL
3881
3882 /*
3883 * content selection pattern - do fix if pattern found
3884 */
3885 tSCC zSun_CatmacroSelect0[] =
3886 "^#define[ \t]+CAT\\(a,b\\).*";
3887
3888 #define SUN_CATMACRO_TEST_CT 1
3889 static tTestDesc aSun_CatmacroTests[] = {
3890 { TT_EGREP, zSun_CatmacroSelect0, (regex_t*)NULL }, };
3891
3892 /*
3893 * Fix Command Arguments for Sun_Catmacro
3894 */
3895 static const char* apzSun_CatmacroPatch[] = {
3896 "format",
3897 "#ifdef __STDC__\n\
3898 # define CAT(a,b) a##b\n\
3899 #else\n\
3900 %0\n\
3901 #endif",
3902 (char*)NULL };
3903
3904 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3905 *
3906 * Description of Sun_Malloc fix
3907 */
3908 #define SUN_MALLOC_FIXIDX 95
3909 tSCC zSun_MallocName[] =
3910 "sun_malloc";
3911
3912 /*
3913 * File name selection pattern
3914 */
3915 tSCC zSun_MallocList[] =
3916 "|malloc.h|";
3917 /*
3918 * Machine/OS name selection pattern
3919 */
3920 #define apzSun_MallocMachs (const char**)NULL
3921 #define SUN_MALLOC_TEST_CT 0
3922 #define aSun_MallocTests (tTestDesc*)NULL
3923
3924 /*
3925 * Fix Command Arguments for Sun_Malloc
3926 */
3927 static const char* apzSun_MallocPatch[] = { "sed",
3928 "-e", "s/typedef[ \t]char \\*\tmalloc_t/typedef void \\*\tmalloc_t/g",
3929 "-e", "s/int[ \t][ \t]*free/void\tfree/g",
3930 "-e", "s/char\\([ \t]*\\*[ \t]*malloc\\)/void\\1/g",
3931 "-e", "s/char\\([ \t]*\\*[ \t]*realloc\\)/void\\1/g",
3932 "-e", "s/char\\([ \t]*\\*[ \t]*calloc\\)/void\\1/g",
3933 (char*)NULL };
3934
3935 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3936 *
3937 * Description of Sun_Rusers_Semi fix
3938 */
3939 #define SUN_RUSERS_SEMI_FIXIDX 96
3940 tSCC zSun_Rusers_SemiName[] =
3941 "sun_rusers_semi";
3942
3943 /*
3944 * File name selection pattern
3945 */
3946 tSCC zSun_Rusers_SemiList[] =
3947 "|rpcsvc/rusers.h|";
3948 /*
3949 * Machine/OS name selection pattern
3950 */
3951 #define apzSun_Rusers_SemiMachs (const char**)NULL
3952
3953 /*
3954 * content selection pattern - do fix if pattern found
3955 */
3956 tSCC zSun_Rusers_SemiSelect0[] =
3957 "_cnt$";
3958
3959 #define SUN_RUSERS_SEMI_TEST_CT 1
3960 static tTestDesc aSun_Rusers_SemiTests[] = {
3961 { TT_EGREP, zSun_Rusers_SemiSelect0, (regex_t*)NULL }, };
3962
3963 /*
3964 * Fix Command Arguments for Sun_Rusers_Semi
3965 */
3966 static const char* apzSun_Rusers_SemiPatch[] = { "sed",
3967 "-e", "/^struct/,/^};/s/_cnt$/_cnt;/",
3968 (char*)NULL };
3969
3970 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3971 *
3972 * Description of Sun_Signal fix
3973 */
3974 #define SUN_SIGNAL_FIXIDX 97
3975 tSCC zSun_SignalName[] =
3976 "sun_signal";
3977
3978 /*
3979 * File name selection pattern
3980 */
3981 tSCC zSun_SignalList[] =
3982 "|sys/signal.h|signal.h|";
3983 /*
3984 * Machine/OS name selection pattern
3985 */
3986 #define apzSun_SignalMachs (const char**)NULL
3987
3988 /*
3989 * content selection pattern - do fix if pattern found
3990 */
3991 tSCC zSun_SignalSelect0[] =
3992 "^void\t\\(\\*signal\\(\\)\\)\\(\\);.*";
3993
3994 #define SUN_SIGNAL_TEST_CT 1
3995 static tTestDesc aSun_SignalTests[] = {
3996 { TT_EGREP, zSun_SignalSelect0, (regex_t*)NULL }, };
3997
3998 /*
3999 * Fix Command Arguments for Sun_Signal
4000 */
4001 static const char* apzSun_SignalPatch[] = {
4002 "format",
4003 "#ifdef __cplusplus\n\
4004 void\t(*signal(...))(...);\n\
4005 #else\n\
4006 %0\n\
4007 #endif",
4008 (char*)NULL };
4009
4010 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4011 *
4012 * Description of Sunos_Matherr_Decl fix
4013 */
4014 #define SUNOS_MATHERR_DECL_FIXIDX 98
4015 tSCC zSunos_Matherr_DeclName[] =
4016 "sunos_matherr_decl";
4017
4018 /*
4019 * File name selection pattern
4020 */
4021 tSCC zSunos_Matherr_DeclList[] =
4022 "|math.h|";
4023 /*
4024 * Machine/OS name selection pattern
4025 */
4026 #define apzSunos_Matherr_DeclMachs (const char**)NULL
4027
4028 /*
4029 * content selection pattern - do fix if pattern found
4030 */
4031 tSCC zSunos_Matherr_DeclSelect0[] =
4032 "matherr";
4033
4034 /*
4035 * content bypass pattern - skip fix if pattern found
4036 */
4037 tSCC zSunos_Matherr_DeclBypass0[] =
4038 "matherr.*(struct exception|__MATH_EXCEPTION)";
4039
4040 #define SUNOS_MATHERR_DECL_TEST_CT 2
4041 static tTestDesc aSunos_Matherr_DeclTests[] = {
4042 { TT_NEGREP, zSunos_Matherr_DeclBypass0, (regex_t*)NULL },
4043 { TT_EGREP, zSunos_Matherr_DeclSelect0, (regex_t*)NULL }, };
4044
4045 /*
4046 * Fix Command Arguments for Sunos_Matherr_Decl
4047 */
4048 static const char* apzSunos_Matherr_DeclPatch[] = {
4049 "wrap",
4050 "struct exception;\n",
4051 (char*)NULL };
4052
4053 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4054 *
4055 * Description of Sunos_Strlen fix
4056 */
4057 #define SUNOS_STRLEN_FIXIDX 99
4058 tSCC zSunos_StrlenName[] =
4059 "sunos_strlen";
4060
4061 /*
4062 * File name selection pattern
4063 */
4064 tSCC zSunos_StrlenList[] =
4065 "|strings.h|";
4066 /*
4067 * Machine/OS name selection pattern
4068 */
4069 #define apzSunos_StrlenMachs (const char**)NULL
4070
4071 /*
4072 * content selection pattern - do fix if pattern found
4073 */
4074 tSCC zSunos_StrlenSelect0[] =
4075 "int[ \t]*strlen\\(\\);(.*)";
4076
4077 #define SUNOS_STRLEN_TEST_CT 1
4078 static tTestDesc aSunos_StrlenTests[] = {
4079 { TT_EGREP, zSunos_StrlenSelect0, (regex_t*)NULL }, };
4080
4081 /*
4082 * Fix Command Arguments for Sunos_Strlen
4083 */
4084 static const char* apzSunos_StrlenPatch[] = {
4085 "format",
4086 "__SIZE_TYPE__ strlen();%1",
4087 (char*)NULL };
4088
4089 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4090 *
4091 * Description of Svr4__P fix
4092 */
4093 #define SVR4__P_FIXIDX 100
4094 tSCC zSvr4__PName[] =
4095 "svr4__p";
4096
4097 /*
4098 * File name selection pattern
4099 */
4100 tSCC zSvr4__PList[] =
4101 "|math.h|floatingpoint.h|";
4102 /*
4103 * Machine/OS name selection pattern
4104 */
4105 #define apzSvr4__PMachs (const char**)NULL
4106
4107 /*
4108 * content selection pattern - do fix if pattern found
4109 */
4110 tSCC zSvr4__PSelect0[] =
4111 "^#define[ \t]+__P.*";
4112
4113 #define SVR4__P_TEST_CT 1
4114 static tTestDesc aSvr4__PTests[] = {
4115 { TT_EGREP, zSvr4__PSelect0, (regex_t*)NULL }, };
4116
4117 /*
4118 * Fix Command Arguments for Svr4__P
4119 */
4120 static const char* apzSvr4__PPatch[] = {
4121 "format",
4122 "#ifndef __P\n\
4123 %0\n\
4124 #endif",
4125 (char*)NULL };
4126
4127 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4128 *
4129 * Description of Svr4_Getcwd fix
4130 */
4131 #define SVR4_GETCWD_FIXIDX 101
4132 tSCC zSvr4_GetcwdName[] =
4133 "svr4_getcwd";
4134
4135 /*
4136 * File name selection pattern
4137 */
4138 tSCC zSvr4_GetcwdList[] =
4139 "|stdlib.h|unistd.h|prototypes.h|";
4140 /*
4141 * Machine/OS name selection pattern
4142 */
4143 #define apzSvr4_GetcwdMachs (const char**)NULL
4144
4145 /*
4146 * content selection pattern - do fix if pattern found
4147 */
4148 tSCC zSvr4_GetcwdSelect0[] =
4149 "getcwd\\(char \\*, int\\)";
4150
4151 #define SVR4_GETCWD_TEST_CT 1
4152 static tTestDesc aSvr4_GetcwdTests[] = {
4153 { TT_EGREP, zSvr4_GetcwdSelect0, (regex_t*)NULL }, };
4154
4155 /*
4156 * Fix Command Arguments for Svr4_Getcwd
4157 */
4158 static const char* apzSvr4_GetcwdPatch[] = {
4159 "format",
4160 "getcwd(char *, size_t)",
4161 (char*)NULL };
4162
4163 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4164 *
4165 * Description of Svr4_Profil fix
4166 */
4167 #define SVR4_PROFIL_FIXIDX 102
4168 tSCC zSvr4_ProfilName[] =
4169 "svr4_profil";
4170
4171 /*
4172 * File name selection pattern
4173 */
4174 tSCC zSvr4_ProfilList[] =
4175 "|stdlib.h|unistd.h|";
4176 /*
4177 * Machine/OS name selection pattern
4178 */
4179 #define apzSvr4_ProfilMachs (const char**)NULL
4180
4181 /*
4182 * content selection pattern - do fix if pattern found
4183 */
4184 tSCC zSvr4_ProfilSelect0[] =
4185 "profil\\(unsigned short \\*, unsigned int, unsigned int, unsigned int\\)";
4186
4187 #define SVR4_PROFIL_TEST_CT 1
4188 static tTestDesc aSvr4_ProfilTests[] = {
4189 { TT_EGREP, zSvr4_ProfilSelect0, (regex_t*)NULL }, };
4190
4191 /*
4192 * Fix Command Arguments for Svr4_Profil
4193 */
4194 static const char* apzSvr4_ProfilPatch[] = {
4195 "format",
4196 "profil(unsigned short *, size_t, int, unsigned int)",
4197 (char*)NULL };
4198
4199 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4200 *
4201 * Description of Gnu_Types fix
4202 */
4203 #define GNU_TYPES_FIXIDX 103
4204 tSCC zGnu_TypesName[] =
4205 "gnu_types";
4206
4207 /*
4208 * File name selection pattern
4209 */
4210 tSCC zGnu_TypesList[] =
4211 "|sys/types.h|stdlib.h|sys/stdtypes.h|stddef.h|memory.h|unistd.h|";
4212 /*
4213 * Machine/OS name selection pattern
4214 */
4215 #define apzGnu_TypesMachs (const char**)NULL
4216
4217 /*
4218 * content selection pattern - do fix if pattern found
4219 */
4220 tSCC zGnu_TypesSelect0[] =
4221 "^[ \t]*typedef[ \t]+.*[ \t](ptrdiff|size|wchar)_t;";
4222
4223 /*
4224 * content bypass pattern - skip fix if pattern found
4225 */
4226 tSCC zGnu_TypesBypass0[] =
4227 "_GCC_(PTRDIFF|SIZE|WCHAR)_T";
4228
4229 #define GNU_TYPES_TEST_CT 2
4230 static tTestDesc aGnu_TypesTests[] = {
4231 { TT_NEGREP, zGnu_TypesBypass0, (regex_t*)NULL },
4232 { TT_EGREP, zGnu_TypesSelect0, (regex_t*)NULL }, };
4233
4234 /*
4235 * Fix Command Arguments for Gnu_Types
4236 */
4237 static const char* apzGnu_TypesPatch[] = {
4238 "gnu_type",
4239 (char*)NULL };
4240
4241 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4242 *
4243 * Description of Sysv68_String fix
4244 */
4245 #define SYSV68_STRING_FIXIDX 104
4246 tSCC zSysv68_StringName[] =
4247 "sysv68_string";
4248
4249 /*
4250 * File name selection pattern
4251 */
4252 tSCC zSysv68_StringList[] =
4253 "|testing.h|string.h|";
4254 /*
4255 * Machine/OS name selection pattern
4256 */
4257 #define apzSysv68_StringMachs (const char**)NULL
4258 #define SYSV68_STRING_TEST_CT 0
4259 #define aSysv68_StringTests (tTestDesc*)NULL
4260
4261 /*
4262 * Fix Command Arguments for Sysv68_String
4263 */
4264 static const char* apzSysv68_StringPatch[] = { "sed",
4265 "-e", "s/extern[ \t]*int[ \t]*strlen();/extern unsigned int strlen();/",
4266 "-e", "s/extern[ \t]*int[ \t]*ffs[ \t]*(long);/extern int ffs(int);/",
4267 "-e", "s/strdup(char \\*s1);/strdup(const char *s1);/",
4268 "-e", "/^extern char$/N",
4269 "-e", "s/^extern char\\(\\n\t\\*memccpy(),\\)$/extern void\\1/",
4270 "-e", "/^extern int$/N",
4271 "-e", "s/^extern int\\(\\n\tstrlen(),\\)/extern size_t\\1/",
4272 "-e", "/^\tstrncmp(),$/N",
4273 "-e", "s/^\\(\tstrncmp()\\),\\n\\(\tstrlen(),\\)$/\\1;\\\n\
4274 extern unsigned int\\\n\
4275 \\2/",
4276 (char*)NULL };
4277
4278 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4279 *
4280 * Description of Sysz_Stdlib_For_Sun fix
4281 */
4282 #define SYSZ_STDLIB_FOR_SUN_FIXIDX 105
4283 tSCC zSysz_Stdlib_For_SunName[] =
4284 "sysz_stdlib_for_sun";
4285
4286 /*
4287 * File name selection pattern
4288 */
4289 tSCC zSysz_Stdlib_For_SunList[] =
4290 "|stdlib.h|";
4291 /*
4292 * Machine/OS name selection pattern
4293 */
4294 #define apzSysz_Stdlib_For_SunMachs (const char**)NULL
4295
4296 /*
4297 * content selection pattern - do fix if pattern found
4298 */
4299 tSCC zSysz_Stdlib_For_SunSelect0[] =
4300 "char[ \t]*\\*[ \t]*(calloc|malloc|realloc|bsearch)[ \t]*\\(";
4301
4302 #define SYSZ_STDLIB_FOR_SUN_TEST_CT 1
4303 static tTestDesc aSysz_Stdlib_For_SunTests[] = {
4304 { TT_EGREP, zSysz_Stdlib_For_SunSelect0, (regex_t*)NULL }, };
4305
4306 /*
4307 * Fix Command Arguments for Sysz_Stdlib_For_Sun
4308 */
4309 static const char* apzSysz_Stdlib_For_SunPatch[] = {
4310 "format",
4311 "void *\t%1(",
4312 (char*)NULL };
4313
4314 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4315 *
4316 * Description of Tinfo_Cplusplus fix
4317 */
4318 #define TINFO_CPLUSPLUS_FIXIDX 106
4319 tSCC zTinfo_CplusplusName[] =
4320 "tinfo_cplusplus";
4321
4322 /*
4323 * File name selection pattern
4324 */
4325 tSCC zTinfo_CplusplusList[] =
4326 "|tinfo.h|";
4327 /*
4328 * Machine/OS name selection pattern
4329 */
4330 #define apzTinfo_CplusplusMachs (const char**)NULL
4331
4332 /*
4333 * content selection pattern - do fix if pattern found
4334 */
4335 tSCC zTinfo_CplusplusSelect0[] =
4336 "[ \t]_cplusplus";
4337
4338 #define TINFO_CPLUSPLUS_TEST_CT 1
4339 static tTestDesc aTinfo_CplusplusTests[] = {
4340 { TT_EGREP, zTinfo_CplusplusSelect0, (regex_t*)NULL }, };
4341
4342 /*
4343 * Fix Command Arguments for Tinfo_Cplusplus
4344 */
4345 static const char* apzTinfo_CplusplusPatch[] = {
4346 "format",
4347 " __cplusplus",
4348 (char*)NULL };
4349
4350 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4351 *
4352 * Description of Ultrix_Atof_Param fix
4353 */
4354 #define ULTRIX_ATOF_PARAM_FIXIDX 107
4355 tSCC zUltrix_Atof_ParamName[] =
4356 "ultrix_atof_param";
4357
4358 /*
4359 * File name selection pattern
4360 */
4361 tSCC zUltrix_Atof_ParamList[] =
4362 "|math.h|";
4363 /*
4364 * Machine/OS name selection pattern
4365 */
4366 #define apzUltrix_Atof_ParamMachs (const char**)NULL
4367
4368 /*
4369 * content selection pattern - do fix if pattern found
4370 */
4371 tSCC zUltrix_Atof_ParamSelect0[] =
4372 "atof\\([ \t]*char";
4373
4374 #define ULTRIX_ATOF_PARAM_TEST_CT 1
4375 static tTestDesc aUltrix_Atof_ParamTests[] = {
4376 { TT_EGREP, zUltrix_Atof_ParamSelect0, (regex_t*)NULL }, };
4377
4378 /*
4379 * Fix Command Arguments for Ultrix_Atof_Param
4380 */
4381 static const char* apzUltrix_Atof_ParamPatch[] = {
4382 "format",
4383 "atof(const char",
4384 (char*)NULL };
4385
4386 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4387 *
4388 * Description of Ultrix_Const fix
4389 */
4390 #define ULTRIX_CONST_FIXIDX 108
4391 tSCC zUltrix_ConstName[] =
4392 "ultrix_const";
4393
4394 /*
4395 * File name selection pattern
4396 */
4397 tSCC zUltrix_ConstList[] =
4398 "|stdio.h|";
4399 /*
4400 * Machine/OS name selection pattern
4401 */
4402 #define apzUltrix_ConstMachs (const char**)NULL
4403
4404 /*
4405 * content selection pattern - do fix if pattern found
4406 */
4407 tSCC zUltrix_ConstSelect0[] =
4408 "perror\\( char \\*";
4409
4410 #define ULTRIX_CONST_TEST_CT 1
4411 static tTestDesc aUltrix_ConstTests[] = {
4412 { TT_EGREP, zUltrix_ConstSelect0, (regex_t*)NULL }, };
4413
4414 /*
4415 * Fix Command Arguments for Ultrix_Const
4416 */
4417 static const char* apzUltrix_ConstPatch[] = {
4418 "format",
4419 "%1 const %3 *__",
4420 "([ \t*](perror|fputs|fwrite|scanf|fscanf)\\(.*)[ \t]+(char|void) \\*__",
4421 (char*)NULL };
4422
4423 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4424 *
4425 * Description of Ultrix_Const2 fix
4426 */
4427 #define ULTRIX_CONST2_FIXIDX 109
4428 tSCC zUltrix_Const2Name[] =
4429 "ultrix_const2";
4430
4431 /*
4432 * File name selection pattern
4433 */
4434 tSCC zUltrix_Const2List[] =
4435 "|stdio.h|";
4436 /*
4437 * Machine/OS name selection pattern
4438 */
4439 #define apzUltrix_Const2Machs (const char**)NULL
4440
4441 /*
4442 * content selection pattern - do fix if pattern found
4443 */
4444 tSCC zUltrix_Const2Select0[] =
4445 "\\*fopen\\( char \\*";
4446
4447 #define ULTRIX_CONST2_TEST_CT 1
4448 static tTestDesc aUltrix_Const2Tests[] = {
4449 { TT_EGREP, zUltrix_Const2Select0, (regex_t*)NULL }, };
4450
4451 /*
4452 * Fix Command Arguments for Ultrix_Const2
4453 */
4454 static const char* apzUltrix_Const2Patch[] = {
4455 "format",
4456 "%1( const char *%3, const char *",
4457 "([ \t*](fopen|sscanf|popen|tempnam))\\([ \t]*char[ \t]*\\*([^,]*),[ \t]*char[ \t]*\\*[ \t]*",
4458 (char*)NULL };
4459
4460 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4461 *
4462 * Description of Ultrix_Fix_Fixproto fix
4463 */
4464 #define ULTRIX_FIX_FIXPROTO_FIXIDX 110
4465 tSCC zUltrix_Fix_FixprotoName[] =
4466 "ultrix_fix_fixproto";
4467
4468 /*
4469 * File name selection pattern
4470 */
4471 tSCC zUltrix_Fix_FixprotoList[] =
4472 "|sys/utsname.h|";
4473 /*
4474 * Machine/OS name selection pattern
4475 */
4476 #define apzUltrix_Fix_FixprotoMachs (const char**)NULL
4477
4478 /*
4479 * content selection pattern - do fix if pattern found
4480 */
4481 tSCC zUltrix_Fix_FixprotoSelect0[] =
4482 "ULTRIX";
4483
4484 #define ULTRIX_FIX_FIXPROTO_TEST_CT 1
4485 static tTestDesc aUltrix_Fix_FixprotoTests[] = {
4486 { TT_EGREP, zUltrix_Fix_FixprotoSelect0, (regex_t*)NULL }, };
4487
4488 /*
4489 * Fix Command Arguments for Ultrix_Fix_Fixproto
4490 */
4491 static const char* apzUltrix_Fix_FixprotoPatch[] = {
4492 "format",
4493 "struct utsname;\n\
4494 %0",
4495 "^[ \t]*extern[ \t]*int[ \t]*uname\\(\\);",
4496 (char*)NULL };
4497
4498 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4499 *
4500 * Description of Ultrix_Ifdef fix
4501 */
4502 #define ULTRIX_IFDEF_FIXIDX 111
4503 tSCC zUltrix_IfdefName[] =
4504 "ultrix_ifdef";
4505
4506 /*
4507 * File name selection pattern
4508 */
4509 tSCC zUltrix_IfdefList[] =
4510 "|sys/file.h|";
4511 /*
4512 * Machine/OS name selection pattern
4513 */
4514 #define apzUltrix_IfdefMachs (const char**)NULL
4515
4516 /*
4517 * content selection pattern - do fix if pattern found
4518 */
4519 tSCC zUltrix_IfdefSelect0[] =
4520 "^#ifdef KERNEL[ \t]+&&";
4521
4522 #define ULTRIX_IFDEF_TEST_CT 1
4523 static tTestDesc aUltrix_IfdefTests[] = {
4524 { TT_EGREP, zUltrix_IfdefSelect0, (regex_t*)NULL }, };
4525
4526 /*
4527 * Fix Command Arguments for Ultrix_Ifdef
4528 */
4529 static const char* apzUltrix_IfdefPatch[] = {
4530 "format",
4531 "#if defined(KERNEL) &&",
4532 (char*)NULL };
4533
4534 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4535 *
4536 * Description of Ultrix_Math_Ifdef fix
4537 */
4538 #define ULTRIX_MATH_IFDEF_FIXIDX 112
4539 tSCC zUltrix_Math_IfdefName[] =
4540 "ultrix_math_ifdef";
4541
4542 /*
4543 * File name selection pattern
4544 */
4545 tSCC zUltrix_Math_IfdefList[] =
4546 "|sys/limits.h|float.h|math.h|";
4547 /*
4548 * Machine/OS name selection pattern
4549 */
4550 #define apzUltrix_Math_IfdefMachs (const char**)NULL
4551
4552 /*
4553 * content selection pattern - do fix if pattern found
4554 */
4555 tSCC zUltrix_Math_IfdefSelect0[] =
4556 "^(#if.*)\\|\\|[ \t]+CC\\$[a-z]+";
4557
4558 #define ULTRIX_MATH_IFDEF_TEST_CT 1
4559 static tTestDesc aUltrix_Math_IfdefTests[] = {
4560 { TT_EGREP, zUltrix_Math_IfdefSelect0, (regex_t*)NULL }, };
4561
4562 /*
4563 * Fix Command Arguments for Ultrix_Math_Ifdef
4564 */
4565 static const char* apzUltrix_Math_IfdefPatch[] = {
4566 "format",
4567 "%1",
4568 (char*)NULL };
4569
4570 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4571 *
4572 * Description of Ultrix_Nested_Ioctl fix
4573 */
4574 #define ULTRIX_NESTED_IOCTL_FIXIDX 113
4575 tSCC zUltrix_Nested_IoctlName[] =
4576 "ultrix_nested_ioctl";
4577
4578 /*
4579 * File name selection pattern
4580 */
4581 tSCC zUltrix_Nested_IoctlList[] =
4582 "|sys/ioctl.h|";
4583 /*
4584 * Machine/OS name selection pattern
4585 */
4586 #define apzUltrix_Nested_IoctlMachs (const char**)NULL
4587
4588 /*
4589 * content selection pattern - do fix if pattern found
4590 */
4591 tSCC zUltrix_Nested_IoctlSelect0[] =
4592 "^/\\* #define SIOCSCREEN";
4593
4594 #define ULTRIX_NESTED_IOCTL_TEST_CT 1
4595 static tTestDesc aUltrix_Nested_IoctlTests[] = {
4596 { TT_EGREP, zUltrix_Nested_IoctlSelect0, (regex_t*)NULL }, };
4597
4598 /*
4599 * Fix Command Arguments for Ultrix_Nested_Ioctl
4600 */
4601 static const char* apzUltrix_Nested_IoctlPatch[] = { "sed",
4602 "-e", "/^\\/\\* #define SIOCSCREEN/s@/\\* screend@*//* screend@",
4603 (char*)NULL };
4604
4605 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4606 *
4607 * Description of Ultrix_Nested_Svc fix
4608 */
4609 #define ULTRIX_NESTED_SVC_FIXIDX 114
4610 tSCC zUltrix_Nested_SvcName[] =
4611 "ultrix_nested_svc";
4612
4613 /*
4614 * File name selection pattern
4615 */
4616 tSCC zUltrix_Nested_SvcList[] =
4617 "|rpc/svc.h|";
4618 /*
4619 * Machine/OS name selection pattern
4620 */
4621 #define apzUltrix_Nested_SvcMachs (const char**)NULL
4622
4623 /*
4624 * content selection pattern - do fix if pattern found
4625 */
4626 tSCC zUltrix_Nested_SvcSelect0[] =
4627 "^ \\*[ \t]*int protocol; */\\*";
4628
4629 #define ULTRIX_NESTED_SVC_TEST_CT 1
4630 static tTestDesc aUltrix_Nested_SvcTests[] = {
4631 { TT_EGREP, zUltrix_Nested_SvcSelect0, (regex_t*)NULL }, };
4632
4633 /*
4634 * Fix Command Arguments for Ultrix_Nested_Svc
4635 */
4636 static const char* apzUltrix_Nested_SvcPatch[] = { "sed",
4637 "-e", "s@^\\( \\*\tint protocol; \\)/\\*@\\1*/ /*@",
4638 (char*)NULL };
4639
4640 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4641 *
4642 * Description of Ultrix_Stat fix
4643 */
4644 #define ULTRIX_STAT_FIXIDX 115
4645 tSCC zUltrix_StatName[] =
4646 "ultrix_stat";
4647
4648 /*
4649 * File name selection pattern
4650 */
4651 tSCC zUltrix_StatList[] =
4652 "|sys/stat.h|";
4653 /*
4654 * Machine/OS name selection pattern
4655 */
4656 #define apzUltrix_StatMachs (const char**)NULL
4657
4658 /*
4659 * content selection pattern - do fix if pattern found
4660 */
4661 tSCC zUltrix_StatSelect0[] =
4662 "@\\(#\\)stat\\.h.*6\\.1.*\\(ULTRIX\\)";
4663
4664 #define ULTRIX_STAT_TEST_CT 1
4665 static tTestDesc aUltrix_StatTests[] = {
4666 { TT_EGREP, zUltrix_StatSelect0, (regex_t*)NULL }, };
4667
4668 /*
4669 * Fix Command Arguments for Ultrix_Stat
4670 */
4671 static const char* apzUltrix_StatPatch[] = { "sed",
4672 "-e", "/^#define[ \t]S_IFPORT[ \t]*S_IFIFO$/a\\\n\
4673 \\\n\
4674 /* macro to test for symbolic link */\\\n\
4675 #define S_ISLNK(mode) (((mode) & S_IFMT) == S_IFLNK)\\\n\
4676 \n",
4677 "-e", "/^[ \t]*fstat(),$/a\\\n\
4678 \tlstat(),\n",
4679 (char*)NULL };
4680
4681 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4682 *
4683 * Description of Ultrix_Static fix
4684 */
4685 #define ULTRIX_STATIC_FIXIDX 116
4686 tSCC zUltrix_StaticName[] =
4687 "ultrix_static";
4688
4689 /*
4690 * File name selection pattern
4691 */
4692 tSCC zUltrix_StaticList[] =
4693 "|machine/cpu.h|";
4694 /*
4695 * Machine/OS name selection pattern
4696 */
4697 #define apzUltrix_StaticMachs (const char**)NULL
4698
4699 /*
4700 * content selection pattern - do fix if pattern found
4701 */
4702 tSCC zUltrix_StaticSelect0[] =
4703 "#include \"r[34]_cpu";
4704
4705 #define ULTRIX_STATIC_TEST_CT 1
4706 static tTestDesc aUltrix_StaticTests[] = {
4707 { TT_EGREP, zUltrix_StaticSelect0, (regex_t*)NULL }, };
4708
4709 /*
4710 * Fix Command Arguments for Ultrix_Static
4711 */
4712 static const char* apzUltrix_StaticPatch[] = { "sed",
4713 "-e", "s/^static struct tlb_pid_state/struct tlb_pid_state/",
4714 "-e", "s/^#include \"r3_cpu\\.h\"$/#include <machine\\/r3_cpu\\.h>/",
4715 "-e", "s/^#include \"r4_cpu\\.h\"$/#include <machine\\/r4_cpu\\.h>/",
4716 (char*)NULL };
4717
4718 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4719 *
4720 * Description of Ultrix_Strings fix
4721 */
4722 #define ULTRIX_STRINGS_FIXIDX 117
4723 tSCC zUltrix_StringsName[] =
4724 "ultrix_strings";
4725
4726 /*
4727 * File name selection pattern
4728 */
4729 tSCC zUltrix_StringsList[] =
4730 "|strings.h|";
4731 /*
4732 * Machine/OS name selection pattern
4733 */
4734 #define apzUltrix_StringsMachs (const char**)NULL
4735
4736 /*
4737 * content selection pattern - do fix if pattern found
4738 */
4739 tSCC zUltrix_StringsSelect0[] =
4740 "@\\(#\\)strings\\.h.*6\\.1.*\\(ULTRIX\\)";
4741
4742 #define ULTRIX_STRINGS_TEST_CT 1
4743 static tTestDesc aUltrix_StringsTests[] = {
4744 { TT_EGREP, zUltrix_StringsSelect0, (regex_t*)NULL }, };
4745
4746 /*
4747 * Fix Command Arguments for Ultrix_Strings
4748 */
4749 static const char* apzUltrix_StringsPatch[] = {
4750 "wrap",
4751 (char*)NULL };
4752
4753 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4754 *
4755 * Description of Undefine_Null fix
4756 */
4757 #define UNDEFINE_NULL_FIXIDX 118
4758 tSCC zUndefine_NullName[] =
4759 "undefine_null";
4760
4761 /*
4762 * File name selection pattern
4763 */
4764 #define zUndefine_NullList (char*)NULL
4765 /*
4766 * Machine/OS name selection pattern
4767 */
4768 #define apzUndefine_NullMachs (const char**)NULL
4769
4770 /*
4771 * content selection pattern - do fix if pattern found
4772 */
4773 tSCC zUndefine_NullSelect0[] =
4774 "^#[ \t]*define[ \t]+NULL[ \t]";
4775
4776 /*
4777 * content bypass pattern - skip fix if pattern found
4778 */
4779 tSCC zUndefine_NullBypass0[] =
4780 "#[ \t]*(ifn|un)def[ \t]+NULL($|[ \t\r])";
4781
4782 #define UNDEFINE_NULL_TEST_CT 2
4783 static tTestDesc aUndefine_NullTests[] = {
4784 { TT_NEGREP, zUndefine_NullBypass0, (regex_t*)NULL },
4785 { TT_EGREP, zUndefine_NullSelect0, (regex_t*)NULL }, };
4786
4787 /*
4788 * Fix Command Arguments for Undefine_Null
4789 */
4790 static const char* apzUndefine_NullPatch[] = {
4791 "format",
4792 "#ifndef NULL%2\n\
4793 #define NULL%1%2\n\
4794 #endif%2\n",
4795 "^#[ \t]*define[ \t]*[ \t]NULL([^\r\n\
4796 ]+)([\r]*)\n",
4797 (char*)NULL };
4798
4799 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4800 *
4801 * Description of Uw7_Byteorder_Fix fix
4802 */
4803 #define UW7_BYTEORDER_FIX_FIXIDX 119
4804 tSCC zUw7_Byteorder_FixName[] =
4805 "uw7_byteorder_fix";
4806
4807 /*
4808 * File name selection pattern
4809 */
4810 tSCC zUw7_Byteorder_FixList[] =
4811 "|arpa/inet.h|";
4812 /*
4813 * Machine/OS name selection pattern
4814 */
4815 tSCC* apzUw7_Byteorder_FixMachs[] = {
4816 "*-*-sysv4*",
4817 "i?86-*-sysv5*",
4818 "i?86-*-udk*",
4819 "i?86-*-solaris2.[0-4]",
4820 "powerpcle-*-solaris2.[0-4]",
4821 "sparc-*-solaris2.[0-4]",
4822 (const char*)NULL };
4823
4824 /*
4825 * content selection pattern - do fix if pattern found
4826 */
4827 tSCC zUw7_Byteorder_FixSelect0[] =
4828 "in_port_t";
4829
4830 /*
4831 * perform the 'test' shell command - do fix on success
4832 */
4833 tSCC zUw7_Byteorder_FixTest0[] =
4834 "-f $DESTDIR/sys/byteorder.h";
4835
4836 #define UW7_BYTEORDER_FIX_TEST_CT 2
4837 static tTestDesc aUw7_Byteorder_FixTests[] = {
4838 { TT_TEST, zUw7_Byteorder_FixTest0, 0 /* unused */ },
4839 { TT_EGREP, zUw7_Byteorder_FixSelect0, (regex_t*)NULL }, };
4840
4841 /*
4842 * Fix Command Arguments for Uw7_Byteorder_Fix
4843 */
4844 static const char* apzUw7_Byteorder_FixPatch[] = {
4845 "format",
4846 "",
4847 "^extern.*(htons|ntohs).*\\(in_port_t\\).*\n",
4848 (char*)NULL };
4849
4850 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4851 *
4852 * Description of Va_I960_Macro fix
4853 */
4854 #define VA_I960_MACRO_FIXIDX 120
4855 tSCC zVa_I960_MacroName[] =
4856 "va_i960_macro";
4857
4858 /*
4859 * File name selection pattern
4860 */
4861 tSCC zVa_I960_MacroList[] =
4862 "|arch/i960/archI960.h|";
4863 /*
4864 * Machine/OS name selection pattern
4865 */
4866 #define apzVa_I960_MacroMachs (const char**)NULL
4867
4868 /*
4869 * content selection pattern - do fix if pattern found
4870 */
4871 tSCC zVa_I960_MacroSelect0[] =
4872 "__(vsiz|vali|vpad|alignof__)";
4873
4874 #define VA_I960_MACRO_TEST_CT 1
4875 static tTestDesc aVa_I960_MacroTests[] = {
4876 { TT_EGREP, zVa_I960_MacroSelect0, (regex_t*)NULL }, };
4877
4878 /*
4879 * Fix Command Arguments for Va_I960_Macro
4880 */
4881 static const char* apzVa_I960_MacroPatch[] = {
4882 "format",
4883 "__vx%1",
4884 (char*)NULL };
4885
4886 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4887 *
4888 * Description of Void_Null fix
4889 */
4890 #define VOID_NULL_FIXIDX 121
4891 tSCC zVoid_NullName[] =
4892 "void_null";
4893
4894 /*
4895 * File name selection pattern
4896 */
4897 tSCC zVoid_NullList[] =
4898 "|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|";
4899 /*
4900 * Machine/OS name selection pattern
4901 */
4902 #define apzVoid_NullMachs (const char**)NULL
4903
4904 /*
4905 * content selection pattern - do fix if pattern found
4906 */
4907 tSCC zVoid_NullSelect0[] =
4908 "^#[ \t]*define[ \t]+NULL[ \t]+\\(\\(void[ \t]*\\*\\)0\\)";
4909
4910 #define VOID_NULL_TEST_CT 1
4911 static tTestDesc aVoid_NullTests[] = {
4912 { TT_EGREP, zVoid_NullSelect0, (regex_t*)NULL }, };
4913
4914 /*
4915 * Fix Command Arguments for Void_Null
4916 */
4917 static const char* apzVoid_NullPatch[] = {
4918 "format",
4919 "#define NULL 0",
4920 (char*)NULL };
4921
4922 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4923 *
4924 * Description of Vxworks_Gcc_Problem fix
4925 */
4926 #define VXWORKS_GCC_PROBLEM_FIXIDX 122
4927 tSCC zVxworks_Gcc_ProblemName[] =
4928 "vxworks_gcc_problem";
4929
4930 /*
4931 * File name selection pattern
4932 */
4933 tSCC zVxworks_Gcc_ProblemList[] =
4934 "|types/vxTypesBase.h|";
4935 /*
4936 * Machine/OS name selection pattern
4937 */
4938 #define apzVxworks_Gcc_ProblemMachs (const char**)NULL
4939
4940 /*
4941 * content selection pattern - do fix if pattern found
4942 */
4943 tSCC zVxworks_Gcc_ProblemSelect0[] =
4944 "__GNUC_TYPEOF_FEATURE_BROKEN_USE_DEFAULT_UNTIL_FIXED__";
4945
4946 #define VXWORKS_GCC_PROBLEM_TEST_CT 1
4947 static tTestDesc aVxworks_Gcc_ProblemTests[] = {
4948 { TT_EGREP, zVxworks_Gcc_ProblemSelect0, (regex_t*)NULL }, };
4949
4950 /*
4951 * Fix Command Arguments for Vxworks_Gcc_Problem
4952 */
4953 static const char* apzVxworks_Gcc_ProblemPatch[] = { "sed",
4954 "-e", "s/#ifdef __GNUC_TYPEOF_FEATURE_BROKEN_USE_DEFAULT_UNTIL_FIXED__/#if 1/",
4955 "-e", "/[ \t]size_t/i\\\n\
4956 #ifndef _GCC_SIZE_T\\\n\
4957 #define _GCC_SIZE_T\n",
4958 "-e", "/[ \t]size_t/a\\\n\
4959 #endif\n",
4960 "-e", "/[ \t]ptrdiff_t/i\\\n\
4961 #ifndef _GCC_PTRDIFF_T\\\n\
4962 #define _GCC_PTRDIFF_T\n",
4963 "-e", "/[ \t]ptrdiff_t/a\\\n\
4964 #endif\n",
4965 "-e", "/[ \t]wchar_t/i\\\n\
4966 #ifndef _GCC_WCHAR_T\\\n\
4967 #define _GCC_WCHAR_T\n",
4968 "-e", "/[ \t]wchar_t/a\\\n\
4969 #endif\n",
4970 (char*)NULL };
4971
4972 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4973 *
4974 * Description of Vxworks_Needs_Vxtypes fix
4975 */
4976 #define VXWORKS_NEEDS_VXTYPES_FIXIDX 123
4977 tSCC zVxworks_Needs_VxtypesName[] =
4978 "vxworks_needs_vxtypes";
4979
4980 /*
4981 * File name selection pattern
4982 */
4983 tSCC zVxworks_Needs_VxtypesList[] =
4984 "|time.h|";
4985 /*
4986 * Machine/OS name selection pattern
4987 */
4988 #define apzVxworks_Needs_VxtypesMachs (const char**)NULL
4989
4990 /*
4991 * content selection pattern - do fix if pattern found
4992 */
4993 tSCC zVxworks_Needs_VxtypesSelect0[] =
4994 "uint_t([ \t]+_clocks_per_sec)";
4995
4996 #define VXWORKS_NEEDS_VXTYPES_TEST_CT 1
4997 static tTestDesc aVxworks_Needs_VxtypesTests[] = {
4998 { TT_EGREP, zVxworks_Needs_VxtypesSelect0, (regex_t*)NULL }, };
4999
5000 /*
5001 * Fix Command Arguments for Vxworks_Needs_Vxtypes
5002 */
5003 static const char* apzVxworks_Needs_VxtypesPatch[] = {
5004 "format",
5005 "unsigned int%1",
5006 (char*)NULL };
5007
5008 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5009 *
5010 * Description of Vxworks_Needs_Vxworks fix
5011 */
5012 #define VXWORKS_NEEDS_VXWORKS_FIXIDX 124
5013 tSCC zVxworks_Needs_VxworksName[] =
5014 "vxworks_needs_vxworks";
5015
5016 /*
5017 * File name selection pattern
5018 */
5019 tSCC zVxworks_Needs_VxworksList[] =
5020 "|sys/stat.h|";
5021 /*
5022 * Machine/OS name selection pattern
5023 */
5024 #define apzVxworks_Needs_VxworksMachs (const char**)NULL
5025
5026 /*
5027 * content selection pattern - do fix if pattern found
5028 */
5029 tSCC zVxworks_Needs_VxworksSelect0[] =
5030 "#[ \t]define[ \t]+__INCstath";
5031
5032 /*
5033 * perform the 'test' shell command - do fix on success
5034 */
5035 tSCC zVxworks_Needs_VxworksTest0[] =
5036 " -r types/vxTypesOld.h";
5037 tSCC zVxworks_Needs_VxworksTest1[] =
5038 " -n \"`egrep '#include' $file`\"";
5039 tSCC zVxworks_Needs_VxworksTest2[] =
5040 " -n \"`egrep ULONG $file`\"";
5041
5042 #define VXWORKS_NEEDS_VXWORKS_TEST_CT 4
5043 static tTestDesc aVxworks_Needs_VxworksTests[] = {
5044 { TT_TEST, zVxworks_Needs_VxworksTest0, 0 /* unused */ },
5045 { TT_TEST, zVxworks_Needs_VxworksTest1, 0 /* unused */ },
5046 { TT_TEST, zVxworks_Needs_VxworksTest2, 0 /* unused */ },
5047 { TT_EGREP, zVxworks_Needs_VxworksSelect0, (regex_t*)NULL }, };
5048
5049 /*
5050 * Fix Command Arguments for Vxworks_Needs_Vxworks
5051 */
5052 static const char* apzVxworks_Needs_VxworksPatch[] = { "sed",
5053 "-e", "/#[ \t]define[ \t][ \t]*__INCstath/a\\\n\
5054 #include <types/vxTypesOld.h>\n",
5055 (char*)NULL };
5056
5057 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5058 *
5059 * Description of Vxworks_Time fix
5060 */
5061 #define VXWORKS_TIME_FIXIDX 125
5062 tSCC zVxworks_TimeName[] =
5063 "vxworks_time";
5064
5065 /*
5066 * File name selection pattern
5067 */
5068 tSCC zVxworks_TimeList[] =
5069 "|time.h|";
5070 /*
5071 * Machine/OS name selection pattern
5072 */
5073 #define apzVxworks_TimeMachs (const char**)NULL
5074
5075 /*
5076 * content selection pattern - do fix if pattern found
5077 */
5078 tSCC zVxworks_TimeSelect0[] =
5079 "#[ \t]*define[ \t]+VOIDFUNCPTR[ \t].*";
5080
5081 /*
5082 * perform the 'test' shell command - do fix on success
5083 */
5084 tSCC zVxworks_TimeTest0[] =
5085 " -r vxWorks.h";
5086
5087 #define VXWORKS_TIME_TEST_CT 2
5088 static tTestDesc aVxworks_TimeTests[] = {
5089 { TT_TEST, zVxworks_TimeTest0, 0 /* unused */ },
5090 { TT_EGREP, zVxworks_TimeSelect0, (regex_t*)NULL }, };
5091
5092 /*
5093 * Fix Command Arguments for Vxworks_Time
5094 */
5095 static const char* apzVxworks_TimePatch[] = {
5096 "format",
5097 "#ifndef __gcc_VOIDFUNCPTR_defined\n\
5098 #ifdef __cplusplus\n\
5099 typedef void (*__gcc_VOIDFUNCPTR) (...);\n\
5100 #else\n\
5101 typedef void (*__gcc_VOIDFUNCPTR) ();\n\
5102 #endif\n\
5103 #define __gcc_VOIDFUNCPTR_defined\n\
5104 #endif\n\
5105 #define VOIDFUNCPTR __gcc_VOIDFUNCPTR",
5106 (char*)NULL };
5107
5108 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5109 *
5110 * Description of X11_Class fix
5111 */
5112 #define X11_CLASS_FIXIDX 126
5113 tSCC zX11_ClassName[] =
5114 "x11_class";
5115
5116 /*
5117 * File name selection pattern
5118 */
5119 tSCC zX11_ClassList[] =
5120 "|X11/ShellP.h|";
5121 /*
5122 * Machine/OS name selection pattern
5123 */
5124 #define apzX11_ClassMachs (const char**)NULL
5125
5126 /*
5127 * content selection pattern - do fix if pattern found
5128 */
5129 tSCC zX11_ClassSelect0[] =
5130 "^([ \t]*char \\*)class;(.*)";
5131
5132 /*
5133 * content bypass pattern - skip fix if pattern found
5134 */
5135 tSCC zX11_ClassBypass0[] =
5136 "__cplusplus";
5137
5138 #define X11_CLASS_TEST_CT 2
5139 static tTestDesc aX11_ClassTests[] = {
5140 { TT_NEGREP, zX11_ClassBypass0, (regex_t*)NULL },
5141 { TT_EGREP, zX11_ClassSelect0, (regex_t*)NULL }, };
5142
5143 /*
5144 * Fix Command Arguments for X11_Class
5145 */
5146 static const char* apzX11_ClassPatch[] = {
5147 "format",
5148 "#ifdef __cplusplus\n\
5149 %1c_class;%2\n\
5150 #else\n\
5151 %1class;%2\n\
5152 #endif",
5153 (char*)NULL };
5154
5155 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5156 *
5157 * Description of X11_Class_Usage fix
5158 */
5159 #define X11_CLASS_USAGE_FIXIDX 127
5160 tSCC zX11_Class_UsageName[] =
5161 "x11_class_usage";
5162
5163 /*
5164 * File name selection pattern
5165 */
5166 tSCC zX11_Class_UsageList[] =
5167 "|Xm/BaseClassI.h|";
5168 /*
5169 * Machine/OS name selection pattern
5170 */
5171 #define apzX11_Class_UsageMachs (const char**)NULL
5172
5173 /*
5174 * content selection pattern - do fix if pattern found
5175 */
5176 tSCC zX11_Class_UsageSelect0[] =
5177 " class\\)";
5178
5179 /*
5180 * content bypass pattern - skip fix if pattern found
5181 */
5182 tSCC zX11_Class_UsageBypass0[] =
5183 "__cplusplus";
5184
5185 #define X11_CLASS_USAGE_TEST_CT 2
5186 static tTestDesc aX11_Class_UsageTests[] = {
5187 { TT_NEGREP, zX11_Class_UsageBypass0, (regex_t*)NULL },
5188 { TT_EGREP, zX11_Class_UsageSelect0, (regex_t*)NULL }, };
5189
5190 /*
5191 * Fix Command Arguments for X11_Class_Usage
5192 */
5193 static const char* apzX11_Class_UsagePatch[] = {
5194 "format",
5195 " c_class)",
5196 (char*)NULL };
5197
5198 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5199 *
5200 * Description of X11_New fix
5201 */
5202 #define X11_NEW_FIXIDX 128
5203 tSCC zX11_NewName[] =
5204 "x11_new";
5205
5206 /*
5207 * File name selection pattern
5208 */
5209 tSCC zX11_NewList[] =
5210 "|Xm/Traversal.h|";
5211 /*
5212 * Machine/OS name selection pattern
5213 */
5214 #define apzX11_NewMachs (const char**)NULL
5215
5216 /*
5217 * content bypass pattern - skip fix if pattern found
5218 */
5219 tSCC zX11_NewBypass0[] =
5220 "__cplusplus";
5221
5222 #define X11_NEW_TEST_CT 1
5223 static tTestDesc aX11_NewTests[] = {
5224 { TT_NEGREP, zX11_NewBypass0, (regex_t*)NULL }, };
5225
5226 /*
5227 * Fix Command Arguments for X11_New
5228 */
5229 static const char* apzX11_NewPatch[] = { "sed",
5230 "-e", "/Widget\told, new;/i\\\n\
5231 #ifdef __cplusplus\\\n\
5232 \tWidget\told, c_new;\\\n\
5233 #else\n",
5234 "-e", "/Widget\told, new;/a\\\n\
5235 #endif\n",
5236 "-e", "s/Widget new,/Widget c_new,/g",
5237 (char*)NULL };
5238
5239 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5240 *
5241 * Description of X11_Sprintf fix
5242 */
5243 #define X11_SPRINTF_FIXIDX 129
5244 tSCC zX11_SprintfName[] =
5245 "x11_sprintf";
5246
5247 /*
5248 * File name selection pattern
5249 */
5250 tSCC zX11_SprintfList[] =
5251 "|X11/Xmu.h|X11/Xmu/Xmu.h|";
5252 /*
5253 * Machine/OS name selection pattern
5254 */
5255 #define apzX11_SprintfMachs (const char**)NULL
5256
5257 /*
5258 * content selection pattern - do fix if pattern found
5259 */
5260 tSCC zX11_SprintfSelect0[] =
5261 "^extern char \\*\tsprintf\\(\\);$";
5262
5263 #define X11_SPRINTF_TEST_CT 1
5264 static tTestDesc aX11_SprintfTests[] = {
5265 { TT_EGREP, zX11_SprintfSelect0, (regex_t*)NULL }, };
5266
5267 /*
5268 * Fix Command Arguments for X11_Sprintf
5269 */
5270 static const char* apzX11_SprintfPatch[] = {
5271 "format",
5272 "#ifndef __STDC__\n\
5273 %0\n\
5274 #endif /* !defined __STDC__ */",
5275 (char*)NULL };
5276
5277
5278 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5279 *
5280 * List of all fixes
5281 */
5282 #define REGEX_COUNT 135
5283 #define MACH_LIST_SIZE_LIMIT 279
5284 #define FIX_COUNT 130
5285
5286 tFixDesc fixDescList[ FIX_COUNT ] = {
5287 { zAaa_Ki_IfaceName, zAaa_Ki_IfaceList,
5288 apzAaa_Ki_IfaceMachs,
5289 AAA_KI_IFACE_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
5290 aAaa_Ki_IfaceTests, apzAaa_Ki_IfacePatch },
5291
5292 { zAaa_KiName, zAaa_KiList,
5293 apzAaa_KiMachs,
5294 AAA_KI_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
5295 aAaa_KiTests, apzAaa_KiPatch },
5296
5297 { zAaa_Ki_CallsName, zAaa_Ki_CallsList,
5298 apzAaa_Ki_CallsMachs,
5299 AAA_KI_CALLS_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
5300 aAaa_Ki_CallsTests, apzAaa_Ki_CallsPatch },
5301
5302 { zAaa_Ki_DefsName, zAaa_Ki_DefsList,
5303 apzAaa_Ki_DefsMachs,
5304 AAA_KI_DEFS_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
5305 aAaa_Ki_DefsTests, apzAaa_Ki_DefsPatch },
5306
5307 { zAaa_Bad_FixesName, zAaa_Bad_FixesList,
5308 apzAaa_Bad_FixesMachs,
5309 AAA_BAD_FIXES_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
5310 aAaa_Bad_FixesTests, apzAaa_Bad_FixesPatch },
5311
5312 { zAaa_TimeName, zAaa_TimeList,
5313 apzAaa_TimeMachs,
5314 AAA_TIME_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
5315 aAaa_TimeTests, apzAaa_TimePatch },
5316
5317 { zAab_Dgux_Int_VarargsName, zAab_Dgux_Int_VarargsList,
5318 apzAab_Dgux_Int_VarargsMachs,
5319 AAB_DGUX_INT_VARARGS_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
5320 aAab_Dgux_Int_VarargsTests, apzAab_Dgux_Int_VarargsPatch },
5321
5322 { zAab_Fd_Zero_Asm_Posix_Types_HName, zAab_Fd_Zero_Asm_Posix_Types_HList,
5323 apzAab_Fd_Zero_Asm_Posix_Types_HMachs,
5324 AAB_FD_ZERO_ASM_POSIX_TYPES_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
5325 aAab_Fd_Zero_Asm_Posix_Types_HTests, apzAab_Fd_Zero_Asm_Posix_Types_HPatch },
5326
5327 { zAab_Fd_Zero_Gnu_Types_HName, zAab_Fd_Zero_Gnu_Types_HList,
5328 apzAab_Fd_Zero_Gnu_Types_HMachs,
5329 AAB_FD_ZERO_GNU_TYPES_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
5330 aAab_Fd_Zero_Gnu_Types_HTests, apzAab_Fd_Zero_Gnu_Types_HPatch },
5331
5332 { zAab_Fd_Zero_Selectbits_HName, zAab_Fd_Zero_Selectbits_HList,
5333 apzAab_Fd_Zero_Selectbits_HMachs,
5334 AAB_FD_ZERO_SELECTBITS_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
5335 aAab_Fd_Zero_Selectbits_HTests, apzAab_Fd_Zero_Selectbits_HPatch },
5336
5337 { zAab_Sun_MemcpyName, zAab_Sun_MemcpyList,
5338 apzAab_Sun_MemcpyMachs,
5339 AAB_SUN_MEMCPY_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
5340 aAab_Sun_MemcpyTests, apzAab_Sun_MemcpyPatch },
5341
5342 { zAab_Svr4_Replace_ByteorderName, zAab_Svr4_Replace_ByteorderList,
5343 apzAab_Svr4_Replace_ByteorderMachs,
5344 AAB_SVR4_REPLACE_BYTEORDER_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
5345 aAab_Svr4_Replace_ByteorderTests, apzAab_Svr4_Replace_ByteorderPatch },
5346
5347 { zAab_Ultrix_Ansi_CompatName, zAab_Ultrix_Ansi_CompatList,
5348 apzAab_Ultrix_Ansi_CompatMachs,
5349 AAB_ULTRIX_ANSI_COMPAT_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
5350 aAab_Ultrix_Ansi_CompatTests, apzAab_Ultrix_Ansi_CompatPatch },
5351
5352 { zAab_Ultrix_LimitsName, zAab_Ultrix_LimitsList,
5353 apzAab_Ultrix_LimitsMachs,
5354 AAB_ULTRIX_LIMITS_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
5355 aAab_Ultrix_LimitsTests, apzAab_Ultrix_LimitsPatch },
5356
5357 { zAab_Ultrix_MemoryName, zAab_Ultrix_MemoryList,
5358 apzAab_Ultrix_MemoryMachs,
5359 AAB_ULTRIX_MEMORY_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
5360 aAab_Ultrix_MemoryTests, apzAab_Ultrix_MemoryPatch },
5361
5362 { zAab_Ultrix_StringName, zAab_Ultrix_StringList,
5363 apzAab_Ultrix_StringMachs,
5364 AAB_ULTRIX_STRING_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
5365 aAab_Ultrix_StringTests, apzAab_Ultrix_StringPatch },
5366
5367 { zAix_PthreadName, zAix_PthreadList,
5368 apzAix_PthreadMachs,
5369 AIX_PTHREAD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5370 aAix_PthreadTests, apzAix_PthreadPatch },
5371
5372 { zAix_SysmachineName, zAix_SysmachineList,
5373 apzAix_SysmachineMachs,
5374 AIX_SYSMACHINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5375 aAix_SysmachineTests, apzAix_SysmachinePatch },
5376
5377 { zAix_SyswaitName, zAix_SyswaitList,
5378 apzAix_SyswaitMachs,
5379 AIX_SYSWAIT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5380 aAix_SyswaitTests, apzAix_SyswaitPatch },
5381
5382 { zAix_VolatileName, zAix_VolatileList,
5383 apzAix_VolatileMachs,
5384 AIX_VOLATILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5385 aAix_VolatileTests, apzAix_VolatilePatch },
5386
5387 { zAlpha_GetoptName, zAlpha_GetoptList,
5388 apzAlpha_GetoptMachs,
5389 ALPHA_GETOPT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5390 aAlpha_GetoptTests, apzAlpha_GetoptPatch },
5391
5392 { zAlpha_ParensName, zAlpha_ParensList,
5393 apzAlpha_ParensMachs,
5394 ALPHA_PARENS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5395 aAlpha_ParensTests, apzAlpha_ParensPatch },
5396
5397 { zAlpha_SbrkName, zAlpha_SbrkList,
5398 apzAlpha_SbrkMachs,
5399 ALPHA_SBRK_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5400 aAlpha_SbrkTests, apzAlpha_SbrkPatch },
5401
5402 { zArm_Norcroft_HintName, zArm_Norcroft_HintList,
5403 apzArm_Norcroft_HintMachs,
5404 ARM_NORCROFT_HINT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5405 aArm_Norcroft_HintTests, apzArm_Norcroft_HintPatch },
5406
5407 { zArm_WcharName, zArm_WcharList,
5408 apzArm_WcharMachs,
5409 ARM_WCHAR_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5410 aArm_WcharTests, apzArm_WcharPatch },
5411
5412 { zAux_AsmName, zAux_AsmList,
5413 apzAux_AsmMachs,
5414 AUX_ASM_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5415 aAux_AsmTests, apzAux_AsmPatch },
5416
5417 { zAvoid_Bool_DefineName, zAvoid_Bool_DefineList,
5418 apzAvoid_Bool_DefineMachs,
5419 AVOID_BOOL_DEFINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5420 aAvoid_Bool_DefineTests, apzAvoid_Bool_DefinePatch },
5421
5422 { zAvoid_Bool_TypeName, zAvoid_Bool_TypeList,
5423 apzAvoid_Bool_TypeMachs,
5424 AVOID_BOOL_TYPE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5425 aAvoid_Bool_TypeTests, apzAvoid_Bool_TypePatch },
5426
5427 { zAvoid_Wchar_T_TypeName, zAvoid_Wchar_T_TypeList,
5428 apzAvoid_Wchar_T_TypeMachs,
5429 AVOID_WCHAR_T_TYPE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5430 aAvoid_Wchar_T_TypeTests, apzAvoid_Wchar_T_TypePatch },
5431
5432 { zBad_LvalName, zBad_LvalList,
5433 apzBad_LvalMachs,
5434 BAD_LVAL_TEST_CT, FD_MACH_ONLY,
5435 aBad_LvalTests, apzBad_LvalPatch },
5436
5437 { zBad_Struct_TermName, zBad_Struct_TermList,
5438 apzBad_Struct_TermMachs,
5439 BAD_STRUCT_TERM_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5440 aBad_Struct_TermTests, apzBad_Struct_TermPatch },
5441
5442 { zBadquoteName, zBadquoteList,
5443 apzBadquoteMachs,
5444 BADQUOTE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5445 aBadquoteTests, apzBadquotePatch },
5446
5447 { zBroken_Assert_StdioName, zBroken_Assert_StdioList,
5448 apzBroken_Assert_StdioMachs,
5449 BROKEN_ASSERT_STDIO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5450 aBroken_Assert_StdioTests, apzBroken_Assert_StdioPatch },
5451
5452 { zBroken_Assert_StdlibName, zBroken_Assert_StdlibList,
5453 apzBroken_Assert_StdlibMachs,
5454 BROKEN_ASSERT_STDLIB_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5455 aBroken_Assert_StdlibTests, apzBroken_Assert_StdlibPatch },
5456
5457 { zBroken_CabsName, zBroken_CabsList,
5458 apzBroken_CabsMachs,
5459 BROKEN_CABS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5460 aBroken_CabsTests, apzBroken_CabsPatch },
5461
5462 { zCtrl_Quotes_DefName, zCtrl_Quotes_DefList,
5463 apzCtrl_Quotes_DefMachs,
5464 CTRL_QUOTES_DEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5465 aCtrl_Quotes_DefTests, apzCtrl_Quotes_DefPatch },
5466
5467 { zCtrl_Quotes_UseName, zCtrl_Quotes_UseList,
5468 apzCtrl_Quotes_UseMachs,
5469 CTRL_QUOTES_USE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5470 aCtrl_Quotes_UseTests, apzCtrl_Quotes_UsePatch },
5471
5472 { zCxx_UnreadyName, zCxx_UnreadyList,
5473 apzCxx_UnreadyMachs,
5474 CXX_UNREADY_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5475 aCxx_UnreadyTests, apzCxx_UnreadyPatch },
5476
5477 { zDec_Intern_AsmName, zDec_Intern_AsmList,
5478 apzDec_Intern_AsmMachs,
5479 DEC_INTERN_ASM_TEST_CT, FD_MACH_ONLY,
5480 aDec_Intern_AsmTests, apzDec_Intern_AsmPatch },
5481
5482 { zEcd_CursorName, zEcd_CursorList,
5483 apzEcd_CursorMachs,
5484 ECD_CURSOR_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5485 aEcd_CursorTests, apzEcd_CursorPatch },
5486
5487 { zFix_Header_BreakageName, zFix_Header_BreakageList,
5488 apzFix_Header_BreakageMachs,
5489 FIX_HEADER_BREAKAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5490 aFix_Header_BreakageTests, apzFix_Header_BreakagePatch },
5491
5492 { zHp_InlineName, zHp_InlineList,
5493 apzHp_InlineMachs,
5494 HP_INLINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5495 aHp_InlineTests, apzHp_InlinePatch },
5496
5497 { zHp_SysfileName, zHp_SysfileList,
5498 apzHp_SysfileMachs,
5499 HP_SYSFILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5500 aHp_SysfileTests, apzHp_SysfilePatch },
5501
5502 { zHpux11_FabsfName, zHpux11_FabsfList,
5503 apzHpux11_FabsfMachs,
5504 HPUX11_FABSF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5505 aHpux11_FabsfTests, apzHpux11_FabsfPatch },
5506
5507 { zHpux11_Uint32_CName, zHpux11_Uint32_CList,
5508 apzHpux11_Uint32_CMachs,
5509 HPUX11_UINT32_C_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5510 aHpux11_Uint32_CTests, apzHpux11_Uint32_CPatch },
5511
5512 { zHpux8_Bogus_InlinesName, zHpux8_Bogus_InlinesList,
5513 apzHpux8_Bogus_InlinesMachs,
5514 HPUX8_BOGUS_INLINES_TEST_CT, FD_MACH_ONLY,
5515 aHpux8_Bogus_InlinesTests, apzHpux8_Bogus_InlinesPatch },
5516
5517 { zInt_Abort_Free_And_ExitName, zInt_Abort_Free_And_ExitList,
5518 apzInt_Abort_Free_And_ExitMachs,
5519 INT_ABORT_FREE_AND_EXIT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5520 aInt_Abort_Free_And_ExitTests, apzInt_Abort_Free_And_ExitPatch },
5521
5522 { zIsc_Omits_With_StdcName, zIsc_Omits_With_StdcList,
5523 apzIsc_Omits_With_StdcMachs,
5524 ISC_OMITS_WITH_STDC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5525 aIsc_Omits_With_StdcTests, apzIsc_Omits_With_StdcPatch },
5526
5527 { zIo_Quotes_DefName, zIo_Quotes_DefList,
5528 apzIo_Quotes_DefMachs,
5529 IO_QUOTES_DEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5530 aIo_Quotes_DefTests, apzIo_Quotes_DefPatch },
5531
5532 { zIo_Quotes_UseName, zIo_Quotes_UseList,
5533 apzIo_Quotes_UseMachs,
5534 IO_QUOTES_USE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5535 aIo_Quotes_UseTests, apzIo_Quotes_UsePatch },
5536
5537 { zHpux_MaxintName, zHpux_MaxintList,
5538 apzHpux_MaxintMachs,
5539 HPUX_MAXINT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5540 aHpux_MaxintTests, apzHpux_MaxintPatch },
5541
5542 { zHpux_SystimeName, zHpux_SystimeList,
5543 apzHpux_SystimeMachs,
5544 HPUX_SYSTIME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5545 aHpux_SystimeTests, apzHpux_SystimePatch },
5546
5547 { zIp_Missing_SemiName, zIp_Missing_SemiList,
5548 apzIp_Missing_SemiMachs,
5549 IP_MISSING_SEMI_TEST_CT, FD_MACH_ONLY,
5550 aIp_Missing_SemiTests, apzIp_Missing_SemiPatch },
5551
5552 { zIrix_Asm_ApostropheName, zIrix_Asm_ApostropheList,
5553 apzIrix_Asm_ApostropheMachs,
5554 IRIX_ASM_APOSTROPHE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5555 aIrix_Asm_ApostropheTests, apzIrix_Asm_ApostrophePatch },
5556
5557 { zIsc_FmodName, zIsc_FmodList,
5558 apzIsc_FmodMachs,
5559 ISC_FMOD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5560 aIsc_FmodTests, apzIsc_FmodPatch },
5561
5562 { zKandr_ConcatName, zKandr_ConcatList,
5563 apzKandr_ConcatMachs,
5564 KANDR_CONCAT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5565 aKandr_ConcatTests, apzKandr_ConcatPatch },
5566
5567 { zLibc1_Ifdefd_MemxName, zLibc1_Ifdefd_MemxList,
5568 apzLibc1_Ifdefd_MemxMachs,
5569 LIBC1_IFDEFD_MEMX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5570 aLibc1_Ifdefd_MemxTests, apzLibc1_Ifdefd_MemxPatch },
5571
5572 { zLimits_IfndefsName, zLimits_IfndefsList,
5573 apzLimits_IfndefsMachs,
5574 LIMITS_IFNDEFS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5575 aLimits_IfndefsTests, apzLimits_IfndefsPatch },
5576
5577 { zLynx_Void_IntName, zLynx_Void_IntList,
5578 apzLynx_Void_IntMachs,
5579 LYNX_VOID_INT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5580 aLynx_Void_IntTests, apzLynx_Void_IntPatch },
5581
5582 { zLynxos_Fcntl_ProtoName, zLynxos_Fcntl_ProtoList,
5583 apzLynxos_Fcntl_ProtoMachs,
5584 LYNXOS_FCNTL_PROTO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5585 aLynxos_Fcntl_ProtoTests, apzLynxos_Fcntl_ProtoPatch },
5586
5587 { zM88k_Bad_Hypot_OptName, zM88k_Bad_Hypot_OptList,
5588 apzM88k_Bad_Hypot_OptMachs,
5589 M88K_BAD_HYPOT_OPT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5590 aM88k_Bad_Hypot_OptTests, apzM88k_Bad_Hypot_OptPatch },
5591
5592 { zM88k_Bad_S_IfName, zM88k_Bad_S_IfList,
5593 apzM88k_Bad_S_IfMachs,
5594 M88K_BAD_S_IF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5595 aM88k_Bad_S_IfTests, apzM88k_Bad_S_IfPatch },
5596
5597 { zM88k_Multi_InclName, zM88k_Multi_InclList,
5598 apzM88k_Multi_InclMachs,
5599 M88K_MULTI_INCL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5600 aM88k_Multi_InclTests, apzM88k_Multi_InclPatch },
5601
5602 { zMachine_Ansi_H_Va_ListName, zMachine_Ansi_H_Va_ListList,
5603 apzMachine_Ansi_H_Va_ListMachs,
5604 MACHINE_ANSI_H_VA_LIST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5605 aMachine_Ansi_H_Va_ListTests, apzMachine_Ansi_H_Va_ListPatch },
5606
5607 { zMachine_NameName, zMachine_NameList,
5608 apzMachine_NameMachs,
5609 MACHINE_NAME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5610 aMachine_NameTests, apzMachine_NamePatch },
5611
5612 { zMath_ExceptionName, zMath_ExceptionList,
5613 apzMath_ExceptionMachs,
5614 MATH_EXCEPTION_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5615 aMath_ExceptionTests, apzMath_ExceptionPatch },
5616
5617 { zMath_Huge_Val_From_Dbl_MaxName, zMath_Huge_Val_From_Dbl_MaxList,
5618 apzMath_Huge_Val_From_Dbl_MaxMachs,
5619 MATH_HUGE_VAL_FROM_DBL_MAX_TEST_CT, FD_MACH_ONLY | FD_SHELL_SCRIPT,
5620 aMath_Huge_Val_From_Dbl_MaxTests, apzMath_Huge_Val_From_Dbl_MaxPatch },
5621
5622 { zMath_Huge_Val_IfndefName, zMath_Huge_Val_IfndefList,
5623 apzMath_Huge_Val_IfndefMachs,
5624 MATH_HUGE_VAL_IFNDEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5625 aMath_Huge_Val_IfndefTests, apzMath_Huge_Val_IfndefPatch },
5626
5627 { zNested_MotorolaName, zNested_MotorolaList,
5628 apzNested_MotorolaMachs,
5629 NESTED_MOTOROLA_TEST_CT, FD_MACH_ONLY,
5630 aNested_MotorolaTests, apzNested_MotorolaPatch },
5631
5632 { zNested_Sys_LimitsName, zNested_Sys_LimitsList,
5633 apzNested_Sys_LimitsMachs,
5634 NESTED_SYS_LIMITS_TEST_CT, FD_MACH_ONLY,
5635 aNested_Sys_LimitsTests, apzNested_Sys_LimitsPatch },
5636
5637 { zNested_Auth_DesName, zNested_Auth_DesList,
5638 apzNested_Auth_DesMachs,
5639 NESTED_AUTH_DES_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5640 aNested_Auth_DesTests, apzNested_Auth_DesPatch },
5641
5642 { zNews_Os_RecursionName, zNews_Os_RecursionList,
5643 apzNews_Os_RecursionMachs,
5644 NEWS_OS_RECURSION_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5645 aNews_Os_RecursionTests, apzNews_Os_RecursionPatch },
5646
5647 { zNext_Math_PrefixName, zNext_Math_PrefixList,
5648 apzNext_Math_PrefixMachs,
5649 NEXT_MATH_PREFIX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5650 aNext_Math_PrefixTests, apzNext_Math_PrefixPatch },
5651
5652 { zNext_TemplateName, zNext_TemplateList,
5653 apzNext_TemplateMachs,
5654 NEXT_TEMPLATE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5655 aNext_TemplateTests, apzNext_TemplatePatch },
5656
5657 { zNext_VolitileName, zNext_VolitileList,
5658 apzNext_VolitileMachs,
5659 NEXT_VOLITILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5660 aNext_VolitileTests, apzNext_VolitilePatch },
5661
5662 { zNext_Wait_UnionName, zNext_Wait_UnionList,
5663 apzNext_Wait_UnionMachs,
5664 NEXT_WAIT_UNION_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5665 aNext_Wait_UnionTests, apzNext_Wait_UnionPatch },
5666
5667 { zNodeent_SyntaxName, zNodeent_SyntaxList,
5668 apzNodeent_SyntaxMachs,
5669 NODEENT_SYNTAX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5670 aNodeent_SyntaxTests, apzNodeent_SyntaxPatch },
5671
5672 { zOsf_Namespace_AName, zOsf_Namespace_AList,
5673 apzOsf_Namespace_AMachs,
5674 OSF_NAMESPACE_A_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5675 aOsf_Namespace_ATests, apzOsf_Namespace_APatch },
5676
5677 { zOsf_Namespace_CName, zOsf_Namespace_CList,
5678 apzOsf_Namespace_CMachs,
5679 OSF_NAMESPACE_C_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5680 aOsf_Namespace_CTests, apzOsf_Namespace_CPatch },
5681
5682 { zPthread_Page_SizeName, zPthread_Page_SizeList,
5683 apzPthread_Page_SizeMachs,
5684 PTHREAD_PAGE_SIZE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5685 aPthread_Page_SizeTests, apzPthread_Page_SizePatch },
5686
5687 { zRead_Ret_TypeName, zRead_Ret_TypeList,
5688 apzRead_Ret_TypeMachs,
5689 READ_RET_TYPE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5690 aRead_Ret_TypeTests, apzRead_Ret_TypePatch },
5691
5692 { zRs6000_DoubleName, zRs6000_DoubleList,
5693 apzRs6000_DoubleMachs,
5694 RS6000_DOUBLE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5695 aRs6000_DoubleTests, apzRs6000_DoublePatch },
5696
5697 { zRs6000_FchmodName, zRs6000_FchmodList,
5698 apzRs6000_FchmodMachs,
5699 RS6000_FCHMOD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5700 aRs6000_FchmodTests, apzRs6000_FchmodPatch },
5701
5702 { zRs6000_ParamName, zRs6000_ParamList,
5703 apzRs6000_ParamMachs,
5704 RS6000_PARAM_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5705 aRs6000_ParamTests, apzRs6000_ParamPatch },
5706
5707 { zSco_Static_FuncName, zSco_Static_FuncList,
5708 apzSco_Static_FuncMachs,
5709 SCO_STATIC_FUNC_TEST_CT, FD_MACH_ONLY,
5710 aSco_Static_FuncTests, apzSco_Static_FuncPatch },
5711
5712 { zSco_Strict_AnsiName, zSco_Strict_AnsiList,
5713 apzSco_Strict_AnsiMachs,
5714 SCO_STRICT_ANSI_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5715 aSco_Strict_AnsiTests, apzSco_Strict_AnsiPatch },
5716
5717 { zSco_UtimeName, zSco_UtimeList,
5718 apzSco_UtimeMachs,
5719 SCO_UTIME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5720 aSco_UtimeTests, apzSco_UtimePatch },
5721
5722 { zStatsswtchName, zStatsswtchList,
5723 apzStatsswtchMachs,
5724 STATSSWTCH_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5725 aStatsswtchTests, apzStatsswtchPatch },
5726
5727 { zStdio_Stdarg_HName, zStdio_Stdarg_HList,
5728 apzStdio_Stdarg_HMachs,
5729 STDIO_STDARG_H_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5730 aStdio_Stdarg_HTests, apzStdio_Stdarg_HPatch },
5731
5732 { zStdio_Va_ListName, zStdio_Va_ListList,
5733 apzStdio_Va_ListMachs,
5734 STDIO_VA_LIST_TEST_CT, FD_MACH_ONLY,
5735 aStdio_Va_ListTests, apzStdio_Va_ListPatch },
5736
5737 { zStruct_FileName, zStruct_FileList,
5738 apzStruct_FileMachs,
5739 STRUCT_FILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5740 aStruct_FileTests, apzStruct_FilePatch },
5741
5742 { zStruct_SockaddrName, zStruct_SockaddrList,
5743 apzStruct_SockaddrMachs,
5744 STRUCT_SOCKADDR_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5745 aStruct_SockaddrTests, apzStruct_SockaddrPatch },
5746
5747 { zSun_Auth_ProtoName, zSun_Auth_ProtoList,
5748 apzSun_Auth_ProtoMachs,
5749 SUN_AUTH_PROTO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5750 aSun_Auth_ProtoTests, apzSun_Auth_ProtoPatch },
5751
5752 { zSun_Bogus_IfdefName, zSun_Bogus_IfdefList,
5753 apzSun_Bogus_IfdefMachs,
5754 SUN_BOGUS_IFDEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5755 aSun_Bogus_IfdefTests, apzSun_Bogus_IfdefPatch },
5756
5757 { zSun_CatmacroName, zSun_CatmacroList,
5758 apzSun_CatmacroMachs,
5759 SUN_CATMACRO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5760 aSun_CatmacroTests, apzSun_CatmacroPatch },
5761
5762 { zSun_MallocName, zSun_MallocList,
5763 apzSun_MallocMachs,
5764 SUN_MALLOC_TEST_CT, FD_MACH_ONLY,
5765 aSun_MallocTests, apzSun_MallocPatch },
5766
5767 { zSun_Rusers_SemiName, zSun_Rusers_SemiList,
5768 apzSun_Rusers_SemiMachs,
5769 SUN_RUSERS_SEMI_TEST_CT, FD_MACH_ONLY,
5770 aSun_Rusers_SemiTests, apzSun_Rusers_SemiPatch },
5771
5772 { zSun_SignalName, zSun_SignalList,
5773 apzSun_SignalMachs,
5774 SUN_SIGNAL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5775 aSun_SignalTests, apzSun_SignalPatch },
5776
5777 { zSunos_Matherr_DeclName, zSunos_Matherr_DeclList,
5778 apzSunos_Matherr_DeclMachs,
5779 SUNOS_MATHERR_DECL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5780 aSunos_Matherr_DeclTests, apzSunos_Matherr_DeclPatch },
5781
5782 { zSunos_StrlenName, zSunos_StrlenList,
5783 apzSunos_StrlenMachs,
5784 SUNOS_STRLEN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5785 aSunos_StrlenTests, apzSunos_StrlenPatch },
5786
5787 { zSvr4__PName, zSvr4__PList,
5788 apzSvr4__PMachs,
5789 SVR4__P_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5790 aSvr4__PTests, apzSvr4__PPatch },
5791
5792 { zSvr4_GetcwdName, zSvr4_GetcwdList,
5793 apzSvr4_GetcwdMachs,
5794 SVR4_GETCWD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5795 aSvr4_GetcwdTests, apzSvr4_GetcwdPatch },
5796
5797 { zSvr4_ProfilName, zSvr4_ProfilList,
5798 apzSvr4_ProfilMachs,
5799 SVR4_PROFIL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5800 aSvr4_ProfilTests, apzSvr4_ProfilPatch },
5801
5802 { zGnu_TypesName, zGnu_TypesList,
5803 apzGnu_TypesMachs,
5804 GNU_TYPES_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5805 aGnu_TypesTests, apzGnu_TypesPatch },
5806
5807 { zSysv68_StringName, zSysv68_StringList,
5808 apzSysv68_StringMachs,
5809 SYSV68_STRING_TEST_CT, FD_MACH_ONLY,
5810 aSysv68_StringTests, apzSysv68_StringPatch },
5811
5812 { zSysz_Stdlib_For_SunName, zSysz_Stdlib_For_SunList,
5813 apzSysz_Stdlib_For_SunMachs,
5814 SYSZ_STDLIB_FOR_SUN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5815 aSysz_Stdlib_For_SunTests, apzSysz_Stdlib_For_SunPatch },
5816
5817 { zTinfo_CplusplusName, zTinfo_CplusplusList,
5818 apzTinfo_CplusplusMachs,
5819 TINFO_CPLUSPLUS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5820 aTinfo_CplusplusTests, apzTinfo_CplusplusPatch },
5821
5822 { zUltrix_Atof_ParamName, zUltrix_Atof_ParamList,
5823 apzUltrix_Atof_ParamMachs,
5824 ULTRIX_ATOF_PARAM_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5825 aUltrix_Atof_ParamTests, apzUltrix_Atof_ParamPatch },
5826
5827 { zUltrix_ConstName, zUltrix_ConstList,
5828 apzUltrix_ConstMachs,
5829 ULTRIX_CONST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5830 aUltrix_ConstTests, apzUltrix_ConstPatch },
5831
5832 { zUltrix_Const2Name, zUltrix_Const2List,
5833 apzUltrix_Const2Machs,
5834 ULTRIX_CONST2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5835 aUltrix_Const2Tests, apzUltrix_Const2Patch },
5836
5837 { zUltrix_Fix_FixprotoName, zUltrix_Fix_FixprotoList,
5838 apzUltrix_Fix_FixprotoMachs,
5839 ULTRIX_FIX_FIXPROTO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5840 aUltrix_Fix_FixprotoTests, apzUltrix_Fix_FixprotoPatch },
5841
5842 { zUltrix_IfdefName, zUltrix_IfdefList,
5843 apzUltrix_IfdefMachs,
5844 ULTRIX_IFDEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5845 aUltrix_IfdefTests, apzUltrix_IfdefPatch },
5846
5847 { zUltrix_Math_IfdefName, zUltrix_Math_IfdefList,
5848 apzUltrix_Math_IfdefMachs,
5849 ULTRIX_MATH_IFDEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5850 aUltrix_Math_IfdefTests, apzUltrix_Math_IfdefPatch },
5851
5852 { zUltrix_Nested_IoctlName, zUltrix_Nested_IoctlList,
5853 apzUltrix_Nested_IoctlMachs,
5854 ULTRIX_NESTED_IOCTL_TEST_CT, FD_MACH_ONLY,
5855 aUltrix_Nested_IoctlTests, apzUltrix_Nested_IoctlPatch },
5856
5857 { zUltrix_Nested_SvcName, zUltrix_Nested_SvcList,
5858 apzUltrix_Nested_SvcMachs,
5859 ULTRIX_NESTED_SVC_TEST_CT, FD_MACH_ONLY,
5860 aUltrix_Nested_SvcTests, apzUltrix_Nested_SvcPatch },
5861
5862 { zUltrix_StatName, zUltrix_StatList,
5863 apzUltrix_StatMachs,
5864 ULTRIX_STAT_TEST_CT, FD_MACH_ONLY,
5865 aUltrix_StatTests, apzUltrix_StatPatch },
5866
5867 { zUltrix_StaticName, zUltrix_StaticList,
5868 apzUltrix_StaticMachs,
5869 ULTRIX_STATIC_TEST_CT, FD_MACH_ONLY,
5870 aUltrix_StaticTests, apzUltrix_StaticPatch },
5871
5872 { zUltrix_StringsName, zUltrix_StringsList,
5873 apzUltrix_StringsMachs,
5874 ULTRIX_STRINGS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5875 aUltrix_StringsTests, apzUltrix_StringsPatch },
5876
5877 { zUndefine_NullName, zUndefine_NullList,
5878 apzUndefine_NullMachs,
5879 UNDEFINE_NULL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5880 aUndefine_NullTests, apzUndefine_NullPatch },
5881
5882 { zUw7_Byteorder_FixName, zUw7_Byteorder_FixList,
5883 apzUw7_Byteorder_FixMachs,
5884 UW7_BYTEORDER_FIX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5885 aUw7_Byteorder_FixTests, apzUw7_Byteorder_FixPatch },
5886
5887 { zVa_I960_MacroName, zVa_I960_MacroList,
5888 apzVa_I960_MacroMachs,
5889 VA_I960_MACRO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5890 aVa_I960_MacroTests, apzVa_I960_MacroPatch },
5891
5892 { zVoid_NullName, zVoid_NullList,
5893 apzVoid_NullMachs,
5894 VOID_NULL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5895 aVoid_NullTests, apzVoid_NullPatch },
5896
5897 { zVxworks_Gcc_ProblemName, zVxworks_Gcc_ProblemList,
5898 apzVxworks_Gcc_ProblemMachs,
5899 VXWORKS_GCC_PROBLEM_TEST_CT, FD_MACH_ONLY,
5900 aVxworks_Gcc_ProblemTests, apzVxworks_Gcc_ProblemPatch },
5901
5902 { zVxworks_Needs_VxtypesName, zVxworks_Needs_VxtypesList,
5903 apzVxworks_Needs_VxtypesMachs,
5904 VXWORKS_NEEDS_VXTYPES_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5905 aVxworks_Needs_VxtypesTests, apzVxworks_Needs_VxtypesPatch },
5906
5907 { zVxworks_Needs_VxworksName, zVxworks_Needs_VxworksList,
5908 apzVxworks_Needs_VxworksMachs,
5909 VXWORKS_NEEDS_VXWORKS_TEST_CT, FD_MACH_ONLY,
5910 aVxworks_Needs_VxworksTests, apzVxworks_Needs_VxworksPatch },
5911
5912 { zVxworks_TimeName, zVxworks_TimeList,
5913 apzVxworks_TimeMachs,
5914 VXWORKS_TIME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5915 aVxworks_TimeTests, apzVxworks_TimePatch },
5916
5917 { zX11_ClassName, zX11_ClassList,
5918 apzX11_ClassMachs,
5919 X11_CLASS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5920 aX11_ClassTests, apzX11_ClassPatch },
5921
5922 { zX11_Class_UsageName, zX11_Class_UsageList,
5923 apzX11_Class_UsageMachs,
5924 X11_CLASS_USAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5925 aX11_Class_UsageTests, apzX11_Class_UsagePatch },
5926
5927 { zX11_NewName, zX11_NewList,
5928 apzX11_NewMachs,
5929 X11_NEW_TEST_CT, FD_MACH_ONLY,
5930 aX11_NewTests, apzX11_NewPatch },
5931
5932 { zX11_SprintfName, zX11_SprintfList,
5933 apzX11_SprintfMachs,
5934 X11_SPRINTF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5935 aX11_SprintfTests, apzX11_SprintfPatch }
5936 };