forked from gcc-mirror/gcc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfixincl.x
11697 lines (10166 loc) · 309 KB
/
fixincl.x
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
/* -*- buffer-read-only: t -*- vi: set ro:
*
* DO NOT EDIT THIS FILE (fixincl.x)
*
* It has been AutoGen-ed September 3, 2018 at 03:24:05 PM by AutoGen 5.18.7
* From the definitions inclhack.def
* and the template file fixincl
*/
/* DO NOT SVN-MERGE THIS FILE, EITHER Mon Sep 3 15:24:05 CEST 2018
*
* You must regenerate it. Use the ./genfixes script.
*
*
* This is part of the fixincl program used to install modified versions of
* certain ANSI-incompatible system header files which are fixed to work
* correctly with ANSI C and placed in a directory that GNU C will search.
*
* This file contains 251 fixup descriptions.
*
* See README for more information.
*
* inclhack copyright (c) 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
* 2006, 2007, 2008
* The Free Software Foundation, Inc.
*
* inclhack is free software: you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
* Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* inclhack is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
* See the GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef SED_PROGRAM
#define SED_PROGRAM "/usr/bin/sed"
#endif
static char const sed_cmd_z[] = SED_PROGRAM;
/* * * * * * * * * * * * * * * * * * * * * * * * * *
*
* Description of Aab_Aix_Stdio fix
*/
tSCC zAab_Aix_StdioName[] =
"AAB_aix_stdio";
/*
* File name selection pattern
*/
tSCC zAab_Aix_StdioList[] =
"stdio.h\0";
/*
* Machine/OS name selection pattern
*/
tSCC* apzAab_Aix_StdioMachs[] = {
"*-*-aix*",
(const char*)NULL };
/*
* content selection pattern - do fix if pattern found
*/
tSCC zAab_Aix_StdioSelect0[] =
"define fopen fopen64";
#define AAB_AIX_STDIO_TEST_CT 1
static tTestDesc aAab_Aix_StdioTests[] = {
{ TT_EGREP, zAab_Aix_StdioSelect0, (regex_t*)NULL }, };
/*
* Fix Command Arguments for Aab_Aix_Stdio
*/
static const char* apzAab_Aix_StdioPatch[] = {
"wrap",
"",
"\n\
#if defined __GNUG__ && defined _LARGE_FILES && defined __cplusplus\n\
#define __need__aix_stdio_h_fix\n\
#ifdef __need__aix_stdio_h_fix\n\
#undef fseeko\n\
#undef ftello\n\
#undef fgetpos\n\
#undef fsetpos\n\
#undef fopen\n\
#undef freopen\n\
/* Alias the symbols using asm */\n\
extern \"C\" {\n\
extern int fgetpos(FILE *, fpos64_t *) __asm__(\"fgetpos64\");\n\
extern FILE *fopen(const char *, const char *) __asm__(\"fopen64\");\n\
extern FILE *freopen(const char *, const char *, FILE *) __asm__(\"freopen64\");\n\
extern int fseeko(FILE *, off64_t, int) __asm__(\"fseeko64\");\n\
extern int fsetpos(FILE *, const fpos64_t *) __asm__(\"fsetpos64\");\n\
extern off64_t ftello(FILE *) __asm__(\"ftello64\");\n\
}\n\
#endif\n\
#endif\n",
(char*)NULL };
/* * * * * * * * * * * * * * * * * * * * * * * * * *
*
* Description of Aab_Aix_Fcntl fix
*/
tSCC zAab_Aix_FcntlName[] =
"AAB_aix_fcntl";
/*
* File name selection pattern
*/
tSCC zAab_Aix_FcntlList[] =
"fcntl.h\0";
/*
* Machine/OS name selection pattern
*/
tSCC* apzAab_Aix_FcntlMachs[] = {
"*-*-aix*",
(const char*)NULL };
/*
* content selection pattern - do fix if pattern found
*/
tSCC zAab_Aix_FcntlSelect0[] =
"define open[ \t]open64";
#define AAB_AIX_FCNTL_TEST_CT 1
static tTestDesc aAab_Aix_FcntlTests[] = {
{ TT_EGREP, zAab_Aix_FcntlSelect0, (regex_t*)NULL }, };
/*
* Fix Command Arguments for Aab_Aix_Fcntl
*/
static const char* apzAab_Aix_FcntlPatch[] = {
"wrap",
"",
"\n\
#if defined __GNUG__ && defined _LARGE_FILES && defined __cplusplus\n\
#define __need__aix_fcntl_h_fix\n\
#ifdef __need__aix_fcntl_h_fix\n\
#undef open\n\
#undef creat\n\
#undef openat\n\
/* Alias the symbols using asm */\n\
extern \"C\" {\n\
extern int open(const char *, int, ...) __asm__(\"open64\");\n\
extern int creat(const char *, mode_t) __asm__(\"creat64\");\n\
#if (_XOPEN_SOURCE >= 700)\n\
extern int openat(int, const char *, int, ...) __asm__(\"open64at\");\n\
#endif\n\
}\n\
#endif\n\
#endif\n",
(char*)NULL };
/* * * * * * * * * * * * * * * * * * * * * * * * * *
*
* Description of Aab_Darwin7_9_Long_Double_Funcs fix
*/
tSCC zAab_Darwin7_9_Long_Double_FuncsName[] =
"AAB_darwin7_9_long_double_funcs";
/*
* File name selection pattern
*/
tSCC zAab_Darwin7_9_Long_Double_FuncsList[] =
"architecture/ppc/math.h\0";
/*
* Machine/OS name selection pattern
*/
tSCC* apzAab_Darwin7_9_Long_Double_FuncsMachs[] = {
"*-*-darwin7.9*",
(const char*)NULL };
/*
* content bypass pattern - skip fix if pattern found
*/
tSCC zAab_Darwin7_9_Long_Double_FuncsBypass0[] =
"powl";
#define AAB_DARWIN7_9_LONG_DOUBLE_FUNCS_TEST_CT 1
static tTestDesc aAab_Darwin7_9_Long_Double_FuncsTests[] = {
{ TT_NEGREP, zAab_Darwin7_9_Long_Double_FuncsBypass0, (regex_t*)NULL }, };
/*
* Fix Command Arguments for Aab_Darwin7_9_Long_Double_Funcs
*/
static const char* apzAab_Darwin7_9_Long_Double_FuncsPatch[] = {
"/* This file prototypes the long double functions available on Mac OS\n\
10.3.9. */\n\
#ifndef __MATH__\n\
# undef __APPLE_CC__\n\
# define __APPLE_CC__ 1345\n\
# include_next <architecture/ppc/math.h>\n\
# undef __APPLE_CC__\n\
# define __APPLE_CC__ 1\n\
# ifndef __LIBMLDBL_COMPAT\n\
# ifdef __LONG_DOUBLE_128__\n\
# define __LIBMLDBL_COMPAT(sym) __asm(\"_\" #sym \"$LDBL128\")\n\
# else\n\
# define __LIBMLDBL_COMPAT(sym)\n\
# endif /* __LONG_DOUBLE_128__ */\n\
# endif /* __LIBMLDBL_COMPAT */\n\
# ifdef __cplusplus\n\
extern \"C\" {\n\
# endif\n\
extern long double acosl( long double ) __LIBMLDBL_COMPAT(acosl);\n\
extern long double asinl( long double ) __LIBMLDBL_COMPAT(asinl);\n\
extern long double atanl( long double ) __LIBMLDBL_COMPAT(atanl);\n\
extern long double atan2l( long double, long double ) __LIBMLDBL_COMPAT(atan2l);\n\
extern long double cosl( long double ) __LIBMLDBL_COMPAT(cosl);\n\
extern long double sinl( long double ) __LIBMLDBL_COMPAT(sinl);\n\
extern long double tanl( long double ) __LIBMLDBL_COMPAT(tanl);\n\
extern long double acoshl( long double ) __LIBMLDBL_COMPAT(acoshl);\n\
extern long double asinhl( long double ) __LIBMLDBL_COMPAT(asinhl);\n\
extern long double atanhl( long double ) __LIBMLDBL_COMPAT(atanhl);\n\
extern long double coshl( long double ) __LIBMLDBL_COMPAT(coshl);\n\
extern long double sinhl( long double ) __LIBMLDBL_COMPAT(sinhl);\n\
extern long double tanhl( long double ) __LIBMLDBL_COMPAT(tanhl);\n\
extern long double expl( long double ) __LIBMLDBL_COMPAT(expl);\n\
extern long double exp2l( long double ) __LIBMLDBL_COMPAT(exp2l);\n\
extern long double expm1l( long double ) __LIBMLDBL_COMPAT(expm1l);\n\
extern long double logl( long double ) __LIBMLDBL_COMPAT(logl);\n\
extern long double log10l( long double ) __LIBMLDBL_COMPAT(log10l);\n\
extern long double log2l( long double ) __LIBMLDBL_COMPAT(log2l);\n\
extern long double log1pl( long double ) __LIBMLDBL_COMPAT(log1pl);\n\
extern long double logbl( long double ) __LIBMLDBL_COMPAT(logbl);\n\
extern long double modfl( long double, long double * ) __LIBMLDBL_COMPAT(modfl);\n\
extern long double ldexpl( long double, int ) __LIBMLDBL_COMPAT(ldexpl);\n\
extern long double frexpl( long double, int * ) __LIBMLDBL_COMPAT(frexpl);\n\
extern int ilogbl( long double ) __LIBMLDBL_COMPAT(ilogbl);\n\
extern long double scalbnl( long double, int ) __LIBMLDBL_COMPAT(scalbnl);\n\
extern long double scalblnl( long double, long int ) __LIBMLDBL_COMPAT(scalblnl);\n\
extern long double fabsl( long double ) __LIBMLDBL_COMPAT(fabsl);\n\
extern long double cbrtl( long double ) __LIBMLDBL_COMPAT(cbrtl);\n\
extern long double hypotl( long double, long double ) __LIBMLDBL_COMPAT(hypotl);\n\
extern long double powl( long double, long double ) __LIBMLDBL_COMPAT(powl);\n\
extern long double sqrtl( long double ) __LIBMLDBL_COMPAT(sqrtl);\n\
extern long double erfl( long double ) __LIBMLDBL_COMPAT(erfl);\n\
extern long double erfcl( long double ) __LIBMLDBL_COMPAT(erfcl);\n\
extern long double lgammal( long double ) __LIBMLDBL_COMPAT(lgammal);\n\
extern long double tgammal( long double ) __LIBMLDBL_COMPAT(tgammal);\n\
extern long double ceill( long double ) __LIBMLDBL_COMPAT(ceill);\n\
extern long double floorl( long double ) __LIBMLDBL_COMPAT(floorl);\n\
extern long double nearbyintl( long double ) __LIBMLDBL_COMPAT(nearbyintl);\n\
extern long double rintl( long double ) __LIBMLDBL_COMPAT(rintl);\n\
extern long int lrintl( long double ) __LIBMLDBL_COMPAT(lrintl);\n\
extern long long int llrintl( long double ) __LIBMLDBL_COMPAT(llrintl);\n\
extern long double roundl( long double ) __LIBMLDBL_COMPAT(roundl);\n\
extern long int lroundl( long double ) __LIBMLDBL_COMPAT(lroundl);\n\
extern long long int llroundl( long double ) __LIBMLDBL_COMPAT(llroundl);\n\
extern long double truncl( long double ) __LIBMLDBL_COMPAT(truncl);\n\
extern long double fmodl( long double, long double) __LIBMLDBL_COMPAT(fmodl);\n\
extern long double remainderl( long double, long double ) __LIBMLDBL_COMPAT(remainderl);\n\
extern long double remquol( long double, long double, int * ) __LIBMLDBL_COMPAT(remquol);\n\
extern long double copysignl( long double, long double ) __LIBMLDBL_COMPAT(copysignl);\n\
extern long double nanl( const char * ) __LIBMLDBL_COMPAT(nanl);\n\
extern long double nextafterl( long double, long double ) __LIBMLDBL_COMPAT(nextafterl);\n\
extern long double nexttowardl( long double, long double ) __LIBMLDBL_COMPAT(nexttowardl);\n\
extern long double fdiml( long double, long double ) __LIBMLDBL_COMPAT(fdiml);\n\
extern long double fmaxl( long double, long double ) __LIBMLDBL_COMPAT(fmaxl);\n\
extern long double fminl( long double, long double ) __LIBMLDBL_COMPAT(fminl);\n\
extern long double fmal( long double, long double, long double ) __LIBMLDBL_COMPAT(fmal);\n\
# ifdef __cplusplus\n\
}\n\
# endif\n\
#endif /* __MATH__ */",
(char*)NULL };
/* * * * * * * * * * * * * * * * * * * * * * * * * *
*
* Description of Aab_Fd_Zero_Asm_Posix_Types_H fix
*/
tSCC zAab_Fd_Zero_Asm_Posix_Types_HName[] =
"AAB_fd_zero_asm_posix_types_h";
/*
* File name selection pattern
*/
tSCC zAab_Fd_Zero_Asm_Posix_Types_HList[] =
"asm/posix_types.h\0";
/*
* Machine/OS name selection pattern
*/
tSCC* apzAab_Fd_Zero_Asm_Posix_Types_HMachs[] = {
"i[34567]86-*-linux*",
(const char*)NULL };
/*
* content bypass pattern - skip fix if pattern found
*/
tSCC zAab_Fd_Zero_Asm_Posix_Types_HBypass0[] =
"} while";
tSCC zAab_Fd_Zero_Asm_Posix_Types_HBypass1[] =
"x86_64";
tSCC zAab_Fd_Zero_Asm_Posix_Types_HBypass2[] =
"posix_types_64";
#define AAB_FD_ZERO_ASM_POSIX_TYPES_H_TEST_CT 3
static tTestDesc aAab_Fd_Zero_Asm_Posix_Types_HTests[] = {
{ TT_NEGREP, zAab_Fd_Zero_Asm_Posix_Types_HBypass0, (regex_t*)NULL },
{ TT_NEGREP, zAab_Fd_Zero_Asm_Posix_Types_HBypass1, (regex_t*)NULL },
{ TT_NEGREP, zAab_Fd_Zero_Asm_Posix_Types_HBypass2, (regex_t*)NULL }, };
/*
* Fix Command Arguments for Aab_Fd_Zero_Asm_Posix_Types_H
*/
static const char* apzAab_Fd_Zero_Asm_Posix_Types_HPatch[] = {
"/* This file fixes a bug in the __FD_ZERO macro\n\
for older versions of the Linux kernel. */\n\
#ifndef _POSIX_TYPES_H_WRAPPER\n\
#include <features.h>\n\
#include_next <asm/posix_types.h>\n\n\
#if defined(__FD_ZERO) && !defined(__GLIBC__)\n\
#undef __FD_ZERO\n\
#define __FD_ZERO(fdsetp) \\\n\
do { \\\n\
int __d0, __d1; \\\n\
__asm__ __volatile__(\"cld ; rep ; stosl\" \\\n\
: \"=&c\" (__d0), \"=&D\" (__d1) \\\n\
: \"a\" (0), \"0\" (__FDSET_LONGS), \\\n\
\"1\" ((__kernel_fd_set *) (fdsetp)) :\"memory\"); \\\n\
} while (0)\n\
#endif\n\n\
#define _POSIX_TYPES_H_WRAPPER\n\
#endif /* _POSIX_TYPES_H_WRAPPER */",
(char*)NULL };
/* * * * * * * * * * * * * * * * * * * * * * * * * *
*
* Description of Aab_Fd_Zero_Gnu_Types_H fix
*/
tSCC zAab_Fd_Zero_Gnu_Types_HName[] =
"AAB_fd_zero_gnu_types_h";
/*
* File name selection pattern
*/
tSCC zAab_Fd_Zero_Gnu_Types_HList[] =
"gnu/types.h\0";
/*
* Machine/OS name selection pattern
*/
tSCC* apzAab_Fd_Zero_Gnu_Types_HMachs[] = {
"i[34567]86-*-linux*",
(const char*)NULL };
#define AAB_FD_ZERO_GNU_TYPES_H_TEST_CT 0
#define aAab_Fd_Zero_Gnu_Types_HTests (tTestDesc*)NULL
/*
* Fix Command Arguments for Aab_Fd_Zero_Gnu_Types_H
*/
static const char* apzAab_Fd_Zero_Gnu_Types_HPatch[] = {
"/* This file fixes a bug in the __FD_ZERO macro present in glibc 1.x. */\n\
#ifndef _TYPES_H_WRAPPER\n\
#include <features.h>\n\
#include_next <gnu/types.h>\n\n\
#if defined(__FD_ZERO) && !defined(__GLIBC__)\n\
#undef __FD_ZERO\n\
# define __FD_ZERO(fdsetp) \\\n\
do { \\\n\
int __d0, __d1; \\\n\
__asm__ __volatile__(\"cld ; rep ; stosl\" \\\n\
: \"=&c\" (__d0), \"=&D\" (__d1) \\\n\
: \"a\" (0), \"0\" (__FDSET_LONGS), \\\n\
\"1\" ((__fd_set *) (fdsetp)) :\"memory\"); \\\n\
} while (0)\n\
#endif\n\n\
#define _TYPES_H_WRAPPER\n\
#endif /* _TYPES_H_WRAPPER */",
(char*)NULL };
/* * * * * * * * * * * * * * * * * * * * * * * * * *
*
* Description of Aab_Fd_Zero_Selectbits_H fix
*/
tSCC zAab_Fd_Zero_Selectbits_HName[] =
"AAB_fd_zero_selectbits_h";
/*
* File name selection pattern
*/
tSCC zAab_Fd_Zero_Selectbits_HList[] =
"selectbits.h\0";
/*
* Machine/OS name selection pattern
*/
tSCC* apzAab_Fd_Zero_Selectbits_HMachs[] = {
"i[34567]86-*-linux*",
(const char*)NULL };
#define AAB_FD_ZERO_SELECTBITS_H_TEST_CT 0
#define aAab_Fd_Zero_Selectbits_HTests (tTestDesc*)NULL
/*
* Fix Command Arguments for Aab_Fd_Zero_Selectbits_H
*/
static const char* apzAab_Fd_Zero_Selectbits_HPatch[] = {
"/* This file fixes a bug in the __FD_ZERO macro present in glibc 2.0.x. */\n\
#ifndef _SELECTBITS_H_WRAPPER\n\
#include <features.h>\n\
#include_next <selectbits.h>\n\n\
#if defined(__FD_ZERO) && defined(__GLIBC__) \\\\\n\
&& defined(__GLIBC_MINOR__) && __GLIBC__ == 2 \\\\\n\
&& __GLIBC_MINOR__ == 0\n\
#undef __FD_ZERO\n\
#define __FD_ZERO(fdsetp) \\\\\n\
do { \\\\\n\
int __d0, __d1; \\\\\n\
__asm__ __volatile__ (\"cld; rep; stosl\" \\\\\n\
: \"=&c\" (__d0), \"=&D\" (__d1) \\\\\n\
: \"a\" (0), \"0\" (sizeof (__fd_set) \\\\\n\
/ sizeof (__fd_mask)), \\\\\n\
\"1\" ((__fd_mask *) (fdsetp)) \\\\\n\
: \"memory\"); \\\\\n\
} while (0)\n\
#endif\n\n\
#define _SELECTBITS_H_WRAPPER\n\
#endif /* _SELECTBITS_H_WRAPPER */",
(char*)NULL };
/* * * * * * * * * * * * * * * * * * * * * * * * * *
*
* Description of Aab_Solaris_Sys_Varargs_H fix
*/
tSCC zAab_Solaris_Sys_Varargs_HName[] =
"AAB_solaris_sys_varargs_h";
/*
* File name selection pattern
*/
tSCC zAab_Solaris_Sys_Varargs_HList[] =
"sys/varargs.h\0";
/*
* Machine/OS name selection pattern
*/
tSCC* apzAab_Solaris_Sys_Varargs_HMachs[] = {
"*-*-solaris*",
(const char*)NULL };
#define AAB_SOLARIS_SYS_VARARGS_H_TEST_CT 0
#define aAab_Solaris_Sys_Varargs_HTests (tTestDesc*)NULL
/*
* Fix Command Arguments for Aab_Solaris_Sys_Varargs_H
*/
static const char* apzAab_Solaris_Sys_Varargs_HPatch[] = {
"#ifdef __STDC__\n\
#include <stdarg.h>\n\
#else\n\
#include <varargs.h>\n\
#endif",
(char*)NULL };
/* * * * * * * * * * * * * * * * * * * * * * * * * *
*
* Description of Aab_Sun_Memcpy fix
*/
tSCC zAab_Sun_MemcpyName[] =
"AAB_sun_memcpy";
/*
* File name selection pattern
*/
tSCC zAab_Sun_MemcpyList[] =
"memory.h\0";
/*
* Machine/OS name selection pattern
*/
#define apzAab_Sun_MemcpyMachs (const char**)NULL
/*
* content selection pattern - do fix if pattern found
*/
tSCC zAab_Sun_MemcpySelect0[] =
"/\\*\t@\\(#\\)(head/memory.h\t50.1\t |memory\\.h 1\\.[2-4] 8./../.. SMI; from S5R2 1\\.2\t)\\*/";
#define AAB_SUN_MEMCPY_TEST_CT 1
static tTestDesc aAab_Sun_MemcpyTests[] = {
{ TT_EGREP, zAab_Sun_MemcpySelect0, (regex_t*)NULL }, };
/*
* Fix Command Arguments for Aab_Sun_Memcpy
*/
static const char* apzAab_Sun_MemcpyPatch[] = {
"/* This file was generated by fixincludes */\n\
#ifndef __memory_h__\n\
#define __memory_h__\n\n\
#ifdef __STDC__\n\
extern void *memccpy();\n\
extern void *memchr();\n\
extern void *memcpy();\n\
extern void *memset();\n\
#else\n\
extern char *memccpy();\n\
extern char *memchr();\n\
extern char *memcpy();\n\
extern char *memset();\n\
#endif /* __STDC__ */\n\n\
extern int memcmp();\n\n\
#endif /* __memory_h__ */",
(char*)NULL };
/* * * * * * * * * * * * * * * * * * * * * * * * * *
*
* Description of Aab_Vxworks_Assert fix
*/
tSCC zAab_Vxworks_AssertName[] =
"AAB_vxworks_assert";
/*
* File name selection pattern
*/
tSCC zAab_Vxworks_AssertList[] =
"assert.h\0";
/*
* Machine/OS name selection pattern
*/
tSCC* apzAab_Vxworks_AssertMachs[] = {
"*-*-vxworks*",
(const char*)NULL };
#define AAB_VXWORKS_ASSERT_TEST_CT 0
#define aAab_Vxworks_AssertTests (tTestDesc*)NULL
/*
* Fix Command Arguments for Aab_Vxworks_Assert
*/
static const char* apzAab_Vxworks_AssertPatch[] = {
"#ifdef _ASSERT_H\n\
#undef _ASSERT_H\n\
#undef assert\n\
#endif\n\n\
#define _ASSERT_H\n\n\
#ifdef __cplusplus\n\
extern \"C\" {\n\
#endif\n\n\
#if defined(__STDC__) || defined(__cplusplus)\n\
extern void __assert (const char*);\n\
#else\n\
extern void __assert ();\n\
#endif\n\n\
#ifdef NDEBUG\n\
#define assert(ign) ((void)0)\n\
#else\n\n\
#define ASSERT_STRINGIFY(str) ASSERT_STRINGIFY_HELPER(str)\n\
#define ASSERT_STRINGIFY_HELPER(str) #str\n\n\
#define assert(test) ((void) \\\n\
((test) ? ((void)0) : \\\n\
__assert(\"Assertion failed: \" #test \", file \" \\\n\
__FILE__ \", line \" ASSERT_STRINGIFY(__LINE__) \"\\n\")))\n\n\
#endif\n\n\
#ifdef __cplusplus\n\
}\n\
#endif",
(char*)NULL };
/* * * * * * * * * * * * * * * * * * * * * * * * * *
*
* Description of Aab_Vxworks_Regs_Vxtypes fix
*/
tSCC zAab_Vxworks_Regs_VxtypesName[] =
"AAB_vxworks_regs_vxtypes";
/*
* File name selection pattern
*/
tSCC zAab_Vxworks_Regs_VxtypesList[] =
"regs.h\0";
/*
* Machine/OS name selection pattern
*/
tSCC* apzAab_Vxworks_Regs_VxtypesMachs[] = {
"*-*-vxworks*",
(const char*)NULL };
#define AAB_VXWORKS_REGS_VXTYPES_TEST_CT 0
#define aAab_Vxworks_Regs_VxtypesTests (tTestDesc*)NULL
/*
* Fix Command Arguments for Aab_Vxworks_Regs_Vxtypes
*/
static const char* apzAab_Vxworks_Regs_VxtypesPatch[] = {
"#ifndef _REGS_H\n\
#define _REGS_H\n\
#include <types/vxTypesOld.h>\n\
#include_next <arch/../regs.h>\n\
#endif",
(char*)NULL };
/* * * * * * * * * * * * * * * * * * * * * * * * * *
*
* Description of Aab_Vxworks_Unistd fix
*/
tSCC zAab_Vxworks_UnistdName[] =
"AAB_vxworks_unistd";
/*
* File name selection pattern
*/
tSCC zAab_Vxworks_UnistdList[] =
"unistd.h\0";
/*
* Machine/OS name selection pattern
*/
tSCC* apzAab_Vxworks_UnistdMachs[] = {
"*-*-vxworks*",
(const char*)NULL };
#define AAB_VXWORKS_UNISTD_TEST_CT 0
#define aAab_Vxworks_UnistdTests (tTestDesc*)NULL
/*
* Fix Command Arguments for Aab_Vxworks_Unistd
*/
static const char* apzAab_Vxworks_UnistdPatch[] = {
"#ifndef _UNISTD_H\n\
#define _UNISTD_H\n\
#include_next <unistd.h>\n\
#include <ioLib.h>\n\
#ifndef STDIN_FILENO\n\
#define STDIN_FILENO 0\n\
#endif\n\
#ifndef STDOUT_FILENO\n\
#define STDOUT_FILENO 1\n\
#endif\n\
#ifndef STDERR_FILENO\n\
#define STDERR_FILENO 2\n\
#endif\n\
#endif /* _UNISTD_H */",
(char*)NULL };
/* * * * * * * * * * * * * * * * * * * * * * * * * *
*
* Description of Aix_Assert fix
*/
tSCC zAix_AssertName[] =
"aix_assert";
/*
* File name selection pattern
*/
tSCC zAix_AssertList[] =
"assert.h\0";
/*
* Machine/OS name selection pattern
*/
tSCC* apzAix_AssertMachs[] = {
"*-*-aix*",
(const char*)NULL };
/*
* content selection pattern - do fix if pattern found
*/
tSCC zAix_AssertSelect0[] =
"#define[ \t]static_assert[ \t]_Static_assert";
#define AIX_ASSERT_TEST_CT 1
static tTestDesc aAix_AssertTests[] = {
{ TT_EGREP, zAix_AssertSelect0, (regex_t*)NULL }, };
/*
* Fix Command Arguments for Aix_Assert
*/
static const char* apzAix_AssertPatch[] = {
"format",
"#ifndef __cplusplus\n\
%0\n\
#endif",
(char*)NULL };
/* * * * * * * * * * * * * * * * * * * * * * * * * *
*
* Description of Aix_Complex fix
*/
tSCC zAix_ComplexName[] =
"aix_complex";
/*
* File name selection pattern
*/
tSCC zAix_ComplexList[] =
"complex.h\0";
/*
* Machine/OS name selection pattern
*/
tSCC* apzAix_ComplexMachs[] = {
"*-*-aix*",
(const char*)NULL };
/*
* content selection pattern - do fix if pattern found
*/
tSCC zAix_ComplexSelect0[] =
"#define[ \t]_Complex_I[ \t]__I";
#define AIX_COMPLEX_TEST_CT 1
static tTestDesc aAix_ComplexTests[] = {
{ TT_EGREP, zAix_ComplexSelect0, (regex_t*)NULL }, };
/*
* Fix Command Arguments for Aix_Complex
*/
static const char* apzAix_ComplexPatch[] = {
"format",
"#define _Complex_I (__extension__ 1.0iF)",
(char*)NULL };
/* * * * * * * * * * * * * * * * * * * * * * * * * *
*
* Description of Aix_Externc fix
*/
tSCC zAix_ExterncName[] =
"aix_externc";
/*
* File name selection pattern
*/
tSCC zAix_ExterncList[] =
"ctype.h\0fcntl.h\0langinfo.h\0ldfcn.h\0sys/localedef.h\0sys/times.h\0";
/*
* Machine/OS name selection pattern
*/
tSCC* apzAix_ExterncMachs[] = {
"*-*-aix*",
(const char*)NULL };
/*
* content bypass pattern - skip fix if pattern found
*/
tSCC zAix_ExterncBypass0[] =
"extern \"C\"";
#define AIX_EXTERNC_TEST_CT 1
static tTestDesc aAix_ExterncTests[] = {
{ TT_NEGREP, zAix_ExterncBypass0, (regex_t*)NULL }, };
/*
* Fix Command Arguments for Aix_Externc
*/
static const char* apzAix_ExterncPatch[] = {
"wrap",
"#ifdef __cplusplus\n\
extern \"C\" {\n\
#endif\n",
"#ifdef __cplusplus\n\
}\n\
#endif\n",
(char*)NULL };
/* * * * * * * * * * * * * * * * * * * * * * * * * *
*
* Description of Aix_Externcpp1 fix
*/
tSCC zAix_Externcpp1Name[] =
"aix_externcpp1";
/*
* File name selection pattern
*/
tSCC zAix_Externcpp1List[] =
"sys/socket.h\0";
/*
* Machine/OS name selection pattern
*/
tSCC* apzAix_Externcpp1Machs[] = {
"*-*-aix*",
(const char*)NULL };
/*
* content selection pattern - do fix if pattern found
*/
tSCC zAix_Externcpp1Select0[] =
"#ifdef __cplusplus";
#define AIX_EXTERNCPP1_TEST_CT 1
static tTestDesc aAix_Externcpp1Tests[] = {
{ TT_EGREP, zAix_Externcpp1Select0, (regex_t*)NULL }, };
/*
* Fix Command Arguments for Aix_Externcpp1
*/
static const char* apzAix_Externcpp1Patch[] = {
"format",
"#ifdef __cplusplus\n\
extern \"C++\" {",
(char*)NULL };
/* * * * * * * * * * * * * * * * * * * * * * * * * *
*
* Description of Aix_Externcpp2 fix
*/
tSCC zAix_Externcpp2Name[] =
"aix_externcpp2";
/*
* File name selection pattern
*/
tSCC zAix_Externcpp2List[] =
"sys/socket.h\0";
/*
* Machine/OS name selection pattern
*/
tSCC* apzAix_Externcpp2Machs[] = {
"*-*-aix*",
(const char*)NULL };
/*
* content selection pattern - do fix if pattern found
*/
tSCC zAix_Externcpp2Select0[] =
"#else /\\* __cplusplus \\*/";
#define AIX_EXTERNCPP2_TEST_CT 1
static tTestDesc aAix_Externcpp2Tests[] = {
{ TT_EGREP, zAix_Externcpp2Select0, (regex_t*)NULL }, };
/*
* Fix Command Arguments for Aix_Externcpp2
*/
static const char* apzAix_Externcpp2Patch[] = {
"format",
"} /* extern \"C++\" */\n\
#else /* __cplusplus */",
(char*)NULL };
/* * * * * * * * * * * * * * * * * * * * * * * * * *
*
* Description of Aix_Malloc fix
*/
tSCC zAix_MallocName[] =
"aix_malloc";
/*
* File name selection pattern
*/
tSCC zAix_MallocList[] =
"malloc.h\0";
/*
* Machine/OS name selection pattern
*/
tSCC* apzAix_MallocMachs[] = {
"*-*-aix*",
(const char*)NULL };
/*
* content selection pattern - do fix if pattern found
*/
tSCC zAix_MallocSelect0[] =
"#ifdef __cplusplus";
#define AIX_MALLOC_TEST_CT 1
static tTestDesc aAix_MallocTests[] = {
{ TT_EGREP, zAix_MallocSelect0, (regex_t*)NULL }, };
/*
* Fix Command Arguments for Aix_Malloc
*/
static const char* apzAix_MallocPatch[] = {
"format",
"#if (defined(__cplusplus) && defined(__IBMCPP__))",
(char*)NULL };
/* * * * * * * * * * * * * * * * * * * * * * * * * *
*
* Description of Aix_Net_If_Arp fix
*/
tSCC zAix_Net_If_ArpName[] =
"aix_net_if_arp";
/*
* File name selection pattern
*/
tSCC zAix_Net_If_ArpList[] =
"net/if_arp.h\0";
/*
* Machine/OS name selection pattern
*/
tSCC* apzAix_Net_If_ArpMachs[] = {
"*-*-aix*",
(const char*)NULL };
/*
* content selection pattern - do fix if pattern found
*/
tSCC zAix_Net_If_ArpSelect0[] =
"^struct fc_softc \\{";
#define AIX_NET_IF_ARP_TEST_CT 1
static tTestDesc aAix_Net_If_ArpTests[] = {
{ TT_EGREP, zAix_Net_If_ArpSelect0, (regex_t*)NULL }, };
/*
* Fix Command Arguments for Aix_Net_If_Arp
*/
static const char* apzAix_Net_If_ArpPatch[] = {
"format",
"typedef struct _fc_softc {",
(char*)NULL };
/* * * * * * * * * * * * * * * * * * * * * * * * * *
*
* Description of Aix_Null fix
*/
tSCC zAix_NullName[] =
"aix_null";
/*
* File name selection pattern
*/
tSCC zAix_NullList[] =
"curses.h\0dbm.h\0locale.h\0stdio.h\0stdlib.h\0string.h\0time.h\0unistd.h\0wchar.h\0sys/dir.h\0sys/param.h\0sys/types.h\0";
/*
* Machine/OS name selection pattern
*/
tSCC* apzAix_NullMachs[] = {
"*-*-aix*",
(const char*)NULL };
/*
* content selection pattern - do fix if pattern found
*/
tSCC zAix_NullSelect0[] =
"#define[ \t]+NULL[ \t]+\\(*0L*\\)*";
/*
* content bypass pattern - skip fix if pattern found
*/
tSCC zAix_NullBypass0[] =
"__null";
#define AIX_NULL_TEST_CT 2
static tTestDesc aAix_NullTests[] = {
{ TT_NEGREP, zAix_NullBypass0, (regex_t*)NULL },
{ TT_EGREP, zAix_NullSelect0, (regex_t*)NULL }, };
/*
* Fix Command Arguments for Aix_Null
*/
static const char* apzAix_NullPatch[] = {
"format",
"#ifndef NULL\n\
#ifdef __cplusplus\n\
#ifdef __GNUG__\n\
#define NULL __null\n\
#else /* ! __GNUG__ */\n\
#define NULL 0L\n\
#endif /* __GNUG__ */\n\
#else /* ! __cplusplus */\n\
#define NULL ((void *)0)\n\
#endif /* __cplusplus */\n\
#endif /* !NULL */",
(char*)NULL };
/* * * * * * * * * * * * * * * * * * * * * * * * * *
*
* Description of Aix_Once_Init_1 fix
*/
tSCC zAix_Once_Init_1Name[] =
"aix_once_init_1";
/*
* File name selection pattern
*/
tSCC zAix_Once_Init_1List[] =
"pthread.h\0";
/*
* Machine/OS name selection pattern
*/
tSCC* apzAix_Once_Init_1Machs[] = {
"*-*-aix*",
(const char*)NULL };
/*
* content selection pattern - do fix if pattern found
*/
tSCC zAix_Once_Init_1Select0[] =
"#define[ \t]PTHREAD_ONCE_INIT \\\\\n\
\\{ \\\\\n";
#define AIX_ONCE_INIT_1_TEST_CT 1
static tTestDesc aAix_Once_Init_1Tests[] = {
{ TT_EGREP, zAix_Once_Init_1Select0, (regex_t*)NULL }, };
/*
* Fix Command Arguments for Aix_Once_Init_1
*/
static const char* apzAix_Once_Init_1Patch[] = {
"format",
"#define PTHREAD_ONCE_INIT \\\n\
{{ \\\n",
(char*)NULL };
/* * * * * * * * * * * * * * * * * * * * * * * * * *
*
* Description of Aix_Once_Init_2 fix
*/
tSCC zAix_Once_Init_2Name[] =
"aix_once_init_2";
/*
* File name selection pattern
*/
tSCC zAix_Once_Init_2List[] =
"pthread.h\0";