]>
Commit | Line | Data |
---|---|---|
d45e22c2 | 1 | /* -*- buffer-read-only: t -*- vi: set ro: |
2 | * | |
3 | * DO NOT EDIT THIS FILE (fixincl.x) | |
4 | * | |
5dabcff3 | 5 | * It has been AutoGen-ed Saturday February 18, 2006 at 07:55:23 AM PST |
d45e22c2 | 6 | * From the definitions inclhack.def |
7 | * and the template file fixincl | |
8 | */ | |
5dabcff3 | 9 | /* DO NOT CVS-MERGE THIS FILE, EITHER Sat Feb 18 07:55:23 PST 2006 |
d45e22c2 | 10 | * |
11 | * You must regenerate it. Use the ./genfixes script. | |
fdb8fb96 | 12 | * |
d45e22c2 | 13 | * |
14 | * This is part of the fixincl program used to install modified versions of | |
15 | * certain ANSI-incompatible system header files which are fixed to work | |
16 | * correctly with ANSI C and placed in a directory that GNU C will search. | |
fdb8fb96 | 17 | * |
5dabcff3 | 18 | * This file contains 195 fixup descriptions. |
fdb8fb96 | 19 | * |
49e3683c | 20 | * See README for more information. |
fdb8fb96 | 21 | * |
49e3683c | 22 | * inclhack copyright (c) 1998, 1999, 2000, 2001 |
d4c4b01d | 23 | * The Free Software Foundation, Inc. |
c1b28c63 | 24 | * |
5c0b86e6 | 25 | * inclhack is free software. |
fdb8fb96 | 26 | * |
27 | * You may redistribute it and/or modify it under the terms of the | |
28 | * GNU General Public License, as published by the Free Software | |
baee91be | 29 | * Foundation; either version 2, or (at your option) any later version. |
fdb8fb96 | 30 | * |
31 | * inclhack is distributed in the hope that it will be useful, | |
32 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
33 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | |
34 | * See the GNU General Public License for more details. | |
35 | * | |
36 | * You should have received a copy of the GNU General Public License | |
baee91be | 37 | * along with inclhack. See the file "COPYING". If not, |
38 | * write to: The Free Software Foundation, Inc., | |
39 | * 59 Temple Place - Suite 330, | |
40 | * Boston, MA 02111-1307, USA. | |
d4c4b01d | 41 | */ |
42 | ||
f2563b02 | 43 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
44 | * | |
45 | * Description of Aab_Darwin7_9_Long_Double_Funcs fix | |
46 | */ | |
47 | tSCC zAab_Darwin7_9_Long_Double_FuncsName[] = | |
48 | "AAB_darwin7_9_long_double_funcs"; | |
49 | ||
50 | /* | |
51 | * File name selection pattern | |
52 | */ | |
53 | tSCC zAab_Darwin7_9_Long_Double_FuncsList[] = | |
54 | "|architecture/ppc/math.h|"; | |
55 | /* | |
56 | * Machine/OS name selection pattern | |
57 | */ | |
58 | tSCC* apzAab_Darwin7_9_Long_Double_FuncsMachs[] = { | |
59 | "*-*-darwin7.9*", | |
60 | (const char*)NULL }; | |
61 | ||
62 | /* | |
63 | * content bypass pattern - skip fix if pattern found | |
64 | */ | |
65 | tSCC zAab_Darwin7_9_Long_Double_FuncsBypass0[] = | |
66 | "powl"; | |
67 | ||
68 | #define AAB_DARWIN7_9_LONG_DOUBLE_FUNCS_TEST_CT 1 | |
69 | static tTestDesc aAab_Darwin7_9_Long_Double_FuncsTests[] = { | |
70 | { TT_NEGREP, zAab_Darwin7_9_Long_Double_FuncsBypass0, (regex_t*)NULL }, }; | |
71 | ||
72 | /* | |
73 | * Fix Command Arguments for Aab_Darwin7_9_Long_Double_Funcs | |
74 | */ | |
75 | static const char* apzAab_Darwin7_9_Long_Double_FuncsPatch[] = { | |
76 | "/* This file prototypes the long double functions available on Mac OS\n\ | |
77 | 10.3.9. */\n\ | |
78 | #ifndef __MATH__\n\ | |
baee91be | 79 | # undef __APPLE_CC__\n\ |
80 | # define __APPLE_CC__ 1345\n\ | |
f2563b02 | 81 | # include_next <architecture/ppc/math.h>\n\ |
baee91be | 82 | # undef __APPLE_CC__\n\ |
83 | # define __APPLE_CC__ 1\n\ | |
f2563b02 | 84 | # ifndef __LIBMLDBL_COMPAT\n\ |
85 | # ifdef __LONG_DOUBLE_128__\n\ | |
86 | # define __LIBMLDBL_COMPAT(sym) __asm(\"_\" #sym \"$LDBL128\")\n\ | |
87 | # else\n\ | |
88 | # define __LIBMLDBL_COMPAT(sym)\n\ | |
89 | # endif /* __LONG_DOUBLE_128__ */\n\ | |
90 | # endif /* __LIBMLDBL_COMPAT */\n\ | |
91 | # ifdef __cplusplus\n\ | |
92 | extern \"C\" {\n\ | |
93 | # endif\n\ | |
94 | extern long double acosl( long double ) __LIBMLDBL_COMPAT(acosl);\n\ | |
95 | extern long double asinl( long double ) __LIBMLDBL_COMPAT(asinl);\n\ | |
96 | extern long double atanl( long double ) __LIBMLDBL_COMPAT(atanl);\n\ | |
97 | extern long double atan2l( long double, long double ) __LIBMLDBL_COMPAT(atan2l);\n\ | |
98 | extern long double cosl( long double ) __LIBMLDBL_COMPAT(cosl);\n\ | |
99 | extern long double sinl( long double ) __LIBMLDBL_COMPAT(sinl);\n\ | |
100 | extern long double tanl( long double ) __LIBMLDBL_COMPAT(tanl);\n\ | |
101 | extern long double acoshl( long double ) __LIBMLDBL_COMPAT(acoshl);\n\ | |
102 | extern long double asinhl( long double ) __LIBMLDBL_COMPAT(asinhl);\n\ | |
103 | extern long double atanhl( long double ) __LIBMLDBL_COMPAT(atanhl);\n\ | |
104 | extern long double coshl( long double ) __LIBMLDBL_COMPAT(coshl);\n\ | |
105 | extern long double sinhl( long double ) __LIBMLDBL_COMPAT(sinhl);\n\ | |
106 | extern long double tanhl( long double ) __LIBMLDBL_COMPAT(tanhl);\n\ | |
107 | extern long double expl( long double ) __LIBMLDBL_COMPAT(expl);\n\ | |
108 | extern long double exp2l( long double ) __LIBMLDBL_COMPAT(exp2l);\n\ | |
109 | extern long double expm1l( long double ) __LIBMLDBL_COMPAT(expm1l);\n\ | |
110 | extern long double logl( long double ) __LIBMLDBL_COMPAT(logl);\n\ | |
111 | extern long double log10l( long double ) __LIBMLDBL_COMPAT(log10l);\n\ | |
112 | extern long double log2l( long double ) __LIBMLDBL_COMPAT(log2l);\n\ | |
113 | extern long double log1pl( long double ) __LIBMLDBL_COMPAT(log1pl);\n\ | |
114 | extern long double logbl( long double ) __LIBMLDBL_COMPAT(logbl);\n\ | |
115 | extern long double modfl( long double, long double * ) __LIBMLDBL_COMPAT(modfl);\n\ | |
116 | extern long double ldexpl( long double, int ) __LIBMLDBL_COMPAT(ldexpl);\n\ | |
117 | extern long double frexpl( long double, int * ) __LIBMLDBL_COMPAT(frexpl);\n\ | |
118 | extern int ilogbl( long double ) __LIBMLDBL_COMPAT(ilogbl);\n\ | |
119 | extern long double scalbnl( long double, int ) __LIBMLDBL_COMPAT(scalbnl);\n\ | |
120 | extern long double scalblnl( long double, long int ) __LIBMLDBL_COMPAT(scalblnl);\n\ | |
121 | extern long double fabsl( long double ) __LIBMLDBL_COMPAT(fabsl);\n\ | |
122 | extern long double cbrtl( long double ) __LIBMLDBL_COMPAT(cbrtl);\n\ | |
123 | extern long double hypotl( long double, long double ) __LIBMLDBL_COMPAT(hypotl);\n\ | |
124 | extern long double powl( long double, long double ) __LIBMLDBL_COMPAT(powl);\n\ | |
125 | extern long double sqrtl( long double ) __LIBMLDBL_COMPAT(sqrtl);\n\ | |
126 | extern long double erfl( long double ) __LIBMLDBL_COMPAT(erfl);\n\ | |
127 | extern long double erfcl( long double ) __LIBMLDBL_COMPAT(erfcl);\n\ | |
128 | extern long double lgammal( long double ) __LIBMLDBL_COMPAT(lgammal);\n\ | |
129 | extern long double tgammal( long double ) __LIBMLDBL_COMPAT(tgammal);\n\ | |
130 | extern long double ceill( long double ) __LIBMLDBL_COMPAT(ceill);\n\ | |
131 | extern long double floorl( long double ) __LIBMLDBL_COMPAT(floorl);\n\ | |
132 | extern long double nearbyintl( long double ) __LIBMLDBL_COMPAT(nearbyintl);\n\ | |
133 | extern long double rintl( long double ) __LIBMLDBL_COMPAT(rintl);\n\ | |
134 | extern long int lrintl( long double ) __LIBMLDBL_COMPAT(lrintl);\n\ | |
135 | extern long long int llrintl( long double ) __LIBMLDBL_COMPAT(llrintl);\n\ | |
136 | extern long double roundl( long double ) __LIBMLDBL_COMPAT(roundl);\n\ | |
137 | extern long int lroundl( long double ) __LIBMLDBL_COMPAT(lroundl);\n\ | |
138 | extern long long int llroundl( long double ) __LIBMLDBL_COMPAT(llroundl);\n\ | |
139 | extern long double truncl( long double ) __LIBMLDBL_COMPAT(truncl);\n\ | |
140 | extern long double fmodl( long double, long double) __LIBMLDBL_COMPAT(fmodl);\n\ | |
141 | extern long double remainderl( long double, long double ) __LIBMLDBL_COMPAT(remainderl);\n\ | |
142 | extern long double remquol( long double, long double, int * ) __LIBMLDBL_COMPAT(remquol);\n\ | |
143 | extern long double copysignl( long double, long double ) __LIBMLDBL_COMPAT(copysignl);\n\ | |
144 | extern long double nanl( const char * ) __LIBMLDBL_COMPAT(nanl);\n\ | |
145 | extern long double nextafterl( long double, long double ) __LIBMLDBL_COMPAT(nextafterl);\n\ | |
146 | extern long double nexttowardl( long double, long double ) __LIBMLDBL_COMPAT(nexttowardl);\n\ | |
147 | extern long double fdiml( long double, long double ) __LIBMLDBL_COMPAT(fdiml);\n\ | |
148 | extern long double fmaxl( long double, long double ) __LIBMLDBL_COMPAT(fmaxl);\n\ | |
149 | extern long double fminl( long double, long double ) __LIBMLDBL_COMPAT(fminl);\n\ | |
150 | extern long double fmal( long double, long double, long double ) __LIBMLDBL_COMPAT(fmal);\n\ | |
151 | # ifdef __cplusplus\n\ | |
152 | }\n\ | |
153 | # endif\n\ | |
154 | #endif /* __MATH__ */", | |
155 | (char*)NULL }; | |
156 | ||
157 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
158 | * | |
159 | * Description of Aab_Darwin7_9_Long_Double_Funcs_2 fix | |
160 | */ | |
161 | tSCC zAab_Darwin7_9_Long_Double_Funcs_2Name[] = | |
162 | "AAB_darwin7_9_long_double_funcs_2"; | |
163 | ||
164 | /* | |
165 | * File name selection pattern | |
166 | */ | |
167 | tSCC zAab_Darwin7_9_Long_Double_Funcs_2List[] = | |
168 | "|math.h|"; | |
169 | /* | |
170 | * Machine/OS name selection pattern | |
171 | */ | |
172 | tSCC* apzAab_Darwin7_9_Long_Double_Funcs_2Machs[] = { | |
173 | "*-*-darwin7.9*", | |
174 | (const char*)NULL }; | |
175 | ||
176 | /* | |
177 | * content selection pattern - do fix if pattern found | |
178 | */ | |
179 | tSCC zAab_Darwin7_9_Long_Double_Funcs_2Select0[] = | |
180 | "#include[ \\t]+\\\""; | |
181 | ||
182 | #define AAB_DARWIN7_9_LONG_DOUBLE_FUNCS_2_TEST_CT 1 | |
183 | static tTestDesc aAab_Darwin7_9_Long_Double_Funcs_2Tests[] = { | |
184 | { TT_EGREP, zAab_Darwin7_9_Long_Double_Funcs_2Select0, (regex_t*)NULL }, }; | |
185 | ||
186 | /* | |
187 | * Fix Command Arguments for Aab_Darwin7_9_Long_Double_Funcs_2 | |
188 | */ | |
189 | static const char* apzAab_Darwin7_9_Long_Double_Funcs_2Patch[] = { | |
190 | "format", | |
191 | "%1<%2.h>", | |
192 | "([ \\t]*#[ \\t]*include[ \\t]+)\"([a-z0-9/]+)\\.h\"", | |
193 | (char*)NULL }; | |
194 | ||
e26c299a | 195 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
196 | * | |
bb304030 | 197 | * Description of Aab_Fd_Zero_Asm_Posix_Types_H fix |
e26c299a | 198 | */ |
bb304030 | 199 | tSCC zAab_Fd_Zero_Asm_Posix_Types_HName[] = |
d4c4b01d | 200 | "AAB_fd_zero_asm_posix_types_h"; |
201 | ||
e26c299a | 202 | /* |
203 | * File name selection pattern | |
204 | */ | |
bb304030 | 205 | tSCC zAab_Fd_Zero_Asm_Posix_Types_HList[] = |
e26c299a | 206 | "|asm/posix_types.h|"; |
207 | /* | |
208 | * Machine/OS name selection pattern | |
209 | */ | |
bb304030 | 210 | tSCC* apzAab_Fd_Zero_Asm_Posix_Types_HMachs[] = { |
e800dd2f | 211 | "i[34567]86-*-linux*", |
90c7fd7a | 212 | (const char*)NULL }; |
e26c299a | 213 | |
214 | /* | |
bb304030 | 215 | * content bypass pattern - skip fix if pattern found |
e26c299a | 216 | */ |
bb304030 | 217 | tSCC zAab_Fd_Zero_Asm_Posix_Types_HBypass0[] = |
218 | "} while"; | |
219 | ||
220 | #define AAB_FD_ZERO_ASM_POSIX_TYPES_H_TEST_CT 1 | |
2548396b | 221 | static tTestDesc aAab_Fd_Zero_Asm_Posix_Types_HTests[] = { |
bb304030 | 222 | { TT_NEGREP, zAab_Fd_Zero_Asm_Posix_Types_HBypass0, (regex_t*)NULL }, }; |
223 | ||
224 | /* | |
225 | * Fix Command Arguments for Aab_Fd_Zero_Asm_Posix_Types_H | |
226 | */ | |
2548396b | 227 | static const char* apzAab_Fd_Zero_Asm_Posix_Types_HPatch[] = { |
bb304030 | 228 | "/* This file fixes a bug in the __FD_ZERO macro\n\ |
229 | for older versions of the Linux kernel. */\n\ | |
e26c299a | 230 | #ifndef _POSIX_TYPES_H_WRAPPER\n\ |
231 | #include <features.h>\n\ | |
5c0b86e6 | 232 | #include_next <asm/posix_types.h>\n\n\ |
e26c299a | 233 | #if defined(__FD_ZERO) && !defined(__GLIBC__)\n\ |
234 | #undef __FD_ZERO\n\ | |
bb304030 | 235 | #define __FD_ZERO(fdsetp) \\\n\ |
236 | do { \\\n\ | |
237 | int __d0, __d1; \\\n\ | |
68d0517a | 238 | __asm__ __volatile__(\"cld ; rep ; stosl\" \\\n\ |
239 | : \"=&c\" (__d0), \"=&D\" (__d1) \\\n\ | |
240 | : \"a\" (0), \"0\" (__FDSET_LONGS), \\\n\ | |
241 | \"1\" ((__kernel_fd_set *) (fdsetp)) :\"memory\"); \\\n\ | |
bb304030 | 242 | } while (0)\n\ |
5c0b86e6 | 243 | #endif\n\n\ |
e26c299a | 244 | #define _POSIX_TYPES_H_WRAPPER\n\ |
68d0517a | 245 | #endif /* _POSIX_TYPES_H_WRAPPER */", |
e26c299a | 246 | (char*)NULL }; |
247 | ||
248 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
249 | * | |
bb304030 | 250 | * Description of Aab_Fd_Zero_Gnu_Types_H fix |
e26c299a | 251 | */ |
bb304030 | 252 | tSCC zAab_Fd_Zero_Gnu_Types_HName[] = |
d4c4b01d | 253 | "AAB_fd_zero_gnu_types_h"; |
254 | ||
e26c299a | 255 | /* |
256 | * File name selection pattern | |
257 | */ | |
bb304030 | 258 | tSCC zAab_Fd_Zero_Gnu_Types_HList[] = |
e26c299a | 259 | "|gnu/types.h|"; |
260 | /* | |
261 | * Machine/OS name selection pattern | |
262 | */ | |
bb304030 | 263 | tSCC* apzAab_Fd_Zero_Gnu_Types_HMachs[] = { |
e800dd2f | 264 | "i[34567]86-*-linux*", |
90c7fd7a | 265 | (const char*)NULL }; |
bb304030 | 266 | #define AAB_FD_ZERO_GNU_TYPES_H_TEST_CT 0 |
bb304030 | 267 | #define aAab_Fd_Zero_Gnu_Types_HTests (tTestDesc*)NULL |
e26c299a | 268 | |
269 | /* | |
bb304030 | 270 | * Fix Command Arguments for Aab_Fd_Zero_Gnu_Types_H |
e26c299a | 271 | */ |
2548396b | 272 | static const char* apzAab_Fd_Zero_Gnu_Types_HPatch[] = { |
bb304030 | 273 | "/* This file fixes a bug in the __FD_ZERO macro present in glibc 1.x. */\n\ |
e26c299a | 274 | #ifndef _TYPES_H_WRAPPER\n\ |
275 | #include <features.h>\n\ | |
2b5c5c15 | 276 | #include_next <gnu/types.h>\n\n\ |
e26c299a | 277 | #if defined(__FD_ZERO) && !defined(__GLIBC__)\n\ |
278 | #undef __FD_ZERO\n\ | |
9b20d84f | 279 | # define __FD_ZERO(fdsetp) \\\n\ |
280 | do { \\\n\ | |
281 | int __d0, __d1; \\\n\ | |
282 | __asm__ __volatile__(\"cld ; rep ; stosl\" \\\n\ | |
283 | : \"=&c\" (__d0), \"=&D\" (__d1) \\\n\ | |
284 | : \"a\" (0), \"0\" (__FDSET_LONGS), \\\n\ | |
285 | \"1\" ((__fd_set *) (fdsetp)) :\"memory\"); \\\n\ | |
bb304030 | 286 | } while (0)\n\ |
5c0b86e6 | 287 | #endif\n\n\ |
e26c299a | 288 | #define _TYPES_H_WRAPPER\n\ |
2b5c5c15 | 289 | #endif /* _TYPES_H_WRAPPER */", |
e26c299a | 290 | (char*)NULL }; |
291 | ||
292 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
293 | * | |
bb304030 | 294 | * Description of Aab_Fd_Zero_Selectbits_H fix |
e26c299a | 295 | */ |
bb304030 | 296 | tSCC zAab_Fd_Zero_Selectbits_HName[] = |
d4c4b01d | 297 | "AAB_fd_zero_selectbits_h"; |
298 | ||
e26c299a | 299 | /* |
300 | * File name selection pattern | |
301 | */ | |
bb304030 | 302 | tSCC zAab_Fd_Zero_Selectbits_HList[] = |
e26c299a | 303 | "|selectbits.h|"; |
304 | /* | |
305 | * Machine/OS name selection pattern | |
306 | */ | |
bb304030 | 307 | tSCC* apzAab_Fd_Zero_Selectbits_HMachs[] = { |
e800dd2f | 308 | "i[34567]86-*-linux*", |
90c7fd7a | 309 | (const char*)NULL }; |
bb304030 | 310 | #define AAB_FD_ZERO_SELECTBITS_H_TEST_CT 0 |
bb304030 | 311 | #define aAab_Fd_Zero_Selectbits_HTests (tTestDesc*)NULL |
e26c299a | 312 | |
313 | /* | |
bb304030 | 314 | * Fix Command Arguments for Aab_Fd_Zero_Selectbits_H |
e26c299a | 315 | */ |
2548396b | 316 | static const char* apzAab_Fd_Zero_Selectbits_HPatch[] = { |
bb304030 | 317 | "/* This file fixes a bug in the __FD_ZERO macro present in glibc 2.0.x. */\n\ |
e26c299a | 318 | #ifndef _SELECTBITS_H_WRAPPER\n\ |
2b5c5c15 | 319 | #include <features.h>\n\ |
320 | #include_next <selectbits.h>\n\n\ | |
321 | #if defined(__FD_ZERO) && defined(__GLIBC__) \\\\\n\ | |
322 | && defined(__GLIBC_MINOR__) && __GLIBC__ == 2 \\\\\n\ | |
323 | && __GLIBC_MINOR__ == 0\n\ | |
324 | #undef __FD_ZERO\n\ | |
325 | #define __FD_ZERO(fdsetp) \\\\\n\ | |
326 | do { \\\\\n\ | |
327 | int __d0, __d1; \\\\\n\ | |
328 | __asm__ __volatile__ (\"cld; rep; stosl\" \\\\\n\ | |
329 | : \"=&c\" (__d0), \"=&D\" (__d1) \\\\\n\ | |
330 | : \"a\" (0), \"0\" (sizeof (__fd_set) \\\\\n\ | |
331 | / sizeof (__fd_mask)), \\\\\n\ | |
332 | \"1\" ((__fd_mask *) (fdsetp)) \\\\\n\ | |
333 | : \"memory\"); \\\\\n\ | |
334 | } while (0)\n\ | |
335 | #endif\n\n\ | |
336 | #define _SELECTBITS_H_WRAPPER\n\ | |
337 | #endif /* _SELECTBITS_H_WRAPPER */", | |
e26c299a | 338 | (char*)NULL }; |
339 | ||
b93c3ed1 | 340 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
341 | * | |
342 | * Description of Aab_Solaris_Sys_Varargs_H fix | |
343 | */ | |
344 | tSCC zAab_Solaris_Sys_Varargs_HName[] = | |
345 | "AAB_solaris_sys_varargs_h"; | |
346 | ||
347 | /* | |
348 | * File name selection pattern | |
349 | */ | |
350 | tSCC zAab_Solaris_Sys_Varargs_HList[] = | |
351 | "|sys/varargs.h|"; | |
352 | /* | |
353 | * Machine/OS name selection pattern | |
354 | */ | |
355 | tSCC* apzAab_Solaris_Sys_Varargs_HMachs[] = { | |
356 | "*-*-solaris*", | |
357 | (const char*)NULL }; | |
358 | #define AAB_SOLARIS_SYS_VARARGS_H_TEST_CT 0 | |
359 | #define aAab_Solaris_Sys_Varargs_HTests (tTestDesc*)NULL | |
360 | ||
361 | /* | |
362 | * Fix Command Arguments for Aab_Solaris_Sys_Varargs_H | |
363 | */ | |
364 | static const char* apzAab_Solaris_Sys_Varargs_HPatch[] = { | |
365 | "#ifdef __STDC__\n\ | |
2b5c5c15 | 366 | #include <stdarg.h>\n\ |
b93c3ed1 | 367 | #else\n\ |
2b5c5c15 | 368 | #include <varargs.h>\n\ |
369 | #endif", | |
b93c3ed1 | 370 | (char*)NULL }; |
371 | ||
d6d7d999 | 372 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
373 | * | |
374 | * Description of Aab_Sun_Memcpy fix | |
375 | */ | |
d6d7d999 | 376 | tSCC zAab_Sun_MemcpyName[] = |
d4c4b01d | 377 | "AAB_sun_memcpy"; |
378 | ||
d6d7d999 | 379 | /* |
380 | * File name selection pattern | |
381 | */ | |
382 | tSCC zAab_Sun_MemcpyList[] = | |
383 | "|memory.h|"; | |
384 | /* | |
385 | * Machine/OS name selection pattern | |
386 | */ | |
387 | #define apzAab_Sun_MemcpyMachs (const char**)NULL | |
388 | ||
389 | /* | |
390 | * content selection pattern - do fix if pattern found | |
391 | */ | |
392 | tSCC zAab_Sun_MemcpySelect0[] = | |
393 | "/\\*\t@\\(#\\)(head/memory.h\t50.1\t |memory\\.h 1\\.[2-4] 8./../.. SMI; from S5R2 1\\.2\t)\\*/"; | |
394 | ||
395 | #define AAB_SUN_MEMCPY_TEST_CT 1 | |
2548396b | 396 | static tTestDesc aAab_Sun_MemcpyTests[] = { |
d6d7d999 | 397 | { TT_EGREP, zAab_Sun_MemcpySelect0, (regex_t*)NULL }, }; |
398 | ||
399 | /* | |
400 | * Fix Command Arguments for Aab_Sun_Memcpy | |
401 | */ | |
2548396b | 402 | static const char* apzAab_Sun_MemcpyPatch[] = { |
d6d7d999 | 403 | "/* This file was generated by fixincludes */\n\ |
404 | #ifndef __memory_h__\n\ | |
2b5c5c15 | 405 | #define __memory_h__\n\n\ |
406 | #ifdef __STDC__\n\ | |
407 | extern void *memccpy();\n\ | |
408 | extern void *memchr();\n\ | |
409 | extern void *memcpy();\n\ | |
410 | extern void *memset();\n\ | |
411 | #else\n\ | |
412 | extern char *memccpy();\n\ | |
413 | extern char *memchr();\n\ | |
414 | extern char *memcpy();\n\ | |
415 | extern char *memset();\n\ | |
416 | #endif /* __STDC__ */\n\n\ | |
417 | extern int memcmp();\n\n\ | |
418 | #endif /* __memory_h__ */\n\ | |
419 | _EndOfHeader;\n\ | |
420 | };\n\n\n\ | |
421 | /*\n\ | |
422 | * Completely replace <sys/varargs.h> with a file that includes gcc's\n\ | |
423 | * stdarg.h or varargs.h files as appropriate.\n\ | |
424 | */\n\ | |
425 | #ifdef SVR4\n\ | |
426 | fix = {\n\ | |
427 | hackname = AAB_svr4_no_varargs;\n\ | |
428 | files = sys/varargs.h;\n\ | |
429 | replace = \"/* This file was generated by fixincludes. */\\n\"\n\ | |
430 | \"#ifndef _SYS_VARARGS_H\\n\"\n\ | |
5f6aa019 | 431 | \"#define _SYS_VARARGS_H\\n\\n\"\n\n\ |
2b5c5c15 | 432 | \"#ifdef __STDC__\\n\"\n\ |
433 | \"#include <stdarg.h>\\n\"\n\ | |
434 | \"#else\\n\"\n\ | |
435 | \"#include <varargs.h>\\n\"\n\ | |
5f6aa019 | 436 | \"#endif\\n\\n\"\n\n\ |
2b5c5c15 | 437 | \"#endif /* _SYS_VARARGS_H */\\n\";\n\ |
438 | };\n\ | |
439 | #endif\n\n\n\ | |
440 | /*\n\ | |
f4343273 | 441 | * Completely replace <sys/byteorder.h> with a file that implements gcc's\n\ |
442 | * optimized byteswapping. (The original probably implemented some\n\ | |
443 | * incompatible optimized byteswapping.)\n\ | |
2b5c5c15 | 444 | */\n\ |
445 | fix = {\n\ | |
446 | hackname = AAB_svr4_replace_byteorder;\n\ | |
2b5c5c15 | 447 | mach = \"*-*-sysv4*\";\n\ |
448 | mach = \"i[34567]86-*-sysv5*\";\n\ | |
3c04ceca | 449 | mach = \"i[34567]86-*-sco3.2v5*\";\n\ |
2b5c5c15 | 450 | mach = \"i[34567]86-*-udk*\";\n\ |
451 | mach = \"i[34567]86-*-solaris2.[0-4]\";\n\ | |
452 | mach = \"powerpcle-*-solaris2.[0-4]\";\n\ | |
453 | mach = \"sparc-*-solaris2.[0-4]\";\n\ | |
f4343273 | 454 | mach = \"i[34567]86-sequent-ptx*\";\n\ |
2b5c5c15 | 455 | files = sys/byteorder.h;\n\ |
456 | replace = <<- _EndOfHeader_\n\ | |
457 | #ifndef _SYS_BYTEORDER_H\n\ | |
5c0b86e6 | 458 | #define _SYS_BYTEORDER_H\n\n\ |
b87083eb | 459 | /* Functions to convert `short' and `long' quantities from host byte order\n\ |
5c0b86e6 | 460 | to (internet) network byte order (i.e. big-endian).\n\n\ |
461 | Written by Ron Guilmette (rfg@ncd.com).\n\n\ | |
b87083eb | 462 | This isn't actually used by GCC. It is installed by fixinc.svr4.\n\n\ |
5c0b86e6 | 463 | For big-endian machines these functions are essentially no-ops.\n\n\ |
d08a0ac4 | 464 | For little-endian machines, we define the functions using specialized\n\ |
5c0b86e6 | 465 | asm sequences in cases where doing so yields better code (e.g. i386). */\n\n\ |
d08a0ac4 | 466 | #if !defined (__GNUC__) && !defined (__GNUG__)\n\ |
2b5c5c15 | 467 | #error You lose! This file is only useful with GNU compilers.\n\ |
5c0b86e6 | 468 | #endif\n\n\ |
d08a0ac4 | 469 | #ifndef __BYTE_ORDER__\n\ |
2b5c5c15 | 470 | /* Byte order defines. These are as defined on UnixWare 1.1, but with\n\ |
471 | double underscores added at the front and back. */\n\ | |
472 | #define __LITTLE_ENDIAN__ 1234\n\ | |
473 | #define __BIG_ENDIAN__ 4321\n\ | |
474 | #define __PDP_ENDIAN__ 3412\n\ | |
5c0b86e6 | 475 | #endif\n\n\ |
d08a0ac4 | 476 | #ifdef __STDC__\n\ |
2b5c5c15 | 477 | static __inline__ unsigned long htonl (unsigned long);\n\ |
478 | static __inline__ unsigned short htons (unsigned int);\n\ | |
479 | static __inline__ unsigned long ntohl (unsigned long);\n\ | |
480 | static __inline__ unsigned short ntohs (unsigned int);\n\ | |
5c0b86e6 | 481 | #endif /* defined (__STDC__) */\n\n\ |
482 | #if defined (__i386__)\n\n\ | |
2b5c5c15 | 483 | #ifndef __BYTE_ORDER__\n\ |
484 | #define __BYTE_ORDER__ __LITTLE_ENDIAN__\n\ | |
485 | #endif\n\n\ | |
486 | /* Convert a host long to a network long. */\n\n\ | |
487 | /* We must use a new-style function definition, so that this will also\n\ | |
488 | be valid for C++. */\n\ | |
489 | static __inline__ unsigned long\n\ | |
490 | htonl (unsigned long __arg)\n\ | |
491 | {\n\ | |
492 | register unsigned long __result;\n\n\ | |
493 | __asm__ (\"xchg%B0 %b0,%h0\n\ | |
494 | ror%L0 $16,%0\n\ | |
495 | xchg%B0 %b0,%h0\" : \"=q\" (__result) : \"0\" (__arg));\n\ | |
496 | return __result;\n\ | |
497 | }\n\n\ | |
498 | /* Convert a host short to a network short. */\n\n\ | |
499 | static __inline__ unsigned short\n\ | |
500 | htons (unsigned int __arg)\n\ | |
501 | {\n\ | |
502 | register unsigned short __result;\n\n\ | |
503 | __asm__ (\"xchg%B0 %b0,%h0\" : \"=q\" (__result) : \"0\" (__arg));\n\ | |
504 | return __result;\n\ | |
505 | }\n\n\ | |
506 | #elif (defined (__ns32k__) || defined (__vax__) || defined (__arm__))\n\n\ | |
507 | #ifndef __BYTE_ORDER__\n\ | |
508 | #define __BYTE_ORDER__ __LITTLE_ENDIAN__\n\ | |
509 | #endif\n\n\ | |
510 | /* For other little-endian machines, using C code is just as efficient as\n\ | |
511 | using assembly code. */\n\n\ | |
512 | /* Convert a host long to a network long. */\n\n\ | |
513 | static __inline__ unsigned long\n\ | |
514 | htonl (unsigned long __arg)\n\ | |
515 | {\n\ | |
516 | register unsigned long __result;\n\n\ | |
517 | __result = (__arg >> 24) & 0x000000ff;\n\ | |
518 | __result |= (__arg >> 8) & 0x0000ff00;\n\ | |
519 | __result |= (__arg << 8) & 0x00ff0000;\n\ | |
520 | __result |= (__arg << 24) & 0xff000000;\n\ | |
521 | return __result;\n\ | |
522 | }\n\n\ | |
523 | /* Convert a host short to a network short. */\n\n\ | |
524 | static __inline__ unsigned short\n\ | |
525 | htons (unsigned int __arg)\n\ | |
526 | {\n\ | |
527 | register unsigned short __result;\n\n\ | |
528 | __result = (__arg << 8) & 0xff00;\n\ | |
529 | __result |= (__arg >> 8) & 0x00ff;\n\ | |
530 | return __result;\n\ | |
531 | }\n\n\ | |
5c0b86e6 | 532 | #else /* must be a big-endian machine */\n\n\ |
2b5c5c15 | 533 | #ifndef __BYTE_ORDER__\n\ |
534 | #define __BYTE_ORDER__ __BIG_ENDIAN__\n\ | |
535 | #endif\n\n\ | |
536 | /* Convert a host long to a network long. */\n\n\ | |
537 | static __inline__ unsigned long\n\ | |
538 | htonl (unsigned long __arg)\n\ | |
539 | {\n\ | |
540 | return __arg;\n\ | |
541 | }\n\n\ | |
542 | /* Convert a host short to a network short. */\n\n\ | |
543 | static __inline__ unsigned short\n\ | |
544 | htons (unsigned int __arg)\n\ | |
545 | {\n\ | |
546 | return __arg;\n\ | |
547 | }\n\n\ | |
5c0b86e6 | 548 | #endif /* big-endian */\n\n\ |
549 | /* Convert a network long to a host long. */\n\n\ | |
d08a0ac4 | 550 | static __inline__ unsigned long\n\ |
551 | ntohl (unsigned long __arg)\n\ | |
552 | {\n\ | |
553 | return htonl (__arg);\n\ | |
5c0b86e6 | 554 | }\n\n\ |
555 | /* Convert a network short to a host short. */\n\n\ | |
d08a0ac4 | 556 | static __inline__ unsigned short\n\ |
557 | ntohs (unsigned int __arg)\n\ | |
558 | {\n\ | |
559 | return htons (__arg);\n\ | |
560 | }\n\ | |
2b5c5c15 | 561 | #endif", |
7ab961ad | 562 | (char*)NULL }; |
563 | ||
564 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
565 | * | |
566 | * Description of Aab_Ultrix_Ansi_Compat fix | |
567 | */ | |
568 | tSCC zAab_Ultrix_Ansi_CompatName[] = | |
569 | "AAB_ultrix_ansi_compat"; | |
570 | ||
571 | /* | |
572 | * File name selection pattern | |
573 | */ | |
574 | tSCC zAab_Ultrix_Ansi_CompatList[] = | |
575 | "|ansi_compat.h|"; | |
576 | /* | |
577 | * Machine/OS name selection pattern | |
578 | */ | |
579 | #define apzAab_Ultrix_Ansi_CompatMachs (const char**)NULL | |
580 | ||
581 | /* | |
582 | * content selection pattern - do fix if pattern found | |
583 | */ | |
584 | tSCC zAab_Ultrix_Ansi_CompatSelect0[] = | |
585 | "ULTRIX"; | |
586 | ||
587 | #define AAB_ULTRIX_ANSI_COMPAT_TEST_CT 1 | |
588 | static tTestDesc aAab_Ultrix_Ansi_CompatTests[] = { | |
589 | { TT_EGREP, zAab_Ultrix_Ansi_CompatSelect0, (regex_t*)NULL }, }; | |
590 | ||
591 | /* | |
592 | * Fix Command Arguments for Aab_Ultrix_Ansi_Compat | |
593 | */ | |
594 | static const char* apzAab_Ultrix_Ansi_CompatPatch[] = { | |
595 | "/* This file intentionally left blank. */\n", | |
596 | (char*)NULL }; | |
597 | ||
598 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
599 | * | |
600 | * Description of Aab_Ultrix_Limits fix | |
601 | */ | |
602 | tSCC zAab_Ultrix_LimitsName[] = | |
603 | "AAB_ultrix_limits"; | |
604 | ||
605 | /* | |
606 | * File name selection pattern | |
607 | */ | |
608 | tSCC zAab_Ultrix_LimitsList[] = | |
609 | "|limits.h|"; | |
610 | /* | |
611 | * Machine/OS name selection pattern | |
612 | */ | |
613 | tSCC* apzAab_Ultrix_LimitsMachs[] = { | |
614 | "*-*-ultrix4.3", | |
615 | (const char*)NULL }; | |
616 | #define AAB_ULTRIX_LIMITS_TEST_CT 0 | |
617 | #define aAab_Ultrix_LimitsTests (tTestDesc*)NULL | |
618 | ||
619 | /* | |
620 | * Fix Command Arguments for Aab_Ultrix_Limits | |
621 | */ | |
622 | static const char* apzAab_Ultrix_LimitsPatch[] = { | |
623 | "#ifndef _LIMITS_INCLUDED\n\ | |
2b5c5c15 | 624 | #define _LIMITS_INCLUDED\n\ |
625 | #include <sys/limits.h>\n\ | |
626 | #endif /* _LIMITS_INCLUDED */", | |
7ab961ad | 627 | (char*)NULL }; |
628 | ||
629 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
630 | * | |
631 | * Description of Aab_Ultrix_Memory fix | |
632 | */ | |
633 | tSCC zAab_Ultrix_MemoryName[] = | |
634 | "AAB_ultrix_memory"; | |
635 | ||
636 | /* | |
637 | * File name selection pattern | |
638 | */ | |
639 | tSCC zAab_Ultrix_MemoryList[] = | |
640 | "|memory.h|"; | |
641 | /* | |
642 | * Machine/OS name selection pattern | |
643 | */ | |
644 | tSCC* apzAab_Ultrix_MemoryMachs[] = { | |
645 | "*-*-ultrix4.3", | |
646 | (const char*)NULL }; | |
647 | #define AAB_ULTRIX_MEMORY_TEST_CT 0 | |
648 | #define aAab_Ultrix_MemoryTests (tTestDesc*)NULL | |
649 | ||
650 | /* | |
651 | * Fix Command Arguments for Aab_Ultrix_Memory | |
652 | */ | |
653 | static const char* apzAab_Ultrix_MemoryPatch[] = { | |
654 | "#ifndef _MEMORY_INCLUDED\n\ | |
2b5c5c15 | 655 | #define _MEMORY_INCLUDED\n\ |
656 | #include <strings.h>\n\ | |
657 | #endif /* _MEMORY_INCLUDED */", | |
7ab961ad | 658 | (char*)NULL }; |
659 | ||
660 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
661 | * | |
662 | * Description of Aab_Ultrix_String fix | |
663 | */ | |
664 | tSCC zAab_Ultrix_StringName[] = | |
665 | "AAB_ultrix_string"; | |
666 | ||
667 | /* | |
668 | * File name selection pattern | |
669 | */ | |
670 | tSCC zAab_Ultrix_StringList[] = | |
671 | "|string.h|"; | |
672 | /* | |
673 | * Machine/OS name selection pattern | |
674 | */ | |
675 | tSCC* apzAab_Ultrix_StringMachs[] = { | |
676 | "*-*-ultrix4.3", | |
677 | (const char*)NULL }; | |
678 | #define AAB_ULTRIX_STRING_TEST_CT 0 | |
679 | #define aAab_Ultrix_StringTests (tTestDesc*)NULL | |
680 | ||
681 | /* | |
682 | * Fix Command Arguments for Aab_Ultrix_String | |
683 | */ | |
684 | static const char* apzAab_Ultrix_StringPatch[] = { | |
685 | "#ifndef _STRING_INCLUDED\n\ | |
2b5c5c15 | 686 | #define _STRING_INCLUDED\n\ |
687 | #include <strings.h>\n\ | |
688 | #endif /* _STRING_INCLUDED */", | |
57829215 | 689 | (char*)NULL }; |
690 | ||
e494b1bb | 691 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
692 | * | |
693 | * Description of Aix_Pthread fix | |
694 | */ | |
e494b1bb | 695 | tSCC zAix_PthreadName[] = |
696 | "aix_pthread"; | |
697 | ||
698 | /* | |
699 | * File name selection pattern | |
700 | */ | |
701 | tSCC zAix_PthreadList[] = | |
702 | "|pthread.h|"; | |
703 | /* | |
704 | * Machine/OS name selection pattern | |
705 | */ | |
706 | #define apzAix_PthreadMachs (const char**)NULL | |
707 | ||
708 | /* | |
709 | * content selection pattern - do fix if pattern found | |
710 | */ | |
711 | tSCC zAix_PthreadSelect0[] = | |
712 | "(#define [A-Za-z_0-9]+)(\\\\\n\ | |
713 | [^A-Za-z_0-9 \t\n\ | |
714 | (])"; | |
715 | ||
716 | #define AIX_PTHREAD_TEST_CT 1 | |
2548396b | 717 | static tTestDesc aAix_PthreadTests[] = { |
e494b1bb | 718 | { TT_EGREP, zAix_PthreadSelect0, (regex_t*)NULL }, }; |
719 | ||
720 | /* | |
721 | * Fix Command Arguments for Aix_Pthread | |
722 | */ | |
2548396b | 723 | static const char* apzAix_PthreadPatch[] = { |
e494b1bb | 724 | "format", |
725 | "%1 %2", | |
726 | (char*)NULL }; | |
727 | ||
728 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
729 | * | |
730 | * Description of Aix_Sysmachine fix | |
731 | */ | |
e494b1bb | 732 | tSCC zAix_SysmachineName[] = |
733 | "aix_sysmachine"; | |
734 | ||
735 | /* | |
736 | * File name selection pattern | |
737 | */ | |
738 | tSCC zAix_SysmachineList[] = | |
739 | "|sys/machine.h|"; | |
740 | /* | |
741 | * Machine/OS name selection pattern | |
742 | */ | |
743 | #define apzAix_SysmachineMachs (const char**)NULL | |
744 | ||
745 | /* | |
746 | * content selection pattern - do fix if pattern found | |
747 | */ | |
748 | tSCC zAix_SysmachineSelect0[] = | |
749 | "\\\\ +\n"; | |
750 | ||
751 | #define AIX_SYSMACHINE_TEST_CT 1 | |
2548396b | 752 | static tTestDesc aAix_SysmachineTests[] = { |
e494b1bb | 753 | { TT_EGREP, zAix_SysmachineSelect0, (regex_t*)NULL }, }; |
754 | ||
755 | /* | |
756 | * Fix Command Arguments for Aix_Sysmachine | |
757 | */ | |
2548396b | 758 | static const char* apzAix_SysmachinePatch[] = { |
e494b1bb | 759 | "format", |
760 | "\\\n", | |
761 | (char*)NULL }; | |
762 | ||
5daf7ede | 763 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
764 | * | |
765 | * Description of Aix_Syswait fix | |
766 | */ | |
fdb8fb96 | 767 | tSCC zAix_SyswaitName[] = |
d4c4b01d | 768 | "aix_syswait"; |
769 | ||
fdb8fb96 | 770 | /* |
771 | * File name selection pattern | |
772 | */ | |
773 | tSCC zAix_SyswaitList[] = | |
0ec8e89b | 774 | "|sys/wait.h|"; |
fdb8fb96 | 775 | /* |
776 | * Machine/OS name selection pattern | |
777 | */ | |
778 | #define apzAix_SyswaitMachs (const char**)NULL | |
779 | ||
780 | /* | |
c1b28c63 | 781 | * content selection pattern - do fix if pattern found |
fdb8fb96 | 782 | */ |
783 | tSCC zAix_SyswaitSelect0[] = | |
49b4955b | 784 | "^extern pid_t wait3\\(\\);\n"; |
785 | tSCC zAix_SyswaitSelect1[] = | |
fdb8fb96 | 786 | "bos325,"; |
787 | ||
49b4955b | 788 | #define AIX_SYSWAIT_TEST_CT 2 |
2548396b | 789 | static tTestDesc aAix_SyswaitTests[] = { |
49b4955b | 790 | { TT_EGREP, zAix_SyswaitSelect0, (regex_t*)NULL }, |
791 | { TT_EGREP, zAix_SyswaitSelect1, (regex_t*)NULL }, }; | |
fdb8fb96 | 792 | |
793 | /* | |
794 | * Fix Command Arguments for Aix_Syswait | |
795 | */ | |
2548396b | 796 | static const char* apzAix_SyswaitPatch[] = { |
49b4955b | 797 | "format", |
798 | "struct rusage;\n\ | |
799 | %0", | |
fdb8fb96 | 800 | (char*)NULL }; |
801 | ||
85df6fdf | 802 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
803 | * | |
804 | * Description of Aix_Syswait_2 fix | |
805 | */ | |
806 | tSCC zAix_Syswait_2Name[] = | |
807 | "aix_syswait_2"; | |
808 | ||
809 | /* | |
810 | * File name selection pattern | |
811 | */ | |
812 | tSCC zAix_Syswait_2List[] = | |
813 | "|sys/wait.h|"; | |
814 | /* | |
815 | * Machine/OS name selection pattern | |
816 | */ | |
817 | #define apzAix_Syswait_2Machs (const char**)NULL | |
818 | ||
819 | /* | |
820 | * content selection pattern - do fix if pattern found | |
821 | */ | |
822 | tSCC zAix_Syswait_2Select0[] = | |
823 | "\\? (\\(\\(\\(\\(unsigned[^)]*\\)[^)]*\\) >> [^)]*\\) \\& 0xff\\) : -1)"; | |
824 | ||
825 | #define AIX_SYSWAIT_2_TEST_CT 1 | |
826 | static tTestDesc aAix_Syswait_2Tests[] = { | |
827 | { TT_EGREP, zAix_Syswait_2Select0, (regex_t*)NULL }, }; | |
828 | ||
829 | /* | |
830 | * Fix Command Arguments for Aix_Syswait_2 | |
831 | */ | |
832 | static const char* apzAix_Syswait_2Patch[] = { | |
833 | "format", | |
834 | "? (int)%1", | |
835 | (char*)NULL }; | |
836 | ||
fdb8fb96 | 837 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
838 | * | |
5daf7ede | 839 | * Description of Aix_Volatile fix |
fdb8fb96 | 840 | */ |
841 | tSCC zAix_VolatileName[] = | |
d4c4b01d | 842 | "aix_volatile"; |
843 | ||
fdb8fb96 | 844 | /* |
845 | * File name selection pattern | |
846 | */ | |
847 | tSCC zAix_VolatileList[] = | |
0ec8e89b | 848 | "|sys/signal.h|"; |
fdb8fb96 | 849 | /* |
850 | * Machine/OS name selection pattern | |
851 | */ | |
852 | #define apzAix_VolatileMachs (const char**)NULL | |
853 | ||
854 | /* | |
c1b28c63 | 855 | * content selection pattern - do fix if pattern found |
fdb8fb96 | 856 | */ |
857 | tSCC zAix_VolatileSelect0[] = | |
858 | "typedef volatile int sig_atomic_t"; | |
859 | ||
860 | #define AIX_VOLATILE_TEST_CT 1 | |
2548396b | 861 | static tTestDesc aAix_VolatileTests[] = { |
5daf7ede | 862 | { TT_EGREP, zAix_VolatileSelect0, (regex_t*)NULL }, }; |
fdb8fb96 | 863 | |
864 | /* | |
865 | * Fix Command Arguments for Aix_Volatile | |
866 | */ | |
2548396b | 867 | static const char* apzAix_VolatilePatch[] = { |
472aa368 | 868 | "format", |
869 | "typedef int sig_atomic_t", | |
fdb8fb96 | 870 | (char*)NULL }; |
871 | ||
d1ec871e | 872 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
873 | * | |
874 | * Description of Alpha___Assert fix | |
875 | */ | |
d1ec871e | 876 | tSCC zAlpha___AssertName[] = |
877 | "alpha___assert"; | |
878 | ||
879 | /* | |
880 | * File name selection pattern | |
881 | */ | |
882 | tSCC zAlpha___AssertList[] = | |
883 | "|assert.h|"; | |
884 | /* | |
885 | * Machine/OS name selection pattern | |
886 | */ | |
887 | #define apzAlpha___AssertMachs (const char**)NULL | |
888 | ||
889 | /* | |
890 | * content selection pattern - do fix if pattern found | |
891 | */ | |
892 | tSCC zAlpha___AssertSelect0[] = | |
893 | "__assert\\(char \\*, char \\*, int\\)"; | |
894 | ||
895 | #define ALPHA___ASSERT_TEST_CT 1 | |
896 | static tTestDesc aAlpha___AssertTests[] = { | |
897 | { TT_EGREP, zAlpha___AssertSelect0, (regex_t*)NULL }, }; | |
898 | ||
899 | /* | |
900 | * Fix Command Arguments for Alpha___Assert | |
901 | */ | |
902 | static const char* apzAlpha___AssertPatch[] = { | |
903 | "format", | |
904 | "__assert(const char *, const char *, int)", | |
905 | (char*)NULL }; | |
906 | ||
219cff1b | 907 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
908 | * | |
909 | * Description of Alpha___Extern_Prefix fix | |
910 | */ | |
911 | tSCC zAlpha___Extern_PrefixName[] = | |
912 | "alpha___extern_prefix"; | |
913 | ||
914 | /* | |
915 | * File name selection pattern | |
916 | */ | |
6a80f466 | 917 | #define zAlpha___Extern_PrefixList (char*)NULL |
219cff1b | 918 | /* |
919 | * Machine/OS name selection pattern | |
920 | */ | |
921 | tSCC* apzAlpha___Extern_PrefixMachs[] = { | |
6a80f466 | 922 | "alpha*-dec-osf*", |
219cff1b | 923 | (const char*)NULL }; |
924 | ||
925 | /* | |
926 | * content selection pattern - do fix if pattern found | |
927 | */ | |
928 | tSCC zAlpha___Extern_PrefixSelect0[] = | |
6a80f466 | 929 | "(.*)(defined\\(__DECC\\)|def[ \t]*__DECC)[ \t]*\n\ |
930 | (#[ \t]*pragma[ \t]*extern_prefix.*)"; | |
219cff1b | 931 | |
932 | #define ALPHA___EXTERN_PREFIX_TEST_CT 1 | |
933 | static tTestDesc aAlpha___Extern_PrefixTests[] = { | |
934 | { TT_EGREP, zAlpha___Extern_PrefixSelect0, (regex_t*)NULL }, }; | |
935 | ||
936 | /* | |
937 | * Fix Command Arguments for Alpha___Extern_Prefix | |
938 | */ | |
939 | static const char* apzAlpha___Extern_PrefixPatch[] = { | |
6a80f466 | 940 | "format", |
941 | "%1 (defined(__DECC) || defined(__PRAGMA_EXTERN_PREFIX))\n\ | |
942 | %3", | |
943 | (char*)NULL }; | |
944 | ||
945 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
946 | * | |
947 | * Description of Alpha___Extern_Prefix_Standards fix | |
948 | */ | |
949 | tSCC zAlpha___Extern_Prefix_StandardsName[] = | |
950 | "alpha___extern_prefix_standards"; | |
951 | ||
952 | /* | |
953 | * File name selection pattern | |
954 | */ | |
955 | tSCC zAlpha___Extern_Prefix_StandardsList[] = | |
956 | "|standards.h|"; | |
957 | /* | |
958 | * Machine/OS name selection pattern | |
959 | */ | |
960 | tSCC* apzAlpha___Extern_Prefix_StandardsMachs[] = { | |
961 | "alpha*-dec-osf*", | |
962 | (const char*)NULL }; | |
963 | ||
964 | /* | |
965 | * content selection pattern - do fix if pattern found | |
966 | */ | |
967 | tSCC zAlpha___Extern_Prefix_StandardsSelect0[] = | |
968 | ".*!defined\\(_LIBC_POLLUTION_H_\\) && !defined\\(__DECC\\)"; | |
969 | ||
970 | #define ALPHA___EXTERN_PREFIX_STANDARDS_TEST_CT 1 | |
971 | static tTestDesc aAlpha___Extern_Prefix_StandardsTests[] = { | |
972 | { TT_EGREP, zAlpha___Extern_Prefix_StandardsSelect0, (regex_t*)NULL }, }; | |
973 | ||
974 | /* | |
975 | * Fix Command Arguments for Alpha___Extern_Prefix_Standards | |
976 | */ | |
977 | static const char* apzAlpha___Extern_Prefix_StandardsPatch[] = { | |
978 | "format", | |
979 | "%0 && !defined(__PRAGMA_EXTERN_PREFIX)", | |
980 | (char*)NULL }; | |
981 | ||
982 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
983 | * | |
984 | * Description of Alpha___Extern_Prefix_Sys_Stat fix | |
985 | */ | |
986 | tSCC zAlpha___Extern_Prefix_Sys_StatName[] = | |
987 | "alpha___extern_prefix_sys_stat"; | |
988 | ||
989 | /* | |
990 | * File name selection pattern | |
991 | */ | |
992 | tSCC zAlpha___Extern_Prefix_Sys_StatList[] = | |
993 | "|sys/stat.h|sys/mount.h|"; | |
994 | /* | |
995 | * Machine/OS name selection pattern | |
996 | */ | |
997 | tSCC* apzAlpha___Extern_Prefix_Sys_StatMachs[] = { | |
998 | "alpha*-dec-osf5*", | |
999 | (const char*)NULL }; | |
1000 | ||
1001 | /* | |
1002 | * content selection pattern - do fix if pattern found | |
1003 | */ | |
1004 | tSCC zAlpha___Extern_Prefix_Sys_StatSelect0[] = | |
1005 | "#[ \t]*if[ \t]*defined\\(__DECC\\)"; | |
1006 | ||
1007 | #define ALPHA___EXTERN_PREFIX_SYS_STAT_TEST_CT 1 | |
1008 | static tTestDesc aAlpha___Extern_Prefix_Sys_StatTests[] = { | |
1009 | { TT_EGREP, zAlpha___Extern_Prefix_Sys_StatSelect0, (regex_t*)NULL }, }; | |
1010 | ||
1011 | /* | |
1012 | * Fix Command Arguments for Alpha___Extern_Prefix_Sys_Stat | |
1013 | */ | |
1014 | static const char* apzAlpha___Extern_Prefix_Sys_StatPatch[] = { | |
219cff1b | 1015 | "format", |
1016 | "%0 || defined(__PRAGMA_EXTERN_PREFIX)", | |
1017 | (char*)NULL }; | |
1018 | ||
03112946 | 1019 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
1020 | * | |
1021 | * Description of Alpha_Assert fix | |
1022 | */ | |
1023 | tSCC zAlpha_AssertName[] = | |
1024 | "alpha_assert"; | |
1025 | ||
1026 | /* | |
1027 | * File name selection pattern | |
1028 | */ | |
1029 | tSCC zAlpha_AssertList[] = | |
1030 | "|assert.h|"; | |
1031 | /* | |
1032 | * Machine/OS name selection pattern | |
1033 | */ | |
1034 | #define apzAlpha_AssertMachs (const char**)NULL | |
1035 | ||
1036 | /* | |
1037 | * content selection pattern - do fix if pattern found | |
1038 | */ | |
1039 | tSCC zAlpha_AssertSelect0[] = | |
1040 | "(#define assert\\(EX\\).*)\\(\\(int\\) \\(EX\\)\\)"; | |
1041 | ||
1042 | #define ALPHA_ASSERT_TEST_CT 1 | |
1043 | static tTestDesc aAlpha_AssertTests[] = { | |
1044 | { TT_EGREP, zAlpha_AssertSelect0, (regex_t*)NULL }, }; | |
1045 | ||
1046 | /* | |
1047 | * Fix Command Arguments for Alpha_Assert | |
1048 | */ | |
1049 | static const char* apzAlpha_AssertPatch[] = { | |
1050 | "format", | |
1051 | "%1(EX)", | |
1052 | (char*)NULL }; | |
1053 | ||
a3278934 | 1054 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
1055 | * | |
1056 | * Description of Alpha_Bad_Lval fix | |
1057 | */ | |
1058 | tSCC zAlpha_Bad_LvalName[] = | |
1059 | "alpha_bad_lval"; | |
1060 | ||
1061 | /* | |
1062 | * File name selection pattern | |
1063 | */ | |
1064 | #define zAlpha_Bad_LvalList (char*)NULL | |
1065 | /* | |
1066 | * Machine/OS name selection pattern | |
1067 | */ | |
1068 | tSCC* apzAlpha_Bad_LvalMachs[] = { | |
1069 | "alpha*-dec-osf*", | |
1070 | (const char*)NULL }; | |
1071 | ||
1072 | /* | |
1073 | * content selection pattern - do fix if pattern found | |
1074 | */ | |
1075 | tSCC zAlpha_Bad_LvalSelect0[] = | |
1076 | "^[ \t]*#[ \t]*pragma[ \t]+extern_prefix"; | |
1077 | ||
1078 | #define ALPHA_BAD_LVAL_TEST_CT 1 | |
1079 | static tTestDesc aAlpha_Bad_LvalTests[] = { | |
1080 | { TT_EGREP, zAlpha_Bad_LvalSelect0, (regex_t*)NULL }, }; | |
1081 | ||
1082 | /* | |
1083 | * Fix Command Arguments for Alpha_Bad_Lval | |
1084 | */ | |
1085 | static const char* apzAlpha_Bad_LvalPatch[] = { "sed", | |
1086 | "-e", "s/^[ \t]*#[ \t]*define[ \t][ \t]*\\([^(]*\\)\\(([^)]*)\\)[ \t]*\\(_.*\\)\\1\\2[ \t]*$/#define \\1 \\3\\1/", | |
1087 | (char*)NULL }; | |
1088 | ||
fdb8fb96 | 1089 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
1090 | * | |
5daf7ede | 1091 | * Description of Alpha_Getopt fix |
fdb8fb96 | 1092 | */ |
1093 | tSCC zAlpha_GetoptName[] = | |
d4c4b01d | 1094 | "alpha_getopt"; |
1095 | ||
fdb8fb96 | 1096 | /* |
1097 | * File name selection pattern | |
1098 | */ | |
1099 | tSCC zAlpha_GetoptList[] = | |
0ec8e89b | 1100 | "|stdio.h|stdlib.h|"; |
fdb8fb96 | 1101 | /* |
1102 | * Machine/OS name selection pattern | |
1103 | */ | |
1104 | #define apzAlpha_GetoptMachs (const char**)NULL | |
1105 | ||
1106 | /* | |
c1b28c63 | 1107 | * content selection pattern - do fix if pattern found |
fdb8fb96 | 1108 | */ |
1109 | tSCC zAlpha_GetoptSelect0[] = | |
52686fb5 | 1110 | "getopt\\(int, char \\*\\[\\], *char \\*\\)"; |
fdb8fb96 | 1111 | |
1112 | #define ALPHA_GETOPT_TEST_CT 1 | |
2548396b | 1113 | static tTestDesc aAlpha_GetoptTests[] = { |
5daf7ede | 1114 | { TT_EGREP, zAlpha_GetoptSelect0, (regex_t*)NULL }, }; |
fdb8fb96 | 1115 | |
1116 | /* | |
1117 | * Fix Command Arguments for Alpha_Getopt | |
1118 | */ | |
2548396b | 1119 | static const char* apzAlpha_GetoptPatch[] = { |
472aa368 | 1120 | "format", |
1121 | "getopt(int, char *const[], const char *)", | |
fdb8fb96 | 1122 | (char*)NULL }; |
1123 | ||
1124 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
1125 | * | |
5daf7ede | 1126 | * Description of Alpha_Parens fix |
fdb8fb96 | 1127 | */ |
1128 | tSCC zAlpha_ParensName[] = | |
d4c4b01d | 1129 | "alpha_parens"; |
1130 | ||
fdb8fb96 | 1131 | /* |
1132 | * File name selection pattern | |
1133 | */ | |
1134 | tSCC zAlpha_ParensList[] = | |
efb1b79b | 1135 | "|sym.h|"; |
fdb8fb96 | 1136 | /* |
1137 | * Machine/OS name selection pattern | |
1138 | */ | |
1139 | #define apzAlpha_ParensMachs (const char**)NULL | |
1140 | ||
1141 | /* | |
c1b28c63 | 1142 | * content selection pattern - do fix if pattern found |
fdb8fb96 | 1143 | */ |
1144 | tSCC zAlpha_ParensSelect0[] = | |
1145 | "#ifndef\\(__mips64\\)"; | |
1146 | ||
1147 | #define ALPHA_PARENS_TEST_CT 1 | |
2548396b | 1148 | static tTestDesc aAlpha_ParensTests[] = { |
5daf7ede | 1149 | { TT_EGREP, zAlpha_ParensSelect0, (regex_t*)NULL }, }; |
fdb8fb96 | 1150 | |
1151 | /* | |
1152 | * Fix Command Arguments for Alpha_Parens | |
1153 | */ | |
2548396b | 1154 | static const char* apzAlpha_ParensPatch[] = { |
472aa368 | 1155 | "format", |
1156 | "#ifndef __mips64", | |
fdb8fb96 | 1157 | (char*)NULL }; |
1158 | ||
ecd34a08 | 1159 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
1160 | * | |
1161 | * Description of Alpha_Pthread fix | |
1162 | */ | |
1163 | tSCC zAlpha_PthreadName[] = | |
1164 | "alpha_pthread"; | |
1165 | ||
1166 | /* | |
1167 | * File name selection pattern | |
1168 | */ | |
1169 | tSCC zAlpha_PthreadList[] = | |
1170 | "|pthread.h|"; | |
1171 | /* | |
1172 | * Machine/OS name selection pattern | |
1173 | */ | |
1174 | tSCC* apzAlpha_PthreadMachs[] = { | |
1175 | "alpha*-dec-osf*", | |
1176 | (const char*)NULL }; | |
1177 | ||
1178 | /* | |
1179 | * content selection pattern - do fix if pattern found | |
1180 | */ | |
1181 | tSCC zAlpha_PthreadSelect0[] = | |
6a80f466 | 1182 | "((#[ \t]*if)([ \t]*defined[ \t]*\\(_PTHREAD_ENV_DECC\\)|def _PTHREAD_ENV_DECC)(.*))\n\ |
ecd34a08 | 1183 | (#[ \t]*define _PTHREAD_USE_PTDNAM_)"; |
1184 | ||
1185 | #define ALPHA_PTHREAD_TEST_CT 1 | |
1186 | static tTestDesc aAlpha_PthreadTests[] = { | |
1187 | { TT_EGREP, zAlpha_PthreadSelect0, (regex_t*)NULL }, }; | |
1188 | ||
1189 | /* | |
1190 | * Fix Command Arguments for Alpha_Pthread | |
1191 | */ | |
1192 | static const char* apzAlpha_PthreadPatch[] = { | |
1193 | "format", | |
6a80f466 | 1194 | "%2 defined (_PTHREAD_ENV_DECC)%4 || defined (__PRAGMA_EXTERN_PREFIX)\n\ |
1195 | %5", | |
ecd34a08 | 1196 | (char*)NULL }; |
1197 | ||
89ebafd5 | 1198 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
1199 | * | |
1200 | * Description of Alpha_Pthread_Gcc fix | |
1201 | */ | |
1202 | tSCC zAlpha_Pthread_GccName[] = | |
1203 | "alpha_pthread_gcc"; | |
1204 | ||
1205 | /* | |
1206 | * File name selection pattern | |
1207 | */ | |
1208 | tSCC zAlpha_Pthread_GccList[] = | |
1209 | "|pthread.h|"; | |
1210 | /* | |
1211 | * Machine/OS name selection pattern | |
1212 | */ | |
1213 | tSCC* apzAlpha_Pthread_GccMachs[] = { | |
1214 | "alpha*-dec-osf*", | |
1215 | (const char*)NULL }; | |
1216 | ||
1217 | /* | |
1218 | * content selection pattern - do fix if pattern found | |
1219 | */ | |
1220 | tSCC zAlpha_Pthread_GccSelect0[] = | |
1221 | "#else\n\ | |
1222 | # error <pthread.h>: unrecognized compiler."; | |
1223 | ||
1224 | #define ALPHA_PTHREAD_GCC_TEST_CT 1 | |
1225 | static tTestDesc aAlpha_Pthread_GccTests[] = { | |
1226 | { TT_EGREP, zAlpha_Pthread_GccSelect0, (regex_t*)NULL }, }; | |
1227 | ||
1228 | /* | |
1229 | * Fix Command Arguments for Alpha_Pthread_Gcc | |
1230 | */ | |
1231 | static const char* apzAlpha_Pthread_GccPatch[] = { | |
1232 | "format", | |
1233 | "#elif defined (__GNUC__)\n\ | |
1234 | # define _PTHREAD_ENV_GCC\n\ | |
1235 | %0", | |
1236 | (char*)NULL }; | |
1237 | ||
31e7bff5 | 1238 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
1239 | * | |
1240 | * Description of Alpha_Pthread_Init fix | |
1241 | */ | |
1242 | tSCC zAlpha_Pthread_InitName[] = | |
1243 | "alpha_pthread_init"; | |
1244 | ||
1245 | /* | |
1246 | * File name selection pattern | |
1247 | */ | |
1248 | tSCC zAlpha_Pthread_InitList[] = | |
1249 | "|pthread.h|"; | |
1250 | /* | |
1251 | * Machine/OS name selection pattern | |
1252 | */ | |
1253 | tSCC* apzAlpha_Pthread_InitMachs[] = { | |
1254 | "alpha*-dec-osf*", | |
1255 | (const char*)NULL }; | |
1256 | ||
1257 | /* | |
1258 | * content selection pattern - do fix if pattern found | |
1259 | */ | |
1260 | tSCC zAlpha_Pthread_InitSelect0[] = | |
4964185a | 1261 | " \\* @\\(#\\).RCSfile: pthread\\.h,v \\$ .Revision: 1\\.1\\.33\\.21 \\$ \\(DEC\\) .Date: 2000/08/15 15:30:13 \\$"; |
31e7bff5 | 1262 | |
1263 | #define ALPHA_PTHREAD_INIT_TEST_CT 1 | |
1264 | static tTestDesc aAlpha_Pthread_InitTests[] = { | |
1265 | { TT_EGREP, zAlpha_Pthread_InitSelect0, (regex_t*)NULL }, }; | |
1266 | ||
1267 | /* | |
1268 | * Fix Command Arguments for Alpha_Pthread_Init | |
1269 | */ | |
1270 | static const char* apzAlpha_Pthread_InitPatch[] = { "sed", | |
1271 | "-e", "s@MVALID\\(.*\\)A}@MVALID\\1A, 0, 0, 0, 0, 0, 0 }@\n\ | |
1272 | s@MVALID\\(.*\\)_}@MVALID\\1_, 0, 0, 0, 0 }@\n\ | |
1273 | s@CVALID\\(.*\\)A}@CVALID\\1A, 0, 0, 0, 0 }@\n\ | |
1274 | s@CVALID\\(.*\\)_}@CVALID\\1_, 0, 0 }@\n\ | |
1275 | s@WVALID\\(.*\\)A}@WVALID\\1A, 0, 0, 0, 0, 0, 0, 0, 0, 0 }@\n\ | |
1276 | s@WVALID\\(.*\\)_}@WVALID\\1_, 0, 0, 0, 0, 0, 0, 0 }@\n", | |
1277 | (char*)NULL }; | |
1278 | ||
fdb8fb96 | 1279 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
1280 | * | |
5daf7ede | 1281 | * Description of Alpha_Sbrk fix |
fdb8fb96 | 1282 | */ |
1283 | tSCC zAlpha_SbrkName[] = | |
d4c4b01d | 1284 | "alpha_sbrk"; |
1285 | ||
fdb8fb96 | 1286 | /* |
1287 | * File name selection pattern | |
1288 | */ | |
1289 | tSCC zAlpha_SbrkList[] = | |
efb1b79b | 1290 | "|unistd.h|"; |
fdb8fb96 | 1291 | /* |
1292 | * Machine/OS name selection pattern | |
1293 | */ | |
1294 | #define apzAlpha_SbrkMachs (const char**)NULL | |
1295 | ||
1296 | /* | |
c1b28c63 | 1297 | * content selection pattern - do fix if pattern found |
fdb8fb96 | 1298 | */ |
1299 | tSCC zAlpha_SbrkSelect0[] = | |
1300 | "char[ \t]*\\*[\t ]*sbrk[ \t]*\\("; | |
1301 | ||
1302 | #define ALPHA_SBRK_TEST_CT 1 | |
2548396b | 1303 | static tTestDesc aAlpha_SbrkTests[] = { |
5daf7ede | 1304 | { TT_EGREP, zAlpha_SbrkSelect0, (regex_t*)NULL }, }; |
fdb8fb96 | 1305 | |
1306 | /* | |
1307 | * Fix Command Arguments for Alpha_Sbrk | |
1308 | */ | |
2548396b | 1309 | static const char* apzAlpha_SbrkPatch[] = { |
472aa368 | 1310 | "format", |
1311 | "void *sbrk(", | |
fdb8fb96 | 1312 | (char*)NULL }; |
1313 | ||
cc567216 | 1314 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
1315 | * | |
1316 | * Description of Alpha_Wchar fix | |
1317 | */ | |
1318 | tSCC zAlpha_WcharName[] = | |
1319 | "alpha_wchar"; | |
1320 | ||
1321 | /* | |
1322 | * File name selection pattern | |
1323 | */ | |
1324 | tSCC zAlpha_WcharList[] = | |
1325 | "|wchar.h|"; | |
1326 | /* | |
1327 | * Machine/OS name selection pattern | |
1328 | */ | |
1329 | tSCC* apzAlpha_WcharMachs[] = { | |
1330 | "alpha*-dec-osf4*", | |
1331 | (const char*)NULL }; | |
1332 | ||
1333 | /* | |
1334 | * content selection pattern - do fix if pattern found | |
1335 | */ | |
1336 | tSCC zAlpha_WcharSelect0[] = | |
1337 | "#define wcstok wcstok_r"; | |
1338 | ||
1339 | #define ALPHA_WCHAR_TEST_CT 1 | |
1340 | static tTestDesc aAlpha_WcharTests[] = { | |
1341 | { TT_EGREP, zAlpha_WcharSelect0, (regex_t*)NULL }, }; | |
1342 | ||
1343 | /* | |
1344 | * Fix Command Arguments for Alpha_Wchar | |
1345 | */ | |
1346 | static const char* apzAlpha_WcharPatch[] = { "sed", | |
1347 | "-e", "s@#define wcstok wcstok_r@extern wchar_t *wcstok __((wchar_t *, const wchar_t *, wchar_t **)) __asm__(\"wcstok_r\");@", | |
1348 | "-e", "s@#define wcsftime __wcsftime_isoc@extern size_t wcsftime __((wchar_t *, size_t, const wchar_t *, const struct tm *)) __asm__(\"__wcsftime_isoc\");@", | |
1349 | (char*)NULL }; | |
1350 | ||
fdb8fb96 | 1351 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
1352 | * | |
2c59c6d3 | 1353 | * Description of Avoid_Bool_Define fix |
fdb8fb96 | 1354 | */ |
2c59c6d3 | 1355 | tSCC zAvoid_Bool_DefineName[] = |
1356 | "avoid_bool_define"; | |
d4c4b01d | 1357 | |
fdb8fb96 | 1358 | /* |
1359 | * File name selection pattern | |
1360 | */ | |
2c59c6d3 | 1361 | tSCC zAvoid_Bool_DefineList[] = |
efb1b79b | 1362 | "|curses.h|curses_colr/curses.h|term.h|tinfo.h|"; |
fdb8fb96 | 1363 | /* |
1364 | * Machine/OS name selection pattern | |
1365 | */ | |
2c59c6d3 | 1366 | #define apzAvoid_Bool_DefineMachs (const char**)NULL |
ada96dc2 | 1367 | |
1368 | /* | |
1369 | * content selection pattern - do fix if pattern found | |
1370 | */ | |
2c59c6d3 | 1371 | tSCC zAvoid_Bool_DefineSelect0[] = |
1372 | "#[ \t]*define[ \t]+bool[ \t]"; | |
1373 | ||
a83746ef | 1374 | /* |
1375 | * content bypass pattern - skip fix if pattern found | |
1376 | */ | |
1377 | tSCC zAvoid_Bool_DefineBypass0[] = | |
162e05b3 | 1378 | "__cplusplus"; |
a83746ef | 1379 | |
1380 | #define AVOID_BOOL_DEFINE_TEST_CT 2 | |
2548396b | 1381 | static tTestDesc aAvoid_Bool_DefineTests[] = { |
a83746ef | 1382 | { TT_NEGREP, zAvoid_Bool_DefineBypass0, (regex_t*)NULL }, |
2c59c6d3 | 1383 | { TT_EGREP, zAvoid_Bool_DefineSelect0, (regex_t*)NULL }, }; |
ada96dc2 | 1384 | |
1385 | /* | |
2c59c6d3 | 1386 | * Fix Command Arguments for Avoid_Bool_Define |
ada96dc2 | 1387 | */ |
2548396b | 1388 | static const char* apzAvoid_Bool_DefinePatch[] = { |
2c59c6d3 | 1389 | "format", |
1390 | "#ifndef __cplusplus\n\ | |
1391 | %0\n\ | |
1392 | #endif", | |
1393 | "^[ \t]*#[ \t]*define[ \t]+bool[ \t].*", | |
1394 | (char*)NULL }; | |
ada96dc2 | 1395 | |
2c59c6d3 | 1396 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
1397 | * | |
1398 | * Description of Avoid_Bool_Type fix | |
1399 | */ | |
2c59c6d3 | 1400 | tSCC zAvoid_Bool_TypeName[] = |
1401 | "avoid_bool_type"; | |
fdb8fb96 | 1402 | |
1403 | /* | |
2c59c6d3 | 1404 | * File name selection pattern |
fdb8fb96 | 1405 | */ |
2c59c6d3 | 1406 | tSCC zAvoid_Bool_TypeList[] = |
1407 | "|curses.h|curses_colr/curses.h|term.h|tinfo.h|"; | |
1408 | /* | |
1409 | * Machine/OS name selection pattern | |
1410 | */ | |
1411 | #define apzAvoid_Bool_TypeMachs (const char**)NULL | |
1412 | ||
1413 | /* | |
1414 | * content selection pattern - do fix if pattern found | |
1415 | */ | |
1416 | tSCC zAvoid_Bool_TypeSelect0[] = | |
1417 | "^[ \t]*typedef[ \t].*[ \t]bool[ \t]*;"; | |
1418 | ||
a83746ef | 1419 | /* |
1420 | * content bypass pattern - skip fix if pattern found | |
1421 | */ | |
1422 | tSCC zAvoid_Bool_TypeBypass0[] = | |
162e05b3 | 1423 | "__cplusplus"; |
a83746ef | 1424 | |
1425 | #define AVOID_BOOL_TYPE_TEST_CT 2 | |
2548396b | 1426 | static tTestDesc aAvoid_Bool_TypeTests[] = { |
a83746ef | 1427 | { TT_NEGREP, zAvoid_Bool_TypeBypass0, (regex_t*)NULL }, |
2c59c6d3 | 1428 | { TT_EGREP, zAvoid_Bool_TypeSelect0, (regex_t*)NULL }, }; |
1429 | ||
1430 | /* | |
1431 | * Fix Command Arguments for Avoid_Bool_Type | |
1432 | */ | |
2548396b | 1433 | static const char* apzAvoid_Bool_TypePatch[] = { |
2c59c6d3 | 1434 | "format", |
1435 | "#ifndef __cplusplus\n\ | |
1436 | %0\n\ | |
1437 | #endif", | |
fdb8fb96 | 1438 | (char*)NULL }; |
1439 | ||
7ab30fe8 | 1440 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
1441 | * | |
1442 | * Description of Avoid_Wchar_T_Type fix | |
1443 | */ | |
7ab30fe8 | 1444 | tSCC zAvoid_Wchar_T_TypeName[] = |
1445 | "avoid_wchar_t_type"; | |
1446 | ||
1447 | /* | |
1448 | * File name selection pattern | |
1449 | */ | |
1450 | #define zAvoid_Wchar_T_TypeList (char*)NULL | |
1451 | /* | |
1452 | * Machine/OS name selection pattern | |
1453 | */ | |
1454 | #define apzAvoid_Wchar_T_TypeMachs (const char**)NULL | |
1455 | ||
1456 | /* | |
1457 | * content selection pattern - do fix if pattern found | |
1458 | */ | |
1459 | tSCC zAvoid_Wchar_T_TypeSelect0[] = | |
1460 | "^[ \t]*typedef[ \t].*[ \t]wchar_t[ \t]*;"; | |
1461 | ||
5f6aa019 | 1462 | /* |
1463 | * content bypass pattern - skip fix if pattern found | |
1464 | */ | |
1465 | tSCC zAvoid_Wchar_T_TypeBypass0[] = | |
37e6e5d2 | 1466 | "__cplusplus"; |
5f6aa019 | 1467 | tSCC zAvoid_Wchar_T_TypeBypass1[] = |
1468 | "_LINUX_NLS_H"; | |
1469 | tSCC zAvoid_Wchar_T_TypeBypass2[] = | |
1470 | "XFree86: xc/lib/X11/Xlib\\.h"; | |
1471 | ||
1472 | #define AVOID_WCHAR_T_TYPE_TEST_CT 4 | |
7ab30fe8 | 1473 | static tTestDesc aAvoid_Wchar_T_TypeTests[] = { |
5f6aa019 | 1474 | { TT_NEGREP, zAvoid_Wchar_T_TypeBypass0, (regex_t*)NULL }, |
1475 | { TT_NEGREP, zAvoid_Wchar_T_TypeBypass1, (regex_t*)NULL }, | |
1476 | { TT_NEGREP, zAvoid_Wchar_T_TypeBypass2, (regex_t*)NULL }, | |
7ab30fe8 | 1477 | { TT_EGREP, zAvoid_Wchar_T_TypeSelect0, (regex_t*)NULL }, }; |
1478 | ||
1479 | /* | |
1480 | * Fix Command Arguments for Avoid_Wchar_T_Type | |
1481 | */ | |
1482 | static const char* apzAvoid_Wchar_T_TypePatch[] = { | |
1483 | "format", | |
1484 | "#ifndef __cplusplus\n\ | |
1485 | %0\n\ | |
1486 | #endif", | |
7ab30fe8 | 1487 | (char*)NULL }; |
1488 | ||
fdb8fb96 | 1489 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
1490 | * | |
5daf7ede | 1491 | * Description of Bad_Struct_Term fix |
fdb8fb96 | 1492 | */ |
1493 | tSCC zBad_Struct_TermName[] = | |
d4c4b01d | 1494 | "bad_struct_term"; |
1495 | ||
fdb8fb96 | 1496 | /* |
1497 | * File name selection pattern | |
1498 | */ | |
1499 | tSCC zBad_Struct_TermList[] = | |
efb1b79b | 1500 | "|curses.h|"; |
fdb8fb96 | 1501 | /* |
1502 | * Machine/OS name selection pattern | |
1503 | */ | |
1504 | #define apzBad_Struct_TermMachs (const char**)NULL | |
1505 | ||
1506 | /* | |
c1b28c63 | 1507 | * content selection pattern - do fix if pattern found |
fdb8fb96 | 1508 | */ |
1509 | tSCC zBad_Struct_TermSelect0[] = | |
1510 | "^[ \t]*typedef[ \t]+struct[ \t]+term[ \t]*;"; | |
1511 | ||
1512 | #define BAD_STRUCT_TERM_TEST_CT 1 | |
2548396b | 1513 | static tTestDesc aBad_Struct_TermTests[] = { |
5daf7ede | 1514 | { TT_EGREP, zBad_Struct_TermSelect0, (regex_t*)NULL }, }; |
fdb8fb96 | 1515 | |
1516 | /* | |
1517 | * Fix Command Arguments for Bad_Struct_Term | |
1518 | */ | |
2548396b | 1519 | static const char* apzBad_Struct_TermPatch[] = { |
2c59c6d3 | 1520 | "format", |
1521 | "struct term;", | |
fdb8fb96 | 1522 | (char*)NULL }; |
1523 | ||
1524 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
1525 | * | |
5daf7ede | 1526 | * Description of Badquote fix |
fdb8fb96 | 1527 | */ |
1528 | tSCC zBadquoteName[] = | |
d4c4b01d | 1529 | "badquote"; |
1530 | ||
fdb8fb96 | 1531 | /* |
1532 | * File name selection pattern | |
1533 | */ | |
1534 | tSCC zBadquoteList[] = | |
efb1b79b | 1535 | "|sundev/vuid_event.h|"; |
fdb8fb96 | 1536 | /* |
1537 | * Machine/OS name selection pattern | |
1538 | */ | |
1539 | #define apzBadquoteMachs (const char**)NULL | |
2c59c6d3 | 1540 | |
1541 | /* | |
1542 | * content selection pattern - do fix if pattern found | |
1543 | */ | |
1544 | tSCC zBadquoteSelect0[] = | |
1545 | "doesn't"; | |
1546 | ||
1547 | #define BADQUOTE_TEST_CT 1 | |
2548396b | 1548 | static tTestDesc aBadquoteTests[] = { |
2c59c6d3 | 1549 | { TT_EGREP, zBadquoteSelect0, (regex_t*)NULL }, }; |
fdb8fb96 | 1550 | |
1551 | /* | |
1552 | * Fix Command Arguments for Badquote | |
1553 | */ | |
2548396b | 1554 | static const char* apzBadquotePatch[] = { |
2c59c6d3 | 1555 | "format", |
1556 | "does not", | |
fdb8fb96 | 1557 | (char*)NULL }; |
1558 | ||
fdb8fb96 | 1559 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
1560 | * | |
5daf7ede | 1561 | * Description of Broken_Assert_Stdio fix |
fdb8fb96 | 1562 | */ |
1563 | tSCC zBroken_Assert_StdioName[] = | |
d4c4b01d | 1564 | "broken_assert_stdio"; |
1565 | ||
fdb8fb96 | 1566 | /* |
1567 | * File name selection pattern | |
1568 | */ | |
1569 | tSCC zBroken_Assert_StdioList[] = | |
efb1b79b | 1570 | "|assert.h|"; |
fdb8fb96 | 1571 | /* |
1572 | * Machine/OS name selection pattern | |
1573 | */ | |
1574 | #define apzBroken_Assert_StdioMachs (const char**)NULL | |
1575 | ||
1576 | /* | |
c1b28c63 | 1577 | * content selection pattern - do fix if pattern found |
fdb8fb96 | 1578 | */ |
1579 | tSCC zBroken_Assert_StdioSelect0[] = | |
1580 | "stderr"; | |
1581 | ||
1582 | /* | |
c1b28c63 | 1583 | * content bypass pattern - skip fix if pattern found |
fdb8fb96 | 1584 | */ |
1585 | tSCC zBroken_Assert_StdioBypass0[] = | |
52686fb5 | 1586 | "include.*stdio\\.h"; |
fdb8fb96 | 1587 | |
1588 | #define BROKEN_ASSERT_STDIO_TEST_CT 2 | |
2548396b | 1589 | static tTestDesc aBroken_Assert_StdioTests[] = { |
5daf7ede | 1590 | { TT_NEGREP, zBroken_Assert_StdioBypass0, (regex_t*)NULL }, |
1591 | { TT_EGREP, zBroken_Assert_StdioSelect0, (regex_t*)NULL }, }; | |
fdb8fb96 | 1592 | |
1593 | /* | |
1594 | * Fix Command Arguments for Broken_Assert_Stdio | |
1595 | */ | |
2548396b | 1596 | static const char* apzBroken_Assert_StdioPatch[] = { |
e6650807 | 1597 | "wrap", |
1598 | "#include <stdio.h>\n", | |
fdb8fb96 | 1599 | (char*)NULL }; |
1600 | ||
1601 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
1602 | * | |
5daf7ede | 1603 | * Description of Broken_Assert_Stdlib fix |
fdb8fb96 | 1604 | */ |
1605 | tSCC zBroken_Assert_StdlibName[] = | |
d4c4b01d | 1606 | "broken_assert_stdlib"; |
1607 | ||
fdb8fb96 | 1608 | /* |
1609 | * File name selection pattern | |
1610 | */ | |
1611 | tSCC zBroken_Assert_StdlibList[] = | |
efb1b79b | 1612 | "|assert.h|"; |
fdb8fb96 | 1613 | /* |
1614 | * Machine/OS name selection pattern | |
1615 | */ | |
1616 | #define apzBroken_Assert_StdlibMachs (const char**)NULL | |
1617 | ||
1618 | /* | |
c1b28c63 | 1619 | * content selection pattern - do fix if pattern found |
fdb8fb96 | 1620 | */ |
1621 | tSCC zBroken_Assert_StdlibSelect0[] = | |
1622 | "exit *\\(|abort *\\("; | |
1623 | ||
1624 | /* | |
c1b28c63 | 1625 | * content bypass pattern - skip fix if pattern found |
fdb8fb96 | 1626 | */ |
1627 | tSCC zBroken_Assert_StdlibBypass0[] = | |
52686fb5 | 1628 | "include.*stdlib\\.h"; |
fdb8fb96 | 1629 | |
1630 | #define BROKEN_ASSERT_STDLIB_TEST_CT 2 | |
2548396b | 1631 | static tTestDesc aBroken_Assert_StdlibTests[] = { |
5daf7ede | 1632 | { TT_NEGREP, zBroken_Assert_StdlibBypass0, (regex_t*)NULL }, |
1633 | { TT_EGREP, zBroken_Assert_StdlibSelect0, (regex_t*)NULL }, }; | |
fdb8fb96 | 1634 | |
1635 | /* | |
1636 | * Fix Command Arguments for Broken_Assert_Stdlib | |
1637 | */ | |
2548396b | 1638 | static const char* apzBroken_Assert_StdlibPatch[] = { |
e6650807 | 1639 | "wrap", |
1640 | "#ifdef __cplusplus\n\ | |
1641 | #include <stdlib.h>\n\ | |
1642 | #endif\n", | |
fdb8fb96 | 1643 | (char*)NULL }; |
1644 | ||
58d8674b | 1645 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
1646 | * | |
1647 | * Description of Broken_Cabs fix | |
1648 | */ | |
58d8674b | 1649 | tSCC zBroken_CabsName[] = |
1650 | "broken_cabs"; | |
1651 | ||
1652 | /* | |
1653 | * File name selection pattern | |
1654 | */ | |
1655 | tSCC zBroken_CabsList[] = | |
e0ec1c44 | 1656 | "|math.h|architecture/ppc/math.h|architecture/i386/math.h|"; |
58d8674b | 1657 | /* |
1658 | * Machine/OS name selection pattern | |
1659 | */ | |
1660 | #define apzBroken_CabsMachs (const char**)NULL | |
1661 | ||
1662 | /* | |
1663 | * content selection pattern - do fix if pattern found | |
1664 | */ | |
1665 | tSCC zBroken_CabsSelect0[] = | |
19754f2b | 1666 | "^extern[ \t]+double[ \t]+cabs"; |
58d8674b | 1667 | |
1668 | #define BROKEN_CABS_TEST_CT 1 | |
2548396b | 1669 | static tTestDesc aBroken_CabsTests[] = { |
58d8674b | 1670 | { TT_EGREP, zBroken_CabsSelect0, (regex_t*)NULL }, }; |
1671 | ||
1672 | /* | |
1673 | * Fix Command Arguments for Broken_Cabs | |
1674 | */ | |
2548396b | 1675 | static const char* apzBroken_CabsPatch[] = { |
2c59c6d3 | 1676 | "format", |
1677 | "", | |
e0ec1c44 | 1678 | "^extern[ \t]+double[ \t]+cabs[ \t]*\\([^\\)]*\\);", |
58d8674b | 1679 | (char*)NULL }; |
1680 | ||
baee91be | 1681 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
1682 | * | |
1683 | * Description of Broken_Nan fix | |
1684 | */ | |
1685 | tSCC zBroken_NanName[] = | |
1686 | "broken_nan"; | |
1687 | ||
1688 | /* | |
1689 | * File name selection pattern | |
1690 | */ | |
1691 | tSCC zBroken_NanList[] = | |
1692 | "|architecture/ppc/math.h|architecture/i386/math.h|"; | |
1693 | /* | |
1694 | * Machine/OS name selection pattern | |
1695 | */ | |
1696 | #define apzBroken_NanMachs (const char**)NULL | |
1697 | ||
1698 | /* | |
1699 | * content selection pattern - do fix if pattern found | |
1700 | */ | |
1701 | tSCC zBroken_NanSelect0[] = | |
1702 | "#if defined(__APPLE_CC__) && (__APPLE_CC__ >= 1345)"; | |
1703 | ||
1704 | /* | |
1705 | * content bypass pattern - skip fix if pattern found | |
1706 | */ | |
1707 | tSCC zBroken_NanBypass0[] = | |
1708 | "powl"; | |
1709 | ||
1710 | #define BROKEN_NAN_TEST_CT 2 | |
1711 | static tTestDesc aBroken_NanTests[] = { | |
1712 | { TT_NEGREP, zBroken_NanBypass0, (regex_t*)NULL }, | |
1713 | { TT_EGREP, zBroken_NanSelect0, (regex_t*)NULL }, }; | |
1714 | ||
1715 | /* | |
1716 | * Fix Command Arguments for Broken_Nan | |
1717 | */ | |
1718 | static const char* apzBroken_NanPatch[] = { | |
1719 | "format", | |
1720 | "#if 1", | |
1721 | (char*)NULL }; | |
1722 | ||
d45e22c2 | 1723 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
1724 | * | |
1725 | * Description of Bsd_Stdio_Attrs_Conflict fix | |
1726 | */ | |
1727 | tSCC zBsd_Stdio_Attrs_ConflictName[] = | |
1728 | "bsd_stdio_attrs_conflict"; | |
1729 | ||
1730 | /* | |
1731 | * File name selection pattern | |
1732 | */ | |
1733 | tSCC zBsd_Stdio_Attrs_ConflictList[] = | |
1734 | "|stdio.h|"; | |
1735 | /* | |
1736 | * Machine/OS name selection pattern | |
1737 | */ | |
1738 | tSCC* apzBsd_Stdio_Attrs_ConflictMachs[] = { | |
1739 | "*-*-*bsd*", | |
1740 | "*-*-*darwin*", | |
1741 | (const char*)NULL }; | |
1742 | ||
1743 | /* | |
1744 | * content selection pattern - do fix if pattern found | |
1745 | */ | |
1746 | tSCC zBsd_Stdio_Attrs_ConflictSelect0[] = | |
1747 | "^#define[ \t]*vfscanf[ \t]*__svfscanf[ \t]*$"; | |
1748 | ||
1749 | #define BSD_STDIO_ATTRS_CONFLICT_TEST_CT 1 | |
1750 | static tTestDesc aBsd_Stdio_Attrs_ConflictTests[] = { | |
1751 | { TT_EGREP, zBsd_Stdio_Attrs_ConflictSelect0, (regex_t*)NULL }, }; | |
1752 | ||
1753 | /* | |
1754 | * Fix Command Arguments for Bsd_Stdio_Attrs_Conflict | |
1755 | */ | |
1756 | static const char* apzBsd_Stdio_Attrs_ConflictPatch[] = { | |
1757 | "format", | |
1758 | "#define _BSD_STRING(_BSD_X) _BSD_STRINGX(_BSD_X)\n\ | |
1759 | #define _BSD_STRINGX(_BSD_X) #_BSD_X\n\ | |
1760 | int vfscanf(FILE *, const char *, __builtin_va_list) __asm__ (_BSD_STRING(__USER_LABEL_PREFIX__) \"__svfscanf\");", | |
1761 | (char*)NULL }; | |
1762 | ||
38ebab8a | 1763 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
1764 | * | |
cfe5be71 | 1765 | * Description of Ctrl_Quotes_Def fix |
38ebab8a | 1766 | */ |
cfe5be71 | 1767 | tSCC zCtrl_Quotes_DefName[] = |
1768 | "ctrl_quotes_def"; | |
d4c4b01d | 1769 | |
38ebab8a | 1770 | /* |
1771 | * File name selection pattern | |
1772 | */ | |
cfe5be71 | 1773 | #define zCtrl_Quotes_DefList (char*)NULL |
38ebab8a | 1774 | /* |
1775 | * Machine/OS name selection pattern | |
1776 | */ | |
cfe5be71 | 1777 | #define apzCtrl_Quotes_DefMachs (const char**)NULL |
38ebab8a | 1778 | |
1779 | /* | |
cfe5be71 | 1780 | * content selection pattern - do fix if pattern found |
38ebab8a | 1781 | */ |
cfe5be71 | 1782 | tSCC zCtrl_Quotes_DefSelect0[] = |
edb5e81d | 1783 | "define[ \t]+[A-Z0-9_]+CTRL\\([a-zA-Z][,)]"; |
cfe5be71 | 1784 | |
1785 | #define CTRL_QUOTES_DEF_TEST_CT 1 | |
2548396b | 1786 | static tTestDesc aCtrl_Quotes_DefTests[] = { |
cfe5be71 | 1787 | { TT_EGREP, zCtrl_Quotes_DefSelect0, (regex_t*)NULL }, }; |
1788 | ||
1789 | /* | |
1790 | * Fix Command Arguments for Ctrl_Quotes_Def | |
1791 | */ | |
2548396b | 1792 | static const char* apzCtrl_Quotes_DefPatch[] = { |
cfe5be71 | 1793 | "char_macro_def", |
1794 | "CTRL", | |
38ebab8a | 1795 | (char*)NULL }; |
1796 | ||
fdb8fb96 | 1797 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
1798 | * | |
cfe5be71 | 1799 | * Description of Ctrl_Quotes_Use fix |
fdb8fb96 | 1800 | */ |
cfe5be71 | 1801 | tSCC zCtrl_Quotes_UseName[] = |
1802 | "ctrl_quotes_use"; | |
d4c4b01d | 1803 | |
fdb8fb96 | 1804 | /* |
1805 | * File name selection pattern | |
1806 | */ | |
cfe5be71 | 1807 | #define zCtrl_Quotes_UseList (char*)NULL |
fdb8fb96 | 1808 | /* |
1809 | * Machine/OS name selection pattern | |
1810 | */ | |
cfe5be71 | 1811 | #define apzCtrl_Quotes_UseMachs (const char**)NULL |
fdb8fb96 | 1812 | |
1813 | /* | |
cfe5be71 | 1814 | * content selection pattern - do fix if pattern found |
fdb8fb96 | 1815 | */ |
cfe5be71 | 1816 | tSCC zCtrl_Quotes_UseSelect0[] = |
1817 | "define[ \t]+[A-Z0-9_]+[ \t]+[A-Z0-9_]+CTRL[ \t]*\\( *[^,']"; | |
1818 | ||
1819 | #define CTRL_QUOTES_USE_TEST_CT 1 | |
2548396b | 1820 | static tTestDesc aCtrl_Quotes_UseTests[] = { |
cfe5be71 | 1821 | { TT_EGREP, zCtrl_Quotes_UseSelect0, (regex_t*)NULL }, }; |
1822 | ||
1823 | /* | |
1824 | * Fix Command Arguments for Ctrl_Quotes_Use | |
1825 | */ | |
2548396b | 1826 | static const char* apzCtrl_Quotes_UsePatch[] = { |
cfe5be71 | 1827 | "char_macro_use", |
1828 | "CTRL", | |
fdb8fb96 | 1829 | (char*)NULL }; |
1830 | ||
fdb8fb96 | 1831 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
1832 | * | |
cfe5be71 | 1833 | * Description of Cxx_Unready fix |
fdb8fb96 | 1834 | */ |
cfe5be71 | 1835 | tSCC zCxx_UnreadyName[] = |
1836 | "cxx_unready"; | |
d4c4b01d | 1837 | |
fdb8fb96 | 1838 | /* |
1839 | * File name selection pattern | |
1840 | */ | |
cfe5be71 | 1841 | tSCC zCxx_UnreadyList[] = |
1842 | "|sys/mman.h|rpc/types.h|"; | |
fdb8fb96 | 1843 | /* |
1844 | * Machine/OS name selection pattern | |
1845 | */ | |
cfe5be71 | 1846 | #define apzCxx_UnreadyMachs (const char**)NULL |
fdb8fb96 | 1847 | |
1848 | /* | |
c1b28c63 | 1849 | * content selection pattern - do fix if pattern found |
fdb8fb96 | 1850 | */ |
cfe5be71 | 1851 | tSCC zCxx_UnreadySelect0[] = |
1852 | "[^#]+malloc.*;"; | |
fdb8fb96 | 1853 | |
cfe5be71 | 1854 | /* |
1855 | * content bypass pattern - skip fix if pattern found | |
1856 | */ | |
1857 | tSCC zCxx_UnreadyBypass0[] = | |
1858 | "\"C\"|__BEGIN_DECLS"; | |
1859 | ||
1860 | #define CXX_UNREADY_TEST_CT 2 | |
2548396b | 1861 | static tTestDesc aCxx_UnreadyTests[] = { |
cfe5be71 | 1862 | { TT_NEGREP, zCxx_UnreadyBypass0, (regex_t*)NULL }, |
1863 | { TT_EGREP, zCxx_UnreadySelect0, (regex_t*)NULL }, }; | |
fdb8fb96 | 1864 | |
1865 | /* | |
cfe5be71 | 1866 | * Fix Command Arguments for Cxx_Unready |
fdb8fb96 | 1867 | */ |
2548396b | 1868 | static const char* apzCxx_UnreadyPatch[] = { |
cfe5be71 | 1869 | "wrap", |
1870 | "#ifdef __cplusplus\n\ | |
1871 | extern \"C\" {\n\ | |
1872 | #endif\n", | |
1873 | "#ifdef __cplusplus\n\ | |
1874 | }\n\ | |
1875 | #endif\n", | |
fdb8fb96 | 1876 | (char*)NULL }; |
1877 | ||
975d636c | 1878 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
1879 | * | |
1880 | * Description of Darwin_Gcc4_Breakage fix | |
1881 | */ | |
1882 | tSCC zDarwin_Gcc4_BreakageName[] = | |
1883 | "darwin_gcc4_breakage"; | |
1884 | ||
1885 | /* | |
1886 | * File name selection pattern | |
1887 | */ | |
1888 | tSCC zDarwin_Gcc4_BreakageList[] = | |
1889 | "|AvailabilityMacros.h|"; | |
1890 | /* | |
1891 | * Machine/OS name selection pattern | |
1892 | */ | |
1893 | tSCC* apzDarwin_Gcc4_BreakageMachs[] = { | |
1894 | "*-*-darwin*", | |
1895 | (const char*)NULL }; | |
1896 | ||
1897 | /* | |
1898 | * content selection pattern - do fix if pattern found | |
1899 | */ | |
1900 | tSCC zDarwin_Gcc4_BreakageSelect0[] = | |
1901 | "\\(__GNUC__ >= 3\\) && \\(__GNUC_MINOR__ >= 1\\)"; | |
1902 | ||
1903 | #define DARWIN_GCC4_BREAKAGE_TEST_CT 1 | |
1904 | static tTestDesc aDarwin_Gcc4_BreakageTests[] = { | |
1905 | { TT_EGREP, zDarwin_Gcc4_BreakageSelect0, (regex_t*)NULL }, }; | |
1906 | ||
1907 | /* | |
1908 | * Fix Command Arguments for Darwin_Gcc4_Breakage | |
1909 | */ | |
1910 | static const char* apzDarwin_Gcc4_BreakagePatch[] = { | |
1911 | "format", | |
1912 | "((__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 1))", | |
1913 | (char*)NULL }; | |
1914 | ||
3067e435 | 1915 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
1916 | * | |
1917 | * Description of Darwin_Private_Extern fix | |
1918 | */ | |
1919 | tSCC zDarwin_Private_ExternName[] = | |
1920 | "darwin_private_extern"; | |
1921 | ||
1922 | /* | |
1923 | * File name selection pattern | |
1924 | */ | |
1925 | tSCC zDarwin_Private_ExternList[] = | |
1926 | "|mach-o/dyld.h|"; | |
1927 | /* | |
1928 | * Machine/OS name selection pattern | |
1929 | */ | |
1930 | tSCC* apzDarwin_Private_ExternMachs[] = { | |
1931 | "*-*-darwin*", | |
1932 | (const char*)NULL }; | |
1933 | ||
1934 | /* | |
1935 | * content selection pattern - do fix if pattern found | |
1936 | */ | |
1937 | tSCC zDarwin_Private_ExternSelect0[] = | |
1938 | "__private_extern__ [a-z_]+ _dyld_"; | |
1939 | ||
1940 | #define DARWIN_PRIVATE_EXTERN_TEST_CT 1 | |
1941 | static tTestDesc aDarwin_Private_ExternTests[] = { | |
1942 | { TT_EGREP, zDarwin_Private_ExternSelect0, (regex_t*)NULL }, }; | |
1943 | ||
1944 | /* | |
1945 | * Fix Command Arguments for Darwin_Private_Extern | |
1946 | */ | |
1947 | static const char* apzDarwin_Private_ExternPatch[] = { | |
1948 | "format", | |
1949 | "extern", | |
1950 | "__private_extern__", | |
1951 | (char*)NULL }; | |
1952 | ||
fdb8fb96 | 1953 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
1954 | * | |
cfe5be71 | 1955 | * Description of Dec_Intern_Asm fix |
fdb8fb96 | 1956 | */ |
cfe5be71 | 1957 | tSCC zDec_Intern_AsmName[] = |
1958 | "dec_intern_asm"; | |
d4c4b01d | 1959 | |
fdb8fb96 | 1960 | /* |
1961 | * File name selection pattern | |
1962 | */ | |
cfe5be71 | 1963 | tSCC zDec_Intern_AsmList[] = |
1964 | "|c_asm.h|"; | |
fdb8fb96 | 1965 | /* |
1966 | * Machine/OS name selection pattern | |
1967 | */ | |
cfe5be71 | 1968 | #define apzDec_Intern_AsmMachs (const char**)NULL |
1969 | #define DEC_INTERN_ASM_TEST_CT 0 | |
1970 | #define aDec_Intern_AsmTests (tTestDesc*)NULL | |
fdb8fb96 | 1971 | |
1972 | /* | |
cfe5be71 | 1973 | * Fix Command Arguments for Dec_Intern_Asm |
fdb8fb96 | 1974 | */ |
2548396b | 1975 | static const char* apzDec_Intern_AsmPatch[] = { "sed", |
cfe5be71 | 1976 | "-e", "/^[ \t]*float[ \t]*fasm/i\\\n\ |
1977 | #ifdef __DECC\n", | |
1978 | "-e", "/^[ \t]*#[ \t]*pragma[ \t]*intrinsic([ \t]*dasm/a\\\n\ | |
1979 | #endif\n", | |
1980 | (char*)NULL }; | |
fdb8fb96 | 1981 | |
8c74272d | 1982 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
1983 | * | |
1984 | * Description of Djgpp_Wchar_H fix | |
1985 | */ | |
8c74272d | 1986 | tSCC zDjgpp_Wchar_HName[] = |
1987 | "djgpp_wchar_h"; | |
1988 | ||
1989 | /* | |
1990 | * File name selection pattern | |
1991 | */ | |
1992 | #define zDjgpp_Wchar_HList (char*)NULL | |
1993 | /* | |
1994 | * Machine/OS name selection pattern | |
1995 | */ | |
1996 | #define apzDjgpp_Wchar_HMachs (const char**)NULL | |
1997 | ||
1998 | /* | |
1999 | * content selection pattern - do fix if pattern found | |
2000 | */ | |
2001 | tSCC zDjgpp_Wchar_HSelect0[] = | |
2002 | "__DJ_wint_t"; | |
2003 | ||
2004 | /* | |
2005 | * content bypass pattern - skip fix if pattern found | |
2006 | */ | |
2007 | tSCC zDjgpp_Wchar_HBypass0[] = | |
2008 | "sys/djtypes.h"; | |
2009 | ||
2010 | #define DJGPP_WCHAR_H_TEST_CT 2 | |
2011 | static tTestDesc aDjgpp_Wchar_HTests[] = { | |
2012 | { TT_NEGREP, zDjgpp_Wchar_HBypass0, (regex_t*)NULL }, | |
2013 | { TT_EGREP, zDjgpp_Wchar_HSelect0, (regex_t*)NULL }, }; | |
2014 | ||
2015 | /* | |
2016 | * Fix Command Arguments for Djgpp_Wchar_H | |
2017 | */ | |
2018 | static const char* apzDjgpp_Wchar_HPatch[] = { | |
2019 | "format", | |
2020 | "%0\n\ | |
2021 | #include <sys/djtypes.h>", | |
2022 | "#include <stddef.h>", | |
2023 | (char*)NULL }; | |
2024 | ||
cfe5be71 | 2025 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
2026 | * | |
2027 | * Description of Ecd_Cursor fix | |
2028 | */ | |
cfe5be71 | 2029 | tSCC zEcd_CursorName[] = |
2030 | "ecd_cursor"; | |
fdb8fb96 | 2031 | |
2032 | /* | |
cfe5be71 | 2033 | * File name selection pattern |
fdb8fb96 | 2034 | */ |
cfe5be71 | 2035 | tSCC zEcd_CursorList[] = |
2036 | "|sunwindow/win_lock.h|sunwindow/win_cursor.h|"; | |
2037 | /* | |
2038 | * Machine/OS name selection pattern | |
2039 | */ | |
2040 | #define apzEcd_CursorMachs (const char**)NULL | |
2c59c6d3 | 2041 | |
2042 | /* | |
2043 | * content selection pattern - do fix if pattern found | |
2044 | */ | |
2045 | tSCC zEcd_CursorSelect0[] = | |
2046 | "ecd\\.cursor"; | |
2047 | ||
2048 | #define ECD_CURSOR_TEST_CT 1 | |
2548396b | 2049 | static tTestDesc aEcd_CursorTests[] = { |
2c59c6d3 | 2050 | { TT_EGREP, zEcd_CursorSelect0, (regex_t*)NULL }, }; |
cfe5be71 | 2051 | |
2052 | /* | |
2053 | * Fix Command Arguments for Ecd_Cursor | |
2054 | */ | |
2548396b | 2055 | static const char* apzEcd_CursorPatch[] = { |
2c59c6d3 | 2056 | "format", |
2057 | "ecd_cursor", | |
fdb8fb96 | 2058 | (char*)NULL }; |
2059 | ||
cee0cd59 | 2060 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
2061 | * | |
2062 | * Description of Exception_Structure fix | |
2063 | */ | |
2064 | tSCC zException_StructureName[] = | |
2065 | "exception_structure"; | |
2066 | ||
2067 | /* | |
2068 | * File name selection pattern | |
2069 | */ | |
2070 | tSCC zException_StructureList[] = | |
2071 | "|math.h|"; | |
2072 | /* | |
2073 | * Machine/OS name selection pattern | |
2074 | */ | |
2075 | #define apzException_StructureMachs (const char**)NULL | |
2076 | ||
2077 | /* | |
2078 | * content selection pattern - do fix if pattern found | |
2079 | */ | |
2080 | tSCC zException_StructureSelect0[] = | |
2081 | "matherr"; | |
2082 | ||
2083 | /* | |
2084 | * content bypass pattern - skip fix if pattern found | |
2085 | */ | |
2086 | tSCC zException_StructureBypass0[] = | |
634f7a13 | 2087 | "matherr.*(struct exception|__MATH_EXCEPTION|[ \\t]*__FP_EXCEPTION[ \\t]*\\*[ \\t]*)"; |
cee0cd59 | 2088 | |
2089 | #define EXCEPTION_STRUCTURE_TEST_CT 2 | |
2090 | static tTestDesc aException_StructureTests[] = { | |
2091 | { TT_NEGREP, zException_StructureBypass0, (regex_t*)NULL }, | |
2092 | { TT_EGREP, zException_StructureSelect0, (regex_t*)NULL }, }; | |
2093 | ||
2094 | /* | |
2095 | * Fix Command Arguments for Exception_Structure | |
2096 | */ | |
2097 | static const char* apzException_StructurePatch[] = { | |
2098 | "wrap", | |
2099 | "struct exception;\n", | |
2100 | (char*)NULL }; | |
2101 | ||
65a92405 | 2102 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
2103 | * | |
2104 | * Description of Freebsd_Gcc3_Breakage fix | |
2105 | */ | |
65a92405 | 2106 | tSCC zFreebsd_Gcc3_BreakageName[] = |
2107 | "freebsd_gcc3_breakage"; | |
2108 | ||
2109 | /* | |
2110 | * File name selection pattern | |
2111 | */ | |
2112 | tSCC zFreebsd_Gcc3_BreakageList[] = | |
2113 | "|sys/cdefs.h|"; | |
2114 | /* | |
2115 | * Machine/OS name selection pattern | |
2116 | */ | |
2117 | tSCC* apzFreebsd_Gcc3_BreakageMachs[] = { | |
2118 | "*-*-freebsd*", | |
2119 | (const char*)NULL }; | |
2120 | ||
2121 | /* | |
2122 | * content selection pattern - do fix if pattern found | |
2123 | */ | |
2124 | tSCC zFreebsd_Gcc3_BreakageSelect0[] = | |
2125 | "^#if __GNUC__ == 2 && __GNUC_MINOR__ >= 7$"; | |
2126 | ||
2127 | /* | |
2128 | * content bypass pattern - skip fix if pattern found | |
2129 | */ | |
2130 | tSCC zFreebsd_Gcc3_BreakageBypass0[] = | |
2131 | "__GNUC__[ \\t]*([>=]=[ \\t]*[3-9]|>[ \\t]*2)"; | |
2132 | ||
2133 | #define FREEBSD_GCC3_BREAKAGE_TEST_CT 2 | |
2134 | static tTestDesc aFreebsd_Gcc3_BreakageTests[] = { | |
2135 | { TT_NEGREP, zFreebsd_Gcc3_BreakageBypass0, (regex_t*)NULL }, | |
2136 | { TT_EGREP, zFreebsd_Gcc3_BreakageSelect0, (regex_t*)NULL }, }; | |
2137 | ||
2138 | /* | |
2139 | * Fix Command Arguments for Freebsd_Gcc3_Breakage | |
2140 | */ | |
2141 | static const char* apzFreebsd_Gcc3_BreakagePatch[] = { | |
2142 | "format", | |
2143 | "%0 || __GNUC__ >= 3", | |
2144 | (char*)NULL }; | |
2145 | ||
f9ac0b87 | 2146 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
2147 | * | |
2148 | * Description of Freebsd_Gcc4_Breakage fix | |
2149 | */ | |
2150 | tSCC zFreebsd_Gcc4_BreakageName[] = | |
2151 | "freebsd_gcc4_breakage"; | |
2152 | ||
2153 | /* | |
2154 | * File name selection pattern | |
2155 | */ | |
2156 | tSCC zFreebsd_Gcc4_BreakageList[] = | |
2157 | "|sys/cdefs.h|"; | |
2158 | /* | |
2159 | * Machine/OS name selection pattern | |
2160 | */ | |
2161 | tSCC* apzFreebsd_Gcc4_BreakageMachs[] = { | |
2162 | "*-*-freebsd*", | |
2163 | (const char*)NULL }; | |
2164 | ||
2165 | /* | |
2166 | * content selection pattern - do fix if pattern found | |
2167 | */ | |
2168 | tSCC zFreebsd_Gcc4_BreakageSelect0[] = | |
2169 | "^#if __GNUC__ == 2 && __GNUC_MINOR__ >= 7 \\|\\| __GNUC__ == 3$"; | |
2170 | ||
2171 | #define FREEBSD_GCC4_BREAKAGE_TEST_CT 1 | |
2172 | static tTestDesc aFreebsd_Gcc4_BreakageTests[] = { | |
2173 | { TT_EGREP, zFreebsd_Gcc4_BreakageSelect0, (regex_t*)NULL }, }; | |
2174 | ||
2175 | /* | |
2176 | * Fix Command Arguments for Freebsd_Gcc4_Breakage | |
2177 | */ | |
2178 | static const char* apzFreebsd_Gcc4_BreakagePatch[] = { | |
2179 | "format", | |
2180 | "#if __GNUC__ == 2 && __GNUC_MINOR__ >= 7 || __GNUC__ >= 3", | |
2181 | (char*)NULL }; | |
2182 | ||
3072d11f | 2183 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
2184 | * | |
2185 | * Description of Gnu_Types fix | |
2186 | */ | |
2187 | tSCC zGnu_TypesName[] = | |
2188 | "gnu_types"; | |
2189 | ||
2190 | /* | |
2191 | * File name selection pattern | |
2192 | */ | |
2193 | tSCC zGnu_TypesList[] = | |
2194 | "|sys/types.h|stdlib.h|sys/stdtypes.h|stddef.h|memory.h|unistd.h|"; | |
2195 | /* | |
2196 | * Machine/OS name selection pattern | |
2197 | */ | |
09a31484 | 2198 | tSCC* apzGnu_TypesMachs[] = { |
2199 | "*-*-solaris2.1[0-9]*", | |
2200 | (const char*)NULL }; | |
3072d11f | 2201 | |
2202 | /* | |
2203 | * content selection pattern - do fix if pattern found | |
2204 | */ | |
2205 | tSCC zGnu_TypesSelect0[] = | |
2206 | "^[ \t]*typedef[ \t]+.*[ \t](ptrdiff|size|wchar)_t;"; | |
2207 | ||
2208 | /* | |
2209 | * content bypass pattern - skip fix if pattern found | |
2210 | */ | |
2211 | tSCC zGnu_TypesBypass0[] = | |
2212 | "_GCC_(PTRDIFF|SIZE|WCHAR)_T"; | |
2213 | ||
2214 | #define GNU_TYPES_TEST_CT 2 | |
2215 | static tTestDesc aGnu_TypesTests[] = { | |
2216 | { TT_NEGREP, zGnu_TypesBypass0, (regex_t*)NULL }, | |
2217 | { TT_EGREP, zGnu_TypesSelect0, (regex_t*)NULL }, }; | |
2218 | ||
2219 | /* | |
2220 | * Fix Command Arguments for Gnu_Types | |
2221 | */ | |
2222 | static const char* apzGnu_TypesPatch[] = { | |
2223 | "gnu_type", | |
2224 | (char*)NULL }; | |
2225 | ||
fdb8fb96 | 2226 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
2227 | * | |
cfe5be71 | 2228 | * Description of Hp_Inline fix |
fdb8fb96 | 2229 | */ |
cfe5be71 | 2230 | tSCC zHp_InlineName[] = |
2231 | "hp_inline"; | |
d4c4b01d | 2232 | |
fdb8fb96 | 2233 | /* |
2234 | * File name selection pattern | |
2235 | */ | |
cfe5be71 | 2236 | tSCC zHp_InlineList[] = |
2c59c6d3 | 2237 | "|sys/spinlock.h|machine/machparam.h|"; |
fdb8fb96 | 2238 | /* |
2239 | * Machine/OS name selection pattern | |
2240 | */ | |
cfe5be71 | 2241 | #define apzHp_InlineMachs (const char**)NULL |
52686fb5 | 2242 | |
2243 | /* | |
2244 | * content selection pattern - do fix if pattern found | |
2245 | */ | |
cfe5be71 | 2246 | tSCC zHp_InlineSelect0[] = |
2c59c6d3 | 2247 | "[ \t]*#[ \t]*include[ \t]+\"\\.\\./machine/"; |
52686fb5 | 2248 | |
cfe5be71 | 2249 | #define HP_INLINE_TEST_CT 1 |
2548396b | 2250 | static tTestDesc aHp_InlineTests[] = { |
cfe5be71 | 2251 | { TT_EGREP, zHp_InlineSelect0, (regex_t*)NULL }, }; |
fdb8fb96 | 2252 | |
2253 | /* | |
cfe5be71 | 2254 | * Fix Command Arguments for Hp_Inline |
fdb8fb96 | 2255 | */ |
2548396b | 2256 | static const char* apzHp_InlinePatch[] = { |
2c59c6d3 | 2257 | "format", |
2258 | "%1<machine/%2.h>", | |
2259 | "([ \t]*#[ \t]*include[ \t]+)\"\\.\\./machine/([a-z]+)\\.h\"", | |
fdb8fb96 | 2260 | (char*)NULL }; |
2261 | ||
2262 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
2263 | * | |
cfe5be71 | 2264 | * Description of Hp_Sysfile fix |
fdb8fb96 | 2265 | */ |
cfe5be71 | 2266 | tSCC zHp_SysfileName[] = |
2267 | "hp_sysfile"; | |
d4c4b01d | 2268 | |
fdb8fb96 | 2269 | /* |
2270 | * File name selection pattern | |
2271 | */ | |
cfe5be71 | 2272 | tSCC zHp_SysfileList[] = |
2273 | "|sys/file.h|"; | |
fdb8fb96 | 2274 | /* |
2275 | * Machine/OS name selection pattern | |
2276 | */ | |
cfe5be71 | 2277 | #define apzHp_SysfileMachs (const char**)NULL |
fdb8fb96 | 2278 | |
2279 | /* | |
c1b28c63 | 2280 | * content selection pattern - do fix if pattern found |
fdb8fb96 | 2281 | */ |
cfe5be71 | 2282 | tSCC zHp_SysfileSelect0[] = |
2283 | "HPUX_SOURCE"; | |
fdb8fb96 | 2284 | |
cfe5be71 | 2285 | #define HP_SYSFILE_TEST_CT 1 |
2548396b | 2286 | static tTestDesc aHp_SysfileTests[] = { |
cfe5be71 | 2287 | { TT_EGREP, zHp_SysfileSelect0, (regex_t*)NULL }, }; |
fdb8fb96 | 2288 | |
2289 | /* | |
cfe5be71 | 2290 | * Fix Command Arguments for Hp_Sysfile |
fdb8fb96 | 2291 | */ |
2548396b | 2292 | static const char* apzHp_SysfilePatch[] = { |
2c59c6d3 | 2293 | "format", |
2294 | "(struct file *, ...)", | |
2295 | "\\(\\.\\.\\.\\)", | |
fdb8fb96 | 2296 | (char*)NULL }; |
2297 | ||
7b900f1a | 2298 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
2299 | * | |
2300 | * Description of Hpux10_Cpp_Pow_Inline fix | |
2301 | */ | |
2302 | tSCC zHpux10_Cpp_Pow_InlineName[] = | |
2303 | "hpux10_cpp_pow_inline"; | |
2304 | ||
2305 | /* | |
2306 | * File name selection pattern | |
2307 | */ | |
2308 | tSCC zHpux10_Cpp_Pow_InlineList[] = | |
9caef960 | 2309 | "|fixinc-test-limits.h|math.h|"; |
7b900f1a | 2310 | /* |
2311 | * Machine/OS name selection pattern | |
2312 | */ | |
2313 | #define apzHpux10_Cpp_Pow_InlineMachs (const char**)NULL | |
2314 | ||
2315 | /* | |
2316 | * content selection pattern - do fix if pattern found | |
2317 | */ | |
2318 | tSCC zHpux10_Cpp_Pow_InlineSelect0[] = | |
2319 | "^# +ifdef +__cplusplus\n\ | |
30f9dc1c | 2320 | +\\}\n\ |
2321 | +inline +double +pow\\(double +__d,int +__expon\\) +\\{\n\ | |
7b900f1a | 2322 | [ \t]+return +pow\\(__d,\\(double\\)__expon\\);\n\ |
30f9dc1c | 2323 | +\\}\n\ |
2324 | +extern +\"C\" +\\{\n\ | |
7b900f1a | 2325 | #else\n\ |
2326 | # +endif"; | |
2327 | ||
2328 | #define HPUX10_CPP_POW_INLINE_TEST_CT 1 | |
2329 | static tTestDesc aHpux10_Cpp_Pow_InlineTests[] = { | |
2330 | { TT_EGREP, zHpux10_Cpp_Pow_InlineSelect0, (regex_t*)NULL }, }; | |
2331 | ||
2332 | /* | |
2333 | * Fix Command Arguments for Hpux10_Cpp_Pow_Inline | |
2334 | */ | |
2335 | static const char* apzHpux10_Cpp_Pow_InlinePatch[] = { | |
2336 | "format", | |
2337 | "", | |
2338 | (char*)NULL }; | |
2339 | ||
c6738ff5 | 2340 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
2341 | * | |
2342 | * Description of Hpux11_Cpp_Pow_Inline fix | |
2343 | */ | |
2344 | tSCC zHpux11_Cpp_Pow_InlineName[] = | |
2345 | "hpux11_cpp_pow_inline"; | |
2346 | ||
2347 | /* | |
2348 | * File name selection pattern | |
2349 | */ | |
2350 | tSCC zHpux11_Cpp_Pow_InlineList[] = | |
2351 | "|math.h|"; | |
2352 | /* | |
2353 | * Machine/OS name selection pattern | |
2354 | */ | |
2355 | #define apzHpux11_Cpp_Pow_InlineMachs (const char**)NULL | |
2356 | ||
2357 | /* | |
2358 | * content selection pattern - do fix if pattern found | |
2359 | */ | |
2360 | tSCC zHpux11_Cpp_Pow_InlineSelect0[] = | |
30f9dc1c | 2361 | " +inline double pow\\(double d,int expon\\) \\{\n\ |
c6738ff5 | 2362 | +return pow\\(d, \\(double\\)expon\\);\n\ |
30f9dc1c | 2363 | +\\}\n"; |
c6738ff5 | 2364 | |
2365 | #define HPUX11_CPP_POW_INLINE_TEST_CT 1 | |
2366 | static tTestDesc aHpux11_Cpp_Pow_InlineTests[] = { | |
2367 | { TT_EGREP, zHpux11_Cpp_Pow_InlineSelect0, (regex_t*)NULL }, }; | |
2368 | ||
2369 | /* | |
2370 | * Fix Command Arguments for Hpux11_Cpp_Pow_Inline | |
2371 | */ | |
2372 | static const char* apzHpux11_Cpp_Pow_InlinePatch[] = { | |
2373 | "format", | |
2374 | "", | |
2375 | (char*)NULL }; | |
2376 | ||
ca58af19 | 2377 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
2378 | * | |
ebf664b2 | 2379 | * Description of Hpux10_Ctype_Declarations1 fix |
ca58af19 | 2380 | */ |
ebf664b2 | 2381 | tSCC zHpux10_Ctype_Declarations1Name[] = |
2382 | "hpux10_ctype_declarations1"; | |
ca58af19 | 2383 | |
2384 | /* | |
2385 | * File name selection pattern | |
2386 | */ | |
ebf664b2 | 2387 | tSCC zHpux10_Ctype_Declarations1List[] = |
2388 | "|ctype.h|"; | |
ca58af19 | 2389 | /* |
2390 | * Machine/OS name selection pattern | |
2391 | */ | |
ebf664b2 | 2392 | #define apzHpux10_Ctype_Declarations1Machs (const char**)NULL |
ca58af19 | 2393 | |
2394 | /* | |
2395 | * content selection pattern - do fix if pattern found | |
2396 | */ | |
ebf664b2 | 2397 | tSCC zHpux10_Ctype_Declarations1Select0[] = |
2398 | "^#[ \t]*define _toupper\\(__c\\)[ \t]*__toupper\\(__c\\)"; | |
ca58af19 | 2399 | |
ebf664b2 | 2400 | /* |
2401 | * content bypass pattern - skip fix if pattern found | |
2402 | */ | |
2403 | tSCC zHpux10_Ctype_Declarations1Bypass0[] = | |
2404 | "^[ \t]*extern[ \t]*int[ \t]*__tolower[ \t]*\\("; | |
2405 | ||
2406 | #define HPUX10_CTYPE_DECLARATIONS1_TEST_CT 2 | |
2407 | static tTestDesc aHpux10_Ctype_Declarations1Tests[] = { | |
2408 | { TT_NEGREP, zHpux10_Ctype_Declarations1Bypass0, (regex_t*)NULL }, | |
2409 | { TT_EGREP, zHpux10_Ctype_Declarations1Select0, (regex_t*)NULL }, }; | |
ca58af19 | 2410 | |
2411 | /* | |
ebf664b2 | 2412 | * Fix Command Arguments for Hpux10_Ctype_Declarations1 |
ca58af19 | 2413 | */ |
ebf664b2 | 2414 | static const char* apzHpux10_Ctype_Declarations1Patch[] = { |
ca58af19 | 2415 | "format", |
ebf664b2 | 2416 | "#ifdef _PROTOTYPES\n\ |
2417 | extern int __tolower(int);\n\ | |
2418 | extern int __toupper(int);\n\ | |
2419 | #else /* NOT _PROTOTYPES */\n\ | |
2420 | extern int __tolower();\n\ | |
2421 | extern int __toupper();\n\ | |
2422 | #endif /* _PROTOTYPES */\n\n\ | |
2423 | %0\n", | |
ca58af19 | 2424 | (char*)NULL }; |
2425 | ||
6b5183e9 | 2426 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
2427 | * | |
ebf664b2 | 2428 | * Description of Hpux10_Ctype_Declarations2 fix |
6b5183e9 | 2429 | */ |
ebf664b2 | 2430 | tSCC zHpux10_Ctype_Declarations2Name[] = |
2431 | "hpux10_ctype_declarations2"; | |
6b5183e9 | 2432 | |
2433 | /* | |
2434 | * File name selection pattern | |
2435 | */ | |
ebf664b2 | 2436 | tSCC zHpux10_Ctype_Declarations2List[] = |
2437 | "|ctype.h|"; | |
6b5183e9 | 2438 | /* |
2439 | * Machine/OS name selection pattern | |
2440 | */ | |
ebf664b2 | 2441 | #define apzHpux10_Ctype_Declarations2Machs (const char**)NULL |
6b5183e9 | 2442 | |
2443 | /* | |
2444 | * content selection pattern - do fix if pattern found | |
2445 | */ | |
ebf664b2 | 2446 | tSCC zHpux10_Ctype_Declarations2Select0[] = |
2447 | "^# if defined\\(_SB_CTYPE_MACROS\\) && \\!defined\\(__lint\\)"; | |
6b5183e9 | 2448 | |
f281c5b8 | 2449 | /* |
2450 | * content bypass pattern - skip fix if pattern found | |
2451 | */ | |
ebf664b2 | 2452 | tSCC zHpux10_Ctype_Declarations2Bypass0[] = |
2453 | "^[ \t]*extern[ \t]*int[ \t]*_isalnum[ \t]*\\("; | |
f281c5b8 | 2454 | |
ebf664b2 | 2455 | #define HPUX10_CTYPE_DECLARATIONS2_TEST_CT 2 |
2456 | static tTestDesc aHpux10_Ctype_Declarations2Tests[] = { | |
2457 | { TT_NEGREP, zHpux10_Ctype_Declarations2Bypass0, (regex_t*)NULL }, | |
2458 | { TT_EGREP, zHpux10_Ctype_Declarations2Select0, (regex_t*)NULL }, }; | |
6b5183e9 | 2459 | |
2460 | /* | |
ebf664b2 | 2461 | * Fix Command Arguments for Hpux10_Ctype_Declarations2 |
6b5183e9 | 2462 | */ |
ebf664b2 | 2463 | static const char* apzHpux10_Ctype_Declarations2Patch[] = { |
2464 | "format", | |
2465 | "%0\n\n\ | |
2466 | #ifdef _PROTOTYPES\n\ | |
2467 | extern int _isalnum(int);\n\ | |
2468 | extern int _isalpha(int);\n\ | |
2469 | extern int _iscntrl(int);\n\ | |
2470 | extern int _isdigit(int);\n\ | |
2471 | extern int _isgraph(int);\n\ | |
2472 | extern int _islower(int);\n\ | |
2473 | extern int _isprint(int);\n\ | |
2474 | extern int _ispunct(int);\n\ | |
2475 | extern int _isspace(int);\n\ | |
2476 | extern int _isupper(int);\n\ | |
2477 | extern int _isxdigit(int);\n\ | |
2478 | # else /* not _PROTOTYPES */\n\ | |
2479 | extern int _isalnum();\n\ | |
2480 | extern int _isalpha();\n\ | |
2481 | extern int _iscntrl();\n\ | |
2482 | extern int _isdigit();\n\ | |
2483 | extern int _isgraph();\n\ | |
2484 | extern int _islower();\n\ | |
2485 | extern int _isprint();\n\ | |
2486 | extern int _ispunct();\n\ | |
2487 | extern int _isspace();\n\ | |
2488 | extern int _isupper();\n\ | |
2489 | extern int _isxdigit();\n\ | |
2490 | #endif /* _PROTOTYPES */\n", | |
2491 | (char*)NULL }; | |
2492 | ||
37935110 | 2493 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
2494 | * | |
2495 | * Description of Hpux10_Stdio_Declarations fix | |
2496 | */ | |
2497 | tSCC zHpux10_Stdio_DeclarationsName[] = | |
2498 | "hpux10_stdio_declarations"; | |
2499 | ||
2500 | /* | |
2501 | * File name selection pattern | |
2502 | */ | |
2503 | tSCC zHpux10_Stdio_DeclarationsList[] = | |
2504 | "|stdio.h|"; | |
2505 | /* | |
2506 | * Machine/OS name selection pattern | |
2507 | */ | |
2508 | #define apzHpux10_Stdio_DeclarationsMachs (const char**)NULL | |
2509 | ||
2510 | /* | |
2511 | * content selection pattern - do fix if pattern found | |
2512 | */ | |
2513 | tSCC zHpux10_Stdio_DeclarationsSelect0[] = | |
2514 | "^#[ \t]*define _iob[ \t]*__iob"; | |
2515 | ||
2516 | /* | |
2517 | * content bypass pattern - skip fix if pattern found | |
2518 | */ | |
2519 | tSCC zHpux10_Stdio_DeclarationsBypass0[] = | |
2520 | "^[ \t]*extern[ \t]*int[ \t]*vsnprintf[ \t]*\\("; | |
2521 | ||
2522 | #define HPUX10_STDIO_DECLARATIONS_TEST_CT 2 | |
2523 | static tTestDesc aHpux10_Stdio_DeclarationsTests[] = { | |
2524 | { TT_NEGREP, zHpux10_Stdio_DeclarationsBypass0, (regex_t*)NULL }, | |
2525 | { TT_EGREP, zHpux10_Stdio_DeclarationsSelect0, (regex_t*)NULL }, }; | |
2526 | ||
2527 | /* | |
2528 | * Fix Command Arguments for Hpux10_Stdio_Declarations | |
2529 | */ | |
2530 | static const char* apzHpux10_Stdio_DeclarationsPatch[] = { | |
2531 | "format", | |
2532 | "%0\n\n\ | |
2533 | # if defined(__STDC__) || defined(__cplusplus)\n\ | |
2534 | extern int snprintf(char *, size_t, const char *, ...);\n\ | |
2535 | extern int vsnprintf(char *, size_t, const char *, __va_list);\n\ | |
2536 | # else /* not __STDC__) || __cplusplus */\n\ | |
2537 | extern int snprintf();\n\ | |
2538 | extern int vsnprintf();\n\ | |
2539 | # endif /* __STDC__) || __cplusplus */\n", | |
2540 | (char*)NULL }; | |
2541 | ||
ebf664b2 | 2542 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
2543 | * | |
2544 | * Description of Hpux11_Abs fix | |
2545 | */ | |
2546 | tSCC zHpux11_AbsName[] = | |
2547 | "hpux11_abs"; | |
2548 | ||
2549 | /* | |
2550 | * File name selection pattern | |
2551 | */ | |
2552 | tSCC zHpux11_AbsList[] = | |
2553 | "|stdlib.h|"; | |
2554 | /* | |
2555 | * Machine/OS name selection pattern | |
2556 | */ | |
2557 | tSCC* apzHpux11_AbsMachs[] = { | |
2558 | "ia64-hp-hpux11*", | |
2559 | (const char*)NULL }; | |
2560 | ||
2561 | /* | |
2562 | * content selection pattern - do fix if pattern found | |
2563 | */ | |
2564 | tSCC zHpux11_AbsSelect0[] = | |
2565 | "ifndef _MATH_INCLUDED"; | |
2566 | ||
2567 | #define HPUX11_ABS_TEST_CT 1 | |
2568 | static tTestDesc aHpux11_AbsTests[] = { | |
2569 | { TT_EGREP, zHpux11_AbsSelect0, (regex_t*)NULL }, }; | |
2570 | ||
2571 | /* | |
2572 | * Fix Command Arguments for Hpux11_Abs | |
2573 | */ | |
2574 | static const char* apzHpux11_AbsPatch[] = { | |
2575 | "format", | |
2576 | "if !defined(_MATH_INCLUDED) || defined(__GNUG__)", | |
6b5183e9 | 2577 | (char*)NULL }; |
2578 | ||
05fc9903 | 2579 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
2580 | * | |
2581 | * Description of Hpux11_Fabsf fix | |
2582 | */ | |
05fc9903 | 2583 | tSCC zHpux11_FabsfName[] = |
2584 | "hpux11_fabsf"; | |
2585 | ||
2586 | /* | |
2587 | * File name selection pattern | |
2588 | */ | |
2589 | tSCC zHpux11_FabsfList[] = | |
2590 | "|math.h|"; | |
2591 | /* | |
2592 | * Machine/OS name selection pattern | |
2593 | */ | |
2594 | #define apzHpux11_FabsfMachs (const char**)NULL | |
2595 | ||
2596 | /* | |
2597 | * content selection pattern - do fix if pattern found | |
2598 | */ | |
2599 | tSCC zHpux11_FabsfSelect0[] = | |
2600 | "^[ \t]*#[ \t]*define[ \t]+fabsf\\(.*"; | |
2601 | ||
2602 | /* | |
2603 | * content bypass pattern - skip fix if pattern found | |
2604 | */ | |
2605 | tSCC zHpux11_FabsfBypass0[] = | |
2606 | "__cplusplus"; | |
2607 | ||
2608 | #define HPUX11_FABSF_TEST_CT 2 | |
2548396b | 2609 | static tTestDesc aHpux11_FabsfTests[] = { |
05fc9903 | 2610 | { TT_NEGREP, zHpux11_FabsfBypass0, (regex_t*)NULL }, |
2611 | { TT_EGREP, zHpux11_FabsfSelect0, (regex_t*)NULL }, }; | |
2612 | ||
2613 | /* | |
2614 | * Fix Command Arguments for Hpux11_Fabsf | |
2615 | */ | |
2548396b | 2616 | static const char* apzHpux11_FabsfPatch[] = { |
05fc9903 | 2617 | "format", |
2618 | "#ifndef __cplusplus\n\ | |
2619 | %0\n\ | |
2620 | #endif", | |
2621 | (char*)NULL }; | |
2622 | ||
c0854bd5 | 2623 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
2624 | * | |
2625 | * Description of Hpux11_Size_T fix | |
2626 | */ | |
2627 | tSCC zHpux11_Size_TName[] = | |
2628 | "hpux11_size_t"; | |
2629 | ||
2630 | /* | |
2631 | * File name selection pattern | |
2632 | */ | |
2633 | #define zHpux11_Size_TList (char*)NULL | |
2634 | /* | |
2635 | * Machine/OS name selection pattern | |
2636 | */ | |
2637 | tSCC* apzHpux11_Size_TMachs[] = { | |
3ff85771 | 2638 | "*-hp-hpux11*", |
c0854bd5 | 2639 | (const char*)NULL }; |
2640 | ||
2641 | /* | |
2642 | * content selection pattern - do fix if pattern found | |
2643 | */ | |
2644 | tSCC zHpux11_Size_TSelect0[] = | |
3ff85771 | 2645 | "__size_t"; |
c0854bd5 | 2646 | |
2647 | #define HPUX11_SIZE_T_TEST_CT 1 | |
2648 | static tTestDesc aHpux11_Size_TTests[] = { | |
2649 | { TT_EGREP, zHpux11_Size_TSelect0, (regex_t*)NULL }, }; | |
2650 | ||
2651 | /* | |
2652 | * Fix Command Arguments for Hpux11_Size_T | |
2653 | */ | |
2654 | static const char* apzHpux11_Size_TPatch[] = { | |
2655 | "format", | |
2656 | "_hpux_size_t", | |
c0854bd5 | 2657 | (char*)NULL }; |
2658 | ||
75dc2242 | 2659 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
2660 | * | |
2661 | * Description of Hpux11_Snprintf fix | |
2662 | */ | |
2663 | tSCC zHpux11_SnprintfName[] = | |
2664 | "hpux11_snprintf"; | |
2665 | ||
2666 | /* | |
2667 | * File name selection pattern | |
2668 | */ | |
2669 | tSCC zHpux11_SnprintfList[] = | |
2670 | "|stdio.h|"; | |
2671 | /* | |
2672 | * Machine/OS name selection pattern | |
2673 | */ | |
2674 | #define apzHpux11_SnprintfMachs (const char**)NULL | |
2675 | ||
2676 | /* | |
2677 | * content selection pattern - do fix if pattern found | |
2678 | */ | |
2679 | tSCC zHpux11_SnprintfSelect0[] = | |
2680 | "(extern int snprintf *\\(char *\\*, *(|__|_hpux_)size_t,) *(char *\\*, *\\.\\.\\.\\);)"; | |
2681 | ||
2682 | #define HPUX11_SNPRINTF_TEST_CT 1 | |
2683 | static tTestDesc aHpux11_SnprintfTests[] = { | |
2684 | { TT_EGREP, zHpux11_SnprintfSelect0, (regex_t*)NULL }, }; | |
2685 | ||
2686 | /* | |
2687 | * Fix Command Arguments for Hpux11_Snprintf | |
2688 | */ | |
2689 | static const char* apzHpux11_SnprintfPatch[] = { | |
2690 | "format", | |
2691 | "%1 const %3", | |
2692 | (char*)NULL }; | |
2693 | ||
bb304030 | 2694 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
2695 | * | |
2c59c6d3 | 2696 | * Description of Hpux11_Uint32_C fix |
bb304030 | 2697 | */ |
2c59c6d3 | 2698 | tSCC zHpux11_Uint32_CName[] = |
2699 | "hpux11_uint32_c"; | |
d4c4b01d | 2700 | |
bb304030 | 2701 | /* |
2702 | * File name selection pattern | |
2703 | */ | |
2c59c6d3 | 2704 | tSCC zHpux11_Uint32_CList[] = |
2705 | "|inttypes.h|"; | |
bb304030 | 2706 | /* |
2707 | * Machine/OS name selection pattern | |
2708 | */ | |
2c59c6d3 | 2709 | #define apzHpux11_Uint32_CMachs (const char**)NULL |
bb304030 | 2710 | |
2711 | /* | |
2712 | * content selection pattern - do fix if pattern found | |
2713 | */ | |
2c59c6d3 | 2714 | tSCC zHpux11_Uint32_CSelect0[] = |
2715 | "^#define UINT32_C\\(__c\\)[ \t]*__CONCAT__\\(__CONCAT_U__\\(__c\\),l\\)"; | |
bb304030 | 2716 | |
2c59c6d3 | 2717 | #define HPUX11_UINT32_C_TEST_CT 1 |
2548396b | 2718 | static tTestDesc aHpux11_Uint32_CTests[] = { |
2c59c6d3 | 2719 | { TT_EGREP, zHpux11_Uint32_CSelect0, (regex_t*)NULL }, }; |
bb304030 | 2720 | |
2721 | /* | |
2c59c6d3 | 2722 | * Fix Command Arguments for Hpux11_Uint32_C |
bb304030 | 2723 | */ |
2548396b | 2724 | static const char* apzHpux11_Uint32_CPatch[] = { |
2c59c6d3 | 2725 | "format", |
2726 | "#define UINT32_C(__c) __CONCAT__(__c,ul)", | |
bb304030 | 2727 | (char*)NULL }; |
2728 | ||
6b5183e9 | 2729 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
2730 | * | |
ebf664b2 | 2731 | * Description of Hpux11_Vsnprintf fix |
6b5183e9 | 2732 | */ |
ebf664b2 | 2733 | tSCC zHpux11_VsnprintfName[] = |
2734 | "hpux11_vsnprintf"; | |
6b5183e9 | 2735 | |
2736 | /* | |
2737 | * File name selection pattern | |
2738 | */ | |
ebf664b2 | 2739 | tSCC zHpux11_VsnprintfList[] = |
2740 | "|stdio.h|"; | |
6b5183e9 | 2741 | /* |
2742 | * Machine/OS name selection pattern | |
2743 | */ | |
ebf664b2 | 2744 | #define apzHpux11_VsnprintfMachs (const char**)NULL |
6b5183e9 | 2745 | |
2746 | /* | |
2747 | * content selection pattern - do fix if pattern found | |
2748 | */ | |
ebf664b2 | 2749 | tSCC zHpux11_VsnprintfSelect0[] = |
2750 | "(extern int vsnprintf\\(char \\*, _[hpux]*_size_t, const char \\*,) __va__list\\);"; | |
6b5183e9 | 2751 | |
ebf664b2 | 2752 | #define HPUX11_VSNPRINTF_TEST_CT 1 |
2753 | static tTestDesc aHpux11_VsnprintfTests[] = { | |
2754 | { TT_EGREP, zHpux11_VsnprintfSelect0, (regex_t*)NULL }, }; | |
6b5183e9 | 2755 | |
2756 | /* | |
ebf664b2 | 2757 | * Fix Command Arguments for Hpux11_Vsnprintf |
6b5183e9 | 2758 | */ |
ebf664b2 | 2759 | static const char* apzHpux11_VsnprintfPatch[] = { |
6b5183e9 | 2760 | "format", |
ebf664b2 | 2761 | "%1 __va_list);", |
6b5183e9 | 2762 | (char*)NULL }; |
2763 | ||
2764 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
2765 | * | |
ebf664b2 | 2766 | * Description of Hpux8_Bogus_Inlines fix |
6b5183e9 | 2767 | */ |
ebf664b2 | 2768 | tSCC zHpux8_Bogus_InlinesName[] = |
2769 | "hpux8_bogus_inlines"; | |
6b5183e9 | 2770 | |
2771 | /* | |
2772 | * File name selection pattern | |
2773 | */ | |
ebf664b2 | 2774 | tSCC zHpux8_Bogus_InlinesList[] = |
2775 | "|math.h|"; | |
6b5183e9 | 2776 | /* |
2777 | * Machine/OS name selection pattern | |
2778 | */ | |
ebf664b2 | 2779 | #define apzHpux8_Bogus_InlinesMachs (const char**)NULL |
6b5183e9 | 2780 | |
2781 | /* | |
2782 | * content selection pattern - do fix if pattern found | |
2783 | */ | |
ebf664b2 | 2784 | tSCC zHpux8_Bogus_InlinesSelect0[] = |
2785 | "inline"; | |
6b5183e9 | 2786 | |
69c13546 | 2787 | /* |
2788 | * content bypass pattern - skip fix if pattern found | |
2789 | */ | |
2790 | tSCC zHpux8_Bogus_InlinesBypass0[] = | |
2791 | "__GNUG__"; | |
2792 | ||
2793 | #define HPUX8_BOGUS_INLINES_TEST_CT 2 | |
ebf664b2 | 2794 | static tTestDesc aHpux8_Bogus_InlinesTests[] = { |
69c13546 | 2795 | { TT_NEGREP, zHpux8_Bogus_InlinesBypass0, (regex_t*)NULL }, |
ebf664b2 | 2796 | { TT_EGREP, zHpux8_Bogus_InlinesSelect0, (regex_t*)NULL }, }; |
6b5183e9 | 2797 | |
2798 | /* | |
ebf664b2 | 2799 | * Fix Command Arguments for Hpux8_Bogus_Inlines |
6b5183e9 | 2800 | */ |
ebf664b2 | 2801 | static const char* apzHpux8_Bogus_InlinesPatch[] = { "sed", |
2802 | "-e", "s@inline int abs(int [a-z][a-z]*) {.*}@extern \"C\" int abs(int);@", | |
2803 | "-e", "s@inline double abs(double [a-z][a-z]*) {.*}@@", | |
2804 | "-e", "s@inline int sqr(int [a-z][a-z]*) {.*}@@", | |
2805 | "-e", "s@inline double sqr(double [a-z][a-z]*) {.*}@@", | |
6b5183e9 | 2806 | (char*)NULL }; |
2807 | ||
2808 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
2809 | * | |
2810 | * Description of Hpux_Ctype_Macros fix | |
2811 | */ | |
2812 | tSCC zHpux_Ctype_MacrosName[] = | |
2813 | "hpux_ctype_macros"; | |
2814 | ||
2815 | /* | |
2816 | * File name selection pattern | |
2817 | */ | |
2818 | tSCC zHpux_Ctype_MacrosList[] = | |
2819 | "|ctype.h|"; | |
2820 | /* | |
2821 | * Machine/OS name selection pattern | |
2822 | */ | |
2823 | #define apzHpux_Ctype_MacrosMachs (const char**)NULL | |
2824 | ||
2825 | /* | |
2826 | * content selection pattern - do fix if pattern found | |
2827 | */ | |
2828 | tSCC zHpux_Ctype_MacrosSelect0[] = | |
2829 | "((: |\\()__SB_masks \\? )(__SB_masks\\[__(alnum|c)\\] & _IS)"; | |
2830 | ||
2831 | #define HPUX_CTYPE_MACROS_TEST_CT 1 | |
2832 | static tTestDesc aHpux_Ctype_MacrosTests[] = { | |
2833 | { TT_EGREP, zHpux_Ctype_MacrosSelect0, (regex_t*)NULL }, }; | |
2834 | ||
2835 | /* | |
2836 | * Fix Command Arguments for Hpux_Ctype_Macros | |
2837 | */ | |
2838 | static const char* apzHpux_Ctype_MacrosPatch[] = { | |
2839 | "format", | |
2840 | "%1(int)%3", | |
2841 | (char*)NULL }; | |
2842 | ||
1589683c | 2843 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
2844 | * | |
2845 | * Description of Hpux_Htonl fix | |
2846 | */ | |
2847 | tSCC zHpux_HtonlName[] = | |
2848 | "hpux_htonl"; | |
2849 | ||
2850 | /* | |
2851 | * File name selection pattern | |
2852 | */ | |
2853 | tSCC zHpux_HtonlList[] = | |
2854 | "|netinet/in.h|"; | |
2855 | /* | |
2856 | * Machine/OS name selection pattern | |
2857 | */ | |
2858 | #define apzHpux_HtonlMachs (const char**)NULL | |
2859 | ||
2860 | /* | |
2861 | * content selection pattern - do fix if pattern found | |
2862 | */ | |
2863 | tSCC zHpux_HtonlSelect0[] = | |
2864 | "#ifndef _XOPEN_SOURCE_EXTENDED\n\ | |
2865 | (/\\*\n\ | |
2866 | \\* Macros for number representation conversion\\.\n\ | |
2867 | \\*/\n\ | |
2868 | #ifndef ntohl)"; | |
2869 | ||
2870 | #define HPUX_HTONL_TEST_CT 1 | |
2871 | static tTestDesc aHpux_HtonlTests[] = { | |
2872 | { TT_EGREP, zHpux_HtonlSelect0, (regex_t*)NULL }, }; | |
2873 | ||
2874 | /* | |
2875 | * Fix Command Arguments for Hpux_Htonl | |
2876 | */ | |
2877 | static const char* apzHpux_HtonlPatch[] = { | |
2878 | "format", | |
2879 | "#if 1\n\ | |
2880 | %1", | |
2881 | (char*)NULL }; | |
2882 | ||
a0d38f0b | 2883 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
2884 | * | |
ebf664b2 | 2885 | * Description of Hpux_Long_Double fix |
a0d38f0b | 2886 | */ |
ebf664b2 | 2887 | tSCC zHpux_Long_DoubleName[] = |
2888 | "hpux_long_double"; | |
a0d38f0b | 2889 | |
2890 | /* | |
2891 | * File name selection pattern | |
2892 | */ | |
ebf664b2 | 2893 | tSCC zHpux_Long_DoubleList[] = |
2894 | "|stdlib.h|"; | |
a0d38f0b | 2895 | /* |
2896 | * Machine/OS name selection pattern | |
2897 | */ | |
ebf664b2 | 2898 | #define apzHpux_Long_DoubleMachs (const char**)NULL |
a0d38f0b | 2899 | |
2900 | /* | |
2901 | * content selection pattern - do fix if pattern found | |
2902 | */ | |
ebf664b2 | 2903 | tSCC zHpux_Long_DoubleSelect0[] = |
2904 | "extern[ \t]long_double[ \t]strtold"; | |
9e024bbb | 2905 | |
2906 | /* | |
ebf664b2 | 2907 | * content bypass pattern - skip fix if pattern found |
9e024bbb | 2908 | */ |
ebf664b2 | 2909 | tSCC zHpux_Long_DoubleBypass0[] = |
2910 | "long_double_t"; | |
9e024bbb | 2911 | |
ebf664b2 | 2912 | #define HPUX_LONG_DOUBLE_TEST_CT 2 |
2913 | static tTestDesc aHpux_Long_DoubleTests[] = { | |
2914 | { TT_NEGREP, zHpux_Long_DoubleBypass0, (regex_t*)NULL }, | |
2915 | { TT_EGREP, zHpux_Long_DoubleSelect0, (regex_t*)NULL }, }; | |
9e024bbb | 2916 | |
2917 | /* | |
ebf664b2 | 2918 | * Fix Command Arguments for Hpux_Long_Double |
9e024bbb | 2919 | */ |
ebf664b2 | 2920 | static const char* apzHpux_Long_DoublePatch[] = { "sed", |
2921 | "-e", "/^#[ \t]*ifndef _LONG_DOUBLE/,/\\/\\* _LONG_DOUBLE \\*\\//D", | |
2922 | "-e", "s/long_double/long double/g", | |
9e024bbb | 2923 | (char*)NULL }; |
2924 | ||
fdb8fb96 | 2925 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
2926 | * | |
3072d11f | 2927 | * Description of Hpux_Systime fix |
fdb8fb96 | 2928 | */ |
3072d11f | 2929 | tSCC zHpux_SystimeName[] = |
2930 | "hpux_systime"; | |
d4c4b01d | 2931 | |
fdb8fb96 | 2932 | /* |
2933 | * File name selection pattern | |
2934 | */ | |
3072d11f | 2935 | tSCC zHpux_SystimeList[] = |
2936 | "|sys/time.h|"; | |
fdb8fb96 | 2937 | /* |
2938 | * Machine/OS name selection pattern | |
2939 | */ | |
3072d11f | 2940 | #define apzHpux_SystimeMachs (const char**)NULL |
fdb8fb96 | 2941 | |
2942 | /* | |
d6d7d999 | 2943 | * content selection pattern - do fix if pattern found |
fdb8fb96 | 2944 | */ |
3072d11f | 2945 | tSCC zHpux_SystimeSelect0[] = |
2946 | "^extern struct sigevent;"; | |
fdb8fb96 | 2947 | |
3072d11f | 2948 | #define HPUX_SYSTIME_TEST_CT 1 |
2949 | static tTestDesc aHpux_SystimeTests[] = { | |
2950 | { TT_EGREP, zHpux_SystimeSelect0, (regex_t*)NULL }, }; | |
fdb8fb96 | 2951 | |
2952 | /* | |
3072d11f | 2953 | * Fix Command Arguments for Hpux_Systime |
fdb8fb96 | 2954 | */ |
3072d11f | 2955 | static const char* apzHpux_SystimePatch[] = { |
cfe5be71 | 2956 | "format", |
3072d11f | 2957 | "struct sigevent;", |
2958 | (char*)NULL }; | |
2959 | ||
5dabcff3 | 2960 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
2961 | * | |
2962 | * Description of Hpux_Spu_Info fix | |
2963 | */ | |
2964 | tSCC zHpux_Spu_InfoName[] = | |
2965 | "hpux_spu_info"; | |
2966 | ||
2967 | /* | |
2968 | * File name selection pattern | |
2969 | */ | |
2970 | tSCC zHpux_Spu_InfoList[] = | |
2971 | "|ia64/sys/getppdp.h|"; | |
2972 | /* | |
2973 | * Machine/OS name selection pattern | |
2974 | */ | |
2975 | tSCC* apzHpux_Spu_InfoMachs[] = { | |
2976 | "*-hp-hpux*", | |
2977 | (const char*)NULL }; | |
2978 | ||
2979 | /* | |
2980 | * content selection pattern - do fix if pattern found | |
2981 | */ | |
2982 | tSCC zHpux_Spu_InfoSelect0[] = | |
2983 | "^.*extern.*spu_info.*"; | |
2984 | ||
2985 | #define HPUX_SPU_INFO_TEST_CT 1 | |
2986 | static tTestDesc aHpux_Spu_InfoTests[] = { | |
2987 | { TT_EGREP, zHpux_Spu_InfoSelect0, (regex_t*)NULL }, }; | |
2988 | ||
2989 | /* | |
2990 | * Fix Command Arguments for Hpux_Spu_Info | |
2991 | */ | |
2992 | static const char* apzHpux_Spu_InfoPatch[] = { | |
2993 | "format", | |
2994 | "#ifdef _KERNEL\n\ | |
2995 | %0\n\ | |
2996 | #endif", | |
2997 | (char*)NULL }; | |
2998 | ||
96eced21 | 2999 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
3000 | * | |
3001 | * Description of Huge_Val_Hex fix | |
3002 | */ | |
3003 | tSCC zHuge_Val_HexName[] = | |
3004 | "huge_val_hex"; | |
3005 | ||
3006 | /* | |
3007 | * File name selection pattern | |
3008 | */ | |
3009 | tSCC zHuge_Val_HexList[] = | |
3010 | "|bits/huge_val.h|"; | |
3011 | /* | |
3012 | * Machine/OS name selection pattern | |
3013 | */ | |
3014 | #define apzHuge_Val_HexMachs (const char**)NULL | |
3015 | ||
3016 | /* | |
3017 | * content selection pattern - do fix if pattern found | |
3018 | */ | |
3019 | tSCC zHuge_Val_HexSelect0[] = | |
3020 | "^#[ \t]*define[ \t]*HUGE_VAL[ \t].*0x1\\.0p.*"; | |
3021 | ||
3022 | /* | |
3023 | * content bypass pattern - skip fix if pattern found | |
3024 | */ | |
3025 | tSCC zHuge_Val_HexBypass0[] = | |
3026 | "__builtin_huge_val"; | |
3027 | ||
3028 | #define HUGE_VAL_HEX_TEST_CT 2 | |
3029 | static tTestDesc aHuge_Val_HexTests[] = { | |
3030 | { TT_NEGREP, zHuge_Val_HexBypass0, (regex_t*)NULL }, | |
3031 | { TT_EGREP, zHuge_Val_HexSelect0, (regex_t*)NULL }, }; | |
3032 | ||
3033 | /* | |
3034 | * Fix Command Arguments for Huge_Val_Hex | |
3035 | */ | |
3036 | static const char* apzHuge_Val_HexPatch[] = { | |
3037 | "format", | |
3038 | "#define HUGE_VAL (__builtin_huge_val())\n", | |
3039 | (char*)NULL }; | |
3040 | ||
3041 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
3042 | * | |
3043 | * Description of Huge_Valf_Hex fix | |
3044 | */ | |
3045 | tSCC zHuge_Valf_HexName[] = | |
3046 | "huge_valf_hex"; | |
3047 | ||
3048 | /* | |
3049 | * File name selection pattern | |
3050 | */ | |
3051 | tSCC zHuge_Valf_HexList[] = | |
3052 | "|bits/huge_val.h|"; | |
3053 | /* | |
3054 | * Machine/OS name selection pattern | |
3055 | */ | |
3056 | #define apzHuge_Valf_HexMachs (const char**)NULL | |
3057 | ||
3058 | /* | |
3059 | * content selection pattern - do fix if pattern found | |
3060 | */ | |
3061 | tSCC zHuge_Valf_HexSelect0[] = | |
3062 | "^#[ \t]*define[ \t]*HUGE_VALF[ \t].*0x1\\.0p.*"; | |
3063 | ||
3064 | /* | |
3065 | * content bypass pattern - skip fix if pattern found | |
3066 | */ | |
3067 | tSCC zHuge_Valf_HexBypass0[] = | |
3068 | "__builtin_huge_valf"; | |
3069 | ||
3070 | #define HUGE_VALF_HEX_TEST_CT 2 | |
3071 | static tTestDesc aHuge_Valf_HexTests[] = { | |
3072 | { TT_NEGREP, zHuge_Valf_HexBypass0, (regex_t*)NULL }, | |
3073 | { TT_EGREP, zHuge_Valf_HexSelect0, (regex_t*)NULL }, }; | |
3074 | ||
3075 | /* | |
3076 | * Fix Command Arguments for Huge_Valf_Hex | |
3077 | */ | |
3078 | static const char* apzHuge_Valf_HexPatch[] = { | |
3079 | "format", | |
3080 | "#define HUGE_VALF (__builtin_huge_valf())\n", | |
3081 | (char*)NULL }; | |
3082 | ||
3083 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
3084 | * | |
3085 | * Description of Huge_Vall_Hex fix | |
3086 | */ | |
3087 | tSCC zHuge_Vall_HexName[] = | |
3088 | "huge_vall_hex"; | |
3089 | ||
3090 | /* | |
3091 | * File name selection pattern | |
3092 | */ | |
3093 | tSCC zHuge_Vall_HexList[] = | |
3094 | "|bits/huge_val.h|"; | |
3095 | /* | |
3096 | * Machine/OS name selection pattern | |
3097 | */ | |
3098 | #define apzHuge_Vall_HexMachs (const char**)NULL | |
3099 | ||
3100 | /* | |
3101 | * content selection pattern - do fix if pattern found | |
3102 | */ | |
3103 | tSCC zHuge_Vall_HexSelect0[] = | |
3104 | "^#[ \t]*define[ \t]*HUGE_VALL[ \t].*0x1\\.0p.*"; | |
3105 | ||
3106 | /* | |
3107 | * content bypass pattern - skip fix if pattern found | |
3108 | */ | |
3109 | tSCC zHuge_Vall_HexBypass0[] = | |
3110 | "__builtin_huge_vall"; | |
3111 | ||
3112 | #define HUGE_VALL_HEX_TEST_CT 2 | |
3113 | static tTestDesc aHuge_Vall_HexTests[] = { | |
3114 | { TT_NEGREP, zHuge_Vall_HexBypass0, (regex_t*)NULL }, | |
3115 | { TT_EGREP, zHuge_Vall_HexSelect0, (regex_t*)NULL }, }; | |
3116 | ||
3117 | /* | |
3118 | * Fix Command Arguments for Huge_Vall_Hex | |
3119 | */ | |
3120 | static const char* apzHuge_Vall_HexPatch[] = { | |
3121 | "format", | |
3122 | "#define HUGE_VALL (__builtin_huge_vall())\n", | |
3123 | (char*)NULL }; | |
3124 | ||
3072d11f | 3125 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
3126 | * | |
3127 | * Description of Int_Abort_Free_And_Exit fix | |
3128 | */ | |
3129 | tSCC zInt_Abort_Free_And_ExitName[] = | |
3130 | "int_abort_free_and_exit"; | |
3131 | ||
3132 | /* | |
3133 | * File name selection pattern | |
3134 | */ | |
3135 | tSCC zInt_Abort_Free_And_ExitList[] = | |
3136 | "|stdlib.h|"; | |
3137 | /* | |
3138 | * Machine/OS name selection pattern | |
3139 | */ | |
3140 | #define apzInt_Abort_Free_And_ExitMachs (const char**)NULL | |
3141 | ||
3142 | /* | |
3143 | * content selection pattern - do fix if pattern found | |
3144 | */ | |
3145 | tSCC zInt_Abort_Free_And_ExitSelect0[] = | |
3146 | "int[ \t]+(abort|free|exit)[ \t]*\\("; | |
3147 | ||
69c13546 | 3148 | /* |
3149 | * content bypass pattern - skip fix if pattern found | |
3150 | */ | |
3151 | tSCC zInt_Abort_Free_And_ExitBypass0[] = | |
3152 | "_CLASSIC_ANSI_TYPES"; | |
3153 | ||
3154 | #define INT_ABORT_FREE_AND_EXIT_TEST_CT 2 | |
3072d11f | 3155 | static tTestDesc aInt_Abort_Free_And_ExitTests[] = { |
69c13546 | 3156 | { TT_NEGREP, zInt_Abort_Free_And_ExitBypass0, (regex_t*)NULL }, |
3072d11f | 3157 | { TT_EGREP, zInt_Abort_Free_And_ExitSelect0, (regex_t*)NULL }, }; |
3158 | ||
3159 | /* | |
3160 | * Fix Command Arguments for Int_Abort_Free_And_Exit | |
3161 | */ | |
3162 | static const char* apzInt_Abort_Free_And_ExitPatch[] = { | |
3163 | "format", | |
3164 | "void\t%1(", | |
fdb8fb96 | 3165 | (char*)NULL }; |
3166 | ||
fdb8fb96 | 3167 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
3168 | * | |
49b4955b | 3169 | * Description of Io_Quotes_Def fix |
fdb8fb96 | 3170 | */ |
49b4955b | 3171 | tSCC zIo_Quotes_DefName[] = |
3172 | "io_quotes_def"; | |
d4c4b01d | 3173 | |
fdb8fb96 | 3174 | /* |
3175 | * File name selection pattern | |
3176 | */ | |
49b4955b | 3177 | #define zIo_Quotes_DefList (char*)NULL |
fdb8fb96 | 3178 | /* |
3179 | * Machine/OS name selection pattern | |
3180 | */ | |
49b4955b | 3181 | #define apzIo_Quotes_DefMachs (const char**)NULL |
fdb8fb96 | 3182 | |
3183 | /* | |
c1b28c63 | 3184 | * content selection pattern - do fix if pattern found |
fdb8fb96 | 3185 | */ |
49b4955b | 3186 | tSCC zIo_Quotes_DefSelect0[] = |
edb5e81d | 3187 | "define[ \t]+[A-Z0-9_]+IO[A-Z]*\\([a-zA-Z][,)]"; |
fdb8fb96 | 3188 | |
49b4955b | 3189 | #define IO_QUOTES_DEF_TEST_CT 1 |
2548396b | 3190 | static tTestDesc aIo_Quotes_DefTests[] = { |
49b4955b | 3191 | { TT_EGREP, zIo_Quotes_DefSelect0, (regex_t*)NULL }, }; |
fdb8fb96 | 3192 | |
3193 | /* | |
49b4955b | 3194 | * Fix Command Arguments for Io_Quotes_Def |
fdb8fb96 | 3195 | */ |
2548396b | 3196 | static const char* apzIo_Quotes_DefPatch[] = { |
c940c2ae | 3197 | "char_macro_def", |
3198 | "IO", | |
ada96dc2 | 3199 | (char*)NULL }; |
3200 | ||
3201 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
3202 | * | |
472aa368 | 3203 | * Description of Io_Quotes_Use fix |
ada96dc2 | 3204 | */ |
472aa368 | 3205 | tSCC zIo_Quotes_UseName[] = |
3206 | "io_quotes_use"; | |
d4c4b01d | 3207 | |
ada96dc2 | 3208 | /* |
3209 | * File name selection pattern | |
3210 | */ | |
472aa368 | 3211 | #define zIo_Quotes_UseList (char*)NULL |
ada96dc2 | 3212 | /* |
3213 | * Machine/OS name selection pattern | |
3214 | */ | |
472aa368 | 3215 | #define apzIo_Quotes_UseMachs (const char**)NULL |
ada96dc2 | 3216 | |
3217 | /* | |
3218 | * content selection pattern - do fix if pattern found | |
3219 | */ | |
472aa368 | 3220 | tSCC zIo_Quotes_UseSelect0[] = |
3221 | "define[ \t]+[A-Z0-9_]+[ \t]+[A-Z0-9_]+IO[A-Z]*[ \t]*\\( *[^,']"; | |
ada96dc2 | 3222 | |
472aa368 | 3223 | #define IO_QUOTES_USE_TEST_CT 1 |
2548396b | 3224 | static tTestDesc aIo_Quotes_UseTests[] = { |
472aa368 | 3225 | { TT_EGREP, zIo_Quotes_UseSelect0, (regex_t*)NULL }, }; |
ada96dc2 | 3226 | |
3227 | /* | |
472aa368 | 3228 | * Fix Command Arguments for Io_Quotes_Use |
ada96dc2 | 3229 | */ |
2548396b | 3230 | static const char* apzIo_Quotes_UsePatch[] = { |
c940c2ae | 3231 | "char_macro_use", |
472aa368 | 3232 | "IO", |
fdb8fb96 | 3233 | (char*)NULL }; |
3234 | ||
3235 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
3236 | * | |
3072d11f | 3237 | * Description of Ip_Missing_Semi fix |
fdb8fb96 | 3238 | */ |
3072d11f | 3239 | tSCC zIp_Missing_SemiName[] = |
3240 | "ip_missing_semi"; | |
d4c4b01d | 3241 | |
fdb8fb96 | 3242 | /* |
3243 | * File name selection pattern | |
3244 | */ | |
3072d11f | 3245 | tSCC zIp_Missing_SemiList[] = |
3246 | "|netinet/ip.h|"; | |
fdb8fb96 | 3247 | /* |
3248 | * Machine/OS name selection pattern | |
3249 | */ | |
3072d11f | 3250 | #define apzIp_Missing_SemiMachs (const char**)NULL |
bb304030 | 3251 | |
3252 | /* | |
3253 | * content selection pattern - do fix if pattern found | |
cfe5be71 | 3254 | */ |
3072d11f | 3255 | tSCC zIp_Missing_SemiSelect0[] = |
3256 | "}$"; | |
cfe5be71 | 3257 | |
3072d11f | 3258 | #define IP_MISSING_SEMI_TEST_CT 1 |
3259 | static tTestDesc aIp_Missing_SemiTests[] = { | |
3260 | { TT_EGREP, zIp_Missing_SemiSelect0, (regex_t*)NULL }, }; | |
2ef2faef | 3261 | |
3262 | /* | |
3072d11f | 3263 | * Fix Command Arguments for Ip_Missing_Semi |
fdb8fb96 | 3264 | */ |
3072d11f | 3265 | static const char* apzIp_Missing_SemiPatch[] = { "sed", |
3266 | "-e", "/^struct/,/^};/s/}$/};/", | |
fdb8fb96 | 3267 | (char*)NULL }; |
3268 | ||
4a050cc7 | 3269 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
3270 | * | |
3271 | * Description of Irix___Restrict fix | |
3272 | */ | |
3273 | tSCC zIrix___RestrictName[] = | |
3274 | "irix___restrict"; | |
3275 | ||
3276 | /* | |
3277 | * File name selection pattern | |
3278 | */ | |
3279 | tSCC zIrix___RestrictList[] = | |
3280 | "|internal/sgimacros.h|"; | |
3281 | /* | |
3282 | * Machine/OS name selection pattern | |
3283 | */ | |
3284 | tSCC* apzIrix___RestrictMachs[] = { | |
3285 | "mips-sgi-irix6.5", | |
3286 | (const char*)NULL }; | |
3287 | ||
3288 | /* | |
3289 | * content selection pattern - do fix if pattern found | |
3290 | */ | |
3291 | tSCC zIrix___RestrictSelect0[] = | |
3292 | "(#ifdef __c99\n\ | |
3293 | )(#[ \t]*define __restrict restrict)"; | |
3294 | ||
3295 | #define IRIX___RESTRICT_TEST_CT 1 | |
3296 | static tTestDesc aIrix___RestrictTests[] = { | |
3297 | { TT_EGREP, zIrix___RestrictSelect0, (regex_t*)NULL }, }; | |
3298 | ||
3299 | /* | |
3300 | * Fix Command Arguments for Irix___Restrict | |
3301 | */ | |
3302 | static const char* apzIrix___RestrictPatch[] = { | |
3303 | "format", | |
3304 | "%1# ifndef __cplusplus\n\ | |
3305 | %2\n\ | |
3306 | # endif", | |
3307 | (char*)NULL }; | |
3308 | ||
248b5b6c | 3309 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
3310 | * | |
3311 | * Description of Irix___Generic1 fix | |
3312 | */ | |
3313 | tSCC zIrix___Generic1Name[] = | |
3314 | "irix___generic1"; | |
3315 | ||
3316 | /* | |
3317 | * File name selection pattern | |
3318 | */ | |
3319 | tSCC zIrix___Generic1List[] = | |
3320 | "|internal/math_core.h|"; | |
3321 | /* | |
3322 | * Machine/OS name selection pattern | |
3323 | */ | |
3324 | tSCC* apzIrix___Generic1Machs[] = { | |
3325 | "mips-sgi-irix6.5", | |
3326 | (const char*)NULL }; | |
3327 | ||
3328 | /* | |
3329 | * content selection pattern - do fix if pattern found | |
3330 | */ | |
3331 | tSCC zIrix___Generic1Select0[] = | |
3332 | "#define ([a-z]+)\\(x\\) *__generic.*"; | |
3333 | ||
3334 | #define IRIX___GENERIC1_TEST_CT 1 | |
3335 | static tTestDesc aIrix___Generic1Tests[] = { | |
3336 | { TT_EGREP, zIrix___Generic1Select0, (regex_t*)NULL }, }; | |
3337 | ||
3338 | /* | |
3339 | * Fix Command Arguments for Irix___Generic1 | |
3340 | */ | |
3341 | static const char* apzIrix___Generic1Patch[] = { | |
3342 | "format", | |
3343 | "extern int %1(double);\n\ | |
3344 | extern int %1f(float);\n\ | |
3345 | extern int %1l(long double);\n\ | |
3346 | #define %1(x) (sizeof(x) == sizeof(double) ? _%1(x) \\\n\ | |
3347 | : sizeof(x) == sizeof(float) ? _%1f(x) \\\n\ | |
3348 | : _%1l(x))\n", | |
3349 | (char*)NULL }; | |
3350 | ||
3351 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
3352 | * | |
3353 | * Description of Irix___Generic2 fix | |
3354 | */ | |
3355 | tSCC zIrix___Generic2Name[] = | |
3356 | "irix___generic2"; | |
3357 | ||
3358 | /* | |
3359 | * File name selection pattern | |
3360 | */ | |
3361 | tSCC zIrix___Generic2List[] = | |
3362 | "|internal/math_core.h|"; | |
3363 | /* | |
3364 | * Machine/OS name selection pattern | |
3365 | */ | |
3366 | tSCC* apzIrix___Generic2Machs[] = { | |
3367 | "mips-sgi-irix6.5", | |
3368 | (const char*)NULL }; | |
3369 | ||
3370 | /* | |
3371 | * content selection pattern - do fix if pattern found | |
3372 | */ | |
3373 | tSCC zIrix___Generic2Select0[] = | |
3374 | "#define ([a-z]+)\\(x,y\\) *__generic.*"; | |
3375 | ||
3376 | #define IRIX___GENERIC2_TEST_CT 1 | |
3377 | static tTestDesc aIrix___Generic2Tests[] = { | |
3378 | { TT_EGREP, zIrix___Generic2Select0, (regex_t*)NULL }, }; | |
3379 | ||
3380 | /* | |
3381 | * Fix Command Arguments for Irix___Generic2 | |
3382 | */ | |
3383 | static const char* apzIrix___Generic2Patch[] = { | |
3384 | "format", | |
3385 | "#define %1(x,y) \\\n\ | |
3386 | ((sizeof(x)<=4 && sizeof(y)<=4) ? _%1f(x,y) \\\n\ | |
3387 | : (sizeof(x)<=8 && sizeof(y)<=8) ? _%1(x,y) \\\n\ | |
3388 | : _%1l(x,y))\n", | |
3389 | (char*)NULL }; | |
3390 | ||
fdb8fb96 | 3391 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
3392 | * | |
3072d11f | 3393 | * Description of Irix_Asm_Apostrophe fix |
fdb8fb96 | 3394 | */ |
3072d11f | 3395 | tSCC zIrix_Asm_ApostropheName[] = |
3396 | "irix_asm_apostrophe"; | |
d4c4b01d | 3397 | |
fdb8fb96 | 3398 | /* |
3399 | * File name selection pattern | |
3400 | */ | |
3072d11f | 3401 | tSCC zIrix_Asm_ApostropheList[] = |
3402 | "|sys/asm.h|"; | |
fdb8fb96 | 3403 | /* |
3404 | * Machine/OS name selection pattern | |
3405 | */ | |
3072d11f | 3406 | #define apzIrix_Asm_ApostropheMachs (const char**)NULL |
fdb8fb96 | 3407 | |
3408 | /* | |
c1b28c63 | 3409 | * content selection pattern - do fix if pattern found |
fdb8fb96 | 3410 | */ |
3072d11f | 3411 | tSCC zIrix_Asm_ApostropheSelect0[] = |
3412 | "^[ \t]*#.*[Ww]e're"; | |
d4c4b01d | 3413 | |
3072d11f | 3414 | #define IRIX_ASM_APOSTROPHE_TEST_CT 1 |
3415 | static tTestDesc aIrix_Asm_ApostropheTests[] = { | |
3416 | { TT_EGREP, zIrix_Asm_ApostropheSelect0, (regex_t*)NULL }, }; | |
fdb8fb96 | 3417 | |
3418 | /* | |
3072d11f | 3419 | * Fix Command Arguments for Irix_Asm_Apostrophe |
fdb8fb96 | 3420 | */ |
3072d11f | 3421 | static const char* apzIrix_Asm_ApostrophePatch[] = { |
a83746ef | 3422 | "format", |
3072d11f | 3423 | "%1 are", |
3424 | "^([ \t]*#.*[Ww]e)'re", | |
fdb8fb96 | 3425 | (char*)NULL }; |
3426 | ||
3427 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
3428 | * | |
3072d11f | 3429 | * Description of Irix_Limits_Const fix |
01719fc0 | 3430 | */ |
3072d11f | 3431 | tSCC zIrix_Limits_ConstName[] = |
3432 | "irix_limits_const"; | |
d4c4b01d | 3433 | |
01719fc0 | 3434 | /* |
3435 | * File name selection pattern | |
3436 | */ | |
3072d11f | 3437 | tSCC zIrix_Limits_ConstList[] = |
3438 | "|fixinc-test-limits.h|limits.h|"; | |
01719fc0 | 3439 | /* |
3440 | * Machine/OS name selection pattern | |
3441 | */ | |
3072d11f | 3442 | #define apzIrix_Limits_ConstMachs (const char**)NULL |
01719fc0 | 3443 | |
3444 | /* | |
3445 | * content selection pattern - do fix if pattern found | |
3446 | */ | |
3072d11f | 3447 | tSCC zIrix_Limits_ConstSelect0[] = |
3448 | "^extern const "; | |
01719fc0 | 3449 | |
3072d11f | 3450 | #define IRIX_LIMITS_CONST_TEST_CT 1 |
3451 | static tTestDesc aIrix_Limits_ConstTests[] = { | |
3452 | { TT_EGREP, zIrix_Limits_ConstSelect0, (regex_t*)NULL }, }; | |
01719fc0 | 3453 | |
3454 | /* | |
3072d11f | 3455 | * Fix Command Arguments for Irix_Limits_Const |
01719fc0 | 3456 | */ |
3072d11f | 3457 | static const char* apzIrix_Limits_ConstPatch[] = { |
cfe5be71 | 3458 | "format", |
3072d11f | 3459 | "extern __const ", |
fdb8fb96 | 3460 | (char*)NULL }; |
3461 | ||
609088c0 | 3462 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
3463 | * | |
3464 | * Description of Irix_Socklen_T fix | |
3465 | */ | |
3466 | tSCC zIrix_Socklen_TName[] = | |
3467 | "irix_socklen_t"; | |
3468 | ||
3469 | /* | |
3470 | * File name selection pattern | |
3471 | */ | |
3472 | tSCC zIrix_Socklen_TList[] = | |
3473 | "|sys/socket.h|"; | |
3474 | /* | |
3475 | * Machine/OS name selection pattern | |
3476 | */ | |
3477 | tSCC* apzIrix_Socklen_TMachs[] = { | |
3478 | "mips-sgi-irix6.5", | |
3479 | (const char*)NULL }; | |
3480 | ||
3481 | /* | |
3482 | * content selection pattern - do fix if pattern found | |
3483 | */ | |
3484 | tSCC zIrix_Socklen_TSelect0[] = | |
3485 | "(#define _SOCKLEN_T\n\ | |
3486 | )(typedef u_int32_t socklen_t;)"; | |
3487 | ||
3488 | #define IRIX_SOCKLEN_T_TEST_CT 1 | |
3489 | static tTestDesc aIrix_Socklen_TTests[] = { | |
3490 | { TT_EGREP, zIrix_Socklen_TSelect0, (regex_t*)NULL }, }; | |
3491 | ||
3492 | /* | |
3493 | * Fix Command Arguments for Irix_Socklen_T | |
3494 | */ | |
3495 | static const char* apzIrix_Socklen_TPatch[] = { | |
3496 | "format", | |
3497 | "%1#if _NO_XOPEN4 && _NO_XOPEN5\n\ | |
3498 | typedef int socklen_t;\n\ | |
3499 | #else\n\ | |
3500 | %2\n\ | |
3501 | #endif /* _NO_XOPEN4 && _NO_XOPEN5 */", | |
3502 | (char*)NULL }; | |
3503 | ||
06730757 | 3504 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
3505 | * | |
3506 | * Description of Irix_Stdio_Va_List fix | |
3507 | */ | |
06730757 | 3508 | tSCC zIrix_Stdio_Va_ListName[] = |
3509 | "irix_stdio_va_list"; | |
3510 | ||
3511 | /* | |
3512 | * File name selection pattern | |
3513 | */ | |
3514 | tSCC zIrix_Stdio_Va_ListList[] = | |
857f8fc6 | 3515 | "|stdio.h|internal/stdio_core.h|"; |
06730757 | 3516 | /* |
3517 | * Machine/OS name selection pattern | |
3518 | */ | |
3519 | #define apzIrix_Stdio_Va_ListMachs (const char**)NULL | |
3520 | ||
3521 | /* | |
3522 | * content selection pattern - do fix if pattern found | |
3523 | */ | |
3524 | tSCC zIrix_Stdio_Va_ListSelect0[] = | |
38f81ce5 | 3525 | "/\\* va_list \\*/ char \\*"; |
06730757 | 3526 | |
3527 | #define IRIX_STDIO_VA_LIST_TEST_CT 1 | |
3528 | static tTestDesc aIrix_Stdio_Va_ListTests[] = { | |
3529 | { TT_EGREP, zIrix_Stdio_Va_ListSelect0, (regex_t*)NULL }, }; | |
3530 | ||
3531 | /* | |
3532 | * Fix Command Arguments for Irix_Stdio_Va_List | |
3533 | */ | |
3534 | static const char* apzIrix_Stdio_Va_ListPatch[] = { | |
3535 | "format", | |
38f81ce5 | 3536 | "__gnuc_va_list", |
06730757 | 3537 | (char*)NULL }; |
3538 | ||
609088c0 | 3539 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
3540 | * | |
3541 | * Description of Irix_Wcsftime fix | |
3542 | */ | |
3543 | tSCC zIrix_WcsftimeName[] = | |
3544 | "irix_wcsftime"; | |
3545 | ||
3546 | /* | |
3547 | * File name selection pattern | |
3548 | */ | |
3549 | tSCC zIrix_WcsftimeList[] = | |
3550 | "|internal/wchar_core.h|"; | |
3551 | /* | |
3552 | * Machine/OS name selection pattern | |
3553 | */ | |
3554 | tSCC* apzIrix_WcsftimeMachs[] = { | |
3555 | "mips-sgi-irix6.5", | |
3556 | (const char*)NULL }; | |
3557 | ||
3558 | /* | |
3559 | * content selection pattern - do fix if pattern found | |
3560 | */ | |
3561 | tSCC zIrix_WcsftimeSelect0[] = | |
3562 | "#if _NO_XOPEN5\n\ | |
3563 | (extern size_t[ \t]+wcsftime.*const char *.*)"; | |
3564 | ||
3565 | #define IRIX_WCSFTIME_TEST_CT 1 | |
3566 | static tTestDesc aIrix_WcsftimeTests[] = { | |
3567 | { TT_EGREP, zIrix_WcsftimeSelect0, (regex_t*)NULL }, }; | |
3568 | ||
3569 | /* | |
3570 | * Fix Command Arguments for Irix_Wcsftime | |
3571 | */ | |
3572 | static const char* apzIrix_WcsftimePatch[] = { | |
3573 | "format", | |
3574 | "#if _NO_XOPEN5 && !defined(__c99)\n\ | |
3575 | %1", | |
3576 | (char*)NULL }; | |
3577 | ||
49e3683c | 3578 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
3579 | * | |
3072d11f | 3580 | * Description of Isc_Fmod fix |
49e3683c | 3581 | */ |
3072d11f | 3582 | tSCC zIsc_FmodName[] = |
3583 | "isc_fmod"; | |
49e3683c | 3584 | |
3585 | /* | |
3586 | * File name selection pattern | |
3587 | */ | |
3072d11f | 3588 | tSCC zIsc_FmodList[] = |
3589 | "|math.h|"; | |
49e3683c | 3590 | /* |
3591 | * Machine/OS name selection pattern | |
3592 | */ | |
3072d11f | 3593 | #define apzIsc_FmodMachs (const char**)NULL |
49e3683c | 3594 | |
3595 | /* | |
3596 | * content selection pattern - do fix if pattern found | |
3597 | */ | |
3072d11f | 3598 | tSCC zIsc_FmodSelect0[] = |
3599 | "fmod\\(double\\)"; | |
49e3683c | 3600 | |
3072d11f | 3601 | #define ISC_FMOD_TEST_CT 1 |
3602 | static tTestDesc aIsc_FmodTests[] = { | |
3603 | { TT_EGREP, zIsc_FmodSelect0, (regex_t*)NULL }, }; | |
49e3683c | 3604 | |
3605 | /* | |
3072d11f | 3606 | * Fix Command Arguments for Isc_Fmod |
49e3683c | 3607 | */ |
3072d11f | 3608 | static const char* apzIsc_FmodPatch[] = { |
49e3683c | 3609 | "format", |
3072d11f | 3610 | "fmod(double, double)", |
49e3683c | 3611 | (char*)NULL }; |
3612 | ||
fdb8fb96 | 3613 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
3614 | * | |
3072d11f | 3615 | * Description of Isc_Omits_With_Stdc fix |
fdb8fb96 | 3616 | */ |
3072d11f | 3617 | tSCC zIsc_Omits_With_StdcName[] = |
3618 | "isc_omits_with_stdc"; | |
d4c4b01d | 3619 | |
fdb8fb96 | 3620 | /* |
3621 | * File name selection pattern | |
3622 | */ | |
3072d11f | 3623 | tSCC zIsc_Omits_With_StdcList[] = |
3624 | "|stdio.h|math.h|ctype.h|sys/limits.h|sys/fcntl.h|sys/dirent.h|"; | |
fdb8fb96 | 3625 | /* |
3626 | * Machine/OS name selection pattern | |
3627 | */ | |
3072d11f | 3628 | #define apzIsc_Omits_With_StdcMachs (const char**)NULL |
fdb8fb96 | 3629 | |
3630 | /* | |
c1b28c63 | 3631 | * content selection pattern - do fix if pattern found |
fdb8fb96 | 3632 | */ |
3072d11f | 3633 | tSCC zIsc_Omits_With_StdcSelect0[] = |
3634 | "!defined\\(__STDC__\\) && !defined\\(_POSIX_SOURCE\\)"; | |
fdb8fb96 | 3635 | |
3072d11f | 3636 | #define ISC_OMITS_WITH_STDC_TEST_CT 1 |
3637 | static tTestDesc aIsc_Omits_With_StdcTests[] = { | |
3638 | { TT_EGREP, zIsc_Omits_With_StdcSelect0, (regex_t*)NULL }, }; | |
fdb8fb96 | 3639 | |
3640 | /* | |
3072d11f | 3641 | * Fix Command Arguments for Isc_Omits_With_Stdc |
fdb8fb96 | 3642 | */ |
3072d11f | 3643 | static const char* apzIsc_Omits_With_StdcPatch[] = { |
cfe5be71 | 3644 | "format", |
3072d11f | 3645 | "!defined(_POSIX_SOURCE)", |
fdb8fb96 | 3646 | (char*)NULL }; |
3647 | ||
3648 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
3649 | * | |
5daf7ede | 3650 | * Description of Kandr_Concat fix |
fdb8fb96 | 3651 | */ |
3652 | tSCC zKandr_ConcatName[] = | |
d4c4b01d | 3653 | "kandr_concat"; |
3654 | ||
fdb8fb96 | 3655 | /* |
3656 | * File name selection pattern | |
3657 | */ | |
3658 | tSCC zKandr_ConcatList[] = | |
efb1b79b | 3659 | "|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|"; |
fdb8fb96 | 3660 | /* |
3661 | * Machine/OS name selection pattern | |
3662 | */ | |
3663 | #define apzKandr_ConcatMachs (const char**)NULL | |
3664 | ||
3665 | /* | |
c1b28c63 | 3666 | * content selection pattern - do fix if pattern found |
fdb8fb96 | 3667 | */ |
3668 | tSCC zKandr_ConcatSelect0[] = | |
3669 | "/\\*\\*/"; | |
3670 | ||
3671 | #define KANDR_CONCAT_TEST_CT 1 | |
2548396b | 3672 | static tTestDesc aKandr_ConcatTests[] = { |
5daf7ede | 3673 | { TT_EGREP, zKandr_ConcatSelect0, (regex_t*)NULL }, }; |
fdb8fb96 | 3674 | |
3675 | /* | |
3676 | * Fix Command Arguments for Kandr_Concat | |
3677 | */ | |
2548396b | 3678 | static const char* apzKandr_ConcatPatch[] = { |
cfe5be71 | 3679 | "format", |
3680 | "##", | |
fdb8fb96 | 3681 | (char*)NULL }; |
3682 | ||
ca58af19 | 3683 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
3684 | * | |
3685 | * Description of Libc1_G_Va_List fix | |
3686 | */ | |
3687 | tSCC zLibc1_G_Va_ListName[] = | |
3688 | "libc1_G_va_list"; | |
3689 | ||
3690 | /* | |
3691 | * File name selection pattern | |
3692 | */ | |
3693 | tSCC zLibc1_G_Va_ListList[] = | |
3694 | "|_G_config.h|"; | |
3695 | /* | |
3696 | * Machine/OS name selection pattern | |
3697 | */ | |
3698 | tSCC* apzLibc1_G_Va_ListMachs[] = { | |
3699 | "*-*-linux*libc1", | |
3700 | (const char*)NULL }; | |
3701 | ||
3702 | /* | |
3703 | * content selection pattern - do fix if pattern found | |
3704 | */ | |
3705 | tSCC zLibc1_G_Va_ListSelect0[] = | |
3706 | "typedef void \\* _G_va_list;"; | |
3707 | ||
3708 | #define LIBC1_G_VA_LIST_TEST_CT 1 | |
3709 | static tTestDesc aLibc1_G_Va_ListTests[] = { | |
3710 | { TT_EGREP, zLibc1_G_Va_ListSelect0, (regex_t*)NULL }, }; | |
3711 | ||
3712 | /* | |
3713 | * Fix Command Arguments for Libc1_G_Va_List | |
3714 | */ | |
3715 | static const char* apzLibc1_G_Va_ListPatch[] = { | |
3716 | "format", | |
3717 | "typedef __builtin_va_list _G_va_list;", | |
3718 | (char*)NULL }; | |
3719 | ||
21b4ef4f | 3720 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
3721 | * | |
3722 | * Description of Libc1_Ifdefd_Memx fix | |
3723 | */ | |
21b4ef4f | 3724 | tSCC zLibc1_Ifdefd_MemxName[] = |
3725 | "libc1_ifdefd_memx"; | |
3726 | ||
3727 | /* | |
3728 | * File name selection pattern | |
3729 | */ | |
3730 | tSCC zLibc1_Ifdefd_MemxList[] = | |
3731 | "|testing.h|string.h|"; | |
3732 | /* | |
3733 | * Machine/OS name selection pattern | |
3734 | */ | |
3735 | #define apzLibc1_Ifdefd_MemxMachs (const char**)NULL | |
3736 | ||
3737 | /* | |
3738 | * content selection pattern - do fix if pattern found | |
3739 | */ | |
3740 | tSCC zLibc1_Ifdefd_MemxSelect0[] = | |
3741 | "' is a built-in function for gcc 2\\.x\\. \\*/"; | |
3742 | ||
3743 | /* | |
3744 | * content bypass pattern - skip fix if pattern found | |
3745 | */ | |
3746 | tSCC zLibc1_Ifdefd_MemxBypass0[] = | |
3747 | "__cplusplus"; | |
3748 | ||
3749 | #define LIBC1_IFDEFD_MEMX_TEST_CT 2 | |
2548396b | 3750 | static tTestDesc aLibc1_Ifdefd_MemxTests[] = { |
21b4ef4f | 3751 | { TT_NEGREP, zLibc1_Ifdefd_MemxBypass0, (regex_t*)NULL }, |
3752 | { TT_EGREP, zLibc1_Ifdefd_MemxSelect0, (regex_t*)NULL }, }; | |
3753 | ||
3754 | /* | |
3755 | * Fix Command Arguments for Libc1_Ifdefd_Memx | |
3756 | */ | |
2548396b | 3757 | static const char* apzLibc1_Ifdefd_MemxPatch[] = { |
21b4ef4f | 3758 | "format", |
2706a435 | 3759 | "%1", |
21b4ef4f | 3760 | "/\\* `mem...' is a built-in function for gcc 2\\.x\\. \\*/\n\ |
2706a435 | 3761 | #if defined\\(__STDC__\\) && __GNUC__ < 2\n\ |
21b4ef4f | 3762 | (/\\* .* \\*/\n\ |
2706a435 | 3763 | extern [a-z_]+ mem.*(\n\ |
3764 | [^#].*)*;)\n\ | |
3765 | #endif", | |
21b4ef4f | 3766 | (char*)NULL }; |
3767 | ||
d92db5b6 | 3768 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
3769 | * | |
3770 | * Description of Linux_Ia64_Ucontext fix | |
3771 | */ | |
3772 | tSCC zLinux_Ia64_UcontextName[] = | |
3773 | "linux_ia64_ucontext"; | |
3774 | ||
3775 | /* | |
3776 | * File name selection pattern | |
3777 | */ | |
3778 | tSCC zLinux_Ia64_UcontextList[] = | |
3779 | "|sys/ucontext.h|"; | |
3780 | /* | |
3781 | * Machine/OS name selection pattern | |
3782 | */ | |
3783 | tSCC* apzLinux_Ia64_UcontextMachs[] = { | |
3784 | "ia64-*-linux*", | |
3785 | (const char*)NULL }; | |
3786 | ||
3787 | /* | |
3788 | * content selection pattern - do fix if pattern found | |
3789 | */ | |
3790 | tSCC zLinux_Ia64_UcontextSelect0[] = | |
3791 | "\\(\\(\\(char \\*\\) &\\(\\(struct sigcontext \\*\\) 0\\)->sc_gr\\[0\\]\\) - \\(char \\*\\) 0\\)"; | |
3792 | ||
3793 | #define LINUX_IA64_UCONTEXT_TEST_CT 1 | |
3794 | static tTestDesc aLinux_Ia64_UcontextTests[] = { | |
3795 | { TT_EGREP, zLinux_Ia64_UcontextSelect0, (regex_t*)NULL }, }; | |
3796 | ||
3797 | /* | |
3798 | * Fix Command Arguments for Linux_Ia64_Ucontext | |
3799 | */ | |
3800 | static const char* apzLinux_Ia64_UcontextPatch[] = { | |
3801 | "format", | |
3802 | "__builtin_offsetof (struct sigcontext, sc_gr[0])", | |
3803 | (char*)NULL }; | |
3804 | ||
fdb8fb96 | 3805 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
3806 | * | |
435ea059 | 3807 | * Description of Lynxos_No_Warning_In_Sys_Time_H fix |
fdb8fb96 | 3808 | */ |
435ea059 | 3809 | tSCC zLynxos_No_Warning_In_Sys_Time_HName[] = |
3810 | "lynxos_no_warning_in_sys_time_h"; | |
d4c4b01d | 3811 | |
fdb8fb96 | 3812 | /* |
3813 | * File name selection pattern | |
3814 | */ | |
435ea059 | 3815 | tSCC zLynxos_No_Warning_In_Sys_Time_HList[] = |
3816 | "|sys/time.h|"; | |
fdb8fb96 | 3817 | /* |
3818 | * Machine/OS name selection pattern | |
3819 | */ | |
435ea059 | 3820 | #define apzLynxos_No_Warning_In_Sys_Time_HMachs (const char**)NULL |
fdb8fb96 | 3821 | |
3822 | /* | |
c1b28c63 | 3823 | * content selection pattern - do fix if pattern found |
fdb8fb96 | 3824 | */ |
435ea059 | 3825 | tSCC zLynxos_No_Warning_In_Sys_Time_HSelect0[] = |
3826 | "#warning[ \t]+Using <time.h> instead of <sys/time.h>"; | |
fdb8fb96 | 3827 | |
435ea059 | 3828 | #define LYNXOS_NO_WARNING_IN_SYS_TIME_H_TEST_CT 1 |
3829 | static tTestDesc aLynxos_No_Warning_In_Sys_Time_HTests[] = { | |
3830 | { TT_EGREP, zLynxos_No_Warning_In_Sys_Time_HSelect0, (regex_t*)NULL }, }; | |
fdb8fb96 | 3831 | |
3832 | /* | |
435ea059 | 3833 | * Fix Command Arguments for Lynxos_No_Warning_In_Sys_Time_H |
fdb8fb96 | 3834 | */ |
435ea059 | 3835 | static const char* apzLynxos_No_Warning_In_Sys_Time_HPatch[] = { |
cfe5be71 | 3836 | "format", |
3837 | "", | |
fdb8fb96 | 3838 | (char*)NULL }; |
3839 | ||
3840 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
3841 | * | |
435ea059 | 3842 | * Description of Lynxos_Missing_Putenv fix |
fdb8fb96 | 3843 | */ |
435ea059 | 3844 | tSCC zLynxos_Missing_PutenvName[] = |
3845 | "lynxos_missing_putenv"; | |
d4c4b01d | 3846 | |
fdb8fb96 | 3847 | /* |
3848 | * File name selection pattern | |
3849 | */ | |
435ea059 | 3850 | tSCC zLynxos_Missing_PutenvList[] = |
3851 | "|stdlib.h|"; | |
fdb8fb96 | 3852 | /* |
3853 | * Machine/OS name selection pattern | |
3854 | */ | |
435ea059 | 3855 | tSCC* apzLynxos_Missing_PutenvMachs[] = { |
3856 | "*-*-lynxos*", | |
3857 | (const char*)NULL }; | |
38ebab8a | 3858 | |
3859 | /* | |
c1b28c63 | 3860 | * content selection pattern - do fix if pattern found |
38ebab8a | 3861 | */ |
435ea059 | 3862 | tSCC zLynxos_Missing_PutenvSelect0[] = |
3863 | "extern char \\*getenv[ \t]*_AP\\(\\(const char \\*\\)\\);"; | |
38ebab8a | 3864 | |
435ea059 | 3865 | /* |
3866 | * content bypass pattern - skip fix if pattern found | |
3867 | */ | |
3868 | tSCC zLynxos_Missing_PutenvBypass0[] = | |
3869 | "putenv[ \\t]*\\("; | |
3870 | ||
3871 | #define LYNXOS_MISSING_PUTENV_TEST_CT 2 | |
3872 | static tTestDesc aLynxos_Missing_PutenvTests[] = { | |
3873 | { TT_NEGREP, zLynxos_Missing_PutenvBypass0, (regex_t*)NULL }, | |
3874 | { TT_EGREP, zLynxos_Missing_PutenvSelect0, (regex_t*)NULL }, }; | |
fdb8fb96 | 3875 | |
3876 | /* | |
435ea059 | 3877 | * Fix Command Arguments for Lynxos_Missing_Putenv |
fdb8fb96 | 3878 | */ |
435ea059 | 3879 | static const char* apzLynxos_Missing_PutenvPatch[] = { |
cfe5be71 | 3880 | "format", |
435ea059 | 3881 | "%0\n\ |
3882 | extern int putenv\t\t\t\t_AP((char *));", | |
3883 | "extern char \\*getenv[ \t]*_AP\\(\\(const char \\*\\)\\);", | |
fdb8fb96 | 3884 | (char*)NULL }; |
3885 | ||
d4c4b01d | 3886 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
3887 | * | |
3888 | * Description of Machine_Ansi_H_Va_List fix | |
3889 | */ | |
d4c4b01d | 3890 | tSCC zMachine_Ansi_H_Va_ListName[] = |
3891 | "machine_ansi_h_va_list"; | |
3892 | ||
3893 | /* | |
3894 | * File name selection pattern | |
3895 | */ | |
0efa04d0 | 3896 | #define zMachine_Ansi_H_Va_ListList (char*)NULL |
d4c4b01d | 3897 | /* |
3898 | * Machine/OS name selection pattern | |
3899 | */ | |
3900 | #define apzMachine_Ansi_H_Va_ListMachs (const char**)NULL | |
3901 | ||
3902 | /* | |
3903 | * content selection pattern - do fix if pattern found | |
3904 | */ | |
3905 | tSCC zMachine_Ansi_H_Va_ListSelect0[] = | |
a83746ef | 3906 | "define[ \t]+_BSD_VA_LIST_[ \t]"; |
d4c4b01d | 3907 | |
3908 | /* | |
3909 | * content bypass pattern - skip fix if pattern found | |
3910 | */ | |
3911 | tSCC zMachine_Ansi_H_Va_ListBypass0[] = | |
3912 | "__builtin_va_list"; | |
3913 | ||
3914 | #define MACHINE_ANSI_H_VA_LIST_TEST_CT 2 | |
2548396b | 3915 | static tTestDesc aMachine_Ansi_H_Va_ListTests[] = { |
d4c4b01d | 3916 | { TT_NEGREP, zMachine_Ansi_H_Va_ListBypass0, (regex_t*)NULL }, |
3917 | { TT_EGREP, zMachine_Ansi_H_Va_ListSelect0, (regex_t*)NULL }, }; | |
3918 | ||
3919 | /* | |
3920 | * Fix Command Arguments for Machine_Ansi_H_Va_List | |
3921 | */ | |
2548396b | 3922 | static const char* apzMachine_Ansi_H_Va_ListPatch[] = { |
a83746ef | 3923 | "format", |
3924 | "%1__builtin_va_list", | |
3925 | "(define[ \t]+_BSD_VA_LIST_[ \t]+).*", | |
d4c4b01d | 3926 | (char*)NULL }; |
3927 | ||
fdb8fb96 | 3928 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
3929 | * | |
5daf7ede | 3930 | * Description of Machine_Name fix |
fdb8fb96 | 3931 | */ |
3932 | tSCC zMachine_NameName[] = | |
d4c4b01d | 3933 | "machine_name"; |
3934 | ||
fdb8fb96 | 3935 | /* |
3936 | * File name selection pattern | |
3937 | */ | |
3938 | #define zMachine_NameList (char*)NULL | |
3939 | /* | |
3940 | * Machine/OS name selection pattern | |
3941 | */ | |
3942 | #define apzMachine_NameMachs (const char**)NULL | |
3943 | ||
3944 | /* | |
17f8e521 | 3945 | * perform the C function call test |
fdb8fb96 | 3946 | */ |
17f8e521 | 3947 | tSCC zMachine_NameFTst0[] = "machine_name"; |
fdb8fb96 | 3948 | |
3949 | #define MACHINE_NAME_TEST_CT 1 | |
2548396b | 3950 | static tTestDesc aMachine_NameTests[] = { |
17f8e521 | 3951 | { TT_FUNCTION, zMachine_NameFTst0, 0 /* unused */ }, }; |
fdb8fb96 | 3952 | |
3953 | /* | |
3954 | * Fix Command Arguments for Machine_Name | |
3955 | */ | |
2548396b | 3956 | static const char* apzMachine_NamePatch[] = { |
6e791f25 | 3957 | "machine_name", |
fdb8fb96 | 3958 | (char*)NULL }; |
3959 | ||
3960 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
3961 | * | |
5daf7ede | 3962 | * Description of Math_Exception fix |
fdb8fb96 | 3963 | */ |
3964 | tSCC zMath_ExceptionName[] = | |
d4c4b01d | 3965 | "math_exception"; |
3966 | ||
fdb8fb96 | 3967 | /* |
3968 | * File name selection pattern | |
3969 | */ | |
3970 | tSCC zMath_ExceptionList[] = | |
efb1b79b | 3971 | "|math.h|"; |
fdb8fb96 | 3972 | /* |
3973 | * Machine/OS name selection pattern | |
3974 | */ | |
3975 | #define apzMath_ExceptionMachs (const char**)NULL | |
3976 | ||
3977 | /* | |
c1b28c63 | 3978 | * content selection pattern - do fix if pattern found |
fdb8fb96 | 3979 | */ |
3980 | tSCC zMath_ExceptionSelect0[] = | |
3981 | "struct exception"; | |
3982 | ||
bb304030 | 3983 | /* |
3984 | * content bypass pattern - skip fix if pattern found | |
3985 | */ | |
3986 | tSCC zMath_ExceptionBypass0[] = | |
634f7a13 | 3987 | "We have a problem when using C\\+\\+|for C\\+\\+, _[a-z0-9A-Z_]+_exception; for C, exception"; |
bb304030 | 3988 | |
3989 | #define MATH_EXCEPTION_TEST_CT 2 | |
2548396b | 3990 | static tTestDesc aMath_ExceptionTests[] = { |
bb304030 | 3991 | { TT_NEGREP, zMath_ExceptionBypass0, (regex_t*)NULL }, |
5daf7ede | 3992 | { TT_EGREP, zMath_ExceptionSelect0, (regex_t*)NULL }, }; |
fdb8fb96 | 3993 | |
3994 | /* | |
3995 | * Fix Command Arguments for Math_Exception | |
3996 | */ | |
2548396b | 3997 | static const char* apzMath_ExceptionPatch[] = { |
e6650807 | 3998 | "wrap", |
3999 | "#ifdef __cplusplus\n\ | |
4000 | #define exception __math_exception\n\ | |
efb1b79b | 4001 | #endif\n", |
e6650807 | 4002 | "#ifdef __cplusplus\n\ |
4003 | #undef exception\n\ | |
efb1b79b | 4004 | #endif\n", |
fdb8fb96 | 4005 | (char*)NULL }; |
4006 | ||
4007 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
4008 | * | |
bb304030 | 4009 | * Description of Math_Huge_Val_From_Dbl_Max fix |
fdb8fb96 | 4010 | */ |
bb304030 | 4011 | tSCC zMath_Huge_Val_From_Dbl_MaxName[] = |
d4c4b01d | 4012 | "math_huge_val_from_dbl_max"; |
4013 | ||
fdb8fb96 | 4014 | /* |
4015 | * File name selection pattern | |
4016 | */ | |
bb304030 | 4017 | tSCC zMath_Huge_Val_From_Dbl_MaxList[] = |
efb1b79b | 4018 | "|math.h|"; |
fdb8fb96 | 4019 | /* |
4020 | * Machine/OS name selection pattern | |
4021 | */ | |
bb304030 | 4022 | #define apzMath_Huge_Val_From_Dbl_MaxMachs (const char**)NULL |
4023 | ||
4024 | /* | |
4025 | * content selection pattern - do fix if pattern found | |
4026 | */ | |
4027 | tSCC zMath_Huge_Val_From_Dbl_MaxSelect0[] = | |
b07d36b9 | 4028 | "define[ \t]+HUGE_VAL[ \t]+DBL_MAX"; |
fdb8fb96 | 4029 | |
4030 | /* | |
bb304030 | 4031 | * content bypass pattern - skip fix if pattern found |
fdb8fb96 | 4032 | */ |
bb304030 | 4033 | tSCC zMath_Huge_Val_From_Dbl_MaxBypass0[] = |
b07d36b9 | 4034 | "define[ \t]+DBL_MAX"; |
bb304030 | 4035 | |
4036 | #define MATH_HUGE_VAL_FROM_DBL_MAX_TEST_CT 2 | |
2548396b | 4037 | static tTestDesc aMath_Huge_Val_From_Dbl_MaxTests[] = { |
bb304030 | 4038 | { TT_NEGREP, zMath_Huge_Val_From_Dbl_MaxBypass0, (regex_t*)NULL }, |
4039 | { TT_EGREP, zMath_Huge_Val_From_Dbl_MaxSelect0, (regex_t*)NULL }, }; | |
4040 | ||
4041 | /* | |
4042 | * Fix Command Arguments for Math_Huge_Val_From_Dbl_Max | |
4043 | */ | |
2548396b | 4044 | static const char* apzMath_Huge_Val_From_Dbl_MaxPatch[] = { "sh", "-c", |
5c0b86e6 | 4045 | "\tdbl_max_def=`egrep 'define[ \t]+DBL_MAX[ \t]+.*' float.h | sed 's/.*DBL_MAX[ \t]*//' 2>/dev/null`\n\n\ |
bb304030 | 4046 | \tif ( test -n \"${dbl_max_def}\" ) > /dev/null 2>&1\n\ |
b07d36b9 | 4047 | \tthen sed -e '/define[ \t]*HUGE_VAL[ \t]*DBL_MAX/s@DBL_MAX@'\"$dbl_max_def@\"\n\ |
bb304030 | 4048 | \telse cat\n\ |
4049 | \tfi", | |
4050 | (char*)NULL }; | |
4051 | ||
3072d11f | 4052 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
4053 | * | |
4054 | * Description of Nested_Auth_Des fix | |
4055 | */ | |
4056 | tSCC zNested_Auth_DesName[] = | |
4057 | "nested_auth_des"; | |
4058 | ||
4059 | /* | |
4060 | * File name selection pattern | |
4061 | */ | |
4062 | tSCC zNested_Auth_DesList[] = | |
4063 | "|rpc/rpc.h|"; | |
4064 | /* | |
4065 | * Machine/OS name selection pattern | |
4066 | */ | |
4067 | #define apzNested_Auth_DesMachs (const char**)NULL | |
4068 | ||
4069 | /* | |
4070 | * content selection pattern - do fix if pattern found | |
4071 | */ | |
4072 | tSCC zNested_Auth_DesSelect0[] = | |
4073 | "(/\\*.*rpc/auth_des\\.h>.*)/\\*"; | |
4074 | ||
4075 | #define NESTED_AUTH_DES_TEST_CT 1 | |
4076 | static tTestDesc aNested_Auth_DesTests[] = { | |
4077 | { TT_EGREP, zNested_Auth_DesSelect0, (regex_t*)NULL }, }; | |
4078 | ||
4079 | /* | |
4080 | * Fix Command Arguments for Nested_Auth_Des | |
4081 | */ | |
4082 | static const char* apzNested_Auth_DesPatch[] = { | |
4083 | "format", | |
4084 | "%1*/ /*", | |
4085 | (char*)NULL }; | |
4086 | ||
fdb8fb96 | 4087 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
4088 | * | |
cfe5be71 | 4089 | * Description of Nested_Motorola fix |
4090 | */ | |
cfe5be71 | 4091 | tSCC zNested_MotorolaName[] = |
4092 | "nested_motorola"; | |
4093 | ||
4094 | /* | |
4095 | * File name selection pattern | |
4096 | */ | |
4097 | tSCC zNested_MotorolaList[] = | |
e7ae4397 | 4098 | "|sys/limits.h|limits.h|"; |
cfe5be71 | 4099 | /* |
4100 | * Machine/OS name selection pattern | |
4101 | */ | |
4102 | tSCC* apzNested_MotorolaMachs[] = { | |
4103 | "m68k-motorola-sysv*", | |
4104 | (const char*)NULL }; | |
b07d36b9 | 4105 | |
4106 | /* | |
4107 | * content selection pattern - do fix if pattern found | |
4108 | */ | |
4109 | tSCC zNested_MotorolaSelect0[] = | |
4110 | "max # bytes atomic in write|error value returned by Math lib"; | |
4111 | ||
4112 | #define NESTED_MOTOROLA_TEST_CT 1 | |
2548396b | 4113 | static tTestDesc aNested_MotorolaTests[] = { |
b07d36b9 | 4114 | { TT_EGREP, zNested_MotorolaSelect0, (regex_t*)NULL }, }; |
cfe5be71 | 4115 | |
4116 | /* | |
4117 | * Fix Command Arguments for Nested_Motorola | |
4118 | */ | |
2548396b | 4119 | static const char* apzNested_MotorolaPatch[] = { "sed", |
cfe5be71 | 4120 | "-e", "s@^\\(#undef[ \t][ \t]*PIPE_BUF[ \t]*/\\* max # bytes atomic in write to a\\)$@\\1 */@", |
4121 | "-e", "s@\\(/\\*#define\tHUGE_VAL\t3.[0-9e+]* \\)\\(/\\*error value returned by Math lib\\*/\\)$@\\1*/ \\2@", | |
4122 | (char*)NULL }; | |
4123 | ||
4124 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
4125 | * | |
4126 | * Description of Nested_Sys_Limits fix | |
4127 | */ | |
cfe5be71 | 4128 | tSCC zNested_Sys_LimitsName[] = |
4129 | "nested_sys_limits"; | |
4130 | ||
4131 | /* | |
4132 | * File name selection pattern | |
4133 | */ | |
4134 | tSCC zNested_Sys_LimitsList[] = | |
4135 | "|sys/limits.h|"; | |
4136 | /* | |
4137 | * Machine/OS name selection pattern | |
4138 | */ | |
4139 | #define apzNested_Sys_LimitsMachs (const char**)NULL | |
4140 | ||
4141 | /* | |
4142 | * content selection pattern - do fix if pattern found | |
4143 | */ | |
4144 | tSCC zNested_Sys_LimitsSelect0[] = | |
4145 | "CHILD_MAX"; | |
4146 | ||
4147 | #define NESTED_SYS_LIMITS_TEST_CT 1 | |
2548396b | 4148 | static tTestDesc aNested_Sys_LimitsTests[] = { |
cfe5be71 | 4149 | { TT_EGREP, zNested_Sys_LimitsSelect0, (regex_t*)NULL }, }; |
4150 | ||
4151 | /* | |
4152 | * Fix Command Arguments for Nested_Sys_Limits | |
4153 | */ | |
ca58af19 | 4154 | static const char* apzNested_Sys_LimitsPatch[] = { "sed", |
4155 | "-e", "/CHILD_MAX/s,/\\* Max, Max,", | |
4156 | "-e", "/OPEN_MAX/s,/\\* Max, Max,", | |
fdb8fb96 | 4157 | (char*)NULL }; |
4158 | ||
81a897fb | 4159 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
4160 | * | |
4161 | * Description of Netbsd_Extra_Semicolon fix | |
4162 | */ | |
4163 | tSCC zNetbsd_Extra_SemicolonName[] = | |
4164 | "netbsd_extra_semicolon"; | |
4165 | ||
4166 | /* | |
4167 | * File name selection pattern | |
4168 | */ | |
4169 | tSCC zNetbsd_Extra_SemicolonList[] = | |
4170 | "|sys/cdefs.h|"; | |
4171 | /* | |
4172 | * Machine/OS name selection pattern | |
4173 | */ | |
4174 | tSCC* apzNetbsd_Extra_SemicolonMachs[] = { | |
4175 | "*-*-netbsd*", | |
4176 | (const char*)NULL }; | |
4177 | ||
4178 | /* | |
4179 | * content selection pattern - do fix if pattern found | |
4180 | */ | |
4181 | tSCC zNetbsd_Extra_SemicolonSelect0[] = | |
4182 | "#define[ \t]*__END_DECLS[ \t]*};"; | |
4183 | ||
4184 | #define NETBSD_EXTRA_SEMICOLON_TEST_CT 1 | |
4185 | static tTestDesc aNetbsd_Extra_SemicolonTests[] = { | |
4186 | { TT_EGREP, zNetbsd_Extra_SemicolonSelect0, (regex_t*)NULL }, }; | |
4187 | ||
4188 | /* | |
4189 | * Fix Command Arguments for Netbsd_Extra_Semicolon | |
4190 | */ | |
4191 | static const char* apzNetbsd_Extra_SemicolonPatch[] = { | |
4192 | "format", | |
4193 | "#define __END_DECLS }", | |
4194 | (char*)NULL }; | |
4195 | ||
fdb8fb96 | 4196 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
4197 | * | |
5daf7ede | 4198 | * Description of Next_Math_Prefix fix |
fdb8fb96 | 4199 | */ |
4200 | tSCC zNext_Math_PrefixName[] = | |
d4c4b01d | 4201 | "next_math_prefix"; |
4202 | ||
fdb8fb96 | 4203 | /* |
4204 | * File name selection pattern | |
4205 | */ | |
4206 | tSCC zNext_Math_PrefixList[] = | |
efb1b79b | 4207 | "|ansi/math.h|"; |
fdb8fb96 | 4208 | /* |
4209 | * Machine/OS name selection pattern | |
4210 | */ | |
4211 | #define apzNext_Math_PrefixMachs (const char**)NULL | |
4212 | ||
4213 | /* | |
c1b28c63 | 4214 | * content selection pattern - do fix if pattern found |
fdb8fb96 | 4215 | */ |
4216 | tSCC zNext_Math_PrefixSelect0[] = | |
a83746ef | 4217 | "^extern[ \t]+double[ \t]+__const__[ \t]"; |
fdb8fb96 | 4218 | |
4219 | #define NEXT_MATH_PREFIX_TEST_CT 1 | |
2548396b | 4220 | static tTestDesc aNext_Math_PrefixTests[] = { |
5daf7ede | 4221 | { TT_EGREP, zNext_Math_PrefixSelect0, (regex_t*)NULL }, }; |
fdb8fb96 | 4222 | |
4223 | /* | |
4224 | * Fix Command Arguments for Next_Math_Prefix | |
4225 | */ | |
2548396b | 4226 | static const char* apzNext_Math_PrefixPatch[] = { |
a83746ef | 4227 | "format", |
4228 | "extern double %1(", | |
4229 | "^extern[ \t]+double[ \t]+__const__[ \t]+([a-z]+)\\(", | |
fdb8fb96 | 4230 | (char*)NULL }; |
4231 | ||
4232 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
4233 | * | |
5daf7ede | 4234 | * Description of Next_Template fix |
fdb8fb96 | 4235 | */ |
4236 | tSCC zNext_TemplateName[] = | |
d4c4b01d | 4237 | "next_template"; |
4238 | ||
fdb8fb96 | 4239 | /* |
4240 | * File name selection pattern | |
4241 | */ | |
4242 | tSCC zNext_TemplateList[] = | |
efb1b79b | 4243 | "|bsd/libc.h|"; |
fdb8fb96 | 4244 | /* |
4245 | * Machine/OS name selection pattern | |
4246 | */ | |
4247 | #define apzNext_TemplateMachs (const char**)NULL | |
4248 | ||
4249 | /* | |
c1b28c63 | 4250 | * content selection pattern - do fix if pattern found |
fdb8fb96 | 4251 | */ |
4252 | tSCC zNext_TemplateSelect0[] = | |
a83746ef | 4253 | "[ \t]template\\)"; |
fdb8fb96 | 4254 | |
4255 | #define NEXT_TEMPLATE_TEST_CT 1 | |
2548396b | 4256 | static tTestDesc aNext_TemplateTests[] = { |
5daf7ede | 4257 | { TT_EGREP, zNext_TemplateSelect0, (regex_t*)NULL }, }; |
fdb8fb96 | 4258 | |
4259 | /* | |
4260 | * Fix Command Arguments for Next_Template | |
4261 | */ | |
2548396b | 4262 | static const char* apzNext_TemplatePatch[] = { |
a83746ef | 4263 | "format", |
4264 | "(%1)", | |
4265 | "\\(([^)]*)[ \t]template\\)", | |
fdb8fb96 | 4266 | (char*)NULL }; |
4267 | ||
4268 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
4269 | * | |
5daf7ede | 4270 | * Description of Next_Volitile fix |
fdb8fb96 | 4271 | */ |
4272 | tSCC zNext_VolitileName[] = | |
d4c4b01d | 4273 | "next_volitile"; |
4274 | ||
fdb8fb96 | 4275 | /* |
4276 | * File name selection pattern | |
4277 | */ | |
4278 | tSCC zNext_VolitileList[] = | |
efb1b79b | 4279 | "|ansi/stdlib.h|"; |
fdb8fb96 | 4280 | /* |
4281 | * Machine/OS name selection pattern | |
4282 | */ | |
4283 | #define apzNext_VolitileMachs (const char**)NULL | |
4284 | ||
4285 | /* | |
c1b28c63 | 4286 | * content selection pattern - do fix if pattern found |
fdb8fb96 | 4287 | */ |
4288 | tSCC zNext_VolitileSelect0[] = | |
a83746ef | 4289 | "^extern[ \t]+volatile[ \t]+void[ \t]"; |
fdb8fb96 | 4290 | |
4291 | #define NEXT_VOLITILE_TEST_CT 1 | |
2548396b | 4292 | static tTestDesc aNext_VolitileTests[] = { |
5daf7ede | 4293 | { TT_EGREP, zNext_VolitileSelect0, (regex_t*)NULL }, }; |
fdb8fb96 | 4294 | |
4295 | /* | |
4296 | * Fix Command Arguments for Next_Volitile | |
4297 | */ | |
2548396b | 4298 | static const char* apzNext_VolitilePatch[] = { |
a83746ef | 4299 | "format", |
4300 | "extern void %1(", | |
4301 | "^extern[ \t]+volatile[ \t]+void[ \t]+(exit|abort)\\(", | |
fdb8fb96 | 4302 | (char*)NULL }; |
4303 | ||
4304 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
4305 | * | |
5daf7ede | 4306 | * Description of Next_Wait_Union fix |
fdb8fb96 | 4307 | */ |
4308 | tSCC zNext_Wait_UnionName[] = | |
d4c4b01d | 4309 | "next_wait_union"; |
4310 | ||
fdb8fb96 | 4311 | /* |
4312 | * File name selection pattern | |
4313 | */ | |
4314 | tSCC zNext_Wait_UnionList[] = | |
efb1b79b | 4315 | "|sys/wait.h|"; |
fdb8fb96 | 4316 | /* |
4317 | * Machine/OS name selection pattern | |
4318 | */ | |
4319 | #define apzNext_Wait_UnionMachs (const char**)NULL | |
4320 | ||
4321 | /* | |
c1b28c63 | 4322 | * content selection pattern - do fix if pattern found |
fdb8fb96 | 4323 | */ |
4324 | tSCC zNext_Wait_UnionSelect0[] = | |
4325 | "wait\\(union wait"; | |
4326 | ||
4327 | #define NEXT_WAIT_UNION_TEST_CT 1 | |
2548396b | 4328 | static tTestDesc aNext_Wait_UnionTests[] = { |
5daf7ede | 4329 | { TT_EGREP, zNext_Wait_UnionSelect0, (regex_t*)NULL }, }; |
fdb8fb96 | 4330 | |
4331 | /* | |
4332 | * Fix Command Arguments for Next_Wait_Union | |
4333 | */ | |
2548396b | 4334 | static const char* apzNext_Wait_UnionPatch[] = { |
038a3e7a | 4335 | "format", |
4336 | "wait(void", | |
fdb8fb96 | 4337 | (char*)NULL }; |
4338 | ||
4339 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
4340 | * | |
5daf7ede | 4341 | * Description of Nodeent_Syntax fix |
fdb8fb96 | 4342 | */ |
4343 | tSCC zNodeent_SyntaxName[] = | |
d4c4b01d | 4344 | "nodeent_syntax"; |
4345 | ||
fdb8fb96 | 4346 | /* |
4347 | * File name selection pattern | |
4348 | */ | |
4349 | tSCC zNodeent_SyntaxList[] = | |
efb1b79b | 4350 | "|netdnet/dnetdb.h|"; |
fdb8fb96 | 4351 | /* |
4352 | * Machine/OS name selection pattern | |
4353 | */ | |
4354 | #define apzNodeent_SyntaxMachs (const char**)NULL | |
038a3e7a | 4355 | |
4356 | /* | |
4357 | * content selection pattern - do fix if pattern found | |
4358 | */ | |
4359 | tSCC zNodeent_SyntaxSelect0[] = | |
4360 | "char[ \t]*\\*na_addr[ \t]*$"; | |
4361 | ||
4362 | #define NODEENT_SYNTAX_TEST_CT 1 | |
2548396b | 4363 | static tTestDesc aNodeent_SyntaxTests[] = { |
038a3e7a | 4364 | { TT_EGREP, zNodeent_SyntaxSelect0, (regex_t*)NULL }, }; |
fdb8fb96 | 4365 | |
4366 | /* | |
4367 | * Fix Command Arguments for Nodeent_Syntax | |
4368 | */ | |
2548396b | 4369 | static const char* apzNodeent_SyntaxPatch[] = { |
038a3e7a | 4370 | "format", |
4371 | "%0;", | |
fdb8fb96 | 4372 | (char*)NULL }; |
4373 | ||
129b92e3 | 4374 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
4375 | * | |
4376 | * Description of Obstack_Lvalue_Cast fix | |
4377 | */ | |
4378 | tSCC zObstack_Lvalue_CastName[] = | |
4379 | "obstack_lvalue_cast"; | |
4380 | ||
4381 | /* | |
4382 | * File name selection pattern | |
4383 | */ | |
4384 | tSCC zObstack_Lvalue_CastList[] = | |
4385 | "|obstack.h|"; | |
4386 | /* | |
4387 | * Machine/OS name selection pattern | |
4388 | */ | |
4389 | #define apzObstack_Lvalue_CastMachs (const char**)NULL | |
4390 | ||
4391 | /* | |
4392 | * content selection pattern - do fix if pattern found | |
4393 | */ | |
4394 | tSCC zObstack_Lvalue_CastSelect0[] = | |
4395 | "\\*\\(\\(([^()]*)\\*\\)(.*)\\)\\+\\+ = \\(([^()]*)\\)"; | |
4396 | ||
4397 | #define OBSTACK_LVALUE_CAST_TEST_CT 1 | |
4398 | static tTestDesc aObstack_Lvalue_CastTests[] = { | |
4399 | { TT_EGREP, zObstack_Lvalue_CastSelect0, (regex_t*)NULL }, }; | |
4400 | ||
4401 | /* | |
4402 | * Fix Command Arguments for Obstack_Lvalue_Cast | |
4403 | */ | |
4404 | static const char* apzObstack_Lvalue_CastPatch[] = { | |
4405 | "format", | |
4406 | "((*((%1*)%2) = (%3)), (%2 += sizeof (%1)))", | |
4407 | (char*)NULL }; | |
4408 | ||
fdb8fb96 | 4409 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
4410 | * | |
5daf7ede | 4411 | * Description of Osf_Namespace_A fix |
fdb8fb96 | 4412 | */ |
4413 | tSCC zOsf_Namespace_AName[] = | |
d4c4b01d | 4414 | "osf_namespace_a"; |
4415 | ||
fdb8fb96 | 4416 | /* |
4417 | * File name selection pattern | |
4418 | */ | |
4419 | tSCC zOsf_Namespace_AList[] = | |
efb1b79b | 4420 | "|reg_types.h|sys/lc_core.h|"; |
fdb8fb96 | 4421 | /* |
4422 | * Machine/OS name selection pattern | |
4423 | */ | |
4424 | #define apzOsf_Namespace_AMachs (const char**)NULL | |
4425 | ||
4426 | /* | |
c1b28c63 | 4427 | * perform the 'test' shell command - do fix on success |
fdb8fb96 | 4428 | */ |
4429 | tSCC zOsf_Namespace_ATest0[] = | |
38ebab8a | 4430 | " -r reg_types.h"; |
4431 | tSCC zOsf_Namespace_ATest1[] = | |
4432 | " -r sys/lc_core.h"; | |
4433 | tSCC zOsf_Namespace_ATest2[] = | |
4434 | " -n \"`grep '} regex_t;' reg_types.h`\""; | |
4435 | tSCC zOsf_Namespace_ATest3[] = | |
4436 | " -z \"`grep __regex_t regex.h`\""; | |
4437 | ||
4438 | #define OSF_NAMESPACE_A_TEST_CT 4 | |
2548396b | 4439 | static tTestDesc aOsf_Namespace_ATests[] = { |
5daf7ede | 4440 | { TT_TEST, zOsf_Namespace_ATest0, 0 /* unused */ }, |
4441 | { TT_TEST, zOsf_Namespace_ATest1, 0 /* unused */ }, | |
4442 | { TT_TEST, zOsf_Namespace_ATest2, 0 /* unused */ }, | |
4443 | { TT_TEST, zOsf_Namespace_ATest3, 0 /* unused */ }, }; | |
fdb8fb96 | 4444 | |
4445 | /* | |
4446 | * Fix Command Arguments for Osf_Namespace_A | |
4447 | */ | |
2548396b | 4448 | static const char* apzOsf_Namespace_APatch[] = { |
038a3e7a | 4449 | "format", |
4450 | "__%0", | |
f0a465b4 | 4451 | "reg(ex|off|match)_t", |
fdb8fb96 | 4452 | (char*)NULL }; |
4453 | ||
4454 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
4455 | * | |
038a3e7a | 4456 | * Description of Osf_Namespace_C fix |
fdb8fb96 | 4457 | */ |
038a3e7a | 4458 | tSCC zOsf_Namespace_CName[] = |
4459 | "osf_namespace_c"; | |
d4c4b01d | 4460 | |
fdb8fb96 | 4461 | /* |
4462 | * File name selection pattern | |
4463 | */ | |
038a3e7a | 4464 | tSCC zOsf_Namespace_CList[] = |
efb1b79b | 4465 | "|regex.h|"; |
fdb8fb96 | 4466 | /* |
4467 | * Machine/OS name selection pattern | |
4468 | */ | |
038a3e7a | 4469 | #define apzOsf_Namespace_CMachs (const char**)NULL |
4470 | ||
4471 | /* | |
4472 | * content selection pattern - do fix if pattern found | |
4473 | */ | |
4474 | tSCC zOsf_Namespace_CSelect0[] = | |
4475 | "#include <reg_types.h>.*"; | |
fdb8fb96 | 4476 | |
4477 | /* | |
c1b28c63 | 4478 | * perform the 'test' shell command - do fix on success |
fdb8fb96 | 4479 | */ |
038a3e7a | 4480 | tSCC zOsf_Namespace_CTest0[] = |
38ebab8a | 4481 | " -r reg_types.h"; |
038a3e7a | 4482 | tSCC zOsf_Namespace_CTest1[] = |
38ebab8a | 4483 | " -r sys/lc_core.h"; |
038a3e7a | 4484 | tSCC zOsf_Namespace_CTest2[] = |
38ebab8a | 4485 | " -n \"`grep '} regex_t;' reg_types.h`\""; |
038a3e7a | 4486 | tSCC zOsf_Namespace_CTest3[] = |
38ebab8a | 4487 | " -z \"`grep __regex_t regex.h`\""; |
4488 | ||
038a3e7a | 4489 | #define OSF_NAMESPACE_C_TEST_CT 5 |
2548396b | 4490 | static tTestDesc aOsf_Namespace_CTests[] = { |
038a3e7a | 4491 | { TT_TEST, zOsf_Namespace_CTest0, 0 /* unused */ }, |
4492 | { TT_TEST, zOsf_Namespace_CTest1, 0 /* unused */ }, | |
4493 | { TT_TEST, zOsf_Namespace_CTest2, 0 /* unused */ }, | |
4494 | { TT_TEST, zOsf_Namespace_CTest3, 0 /* unused */ }, | |
4495 | { TT_EGREP, zOsf_Namespace_CSelect0, (regex_t*)NULL }, }; | |
fdb8fb96 | 4496 | |
4497 | /* | |
038a3e7a | 4498 | * Fix Command Arguments for Osf_Namespace_C |
fdb8fb96 | 4499 | */ |
2548396b | 4500 | static const char* apzOsf_Namespace_CPatch[] = { |
038a3e7a | 4501 | "format", |
4502 | "%0\n\ | |
4503 | typedef __regex_t\tregex_t;\n\ | |
4504 | typedef __regoff_t\tregoff_t;\n\ | |
4505 | typedef __regmatch_t\tregmatch_t;", | |
fdb8fb96 | 4506 | (char*)NULL }; |
4507 | ||
4508 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
4509 | * | |
5daf7ede | 4510 | * Description of Pthread_Page_Size fix |
fdb8fb96 | 4511 | */ |
4512 | tSCC zPthread_Page_SizeName[] = | |
d4c4b01d | 4513 | "pthread_page_size"; |
4514 | ||
fdb8fb96 | 4515 | /* |
4516 | * File name selection pattern | |
4517 | */ | |
4518 | tSCC zPthread_Page_SizeList[] = | |
efb1b79b | 4519 | "|pthread.h|"; |
fdb8fb96 | 4520 | /* |
4521 | * Machine/OS name selection pattern | |
4522 | */ | |
4523 | #define apzPthread_Page_SizeMachs (const char**)NULL | |
4524 | ||
4525 | /* | |
c1b28c63 | 4526 | * content selection pattern - do fix if pattern found |
fdb8fb96 | 4527 | */ |
4528 | tSCC zPthread_Page_SizeSelect0[] = | |
4529 | "^int __page_size"; | |
4530 | ||
4531 | #define PTHREAD_PAGE_SIZE_TEST_CT 1 | |
2548396b | 4532 | static tTestDesc aPthread_Page_SizeTests[] = { |
5daf7ede | 4533 | { TT_EGREP, zPthread_Page_SizeSelect0, (regex_t*)NULL }, }; |
fdb8fb96 | 4534 | |
4535 | /* | |
4536 | * Fix Command Arguments for Pthread_Page_Size | |
4537 | */ | |
2548396b | 4538 | static const char* apzPthread_Page_SizePatch[] = { |
038a3e7a | 4539 | "format", |
4540 | "extern %0", | |
fdb8fb96 | 4541 | (char*)NULL }; |
4542 | ||
a11c2c4d | 4543 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
4544 | * | |
4545 | * Description of Pthread_Incomplete_Struct_Argument fix | |
4546 | */ | |
4547 | tSCC zPthread_Incomplete_Struct_ArgumentName[] = | |
4548 | "pthread_incomplete_struct_argument"; | |
4549 | ||
4550 | /* | |
4551 | * File name selection pattern | |
4552 | */ | |
4553 | tSCC zPthread_Incomplete_Struct_ArgumentList[] = | |
4554 | "|pthread.h|"; | |
4555 | /* | |
4556 | * Machine/OS name selection pattern | |
4557 | */ | |
4558 | #define apzPthread_Incomplete_Struct_ArgumentMachs (const char**)NULL | |
4559 | ||
4560 | /* | |
4561 | * content selection pattern - do fix if pattern found | |
4562 | */ | |
4563 | tSCC zPthread_Incomplete_Struct_ArgumentSelect0[] = | |
4564 | "struct __jmp_buf_tag"; | |
4565 | ||
4566 | #define PTHREAD_INCOMPLETE_STRUCT_ARGUMENT_TEST_CT 1 | |
4567 | static tTestDesc aPthread_Incomplete_Struct_ArgumentTests[] = { | |
4568 | { TT_EGREP, zPthread_Incomplete_Struct_ArgumentSelect0, (regex_t*)NULL }, }; | |
4569 | ||
4570 | /* | |
4571 | * Fix Command Arguments for Pthread_Incomplete_Struct_Argument | |
4572 | */ | |
4573 | static const char* apzPthread_Incomplete_Struct_ArgumentPatch[] = { | |
4574 | "format", | |
4575 | "%1 *%2%3", | |
4576 | "^(extern int __sigsetjmp \\(struct __jmp_buf_tag) (__env)\\[1\\](.*)$", | |
4577 | (char*)NULL }; | |
4578 | ||
fdb8fb96 | 4579 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
4580 | * | |
5daf7ede | 4581 | * Description of Read_Ret_Type fix |
d0f5620b | 4582 | */ |
4583 | tSCC zRead_Ret_TypeName[] = | |
d4c4b01d | 4584 | "read_ret_type"; |
4585 | ||
d0f5620b | 4586 | /* |
4587 | * File name selection pattern | |
4588 | */ | |
4589 | tSCC zRead_Ret_TypeList[] = | |
4590 | "|stdio.h|"; | |
4591 | /* | |
4592 | * Machine/OS name selection pattern | |
4593 | */ | |
4594 | #define apzRead_Ret_TypeMachs (const char**)NULL | |
4595 | ||
4596 | /* | |
4597 | * content selection pattern - do fix if pattern found | |
4598 | */ | |
4599 | tSCC zRead_Ret_TypeSelect0[] = | |
4600 | "extern int\t.*, fread\\(\\), fwrite\\(\\)"; | |
4601 | ||
4602 | #define READ_RET_TYPE_TEST_CT 1 | |
2548396b | 4603 | static tTestDesc aRead_Ret_TypeTests[] = { |
5daf7ede | 4604 | { TT_EGREP, zRead_Ret_TypeSelect0, (regex_t*)NULL }, }; |
d0f5620b | 4605 | |
4606 | /* | |
4607 | * Fix Command Arguments for Read_Ret_Type | |
4608 | */ | |
2548396b | 4609 | static const char* apzRead_Ret_TypePatch[] = { |
038a3e7a | 4610 | "format", |
4611 | "extern unsigned int fread(), fwrite();\n\ | |
4612 | %1%2", | |
4613 | "(extern int\t.*), fread\\(\\), fwrite\\(\\)(.*)", | |
d0f5620b | 4614 | (char*)NULL }; |
4615 | ||
e68aa18b | 4616 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
4617 | * | |
4618 | * Description of Rpc_Xdr_Lvalue_Cast_A fix | |
4619 | */ | |
4620 | tSCC zRpc_Xdr_Lvalue_Cast_AName[] = | |
4621 | "rpc_xdr_lvalue_cast_a"; | |
4622 | ||
4623 | /* | |
4624 | * File name selection pattern | |
4625 | */ | |
4626 | tSCC zRpc_Xdr_Lvalue_Cast_AList[] = | |
4627 | "|rpc/xdr.h|"; | |
4628 | /* | |
4629 | * Machine/OS name selection pattern | |
4630 | */ | |
4631 | #define apzRpc_Xdr_Lvalue_Cast_AMachs (const char**)NULL | |
4632 | ||
4633 | /* | |
4634 | * content selection pattern - do fix if pattern found | |
4635 | */ | |
4636 | tSCC zRpc_Xdr_Lvalue_Cast_ASelect0[] = | |
4637 | "#define[ \t]*IXDR_GET_LONG.*\\\\\n\ | |
4638 | .*__extension__.*"; | |
4639 | ||
4640 | #define RPC_XDR_LVALUE_CAST_A_TEST_CT 1 | |
4641 | static tTestDesc aRpc_Xdr_Lvalue_Cast_ATests[] = { | |
4642 | { TT_EGREP, zRpc_Xdr_Lvalue_Cast_ASelect0, (regex_t*)NULL }, }; | |
4643 | ||
4644 | /* | |
4645 | * Fix Command Arguments for Rpc_Xdr_Lvalue_Cast_A | |
4646 | */ | |
4647 | static const char* apzRpc_Xdr_Lvalue_Cast_APatch[] = { | |
4648 | "format", | |
4649 | "#define IXDR_GET_LONG(buf) ((long)IXDR_GET_U_INT32(buf))", | |
4650 | (char*)NULL }; | |
4651 | ||
4652 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
4653 | * | |
4654 | * Description of Rpc_Xdr_Lvalue_Cast_B fix | |
4655 | */ | |
4656 | tSCC zRpc_Xdr_Lvalue_Cast_BName[] = | |
4657 | "rpc_xdr_lvalue_cast_b"; | |
4658 | ||
4659 | /* | |
4660 | * File name selection pattern | |
4661 | */ | |
4662 | tSCC zRpc_Xdr_Lvalue_Cast_BList[] = | |
4663 | "|rpc/xdr.h|"; | |
4664 | /* | |
4665 | * Machine/OS name selection pattern | |
4666 | */ | |
4667 | #define apzRpc_Xdr_Lvalue_Cast_BMachs (const char**)NULL | |
4668 | ||
4669 | /* | |
4670 | * content selection pattern - do fix if pattern found | |
4671 | */ | |
4672 | tSCC zRpc_Xdr_Lvalue_Cast_BSelect0[] = | |
4673 | "#define[ \t]*IXDR_PUT_LONG.*\\\\\n\ | |
4674 | .*__extension__.*"; | |
4675 | ||
4676 | #define RPC_XDR_LVALUE_CAST_B_TEST_CT 1 | |
4677 | static tTestDesc aRpc_Xdr_Lvalue_Cast_BTests[] = { | |
4678 | { TT_EGREP, zRpc_Xdr_Lvalue_Cast_BSelect0, (regex_t*)NULL }, }; | |
4679 | ||
4680 | /* | |
4681 | * Fix Command Arguments for Rpc_Xdr_Lvalue_Cast_B | |
4682 | */ | |
4683 | static const char* apzRpc_Xdr_Lvalue_Cast_BPatch[] = { | |
4684 | "format", | |
4685 | "#define IXDR_PUT_LONG(buf, v) ((long)IXDR_PUT_INT32(buf, (long)(v)))", | |
4686 | (char*)NULL }; | |
4687 | ||
d0f5620b | 4688 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
4689 | * | |
5daf7ede | 4690 | * Description of Rs6000_Double fix |
fdb8fb96 | 4691 | */ |
4692 | tSCC zRs6000_DoubleName[] = | |
d4c4b01d | 4693 | "rs6000_double"; |
4694 | ||
fdb8fb96 | 4695 | /* |
4696 | * File name selection pattern | |
4697 | */ | |
4698 | tSCC zRs6000_DoubleList[] = | |
efb1b79b | 4699 | "|math.h|"; |
fdb8fb96 | 4700 | /* |
4701 | * Machine/OS name selection pattern | |
4702 | */ | |
4703 | #define apzRs6000_DoubleMachs (const char**)NULL | |
4704 | ||
4705 | /* | |
c1b28c63 | 4706 | * content selection pattern - do fix if pattern found |
fdb8fb96 | 4707 | */ |
4708 | tSCC zRs6000_DoubleSelect0[] = | |
4709 | "[^a-zA-Z_]class\\("; | |
4710 | ||
4711 | #define RS6000_DOUBLE_TEST_CT 1 | |
2548396b | 4712 | static tTestDesc aRs6000_DoubleTests[] = { |
5daf7ede | 4713 | { TT_EGREP, zRs6000_DoubleSelect0, (regex_t*)NULL }, }; |
fdb8fb96 | 4714 | |
4715 | /* | |
4716 | * Fix Command Arguments for Rs6000_Double | |
4717 | */ | |
2548396b | 4718 | static const char* apzRs6000_DoublePatch[] = { |
038a3e7a | 4719 | "format", |
4720 | "#ifndef __cplusplus\n\ | |
4721 | %0\n\ | |
4722 | #endif", | |
4723 | "^.*[^a-zA-Z_]class\\(.*", | |
fdb8fb96 | 4724 | (char*)NULL }; |
4725 | ||
4726 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
4727 | * | |
5daf7ede | 4728 | * Description of Rs6000_Fchmod fix |
fdb8fb96 | 4729 | */ |
4730 | tSCC zRs6000_FchmodName[] = | |
d4c4b01d | 4731 | "rs6000_fchmod"; |
4732 | ||
fdb8fb96 | 4733 | /* |
4734 | * File name selection pattern | |
4735 | */ | |
4736 | tSCC zRs6000_FchmodList[] = | |
efb1b79b | 4737 | "|sys/stat.h|"; |
fdb8fb96 | 4738 | /* |
4739 | * Machine/OS name selection pattern | |
4740 | */ | |
4741 | #define apzRs6000_FchmodMachs (const char**)NULL | |
4742 | ||
4743 | /* | |
c1b28c63 | 4744 | * content selection pattern - do fix if pattern found |
fdb8fb96 | 4745 | */ |
4746 | tSCC zRs6000_FchmodSelect0[] = | |
038a3e7a | 4747 | "fchmod\\(char \\*"; |
fdb8fb96 | 4748 | |
4749 | #define RS6000_FCHMOD_TEST_CT 1 | |
2548396b | 4750 | static tTestDesc aRs6000_FchmodTests[] = { |
5daf7ede | 4751 | { TT_EGREP, zRs6000_FchmodSelect0, (regex_t*)NULL }, }; |
fdb8fb96 | 4752 | |
4753 | /* | |
4754 | * Fix Command Arguments for Rs6000_Fchmod | |
4755 | */ | |
2548396b | 4756 | static const char* apzRs6000_FchmodPatch[] = { |
038a3e7a | 4757 | "format", |
4758 | "fchmod(int", | |
fdb8fb96 | 4759 | (char*)NULL }; |
4760 | ||
4761 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
4762 | * | |
5daf7ede | 4763 | * Description of Rs6000_Param fix |
fdb8fb96 | 4764 | */ |
4765 | tSCC zRs6000_ParamName[] = | |
d4c4b01d | 4766 | "rs6000_param"; |
4767 | ||
fdb8fb96 | 4768 | /* |
4769 | * File name selection pattern | |
4770 | */ | |
4771 | tSCC zRs6000_ParamList[] = | |
efb1b79b | 4772 | "|stdio.h|unistd.h|"; |
fdb8fb96 | 4773 | /* |
4774 | * Machine/OS name selection pattern | |
4775 | */ | |
4776 | #define apzRs6000_ParamMachs (const char**)NULL | |
bb304030 | 4777 | |
4778 | /* | |
4779 | * content selection pattern - do fix if pattern found | |
4780 | */ | |
4781 | tSCC zRs6000_ParamSelect0[] = | |
038a3e7a | 4782 | "rename\\(const char \\*old, const char \\*new\\)"; |
bb304030 | 4783 | |
4784 | #define RS6000_PARAM_TEST_CT 1 | |
2548396b | 4785 | static tTestDesc aRs6000_ParamTests[] = { |
bb304030 | 4786 | { TT_EGREP, zRs6000_ParamSelect0, (regex_t*)NULL }, }; |
fdb8fb96 | 4787 | |
4788 | /* | |
4789 | * Fix Command Arguments for Rs6000_Param | |
4790 | */ | |
2548396b | 4791 | static const char* apzRs6000_ParamPatch[] = { |
038a3e7a | 4792 | "format", |
4793 | "rename(const char *_old, const char *_new)", | |
fdb8fb96 | 4794 | (char*)NULL }; |
4795 | ||
3c04ceca | 4796 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
4797 | * | |
4798 | * Description of Sco_Math fix | |
4799 | */ | |
4800 | tSCC zSco_MathName[] = | |
4801 | "sco_math"; | |
4802 | ||
4803 | /* | |
4804 | * File name selection pattern | |
4805 | */ | |
4806 | tSCC zSco_MathList[] = | |
4807 | "|math.h|ansi/math.h|posix/math.h|xpg4/math.h|xpg4v2/math.h|xpg4plus/math.h|ods_30_compat/math.h|oldstyle/math.h|"; | |
4808 | /* | |
4809 | * Machine/OS name selection pattern | |
4810 | */ | |
4811 | #define apzSco_MathMachs (const char**)NULL | |
4812 | ||
4813 | /* | |
4814 | * content selection pattern - do fix if pattern found | |
4815 | */ | |
4816 | tSCC zSco_MathSelect0[] = | |
4817 | "inline double abs"; | |
4818 | ||
9119bca7 | 4819 | /* |
4820 | * content bypass pattern - skip fix if pattern found | |
4821 | */ | |
4822 | tSCC zSco_MathBypass0[] = | |
4823 | "__GNUG__"; | |
4824 | ||
4825 | #define SCO_MATH_TEST_CT 2 | |
3c04ceca | 4826 | static tTestDesc aSco_MathTests[] = { |
9119bca7 | 4827 | { TT_NEGREP, zSco_MathBypass0, (regex_t*)NULL }, |
3c04ceca | 4828 | { TT_EGREP, zSco_MathSelect0, (regex_t*)NULL }, }; |
4829 | ||
4830 | /* | |
4831 | * Fix Command Arguments for Sco_Math | |
4832 | */ | |
4833 | static const char* apzSco_MathPatch[] = { "sed", | |
4834 | "-e", "/#define.*__fp_class(a) \\\\/i\\\n\ | |
4835 | #ifndef __GNUC__\n", | |
4836 | "-e", "/.*__builtin_generic/a\\\n\ | |
4837 | #else\\\n\ | |
4838 | #define __fp_class(a) \\\\\\\n\ | |
4839 | __builtin_choose_expr(__builtin_types_compatible_p(typeof(a),long double),\\\\\\\n\ | |
4840 | __fpclassifyl(a), \\\\\\\n\ | |
4841 | __builtin_choose_expr(__builtin_types_compatible_p(typeof(a), float), \\\\\\\n\ | |
4842 | __fpclassifyf(a),__fpclassify(a)))\\\n\ | |
4843 | #endif", | |
4844 | "-e", "/extern \"C\\+\\+\"/N;/inline double abs/i\\\n\ | |
4845 | #ifndef __GNUC__\n", | |
4846 | "-e", "/inline long double trunc/N;/inline long double trunc.*}.*extern \"C\\+\\+\"/a\\\n\ | |
4847 | #endif /* ! __GNUC__ */", | |
4848 | (char*)NULL }; | |
4849 | ||
4850 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
4851 | * | |
4852 | * Description of Sco_Regset fix | |
4853 | */ | |
4854 | tSCC zSco_RegsetName[] = | |
4855 | "sco_regset"; | |
4856 | ||
4857 | /* | |
4858 | * File name selection pattern | |
4859 | */ | |
4860 | tSCC zSco_RegsetList[] = | |
4861 | "|sys/regset.h|"; | |
4862 | /* | |
4863 | * Machine/OS name selection pattern | |
4864 | */ | |
4865 | tSCC* apzSco_RegsetMachs[] = { | |
4866 | "*-*-sco3.2v5*", | |
4867 | (const char*)NULL }; | |
4868 | ||
4869 | /* | |
4870 | * content selection pattern - do fix if pattern found | |
4871 | */ | |
4872 | tSCC zSco_RegsetSelect0[] = | |
4873 | "(struct[ \t]+.*)fpstate"; | |
4874 | ||
4875 | #define SCO_REGSET_TEST_CT 1 | |
4876 | static tTestDesc aSco_RegsetTests[] = { | |
4877 | { TT_EGREP, zSco_RegsetSelect0, (regex_t*)NULL }, }; | |
4878 | ||
4879 | /* | |
4880 | * Fix Command Arguments for Sco_Regset | |
4881 | */ | |
4882 | static const char* apzSco_RegsetPatch[] = { | |
4883 | "format", | |
4884 | "%1rsfpstate", | |
4885 | (char*)NULL }; | |
4886 | ||
a712e12c | 4887 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
4888 | * | |
cfe5be71 | 4889 | * Description of Sco_Static_Func fix |
a712e12c | 4890 | */ |
cfe5be71 | 4891 | tSCC zSco_Static_FuncName[] = |
4892 | "sco_static_func"; | |
a712e12c | 4893 | |
4894 | /* | |
4895 | * File name selection pattern | |
4896 | */ | |
cfe5be71 | 4897 | tSCC zSco_Static_FuncList[] = |
4898 | "|sys/stat.h|"; | |
a712e12c | 4899 | /* |
4900 | * Machine/OS name selection pattern | |
4901 | */ | |
cfe5be71 | 4902 | tSCC* apzSco_Static_FuncMachs[] = { |
a712e12c | 4903 | "i?86-*-sco3.2*", |
4904 | (const char*)NULL }; | |
4905 | ||
4906 | /* | |
4907 | * content selection pattern - do fix if pattern found | |
4908 | */ | |
cfe5be71 | 4909 | tSCC zSco_Static_FuncSelect0[] = |
4910 | "^static int"; | |
a712e12c | 4911 | |
cfe5be71 | 4912 | #define SCO_STATIC_FUNC_TEST_CT 1 |
2548396b | 4913 | static tTestDesc aSco_Static_FuncTests[] = { |
cfe5be71 | 4914 | { TT_EGREP, zSco_Static_FuncSelect0, (regex_t*)NULL }, }; |
a712e12c | 4915 | |
4916 | /* | |
cfe5be71 | 4917 | * Fix Command Arguments for Sco_Static_Func |
a712e12c | 4918 | */ |
2548396b | 4919 | static const char* apzSco_Static_FuncPatch[] = { "sed", |
cfe5be71 | 4920 | "-e", "/^static int/i\\\n\ |
4921 | #if __cplusplus\\\n\ | |
4922 | extern \"C\" {\\\n\ | |
4923 | #endif /* __cplusplus */", | |
4924 | "-e", "/^}$/a\\\n\ | |
4925 | #if __cplusplus\\\n\ | |
4926 | }\\\n\ | |
4927 | #endif /* __cplusplus */", | |
a712e12c | 4928 | (char*)NULL }; |
4929 | ||
886db012 | 4930 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
4931 | * | |
3072d11f | 4932 | * Description of Sco_Utime fix |
886db012 | 4933 | */ |
3072d11f | 4934 | tSCC zSco_UtimeName[] = |
4935 | "sco_utime"; | |
886db012 | 4936 | |
4937 | /* | |
4938 | * File name selection pattern | |
4939 | */ | |
3072d11f | 4940 | tSCC zSco_UtimeList[] = |
4941 | "|sys/times.h|"; | |
886db012 | 4942 | /* |
4943 | * Machine/OS name selection pattern | |
4944 | */ | |
3072d11f | 4945 | tSCC* apzSco_UtimeMachs[] = { |
4946 | "i?86-*-sco3.2v4*", | |
4947 | (const char*)NULL }; | |
886db012 | 4948 | |
4949 | /* | |
4950 | * content selection pattern - do fix if pattern found | |
4951 | */ | |
3072d11f | 4952 | tSCC zSco_UtimeSelect0[] = |
4953 | "\\(const char \\*, struct utimbuf \\*\\);"; | |
9aac3497 | 4954 | |
3072d11f | 4955 | #define SCO_UTIME_TEST_CT 1 |
4956 | static tTestDesc aSco_UtimeTests[] = { | |
4957 | { TT_EGREP, zSco_UtimeSelect0, (regex_t*)NULL }, }; | |
886db012 | 4958 | |
4959 | /* | |
3072d11f | 4960 | * Fix Command Arguments for Sco_Utime |
886db012 | 4961 | */ |
3072d11f | 4962 | static const char* apzSco_UtimePatch[] = { |
886db012 | 4963 | "format", |
3072d11f | 4964 | "(const char *, const struct utimbuf *);", |
886db012 | 4965 | (char*)NULL }; |
4966 | ||
e849ea70 | 4967 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
4968 | * | |
4969 | * Description of Solaris_Math_1 fix | |
4970 | */ | |
4971 | tSCC zSolaris_Math_1Name[] = | |
4972 | "solaris_math_1"; | |
4973 | ||
4974 | /* | |
4975 | * File name selection pattern | |
4976 | */ | |
4977 | tSCC zSolaris_Math_1List[] = | |
4978 | "|iso/math_c99.h|"; | |
4979 | /* | |
4980 | * Machine/OS name selection pattern | |
4981 | */ | |
4982 | #define apzSolaris_Math_1Machs (const char**)NULL | |
4983 | ||
4984 | /* | |
4985 | * content selection pattern - do fix if pattern found | |
4986 | */ | |
4987 | tSCC zSolaris_Math_1Select0[] = | |
4988 | "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI"; | |
4989 | ||
4990 | /* | |
4991 | * content bypass pattern - skip fix if pattern found | |
4992 | */ | |
4993 | tSCC zSolaris_Math_1Bypass0[] = | |
4994 | "__GNUC__"; | |
4995 | ||
4996 | #define SOLARIS_MATH_1_TEST_CT 2 | |
4997 | static tTestDesc aSolaris_Math_1Tests[] = { | |
4998 | { TT_NEGREP, zSolaris_Math_1Bypass0, (regex_t*)NULL }, | |
4999 | { TT_EGREP, zSolaris_Math_1Select0, (regex_t*)NULL }, }; | |
5000 | ||
5001 | /* | |
5002 | * Fix Command Arguments for Solaris_Math_1 | |
5003 | */ | |
5004 | static const char* apzSolaris_Math_1Patch[] = { | |
5005 | "format", | |
5006 | "#define\tHUGE_VA%1\t(__builtin_huge_va%2())", | |
5007 | "^#define[ \t]+HUGE_VA([LF]+)[ \t]+__builtin_huge_va([lf]+)", | |
5008 | (char*)NULL }; | |
5009 | ||
5010 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
5011 | * | |
5012 | * Description of Solaris_Math_2 fix | |
5013 | */ | |
5014 | tSCC zSolaris_Math_2Name[] = | |
5015 | "solaris_math_2"; | |
5016 | ||
5017 | /* | |
5018 | * File name selection pattern | |
5019 | */ | |
5020 | tSCC zSolaris_Math_2List[] = | |
5021 | "|iso/math_c99.h|"; | |
5022 | /* | |
5023 | * Machine/OS name selection pattern | |
5024 | */ | |
5025 | #define apzSolaris_Math_2Machs (const char**)NULL | |
5026 | ||
5027 | /* | |
5028 | * content selection pattern - do fix if pattern found | |
5029 | */ | |
5030 | tSCC zSolaris_Math_2Select0[] = | |
5031 | "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI"; | |
5032 | ||
5033 | /* | |
5034 | * content bypass pattern - skip fix if pattern found | |
5035 | */ | |
5036 | tSCC zSolaris_Math_2Bypass0[] = | |
5037 | "__GNUC__"; | |
5038 | ||
5039 | #define SOLARIS_MATH_2_TEST_CT 2 | |
5040 | static tTestDesc aSolaris_Math_2Tests[] = { | |
5041 | { TT_NEGREP, zSolaris_Math_2Bypass0, (regex_t*)NULL }, | |
5042 | { TT_EGREP, zSolaris_Math_2Select0, (regex_t*)NULL }, }; | |
5043 | ||
5044 | /* | |
5045 | * Fix Command Arguments for Solaris_Math_2 | |
5046 | */ | |
5047 | static const char* apzSolaris_Math_2Patch[] = { | |
5048 | "format", | |
5049 | "#define\tINFINITY\t(__builtin_inff())", | |
5050 | "^#define[ \t]+INFINITY[ \t]+__builtin_infinity", | |
5051 | (char*)NULL }; | |
5052 | ||
5053 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
5054 | * | |
5055 | * Description of Solaris_Math_3 fix | |
5056 | */ | |
5057 | tSCC zSolaris_Math_3Name[] = | |
5058 | "solaris_math_3"; | |
5059 | ||
5060 | /* | |
5061 | * File name selection pattern | |
5062 | */ | |
5063 | tSCC zSolaris_Math_3List[] = | |
5064 | "|iso/math_c99.h|"; | |
5065 | /* | |
5066 | * Machine/OS name selection pattern | |
5067 | */ | |
5068 | #define apzSolaris_Math_3Machs (const char**)NULL | |
5069 | ||
5070 | /* | |
5071 | * content selection pattern - do fix if pattern found | |
5072 | */ | |
5073 | tSCC zSolaris_Math_3Select0[] = | |
5074 | "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI"; | |
5075 | ||
5076 | /* | |
5077 | * content bypass pattern - skip fix if pattern found | |
5078 | */ | |
5079 | tSCC zSolaris_Math_3Bypass0[] = | |
5080 | "__GNUC__"; | |
5081 | ||
5082 | #define SOLARIS_MATH_3_TEST_CT 2 | |
5083 | static tTestDesc aSolaris_Math_3Tests[] = { | |
5084 | { TT_NEGREP, zSolaris_Math_3Bypass0, (regex_t*)NULL }, | |
5085 | { TT_EGREP, zSolaris_Math_3Select0, (regex_t*)NULL }, }; | |
5086 | ||
5087 | /* | |
5088 | * Fix Command Arguments for Solaris_Math_3 | |
5089 | */ | |
5090 | static const char* apzSolaris_Math_3Patch[] = { | |
5091 | "format", | |
5092 | "#define\tNAN\t\t(__builtin_nanf(\"\"))", | |
5093 | "^#define[ \t]+NAN[ \t]+__builtin_nan", | |
5094 | (char*)NULL }; | |
5095 | ||
5096 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
5097 | * | |
5098 | * Description of Solaris_Math_4 fix | |
5099 | */ | |
5100 | tSCC zSolaris_Math_4Name[] = | |
5101 | "solaris_math_4"; | |
5102 | ||
5103 | /* | |
5104 | * File name selection pattern | |
5105 | */ | |
5106 | tSCC zSolaris_Math_4List[] = | |
5107 | "|iso/math_c99.h|"; | |
5108 | /* | |
5109 | * Machine/OS name selection pattern | |
5110 | */ | |
5111 | #define apzSolaris_Math_4Machs (const char**)NULL | |
5112 | ||
5113 | /* | |
5114 | * content selection pattern - do fix if pattern found | |
5115 | */ | |
5116 | tSCC zSolaris_Math_4Select0[] = | |
5117 | "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI"; | |
5118 | ||
5119 | /* | |
5120 | * content bypass pattern - skip fix if pattern found | |
5121 | */ | |
5122 | tSCC zSolaris_Math_4Bypass0[] = | |
5123 | "__GNUC__"; | |
5124 | ||
5125 | #define SOLARIS_MATH_4_TEST_CT 2 | |
5126 | static tTestDesc aSolaris_Math_4Tests[] = { | |
5127 | { TT_NEGREP, zSolaris_Math_4Bypass0, (regex_t*)NULL }, | |
5128 | { TT_EGREP, zSolaris_Math_4Select0, (regex_t*)NULL }, }; | |
5129 | ||
5130 | /* | |
5131 | * Fix Command Arguments for Solaris_Math_4 | |
5132 | */ | |
5133 | static const char* apzSolaris_Math_4Patch[] = { | |
5134 | "format", | |
5135 | "#define\tfpclassify(x) \\\n\ | |
5136 | __extension__ ({ __typeof(x) __x_fp = (x); \\\n\ | |
5137 | \t\t isnan(__x_fp) \\\n\ | |
5138 | \t\t ? FP_NAN \\\n\ | |
5139 | \t\t : isinf(__x_fp) \\\n\ | |
5140 | \t\t ? FP_INFINITE \\\n\ | |
5141 | \t\t : isnormal(__x_fp) \\\n\ | |
5142 | \t\t\t ? FP_NORMAL \\\n\ | |
5143 | \t\t\t : __x_fp == 0.0 \\\n\ | |
5144 | \t\t\t ? FP_ZERO \\\n\ | |
5145 | \t\t\t : FP_SUBNORMAL; })", | |
5146 | "^#define[ \t]+fpclassify\\(x\\)[ \t]+__builtin_fpclassify\\(x\\)", | |
5147 | (char*)NULL }; | |
5148 | ||
5149 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
5150 | * | |
5151 | * Description of Solaris_Math_5 fix | |
5152 | */ | |
5153 | tSCC zSolaris_Math_5Name[] = | |
5154 | "solaris_math_5"; | |
5155 | ||
5156 | /* | |
5157 | * File name selection pattern | |
5158 | */ | |
5159 | tSCC zSolaris_Math_5List[] = | |
5160 | "|iso/math_c99.h|"; | |
5161 | /* | |
5162 | * Machine/OS name selection pattern | |
5163 | */ | |
5164 | #define apzSolaris_Math_5Machs (const char**)NULL | |
5165 | ||
5166 | /* | |
5167 | * content selection pattern - do fix if pattern found | |
5168 | */ | |
5169 | tSCC zSolaris_Math_5Select0[] = | |
5170 | "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI"; | |
5171 | ||
5172 | /* | |
5173 | * content bypass pattern - skip fix if pattern found | |
5174 | */ | |
5175 | tSCC zSolaris_Math_5Bypass0[] = | |
5176 | "__GNUC__"; | |
5177 | ||
5178 | #define SOLARIS_MATH_5_TEST_CT 2 | |
5179 | static tTestDesc aSolaris_Math_5Tests[] = { | |
5180 | { TT_NEGREP, zSolaris_Math_5Bypass0, (regex_t*)NULL }, | |
5181 | { TT_EGREP, zSolaris_Math_5Select0, (regex_t*)NULL }, }; | |
5182 | ||
5183 | /* | |
5184 | * Fix Command Arguments for Solaris_Math_5 | |
5185 | */ | |
5186 | static const char* apzSolaris_Math_5Patch[] = { | |
5187 | "format", | |
5188 | "#define\tisfinite(x) \\\n\ | |
5189 | __extension__ ({ __typeof (x) __x_f = (x); \\\n\ | |
5190 | \t\t __builtin_expect(!isnan(__x_f - __x_f), 1); })", | |
5191 | "^#define[ \t]+isfinite\\(x\\)[ \t]+__builtin_isfinite\\(x\\)", | |
5192 | (char*)NULL }; | |
5193 | ||
5194 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
5195 | * | |
5196 | * Description of Solaris_Math_6 fix | |
5197 | */ | |
5198 | tSCC zSolaris_Math_6Name[] = | |
5199 | "solaris_math_6"; | |
5200 | ||
5201 | /* | |
5202 | * File name selection pattern | |
5203 | */ | |
5204 | tSCC zSolaris_Math_6List[] = | |
5205 | "|iso/math_c99.h|"; | |
5206 | /* | |
5207 | * Machine/OS name selection pattern | |
5208 | */ | |
5209 | #define apzSolaris_Math_6Machs (const char**)NULL | |
5210 | ||
5211 | /* | |
5212 | * content selection pattern - do fix if pattern found | |
5213 | */ | |
5214 | tSCC zSolaris_Math_6Select0[] = | |
5215 | "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI"; | |
5216 | ||
5217 | /* | |
5218 | * content bypass pattern - skip fix if pattern found | |
5219 | */ | |
5220 | tSCC zSolaris_Math_6Bypass0[] = | |
5221 | "__GNUC__"; | |
5222 | ||
5223 | #define SOLARIS_MATH_6_TEST_CT 2 | |
5224 | static tTestDesc aSolaris_Math_6Tests[] = { | |
5225 | { TT_NEGREP, zSolaris_Math_6Bypass0, (regex_t*)NULL }, | |
5226 | { TT_EGREP, zSolaris_Math_6Select0, (regex_t*)NULL }, }; | |
5227 | ||
5228 | /* | |
5229 | * Fix Command Arguments for Solaris_Math_6 | |
5230 | */ | |
5231 | static const char* apzSolaris_Math_6Patch[] = { | |
5232 | "format", | |
5233 | "#define\tisinf(x) \\\n\ | |
5234 | __extension__ ({ __typeof (x) __x_i = (x); \\\n\ | |
5235 | \t\t __builtin_expect(!isnan(__x_i) && !isfinite(__x_i), 0); })", | |
5236 | "^#define[ \t]+isinf\\(x\\)[ \t]+__builtin_isinf\\(x\\)", | |
5237 | (char*)NULL }; | |
5238 | ||
5239 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
5240 | * | |
5241 | * Description of Solaris_Math_7 fix | |
5242 | */ | |
5243 | tSCC zSolaris_Math_7Name[] = | |
5244 | "solaris_math_7"; | |
5245 | ||
5246 | /* | |
5247 | * File name selection pattern | |
5248 | */ | |
5249 | tSCC zSolaris_Math_7List[] = | |
5250 | "|iso/math_c99.h|"; | |
5251 | /* | |
5252 | * Machine/OS name selection pattern | |
5253 | */ | |
5254 | #define apzSolaris_Math_7Machs (const char**)NULL | |
5255 | ||
5256 | /* | |
5257 | * content selection pattern - do fix if pattern found | |
5258 | */ | |
5259 | tSCC zSolaris_Math_7Select0[] = | |
5260 | "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI"; | |
5261 | ||
5262 | /* | |
5263 | * content bypass pattern - skip fix if pattern found | |
5264 | */ | |
5265 | tSCC zSolaris_Math_7Bypass0[] = | |
5266 | "__GNUC__"; | |
5267 | ||
5268 | #define SOLARIS_MATH_7_TEST_CT 2 | |
5269 | static tTestDesc aSolaris_Math_7Tests[] = { | |
5270 | { TT_NEGREP, zSolaris_Math_7Bypass0, (regex_t*)NULL }, | |
5271 | { TT_EGREP, zSolaris_Math_7Select0, (regex_t*)NULL }, }; | |
5272 | ||
5273 | /* | |
5274 | * Fix Command Arguments for Solaris_Math_7 | |
5275 | */ | |
5276 | static const char* apzSolaris_Math_7Patch[] = { | |
5277 | "format", | |
5278 | "#define\tisnormal(x) \\\n\ | |
5279 | __extension__ ({ __typeof(x) __x_n = (x); \\\n\ | |
5280 | \t\t if (__x_n < 0.0) __x_n = -__x_n; \\\n\ | |
5281 | \t\t __builtin_expect(isfinite(__x_n) \\\n\ | |
5282 | \t\t\t\t && (sizeof(__x_n) == sizeof(float) \\\n\ | |
5283 | \t\t\t\t\t ? __x_n >= __FLT_MIN__ \\\n\ | |
5284 | \t\t\t\t\t : sizeof(__x_n) == sizeof(long double) \\\n\ | |
5285 | \t\t\t\t\t ? __x_n >= __LDBL_MIN__ \\\n\ | |
5286 | \t\t\t\t\t : __x_n >= __DBL_MIN__), 1); })", | |
5287 | "^#define[ \t]+isnormal\\(x\\)[ \t]+__builtin_isnormal\\(x\\)", | |
5288 | (char*)NULL }; | |
5289 | ||
5290 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
5291 | * | |
5292 | * Description of Solaris_Math_8 fix | |
5293 | */ | |
5294 | tSCC zSolaris_Math_8Name[] = | |
5295 | "solaris_math_8"; | |
5296 | ||
5297 | /* | |
5298 | * File name selection pattern | |
5299 | */ | |
5300 | tSCC zSolaris_Math_8List[] = | |
5301 | "|iso/math_c99.h|"; | |
5302 | /* | |
5303 | * Machine/OS name selection pattern | |
5304 | */ | |
5305 | #define apzSolaris_Math_8Machs (const char**)NULL | |
5306 | ||
5307 | /* | |
5308 | * content selection pattern - do fix if pattern found | |
5309 | */ | |
5310 | tSCC zSolaris_Math_8Select0[] = | |
5311 | "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI"; | |
5312 | ||
5313 | /* | |
5314 | * content bypass pattern - skip fix if pattern found | |
5315 | */ | |
5316 | tSCC zSolaris_Math_8Bypass0[] = | |
5317 | "__GNUC__"; | |
5318 | ||
5319 | #define SOLARIS_MATH_8_TEST_CT 2 | |
5320 | static tTestDesc aSolaris_Math_8Tests[] = { | |
5321 | { TT_NEGREP, zSolaris_Math_8Bypass0, (regex_t*)NULL }, | |
5322 | { TT_EGREP, zSolaris_Math_8Select0, (regex_t*)NULL }, }; | |
5323 | ||
5324 | /* | |
5325 | * Fix Command Arguments for Solaris_Math_8 | |
5326 | */ | |
5327 | static const char* apzSolaris_Math_8Patch[] = { | |
5328 | "format", | |
5329 | "#define\tsignbit(x)\t(sizeof(x) == sizeof(float) \\\n\ | |
5330 | \t\t\t ? __builtin_signbitf(x) \\\n\ | |
5331 | \t\t\t : sizeof(x) == sizeof(long double) \\\n\ | |
5332 | \t\t\t ? __builtin_signbitl(x) \\\n\ | |
5333 | \t\t\t : __builtin_signbit(x))", | |
5334 | "^#define[ \t]+signbit\\(x\\)[ \t]+__builtin_signbit\\(x\\)", | |
5335 | (char*)NULL }; | |
5336 | ||
5337 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
5338 | * | |
5339 | * Description of Solaris_Math_9 fix | |
5340 | */ | |
5341 | tSCC zSolaris_Math_9Name[] = | |
5342 | "solaris_math_9"; | |
5343 | ||
5344 | /* | |
5345 | * File name selection pattern | |
5346 | */ | |
5347 | tSCC zSolaris_Math_9List[] = | |
5348 | "|iso/math_c99.h|"; | |
5349 | /* | |
5350 | * Machine/OS name selection pattern | |
5351 | */ | |
5352 | #define apzSolaris_Math_9Machs (const char**)NULL | |
5353 | ||
5354 | /* | |
5355 | * content selection pattern - do fix if pattern found | |
5356 | */ | |
5357 | tSCC zSolaris_Math_9Select0[] = | |
5358 | "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI"; | |
5359 | ||
5360 | /* | |
5361 | * content bypass pattern - skip fix if pattern found | |
5362 | */ | |
5363 | tSCC zSolaris_Math_9Bypass0[] = | |
5364 | "__GNUC__"; | |
5365 | ||
5366 | #define SOLARIS_MATH_9_TEST_CT 2 | |
5367 | static tTestDesc aSolaris_Math_9Tests[] = { | |
5368 | { TT_NEGREP, zSolaris_Math_9Bypass0, (regex_t*)NULL }, | |
5369 | { TT_EGREP, zSolaris_Math_9Select0, (regex_t*)NULL }, }; | |
5370 | ||
5371 | /* | |
5372 | * Fix Command Arguments for Solaris_Math_9 | |
5373 | */ | |
5374 | static const char* apzSolaris_Math_9Patch[] = { | |
5375 | "format", | |
5376 | "#define\t%1(x, y)%2__builtin_%1(x, y)", | |
5377 | "^#define[ \t]+([a-z]+)\\(x, y\\)([ \t]+)\\(\\(x\\) __builtin_[a-z]+\\(y\\)\\)", | |
5378 | (char*)NULL }; | |
5379 | ||
886db012 | 5380 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
5381 | * | |
4a050cc7 | 5382 | * Description of Solaris_Mutex_Init_1 fix |
886db012 | 5383 | */ |
4a050cc7 | 5384 | tSCC zSolaris_Mutex_Init_1Name[] = |
5385 | "solaris_mutex_init_1"; | |
886db012 | 5386 | |
5387 | /* | |
5388 | * File name selection pattern | |
5389 | */ | |
4a050cc7 | 5390 | tSCC zSolaris_Mutex_Init_1List[] = |
3072d11f | 5391 | "|pthread.h|"; |
886db012 | 5392 | /* |
5393 | * Machine/OS name selection pattern | |
5394 | */ | |
4a050cc7 | 5395 | #define apzSolaris_Mutex_Init_1Machs (const char**)NULL |
886db012 | 5396 | |
5397 | /* | |
5398 | * content selection pattern - do fix if pattern found | |
5399 | */ | |
4a050cc7 | 5400 | tSCC zSolaris_Mutex_Init_1Select0[] = |
ca27c637 | 5401 | "@\\(#\\)pthread.h[ \t]+1.1[0-9][ \t]+9[567]/[0-9/]+ SMI"; |
4a050cc7 | 5402 | |
5403 | #define SOLARIS_MUTEX_INIT_1_TEST_CT 1 | |
5404 | static tTestDesc aSolaris_Mutex_Init_1Tests[] = { | |
5405 | { TT_EGREP, zSolaris_Mutex_Init_1Select0, (regex_t*)NULL }, }; | |
5406 | ||
5407 | /* | |
5408 | * Fix Command Arguments for Solaris_Mutex_Init_1 | |
5409 | */ | |
5410 | static const char* apzSolaris_Mutex_Init_1Patch[] = { "sed", | |
5411 | "-e", "/define[ \t]*PTHREAD_MUTEX_INI/s/{0, 0,/{{{0}, 0}, {{{0}}},/\n\ | |
5412 | /define[ \t]*PTHREAD_COND_INI/s/{0,/{{{0},0},/", | |
5413 | (char*)NULL }; | |
5414 | ||
5415 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
5416 | * | |
5417 | * Description of Solaris_Mutex_Init_2 fix | |
5418 | */ | |
5419 | tSCC zSolaris_Mutex_Init_2Name[] = | |
5420 | "solaris_mutex_init_2"; | |
5421 | ||
5422 | /* | |
5423 | * File name selection pattern | |
5424 | */ | |
5425 | tSCC zSolaris_Mutex_Init_2List[] = | |
5426 | "|pthread.h|"; | |
5427 | /* | |
5428 | * Machine/OS name selection pattern | |
5429 | */ | |
5430 | #define apzSolaris_Mutex_Init_2Machs (const char**)NULL | |
5431 | ||
5432 | /* | |
5433 | * content selection pattern - do fix if pattern found | |
5434 | */ | |
5435 | tSCC zSolaris_Mutex_Init_2Select0[] = | |
c6738ff5 | 5436 | "@\\(#\\)pthread.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI"; |
9aac3497 | 5437 | |
4a050cc7 | 5438 | #define SOLARIS_MUTEX_INIT_2_TEST_CT 1 |
5439 | static tTestDesc aSolaris_Mutex_Init_2Tests[] = { | |
5440 | { TT_EGREP, zSolaris_Mutex_Init_2Select0, (regex_t*)NULL }, }; | |
886db012 | 5441 | |
5442 | /* | |
4a050cc7 | 5443 | * Fix Command Arguments for Solaris_Mutex_Init_2 |
886db012 | 5444 | */ |
4a050cc7 | 5445 | static const char* apzSolaris_Mutex_Init_2Patch[] = { |
886db012 | 5446 | "format", |
c6738ff5 | 5447 | "#if __STDC__ - 0 == 0 && !defined(_NO_LONGLONG)\n\ |
5448 | %0\n\ | |
5449 | #else\n\ | |
5450 | %1, {0}}%3\n\ | |
5451 | #endif", | |
3918f760 | 5452 | "(^#define[ \t]+PTHREAD_(MUTEX|COND)_INITIALIZER[ \t]+\\{.*),[ \t]*0\\}(|[ \t].*)$", |
886db012 | 5453 | (char*)NULL }; |
5454 | ||
4dbe9809 | 5455 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
5456 | * | |
5457 | * Description of Solaris_Socket fix | |
5458 | */ | |
5459 | tSCC zSolaris_SocketName[] = | |
5460 | "solaris_socket"; | |
5461 | ||
5462 | /* | |
5463 | * File name selection pattern | |
5464 | */ | |
5465 | tSCC zSolaris_SocketList[] = | |
5466 | "|sys/socket.h|"; | |
5467 | /* | |
5468 | * Machine/OS name selection pattern | |
5469 | */ | |
5470 | #define apzSolaris_SocketMachs (const char**)NULL | |
5471 | ||
5472 | /* | |
5473 | * content selection pattern - do fix if pattern found | |
5474 | */ | |
5475 | tSCC zSolaris_SocketSelect0[] = | |
5476 | "@\\(#\\)socket.h[ \t]+1.[123][0-9][ \t]+9[567]/[0-9/]+ SMI"; | |
5477 | ||
5478 | #define SOLARIS_SOCKET_TEST_CT 1 | |
5479 | static tTestDesc aSolaris_SocketTests[] = { | |
5480 | { TT_EGREP, zSolaris_SocketSelect0, (regex_t*)NULL }, }; | |
5481 | ||
5482 | /* | |
5483 | * Fix Command Arguments for Solaris_Socket | |
5484 | */ | |
5485 | static const char* apzSolaris_SocketPatch[] = { | |
5486 | "format", | |
5487 | "extern int %1(int, %2void *, int, int);", | |
5488 | "^extern int (recv|send)\\(int, (const )*char \\*, int, int\\);", | |
5489 | (char*)NULL }; | |
5490 | ||
91eb7bbc | 5491 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
5492 | * | |
5493 | * Description of Solaris_Stdio_Tag fix | |
5494 | */ | |
5495 | tSCC zSolaris_Stdio_TagName[] = | |
5496 | "solaris_stdio_tag"; | |
5497 | ||
5498 | /* | |
5499 | * File name selection pattern | |
5500 | */ | |
5501 | tSCC zSolaris_Stdio_TagList[] = | |
5502 | "|stdio_tag.h|"; | |
5503 | /* | |
5504 | * Machine/OS name selection pattern | |
5505 | */ | |
5506 | #define apzSolaris_Stdio_TagMachs (const char**)NULL | |
5507 | ||
5508 | /* | |
5509 | * content selection pattern - do fix if pattern found | |
5510 | */ | |
5511 | tSCC zSolaris_Stdio_TagSelect0[] = | |
5512 | "__cplusplus < 54321L"; | |
5513 | ||
09a31484 | 5514 | /* |
5515 | * content bypass pattern - skip fix if pattern found | |
5516 | */ | |
5517 | tSCC zSolaris_Stdio_TagBypass0[] = | |
5518 | "__GNUC__"; | |
5519 | ||
5520 | #define SOLARIS_STDIO_TAG_TEST_CT 2 | |
91eb7bbc | 5521 | static tTestDesc aSolaris_Stdio_TagTests[] = { |
09a31484 | 5522 | { TT_NEGREP, zSolaris_Stdio_TagBypass0, (regex_t*)NULL }, |
91eb7bbc | 5523 | { TT_EGREP, zSolaris_Stdio_TagSelect0, (regex_t*)NULL }, }; |
5524 | ||
5525 | /* | |
5526 | * Fix Command Arguments for Solaris_Stdio_Tag | |
5527 | */ | |
5528 | static const char* apzSolaris_Stdio_TagPatch[] = { "sed", | |
5529 | "-e", "s/defined(__cplusplus) && (__cplusplus < 54321L)/0/", | |
5530 | (char*)NULL }; | |
5531 | ||
4dbe9809 | 5532 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
5533 | * | |
5534 | * Description of Solaris_Unistd fix | |
5535 | */ | |
5536 | tSCC zSolaris_UnistdName[] = | |
5537 | "solaris_unistd"; | |
5538 | ||
5539 | /* | |
5540 | * File name selection pattern | |
5541 | */ | |
5542 | tSCC zSolaris_UnistdList[] = | |
5543 | "|unistd.h|"; | |
5544 | /* | |
5545 | * Machine/OS name selection pattern | |
5546 | */ | |
5547 | #define apzSolaris_UnistdMachs (const char**)NULL | |
5548 | ||
5549 | /* | |
5550 | * content selection pattern - do fix if pattern found | |
5551 | */ | |
5552 | tSCC zSolaris_UnistdSelect0[] = | |
5553 | "@\\(#\\)unistd.h[ \t]+1.3[0-9][ \t]+9[567]/[0-9/]+ SMI"; | |
5554 | ||
5555 | /* | |
5556 | * content bypass pattern - skip fix if pattern found | |
5557 | */ | |
5558 | tSCC zSolaris_UnistdBypass0[] = | |
5559 | "getpagesize"; | |
5560 | ||
5561 | #define SOLARIS_UNISTD_TEST_CT 2 | |
5562 | static tTestDesc aSolaris_UnistdTests[] = { | |
5563 | { TT_NEGREP, zSolaris_UnistdBypass0, (regex_t*)NULL }, | |
5564 | { TT_EGREP, zSolaris_UnistdSelect0, (regex_t*)NULL }, }; | |
5565 | ||
5566 | /* | |
5567 | * Fix Command Arguments for Solaris_Unistd | |
5568 | */ | |
5569 | static const char* apzSolaris_UnistdPatch[] = { | |
5570 | "format", | |
5571 | "extern int getpagesize();\n\ | |
5572 | %0", | |
5573 | "^extern (pid_t|int) getpgid\\(.*\\);", | |
5574 | (char*)NULL }; | |
5575 | ||
b924735b | 5576 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
5577 | * | |
5578 | * Description of Solaris_Widec fix | |
5579 | */ | |
5580 | tSCC zSolaris_WidecName[] = | |
5581 | "solaris_widec"; | |
5582 | ||
5583 | /* | |
5584 | * File name selection pattern | |
5585 | */ | |
5586 | tSCC zSolaris_WidecList[] = | |
5587 | "|widec.h|"; | |
5588 | /* | |
5589 | * Machine/OS name selection pattern | |
5590 | */ | |
5591 | tSCC* apzSolaris_WidecMachs[] = { | |
3c00589d | 5592 | "*-*-solaris2.[0-5]", |
5593 | "*-*-solaris2.[0-5].*", | |
b924735b | 5594 | (const char*)NULL }; |
5595 | ||
5596 | /* | |
5597 | * content selection pattern - do fix if pattern found | |
5598 | */ | |
5599 | tSCC zSolaris_WidecSelect0[] = | |
5600 | "#include <euc.h>"; | |
5601 | ||
5602 | /* | |
5603 | * content bypass pattern - skip fix if pattern found | |
5604 | */ | |
5605 | tSCC zSolaris_WidecBypass0[] = | |
5606 | "include.*wchar\\.h"; | |
5607 | ||
5608 | #define SOLARIS_WIDEC_TEST_CT 2 | |
5609 | static tTestDesc aSolaris_WidecTests[] = { | |
5610 | { TT_NEGREP, zSolaris_WidecBypass0, (regex_t*)NULL }, | |
5611 | { TT_EGREP, zSolaris_WidecSelect0, (regex_t*)NULL }, }; | |
5612 | ||
5613 | /* | |
5614 | * Fix Command Arguments for Solaris_Widec | |
5615 | */ | |
5616 | static const char* apzSolaris_WidecPatch[] = { | |
5617 | "format", | |
5618 | "%0\n\ | |
5619 | #include <wchar.h>", | |
5620 | (char*)NULL }; | |
5621 | ||
886db012 | 5622 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
5623 | * | |
3072d11f | 5624 | * Description of Statsswtch fix |
886db012 | 5625 | */ |
3072d11f | 5626 | tSCC zStatsswtchName[] = |
5627 | "statsswtch"; | |
886db012 | 5628 | |
5629 | /* | |
5630 | * File name selection pattern | |
5631 | */ | |
3072d11f | 5632 | tSCC zStatsswtchList[] = |
5633 | "|rpcsvc/rstat.h|"; | |
886db012 | 5634 | /* |
5635 | * Machine/OS name selection pattern | |
5636 | */ | |
3072d11f | 5637 | #define apzStatsswtchMachs (const char**)NULL |
886db012 | 5638 | |
5639 | /* | |
5640 | * content selection pattern - do fix if pattern found | |
5641 | */ | |
3072d11f | 5642 | tSCC zStatsswtchSelect0[] = |
5643 | "boottime$"; | |
9aac3497 | 5644 | |
3072d11f | 5645 | #define STATSSWTCH_TEST_CT 1 |
5646 | static tTestDesc aStatsswtchTests[] = { | |
5647 | { TT_EGREP, zStatsswtchSelect0, (regex_t*)NULL }, }; | |
886db012 | 5648 | |
5649 | /* | |
3072d11f | 5650 | * Fix Command Arguments for Statsswtch |
886db012 | 5651 | */ |
3072d11f | 5652 | static const char* apzStatsswtchPatch[] = { |
886db012 | 5653 | "format", |
3072d11f | 5654 | "boottime;", |
886db012 | 5655 | (char*)NULL }; |
5656 | ||
a712e12c | 5657 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
5658 | * | |
3072d11f | 5659 | * Description of Stdio_Stdarg_H fix |
a712e12c | 5660 | */ |
3072d11f | 5661 | tSCC zStdio_Stdarg_HName[] = |
5662 | "stdio_stdarg_h"; | |
a712e12c | 5663 | |
5664 | /* | |
5665 | * File name selection pattern | |
5666 | */ | |
3072d11f | 5667 | tSCC zStdio_Stdarg_HList[] = |
5668 | "|stdio.h|"; | |
a712e12c | 5669 | /* |
5670 | * Machine/OS name selection pattern | |
5671 | */ | |
09a31484 | 5672 | tSCC* apzStdio_Stdarg_HMachs[] = { |
85dedd01 | 5673 | "*-*-solaris2.1[0-9]*", |
09a31484 | 5674 | (const char*)NULL }; |
a712e12c | 5675 | |
5676 | /* | |
3072d11f | 5677 | * content bypass pattern - skip fix if pattern found |
a712e12c | 5678 | */ |
3072d11f | 5679 | tSCC zStdio_Stdarg_HBypass0[] = |
5680 | "include.*(stdarg.h|machine/ansi.h)"; | |
a712e12c | 5681 | |
3072d11f | 5682 | #define STDIO_STDARG_H_TEST_CT 1 |
5683 | static tTestDesc aStdio_Stdarg_HTests[] = { | |
5684 | { TT_NEGREP, zStdio_Stdarg_HBypass0, (regex_t*)NULL }, }; | |
a712e12c | 5685 | |
5686 | /* | |
3072d11f | 5687 | * Fix Command Arguments for Stdio_Stdarg_H |
a712e12c | 5688 | */ |
3072d11f | 5689 | static const char* apzStdio_Stdarg_HPatch[] = { |
5690 | "wrap", | |
5691 | "#define __need___va_list\n\ | |
5692 | #include <stdarg.h>\n", | |
a712e12c | 5693 | (char*)NULL }; |
5694 | ||
c718ce1e | 5695 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
5696 | * | |
3072d11f | 5697 | * Description of Stdio_Va_List fix |
c718ce1e | 5698 | */ |
3072d11f | 5699 | tSCC zStdio_Va_ListName[] = |
5700 | "stdio_va_list"; | |
c718ce1e | 5701 | |
5702 | /* | |
5703 | * File name selection pattern | |
5704 | */ | |
3072d11f | 5705 | tSCC zStdio_Va_ListList[] = |
925b9291 | 5706 | "|stdio.h|internal/stdio_core.h|internal/wchar_core.h|"; |
c718ce1e | 5707 | /* |
5708 | * Machine/OS name selection pattern | |
5709 | */ | |
09a31484 | 5710 | tSCC* apzStdio_Va_ListMachs[] = { |
85dedd01 | 5711 | "*-*-solaris2.1[0-9]*", |
09a31484 | 5712 | (const char*)NULL }; |
c718ce1e | 5713 | |
5714 | /* | |
3072d11f | 5715 | * content bypass pattern - skip fix if pattern found |
c718ce1e | 5716 | */ |
3072d11f | 5717 | tSCC zStdio_Va_ListBypass0[] = |
5f6aa019 | 5718 | "__gnuc_va_list|_BSD_VA_LIST_|__DJ_va_list|_G_va_list"; |
c718ce1e | 5719 | |
ce225e8d | 5720 | #define STDIO_VA_LIST_TEST_CT 1 |
3072d11f | 5721 | static tTestDesc aStdio_Va_ListTests[] = { |
ce225e8d | 5722 | { TT_NEGREP, zStdio_Va_ListBypass0, (regex_t*)NULL }, }; |
c718ce1e | 5723 | |
5724 | /* | |
3072d11f | 5725 | * Fix Command Arguments for Stdio_Va_List |
c718ce1e | 5726 | */ |
3072d11f | 5727 | static const char* apzStdio_Va_ListPatch[] = { "sed", |
2a024ef8 | 5728 | "-e", "s@[ \t]va_list\\([ \t)]\\)@ __gnuc_va_list\\1@\n\ |
857f8fc6 | 5729 | s@(va_list)&@(__gnuc_va_list)\\&@\n\ |
3072d11f | 5730 | s@ _VA_LIST_));@ __gnuc_va_list));@\n\ |
6bc3b53c | 5731 | s@ __VA_LIST__));@ __gnuc_va_list));@\n\ |
3072d11f | 5732 | s@ va_list@ __not_va_list__@\n\ |
5733 | s@\\*va_list@*__not_va_list__@\n\ | |
5734 | s@ __va_list)@ __gnuc_va_list)@\n\ | |
5735 | s@typedef[ \t]\\(.*\\)[ \t]va_list[ \t]*;@typedef \\1 __not_va_list__;@\n\ | |
b93c3ed1 | 5736 | s@typedef[ \t]*__va_list__@typedef __gnuc_va_list@\n\ |
3072d11f | 5737 | s@GNUC_VA_LIST@GNUC_Va_LIST@\n\ |
3f2444de | 5738 | s@_VA_LIST_DEFINED@_Va_LIST_DEFINED@\n\ |
3072d11f | 5739 | s@_NEED___VA_LIST@_NEED___Va_LIST@\n\ |
5740 | s@VA_LIST@DUMMY_VA_LIST@\n\ | |
5741 | s@_Va_LIST@_VA_LIST@", | |
c718ce1e | 5742 | (char*)NULL }; |
5743 | ||
925b9291 | 5744 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
5745 | * | |
5746 | * Description of Stdio_Va_List_Clients fix | |
5747 | */ | |
5748 | tSCC zStdio_Va_List_ClientsName[] = | |
5749 | "stdio_va_list_clients"; | |
5750 | ||
5751 | /* | |
5752 | * File name selection pattern | |
5753 | */ | |
5754 | tSCC zStdio_Va_List_ClientsList[] = | |
5755 | "|com_err.h|cps.h|curses.h|krb5.h|lc_core.h|pfmt.h|wchar.h|curses_colr/curses.h|"; | |
5756 | /* | |
5757 | * Machine/OS name selection pattern | |
5758 | */ | |
5759 | #define apzStdio_Va_List_ClientsMachs (const char**)NULL | |
5760 | ||
5761 | /* | |
5762 | * content bypass pattern - skip fix if pattern found | |
5763 | */ | |
5764 | tSCC zStdio_Va_List_ClientsBypass0[] = | |
5765 | "__gnuc_va_list|_BSD_VA_LIST_|__DJ_va_list|_G_va_list"; | |
5766 | tSCC zStdio_Va_List_ClientsBypass1[] = | |
5767 | "include <stdarg\\.h>|#ifdef va_start"; | |
5768 | ||
5769 | #define STDIO_VA_LIST_CLIENTS_TEST_CT 2 | |
5770 | static tTestDesc aStdio_Va_List_ClientsTests[] = { | |
5771 | { TT_NEGREP, zStdio_Va_List_ClientsBypass0, (regex_t*)NULL }, | |
5772 | { TT_NEGREP, zStdio_Va_List_ClientsBypass1, (regex_t*)NULL }, }; | |
5773 | ||
5774 | /* | |
5775 | * Fix Command Arguments for Stdio_Va_List_Clients | |
5776 | */ | |
5777 | static const char* apzStdio_Va_List_ClientsPatch[] = { "sed", | |
5778 | "-e", "s@[ \t]va_list\\([ \t)]\\)@ __gnuc_va_list\\1@\n\ | |
5779 | s@(va_list)&@(__gnuc_va_list)\\&@\n\ | |
5780 | s@ _VA_LIST_));@ __gnuc_va_list));@\n\ | |
5781 | s@ __VA_LIST__));@ __gnuc_va_list));@\n\ | |
5782 | s@ va_list@ __not_va_list__@\n\ | |
5783 | s@\\*va_list@*__not_va_list__@\n\ | |
5784 | s@ __va_list)@ __gnuc_va_list)@\n\ | |
5785 | s@typedef[ \t]\\(.*\\)[ \t]va_list[ \t]*;@typedef \\1 __not_va_list__;@\n\ | |
5786 | s@typedef[ \t]*__va_list__@typedef __gnuc_va_list@\n\ | |
5787 | s@GNUC_VA_LIST@GNUC_Va_LIST@\n\ | |
5788 | s@_VA_LIST_DEFINED@_Va_LIST_DEFINED@\n\ | |
5789 | s@_NEED___VA_LIST@_NEED___Va_LIST@\n\ | |
5790 | s@VA_LIST@DUMMY_VA_LIST@\n\ | |
5791 | s@_Va_LIST@_VA_LIST@", | |
5792 | (char*)NULL }; | |
5793 | ||
fdb8fb96 | 5794 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
5795 | * | |
3072d11f | 5796 | * Description of Strict_Ansi_Not fix |
fdb8fb96 | 5797 | */ |
3072d11f | 5798 | tSCC zStrict_Ansi_NotName[] = |
5799 | "strict_ansi_not"; | |
d4c4b01d | 5800 | |
fdb8fb96 | 5801 | /* |
5802 | * File name selection pattern | |
5803 | */ | |
3072d11f | 5804 | #define zStrict_Ansi_NotList (char*)NULL |
fdb8fb96 | 5805 | /* |
5806 | * Machine/OS name selection pattern | |
5807 | */ | |
3072d11f | 5808 | #define apzStrict_Ansi_NotMachs (const char**)NULL |
5809 | ||
5810 | /* | |
5811 | * content selection pattern - do fix if pattern found | |
5812 | */ | |
5813 | tSCC zStrict_Ansi_NotSelect0[] = | |
3ff85771 | 5814 | "^([ \t]*#[ \t]*if.*)(!__STDC__|__STDC__[ \t]*==[ \t]*0|__STDC__[ \t]*!=[ \t]*1|__STDC__[ \t]*-[ \t]*0[ \t]*==[ \t]*0)"; |
fdb8fb96 | 5815 | |
68d0517a | 5816 | /* |
5817 | * content bypass pattern - skip fix if pattern found | |
5818 | */ | |
5819 | tSCC zStrict_Ansi_NotBypass0[] = | |
5820 | "GNU and MIPS C compilers define __STDC__ differently"; | |
5f6aa019 | 5821 | tSCC zStrict_Ansi_NotBypass1[] = |
5822 | "__SCO_VERSION__.*__STDC__ != 1"; | |
68d0517a | 5823 | |
fdb8fb96 | 5824 | /* |
3072d11f | 5825 | * perform the C function call test |
fdb8fb96 | 5826 | */ |
3072d11f | 5827 | tSCC zStrict_Ansi_NotFTst0[] = "stdc_0_in_system_headers"; |
fdb8fb96 | 5828 | |
5f6aa019 | 5829 | #define STRICT_ANSI_NOT_TEST_CT 4 |
3072d11f | 5830 | static tTestDesc aStrict_Ansi_NotTests[] = { |
5831 | { TT_FUNCTION, zStrict_Ansi_NotFTst0, 0 /* unused */ }, | |
68d0517a | 5832 | { TT_NEGREP, zStrict_Ansi_NotBypass0, (regex_t*)NULL }, |
5f6aa019 | 5833 | { TT_NEGREP, zStrict_Ansi_NotBypass1, (regex_t*)NULL }, |
3072d11f | 5834 | { TT_EGREP, zStrict_Ansi_NotSelect0, (regex_t*)NULL }, }; |
fdb8fb96 | 5835 | |
5836 | /* | |
3072d11f | 5837 | * Fix Command Arguments for Strict_Ansi_Not |
fdb8fb96 | 5838 | */ |
3072d11f | 5839 | static const char* apzStrict_Ansi_NotPatch[] = { |
038a3e7a | 5840 | "format", |
3ff85771 | 5841 | "%1 !defined(__STRICT_ANSI__)", |
fdb8fb96 | 5842 | (char*)NULL }; |
5843 | ||
d4c4b01d | 5844 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
5845 | * | |
3072d11f | 5846 | * Description of Strict_Ansi_Not_Ctd fix |
d4c4b01d | 5847 | */ |
3072d11f | 5848 | tSCC zStrict_Ansi_Not_CtdName[] = |
5849 | "strict_ansi_not_ctd"; | |
d4c4b01d | 5850 | |
5851 | /* | |
5852 | * File name selection pattern | |
5853 | */ | |
3072d11f | 5854 | tSCC zStrict_Ansi_Not_CtdList[] = |
3ff85771 | 5855 | "|math.h|limits.h|stdio.h|signal.h|stdlib.h|sys/signal.h|time.h|"; |
d4c4b01d | 5856 | /* |
5857 | * Machine/OS name selection pattern | |
5858 | */ | |
3072d11f | 5859 | #define apzStrict_Ansi_Not_CtdMachs (const char**)NULL |
d4c4b01d | 5860 | |
5861 | /* | |
3072d11f | 5862 | * content selection pattern - do fix if pattern found |
d4c4b01d | 5863 | */ |
3072d11f | 5864 | tSCC zStrict_Ansi_Not_CtdSelect0[] = |
3ff85771 | 5865 | "^([ \t]*(\\(|&&|\\|\\|)([ \t(]*!*[ \t]*defined\\([a-zA-Z_0-9]+\\)[ \t]*[|&][|&])*[ \t(]*)(__STDC__[ \t]*(|-[ \t]*0[ \t]*)==[ \t]*0)"; |
d4c4b01d | 5866 | |
3072d11f | 5867 | /* |
5868 | * perform the C function call test | |
5869 | */ | |
5870 | tSCC zStrict_Ansi_Not_CtdFTst0[] = "stdc_0_in_system_headers"; | |
5871 | ||
5872 | #define STRICT_ANSI_NOT_CTD_TEST_CT 2 | |
5873 | static tTestDesc aStrict_Ansi_Not_CtdTests[] = { | |
5874 | { TT_FUNCTION, zStrict_Ansi_Not_CtdFTst0, 0 /* unused */ }, | |
5875 | { TT_EGREP, zStrict_Ansi_Not_CtdSelect0, (regex_t*)NULL }, }; | |
d4c4b01d | 5876 | |
5877 | /* | |
3072d11f | 5878 | * Fix Command Arguments for Strict_Ansi_Not_Ctd |
d4c4b01d | 5879 | */ |
3072d11f | 5880 | static const char* apzStrict_Ansi_Not_CtdPatch[] = { |
5881 | "format", | |
3ff85771 | 5882 | "%1 !defined(__STRICT_ANSI__)", |
d4c4b01d | 5883 | (char*)NULL }; |
5884 | ||
fdb8fb96 | 5885 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
5886 | * | |
3072d11f | 5887 | * Description of Strict_Ansi_Only fix |
fdb8fb96 | 5888 | */ |
3072d11f | 5889 | tSCC zStrict_Ansi_OnlyName[] = |
5890 | "strict_ansi_only"; | |
d4c4b01d | 5891 | |
fdb8fb96 | 5892 | /* |
5893 | * File name selection pattern | |
5894 | */ | |
3072d11f | 5895 | #define zStrict_Ansi_OnlyList (char*)NULL |
fdb8fb96 | 5896 | /* |
5897 | * Machine/OS name selection pattern | |
5898 | */ | |
3072d11f | 5899 | #define apzStrict_Ansi_OnlyMachs (const char**)NULL |
bb304030 | 5900 | |
5901 | /* | |
3072d11f | 5902 | * content selection pattern - do fix if pattern found |
bb304030 | 5903 | */ |
3072d11f | 5904 | tSCC zStrict_Ansi_OnlySelect0[] = |
3ff85771 | 5905 | "^([ \t]*#[ \t]*if.*)(__STDC__[ \t]*!=[ \t]*0|__STDC__[ \t]*==[ \t]*1|__STDC__[ \t]*-[ \t]*0[ \t]*==[ \t]*1|__STDC__[ \t]*-[ \t]*0[ \t]*!=[ \t]*0)"; |
bb304030 | 5906 | |
3072d11f | 5907 | /* |
5908 | * perform the C function call test | |
5909 | */ | |
5910 | tSCC zStrict_Ansi_OnlyFTst0[] = "stdc_0_in_system_headers"; | |
5911 | ||
5912 | #define STRICT_ANSI_ONLY_TEST_CT 2 | |
5913 | static tTestDesc aStrict_Ansi_OnlyTests[] = { | |
5914 | { TT_FUNCTION, zStrict_Ansi_OnlyFTst0, 0 /* unused */ }, | |
5915 | { TT_EGREP, zStrict_Ansi_OnlySelect0, (regex_t*)NULL }, }; | |
fdb8fb96 | 5916 | |
5917 | /* | |
3072d11f | 5918 | * Fix Command Arguments for Strict_Ansi_Only |
fdb8fb96 | 5919 | */ |
3072d11f | 5920 | static const char* apzStrict_Ansi_OnlyPatch[] = { |
5921 | "format", | |
3ff85771 | 5922 | "%1 defined(__STRICT_ANSI__)", |
fdb8fb96 | 5923 | (char*)NULL }; |
5924 | ||
cfe5be71 | 5925 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
5926 | * | |
5927 | * Description of Struct_File fix | |
5928 | */ | |
cfe5be71 | 5929 | tSCC zStruct_FileName[] = |
5930 | "struct_file"; | |
5931 | ||
5932 | /* | |
5933 | * File name selection pattern | |
5934 | */ | |
5935 | tSCC zStruct_FileList[] = | |
5936 | "|rpc/xdr.h|"; | |
5937 | /* | |
5938 | * Machine/OS name selection pattern | |
5939 | */ | |
5940 | #define apzStruct_FileMachs (const char**)NULL | |
5941 | ||
5942 | /* | |
5943 | * content selection pattern - do fix if pattern found | |
5944 | */ | |
5945 | tSCC zStruct_FileSelect0[] = | |
5946 | "^.*xdrstdio_create.*struct __file_s"; | |
5947 | ||
5948 | #define STRUCT_FILE_TEST_CT 1 | |
2548396b | 5949 | static tTestDesc aStruct_FileTests[] = { |
cfe5be71 | 5950 | { TT_EGREP, zStruct_FileSelect0, (regex_t*)NULL }, }; |
5951 | ||
5952 | /* | |
5953 | * Fix Command Arguments for Struct_File | |
5954 | */ | |
2548396b | 5955 | static const char* apzStruct_FilePatch[] = { |
cfe5be71 | 5956 | "format", |
5957 | "struct __file_s;\n\ | |
5958 | %0", | |
5959 | (char*)NULL }; | |
5960 | ||
5961 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
5962 | * | |
5963 | * Description of Struct_Sockaddr fix | |
5964 | */ | |
cfe5be71 | 5965 | tSCC zStruct_SockaddrName[] = |
5966 | "struct_sockaddr"; | |
5967 | ||
5968 | /* | |
5969 | * File name selection pattern | |
5970 | */ | |
5971 | tSCC zStruct_SockaddrList[] = | |
5972 | "|rpc/auth.h|"; | |
5973 | /* | |
5974 | * Machine/OS name selection pattern | |
5975 | */ | |
5976 | #define apzStruct_SockaddrMachs (const char**)NULL | |
5977 | ||
5978 | /* | |
5979 | * content selection pattern - do fix if pattern found | |
5980 | */ | |
5981 | tSCC zStruct_SockaddrSelect0[] = | |
4176aa8f | 5982 | "^.*authdes_create.*struct sockaddr[^_]"; |
cfe5be71 | 5983 | |
5984 | /* | |
5985 | * content bypass pattern - skip fix if pattern found | |
5986 | */ | |
5987 | tSCC zStruct_SockaddrBypass0[] = | |
5988 | "<sys/socket.h>"; | |
4176aa8f | 5989 | tSCC zStruct_SockaddrBypass1[] = |
5990 | "struct sockaddr;\n"; | |
cfe5be71 | 5991 | |
4176aa8f | 5992 | #define STRUCT_SOCKADDR_TEST_CT 3 |
2548396b | 5993 | static tTestDesc aStruct_SockaddrTests[] = { |
cfe5be71 | 5994 | { TT_NEGREP, zStruct_SockaddrBypass0, (regex_t*)NULL }, |
4176aa8f | 5995 | { TT_NEGREP, zStruct_SockaddrBypass1, (regex_t*)NULL }, |
cfe5be71 | 5996 | { TT_EGREP, zStruct_SockaddrSelect0, (regex_t*)NULL }, }; |
5997 | ||
5998 | /* | |
5999 | * Fix Command Arguments for Struct_Sockaddr | |
6000 | */ | |
2548396b | 6001 | static const char* apzStruct_SockaddrPatch[] = { |
cfe5be71 | 6002 | "format", |
6003 | "struct sockaddr;\n\ | |
6004 | %0", | |
6005 | (char*)NULL }; | |
6006 | ||
a712e12c | 6007 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
6008 | * | |
6009 | * Description of Sun_Auth_Proto fix | |
6010 | */ | |
a712e12c | 6011 | tSCC zSun_Auth_ProtoName[] = |
6012 | "sun_auth_proto"; | |
6013 | ||
6014 | /* | |
6015 | * File name selection pattern | |
6016 | */ | |
6017 | tSCC zSun_Auth_ProtoList[] = | |
6018 | "|rpc/auth.h|rpc/clnt.h|rpc/svc.h|rpc/xdr.h|"; | |
6019 | /* | |
6020 | * Machine/OS name selection pattern | |
6021 | */ | |
6022 | #define apzSun_Auth_ProtoMachs (const char**)NULL | |
6023 | ||
6024 | /* | |
6025 | * content selection pattern - do fix if pattern found | |
6026 | */ | |
6027 | tSCC zSun_Auth_ProtoSelect0[] = | |
6028 | "\\(\\*[a-z][a-z_]*\\)\\(\\)"; | |
6029 | ||
69c13546 | 6030 | /* |
6031 | * content bypass pattern - skip fix if pattern found | |
6032 | */ | |
6033 | tSCC zSun_Auth_ProtoBypass0[] = | |
6034 | "__cplusplus"; | |
6035 | ||
6036 | #define SUN_AUTH_PROTO_TEST_CT 2 | |
2548396b | 6037 | static tTestDesc aSun_Auth_ProtoTests[] = { |
69c13546 | 6038 | { TT_NEGREP, zSun_Auth_ProtoBypass0, (regex_t*)NULL }, |
a712e12c | 6039 | { TT_EGREP, zSun_Auth_ProtoSelect0, (regex_t*)NULL }, }; |
6040 | ||
6041 | /* | |
6042 | * Fix Command Arguments for Sun_Auth_Proto | |
6043 | */ | |
2548396b | 6044 | static const char* apzSun_Auth_ProtoPatch[] = { |
038a3e7a | 6045 | "format", |
6046 | "#ifdef __cplusplus\n\ | |
6047 | %1(...);%2\n\ | |
6048 | #else\n\ | |
6049 | %1();%2\n\ | |
6050 | #endif", | |
6051 | "(.*\\(\\*[a-z][a-z_]*\\))\\(\\);(.*)", | |
a712e12c | 6052 | (char*)NULL }; |
6053 | ||
fdb8fb96 | 6054 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
6055 | * | |
5daf7ede | 6056 | * Description of Sun_Bogus_Ifdef fix |
fdb8fb96 | 6057 | */ |
6058 | tSCC zSun_Bogus_IfdefName[] = | |
d4c4b01d | 6059 | "sun_bogus_ifdef"; |
6060 | ||
fdb8fb96 | 6061 | /* |
6062 | * File name selection pattern | |
6063 | */ | |
6064 | tSCC zSun_Bogus_IfdefList[] = | |
efb1b79b | 6065 | "|hsfs/hsfs_spec.h|hsfs/iso_spec.h|"; |
fdb8fb96 | 6066 | /* |
6067 | * Machine/OS name selection pattern | |
6068 | */ | |
6069 | #define apzSun_Bogus_IfdefMachs (const char**)NULL | |
6070 | ||
6071 | /* | |
c1b28c63 | 6072 | * content selection pattern - do fix if pattern found |
fdb8fb96 | 6073 | */ |
6074 | tSCC zSun_Bogus_IfdefSelect0[] = | |
038a3e7a | 6075 | "#ifdef(.*\\|\\|.*)"; |
fdb8fb96 | 6076 | |
6077 | #define SUN_BOGUS_IFDEF_TEST_CT 1 | |
2548396b | 6078 | static tTestDesc aSun_Bogus_IfdefTests[] = { |
5daf7ede | 6079 | { TT_EGREP, zSun_Bogus_IfdefSelect0, (regex_t*)NULL }, }; |
fdb8fb96 | 6080 | |
6081 | /* | |
6082 | * Fix Command Arguments for Sun_Bogus_Ifdef | |
6083 | */ | |
2548396b | 6084 | static const char* apzSun_Bogus_IfdefPatch[] = { |
038a3e7a | 6085 | "format", |
6086 | "#if%1", | |
fdb8fb96 | 6087 | (char*)NULL }; |
6088 | ||
6089 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
6090 | * | |
5daf7ede | 6091 | * Description of Sun_Catmacro fix |
fdb8fb96 | 6092 | */ |
6093 | tSCC zSun_CatmacroName[] = | |
d4c4b01d | 6094 | "sun_catmacro"; |
6095 | ||
fdb8fb96 | 6096 | /* |
6097 | * File name selection pattern | |
6098 | */ | |
6099 | tSCC zSun_CatmacroList[] = | |
efb1b79b | 6100 | "|pixrect/memvar.h|"; |
fdb8fb96 | 6101 | /* |
6102 | * Machine/OS name selection pattern | |
6103 | */ | |
6104 | #define apzSun_CatmacroMachs (const char**)NULL | |
6105 | ||
6106 | /* | |
c1b28c63 | 6107 | * content selection pattern - do fix if pattern found |
fdb8fb96 | 6108 | */ |
6109 | tSCC zSun_CatmacroSelect0[] = | |
038a3e7a | 6110 | "^#define[ \t]+CAT\\(a,b\\).*"; |
fdb8fb96 | 6111 | |
6112 | #define SUN_CATMACRO_TEST_CT 1 | |
2548396b | 6113 | static tTestDesc aSun_CatmacroTests[] = { |
5daf7ede | 6114 | { TT_EGREP, zSun_CatmacroSelect0, (regex_t*)NULL }, }; |
fdb8fb96 | 6115 | |
6116 | /* | |
6117 | * Fix Command Arguments for Sun_Catmacro | |
6118 | */ | |
2548396b | 6119 | static const char* apzSun_CatmacroPatch[] = { |
038a3e7a | 6120 | "format", |
6121 | "#ifdef __STDC__\n\ | |
6122 | # define CAT(a,b) a##b\n\ | |
6123 | #else\n\ | |
6124 | %0\n\ | |
6125 | #endif", | |
fdb8fb96 | 6126 | (char*)NULL }; |
6127 | ||
6128 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
6129 | * | |
5daf7ede | 6130 | * Description of Sun_Malloc fix |
fdb8fb96 | 6131 | */ |
6132 | tSCC zSun_MallocName[] = | |
d4c4b01d | 6133 | "sun_malloc"; |
6134 | ||
fdb8fb96 | 6135 | /* |
6136 | * File name selection pattern | |
6137 | */ | |
6138 | tSCC zSun_MallocList[] = | |
efb1b79b | 6139 | "|malloc.h|"; |
fdb8fb96 | 6140 | /* |
6141 | * Machine/OS name selection pattern | |
6142 | */ | |
6143 | #define apzSun_MallocMachs (const char**)NULL | |
69c13546 | 6144 | |
6145 | /* | |
6146 | * content bypass pattern - skip fix if pattern found | |
6147 | */ | |
6148 | tSCC zSun_MallocBypass0[] = | |
6149 | "_CLASSIC_ANSI_TYPES"; | |
6150 | ||
6151 | #define SUN_MALLOC_TEST_CT 1 | |
6152 | static tTestDesc aSun_MallocTests[] = { | |
6153 | { TT_NEGREP, zSun_MallocBypass0, (regex_t*)NULL }, }; | |
fdb8fb96 | 6154 | |
6155 | /* | |
6156 | * Fix Command Arguments for Sun_Malloc | |
6157 | */ | |
2548396b | 6158 | static const char* apzSun_MallocPatch[] = { "sed", |
c1b28c63 | 6159 | "-e", "s/typedef[ \t]char \\*\tmalloc_t/typedef void \\*\tmalloc_t/g", |
6160 | "-e", "s/int[ \t][ \t]*free/void\tfree/g", | |
6161 | "-e", "s/char\\([ \t]*\\*[ \t]*malloc\\)/void\\1/g", | |
6162 | "-e", "s/char\\([ \t]*\\*[ \t]*realloc\\)/void\\1/g", | |
6e58c05f | 6163 | "-e", "s/char\\([ \t]*\\*[ \t]*calloc\\)/void\\1/g", |
fdb8fb96 | 6164 | (char*)NULL }; |
6165 | ||
fdb8fb96 | 6166 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
6167 | * | |
5daf7ede | 6168 | * Description of Sun_Rusers_Semi fix |
fdb8fb96 | 6169 | */ |
6170 | tSCC zSun_Rusers_SemiName[] = | |
d4c4b01d | 6171 | "sun_rusers_semi"; |
6172 | ||
fdb8fb96 | 6173 | /* |
6174 | * File name selection pattern | |
6175 | */ | |
6176 | tSCC zSun_Rusers_SemiList[] = | |
efb1b79b | 6177 | "|rpcsvc/rusers.h|"; |
fdb8fb96 | 6178 | /* |
6179 | * Machine/OS name selection pattern | |
6180 | */ | |
6181 | #define apzSun_Rusers_SemiMachs (const char**)NULL | |
6182 | ||
6183 | /* | |
c1b28c63 | 6184 | * content selection pattern - do fix if pattern found |
fdb8fb96 | 6185 | */ |
6186 | tSCC zSun_Rusers_SemiSelect0[] = | |
6187 | "_cnt$"; | |
6188 | ||
6189 | #define SUN_RUSERS_SEMI_TEST_CT 1 | |
2548396b | 6190 | static tTestDesc aSun_Rusers_SemiTests[] = { |
5daf7ede | 6191 | { TT_EGREP, zSun_Rusers_SemiSelect0, (regex_t*)NULL }, }; |
fdb8fb96 | 6192 | |
6193 | /* | |
6194 | * Fix Command Arguments for Sun_Rusers_Semi | |
6195 | */ | |
2548396b | 6196 | static const char* apzSun_Rusers_SemiPatch[] = { "sed", |
c1b28c63 | 6197 | "-e", "/^struct/,/^};/s/_cnt$/_cnt;/", |
fdb8fb96 | 6198 | (char*)NULL }; |
6199 | ||
6200 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
6201 | * | |
5daf7ede | 6202 | * Description of Sun_Signal fix |
fdb8fb96 | 6203 | */ |
6204 | tSCC zSun_SignalName[] = | |
d4c4b01d | 6205 | "sun_signal"; |
6206 | ||
fdb8fb96 | 6207 | /* |
6208 | * File name selection pattern | |
6209 | */ | |
6210 | tSCC zSun_SignalList[] = | |
efb1b79b | 6211 | "|sys/signal.h|signal.h|"; |
fdb8fb96 | 6212 | /* |
6213 | * Machine/OS name selection pattern | |
6214 | */ | |
6215 | #define apzSun_SignalMachs (const char**)NULL | |
6216 | ||
6217 | /* | |
c1b28c63 | 6218 | * content selection pattern - do fix if pattern found |
fdb8fb96 | 6219 | */ |
6220 | tSCC zSun_SignalSelect0[] = | |
038a3e7a | 6221 | "^void\t\\(\\*signal\\(\\)\\)\\(\\);.*"; |
fdb8fb96 | 6222 | |
6223 | #define SUN_SIGNAL_TEST_CT 1 | |
2548396b | 6224 | static tTestDesc aSun_SignalTests[] = { |
5daf7ede | 6225 | { TT_EGREP, zSun_SignalSelect0, (regex_t*)NULL }, }; |
fdb8fb96 | 6226 | |
6227 | /* | |
6228 | * Fix Command Arguments for Sun_Signal | |
6229 | */ | |
2548396b | 6230 | static const char* apzSun_SignalPatch[] = { |
038a3e7a | 6231 | "format", |
6232 | "#ifdef __cplusplus\n\ | |
6233 | void\t(*signal(...))(...);\n\ | |
6234 | #else\n\ | |
6235 | %0\n\ | |
6236 | #endif", | |
fdb8fb96 | 6237 | (char*)NULL }; |
6238 | ||
fdb8fb96 | 6239 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
6240 | * | |
5daf7ede | 6241 | * Description of Sunos_Strlen fix |
fdb8fb96 | 6242 | */ |
6243 | tSCC zSunos_StrlenName[] = | |
d4c4b01d | 6244 | "sunos_strlen"; |
6245 | ||
fdb8fb96 | 6246 | /* |
6247 | * File name selection pattern | |
6248 | */ | |
6249 | tSCC zSunos_StrlenList[] = | |
efb1b79b | 6250 | "|strings.h|"; |
fdb8fb96 | 6251 | /* |
6252 | * Machine/OS name selection pattern | |
6253 | */ | |
6254 | #define apzSunos_StrlenMachs (const char**)NULL | |
bb304030 | 6255 | |
6256 | /* | |
6257 | * content selection pattern - do fix if pattern found | |
6258 | */ | |
6259 | tSCC zSunos_StrlenSelect0[] = | |
038a3e7a | 6260 | "int[ \t]*strlen\\(\\);(.*)"; |
bb304030 | 6261 | |
6262 | #define SUNOS_STRLEN_TEST_CT 1 | |
2548396b | 6263 | static tTestDesc aSunos_StrlenTests[] = { |
bb304030 | 6264 | { TT_EGREP, zSunos_StrlenSelect0, (regex_t*)NULL }, }; |
fdb8fb96 | 6265 | |
6266 | /* | |
6267 | * Fix Command Arguments for Sunos_Strlen | |
6268 | */ | |
2548396b | 6269 | static const char* apzSunos_StrlenPatch[] = { |
038a3e7a | 6270 | "format", |
6271 | "__SIZE_TYPE__ strlen();%1", | |
6272 | (char*)NULL }; | |
6273 | ||
3c04ceca | 6274 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
6275 | * | |
6276 | * Description of Svr4_Disable_Opt fix | |
6277 | */ | |
6278 | tSCC zSvr4_Disable_OptName[] = | |
6279 | "svr4_disable_opt"; | |
6280 | ||
6281 | /* | |
6282 | * File name selection pattern | |
6283 | */ | |
6284 | tSCC zSvr4_Disable_OptList[] = | |
6285 | "|string.h|"; | |
6286 | /* | |
6287 | * Machine/OS name selection pattern | |
6288 | */ | |
6289 | #define apzSvr4_Disable_OptMachs (const char**)NULL | |
6290 | ||
6291 | /* | |
6292 | * content selection pattern - do fix if pattern found | |
6293 | */ | |
6294 | tSCC zSvr4_Disable_OptSelect0[] = | |
6295 | "#define.*__std_hdr_"; | |
6296 | ||
6297 | #define SVR4_DISABLE_OPT_TEST_CT 1 | |
6298 | static tTestDesc aSvr4_Disable_OptTests[] = { | |
6299 | { TT_EGREP, zSvr4_Disable_OptSelect0, (regex_t*)NULL }, }; | |
6300 | ||
6301 | /* | |
6302 | * Fix Command Arguments for Svr4_Disable_Opt | |
6303 | */ | |
6304 | static const char* apzSvr4_Disable_OptPatch[] = { "sed", | |
6305 | "-e", "/#define.*__std_hdr_/d", | |
6306 | (char*)NULL }; | |
6307 | ||
a712e12c | 6308 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
6309 | * | |
6310 | * Description of Svr4_Getcwd fix | |
6311 | */ | |
a712e12c | 6312 | tSCC zSvr4_GetcwdName[] = |
6313 | "svr4_getcwd"; | |
6314 | ||
6315 | /* | |
6316 | * File name selection pattern | |
6317 | */ | |
6318 | tSCC zSvr4_GetcwdList[] = | |
6319 | "|stdlib.h|unistd.h|prototypes.h|"; | |
6320 | /* | |
6321 | * Machine/OS name selection pattern | |
6322 | */ | |
6323 | #define apzSvr4_GetcwdMachs (const char**)NULL | |
6324 | ||
6325 | /* | |
6326 | * content selection pattern - do fix if pattern found | |
6327 | */ | |
6328 | tSCC zSvr4_GetcwdSelect0[] = | |
6329 | "getcwd\\(char \\*, int\\)"; | |
6330 | ||
6331 | #define SVR4_GETCWD_TEST_CT 1 | |
2548396b | 6332 | static tTestDesc aSvr4_GetcwdTests[] = { |
a712e12c | 6333 | { TT_EGREP, zSvr4_GetcwdSelect0, (regex_t*)NULL }, }; |
6334 | ||
6335 | /* | |
6336 | * Fix Command Arguments for Svr4_Getcwd | |
6337 | */ | |
2548396b | 6338 | static const char* apzSvr4_GetcwdPatch[] = { |
038a3e7a | 6339 | "format", |
6340 | "getcwd(char *, size_t)", | |
a712e12c | 6341 | (char*)NULL }; |
6342 | ||
4037751e | 6343 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
6344 | * | |
6345 | * Description of Svr4_Krnl fix | |
6346 | */ | |
6347 | tSCC zSvr4_KrnlName[] = | |
6348 | "svr4_krnl"; | |
6349 | ||
6350 | /* | |
6351 | * File name selection pattern | |
6352 | */ | |
6353 | tSCC zSvr4_KrnlList[] = | |
6354 | "|fs/rfs/rf_cache.h|sys/erec.h|sys/err.h|sys/char.h|sys/getpages.h|sys/map.h|sys/cmn_err.h|sys/kdebugger.h|"; | |
6355 | /* | |
6356 | * Machine/OS name selection pattern | |
6357 | */ | |
6358 | tSCC* apzSvr4_KrnlMachs[] = { | |
6359 | "*-*-sysv4*", | |
6360 | "i?86-sequent-ptx*", | |
4037751e | 6361 | (const char*)NULL }; |
6362 | ||
6363 | /* | |
6364 | * content bypass pattern - skip fix if pattern found | |
6365 | */ | |
6366 | tSCC zSvr4_KrnlBypass0[] = | |
6367 | "_KERNEL"; | |
6368 | ||
6369 | #define SVR4_KRNL_TEST_CT 1 | |
6370 | static tTestDesc aSvr4_KrnlTests[] = { | |
6371 | { TT_NEGREP, zSvr4_KrnlBypass0, (regex_t*)NULL }, }; | |
6372 | ||
6373 | /* | |
6374 | * Fix Command Arguments for Svr4_Krnl | |
6375 | */ | |
6376 | static const char* apzSvr4_KrnlPatch[] = { | |
6377 | "wrap", | |
6378 | "#ifdef _KERNEL\n", | |
6379 | "#endif /* _KERNEL */\n", | |
6380 | (char*)NULL }; | |
6381 | ||
a712e12c | 6382 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
6383 | * | |
6384 | * Description of Svr4_Profil fix | |
6385 | */ | |
a712e12c | 6386 | tSCC zSvr4_ProfilName[] = |
6387 | "svr4_profil"; | |
6388 | ||
6389 | /* | |
6390 | * File name selection pattern | |
6391 | */ | |
6392 | tSCC zSvr4_ProfilList[] = | |
6393 | "|stdlib.h|unistd.h|"; | |
6394 | /* | |
6395 | * Machine/OS name selection pattern | |
6396 | */ | |
6397 | #define apzSvr4_ProfilMachs (const char**)NULL | |
038a3e7a | 6398 | |
6399 | /* | |
6400 | * content selection pattern - do fix if pattern found | |
6401 | */ | |
6402 | tSCC zSvr4_ProfilSelect0[] = | |
6403 | "profil\\(unsigned short \\*, unsigned int, unsigned int, unsigned int\\)"; | |
6404 | ||
7a9fa137 | 6405 | /* |
6406 | * content bypass pattern - skip fix if pattern found | |
6407 | */ | |
6408 | tSCC zSvr4_ProfilBypass0[] = | |
6409 | "Silicon Graphics"; | |
6410 | ||
6411 | #define SVR4_PROFIL_TEST_CT 2 | |
2548396b | 6412 | static tTestDesc aSvr4_ProfilTests[] = { |
7a9fa137 | 6413 | { TT_NEGREP, zSvr4_ProfilBypass0, (regex_t*)NULL }, |
038a3e7a | 6414 | { TT_EGREP, zSvr4_ProfilSelect0, (regex_t*)NULL }, }; |
a712e12c | 6415 | |
6416 | /* | |
6417 | * Fix Command Arguments for Svr4_Profil | |
6418 | */ | |
2548396b | 6419 | static const char* apzSvr4_ProfilPatch[] = { |
038a3e7a | 6420 | "format", |
6421 | "profil(unsigned short *, size_t, int, unsigned int)", | |
a712e12c | 6422 | (char*)NULL }; |
6423 | ||
d23689b2 | 6424 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
6425 | * | |
6426 | * Description of Svr4_Sighandler_Type fix | |
6427 | */ | |
6428 | tSCC zSvr4_Sighandler_TypeName[] = | |
6429 | "svr4_sighandler_type"; | |
6430 | ||
6431 | /* | |
6432 | * File name selection pattern | |
6433 | */ | |
6434 | tSCC zSvr4_Sighandler_TypeList[] = | |
6435 | "|sys/signal.h|"; | |
6436 | /* | |
6437 | * Machine/OS name selection pattern | |
6438 | */ | |
6439 | #define apzSvr4_Sighandler_TypeMachs (const char**)NULL | |
6440 | ||
6441 | /* | |
6442 | * content selection pattern - do fix if pattern found | |
6443 | */ | |
6444 | tSCC zSvr4_Sighandler_TypeSelect0[] = | |
6445 | "void *\\(\\*\\)\\(\\)"; | |
6446 | ||
6447 | #define SVR4_SIGHANDLER_TYPE_TEST_CT 1 | |
6448 | static tTestDesc aSvr4_Sighandler_TypeTests[] = { | |
6449 | { TT_EGREP, zSvr4_Sighandler_TypeSelect0, (regex_t*)NULL }, }; | |
6450 | ||
6451 | /* | |
6452 | * Fix Command Arguments for Svr4_Sighandler_Type | |
6453 | */ | |
6454 | static const char* apzSvr4_Sighandler_TypePatch[] = { | |
6455 | "format", | |
6456 | "void (*)(int)", | |
6457 | (char*)NULL }; | |
6458 | ||
630af039 | 6459 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
6460 | * | |
6461 | * Description of Svr4_Undeclared_Getrnge fix | |
6462 | */ | |
6463 | tSCC zSvr4_Undeclared_GetrngeName[] = | |
6464 | "svr4_undeclared_getrnge"; | |
6465 | ||
6466 | /* | |
6467 | * File name selection pattern | |
6468 | */ | |
6469 | tSCC zSvr4_Undeclared_GetrngeList[] = | |
6470 | "|regexp.h|"; | |
6471 | /* | |
6472 | * Machine/OS name selection pattern | |
6473 | */ | |
6474 | #define apzSvr4_Undeclared_GetrngeMachs (const char**)NULL | |
6475 | ||
6476 | /* | |
6477 | * content selection pattern - do fix if pattern found | |
6478 | */ | |
6479 | tSCC zSvr4_Undeclared_GetrngeSelect0[] = | |
6480 | "getrnge"; | |
6481 | ||
6482 | /* | |
6483 | * content bypass pattern - skip fix if pattern found | |
6484 | */ | |
6485 | tSCC zSvr4_Undeclared_GetrngeBypass0[] = | |
6486 | "static void getrnge"; | |
6487 | ||
6488 | #define SVR4_UNDECLARED_GETRNGE_TEST_CT 2 | |
6489 | static tTestDesc aSvr4_Undeclared_GetrngeTests[] = { | |
6490 | { TT_NEGREP, zSvr4_Undeclared_GetrngeBypass0, (regex_t*)NULL }, | |
6491 | { TT_EGREP, zSvr4_Undeclared_GetrngeSelect0, (regex_t*)NULL }, }; | |
6492 | ||
6493 | /* | |
6494 | * Fix Command Arguments for Svr4_Undeclared_Getrnge | |
6495 | */ | |
6496 | static const char* apzSvr4_Undeclared_GetrngePatch[] = { | |
6497 | "format", | |
6498 | "%0\n\ | |
6499 | static int getrnge ();", | |
6500 | "^static int[ \t]+size;", | |
6501 | (char*)NULL }; | |
6502 | ||
fdb8fb96 | 6503 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
6504 | * | |
5daf7ede | 6505 | * Description of Sysv68_String fix |
fdb8fb96 | 6506 | */ |
6507 | tSCC zSysv68_StringName[] = | |
d4c4b01d | 6508 | "sysv68_string"; |
6509 | ||
fdb8fb96 | 6510 | /* |
6511 | * File name selection pattern | |
6512 | */ | |
6513 | tSCC zSysv68_StringList[] = | |
b07d36b9 | 6514 | "|testing.h|string.h|"; |
fdb8fb96 | 6515 | /* |
6516 | * Machine/OS name selection pattern | |
6517 | */ | |
6518 | #define apzSysv68_StringMachs (const char**)NULL | |
69c13546 | 6519 | |
6520 | /* | |
6521 | * content bypass pattern - skip fix if pattern found | |
6522 | */ | |
6523 | tSCC zSysv68_StringBypass0[] = | |
6524 | "_CLASSIC_ANSI_TYPES"; | |
6525 | ||
6526 | #define SYSV68_STRING_TEST_CT 1 | |
6527 | static tTestDesc aSysv68_StringTests[] = { | |
6528 | { TT_NEGREP, zSysv68_StringBypass0, (regex_t*)NULL }, }; | |
fdb8fb96 | 6529 | |
6530 | /* | |
6531 | * Fix Command Arguments for Sysv68_String | |
6532 | */ | |
2548396b | 6533 | static const char* apzSysv68_StringPatch[] = { "sed", |
c1b28c63 | 6534 | "-e", "s/extern[ \t]*int[ \t]*strlen();/extern unsigned int strlen();/", |
6535 | "-e", "s/extern[ \t]*int[ \t]*ffs[ \t]*(long);/extern int ffs(int);/", | |
6536 | "-e", "s/strdup(char \\*s1);/strdup(const char *s1);/", | |
6537 | "-e", "/^extern char$/N", | |
6538 | "-e", "s/^extern char\\(\\n\t\\*memccpy(),\\)$/extern void\\1/", | |
76485733 | 6539 | "-e", "/^extern int$/N", |
6540 | "-e", "s/^extern int\\(\\n\tstrlen(),\\)/extern size_t\\1/", | |
c1b28c63 | 6541 | "-e", "/^\tstrncmp(),$/N", |
efb1b79b | 6542 | "-e", "s/^\\(\tstrncmp()\\),\\n\\(\tstrlen(),\\)$/\\1;\\\n\ |
6543 | extern unsigned int\\\n\ | |
6544 | \\2/", | |
fdb8fb96 | 6545 | (char*)NULL }; |
6546 | ||
6547 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
6548 | * | |
5daf7ede | 6549 | * Description of Sysz_Stdlib_For_Sun fix |
fdb8fb96 | 6550 | */ |
6551 | tSCC zSysz_Stdlib_For_SunName[] = | |
d4c4b01d | 6552 | "sysz_stdlib_for_sun"; |
6553 | ||
fdb8fb96 | 6554 | /* |
6555 | * File name selection pattern | |
6556 | */ | |
6557 | tSCC zSysz_Stdlib_For_SunList[] = | |
efb1b79b | 6558 | "|stdlib.h|"; |
fdb8fb96 | 6559 | /* |
6560 | * Machine/OS name selection pattern | |
6561 | */ | |
2f0f06da | 6562 | #define apzSysz_Stdlib_For_SunMachs (const char**)NULL |
038a3e7a | 6563 | |
6564 | /* | |
6565 | * content selection pattern - do fix if pattern found | |
6566 | */ | |
6567 | tSCC zSysz_Stdlib_For_SunSelect0[] = | |
6568 | "char[ \t]*\\*[ \t]*(calloc|malloc|realloc|bsearch)[ \t]*\\("; | |
6569 | ||
9119bca7 | 6570 | /* |
6571 | * content bypass pattern - skip fix if pattern found | |
6572 | */ | |
6573 | tSCC zSysz_Stdlib_For_SunBypass0[] = | |
6574 | "_CLASSIC_ANSI_TYPES"; | |
6575 | ||
6576 | #define SYSZ_STDLIB_FOR_SUN_TEST_CT 2 | |
2548396b | 6577 | static tTestDesc aSysz_Stdlib_For_SunTests[] = { |
9119bca7 | 6578 | { TT_NEGREP, zSysz_Stdlib_For_SunBypass0, (regex_t*)NULL }, |
038a3e7a | 6579 | { TT_EGREP, zSysz_Stdlib_For_SunSelect0, (regex_t*)NULL }, }; |
fdb8fb96 | 6580 | |
6581 | /* | |
6582 | * Fix Command Arguments for Sysz_Stdlib_For_Sun | |
6583 | */ | |
2548396b | 6584 | static const char* apzSysz_Stdlib_For_SunPatch[] = { |
038a3e7a | 6585 | "format", |
6586 | "void *\t%1(", | |
fdb8fb96 | 6587 | (char*)NULL }; |
6588 | ||
2a6f0f81 | 6589 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
6590 | * | |
6591 | * Description of Thread_Keyword fix | |
6592 | */ | |
6593 | tSCC zThread_KeywordName[] = | |
6594 | "thread_keyword"; | |
6595 | ||
6596 | /* | |
6597 | * File name selection pattern | |
6598 | */ | |
6599 | tSCC zThread_KeywordList[] = | |
77f26774 | 6600 | "|pthread.h|bits/sigthread.h|"; |
2a6f0f81 | 6601 | /* |
6602 | * Machine/OS name selection pattern | |
6603 | */ | |
6604 | #define apzThread_KeywordMachs (const char**)NULL | |
6605 | ||
6606 | /* | |
6607 | * content selection pattern - do fix if pattern found | |
6608 | */ | |
6609 | tSCC zThread_KeywordSelect0[] = | |
451d3894 | 6610 | "([* ])__thread([,)])"; |
2a6f0f81 | 6611 | |
6612 | #define THREAD_KEYWORD_TEST_CT 1 | |
6613 | static tTestDesc aThread_KeywordTests[] = { | |
6614 | { TT_EGREP, zThread_KeywordSelect0, (regex_t*)NULL }, }; | |
6615 | ||
6616 | /* | |
6617 | * Fix Command Arguments for Thread_Keyword | |
6618 | */ | |
77f26774 | 6619 | static const char* apzThread_KeywordPatch[] = { |
6620 | "format", | |
451d3894 | 6621 | "%1__thr%2", |
2a6f0f81 | 6622 | (char*)NULL }; |
6623 | ||
fdb8fb96 | 6624 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
6625 | * | |
5daf7ede | 6626 | * Description of Tinfo_Cplusplus fix |
fdb8fb96 | 6627 | */ |
6628 | tSCC zTinfo_CplusplusName[] = | |
d4c4b01d | 6629 | "tinfo_cplusplus"; |
6630 | ||
fdb8fb96 | 6631 | /* |
6632 | * File name selection pattern | |
6633 | */ | |
6634 | tSCC zTinfo_CplusplusList[] = | |
efb1b79b | 6635 | "|tinfo.h|"; |
fdb8fb96 | 6636 | /* |
6637 | * Machine/OS name selection pattern | |
6638 | */ | |
6639 | #define apzTinfo_CplusplusMachs (const char**)NULL | |
bb304030 | 6640 | |
6641 | /* | |
6642 | * content selection pattern - do fix if pattern found | |
6643 | */ | |
6644 | tSCC zTinfo_CplusplusSelect0[] = | |
6645 | "[ \t]_cplusplus"; | |
6646 | ||
6647 | #define TINFO_CPLUSPLUS_TEST_CT 1 | |
2548396b | 6648 | static tTestDesc aTinfo_CplusplusTests[] = { |
bb304030 | 6649 | { TT_EGREP, zTinfo_CplusplusSelect0, (regex_t*)NULL }, }; |
fdb8fb96 | 6650 | |
6651 | /* | |
6652 | * Fix Command Arguments for Tinfo_Cplusplus | |
6653 | */ | |
2548396b | 6654 | static const char* apzTinfo_CplusplusPatch[] = { |
f74d6549 | 6655 | "format", |
6656 | " __cplusplus", | |
fdb8fb96 | 6657 | (char*)NULL }; |
6658 | ||
7ab961ad | 6659 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
6660 | * | |
6661 | * Description of Ultrix_Atexit_Param fix | |
6662 | */ | |
6663 | tSCC zUltrix_Atexit_ParamName[] = | |
6664 | "ultrix_atexit_param"; | |
6665 | ||
6666 | /* | |
6667 | * File name selection pattern | |
6668 | */ | |
6669 | tSCC zUltrix_Atexit_ParamList[] = | |
6670 | "|stdlib.h|"; | |
6671 | /* | |
6672 | * Machine/OS name selection pattern | |
6673 | */ | |
6674 | #define apzUltrix_Atexit_ParamMachs (const char**)NULL | |
6675 | ||
6676 | /* | |
6677 | * content selection pattern - do fix if pattern found | |
6678 | */ | |
6679 | tSCC zUltrix_Atexit_ParamSelect0[] = | |
6680 | "atexit\\(.*\\(\\)"; | |
6681 | ||
6682 | #define ULTRIX_ATEXIT_PARAM_TEST_CT 1 | |
6683 | static tTestDesc aUltrix_Atexit_ParamTests[] = { | |
6684 | { TT_EGREP, zUltrix_Atexit_ParamSelect0, (regex_t*)NULL }, }; | |
6685 | ||
6686 | /* | |
6687 | * Fix Command Arguments for Ultrix_Atexit_Param | |
6688 | */ | |
6689 | static const char* apzUltrix_Atexit_ParamPatch[] = { | |
6690 | "format", | |
6691 | "atexit( void (*__func)( void )", | |
6692 | (char*)NULL }; | |
6693 | ||
6694 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
6695 | * | |
6696 | * Description of Ultrix_Atof_Param fix | |
6697 | */ | |
6698 | tSCC zUltrix_Atof_ParamName[] = | |
6699 | "ultrix_atof_param"; | |
6700 | ||
6701 | /* | |
6702 | * File name selection pattern | |
6703 | */ | |
6704 | tSCC zUltrix_Atof_ParamList[] = | |
6705 | "|math.h|"; | |
6706 | /* | |
6707 | * Machine/OS name selection pattern | |
6708 | */ | |
6709 | #define apzUltrix_Atof_ParamMachs (const char**)NULL | |
6710 | ||
6711 | /* | |
6712 | * content selection pattern - do fix if pattern found | |
6713 | */ | |
6714 | tSCC zUltrix_Atof_ParamSelect0[] = | |
6715 | "atof\\([ \t]*char"; | |
6716 | ||
6717 | #define ULTRIX_ATOF_PARAM_TEST_CT 1 | |
6718 | static tTestDesc aUltrix_Atof_ParamTests[] = { | |
6719 | { TT_EGREP, zUltrix_Atof_ParamSelect0, (regex_t*)NULL }, }; | |
6720 | ||
6721 | /* | |
6722 | * Fix Command Arguments for Ultrix_Atof_Param | |
6723 | */ | |
6724 | static const char* apzUltrix_Atof_ParamPatch[] = { | |
6725 | "format", | |
6726 | "atof(const char", | |
6727 | (char*)NULL }; | |
6728 | ||
fdb8fb96 | 6729 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
6730 | * | |
5daf7ede | 6731 | * Description of Ultrix_Const fix |
fdb8fb96 | 6732 | */ |
6733 | tSCC zUltrix_ConstName[] = | |
d4c4b01d | 6734 | "ultrix_const"; |
6735 | ||
fdb8fb96 | 6736 | /* |
6737 | * File name selection pattern | |
6738 | */ | |
6739 | tSCC zUltrix_ConstList[] = | |
efb1b79b | 6740 | "|stdio.h|"; |
fdb8fb96 | 6741 | /* |
6742 | * Machine/OS name selection pattern | |
6743 | */ | |
6744 | #define apzUltrix_ConstMachs (const char**)NULL | |
f74d6549 | 6745 | |
6746 | /* | |
6747 | * content selection pattern - do fix if pattern found | |
6748 | */ | |
6749 | tSCC zUltrix_ConstSelect0[] = | |
6750 | "perror\\( char \\*"; | |
6751 | ||
6752 | #define ULTRIX_CONST_TEST_CT 1 | |
2548396b | 6753 | static tTestDesc aUltrix_ConstTests[] = { |
f74d6549 | 6754 | { TT_EGREP, zUltrix_ConstSelect0, (regex_t*)NULL }, }; |
fdb8fb96 | 6755 | |
6756 | /* | |
6757 | * Fix Command Arguments for Ultrix_Const | |
6758 | */ | |
2548396b | 6759 | static const char* apzUltrix_ConstPatch[] = { |
f74d6549 | 6760 | "format", |
6761 | "%1 const %3 *__", | |
6762 | "([ \t*](perror|fputs|fwrite|scanf|fscanf)\\(.*)[ \t]+(char|void) \\*__", | |
6763 | (char*)NULL }; | |
6764 | ||
6765 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
6766 | * | |
6767 | * Description of Ultrix_Const2 fix | |
6768 | */ | |
f74d6549 | 6769 | tSCC zUltrix_Const2Name[] = |
6770 | "ultrix_const2"; | |
6771 | ||
6772 | /* | |
6773 | * File name selection pattern | |
6774 | */ | |
6775 | tSCC zUltrix_Const2List[] = | |
6776 | "|stdio.h|"; | |
6777 | /* | |
6778 | * Machine/OS name selection pattern | |
6779 | */ | |
6780 | #define apzUltrix_Const2Machs (const char**)NULL | |
6781 | ||
6782 | /* | |
6783 | * content selection pattern - do fix if pattern found | |
6784 | */ | |
6785 | tSCC zUltrix_Const2Select0[] = | |
6786 | "\\*fopen\\( char \\*"; | |
6787 | ||
6788 | #define ULTRIX_CONST2_TEST_CT 1 | |
2548396b | 6789 | static tTestDesc aUltrix_Const2Tests[] = { |
f74d6549 | 6790 | { TT_EGREP, zUltrix_Const2Select0, (regex_t*)NULL }, }; |
6791 | ||
6792 | /* | |
6793 | * Fix Command Arguments for Ultrix_Const2 | |
6794 | */ | |
2548396b | 6795 | static const char* apzUltrix_Const2Patch[] = { |
f74d6549 | 6796 | "format", |
6797 | "%1( const char *%3, const char *", | |
6798 | "([ \t*](fopen|sscanf|popen|tempnam))\\([ \t]*char[ \t]*\\*([^,]*),[ \t]*char[ \t]*\\*[ \t]*", | |
fdb8fb96 | 6799 | (char*)NULL }; |
6800 | ||
37935110 | 6801 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
6802 | * | |
6803 | * Description of Ultrix_Const3 fix | |
6804 | */ | |
6805 | tSCC zUltrix_Const3Name[] = | |
6806 | "ultrix_const3"; | |
6807 | ||
6808 | /* | |
6809 | * File name selection pattern | |
6810 | */ | |
6811 | tSCC zUltrix_Const3List[] = | |
6812 | "|stdio.h|"; | |
6813 | /* | |
6814 | * Machine/OS name selection pattern | |
6815 | */ | |
6816 | #define apzUltrix_Const3Machs (const char**)NULL | |
6817 | ||
6818 | /* | |
6819 | * content selection pattern - do fix if pattern found | |
6820 | */ | |
6821 | tSCC zUltrix_Const3Select0[] = | |
6822 | "fdopen\\( .*, char \\*"; | |
6823 | ||
6824 | #define ULTRIX_CONST3_TEST_CT 1 | |
6825 | static tTestDesc aUltrix_Const3Tests[] = { | |
6826 | { TT_EGREP, zUltrix_Const3Select0, (regex_t*)NULL }, }; | |
6827 | ||
6828 | /* | |
6829 | * Fix Command Arguments for Ultrix_Const3 | |
6830 | */ | |
6831 | static const char* apzUltrix_Const3Patch[] = { | |
6832 | "format", | |
6833 | "%1 const %3 *__", | |
6834 | "([ \t*](fdopen)\\(.*)[ \t]+(char|void) \\*__", | |
6835 | (char*)NULL }; | |
6836 | ||
7ab961ad | 6837 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
6838 | * | |
6839 | * Description of Ultrix_Fix_Fixproto fix | |
6840 | */ | |
6841 | tSCC zUltrix_Fix_FixprotoName[] = | |
6842 | "ultrix_fix_fixproto"; | |
6843 | ||
6844 | /* | |
6845 | * File name selection pattern | |
6846 | */ | |
6847 | tSCC zUltrix_Fix_FixprotoList[] = | |
6848 | "|sys/utsname.h|"; | |
6849 | /* | |
6850 | * Machine/OS name selection pattern | |
6851 | */ | |
6852 | #define apzUltrix_Fix_FixprotoMachs (const char**)NULL | |
6853 | ||
6854 | /* | |
6855 | * content selection pattern - do fix if pattern found | |
6856 | */ | |
6857 | tSCC zUltrix_Fix_FixprotoSelect0[] = | |
6858 | "ULTRIX"; | |
6859 | ||
6860 | #define ULTRIX_FIX_FIXPROTO_TEST_CT 1 | |
6861 | static tTestDesc aUltrix_Fix_FixprotoTests[] = { | |
6862 | { TT_EGREP, zUltrix_Fix_FixprotoSelect0, (regex_t*)NULL }, }; | |
6863 | ||
6864 | /* | |
6865 | * Fix Command Arguments for Ultrix_Fix_Fixproto | |
6866 | */ | |
6867 | static const char* apzUltrix_Fix_FixprotoPatch[] = { | |
6868 | "format", | |
6869 | "struct utsname;\n\ | |
6870 | %0", | |
6871 | "^[ \t]*extern[ \t]*int[ \t]*uname\\(\\);", | |
6872 | (char*)NULL }; | |
6873 | ||
6874 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
6875 | * | |
6876 | * Description of Ultrix_Ifdef fix | |
6877 | */ | |
6878 | tSCC zUltrix_IfdefName[] = | |
6879 | "ultrix_ifdef"; | |
6880 | ||
6881 | /* | |
6882 | * File name selection pattern | |
6883 | */ | |
6884 | tSCC zUltrix_IfdefList[] = | |
6885 | "|sys/file.h|"; | |
6886 | /* | |
6887 | * Machine/OS name selection pattern | |
6888 | */ | |
6889 | #define apzUltrix_IfdefMachs (const char**)NULL | |
6890 | ||
6891 | /* | |
6892 | * content selection pattern - do fix if pattern found | |
6893 | */ | |
6894 | tSCC zUltrix_IfdefSelect0[] = | |
6895 | "^#ifdef KERNEL[ \t]+&&"; | |
6896 | ||
6897 | #define ULTRIX_IFDEF_TEST_CT 1 | |
6898 | static tTestDesc aUltrix_IfdefTests[] = { | |
6899 | { TT_EGREP, zUltrix_IfdefSelect0, (regex_t*)NULL }, }; | |
6900 | ||
6901 | /* | |
6902 | * Fix Command Arguments for Ultrix_Ifdef | |
6903 | */ | |
6904 | static const char* apzUltrix_IfdefPatch[] = { | |
6905 | "format", | |
6906 | "#if defined(KERNEL) &&", | |
6907 | (char*)NULL }; | |
6908 | ||
37935110 | 6909 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
6910 | * | |
6911 | * Description of Ultrix_Locale fix | |
6912 | */ | |
6913 | tSCC zUltrix_LocaleName[] = | |
6914 | "ultrix_locale"; | |
6915 | ||
6916 | /* | |
6917 | * File name selection pattern | |
6918 | */ | |
6919 | tSCC zUltrix_LocaleList[] = | |
6920 | "|locale.h|"; | |
6921 | /* | |
6922 | * Machine/OS name selection pattern | |
6923 | */ | |
6924 | #define apzUltrix_LocaleMachs (const char**)NULL | |
6925 | ||
6926 | /* | |
6927 | * content selection pattern - do fix if pattern found | |
6928 | */ | |
6929 | tSCC zUltrix_LocaleSelect0[] = | |
6930 | "@\\(#\\)locale\\.h.*6\\.1.*\\(ULTRIX\\)"; | |
6931 | ||
6932 | #define ULTRIX_LOCALE_TEST_CT 1 | |
6933 | static tTestDesc aUltrix_LocaleTests[] = { | |
6934 | { TT_EGREP, zUltrix_LocaleSelect0, (regex_t*)NULL }, }; | |
6935 | ||
6936 | /* | |
6937 | * Fix Command Arguments for Ultrix_Locale | |
6938 | */ | |
6939 | static const char* apzUltrix_LocalePatch[] = { | |
6940 | "wrap", | |
6941 | (char*)NULL }; | |
6942 | ||
7ab961ad | 6943 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
6944 | * | |
6945 | * Description of Ultrix_Math_Ifdef fix | |
6946 | */ | |
6947 | tSCC zUltrix_Math_IfdefName[] = | |
6948 | "ultrix_math_ifdef"; | |
6949 | ||
6950 | /* | |
6951 | * File name selection pattern | |
6952 | */ | |
6953 | tSCC zUltrix_Math_IfdefList[] = | |
6954 | "|sys/limits.h|float.h|math.h|"; | |
6955 | /* | |
6956 | * Machine/OS name selection pattern | |
6957 | */ | |
6958 | #define apzUltrix_Math_IfdefMachs (const char**)NULL | |
6959 | ||
6960 | /* | |
6961 | * content selection pattern - do fix if pattern found | |
6962 | */ | |
6963 | tSCC zUltrix_Math_IfdefSelect0[] = | |
6964 | "^(#if.*)\\|\\|[ \t]+CC\\$[a-z]+"; | |
6965 | ||
6966 | #define ULTRIX_MATH_IFDEF_TEST_CT 1 | |
6967 | static tTestDesc aUltrix_Math_IfdefTests[] = { | |
6968 | { TT_EGREP, zUltrix_Math_IfdefSelect0, (regex_t*)NULL }, }; | |
6969 | ||
6970 | /* | |
6971 | * Fix Command Arguments for Ultrix_Math_Ifdef | |
6972 | */ | |
6973 | static const char* apzUltrix_Math_IfdefPatch[] = { | |
6974 | "format", | |
6975 | "%1", | |
6976 | (char*)NULL }; | |
6977 | ||
6978 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
6979 | * | |
6980 | * Description of Ultrix_Nested_Ioctl fix | |
6981 | */ | |
6982 | tSCC zUltrix_Nested_IoctlName[] = | |
6983 | "ultrix_nested_ioctl"; | |
6984 | ||
6985 | /* | |
6986 | * File name selection pattern | |
6987 | */ | |
6988 | tSCC zUltrix_Nested_IoctlList[] = | |
6989 | "|sys/ioctl.h|"; | |
6990 | /* | |
6991 | * Machine/OS name selection pattern | |
6992 | */ | |
6993 | #define apzUltrix_Nested_IoctlMachs (const char**)NULL | |
6994 | ||
6995 | /* | |
6996 | * content selection pattern - do fix if pattern found | |
6997 | */ | |
6998 | tSCC zUltrix_Nested_IoctlSelect0[] = | |
6999 | "^/\\* #define SIOCSCREEN"; | |
7000 | ||
7001 | #define ULTRIX_NESTED_IOCTL_TEST_CT 1 | |
7002 | static tTestDesc aUltrix_Nested_IoctlTests[] = { | |
7003 | { TT_EGREP, zUltrix_Nested_IoctlSelect0, (regex_t*)NULL }, }; | |
7004 | ||
7005 | /* | |
7006 | * Fix Command Arguments for Ultrix_Nested_Ioctl | |
7007 | */ | |
7008 | static const char* apzUltrix_Nested_IoctlPatch[] = { "sed", | |
7009 | "-e", "/^\\/\\* #define SIOCSCREEN/s@/\\* screend@*//* screend@", | |
7010 | (char*)NULL }; | |
7011 | ||
7012 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
7013 | * | |
7014 | * Description of Ultrix_Nested_Svc fix | |
7015 | */ | |
7016 | tSCC zUltrix_Nested_SvcName[] = | |
7017 | "ultrix_nested_svc"; | |
7018 | ||
7019 | /* | |
7020 | * File name selection pattern | |
7021 | */ | |
7022 | tSCC zUltrix_Nested_SvcList[] = | |
7023 | "|rpc/svc.h|"; | |
7024 | /* | |
7025 | * Machine/OS name selection pattern | |
7026 | */ | |
7027 | #define apzUltrix_Nested_SvcMachs (const char**)NULL | |
7028 | ||
7029 | /* | |
7030 | * content selection pattern - do fix if pattern found | |
7031 | */ | |
7032 | tSCC zUltrix_Nested_SvcSelect0[] = | |
7033 | "^ \\*[ \t]*int protocol; */\\*"; | |
7034 | ||
7035 | #define ULTRIX_NESTED_SVC_TEST_CT 1 | |
7036 | static tTestDesc aUltrix_Nested_SvcTests[] = { | |
7037 | { TT_EGREP, zUltrix_Nested_SvcSelect0, (regex_t*)NULL }, }; | |
7038 | ||
7039 | /* | |
7040 | * Fix Command Arguments for Ultrix_Nested_Svc | |
7041 | */ | |
7042 | static const char* apzUltrix_Nested_SvcPatch[] = { "sed", | |
7043 | "-e", "s@^\\( \\*\tint protocol; \\)/\\*@\\1*/ /*@", | |
7044 | (char*)NULL }; | |
7045 | ||
7046 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
7047 | * | |
7048 | * Description of Ultrix_Stat fix | |
7049 | */ | |
7050 | tSCC zUltrix_StatName[] = | |
7051 | "ultrix_stat"; | |
7052 | ||
7053 | /* | |
7054 | * File name selection pattern | |
7055 | */ | |
7056 | tSCC zUltrix_StatList[] = | |
7057 | "|sys/stat.h|"; | |
7058 | /* | |
7059 | * Machine/OS name selection pattern | |
7060 | */ | |
7061 | #define apzUltrix_StatMachs (const char**)NULL | |
7062 | ||
7063 | /* | |
7064 | * content selection pattern - do fix if pattern found | |
7065 | */ | |
7066 | tSCC zUltrix_StatSelect0[] = | |
7067 | "@\\(#\\)stat\\.h.*6\\.1.*\\(ULTRIX\\)"; | |
7068 | ||
7069 | #define ULTRIX_STAT_TEST_CT 1 | |
7070 | static tTestDesc aUltrix_StatTests[] = { | |
7071 | { TT_EGREP, zUltrix_StatSelect0, (regex_t*)NULL }, }; | |
7072 | ||
7073 | /* | |
7074 | * Fix Command Arguments for Ultrix_Stat | |
7075 | */ | |
7076 | static const char* apzUltrix_StatPatch[] = { "sed", | |
7077 | "-e", "/^#define[ \t]S_IFPORT[ \t]*S_IFIFO$/a\\\n\ | |
7078 | \\\n\ | |
7079 | /* macro to test for symbolic link */\\\n\ | |
7080 | #define S_ISLNK(mode) (((mode) & S_IFMT) == S_IFLNK)\\\n\n", | |
7081 | "-e", "/^[ \t]*fstat(),$/a\\\n\ | |
7082 | \tlstat(),\n", | |
7083 | (char*)NULL }; | |
7084 | ||
7085 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
7086 | * | |
7087 | * Description of Ultrix_Static fix | |
7088 | */ | |
7089 | tSCC zUltrix_StaticName[] = | |
7090 | "ultrix_static"; | |
7091 | ||
7092 | /* | |
7093 | * File name selection pattern | |
7094 | */ | |
7095 | tSCC zUltrix_StaticList[] = | |
7096 | "|machine/cpu.h|"; | |
7097 | /* | |
7098 | * Machine/OS name selection pattern | |
7099 | */ | |
7100 | #define apzUltrix_StaticMachs (const char**)NULL | |
7101 | ||
7102 | /* | |
7103 | * content selection pattern - do fix if pattern found | |
7104 | */ | |
7105 | tSCC zUltrix_StaticSelect0[] = | |
7106 | "#include \"r[34]_cpu"; | |
7107 | ||
7108 | #define ULTRIX_STATIC_TEST_CT 1 | |
7109 | static tTestDesc aUltrix_StaticTests[] = { | |
7110 | { TT_EGREP, zUltrix_StaticSelect0, (regex_t*)NULL }, }; | |
7111 | ||
7112 | /* | |
7113 | * Fix Command Arguments for Ultrix_Static | |
7114 | */ | |
7115 | static const char* apzUltrix_StaticPatch[] = { "sed", | |
7116 | "-e", "s/^static struct tlb_pid_state/struct tlb_pid_state/", | |
7117 | "-e", "s/^#include \"r3_cpu\\.h\"$/#include <machine\\/r3_cpu\\.h>/", | |
7118 | "-e", "s/^#include \"r4_cpu\\.h\"$/#include <machine\\/r4_cpu\\.h>/", | |
7119 | (char*)NULL }; | |
7120 | ||
37935110 | 7121 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
7122 | * | |
7123 | * Description of Ultrix_Stdlib fix | |
7124 | */ | |
7125 | tSCC zUltrix_StdlibName[] = | |
7126 | "ultrix_stdlib"; | |
7127 | ||
7128 | /* | |
7129 | * File name selection pattern | |
7130 | */ | |
7131 | tSCC zUltrix_StdlibList[] = | |
7132 | "|stdlib.h|"; | |
7133 | /* | |
7134 | * Machine/OS name selection pattern | |
7135 | */ | |
7136 | #define apzUltrix_StdlibMachs (const char**)NULL | |
7137 | ||
7138 | /* | |
7139 | * content selection pattern - do fix if pattern found | |
7140 | */ | |
7141 | tSCC zUltrix_StdlibSelect0[] = | |
7142 | "@\\(#\\)stdlib\\.h.*6\\.1.*\\(ULTRIX\\)"; | |
7143 | ||
7144 | #define ULTRIX_STDLIB_TEST_CT 1 | |
7145 | static tTestDesc aUltrix_StdlibTests[] = { | |
7146 | { TT_EGREP, zUltrix_StdlibSelect0, (regex_t*)NULL }, }; | |
7147 | ||
7148 | /* | |
7149 | * Fix Command Arguments for Ultrix_Stdlib | |
7150 | */ | |
7151 | static const char* apzUltrix_StdlibPatch[] = { "sed", | |
7152 | "-e", "/^char.*getenv( const char .* );.*$/a\\\n\ | |
7153 | int\t\tsetenv( const char *__name, const char *__val, int __ovrwrt );\\\n\ | |
7154 | void\t\tunsetenv( const char *__name );\\\n\ | |
7155 | int\t\tputenv( char *__s );\n", | |
7156 | "-e", "/^char.*getenv();.*$/a\\\n\ | |
7157 | int\tsetenv();\\\n\ | |
7158 | void\tunsetenv();\\\n\ | |
7159 | int\tputenv();\n", | |
7160 | (char*)NULL }; | |
7161 | ||
7ab961ad | 7162 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
7163 | * | |
7164 | * Description of Ultrix_Strings fix | |
7165 | */ | |
7166 | tSCC zUltrix_StringsName[] = | |
7167 | "ultrix_strings"; | |
7168 | ||
7169 | /* | |
7170 | * File name selection pattern | |
7171 | */ | |
7172 | tSCC zUltrix_StringsList[] = | |
7173 | "|strings.h|"; | |
7174 | /* | |
7175 | * Machine/OS name selection pattern | |
7176 | */ | |
7177 | #define apzUltrix_StringsMachs (const char**)NULL | |
7178 | ||
7179 | /* | |
7180 | * content selection pattern - do fix if pattern found | |
7181 | */ | |
7182 | tSCC zUltrix_StringsSelect0[] = | |
7183 | "@\\(#\\)strings\\.h.*6\\.1.*\\(ULTRIX\\)"; | |
7184 | ||
7185 | #define ULTRIX_STRINGS_TEST_CT 1 | |
7186 | static tTestDesc aUltrix_StringsTests[] = { | |
7187 | { TT_EGREP, zUltrix_StringsSelect0, (regex_t*)NULL }, }; | |
7188 | ||
7189 | /* | |
7190 | * Fix Command Arguments for Ultrix_Strings | |
7191 | */ | |
7192 | static const char* apzUltrix_StringsPatch[] = { | |
7193 | "wrap", | |
7194 | (char*)NULL }; | |
7195 | ||
37935110 | 7196 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
7197 | * | |
7198 | * Description of Ultrix_Strings2 fix | |
7199 | */ | |
7200 | tSCC zUltrix_Strings2Name[] = | |
7201 | "ultrix_strings2"; | |
7202 | ||
7203 | /* | |
7204 | * File name selection pattern | |
7205 | */ | |
7206 | tSCC zUltrix_Strings2List[] = | |
7207 | "|strings.h|"; | |
7208 | /* | |
7209 | * Machine/OS name selection pattern | |
7210 | */ | |
7211 | #define apzUltrix_Strings2Machs (const char**)NULL | |
7212 | ||
7213 | /* | |
7214 | * content selection pattern - do fix if pattern found | |
7215 | */ | |
7216 | tSCC zUltrix_Strings2Select0[] = | |
7217 | "@\\(#\\)strings\\.h.*6\\.1.*\\(ULTRIX\\)"; | |
7218 | ||
7219 | #define ULTRIX_STRINGS2_TEST_CT 1 | |
7220 | static tTestDesc aUltrix_Strings2Tests[] = { | |
7221 | { TT_EGREP, zUltrix_Strings2Select0, (regex_t*)NULL }, }; | |
7222 | ||
7223 | /* | |
7224 | * Fix Command Arguments for Ultrix_Strings2 | |
7225 | */ | |
7226 | static const char* apzUltrix_Strings2Patch[] = { "sed", | |
7227 | "-e", "/^.*strncmp( const .* );.*/a\\\n\ | |
7228 | \\\n\ | |
7229 | extern int\\\n\ | |
7230 | \tstrcasecmp( const char *__s1, const char *__s2),\\\n\ | |
7231 | \tstrncasecmp( const char *__s1, const char *__s2, size_t __n );\n", | |
7232 | "-e", "/^.*strncmp();.*/a\\\n\ | |
7233 | extern int\\\n\ | |
7234 | \tstrcasecmp(),\\\n\ | |
7235 | \tstrncasecmp();\n", | |
7236 | (char*)NULL }; | |
7237 | ||
7238 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
7239 | * | |
7240 | * Description of Ultrix_Sys_Time fix | |
7241 | */ | |
7242 | tSCC zUltrix_Sys_TimeName[] = | |
7243 | "ultrix_sys_time"; | |
7244 | ||
7245 | /* | |
7246 | * File name selection pattern | |
7247 | */ | |
7248 | tSCC zUltrix_Sys_TimeList[] = | |
7249 | "|sys/time.h|"; | |
7250 | /* | |
7251 | * Machine/OS name selection pattern | |
7252 | */ | |
7253 | #define apzUltrix_Sys_TimeMachs (const char**)NULL | |
7254 | ||
7255 | /* | |
7256 | * content selection pattern - do fix if pattern found | |
7257 | */ | |
7258 | tSCC zUltrix_Sys_TimeSelect0[] = | |
7259 | "@\\(#\\)time\\.h.*6\\.1.*\\(ULTRIX\\)"; | |
7260 | ||
7261 | #define ULTRIX_SYS_TIME_TEST_CT 1 | |
7262 | static tTestDesc aUltrix_Sys_TimeTests[] = { | |
7263 | { TT_EGREP, zUltrix_Sys_TimeSelect0, (regex_t*)NULL }, }; | |
7264 | ||
7265 | /* | |
7266 | * Fix Command Arguments for Ultrix_Sys_Time | |
7267 | */ | |
7268 | static const char* apzUltrix_Sys_TimePatch[] = { "sed", | |
7269 | "-e", "/^extern.*time_t.*time( time_t .* );.*$/a\\\n\ | |
7270 | \\\n\ | |
7271 | extern int adjtime(struct timeval *, struct timeval *);\\\n\ | |
7272 | extern int getitimer(int, struct itimerval *);\\\n\ | |
7273 | extern int setitimer(int, struct itimerval *, struct itimerval *);\\\n\ | |
7274 | extern int gettimeofday(struct timeval *, struct timezone *);\\\n\ | |
7275 | extern int settimeofday(struct timeval *, struct timezone *);\\\n\ | |
7276 | extern void profil(const void *, size_t, size_t, unsigned int);\\\n\ | |
7277 | extern int stime(const time_t *);\\\n\ | |
7278 | extern int utimes(const char *, const struct timeval[2]);\\\n\ | |
7279 | extern int select(int, fd_set *, fd_set *, fd_set *, struct timeval *);\n", | |
7280 | "-e", "/^extern.*double.*difftime();.*$/a\\\n\ | |
7281 | extern\tint adjtime();\\\n\ | |
7282 | extern\tint getitimer();\\\n\ | |
7283 | extern\tint setitimer();\\\n\ | |
7284 | extern\tint gettimeofday();\\\n\ | |
7285 | extern\tint settimeofday();\\\n\ | |
7286 | extern\tvoid profil();\\\n\ | |
7287 | extern\tint stime();\\\n\ | |
7288 | extern\tint utimes();\\\n\ | |
7289 | extern\tint select();\n", | |
7290 | (char*)NULL }; | |
7291 | ||
7292 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
7293 | * | |
7294 | * Description of Ultrix_Unistd fix | |
7295 | */ | |
7296 | tSCC zUltrix_UnistdName[] = | |
7297 | "ultrix_unistd"; | |
7298 | ||
7299 | /* | |
7300 | * File name selection pattern | |
7301 | */ | |
7302 | tSCC zUltrix_UnistdList[] = | |
7303 | "|unistd.h|"; | |
7304 | /* | |
7305 | * Machine/OS name selection pattern | |
7306 | */ | |
7307 | #define apzUltrix_UnistdMachs (const char**)NULL | |
7308 | ||
7309 | /* | |
7310 | * content selection pattern - do fix if pattern found | |
7311 | */ | |
7312 | tSCC zUltrix_UnistdSelect0[] = | |
7313 | "@\\(#\\)unistd\\.h.*6\\.1.*\\(ULTRIX\\)"; | |
7314 | ||
7315 | #define ULTRIX_UNISTD_TEST_CT 1 | |
7316 | static tTestDesc aUltrix_UnistdTests[] = { | |
7317 | { TT_EGREP, zUltrix_UnistdSelect0, (regex_t*)NULL }, }; | |
7318 | ||
7319 | /* | |
7320 | * Fix Command Arguments for Ultrix_Unistd | |
7321 | */ | |
7322 | static const char* apzUltrix_UnistdPatch[] = { "sed", | |
7323 | "-e", "/^[ \t]*getgroups(),.*$/a\\\n\ | |
7324 | \tgetpagesize(),\n", | |
7325 | "-e", "/^[ \t]*fork(),.*$/a\\\n\ | |
7326 | \tvfork(),\n", | |
7327 | (char*)NULL }; | |
7328 | ||
9caef960 | 7329 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
7330 | * | |
7331 | * Description of Unicosmk_Restrict fix | |
7332 | */ | |
7333 | tSCC zUnicosmk_RestrictName[] = | |
7334 | "unicosmk_restrict"; | |
7335 | ||
7336 | /* | |
7337 | * File name selection pattern | |
7338 | */ | |
7339 | tSCC zUnicosmk_RestrictList[] = | |
7340 | "|stdio.h|stdlib.h|wchar.h|"; | |
7341 | /* | |
7342 | * Machine/OS name selection pattern | |
7343 | */ | |
7344 | tSCC* apzUnicosmk_RestrictMachs[] = { | |
7345 | "*-*-unicosmk*", | |
7346 | (const char*)NULL }; | |
7347 | ||
7348 | /* | |
7349 | * content selection pattern - do fix if pattern found | |
7350 | */ | |
7351 | tSCC zUnicosmk_RestrictSelect0[] = | |
7352 | "(\\*[ \t]*)restrict([ \t]+)"; | |
7353 | ||
7354 | #define UNICOSMK_RESTRICT_TEST_CT 1 | |
7355 | static tTestDesc aUnicosmk_RestrictTests[] = { | |
7356 | { TT_EGREP, zUnicosmk_RestrictSelect0, (regex_t*)NULL }, }; | |
7357 | ||
7358 | /* | |
7359 | * Fix Command Arguments for Unicosmk_Restrict | |
7360 | */ | |
7361 | static const char* apzUnicosmk_RestrictPatch[] = { | |
7362 | "format", | |
7363 | "%1__restrict__%2", | |
7364 | (char*)NULL }; | |
7365 | ||
d08a0ac4 | 7366 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
7367 | * | |
b07d36b9 | 7368 | * Description of Uw7_Byteorder_Fix fix |
d08a0ac4 | 7369 | */ |
b07d36b9 | 7370 | tSCC zUw7_Byteorder_FixName[] = |
7371 | "uw7_byteorder_fix"; | |
d4c4b01d | 7372 | |
d08a0ac4 | 7373 | /* |
7374 | * File name selection pattern | |
7375 | */ | |
b07d36b9 | 7376 | tSCC zUw7_Byteorder_FixList[] = |
d08a0ac4 | 7377 | "|arpa/inet.h|"; |
7378 | /* | |
7379 | * Machine/OS name selection pattern | |
7380 | */ | |
b07d36b9 | 7381 | tSCC* apzUw7_Byteorder_FixMachs[] = { |
d08a0ac4 | 7382 | "*-*-sysv4*", |
cb11a2de | 7383 | "i?86-*-sysv5*", |
7384 | "i?86-*-udk*", | |
7385 | "i?86-*-solaris2.[0-4]", | |
d08a0ac4 | 7386 | "powerpcle-*-solaris2.[0-4]", |
7387 | "sparc-*-solaris2.[0-4]", | |
7388 | (const char*)NULL }; | |
7389 | ||
7390 | /* | |
7391 | * content selection pattern - do fix if pattern found | |
7392 | */ | |
b07d36b9 | 7393 | tSCC zUw7_Byteorder_FixSelect0[] = |
d08a0ac4 | 7394 | "in_port_t"; |
7395 | ||
b07d36b9 | 7396 | /* |
7397 | * perform the 'test' shell command - do fix on success | |
7398 | */ | |
7399 | tSCC zUw7_Byteorder_FixTest0[] = | |
c6738ff5 | 7400 | "-f sys/byteorder.h"; |
b07d36b9 | 7401 | |
7402 | #define UW7_BYTEORDER_FIX_TEST_CT 2 | |
2548396b | 7403 | static tTestDesc aUw7_Byteorder_FixTests[] = { |
b07d36b9 | 7404 | { TT_TEST, zUw7_Byteorder_FixTest0, 0 /* unused */ }, |
7405 | { TT_EGREP, zUw7_Byteorder_FixSelect0, (regex_t*)NULL }, }; | |
d08a0ac4 | 7406 | |
7407 | /* | |
b07d36b9 | 7408 | * Fix Command Arguments for Uw7_Byteorder_Fix |
d08a0ac4 | 7409 | */ |
2548396b | 7410 | static const char* apzUw7_Byteorder_FixPatch[] = { |
b07d36b9 | 7411 | "format", |
7412 | "", | |
c6738ff5 | 7413 | "^extern.*[ \t](htons|ntohs).*\\(in_port_t\\).*;", |
d08a0ac4 | 7414 | (char*)NULL }; |
7415 | ||
fdb8fb96 | 7416 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
7417 | * | |
5daf7ede | 7418 | * Description of Va_I960_Macro fix |
fdb8fb96 | 7419 | */ |
7420 | tSCC zVa_I960_MacroName[] = | |
d4c4b01d | 7421 | "va_i960_macro"; |
7422 | ||
fdb8fb96 | 7423 | /* |
7424 | * File name selection pattern | |
7425 | */ | |
7426 | tSCC zVa_I960_MacroList[] = | |
efb1b79b | 7427 | "|arch/i960/archI960.h|"; |
fdb8fb96 | 7428 | /* |
7429 | * Machine/OS name selection pattern | |
7430 | */ | |
7431 | #define apzVa_I960_MacroMachs (const char**)NULL | |
7432 | ||
7433 | /* | |
c1b28c63 | 7434 | * content selection pattern - do fix if pattern found |
fdb8fb96 | 7435 | */ |
7436 | tSCC zVa_I960_MacroSelect0[] = | |
7437 | "__(vsiz|vali|vpad|alignof__)"; | |
7438 | ||
7439 | #define VA_I960_MACRO_TEST_CT 1 | |
2548396b | 7440 | static tTestDesc aVa_I960_MacroTests[] = { |
5daf7ede | 7441 | { TT_EGREP, zVa_I960_MacroSelect0, (regex_t*)NULL }, }; |
fdb8fb96 | 7442 | |
7443 | /* | |
7444 | * Fix Command Arguments for Va_I960_Macro | |
7445 | */ | |
2548396b | 7446 | static const char* apzVa_I960_MacroPatch[] = { |
f74d6549 | 7447 | "format", |
7448 | "__vx%1", | |
fdb8fb96 | 7449 | (char*)NULL }; |
7450 | ||
7451 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
7452 | * | |
5daf7ede | 7453 | * Description of Void_Null fix |
fdb8fb96 | 7454 | */ |
7455 | tSCC zVoid_NullName[] = | |
d4c4b01d | 7456 | "void_null"; |
7457 | ||
fdb8fb96 | 7458 | /* |
7459 | * File name selection pattern | |
7460 | */ | |
7461 | tSCC zVoid_NullList[] = | |
efb1b79b | 7462 | "|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|"; |
fdb8fb96 | 7463 | /* |
7464 | * Machine/OS name selection pattern | |
7465 | */ | |
7466 | #define apzVoid_NullMachs (const char**)NULL | |
7467 | ||
7468 | /* | |
c1b28c63 | 7469 | * content selection pattern - do fix if pattern found |
fdb8fb96 | 7470 | */ |
7471 | tSCC zVoid_NullSelect0[] = | |
f74d6549 | 7472 | "^#[ \t]*define[ \t]+NULL[ \t]+\\(\\(void[ \t]*\\*\\)0\\)"; |
fdb8fb96 | 7473 | |
df2b0bc4 | 7474 | /* |
7475 | * content bypass pattern - skip fix if pattern found | |
7476 | */ | |
7477 | tSCC zVoid_NullBypass0[] = | |
7478 | "__cplusplus"; | |
7479 | ||
7480 | #define VOID_NULL_TEST_CT 2 | |
2548396b | 7481 | static tTestDesc aVoid_NullTests[] = { |
df2b0bc4 | 7482 | { TT_NEGREP, zVoid_NullBypass0, (regex_t*)NULL }, |
5daf7ede | 7483 | { TT_EGREP, zVoid_NullSelect0, (regex_t*)NULL }, }; |
fdb8fb96 | 7484 | |
7485 | /* | |
7486 | * Fix Command Arguments for Void_Null | |
7487 | */ | |
2548396b | 7488 | static const char* apzVoid_NullPatch[] = { |
f74d6549 | 7489 | "format", |
7490 | "#define NULL 0", | |
fdb8fb96 | 7491 | (char*)NULL }; |
7492 | ||
7493 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
7494 | * | |
5daf7ede | 7495 | * Description of Vxworks_Gcc_Problem fix |
fdb8fb96 | 7496 | */ |
7497 | tSCC zVxworks_Gcc_ProblemName[] = | |
d4c4b01d | 7498 | "vxworks_gcc_problem"; |
7499 | ||
fdb8fb96 | 7500 | /* |
7501 | * File name selection pattern | |
7502 | */ | |
7503 | tSCC zVxworks_Gcc_ProblemList[] = | |
efb1b79b | 7504 | "|types/vxTypesBase.h|"; |
fdb8fb96 | 7505 | /* |
7506 | * Machine/OS name selection pattern | |
7507 | */ | |
7508 | #define apzVxworks_Gcc_ProblemMachs (const char**)NULL | |
7509 | ||
7510 | /* | |
c1b28c63 | 7511 | * content selection pattern - do fix if pattern found |
fdb8fb96 | 7512 | */ |
7513 | tSCC zVxworks_Gcc_ProblemSelect0[] = | |
7514 | "__GNUC_TYPEOF_FEATURE_BROKEN_USE_DEFAULT_UNTIL_FIXED__"; | |
7515 | ||
7516 | #define VXWORKS_GCC_PROBLEM_TEST_CT 1 | |
2548396b | 7517 | static tTestDesc aVxworks_Gcc_ProblemTests[] = { |
5daf7ede | 7518 | { TT_EGREP, zVxworks_Gcc_ProblemSelect0, (regex_t*)NULL }, }; |
fdb8fb96 | 7519 | |
7520 | /* | |
7521 | * Fix Command Arguments for Vxworks_Gcc_Problem | |
7522 | */ | |
2548396b | 7523 | static const char* apzVxworks_Gcc_ProblemPatch[] = { "sed", |
c1b28c63 | 7524 | "-e", "s/#ifdef __GNUC_TYPEOF_FEATURE_BROKEN_USE_DEFAULT_UNTIL_FIXED__/#if 1/", |
efb1b79b | 7525 | "-e", "/[ \t]size_t/i\\\n\ |
7526 | #ifndef _GCC_SIZE_T\\\n\ | |
7527 | #define _GCC_SIZE_T\n", | |
7528 | "-e", "/[ \t]size_t/a\\\n\ | |
7529 | #endif\n", | |
7530 | "-e", "/[ \t]ptrdiff_t/i\\\n\ | |
7531 | #ifndef _GCC_PTRDIFF_T\\\n\ | |
7532 | #define _GCC_PTRDIFF_T\n", | |
7533 | "-e", "/[ \t]ptrdiff_t/a\\\n\ | |
7534 | #endif\n", | |
7535 | "-e", "/[ \t]wchar_t/i\\\n\ | |
7536 | #ifndef _GCC_WCHAR_T\\\n\ | |
7537 | #define _GCC_WCHAR_T\n", | |
7538 | "-e", "/[ \t]wchar_t/a\\\n\ | |
7539 | #endif\n", | |
fdb8fb96 | 7540 | (char*)NULL }; |
7541 | ||
7542 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
7543 | * | |
5daf7ede | 7544 | * Description of Vxworks_Needs_Vxtypes fix |
fdb8fb96 | 7545 | */ |
7546 | tSCC zVxworks_Needs_VxtypesName[] = | |
d4c4b01d | 7547 | "vxworks_needs_vxtypes"; |
7548 | ||
fdb8fb96 | 7549 | /* |
7550 | * File name selection pattern | |
7551 | */ | |
7552 | tSCC zVxworks_Needs_VxtypesList[] = | |
efb1b79b | 7553 | "|time.h|"; |
fdb8fb96 | 7554 | /* |
7555 | * Machine/OS name selection pattern | |
7556 | */ | |
7557 | #define apzVxworks_Needs_VxtypesMachs (const char**)NULL | |
7558 | ||
7559 | /* | |
c1b28c63 | 7560 | * content selection pattern - do fix if pattern found |
fdb8fb96 | 7561 | */ |
7562 | tSCC zVxworks_Needs_VxtypesSelect0[] = | |
f74d6549 | 7563 | "uint_t([ \t]+_clocks_per_sec)"; |
fdb8fb96 | 7564 | |
7565 | #define VXWORKS_NEEDS_VXTYPES_TEST_CT 1 | |
2548396b | 7566 | static tTestDesc aVxworks_Needs_VxtypesTests[] = { |
5daf7ede | 7567 | { TT_EGREP, zVxworks_Needs_VxtypesSelect0, (regex_t*)NULL }, }; |
fdb8fb96 | 7568 | |
7569 | /* | |
7570 | * Fix Command Arguments for Vxworks_Needs_Vxtypes | |
7571 | */ | |
2548396b | 7572 | static const char* apzVxworks_Needs_VxtypesPatch[] = { |
f74d6549 | 7573 | "format", |
7574 | "unsigned int%1", | |
fdb8fb96 | 7575 | (char*)NULL }; |
7576 | ||
7577 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
7578 | * | |
5daf7ede | 7579 | * Description of Vxworks_Needs_Vxworks fix |
fdb8fb96 | 7580 | */ |
7581 | tSCC zVxworks_Needs_VxworksName[] = | |
d4c4b01d | 7582 | "vxworks_needs_vxworks"; |
7583 | ||
fdb8fb96 | 7584 | /* |
7585 | * File name selection pattern | |
7586 | */ | |
7587 | tSCC zVxworks_Needs_VxworksList[] = | |
efb1b79b | 7588 | "|sys/stat.h|"; |
fdb8fb96 | 7589 | /* |
7590 | * Machine/OS name selection pattern | |
7591 | */ | |
7592 | #define apzVxworks_Needs_VxworksMachs (const char**)NULL | |
7593 | ||
7594 | /* | |
c1b28c63 | 7595 | * content selection pattern - do fix if pattern found |
fdb8fb96 | 7596 | */ |
7597 | tSCC zVxworks_Needs_VxworksSelect0[] = | |
f74d6549 | 7598 | "#[ \t]define[ \t]+__INCstath"; |
fdb8fb96 | 7599 | |
7600 | /* | |
c1b28c63 | 7601 | * perform the 'test' shell command - do fix on success |
fdb8fb96 | 7602 | */ |
7603 | tSCC zVxworks_Needs_VxworksTest0[] = | |
38ebab8a | 7604 | " -r types/vxTypesOld.h"; |
fdb8fb96 | 7605 | tSCC zVxworks_Needs_VxworksTest1[] = |
38ebab8a | 7606 | " -n \"`egrep '#include' $file`\""; |
fdb8fb96 | 7607 | tSCC zVxworks_Needs_VxworksTest2[] = |
38ebab8a | 7608 | " -n \"`egrep ULONG $file`\""; |
fdb8fb96 | 7609 | |
7610 | #define VXWORKS_NEEDS_VXWORKS_TEST_CT 4 | |
2548396b | 7611 | static tTestDesc aVxworks_Needs_VxworksTests[] = { |
5daf7ede | 7612 | { TT_TEST, zVxworks_Needs_VxworksTest0, 0 /* unused */ }, |
7613 | { TT_TEST, zVxworks_Needs_VxworksTest1, 0 /* unused */ }, | |
7614 | { TT_TEST, zVxworks_Needs_VxworksTest2, 0 /* unused */ }, | |
7615 | { TT_EGREP, zVxworks_Needs_VxworksSelect0, (regex_t*)NULL }, }; | |
fdb8fb96 | 7616 | |
7617 | /* | |
7618 | * Fix Command Arguments for Vxworks_Needs_Vxworks | |
7619 | */ | |
2548396b | 7620 | static const char* apzVxworks_Needs_VxworksPatch[] = { "sed", |
efb1b79b | 7621 | "-e", "/#[ \t]define[ \t][ \t]*__INCstath/a\\\n\ |
7622 | #include <types/vxTypesOld.h>\n", | |
fdb8fb96 | 7623 | (char*)NULL }; |
7624 | ||
7625 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
7626 | * | |
5daf7ede | 7627 | * Description of Vxworks_Time fix |
fdb8fb96 | 7628 | */ |
7629 | tSCC zVxworks_TimeName[] = | |
d4c4b01d | 7630 | "vxworks_time"; |
7631 | ||
fdb8fb96 | 7632 | /* |
7633 | * File name selection pattern | |
7634 | */ | |
7635 | tSCC zVxworks_TimeList[] = | |
efb1b79b | 7636 | "|time.h|"; |
fdb8fb96 | 7637 | /* |
7638 | * Machine/OS name selection pattern | |
7639 | */ | |
7640 | #define apzVxworks_TimeMachs (const char**)NULL | |
7641 | ||
7642 | /* | |
c1b28c63 | 7643 | * content selection pattern - do fix if pattern found |
fdb8fb96 | 7644 | */ |
7645 | tSCC zVxworks_TimeSelect0[] = | |
f74d6549 | 7646 | "#[ \t]*define[ \t]+VOIDFUNCPTR[ \t].*"; |
fdb8fb96 | 7647 | |
7648 | /* | |
c1b28c63 | 7649 | * perform the 'test' shell command - do fix on success |
fdb8fb96 | 7650 | */ |
7651 | tSCC zVxworks_TimeTest0[] = | |
38ebab8a | 7652 | " -r vxWorks.h"; |
fdb8fb96 | 7653 | |
7654 | #define VXWORKS_TIME_TEST_CT 2 | |
2548396b | 7655 | static tTestDesc aVxworks_TimeTests[] = { |
5daf7ede | 7656 | { TT_TEST, zVxworks_TimeTest0, 0 /* unused */ }, |
7657 | { TT_EGREP, zVxworks_TimeSelect0, (regex_t*)NULL }, }; | |
fdb8fb96 | 7658 | |
7659 | /* | |
7660 | * Fix Command Arguments for Vxworks_Time | |
7661 | */ | |
2548396b | 7662 | static const char* apzVxworks_TimePatch[] = { |
f74d6549 | 7663 | "format", |
7664 | "#ifndef __gcc_VOIDFUNCPTR_defined\n\ | |
7665 | #ifdef __cplusplus\n\ | |
7666 | typedef void (*__gcc_VOIDFUNCPTR) (...);\n\ | |
7667 | #else\n\ | |
7668 | typedef void (*__gcc_VOIDFUNCPTR) ();\n\ | |
7669 | #endif\n\ | |
7670 | #define __gcc_VOIDFUNCPTR_defined\n\ | |
7671 | #endif\n\ | |
7672 | #define VOIDFUNCPTR __gcc_VOIDFUNCPTR", | |
fdb8fb96 | 7673 | (char*)NULL }; |
7674 | ||
5a268127 | 7675 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
7676 | * | |
7677 | * Description of Windiss_Math1 fix | |
7678 | */ | |
7679 | tSCC zWindiss_Math1Name[] = | |
7680 | "windiss_math1"; | |
7681 | ||
7682 | /* | |
7683 | * File name selection pattern | |
7684 | */ | |
7685 | tSCC zWindiss_Math1List[] = | |
7686 | "|math.h|"; | |
7687 | /* | |
7688 | * Machine/OS name selection pattern | |
7689 | */ | |
7690 | tSCC* apzWindiss_Math1Machs[] = { | |
7691 | "*-*-windiss", | |
7692 | (const char*)NULL }; | |
7693 | #define WINDISS_MATH1_TEST_CT 0 | |
7694 | #define aWindiss_Math1Tests (tTestDesc*)NULL | |
7695 | ||
7696 | /* | |
7697 | * Fix Command Arguments for Windiss_Math1 | |
7698 | */ | |
7699 | static const char* apzWindiss_Math1Patch[] = { "sed", | |
7700 | "-e", "s|inline long double cosl.*|#ifndef __GNUC__|", | |
7701 | (char*)NULL }; | |
7702 | ||
7703 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
7704 | * | |
7705 | * Description of Windiss_Math2 fix | |
7706 | */ | |
7707 | tSCC zWindiss_Math2Name[] = | |
7708 | "windiss_math2"; | |
7709 | ||
7710 | /* | |
7711 | * File name selection pattern | |
7712 | */ | |
7713 | tSCC zWindiss_Math2List[] = | |
7714 | "|math.h|"; | |
7715 | /* | |
7716 | * Machine/OS name selection pattern | |
7717 | */ | |
7718 | tSCC* apzWindiss_Math2Machs[] = { | |
7719 | "*-*-windiss", | |
7720 | (const char*)NULL }; | |
7721 | #define WINDISS_MATH2_TEST_CT 0 | |
7722 | #define aWindiss_Math2Tests (tTestDesc*)NULL | |
7723 | ||
7724 | /* | |
7725 | * Fix Command Arguments for Windiss_Math2 | |
7726 | */ | |
7727 | static const char* apzWindiss_Math2Patch[] = { "sed", | |
7728 | "-e", "s|/\\* long double declarations \\*/|#endif /* __GNUC__ */|", | |
7729 | (char*)NULL }; | |
7730 | ||
7731 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
7732 | * | |
7733 | * Description of Windiss_Valist fix | |
7734 | */ | |
7735 | tSCC zWindiss_ValistName[] = | |
7736 | "windiss_valist"; | |
7737 | ||
7738 | /* | |
7739 | * File name selection pattern | |
7740 | */ | |
7741 | #define zWindiss_ValistList (char*)NULL | |
7742 | /* | |
7743 | * Machine/OS name selection pattern | |
7744 | */ | |
7745 | tSCC* apzWindiss_ValistMachs[] = { | |
7746 | "*-*-windiss", | |
7747 | (const char*)NULL }; | |
bdfb75b4 | 7748 | |
7749 | /* | |
7750 | * content selection pattern - do fix if pattern found | |
7751 | */ | |
7752 | tSCC zWindiss_ValistSelect0[] = | |
7753 | "(#include.*)diab/va_list.h"; | |
7754 | ||
7755 | #define WINDISS_VALIST_TEST_CT 1 | |
7756 | static tTestDesc aWindiss_ValistTests[] = { | |
7757 | { TT_EGREP, zWindiss_ValistSelect0, (regex_t*)NULL }, }; | |
5a268127 | 7758 | |
7759 | /* | |
7760 | * Fix Command Arguments for Windiss_Valist | |
7761 | */ | |
7762 | static const char* apzWindiss_ValistPatch[] = { "sed", | |
7763 | "-e", "s|diab/va_list.h|stdarg.h|", | |
7764 | (char*)NULL }; | |
7765 | ||
fdb8fb96 | 7766 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
7767 | * | |
5daf7ede | 7768 | * Description of X11_Class fix |
fdb8fb96 | 7769 | */ |
7770 | tSCC zX11_ClassName[] = | |
d4c4b01d | 7771 | "x11_class"; |
7772 | ||
fdb8fb96 | 7773 | /* |
7774 | * File name selection pattern | |
7775 | */ | |
7776 | tSCC zX11_ClassList[] = | |
efb1b79b | 7777 | "|X11/ShellP.h|"; |
fdb8fb96 | 7778 | /* |
7779 | * Machine/OS name selection pattern | |
7780 | */ | |
7781 | #define apzX11_ClassMachs (const char**)NULL | |
7782 | ||
e7ae4397 | 7783 | /* |
7784 | * content selection pattern - do fix if pattern found | |
7785 | */ | |
7786 | tSCC zX11_ClassSelect0[] = | |
7787 | "^([ \t]*char \\*)class;(.*)"; | |
7788 | ||
fdb8fb96 | 7789 | /* |
c1b28c63 | 7790 | * content bypass pattern - skip fix if pattern found |
fdb8fb96 | 7791 | */ |
7792 | tSCC zX11_ClassBypass0[] = | |
7793 | "__cplusplus"; | |
7794 | ||
e7ae4397 | 7795 | #define X11_CLASS_TEST_CT 2 |
2548396b | 7796 | static tTestDesc aX11_ClassTests[] = { |
e7ae4397 | 7797 | { TT_NEGREP, zX11_ClassBypass0, (regex_t*)NULL }, |
7798 | { TT_EGREP, zX11_ClassSelect0, (regex_t*)NULL }, }; | |
fdb8fb96 | 7799 | |
7800 | /* | |
7801 | * Fix Command Arguments for X11_Class | |
7802 | */ | |
2548396b | 7803 | static const char* apzX11_ClassPatch[] = { |
e7ae4397 | 7804 | "format", |
7805 | "#ifdef __cplusplus\n\ | |
7806 | %1c_class;%2\n\ | |
7807 | #else\n\ | |
7808 | %1class;%2\n\ | |
7809 | #endif", | |
fdb8fb96 | 7810 | (char*)NULL }; |
7811 | ||
7812 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
7813 | * | |
5daf7ede | 7814 | * Description of X11_Class_Usage fix |
fdb8fb96 | 7815 | */ |
7816 | tSCC zX11_Class_UsageName[] = | |
d4c4b01d | 7817 | "x11_class_usage"; |
7818 | ||
fdb8fb96 | 7819 | /* |
7820 | * File name selection pattern | |
7821 | */ | |
7822 | tSCC zX11_Class_UsageList[] = | |
efb1b79b | 7823 | "|Xm/BaseClassI.h|"; |
fdb8fb96 | 7824 | /* |
7825 | * Machine/OS name selection pattern | |
7826 | */ | |
7827 | #define apzX11_Class_UsageMachs (const char**)NULL | |
7828 | ||
f74d6549 | 7829 | /* |
7830 | * content selection pattern - do fix if pattern found | |
7831 | */ | |
7832 | tSCC zX11_Class_UsageSelect0[] = | |
7833 | " class\\)"; | |
7834 | ||
fdb8fb96 | 7835 | /* |
c1b28c63 | 7836 | * content bypass pattern - skip fix if pattern found |
fdb8fb96 | 7837 | */ |
7838 | tSCC zX11_Class_UsageBypass0[] = | |
7839 | "__cplusplus"; | |
7840 | ||
f74d6549 | 7841 | #define X11_CLASS_USAGE_TEST_CT 2 |
2548396b | 7842 | static tTestDesc aX11_Class_UsageTests[] = { |
f74d6549 | 7843 | { TT_NEGREP, zX11_Class_UsageBypass0, (regex_t*)NULL }, |
7844 | { TT_EGREP, zX11_Class_UsageSelect0, (regex_t*)NULL }, }; | |
fdb8fb96 | 7845 | |
7846 | /* | |
7847 | * Fix Command Arguments for X11_Class_Usage | |
7848 | */ | |
2548396b | 7849 | static const char* apzX11_Class_UsagePatch[] = { |
f74d6549 | 7850 | "format", |
7851 | " c_class)", | |
fdb8fb96 | 7852 | (char*)NULL }; |
7853 | ||
7854 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
7855 | * | |
5daf7ede | 7856 | * Description of X11_New fix |
fdb8fb96 | 7857 | */ |
7858 | tSCC zX11_NewName[] = | |
d4c4b01d | 7859 | "x11_new"; |
7860 | ||
fdb8fb96 | 7861 | /* |
7862 | * File name selection pattern | |
7863 | */ | |
7864 | tSCC zX11_NewList[] = | |
efb1b79b | 7865 | "|Xm/Traversal.h|"; |
fdb8fb96 | 7866 | /* |
7867 | * Machine/OS name selection pattern | |
7868 | */ | |
7869 | #define apzX11_NewMachs (const char**)NULL | |
7870 | ||
7871 | /* | |
c1b28c63 | 7872 | * content bypass pattern - skip fix if pattern found |
fdb8fb96 | 7873 | */ |
7874 | tSCC zX11_NewBypass0[] = | |
7875 | "__cplusplus"; | |
7876 | ||
7877 | #define X11_NEW_TEST_CT 1 | |
2548396b | 7878 | static tTestDesc aX11_NewTests[] = { |
5daf7ede | 7879 | { TT_NEGREP, zX11_NewBypass0, (regex_t*)NULL }, }; |
fdb8fb96 | 7880 | |
7881 | /* | |
7882 | * Fix Command Arguments for X11_New | |
7883 | */ | |
2548396b | 7884 | static const char* apzX11_NewPatch[] = { "sed", |
efb1b79b | 7885 | "-e", "/Widget\told, new;/i\\\n\ |
7886 | #ifdef __cplusplus\\\n\ | |
7887 | \tWidget\told, c_new;\\\n\ | |
7888 | #else\n", | |
7889 | "-e", "/Widget\told, new;/a\\\n\ | |
7890 | #endif\n", | |
c1b28c63 | 7891 | "-e", "s/Widget new,/Widget c_new,/g", |
fdb8fb96 | 7892 | (char*)NULL }; |
7893 | ||
7894 | /* * * * * * * * * * * * * * * * * * * * * * * * * * | |
7895 | * | |
5daf7ede | 7896 | * Description of X11_Sprintf fix |
fdb8fb96 | 7897 | */ |
7898 | tSCC zX11_SprintfName[] = | |
d4c4b01d | 7899 | "x11_sprintf"; |
7900 | ||
fdb8fb96 | 7901 | /* |
7902 | * File name selection pattern | |
7903 | */ | |
7904 | tSCC zX11_SprintfList[] = | |
d6d7d999 | 7905 | "|X11/Xmu.h|X11/Xmu/Xmu.h|"; |
fdb8fb96 | 7906 | /* |
7907 | * Machine/OS name selection pattern | |
7908 | */ | |
7909 | #define apzX11_SprintfMachs (const char**)NULL | |
d6d7d999 | 7910 | |
7911 | /* | |
7912 | * content selection pattern - do fix if pattern found | |
7913 | */ | |
7914 | tSCC zX11_SprintfSelect0[] = | |
f74d6549 | 7915 | "^extern char \\*\tsprintf\\(\\);$"; |
d6d7d999 | 7916 | |
7917 | #define X11_SPRINTF_TEST_CT 1 | |
2548396b | 7918 | static tTestDesc aX11_SprintfTests[] = { |
d6d7d999 | 7919 | { TT_EGREP, zX11_SprintfSelect0, (regex_t*)NULL }, }; |
fdb8fb96 | 7920 | |
7921 | /* | |
7922 | * Fix Command Arguments for X11_Sprintf | |
7923 | */ | |
2548396b | 7924 | static const char* apzX11_SprintfPatch[] = { |
f74d6549 | 7925 | "format", |
7926 | "#ifndef __STDC__\n\ | |
7927 | %0\n\ | |
7928 | #endif /* !defined __STDC__ */", | |
fdb8fb96 | 7929 | (char*)NULL }; |
7930 | ||
d4c4b01d | 7931 | |
fdb8fb96 | 7932 | /* * * * * * * * * * * * * * * * * * * * * * * * * * |
7933 | * | |
7934 | * List of all fixes | |
7935 | */ | |
5dabcff3 | 7936 | #define REGEX_COUNT 238 |
2b5c5c15 | 7937 | #define MACH_LIST_SIZE_LIMIT 261 |
5dabcff3 | 7938 | #define FIX_COUNT 195 |
5daf7ede | 7939 | |
3072d11f | 7940 | /* |
7941 | * Enumerate the fixes | |
7942 | */ | |
7943 | typedef enum { | |
f2563b02 | 7944 | AAB_DARWIN7_9_LONG_DOUBLE_FUNCS_FIXIDX, |
7945 | AAB_DARWIN7_9_LONG_DOUBLE_FUNCS_2_FIXIDX, | |
3072d11f | 7946 | AAB_FD_ZERO_ASM_POSIX_TYPES_H_FIXIDX, |
7947 | AAB_FD_ZERO_GNU_TYPES_H_FIXIDX, | |
7948 | AAB_FD_ZERO_SELECTBITS_H_FIXIDX, | |
bffe0cfe | 7949 | AAB_SOLARIS_SYS_VARARGS_H_FIXIDX, |
b93c3ed1 | 7950 | AAB_SUN_MEMCPY_FIXIDX, |
7ab961ad | 7951 | AAB_ULTRIX_ANSI_COMPAT_FIXIDX, |
7952 | AAB_ULTRIX_LIMITS_FIXIDX, | |
7953 | AAB_ULTRIX_MEMORY_FIXIDX, | |
7954 | AAB_ULTRIX_STRING_FIXIDX, | |
3072d11f | 7955 | AIX_PTHREAD_FIXIDX, |
7956 | AIX_SYSMACHINE_FIXIDX, | |
7957 | AIX_SYSWAIT_FIXIDX, | |
85df6fdf | 7958 | AIX_SYSWAIT_2_FIXIDX, |
3072d11f | 7959 | AIX_VOLATILE_FIXIDX, |
7960 | ALPHA___ASSERT_FIXIDX, | |
219cff1b | 7961 | ALPHA___EXTERN_PREFIX_FIXIDX, |
6a80f466 | 7962 | ALPHA___EXTERN_PREFIX_STANDARDS_FIXIDX, |
7963 | ALPHA___EXTERN_PREFIX_SYS_STAT_FIXIDX, | |
03112946 | 7964 | ALPHA_ASSERT_FIXIDX, |
a3278934 | 7965 | ALPHA_BAD_LVAL_FIXIDX, |
3072d11f | 7966 | ALPHA_GETOPT_FIXIDX, |
7967 | ALPHA_PARENS_FIXIDX, | |
ecd34a08 | 7968 | ALPHA_PTHREAD_FIXIDX, |
89ebafd5 | 7969 | ALPHA_PTHREAD_GCC_FIXIDX, |
31e7bff5 | 7970 | ALPHA_PTHREAD_INIT_FIXIDX, |
3072d11f | 7971 | ALPHA_SBRK_FIXIDX, |
cc567216 | 7972 | ALPHA_WCHAR_FIXIDX, |
3072d11f | 7973 | AVOID_BOOL_DEFINE_FIXIDX, |
7974 | AVOID_BOOL_TYPE_FIXIDX, | |
7975 | AVOID_WCHAR_T_TYPE_FIXIDX, | |
3072d11f | 7976 | BAD_STRUCT_TERM_FIXIDX, |
7977 | BADQUOTE_FIXIDX, | |
7978 | BROKEN_ASSERT_STDIO_FIXIDX, | |
7979 | BROKEN_ASSERT_STDLIB_FIXIDX, | |
7980 | BROKEN_CABS_FIXIDX, | |
baee91be | 7981 | BROKEN_NAN_FIXIDX, |
d45e22c2 | 7982 | BSD_STDIO_ATTRS_CONFLICT_FIXIDX, |
3072d11f | 7983 | CTRL_QUOTES_DEF_FIXIDX, |
7984 | CTRL_QUOTES_USE_FIXIDX, | |
7985 | CXX_UNREADY_FIXIDX, | |
975d636c | 7986 | DARWIN_GCC4_BREAKAGE_FIXIDX, |
3067e435 | 7987 | DARWIN_PRIVATE_EXTERN_FIXIDX, |
3072d11f | 7988 | DEC_INTERN_ASM_FIXIDX, |
7989 | DJGPP_WCHAR_H_FIXIDX, | |
7990 | ECD_CURSOR_FIXIDX, | |
cee0cd59 | 7991 | EXCEPTION_STRUCTURE_FIXIDX, |
3072d11f | 7992 | FREEBSD_GCC3_BREAKAGE_FIXIDX, |
f9ac0b87 | 7993 | FREEBSD_GCC4_BREAKAGE_FIXIDX, |
3072d11f | 7994 | GNU_TYPES_FIXIDX, |
7995 | HP_INLINE_FIXIDX, | |
7996 | HP_SYSFILE_FIXIDX, | |
7b900f1a | 7997 | HPUX10_CPP_POW_INLINE_FIXIDX, |
c6738ff5 | 7998 | HPUX11_CPP_POW_INLINE_FIXIDX, |
ebf664b2 | 7999 | HPUX10_CTYPE_DECLARATIONS1_FIXIDX, |
8000 | HPUX10_CTYPE_DECLARATIONS2_FIXIDX, | |
37935110 | 8001 | HPUX10_STDIO_DECLARATIONS_FIXIDX, |
b93c3ed1 | 8002 | HPUX11_ABS_FIXIDX, |
ca58af19 | 8003 | HPUX11_FABSF_FIXIDX, |
c0854bd5 | 8004 | HPUX11_SIZE_T_FIXIDX, |
75dc2242 | 8005 | HPUX11_SNPRINTF_FIXIDX, |
3072d11f | 8006 | HPUX11_UINT32_C_FIXIDX, |
a0d38f0b | 8007 | HPUX11_VSNPRINTF_FIXIDX, |
3072d11f | 8008 | HPUX8_BOGUS_INLINES_FIXIDX, |
ebf664b2 | 8009 | HPUX_CTYPE_MACROS_FIXIDX, |
1589683c | 8010 | HPUX_HTONL_FIXIDX, |
ebf664b2 | 8011 | HPUX_LONG_DOUBLE_FIXIDX, |
3072d11f | 8012 | HPUX_SYSTIME_FIXIDX, |
5dabcff3 | 8013 | HPUX_SPU_INFO_FIXIDX, |
96eced21 | 8014 | HUGE_VAL_HEX_FIXIDX, |
8015 | HUGE_VALF_HEX_FIXIDX, | |
8016 | HUGE_VALL_HEX_FIXIDX, | |
3072d11f | 8017 | INT_ABORT_FREE_AND_EXIT_FIXIDX, |
8018 | IO_QUOTES_DEF_FIXIDX, | |
8019 | IO_QUOTES_USE_FIXIDX, | |
8020 | IP_MISSING_SEMI_FIXIDX, | |
4a050cc7 | 8021 | IRIX___RESTRICT_FIXIDX, |
248b5b6c | 8022 | IRIX___GENERIC1_FIXIDX, |
8023 | IRIX___GENERIC2_FIXIDX, | |
3072d11f | 8024 | IRIX_ASM_APOSTROPHE_FIXIDX, |
8025 | IRIX_LIMITS_CONST_FIXIDX, | |
609088c0 | 8026 | IRIX_SOCKLEN_T_FIXIDX, |
3072d11f | 8027 | IRIX_STDIO_VA_LIST_FIXIDX, |
609088c0 | 8028 | IRIX_WCSFTIME_FIXIDX, |
3072d11f | 8029 | ISC_FMOD_FIXIDX, |
8030 | ISC_OMITS_WITH_STDC_FIXIDX, | |
8031 | KANDR_CONCAT_FIXIDX, | |
283bb5ac | 8032 | LIBC1_G_VA_LIST_FIXIDX, |
ca58af19 | 8033 | LIBC1_IFDEFD_MEMX_FIXIDX, |
d92db5b6 | 8034 | LINUX_IA64_UCONTEXT_FIXIDX, |
435ea059 | 8035 | LYNXOS_NO_WARNING_IN_SYS_TIME_H_FIXIDX, |
8036 | LYNXOS_MISSING_PUTENV_FIXIDX, | |
3072d11f | 8037 | MACHINE_ANSI_H_VA_LIST_FIXIDX, |
8038 | MACHINE_NAME_FIXIDX, | |
8039 | MATH_EXCEPTION_FIXIDX, | |
8040 | MATH_HUGE_VAL_FROM_DBL_MAX_FIXIDX, | |
3072d11f | 8041 | NESTED_AUTH_DES_FIXIDX, |
8042 | NESTED_MOTOROLA_FIXIDX, | |
8043 | NESTED_SYS_LIMITS_FIXIDX, | |
81a897fb | 8044 | NETBSD_EXTRA_SEMICOLON_FIXIDX, |
3072d11f | 8045 | NEXT_MATH_PREFIX_FIXIDX, |
8046 | NEXT_TEMPLATE_FIXIDX, | |
8047 | NEXT_VOLITILE_FIXIDX, | |
8048 | NEXT_WAIT_UNION_FIXIDX, | |
8049 | NODEENT_SYNTAX_FIXIDX, | |
129b92e3 | 8050 | OBSTACK_LVALUE_CAST_FIXIDX, |
3072d11f | 8051 | OSF_NAMESPACE_A_FIXIDX, |
8052 | OSF_NAMESPACE_C_FIXIDX, | |
8053 | PTHREAD_PAGE_SIZE_FIXIDX, | |
a11c2c4d | 8054 | PTHREAD_INCOMPLETE_STRUCT_ARGUMENT_FIXIDX, |
3072d11f | 8055 | READ_RET_TYPE_FIXIDX, |
e68aa18b | 8056 | RPC_XDR_LVALUE_CAST_A_FIXIDX, |
8057 | RPC_XDR_LVALUE_CAST_B_FIXIDX, | |
3072d11f | 8058 | RS6000_DOUBLE_FIXIDX, |
8059 | RS6000_FCHMOD_FIXIDX, | |
8060 | RS6000_PARAM_FIXIDX, | |
3c04ceca | 8061 | SCO_MATH_FIXIDX, |
8062 | SCO_REGSET_FIXIDX, | |
3072d11f | 8063 | SCO_STATIC_FUNC_FIXIDX, |
8064 | SCO_UTIME_FIXIDX, | |
e849ea70 | 8065 | SOLARIS_MATH_1_FIXIDX, |
8066 | SOLARIS_MATH_2_FIXIDX, | |
8067 | SOLARIS_MATH_3_FIXIDX, | |
8068 | SOLARIS_MATH_4_FIXIDX, | |
8069 | SOLARIS_MATH_5_FIXIDX, | |
8070 | SOLARIS_MATH_6_FIXIDX, | |
8071 | SOLARIS_MATH_7_FIXIDX, | |
8072 | SOLARIS_MATH_8_FIXIDX, | |
8073 | SOLARIS_MATH_9_FIXIDX, | |
4a050cc7 | 8074 | SOLARIS_MUTEX_INIT_1_FIXIDX, |
8075 | SOLARIS_MUTEX_INIT_2_FIXIDX, | |
4dbe9809 | 8076 | SOLARIS_SOCKET_FIXIDX, |
91eb7bbc | 8077 | SOLARIS_STDIO_TAG_FIXIDX, |
4dbe9809 | 8078 | SOLARIS_UNISTD_FIXIDX, |
b924735b | 8079 | SOLARIS_WIDEC_FIXIDX, |
3072d11f | 8080 | STATSSWTCH_FIXIDX, |
8081 | STDIO_STDARG_H_FIXIDX, | |
8082 | STDIO_VA_LIST_FIXIDX, | |
925b9291 | 8083 | STDIO_VA_LIST_CLIENTS_FIXIDX, |
3072d11f | 8084 | STRICT_ANSI_NOT_FIXIDX, |
8085 | STRICT_ANSI_NOT_CTD_FIXIDX, | |
8086 | STRICT_ANSI_ONLY_FIXIDX, | |
8087 | STRUCT_FILE_FIXIDX, | |
8088 | STRUCT_SOCKADDR_FIXIDX, | |
8089 | SUN_AUTH_PROTO_FIXIDX, | |
8090 | SUN_BOGUS_IFDEF_FIXIDX, | |
8091 | SUN_CATMACRO_FIXIDX, | |
8092 | SUN_MALLOC_FIXIDX, | |
8093 | SUN_RUSERS_SEMI_FIXIDX, | |
8094 | SUN_SIGNAL_FIXIDX, | |
3072d11f | 8095 | SUNOS_STRLEN_FIXIDX, |
3c04ceca | 8096 | SVR4_DISABLE_OPT_FIXIDX, |
3072d11f | 8097 | SVR4_GETCWD_FIXIDX, |
4037751e | 8098 | SVR4_KRNL_FIXIDX, |
3072d11f | 8099 | SVR4_PROFIL_FIXIDX, |
d23689b2 | 8100 | SVR4_SIGHANDLER_TYPE_FIXIDX, |
630af039 | 8101 | SVR4_UNDECLARED_GETRNGE_FIXIDX, |
3072d11f | 8102 | SYSV68_STRING_FIXIDX, |
8103 | SYSZ_STDLIB_FOR_SUN_FIXIDX, | |
2a6f0f81 | 8104 | THREAD_KEYWORD_FIXIDX, |
3072d11f | 8105 | TINFO_CPLUSPLUS_FIXIDX, |
7ab961ad | 8106 | ULTRIX_ATEXIT_PARAM_FIXIDX, |
8107 | ULTRIX_ATOF_PARAM_FIXIDX, | |
3072d11f | 8108 | ULTRIX_CONST_FIXIDX, |
8109 | ULTRIX_CONST2_FIXIDX, | |
37935110 | 8110 | ULTRIX_CONST3_FIXIDX, |
7ab961ad | 8111 | ULTRIX_FIX_FIXPROTO_FIXIDX, |
8112 | ULTRIX_IFDEF_FIXIDX, | |
37935110 | 8113 | ULTRIX_LOCALE_FIXIDX, |
7ab961ad | 8114 | ULTRIX_MATH_IFDEF_FIXIDX, |
8115 | ULTRIX_NESTED_IOCTL_FIXIDX, | |
8116 | ULTRIX_NESTED_SVC_FIXIDX, | |
8117 | ULTRIX_STAT_FIXIDX, | |
8118 | ULTRIX_STATIC_FIXIDX, | |
37935110 | 8119 | ULTRIX_STDLIB_FIXIDX, |
7ab961ad | 8120 | ULTRIX_STRINGS_FIXIDX, |
37935110 | 8121 | ULTRIX_STRINGS2_FIXIDX, |
8122 | ULTRIX_SYS_TIME_FIXIDX, | |
8123 | ULTRIX_UNISTD_FIXIDX, | |
9caef960 | 8124 | UNICOSMK_RESTRICT_FIXIDX, |
3072d11f | 8125 | UW7_BYTEORDER_FIX_FIXIDX, |
8126 | VA_I960_MACRO_FIXIDX, | |
8127 | VOID_NULL_FIXIDX, | |
8128 | VXWORKS_GCC_PROBLEM_FIXIDX, | |
8129 | VXWORKS_NEEDS_VXTYPES_FIXIDX, | |
8130 | VXWORKS_NEEDS_VXWORKS_FIXIDX, | |
8131 | VXWORKS_TIME_FIXIDX, | |
5a268127 | 8132 | WINDISS_MATH1_FIXIDX, |
8133 | WINDISS_MATH2_FIXIDX, | |
8134 | WINDISS_VALIST_FIXIDX, | |
3072d11f | 8135 | X11_CLASS_FIXIDX, |
8136 | X11_CLASS_USAGE_FIXIDX, | |
8137 | X11_NEW_FIXIDX, | |
8138 | X11_SPRINTF_FIXIDX | |
8139 | } t_fixinc_idx; | |
8140 | ||
c1b28c63 | 8141 | tFixDesc fixDescList[ FIX_COUNT ] = { |
f2563b02 | 8142 | { zAab_Darwin7_9_Long_Double_FuncsName, zAab_Darwin7_9_Long_Double_FuncsList, |
8143 | apzAab_Darwin7_9_Long_Double_FuncsMachs, | |
8144 | AAB_DARWIN7_9_LONG_DOUBLE_FUNCS_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT, | |
8145 | aAab_Darwin7_9_Long_Double_FuncsTests, apzAab_Darwin7_9_Long_Double_FuncsPatch, 0 }, | |
8146 | ||
8147 | { zAab_Darwin7_9_Long_Double_Funcs_2Name, zAab_Darwin7_9_Long_Double_Funcs_2List, | |
8148 | apzAab_Darwin7_9_Long_Double_Funcs_2Machs, | |
8149 | AAB_DARWIN7_9_LONG_DOUBLE_FUNCS_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
8150 | aAab_Darwin7_9_Long_Double_Funcs_2Tests, apzAab_Darwin7_9_Long_Double_Funcs_2Patch, 0 }, | |
8151 | ||
bb304030 | 8152 | { zAab_Fd_Zero_Asm_Posix_Types_HName, zAab_Fd_Zero_Asm_Posix_Types_HList, |
6e791f25 | 8153 | apzAab_Fd_Zero_Asm_Posix_Types_HMachs, |
bb304030 | 8154 | AAB_FD_ZERO_ASM_POSIX_TYPES_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT, |
ee70a29d | 8155 | aAab_Fd_Zero_Asm_Posix_Types_HTests, apzAab_Fd_Zero_Asm_Posix_Types_HPatch, 0 }, |
e26c299a | 8156 | |
bb304030 | 8157 | { zAab_Fd_Zero_Gnu_Types_HName, zAab_Fd_Zero_Gnu_Types_HList, |
6e791f25 | 8158 | apzAab_Fd_Zero_Gnu_Types_HMachs, |
bb304030 | 8159 | AAB_FD_ZERO_GNU_TYPES_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT, |
ee70a29d | 8160 | aAab_Fd_Zero_Gnu_Types_HTests, apzAab_Fd_Zero_Gnu_Types_HPatch, 0 }, |
e26c299a | 8161 | |
bb304030 | 8162 | { zAab_Fd_Zero_Selectbits_HName, zAab_Fd_Zero_Selectbits_HList, |
6e791f25 | 8163 | apzAab_Fd_Zero_Selectbits_HMachs, |
bb304030 | 8164 | AAB_FD_ZERO_SELECTBITS_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT, |
ee70a29d | 8165 | aAab_Fd_Zero_Selectbits_HTests, apzAab_Fd_Zero_Selectbits_HPatch, 0 }, |
e26c299a | 8166 | |
bffe0cfe | 8167 | { zAab_Solaris_Sys_Varargs_HName, zAab_Solaris_Sys_Varargs_HList, |
8168 | apzAab_Solaris_Sys_Varargs_HMachs, | |
8169 | AAB_SOLARIS_SYS_VARARGS_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT, | |
8170 | aAab_Solaris_Sys_Varargs_HTests, apzAab_Solaris_Sys_Varargs_HPatch, 0 }, | |
8171 | ||
b93c3ed1 | 8172 | { zAab_Sun_MemcpyName, zAab_Sun_MemcpyList, |
8173 | apzAab_Sun_MemcpyMachs, | |
8174 | AAB_SUN_MEMCPY_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT, | |
8175 | aAab_Sun_MemcpyTests, apzAab_Sun_MemcpyPatch, 0 }, | |
8176 | ||
7ab961ad | 8177 | { zAab_Ultrix_Ansi_CompatName, zAab_Ultrix_Ansi_CompatList, |
8178 | apzAab_Ultrix_Ansi_CompatMachs, | |
8179 | AAB_ULTRIX_ANSI_COMPAT_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT, | |
8180 | aAab_Ultrix_Ansi_CompatTests, apzAab_Ultrix_Ansi_CompatPatch, 0 }, | |
8181 | ||
8182 | { zAab_Ultrix_LimitsName, zAab_Ultrix_LimitsList, | |
8183 | apzAab_Ultrix_LimitsMachs, | |
8184 | AAB_ULTRIX_LIMITS_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT, | |
8185 | aAab_Ultrix_LimitsTests, apzAab_Ultrix_LimitsPatch, 0 }, | |
8186 | ||
8187 | { zAab_Ultrix_MemoryName, zAab_Ultrix_MemoryList, | |
8188 | apzAab_Ultrix_MemoryMachs, | |
8189 | AAB_ULTRIX_MEMORY_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT, | |
8190 | aAab_Ultrix_MemoryTests, apzAab_Ultrix_MemoryPatch, 0 }, | |
8191 | ||
8192 | { zAab_Ultrix_StringName, zAab_Ultrix_StringList, | |
8193 | apzAab_Ultrix_StringMachs, | |
8194 | AAB_ULTRIX_STRING_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT, | |
8195 | aAab_Ultrix_StringTests, apzAab_Ultrix_StringPatch, 0 }, | |
8196 | ||
e494b1bb | 8197 | { zAix_PthreadName, zAix_PthreadList, |
8198 | apzAix_PthreadMachs, | |
8199 | AIX_PTHREAD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
ee70a29d | 8200 | aAix_PthreadTests, apzAix_PthreadPatch, 0 }, |
e494b1bb | 8201 | |
8202 | { zAix_SysmachineName, zAix_SysmachineList, | |
8203 | apzAix_SysmachineMachs, | |
8204 | AIX_SYSMACHINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
ee70a29d | 8205 | aAix_SysmachineTests, apzAix_SysmachinePatch, 0 }, |
e494b1bb | 8206 | |
fdb8fb96 | 8207 | { zAix_SyswaitName, zAix_SyswaitList, |
6e791f25 | 8208 | apzAix_SyswaitMachs, |
49b4955b | 8209 | AIX_SYSWAIT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
ee70a29d | 8210 | aAix_SyswaitTests, apzAix_SyswaitPatch, 0 }, |
fdb8fb96 | 8211 | |
85df6fdf | 8212 | { zAix_Syswait_2Name, zAix_Syswait_2List, |
8213 | apzAix_Syswait_2Machs, | |
8214 | AIX_SYSWAIT_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
8215 | aAix_Syswait_2Tests, apzAix_Syswait_2Patch, 0 }, | |
8216 | ||
fdb8fb96 | 8217 | { zAix_VolatileName, zAix_VolatileList, |
6e791f25 | 8218 | apzAix_VolatileMachs, |
472aa368 | 8219 | AIX_VOLATILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
ee70a29d | 8220 | aAix_VolatileTests, apzAix_VolatilePatch, 0 }, |
fdb8fb96 | 8221 | |
d1ec871e | 8222 | { zAlpha___AssertName, zAlpha___AssertList, |
8223 | apzAlpha___AssertMachs, | |
8224 | ALPHA___ASSERT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
8225 | aAlpha___AssertTests, apzAlpha___AssertPatch, 0 }, | |
8226 | ||
219cff1b | 8227 | { zAlpha___Extern_PrefixName, zAlpha___Extern_PrefixList, |
8228 | apzAlpha___Extern_PrefixMachs, | |
8229 | ALPHA___EXTERN_PREFIX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
8230 | aAlpha___Extern_PrefixTests, apzAlpha___Extern_PrefixPatch, 0 }, | |
8231 | ||
6a80f466 | 8232 | { zAlpha___Extern_Prefix_StandardsName, zAlpha___Extern_Prefix_StandardsList, |
8233 | apzAlpha___Extern_Prefix_StandardsMachs, | |
8234 | ALPHA___EXTERN_PREFIX_STANDARDS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
8235 | aAlpha___Extern_Prefix_StandardsTests, apzAlpha___Extern_Prefix_StandardsPatch, 0 }, | |
8236 | ||
8237 | { zAlpha___Extern_Prefix_Sys_StatName, zAlpha___Extern_Prefix_Sys_StatList, | |
8238 | apzAlpha___Extern_Prefix_Sys_StatMachs, | |
8239 | ALPHA___EXTERN_PREFIX_SYS_STAT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
8240 | aAlpha___Extern_Prefix_Sys_StatTests, apzAlpha___Extern_Prefix_Sys_StatPatch, 0 }, | |
8241 | ||
03112946 | 8242 | { zAlpha_AssertName, zAlpha_AssertList, |
8243 | apzAlpha_AssertMachs, | |
8244 | ALPHA_ASSERT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
8245 | aAlpha_AssertTests, apzAlpha_AssertPatch, 0 }, | |
8246 | ||
a3278934 | 8247 | { zAlpha_Bad_LvalName, zAlpha_Bad_LvalList, |
8248 | apzAlpha_Bad_LvalMachs, | |
8249 | ALPHA_BAD_LVAL_TEST_CT, FD_MACH_ONLY, | |
8250 | aAlpha_Bad_LvalTests, apzAlpha_Bad_LvalPatch, 0 }, | |
8251 | ||
fdb8fb96 | 8252 | { zAlpha_GetoptName, zAlpha_GetoptList, |
6e791f25 | 8253 | apzAlpha_GetoptMachs, |
472aa368 | 8254 | ALPHA_GETOPT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
ee70a29d | 8255 | aAlpha_GetoptTests, apzAlpha_GetoptPatch, 0 }, |
fdb8fb96 | 8256 | |
8257 | { zAlpha_ParensName, zAlpha_ParensList, | |
6e791f25 | 8258 | apzAlpha_ParensMachs, |
472aa368 | 8259 | ALPHA_PARENS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
ee70a29d | 8260 | aAlpha_ParensTests, apzAlpha_ParensPatch, 0 }, |
fdb8fb96 | 8261 | |
ecd34a08 | 8262 | { zAlpha_PthreadName, zAlpha_PthreadList, |
8263 | apzAlpha_PthreadMachs, | |
8264 | ALPHA_PTHREAD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
8265 | aAlpha_PthreadTests, apzAlpha_PthreadPatch, 0 }, | |
8266 | ||
89ebafd5 | 8267 | { zAlpha_Pthread_GccName, zAlpha_Pthread_GccList, |
8268 | apzAlpha_Pthread_GccMachs, | |
8269 | ALPHA_PTHREAD_GCC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
8270 | aAlpha_Pthread_GccTests, apzAlpha_Pthread_GccPatch, 0 }, | |
8271 | ||
31e7bff5 | 8272 | { zAlpha_Pthread_InitName, zAlpha_Pthread_InitList, |
8273 | apzAlpha_Pthread_InitMachs, | |
8274 | ALPHA_PTHREAD_INIT_TEST_CT, FD_MACH_ONLY, | |
8275 | aAlpha_Pthread_InitTests, apzAlpha_Pthread_InitPatch, 0 }, | |
8276 | ||
fdb8fb96 | 8277 | { zAlpha_SbrkName, zAlpha_SbrkList, |
6e791f25 | 8278 | apzAlpha_SbrkMachs, |
472aa368 | 8279 | ALPHA_SBRK_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
ee70a29d | 8280 | aAlpha_SbrkTests, apzAlpha_SbrkPatch, 0 }, |
fdb8fb96 | 8281 | |
cc567216 | 8282 | { zAlpha_WcharName, zAlpha_WcharList, |
8283 | apzAlpha_WcharMachs, | |
8284 | ALPHA_WCHAR_TEST_CT, FD_MACH_ONLY, | |
8285 | aAlpha_WcharTests, apzAlpha_WcharPatch, 0 }, | |
8286 | ||
2c59c6d3 | 8287 | { zAvoid_Bool_DefineName, zAvoid_Bool_DefineList, |
8288 | apzAvoid_Bool_DefineMachs, | |
8289 | AVOID_BOOL_DEFINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
ee70a29d | 8290 | aAvoid_Bool_DefineTests, apzAvoid_Bool_DefinePatch, 0 }, |
2c59c6d3 | 8291 | |
8292 | { zAvoid_Bool_TypeName, zAvoid_Bool_TypeList, | |
8293 | apzAvoid_Bool_TypeMachs, | |
8294 | AVOID_BOOL_TYPE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
ee70a29d | 8295 | aAvoid_Bool_TypeTests, apzAvoid_Bool_TypePatch, 0 }, |
fdb8fb96 | 8296 | |
7ab30fe8 | 8297 | { zAvoid_Wchar_T_TypeName, zAvoid_Wchar_T_TypeList, |
8298 | apzAvoid_Wchar_T_TypeMachs, | |
8299 | AVOID_WCHAR_T_TYPE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
ee70a29d | 8300 | aAvoid_Wchar_T_TypeTests, apzAvoid_Wchar_T_TypePatch, 0 }, |
7ab30fe8 | 8301 | |
fdb8fb96 | 8302 | { zBad_Struct_TermName, zBad_Struct_TermList, |
6e791f25 | 8303 | apzBad_Struct_TermMachs, |
2c59c6d3 | 8304 | BAD_STRUCT_TERM_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
ee70a29d | 8305 | aBad_Struct_TermTests, apzBad_Struct_TermPatch, 0 }, |
fdb8fb96 | 8306 | |
8307 | { zBadquoteName, zBadquoteList, | |
6e791f25 | 8308 | apzBadquoteMachs, |
2c59c6d3 | 8309 | BADQUOTE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
ee70a29d | 8310 | aBadquoteTests, apzBadquotePatch, 0 }, |
fdb8fb96 | 8311 | |
fdb8fb96 | 8312 | { zBroken_Assert_StdioName, zBroken_Assert_StdioList, |
6e791f25 | 8313 | apzBroken_Assert_StdioMachs, |
e6650807 | 8314 | BROKEN_ASSERT_STDIO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
ee70a29d | 8315 | aBroken_Assert_StdioTests, apzBroken_Assert_StdioPatch, 0 }, |
fdb8fb96 | 8316 | |
8317 | { zBroken_Assert_StdlibName, zBroken_Assert_StdlibList, | |
6e791f25 | 8318 | apzBroken_Assert_StdlibMachs, |
e6650807 | 8319 | BROKEN_ASSERT_STDLIB_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
ee70a29d | 8320 | aBroken_Assert_StdlibTests, apzBroken_Assert_StdlibPatch, 0 }, |
fdb8fb96 | 8321 | |
58d8674b | 8322 | { zBroken_CabsName, zBroken_CabsList, |
6e791f25 | 8323 | apzBroken_CabsMachs, |
2c59c6d3 | 8324 | BROKEN_CABS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
ee70a29d | 8325 | aBroken_CabsTests, apzBroken_CabsPatch, 0 }, |
58d8674b | 8326 | |
baee91be | 8327 | { zBroken_NanName, zBroken_NanList, |
8328 | apzBroken_NanMachs, | |
8329 | BROKEN_NAN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
8330 | aBroken_NanTests, apzBroken_NanPatch, 0 }, | |
8331 | ||
d45e22c2 | 8332 | { zBsd_Stdio_Attrs_ConflictName, zBsd_Stdio_Attrs_ConflictList, |
8333 | apzBsd_Stdio_Attrs_ConflictMachs, | |
8334 | BSD_STDIO_ATTRS_CONFLICT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
8335 | aBsd_Stdio_Attrs_ConflictTests, apzBsd_Stdio_Attrs_ConflictPatch, 0 }, | |
8336 | ||
cfe5be71 | 8337 | { zCtrl_Quotes_DefName, zCtrl_Quotes_DefList, |
8338 | apzCtrl_Quotes_DefMachs, | |
8339 | CTRL_QUOTES_DEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
ee70a29d | 8340 | aCtrl_Quotes_DefTests, apzCtrl_Quotes_DefPatch, 0 }, |
cfe5be71 | 8341 | |
8342 | { zCtrl_Quotes_UseName, zCtrl_Quotes_UseList, | |
8343 | apzCtrl_Quotes_UseMachs, | |
8344 | CTRL_QUOTES_USE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
ee70a29d | 8345 | aCtrl_Quotes_UseTests, apzCtrl_Quotes_UsePatch, 0 }, |
cfe5be71 | 8346 | |
8347 | { zCxx_UnreadyName, zCxx_UnreadyList, | |
8348 | apzCxx_UnreadyMachs, | |
8349 | CXX_UNREADY_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
ee70a29d | 8350 | aCxx_UnreadyTests, apzCxx_UnreadyPatch, 0 }, |
cfe5be71 | 8351 | |
975d636c | 8352 | { zDarwin_Gcc4_BreakageName, zDarwin_Gcc4_BreakageList, |
8353 | apzDarwin_Gcc4_BreakageMachs, | |
8354 | DARWIN_GCC4_BREAKAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
8355 | aDarwin_Gcc4_BreakageTests, apzDarwin_Gcc4_BreakagePatch, 0 }, | |
8356 | ||
3067e435 | 8357 | { zDarwin_Private_ExternName, zDarwin_Private_ExternList, |
8358 | apzDarwin_Private_ExternMachs, | |
8359 | DARWIN_PRIVATE_EXTERN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
8360 | aDarwin_Private_ExternTests, apzDarwin_Private_ExternPatch, 0 }, | |
8361 | ||
38ebab8a | 8362 | { zDec_Intern_AsmName, zDec_Intern_AsmList, |
6e791f25 | 8363 | apzDec_Intern_AsmMachs, |
38ebab8a | 8364 | DEC_INTERN_ASM_TEST_CT, FD_MACH_ONLY, |
ee70a29d | 8365 | aDec_Intern_AsmTests, apzDec_Intern_AsmPatch, 0 }, |
38ebab8a | 8366 | |
8c74272d | 8367 | { zDjgpp_Wchar_HName, zDjgpp_Wchar_HList, |
8368 | apzDjgpp_Wchar_HMachs, | |
8369 | DJGPP_WCHAR_H_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
8370 | aDjgpp_Wchar_HTests, apzDjgpp_Wchar_HPatch, 0 }, | |
8371 | ||
fdb8fb96 | 8372 | { zEcd_CursorName, zEcd_CursorList, |
6e791f25 | 8373 | apzEcd_CursorMachs, |
2c59c6d3 | 8374 | ECD_CURSOR_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
ee70a29d | 8375 | aEcd_CursorTests, apzEcd_CursorPatch, 0 }, |
fdb8fb96 | 8376 | |
cee0cd59 | 8377 | { zException_StructureName, zException_StructureList, |
8378 | apzException_StructureMachs, | |
8379 | EXCEPTION_STRUCTURE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
8380 | aException_StructureTests, apzException_StructurePatch, 0 }, | |
8381 | ||
65a92405 | 8382 | { zFreebsd_Gcc3_BreakageName, zFreebsd_Gcc3_BreakageList, |
8383 | apzFreebsd_Gcc3_BreakageMachs, | |
8384 | FREEBSD_GCC3_BREAKAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
8385 | aFreebsd_Gcc3_BreakageTests, apzFreebsd_Gcc3_BreakagePatch, 0 }, | |
8386 | ||
f9ac0b87 | 8387 | { zFreebsd_Gcc4_BreakageName, zFreebsd_Gcc4_BreakageList, |
8388 | apzFreebsd_Gcc4_BreakageMachs, | |
8389 | FREEBSD_GCC4_BREAKAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
8390 | aFreebsd_Gcc4_BreakageTests, apzFreebsd_Gcc4_BreakagePatch, 0 }, | |
8391 | ||
3072d11f | 8392 | { zGnu_TypesName, zGnu_TypesList, |
8393 | apzGnu_TypesMachs, | |
09a31484 | 8394 | GNU_TYPES_TEST_CT, FD_MACH_IFNOT | FD_SUBROUTINE, |
3072d11f | 8395 | aGnu_TypesTests, apzGnu_TypesPatch, 0 }, |
8396 | ||
fdb8fb96 | 8397 | { zHp_InlineName, zHp_InlineList, |
6e791f25 | 8398 | apzHp_InlineMachs, |
2c59c6d3 | 8399 | HP_INLINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
ee70a29d | 8400 | aHp_InlineTests, apzHp_InlinePatch, 0 }, |
fdb8fb96 | 8401 | |
8402 | { zHp_SysfileName, zHp_SysfileList, | |
6e791f25 | 8403 | apzHp_SysfileMachs, |
2c59c6d3 | 8404 | HP_SYSFILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
ee70a29d | 8405 | aHp_SysfileTests, apzHp_SysfilePatch, 0 }, |
fdb8fb96 | 8406 | |
7b900f1a | 8407 | { zHpux10_Cpp_Pow_InlineName, zHpux10_Cpp_Pow_InlineList, |
8408 | apzHpux10_Cpp_Pow_InlineMachs, | |
8409 | HPUX10_CPP_POW_INLINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
8410 | aHpux10_Cpp_Pow_InlineTests, apzHpux10_Cpp_Pow_InlinePatch, 0 }, | |
8411 | ||
c6738ff5 | 8412 | { zHpux11_Cpp_Pow_InlineName, zHpux11_Cpp_Pow_InlineList, |
8413 | apzHpux11_Cpp_Pow_InlineMachs, | |
8414 | HPUX11_CPP_POW_INLINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
8415 | aHpux11_Cpp_Pow_InlineTests, apzHpux11_Cpp_Pow_InlinePatch, 0 }, | |
8416 | ||
ebf664b2 | 8417 | { zHpux10_Ctype_Declarations1Name, zHpux10_Ctype_Declarations1List, |
8418 | apzHpux10_Ctype_Declarations1Machs, | |
8419 | HPUX10_CTYPE_DECLARATIONS1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
8420 | aHpux10_Ctype_Declarations1Tests, apzHpux10_Ctype_Declarations1Patch, 0 }, | |
8421 | ||
8422 | { zHpux10_Ctype_Declarations2Name, zHpux10_Ctype_Declarations2List, | |
8423 | apzHpux10_Ctype_Declarations2Machs, | |
8424 | HPUX10_CTYPE_DECLARATIONS2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
8425 | aHpux10_Ctype_Declarations2Tests, apzHpux10_Ctype_Declarations2Patch, 0 }, | |
8426 | ||
37935110 | 8427 | { zHpux10_Stdio_DeclarationsName, zHpux10_Stdio_DeclarationsList, |
8428 | apzHpux10_Stdio_DeclarationsMachs, | |
8429 | HPUX10_STDIO_DECLARATIONS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
8430 | aHpux10_Stdio_DeclarationsTests, apzHpux10_Stdio_DeclarationsPatch, 0 }, | |
8431 | ||
b93c3ed1 | 8432 | { zHpux11_AbsName, zHpux11_AbsList, |
8433 | apzHpux11_AbsMachs, | |
4842028b | 8434 | HPUX11_ABS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
b93c3ed1 | 8435 | aHpux11_AbsTests, apzHpux11_AbsPatch, 0 }, |
8436 | ||
ca58af19 | 8437 | { zHpux11_FabsfName, zHpux11_FabsfList, |
8438 | apzHpux11_FabsfMachs, | |
8439 | HPUX11_FABSF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
8440 | aHpux11_FabsfTests, apzHpux11_FabsfPatch, 0 }, | |
8441 | ||
c0854bd5 | 8442 | { zHpux11_Size_TName, zHpux11_Size_TList, |
8443 | apzHpux11_Size_TMachs, | |
8444 | HPUX11_SIZE_T_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
8445 | aHpux11_Size_TTests, apzHpux11_Size_TPatch, 0 }, | |
8446 | ||
75dc2242 | 8447 | { zHpux11_SnprintfName, zHpux11_SnprintfList, |
8448 | apzHpux11_SnprintfMachs, | |
8449 | HPUX11_SNPRINTF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
8450 | aHpux11_SnprintfTests, apzHpux11_SnprintfPatch, 0 }, | |
8451 | ||
9e024bbb | 8452 | { zHpux11_Uint32_CName, zHpux11_Uint32_CList, |
6e791f25 | 8453 | apzHpux11_Uint32_CMachs, |
cfe5be71 | 8454 | HPUX11_UINT32_C_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
ee70a29d | 8455 | aHpux11_Uint32_CTests, apzHpux11_Uint32_CPatch, 0 }, |
9e024bbb | 8456 | |
a0d38f0b | 8457 | { zHpux11_VsnprintfName, zHpux11_VsnprintfList, |
8458 | apzHpux11_VsnprintfMachs, | |
8459 | HPUX11_VSNPRINTF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
8460 | aHpux11_VsnprintfTests, apzHpux11_VsnprintfPatch, 0 }, | |
8461 | ||
2c59c6d3 | 8462 | { zHpux8_Bogus_InlinesName, zHpux8_Bogus_InlinesList, |
8463 | apzHpux8_Bogus_InlinesMachs, | |
8464 | HPUX8_BOGUS_INLINES_TEST_CT, FD_MACH_ONLY, | |
ee70a29d | 8465 | aHpux8_Bogus_InlinesTests, apzHpux8_Bogus_InlinesPatch, 0 }, |
2c59c6d3 | 8466 | |
ebf664b2 | 8467 | { zHpux_Ctype_MacrosName, zHpux_Ctype_MacrosList, |
8468 | apzHpux_Ctype_MacrosMachs, | |
8469 | HPUX_CTYPE_MACROS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
8470 | aHpux_Ctype_MacrosTests, apzHpux_Ctype_MacrosPatch, 0 }, | |
8471 | ||
1589683c | 8472 | { zHpux_HtonlName, zHpux_HtonlList, |
8473 | apzHpux_HtonlMachs, | |
8474 | HPUX_HTONL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
8475 | aHpux_HtonlTests, apzHpux_HtonlPatch, 0 }, | |
8476 | ||
ebf664b2 | 8477 | { zHpux_Long_DoubleName, zHpux_Long_DoubleList, |
8478 | apzHpux_Long_DoubleMachs, | |
8479 | HPUX_LONG_DOUBLE_TEST_CT, FD_MACH_ONLY, | |
8480 | aHpux_Long_DoubleTests, apzHpux_Long_DoublePatch, 0 }, | |
8481 | ||
3072d11f | 8482 | { zHpux_SystimeName, zHpux_SystimeList, |
8483 | apzHpux_SystimeMachs, | |
8484 | HPUX_SYSTIME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
8485 | aHpux_SystimeTests, apzHpux_SystimePatch, 0 }, | |
8486 | ||
5dabcff3 | 8487 | { zHpux_Spu_InfoName, zHpux_Spu_InfoList, |
8488 | apzHpux_Spu_InfoMachs, | |
8489 | HPUX_SPU_INFO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
8490 | aHpux_Spu_InfoTests, apzHpux_Spu_InfoPatch, 0 }, | |
8491 | ||
96eced21 | 8492 | { zHuge_Val_HexName, zHuge_Val_HexList, |
8493 | apzHuge_Val_HexMachs, | |
8494 | HUGE_VAL_HEX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
8495 | aHuge_Val_HexTests, apzHuge_Val_HexPatch, 0 }, | |
8496 | ||
8497 | { zHuge_Valf_HexName, zHuge_Valf_HexList, | |
8498 | apzHuge_Valf_HexMachs, | |
8499 | HUGE_VALF_HEX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
8500 | aHuge_Valf_HexTests, apzHuge_Valf_HexPatch, 0 }, | |
8501 | ||
8502 | { zHuge_Vall_HexName, zHuge_Vall_HexList, | |
8503 | apzHuge_Vall_HexMachs, | |
8504 | HUGE_VALL_HEX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
8505 | aHuge_Vall_HexTests, apzHuge_Vall_HexPatch, 0 }, | |
8506 | ||
038a3e7a | 8507 | { zInt_Abort_Free_And_ExitName, zInt_Abort_Free_And_ExitList, |
8508 | apzInt_Abort_Free_And_ExitMachs, | |
8509 | INT_ABORT_FREE_AND_EXIT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
ee70a29d | 8510 | aInt_Abort_Free_And_ExitTests, apzInt_Abort_Free_And_ExitPatch, 0 }, |
038a3e7a | 8511 | |
49b4955b | 8512 | { zIo_Quotes_DefName, zIo_Quotes_DefList, |
8513 | apzIo_Quotes_DefMachs, | |
8514 | IO_QUOTES_DEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
ee70a29d | 8515 | aIo_Quotes_DefTests, apzIo_Quotes_DefPatch, 0 }, |
49b4955b | 8516 | |
472aa368 | 8517 | { zIo_Quotes_UseName, zIo_Quotes_UseList, |
8518 | apzIo_Quotes_UseMachs, | |
8519 | IO_QUOTES_USE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
ee70a29d | 8520 | aIo_Quotes_UseTests, apzIo_Quotes_UsePatch, 0 }, |
49b4955b | 8521 | |
fdb8fb96 | 8522 | { zIp_Missing_SemiName, zIp_Missing_SemiList, |
6e791f25 | 8523 | apzIp_Missing_SemiMachs, |
fdb8fb96 | 8524 | IP_MISSING_SEMI_TEST_CT, FD_MACH_ONLY, |
ee70a29d | 8525 | aIp_Missing_SemiTests, apzIp_Missing_SemiPatch, 0 }, |
fdb8fb96 | 8526 | |
4a050cc7 | 8527 | { zIrix___RestrictName, zIrix___RestrictList, |
8528 | apzIrix___RestrictMachs, | |
8529 | IRIX___RESTRICT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
8530 | aIrix___RestrictTests, apzIrix___RestrictPatch, 0 }, | |
8531 | ||
248b5b6c | 8532 | { zIrix___Generic1Name, zIrix___Generic1List, |
8533 | apzIrix___Generic1Machs, | |
8534 | IRIX___GENERIC1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
8535 | aIrix___Generic1Tests, apzIrix___Generic1Patch, 0 }, | |
8536 | ||
8537 | { zIrix___Generic2Name, zIrix___Generic2List, | |
8538 | apzIrix___Generic2Machs, | |
8539 | IRIX___GENERIC2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
8540 | aIrix___Generic2Tests, apzIrix___Generic2Patch, 0 }, | |
8541 | ||
cfe5be71 | 8542 | { zIrix_Asm_ApostropheName, zIrix_Asm_ApostropheList, |
8543 | apzIrix_Asm_ApostropheMachs, | |
8544 | IRIX_ASM_APOSTROPHE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
ee70a29d | 8545 | aIrix_Asm_ApostropheTests, apzIrix_Asm_ApostrophePatch, 0 }, |
cfe5be71 | 8546 | |
49e3683c | 8547 | { zIrix_Limits_ConstName, zIrix_Limits_ConstList, |
8548 | apzIrix_Limits_ConstMachs, | |
8549 | IRIX_LIMITS_CONST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
8550 | aIrix_Limits_ConstTests, apzIrix_Limits_ConstPatch, 0 }, | |
8551 | ||
609088c0 | 8552 | { zIrix_Socklen_TName, zIrix_Socklen_TList, |
8553 | apzIrix_Socklen_TMachs, | |
8554 | IRIX_SOCKLEN_T_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
8555 | aIrix_Socklen_TTests, apzIrix_Socklen_TPatch, 0 }, | |
8556 | ||
3072d11f | 8557 | { zIrix_Stdio_Va_ListName, zIrix_Stdio_Va_ListList, |
8558 | apzIrix_Stdio_Va_ListMachs, | |
8559 | IRIX_STDIO_VA_LIST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
8560 | aIrix_Stdio_Va_ListTests, apzIrix_Stdio_Va_ListPatch, 0 }, | |
8561 | ||
609088c0 | 8562 | { zIrix_WcsftimeName, zIrix_WcsftimeList, |
8563 | apzIrix_WcsftimeMachs, | |
8564 | IRIX_WCSFTIME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
8565 | aIrix_WcsftimeTests, apzIrix_WcsftimePatch, 0 }, | |
8566 | ||
fdb8fb96 | 8567 | { zIsc_FmodName, zIsc_FmodList, |
6e791f25 | 8568 | apzIsc_FmodMachs, |
cfe5be71 | 8569 | ISC_FMOD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
ee70a29d | 8570 | aIsc_FmodTests, apzIsc_FmodPatch, 0 }, |
fdb8fb96 | 8571 | |
3072d11f | 8572 | { zIsc_Omits_With_StdcName, zIsc_Omits_With_StdcList, |
8573 | apzIsc_Omits_With_StdcMachs, | |
8574 | ISC_OMITS_WITH_STDC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
8575 | aIsc_Omits_With_StdcTests, apzIsc_Omits_With_StdcPatch, 0 }, | |
8576 | ||
fdb8fb96 | 8577 | { zKandr_ConcatName, zKandr_ConcatList, |
6e791f25 | 8578 | apzKandr_ConcatMachs, |
cfe5be71 | 8579 | KANDR_CONCAT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
ee70a29d | 8580 | aKandr_ConcatTests, apzKandr_ConcatPatch, 0 }, |
fdb8fb96 | 8581 | |
283bb5ac | 8582 | { zLibc1_G_Va_ListName, zLibc1_G_Va_ListList, |
8583 | apzLibc1_G_Va_ListMachs, | |
8584 | LIBC1_G_VA_LIST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
8585 | aLibc1_G_Va_ListTests, apzLibc1_G_Va_ListPatch, 0 }, | |
8586 | ||
ca58af19 | 8587 | { zLibc1_Ifdefd_MemxName, zLibc1_Ifdefd_MemxList, |
8588 | apzLibc1_Ifdefd_MemxMachs, | |
8589 | LIBC1_IFDEFD_MEMX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
8590 | aLibc1_Ifdefd_MemxTests, apzLibc1_Ifdefd_MemxPatch, 0 }, | |
8591 | ||
d92db5b6 | 8592 | { zLinux_Ia64_UcontextName, zLinux_Ia64_UcontextList, |
8593 | apzLinux_Ia64_UcontextMachs, | |
8594 | LINUX_IA64_UCONTEXT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
8595 | aLinux_Ia64_UcontextTests, apzLinux_Ia64_UcontextPatch, 0 }, | |
8596 | ||
435ea059 | 8597 | { zLynxos_No_Warning_In_Sys_Time_HName, zLynxos_No_Warning_In_Sys_Time_HList, |
8598 | apzLynxos_No_Warning_In_Sys_Time_HMachs, | |
8599 | LYNXOS_NO_WARNING_IN_SYS_TIME_H_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
8600 | aLynxos_No_Warning_In_Sys_Time_HTests, apzLynxos_No_Warning_In_Sys_Time_HPatch, 0 }, | |
fdb8fb96 | 8601 | |
435ea059 | 8602 | { zLynxos_Missing_PutenvName, zLynxos_Missing_PutenvList, |
8603 | apzLynxos_Missing_PutenvMachs, | |
8604 | LYNXOS_MISSING_PUTENV_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
8605 | aLynxos_Missing_PutenvTests, apzLynxos_Missing_PutenvPatch, 0 }, | |
fdb8fb96 | 8606 | |
d4c4b01d | 8607 | { zMachine_Ansi_H_Va_ListName, zMachine_Ansi_H_Va_ListList, |
6e791f25 | 8608 | apzMachine_Ansi_H_Va_ListMachs, |
a83746ef | 8609 | MACHINE_ANSI_H_VA_LIST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
ee70a29d | 8610 | aMachine_Ansi_H_Va_ListTests, apzMachine_Ansi_H_Va_ListPatch, 0 }, |
d4c4b01d | 8611 | |
fdb8fb96 | 8612 | { zMachine_NameName, zMachine_NameList, |
6e791f25 | 8613 | apzMachine_NameMachs, |
17f8e521 | 8614 | MACHINE_NAME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
ee70a29d | 8615 | aMachine_NameTests, apzMachine_NamePatch, 0 }, |
fdb8fb96 | 8616 | |
8617 | { zMath_ExceptionName, zMath_ExceptionList, | |
6e791f25 | 8618 | apzMath_ExceptionMachs, |
e6650807 | 8619 | MATH_EXCEPTION_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
ee70a29d | 8620 | aMath_ExceptionTests, apzMath_ExceptionPatch, 0 }, |
fdb8fb96 | 8621 | |
bb304030 | 8622 | { zMath_Huge_Val_From_Dbl_MaxName, zMath_Huge_Val_From_Dbl_MaxList, |
6e791f25 | 8623 | apzMath_Huge_Val_From_Dbl_MaxMachs, |
bb304030 | 8624 | MATH_HUGE_VAL_FROM_DBL_MAX_TEST_CT, FD_MACH_ONLY | FD_SHELL_SCRIPT, |
ee70a29d | 8625 | aMath_Huge_Val_From_Dbl_MaxTests, apzMath_Huge_Val_From_Dbl_MaxPatch, 0 }, |
bb304030 | 8626 | |
3072d11f | 8627 | { zNested_Auth_DesName, zNested_Auth_DesList, |
8628 | apzNested_Auth_DesMachs, | |
8629 | NESTED_AUTH_DES_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
8630 | aNested_Auth_DesTests, apzNested_Auth_DesPatch, 0 }, | |
8631 | ||
cfe5be71 | 8632 | { zNested_MotorolaName, zNested_MotorolaList, |
8633 | apzNested_MotorolaMachs, | |
8634 | NESTED_MOTOROLA_TEST_CT, FD_MACH_ONLY, | |
ee70a29d | 8635 | aNested_MotorolaTests, apzNested_MotorolaPatch, 0 }, |
cfe5be71 | 8636 | |
8637 | { zNested_Sys_LimitsName, zNested_Sys_LimitsList, | |
8638 | apzNested_Sys_LimitsMachs, | |
8639 | NESTED_SYS_LIMITS_TEST_CT, FD_MACH_ONLY, | |
ee70a29d | 8640 | aNested_Sys_LimitsTests, apzNested_Sys_LimitsPatch, 0 }, |
cfe5be71 | 8641 | |
81a897fb | 8642 | { zNetbsd_Extra_SemicolonName, zNetbsd_Extra_SemicolonList, |
8643 | apzNetbsd_Extra_SemicolonMachs, | |
8644 | NETBSD_EXTRA_SEMICOLON_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
8645 | aNetbsd_Extra_SemicolonTests, apzNetbsd_Extra_SemicolonPatch, 0 }, | |
8646 | ||
fdb8fb96 | 8647 | { zNext_Math_PrefixName, zNext_Math_PrefixList, |
6e791f25 | 8648 | apzNext_Math_PrefixMachs, |
a83746ef | 8649 | NEXT_MATH_PREFIX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
ee70a29d | 8650 | aNext_Math_PrefixTests, apzNext_Math_PrefixPatch, 0 }, |
fdb8fb96 | 8651 | |
8652 | { zNext_TemplateName, zNext_TemplateList, | |
6e791f25 | 8653 | apzNext_TemplateMachs, |
a83746ef | 8654 | NEXT_TEMPLATE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
ee70a29d | 8655 | aNext_TemplateTests, apzNext_TemplatePatch, 0 }, |
fdb8fb96 | 8656 | |
8657 | { zNext_VolitileName, zNext_VolitileList, | |
6e791f25 | 8658 | apzNext_VolitileMachs, |
a83746ef | 8659 | NEXT_VOLITILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
ee70a29d | 8660 | aNext_VolitileTests, apzNext_VolitilePatch, 0 }, |
fdb8fb96 | 8661 | |
8662 | { zNext_Wait_UnionName, zNext_Wait_UnionList, | |
6e791f25 | 8663 | apzNext_Wait_UnionMachs, |
038a3e7a | 8664 | NEXT_WAIT_UNION_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
ee70a29d | 8665 | aNext_Wait_UnionTests, apzNext_Wait_UnionPatch, 0 }, |
fdb8fb96 | 8666 | |
8667 | { zNodeent_SyntaxName, zNodeent_SyntaxList, | |
6e791f25 | 8668 | apzNodeent_SyntaxMachs, |
038a3e7a | 8669 | NODEENT_SYNTAX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
ee70a29d | 8670 | aNodeent_SyntaxTests, apzNodeent_SyntaxPatch, 0 }, |
fdb8fb96 | 8671 | |
129b92e3 | 8672 | { zObstack_Lvalue_CastName, zObstack_Lvalue_CastList, |
8673 | apzObstack_Lvalue_CastMachs, | |
8674 | OBSTACK_LVALUE_CAST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
8675 | aObstack_Lvalue_CastTests, apzObstack_Lvalue_CastPatch, 0 }, | |
8676 | ||
fdb8fb96 | 8677 | { zOsf_Namespace_AName, zOsf_Namespace_AList, |
6e791f25 | 8678 | apzOsf_Namespace_AMachs, |
038a3e7a | 8679 | OSF_NAMESPACE_A_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
ee70a29d | 8680 | aOsf_Namespace_ATests, apzOsf_Namespace_APatch, 0 }, |
fdb8fb96 | 8681 | |
038a3e7a | 8682 | { zOsf_Namespace_CName, zOsf_Namespace_CList, |
8683 | apzOsf_Namespace_CMachs, | |
8684 | OSF_NAMESPACE_C_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
ee70a29d | 8685 | aOsf_Namespace_CTests, apzOsf_Namespace_CPatch, 0 }, |
fdb8fb96 | 8686 | |
8687 | { zPthread_Page_SizeName, zPthread_Page_SizeList, | |
6e791f25 | 8688 | apzPthread_Page_SizeMachs, |
038a3e7a | 8689 | PTHREAD_PAGE_SIZE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
ee70a29d | 8690 | aPthread_Page_SizeTests, apzPthread_Page_SizePatch, 0 }, |
fdb8fb96 | 8691 | |
a11c2c4d | 8692 | { zPthread_Incomplete_Struct_ArgumentName, zPthread_Incomplete_Struct_ArgumentList, |
8693 | apzPthread_Incomplete_Struct_ArgumentMachs, | |
8694 | PTHREAD_INCOMPLETE_STRUCT_ARGUMENT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
8695 | aPthread_Incomplete_Struct_ArgumentTests, apzPthread_Incomplete_Struct_ArgumentPatch, 0 }, | |
8696 | ||
d0f5620b | 8697 | { zRead_Ret_TypeName, zRead_Ret_TypeList, |
6e791f25 | 8698 | apzRead_Ret_TypeMachs, |
038a3e7a | 8699 | READ_RET_TYPE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
ee70a29d | 8700 | aRead_Ret_TypeTests, apzRead_Ret_TypePatch, 0 }, |
d0f5620b | 8701 | |
e68aa18b | 8702 | { zRpc_Xdr_Lvalue_Cast_AName, zRpc_Xdr_Lvalue_Cast_AList, |
8703 | apzRpc_Xdr_Lvalue_Cast_AMachs, | |
8704 | RPC_XDR_LVALUE_CAST_A_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
8705 | aRpc_Xdr_Lvalue_Cast_ATests, apzRpc_Xdr_Lvalue_Cast_APatch, 0 }, | |
8706 | ||
8707 | { zRpc_Xdr_Lvalue_Cast_BName, zRpc_Xdr_Lvalue_Cast_BList, | |
8708 | apzRpc_Xdr_Lvalue_Cast_BMachs, | |
8709 | RPC_XDR_LVALUE_CAST_B_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
8710 | aRpc_Xdr_Lvalue_Cast_BTests, apzRpc_Xdr_Lvalue_Cast_BPatch, 0 }, | |
8711 | ||
fdb8fb96 | 8712 | { zRs6000_DoubleName, zRs6000_DoubleList, |
6e791f25 | 8713 | apzRs6000_DoubleMachs, |
038a3e7a | 8714 | RS6000_DOUBLE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
ee70a29d | 8715 | aRs6000_DoubleTests, apzRs6000_DoublePatch, 0 }, |
fdb8fb96 | 8716 | |
8717 | { zRs6000_FchmodName, zRs6000_FchmodList, | |
6e791f25 | 8718 | apzRs6000_FchmodMachs, |
038a3e7a | 8719 | RS6000_FCHMOD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
ee70a29d | 8720 | aRs6000_FchmodTests, apzRs6000_FchmodPatch, 0 }, |
fdb8fb96 | 8721 | |
8722 | { zRs6000_ParamName, zRs6000_ParamList, | |
6e791f25 | 8723 | apzRs6000_ParamMachs, |
038a3e7a | 8724 | RS6000_PARAM_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
ee70a29d | 8725 | aRs6000_ParamTests, apzRs6000_ParamPatch, 0 }, |
fdb8fb96 | 8726 | |
3c04ceca | 8727 | { zSco_MathName, zSco_MathList, |
8728 | apzSco_MathMachs, | |
8729 | SCO_MATH_TEST_CT, FD_MACH_ONLY, | |
8730 | aSco_MathTests, apzSco_MathPatch, 0 }, | |
8731 | ||
8732 | { zSco_RegsetName, zSco_RegsetList, | |
8733 | apzSco_RegsetMachs, | |
8734 | SCO_REGSET_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
8735 | aSco_RegsetTests, apzSco_RegsetPatch, 0 }, | |
8736 | ||
a712e12c | 8737 | { zSco_Static_FuncName, zSco_Static_FuncList, |
6e791f25 | 8738 | apzSco_Static_FuncMachs, |
a712e12c | 8739 | SCO_STATIC_FUNC_TEST_CT, FD_MACH_ONLY, |
ee70a29d | 8740 | aSco_Static_FuncTests, apzSco_Static_FuncPatch, 0 }, |
a712e12c | 8741 | |
8742 | { zSco_UtimeName, zSco_UtimeList, | |
6e791f25 | 8743 | apzSco_UtimeMachs, |
038a3e7a | 8744 | SCO_UTIME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
ee70a29d | 8745 | aSco_UtimeTests, apzSco_UtimePatch, 0 }, |
a712e12c | 8746 | |
e849ea70 | 8747 | { zSolaris_Math_1Name, zSolaris_Math_1List, |
8748 | apzSolaris_Math_1Machs, | |
8749 | SOLARIS_MATH_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
8750 | aSolaris_Math_1Tests, apzSolaris_Math_1Patch, 0 }, | |
8751 | ||
8752 | { zSolaris_Math_2Name, zSolaris_Math_2List, | |
8753 | apzSolaris_Math_2Machs, | |
8754 | SOLARIS_MATH_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
8755 | aSolaris_Math_2Tests, apzSolaris_Math_2Patch, 0 }, | |
8756 | ||
8757 | { zSolaris_Math_3Name, zSolaris_Math_3List, | |
8758 | apzSolaris_Math_3Machs, | |
8759 | SOLARIS_MATH_3_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
8760 | aSolaris_Math_3Tests, apzSolaris_Math_3Patch, 0 }, | |
8761 | ||
8762 | { zSolaris_Math_4Name, zSolaris_Math_4List, | |
8763 | apzSolaris_Math_4Machs, | |
8764 | SOLARIS_MATH_4_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
8765 | aSolaris_Math_4Tests, apzSolaris_Math_4Patch, 0 }, | |
8766 | ||
8767 | { zSolaris_Math_5Name, zSolaris_Math_5List, | |
8768 | apzSolaris_Math_5Machs, | |
8769 | SOLARIS_MATH_5_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
8770 | aSolaris_Math_5Tests, apzSolaris_Math_5Patch, 0 }, | |
8771 | ||
8772 | { zSolaris_Math_6Name, zSolaris_Math_6List, | |
8773 | apzSolaris_Math_6Machs, | |
8774 | SOLARIS_MATH_6_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
8775 | aSolaris_Math_6Tests, apzSolaris_Math_6Patch, 0 }, | |
8776 | ||
8777 | { zSolaris_Math_7Name, zSolaris_Math_7List, | |
8778 | apzSolaris_Math_7Machs, | |
8779 | SOLARIS_MATH_7_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
8780 | aSolaris_Math_7Tests, apzSolaris_Math_7Patch, 0 }, | |
8781 | ||
8782 | { zSolaris_Math_8Name, zSolaris_Math_8List, | |
8783 | apzSolaris_Math_8Machs, | |
8784 | SOLARIS_MATH_8_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
8785 | aSolaris_Math_8Tests, apzSolaris_Math_8Patch, 0 }, | |
8786 | ||
8787 | { zSolaris_Math_9Name, zSolaris_Math_9List, | |
8788 | apzSolaris_Math_9Machs, | |
8789 | SOLARIS_MATH_9_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
8790 | aSolaris_Math_9Tests, apzSolaris_Math_9Patch, 0 }, | |
8791 | ||
4a050cc7 | 8792 | { zSolaris_Mutex_Init_1Name, zSolaris_Mutex_Init_1List, |
8793 | apzSolaris_Mutex_Init_1Machs, | |
8794 | SOLARIS_MUTEX_INIT_1_TEST_CT, FD_MACH_ONLY, | |
8795 | aSolaris_Mutex_Init_1Tests, apzSolaris_Mutex_Init_1Patch, 0 }, | |
8796 | ||
8797 | { zSolaris_Mutex_Init_2Name, zSolaris_Mutex_Init_2List, | |
8798 | apzSolaris_Mutex_Init_2Machs, | |
8799 | SOLARIS_MUTEX_INIT_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
8800 | aSolaris_Mutex_Init_2Tests, apzSolaris_Mutex_Init_2Patch, 0 }, | |
c718ce1e | 8801 | |
4dbe9809 | 8802 | { zSolaris_SocketName, zSolaris_SocketList, |
8803 | apzSolaris_SocketMachs, | |
8804 | SOLARIS_SOCKET_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
8805 | aSolaris_SocketTests, apzSolaris_SocketPatch, 0 }, | |
8806 | ||
91eb7bbc | 8807 | { zSolaris_Stdio_TagName, zSolaris_Stdio_TagList, |
8808 | apzSolaris_Stdio_TagMachs, | |
8809 | SOLARIS_STDIO_TAG_TEST_CT, FD_MACH_ONLY, | |
8810 | aSolaris_Stdio_TagTests, apzSolaris_Stdio_TagPatch, 0 }, | |
8811 | ||
4dbe9809 | 8812 | { zSolaris_UnistdName, zSolaris_UnistdList, |
8813 | apzSolaris_UnistdMachs, | |
8814 | SOLARIS_UNISTD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
8815 | aSolaris_UnistdTests, apzSolaris_UnistdPatch, 0 }, | |
8816 | ||
b924735b | 8817 | { zSolaris_WidecName, zSolaris_WidecList, |
8818 | apzSolaris_WidecMachs, | |
8819 | SOLARIS_WIDEC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
8820 | aSolaris_WidecTests, apzSolaris_WidecPatch, 0 }, | |
8821 | ||
fdb8fb96 | 8822 | { zStatsswtchName, zStatsswtchList, |
6e791f25 | 8823 | apzStatsswtchMachs, |
038a3e7a | 8824 | STATSSWTCH_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
ee70a29d | 8825 | aStatsswtchTests, apzStatsswtchPatch, 0 }, |
fdb8fb96 | 8826 | |
d4c4b01d | 8827 | { zStdio_Stdarg_HName, zStdio_Stdarg_HList, |
6e791f25 | 8828 | apzStdio_Stdarg_HMachs, |
09a31484 | 8829 | STDIO_STDARG_H_TEST_CT, FD_MACH_IFNOT | FD_SUBROUTINE, |
ee70a29d | 8830 | aStdio_Stdarg_HTests, apzStdio_Stdarg_HPatch, 0 }, |
d4c4b01d | 8831 | |
fdb8fb96 | 8832 | { zStdio_Va_ListName, zStdio_Va_ListList, |
6e791f25 | 8833 | apzStdio_Va_ListMachs, |
09a31484 | 8834 | STDIO_VA_LIST_TEST_CT, FD_MACH_IFNOT, |
ee70a29d | 8835 | aStdio_Va_ListTests, apzStdio_Va_ListPatch, 0 }, |
fdb8fb96 | 8836 | |
925b9291 | 8837 | { zStdio_Va_List_ClientsName, zStdio_Va_List_ClientsList, |
8838 | apzStdio_Va_List_ClientsMachs, | |
8839 | STDIO_VA_LIST_CLIENTS_TEST_CT, FD_MACH_ONLY, | |
8840 | aStdio_Va_List_ClientsTests, apzStdio_Va_List_ClientsPatch, 0 }, | |
8841 | ||
3072d11f | 8842 | { zStrict_Ansi_NotName, zStrict_Ansi_NotList, |
8843 | apzStrict_Ansi_NotMachs, | |
8844 | STRICT_ANSI_NOT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
8845 | aStrict_Ansi_NotTests, apzStrict_Ansi_NotPatch, 0 }, | |
8846 | ||
8847 | { zStrict_Ansi_Not_CtdName, zStrict_Ansi_Not_CtdList, | |
8848 | apzStrict_Ansi_Not_CtdMachs, | |
8849 | STRICT_ANSI_NOT_CTD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
8850 | aStrict_Ansi_Not_CtdTests, apzStrict_Ansi_Not_CtdPatch, 0 }, | |
8851 | ||
8852 | { zStrict_Ansi_OnlyName, zStrict_Ansi_OnlyList, | |
8853 | apzStrict_Ansi_OnlyMachs, | |
8854 | STRICT_ANSI_ONLY_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
8855 | aStrict_Ansi_OnlyTests, apzStrict_Ansi_OnlyPatch, 0 }, | |
8856 | ||
cfe5be71 | 8857 | { zStruct_FileName, zStruct_FileList, |
8858 | apzStruct_FileMachs, | |
8859 | STRUCT_FILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
ee70a29d | 8860 | aStruct_FileTests, apzStruct_FilePatch, 0 }, |
cfe5be71 | 8861 | |
8862 | { zStruct_SockaddrName, zStruct_SockaddrList, | |
8863 | apzStruct_SockaddrMachs, | |
8864 | STRUCT_SOCKADDR_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
ee70a29d | 8865 | aStruct_SockaddrTests, apzStruct_SockaddrPatch, 0 }, |
cfe5be71 | 8866 | |
a712e12c | 8867 | { zSun_Auth_ProtoName, zSun_Auth_ProtoList, |
6e791f25 | 8868 | apzSun_Auth_ProtoMachs, |
038a3e7a | 8869 | SUN_AUTH_PROTO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
ee70a29d | 8870 | aSun_Auth_ProtoTests, apzSun_Auth_ProtoPatch, 0 }, |
a712e12c | 8871 | |
fdb8fb96 | 8872 | { zSun_Bogus_IfdefName, zSun_Bogus_IfdefList, |
6e791f25 | 8873 | apzSun_Bogus_IfdefMachs, |
038a3e7a | 8874 | SUN_BOGUS_IFDEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
ee70a29d | 8875 | aSun_Bogus_IfdefTests, apzSun_Bogus_IfdefPatch, 0 }, |
fdb8fb96 | 8876 | |
fdb8fb96 | 8877 | { zSun_CatmacroName, zSun_CatmacroList, |
6e791f25 | 8878 | apzSun_CatmacroMachs, |
038a3e7a | 8879 | SUN_CATMACRO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
ee70a29d | 8880 | aSun_CatmacroTests, apzSun_CatmacroPatch, 0 }, |
fdb8fb96 | 8881 | |
8882 | { zSun_MallocName, zSun_MallocList, | |
6e791f25 | 8883 | apzSun_MallocMachs, |
fdb8fb96 | 8884 | SUN_MALLOC_TEST_CT, FD_MACH_ONLY, |
ee70a29d | 8885 | aSun_MallocTests, apzSun_MallocPatch, 0 }, |
fdb8fb96 | 8886 | |
fdb8fb96 | 8887 | { zSun_Rusers_SemiName, zSun_Rusers_SemiList, |
6e791f25 | 8888 | apzSun_Rusers_SemiMachs, |
fdb8fb96 | 8889 | SUN_RUSERS_SEMI_TEST_CT, FD_MACH_ONLY, |
ee70a29d | 8890 | aSun_Rusers_SemiTests, apzSun_Rusers_SemiPatch, 0 }, |
fdb8fb96 | 8891 | |
8892 | { zSun_SignalName, zSun_SignalList, | |
6e791f25 | 8893 | apzSun_SignalMachs, |
038a3e7a | 8894 | SUN_SIGNAL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
ee70a29d | 8895 | aSun_SignalTests, apzSun_SignalPatch, 0 }, |
fdb8fb96 | 8896 | |
fdb8fb96 | 8897 | { zSunos_StrlenName, zSunos_StrlenList, |
6e791f25 | 8898 | apzSunos_StrlenMachs, |
038a3e7a | 8899 | SUNOS_STRLEN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
ee70a29d | 8900 | aSunos_StrlenTests, apzSunos_StrlenPatch, 0 }, |
fdb8fb96 | 8901 | |
3c04ceca | 8902 | { zSvr4_Disable_OptName, zSvr4_Disable_OptList, |
8903 | apzSvr4_Disable_OptMachs, | |
8904 | SVR4_DISABLE_OPT_TEST_CT, FD_MACH_ONLY, | |
8905 | aSvr4_Disable_OptTests, apzSvr4_Disable_OptPatch, 0 }, | |
8906 | ||
a712e12c | 8907 | { zSvr4_GetcwdName, zSvr4_GetcwdList, |
6e791f25 | 8908 | apzSvr4_GetcwdMachs, |
038a3e7a | 8909 | SVR4_GETCWD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
ee70a29d | 8910 | aSvr4_GetcwdTests, apzSvr4_GetcwdPatch, 0 }, |
a712e12c | 8911 | |
4037751e | 8912 | { zSvr4_KrnlName, zSvr4_KrnlList, |
8913 | apzSvr4_KrnlMachs, | |
8914 | SVR4_KRNL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
8915 | aSvr4_KrnlTests, apzSvr4_KrnlPatch, 0 }, | |
8916 | ||
a712e12c | 8917 | { zSvr4_ProfilName, zSvr4_ProfilList, |
6e791f25 | 8918 | apzSvr4_ProfilMachs, |
038a3e7a | 8919 | SVR4_PROFIL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
ee70a29d | 8920 | aSvr4_ProfilTests, apzSvr4_ProfilPatch, 0 }, |
a712e12c | 8921 | |
d23689b2 | 8922 | { zSvr4_Sighandler_TypeName, zSvr4_Sighandler_TypeList, |
8923 | apzSvr4_Sighandler_TypeMachs, | |
8924 | SVR4_SIGHANDLER_TYPE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
8925 | aSvr4_Sighandler_TypeTests, apzSvr4_Sighandler_TypePatch, 0 }, | |
8926 | ||
630af039 | 8927 | { zSvr4_Undeclared_GetrngeName, zSvr4_Undeclared_GetrngeList, |
8928 | apzSvr4_Undeclared_GetrngeMachs, | |
8929 | SVR4_UNDECLARED_GETRNGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
8930 | aSvr4_Undeclared_GetrngeTests, apzSvr4_Undeclared_GetrngePatch, 0 }, | |
8931 | ||
fdb8fb96 | 8932 | { zSysv68_StringName, zSysv68_StringList, |
6e791f25 | 8933 | apzSysv68_StringMachs, |
fdb8fb96 | 8934 | SYSV68_STRING_TEST_CT, FD_MACH_ONLY, |
ee70a29d | 8935 | aSysv68_StringTests, apzSysv68_StringPatch, 0 }, |
fdb8fb96 | 8936 | |
8937 | { zSysz_Stdlib_For_SunName, zSysz_Stdlib_For_SunList, | |
6e791f25 | 8938 | apzSysz_Stdlib_For_SunMachs, |
038a3e7a | 8939 | SYSZ_STDLIB_FOR_SUN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
ee70a29d | 8940 | aSysz_Stdlib_For_SunTests, apzSysz_Stdlib_For_SunPatch, 0 }, |
fdb8fb96 | 8941 | |
2a6f0f81 | 8942 | { zThread_KeywordName, zThread_KeywordList, |
8943 | apzThread_KeywordMachs, | |
77f26774 | 8944 | THREAD_KEYWORD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
2a6f0f81 | 8945 | aThread_KeywordTests, apzThread_KeywordPatch, 0 }, |
8946 | ||
fdb8fb96 | 8947 | { zTinfo_CplusplusName, zTinfo_CplusplusList, |
6e791f25 | 8948 | apzTinfo_CplusplusMachs, |
f74d6549 | 8949 | TINFO_CPLUSPLUS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
ee70a29d | 8950 | aTinfo_CplusplusTests, apzTinfo_CplusplusPatch, 0 }, |
fdb8fb96 | 8951 | |
7ab961ad | 8952 | { zUltrix_Atexit_ParamName, zUltrix_Atexit_ParamList, |
8953 | apzUltrix_Atexit_ParamMachs, | |
8954 | ULTRIX_ATEXIT_PARAM_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
8955 | aUltrix_Atexit_ParamTests, apzUltrix_Atexit_ParamPatch, 0 }, | |
8956 | ||
8957 | { zUltrix_Atof_ParamName, zUltrix_Atof_ParamList, | |
8958 | apzUltrix_Atof_ParamMachs, | |
8959 | ULTRIX_ATOF_PARAM_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
8960 | aUltrix_Atof_ParamTests, apzUltrix_Atof_ParamPatch, 0 }, | |
8961 | ||
fdb8fb96 | 8962 | { zUltrix_ConstName, zUltrix_ConstList, |
6e791f25 | 8963 | apzUltrix_ConstMachs, |
f74d6549 | 8964 | ULTRIX_CONST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
ee70a29d | 8965 | aUltrix_ConstTests, apzUltrix_ConstPatch, 0 }, |
fdb8fb96 | 8966 | |
f74d6549 | 8967 | { zUltrix_Const2Name, zUltrix_Const2List, |
8968 | apzUltrix_Const2Machs, | |
8969 | ULTRIX_CONST2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
ee70a29d | 8970 | aUltrix_Const2Tests, apzUltrix_Const2Patch, 0 }, |
f74d6549 | 8971 | |
37935110 | 8972 | { zUltrix_Const3Name, zUltrix_Const3List, |
8973 | apzUltrix_Const3Machs, | |
8974 | ULTRIX_CONST3_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
8975 | aUltrix_Const3Tests, apzUltrix_Const3Patch, 0 }, | |
8976 | ||
7ab961ad | 8977 | { zUltrix_Fix_FixprotoName, zUltrix_Fix_FixprotoList, |
8978 | apzUltrix_Fix_FixprotoMachs, | |
8979 | ULTRIX_FIX_FIXPROTO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
8980 | aUltrix_Fix_FixprotoTests, apzUltrix_Fix_FixprotoPatch, 0 }, | |
8981 | ||
8982 | { zUltrix_IfdefName, zUltrix_IfdefList, | |
8983 | apzUltrix_IfdefMachs, | |
8984 | ULTRIX_IFDEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
8985 | aUltrix_IfdefTests, apzUltrix_IfdefPatch, 0 }, | |
8986 | ||
37935110 | 8987 | { zUltrix_LocaleName, zUltrix_LocaleList, |
8988 | apzUltrix_LocaleMachs, | |
8989 | ULTRIX_LOCALE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
8990 | aUltrix_LocaleTests, apzUltrix_LocalePatch, 0 }, | |
8991 | ||
7ab961ad | 8992 | { zUltrix_Math_IfdefName, zUltrix_Math_IfdefList, |
8993 | apzUltrix_Math_IfdefMachs, | |
8994 | ULTRIX_MATH_IFDEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
8995 | aUltrix_Math_IfdefTests, apzUltrix_Math_IfdefPatch, 0 }, | |
8996 | ||
8997 | { zUltrix_Nested_IoctlName, zUltrix_Nested_IoctlList, | |
8998 | apzUltrix_Nested_IoctlMachs, | |
8999 | ULTRIX_NESTED_IOCTL_TEST_CT, FD_MACH_ONLY, | |
9000 | aUltrix_Nested_IoctlTests, apzUltrix_Nested_IoctlPatch, 0 }, | |
9001 | ||
9002 | { zUltrix_Nested_SvcName, zUltrix_Nested_SvcList, | |
9003 | apzUltrix_Nested_SvcMachs, | |
9004 | ULTRIX_NESTED_SVC_TEST_CT, FD_MACH_ONLY, | |
9005 | aUltrix_Nested_SvcTests, apzUltrix_Nested_SvcPatch, 0 }, | |
9006 | ||
9007 | { zUltrix_StatName, zUltrix_StatList, | |
9008 | apzUltrix_StatMachs, | |
9009 | ULTRIX_STAT_TEST_CT, FD_MACH_ONLY, | |
9010 | aUltrix_StatTests, apzUltrix_StatPatch, 0 }, | |
9011 | ||
9012 | { zUltrix_StaticName, zUltrix_StaticList, | |
9013 | apzUltrix_StaticMachs, | |
9014 | ULTRIX_STATIC_TEST_CT, FD_MACH_ONLY, | |
9015 | aUltrix_StaticTests, apzUltrix_StaticPatch, 0 }, | |
9016 | ||
37935110 | 9017 | { zUltrix_StdlibName, zUltrix_StdlibList, |
9018 | apzUltrix_StdlibMachs, | |
9019 | ULTRIX_STDLIB_TEST_CT, FD_MACH_ONLY, | |
9020 | aUltrix_StdlibTests, apzUltrix_StdlibPatch, 0 }, | |
9021 | ||
7ab961ad | 9022 | { zUltrix_StringsName, zUltrix_StringsList, |
9023 | apzUltrix_StringsMachs, | |
9024 | ULTRIX_STRINGS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
9025 | aUltrix_StringsTests, apzUltrix_StringsPatch, 0 }, | |
9026 | ||
37935110 | 9027 | { zUltrix_Strings2Name, zUltrix_Strings2List, |
9028 | apzUltrix_Strings2Machs, | |
9029 | ULTRIX_STRINGS2_TEST_CT, FD_MACH_ONLY, | |
9030 | aUltrix_Strings2Tests, apzUltrix_Strings2Patch, 0 }, | |
9031 | ||
9032 | { zUltrix_Sys_TimeName, zUltrix_Sys_TimeList, | |
9033 | apzUltrix_Sys_TimeMachs, | |
9034 | ULTRIX_SYS_TIME_TEST_CT, FD_MACH_ONLY, | |
9035 | aUltrix_Sys_TimeTests, apzUltrix_Sys_TimePatch, 0 }, | |
9036 | ||
9037 | { zUltrix_UnistdName, zUltrix_UnistdList, | |
9038 | apzUltrix_UnistdMachs, | |
9039 | ULTRIX_UNISTD_TEST_CT, FD_MACH_ONLY, | |
9040 | aUltrix_UnistdTests, apzUltrix_UnistdPatch, 0 }, | |
9041 | ||
9caef960 | 9042 | { zUnicosmk_RestrictName, zUnicosmk_RestrictList, |
9043 | apzUnicosmk_RestrictMachs, | |
9044 | UNICOSMK_RESTRICT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
9045 | aUnicosmk_RestrictTests, apzUnicosmk_RestrictPatch, 0 }, | |
9046 | ||
b07d36b9 | 9047 | { zUw7_Byteorder_FixName, zUw7_Byteorder_FixList, |
9048 | apzUw7_Byteorder_FixMachs, | |
9049 | UW7_BYTEORDER_FIX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, | |
ee70a29d | 9050 | aUw7_Byteorder_FixTests, apzUw7_Byteorder_FixPatch, 0 }, |
d08a0ac4 | 9051 | |
fdb8fb96 | 9052 | { zVa_I960_MacroName, zVa_I960_MacroList, |
6e791f25 | 9053 | apzVa_I960_MacroMachs, |
f74d6549 | 9054 | VA_I960_MACRO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
ee70a29d | 9055 | aVa_I960_MacroTests, apzVa_I960_MacroPatch, 0 }, |
fdb8fb96 | 9056 | |
9057 | { zVoid_NullName, zVoid_NullList, | |
6e791f25 | 9058 | apzVoid_NullMachs, |
f74d6549 | 9059 | VOID_NULL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
ee70a29d | 9060 | aVoid_NullTests, apzVoid_NullPatch, 0 }, |
fdb8fb96 | 9061 | |
9062 | { zVxworks_Gcc_ProblemName, zVxworks_Gcc_ProblemList, | |
6e791f25 | 9063 | apzVxworks_Gcc_ProblemMachs, |
fdb8fb96 | 9064 | VXWORKS_GCC_PROBLEM_TEST_CT, FD_MACH_ONLY, |
ee70a29d | 9065 | aVxworks_Gcc_ProblemTests, apzVxworks_Gcc_ProblemPatch, 0 }, |
fdb8fb96 | 9066 | |
9067 | { zVxworks_Needs_VxtypesName, zVxworks_Needs_VxtypesList, | |
6e791f25 | 9068 | apzVxworks_Needs_VxtypesMachs, |
f74d6549 | 9069 | VXWORKS_NEEDS_VXTYPES_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
ee70a29d | 9070 | aVxworks_Needs_VxtypesTests, apzVxworks_Needs_VxtypesPatch, 0 }, |
fdb8fb96 | 9071 | |
9072 | { zVxworks_Needs_VxworksName, zVxworks_Needs_VxworksList, | |
6e791f25 | 9073 | apzVxworks_Needs_VxworksMachs, |
fdb8fb96 | 9074 | VXWORKS_NEEDS_VXWORKS_TEST_CT, FD_MACH_ONLY, |
ee70a29d | 9075 | aVxworks_Needs_VxworksTests, apzVxworks_Needs_VxworksPatch, 0 }, |
fdb8fb96 | 9076 | |
9077 | { zVxworks_TimeName, zVxworks_TimeList, | |
6e791f25 | 9078 | apzVxworks_TimeMachs, |
f74d6549 | 9079 | VXWORKS_TIME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
ee70a29d | 9080 | aVxworks_TimeTests, apzVxworks_TimePatch, 0 }, |
fdb8fb96 | 9081 | |
5a268127 | 9082 | { zWindiss_Math1Name, zWindiss_Math1List, |
9083 | apzWindiss_Math1Machs, | |
9084 | WINDISS_MATH1_TEST_CT, FD_MACH_ONLY, | |
9085 | aWindiss_Math1Tests, apzWindiss_Math1Patch, 0 }, | |
9086 | ||
9087 | { zWindiss_Math2Name, zWindiss_Math2List, | |
9088 | apzWindiss_Math2Machs, | |
9089 | WINDISS_MATH2_TEST_CT, FD_MACH_ONLY, | |
9090 | aWindiss_Math2Tests, apzWindiss_Math2Patch, 0 }, | |
9091 | ||
9092 | { zWindiss_ValistName, zWindiss_ValistList, | |
9093 | apzWindiss_ValistMachs, | |
9094 | WINDISS_VALIST_TEST_CT, FD_MACH_ONLY, | |
9095 | aWindiss_ValistTests, apzWindiss_ValistPatch, 0 }, | |
9096 | ||
fdb8fb96 | 9097 | { zX11_ClassName, zX11_ClassList, |
6e791f25 | 9098 | apzX11_ClassMachs, |
e7ae4397 | 9099 | X11_CLASS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
ee70a29d | 9100 | aX11_ClassTests, apzX11_ClassPatch, 0 }, |
fdb8fb96 | 9101 | |
9102 | { zX11_Class_UsageName, zX11_Class_UsageList, | |
6e791f25 | 9103 | apzX11_Class_UsageMachs, |
f74d6549 | 9104 | X11_CLASS_USAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
ee70a29d | 9105 | aX11_Class_UsageTests, apzX11_Class_UsagePatch, 0 }, |
fdb8fb96 | 9106 | |
9107 | { zX11_NewName, zX11_NewList, | |
6e791f25 | 9108 | apzX11_NewMachs, |
fdb8fb96 | 9109 | X11_NEW_TEST_CT, FD_MACH_ONLY, |
ee70a29d | 9110 | aX11_NewTests, apzX11_NewPatch, 0 }, |
fdb8fb96 | 9111 | |
9112 | { zX11_SprintfName, zX11_SprintfList, | |
6e791f25 | 9113 | apzX11_SprintfMachs, |
f74d6549 | 9114 | X11_SPRINTF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE, |
ee70a29d | 9115 | aX11_SprintfTests, apzX11_SprintfPatch, 0 } |
fdb8fb96 | 9116 | }; |