@@ -50,7 +50,7 @@ int main (void)
50
50
int ind ;
51
51
size_t base_type ;
52
52
size_t base_type_size ;
53
- size_t errno ;
53
+ size_t iso_errno ;
54
54
55
55
/* Test function establish. */
56
56
/* Fresh descriptor, base address is NULL. */
@@ -77,7 +77,7 @@ int main (void)
77
77
/* Loop through rank. */
78
78
for (int k = 0 ; k <= CFI_MAX_RANK ; k ++ )
79
79
{
80
- errno = 1 ;
80
+ iso_errno = 1 ;
81
81
rank = k ;
82
82
CFI_CDESC_T (rank ) test1 ;
83
83
/* We do this because C sometimes doesn't make the structures with
@@ -154,7 +154,7 @@ int main (void)
154
154
/* Loop through rank. */
155
155
for (int k = 0 ; k <= CFI_MAX_RANK ; k ++ )
156
156
{
157
- errno = 1 ;
157
+ iso_errno = 1 ;
158
158
rank = k ;
159
159
if (extents != NULL )
160
160
{
@@ -284,7 +284,7 @@ int main (void)
284
284
/* Loop through rank. */
285
285
for (int k = 0 ; k <= CFI_MAX_RANK ; k ++ )
286
286
{
287
- errno = 1 ;
287
+ iso_errno = 1 ;
288
288
rank = k ;
289
289
if (extents != NULL )
290
290
{
@@ -358,7 +358,7 @@ int main (void)
358
358
}
359
359
360
360
rank = 1 ;
361
- errno = 1 ;
361
+ iso_errno = 1 ;
362
362
CFI_CDESC_T (rank ) test4 ;
363
363
base_type = type [3 ] & CFI_type_mask ;
364
364
base_type_size = (type [3 ] - base_type ) >> CFI_type_kind_shift ;
@@ -373,7 +373,7 @@ int main (void)
373
373
}
374
374
375
375
rank = 1 ;
376
- errno = 1 ;
376
+ iso_errno = 1 ;
377
377
CFI_CDESC_T (rank ) test5 ;
378
378
base_type = type [3 ] & CFI_type_mask ;
379
379
base_type_size = (type [3 ] - base_type ) >> CFI_type_kind_shift ;
@@ -389,7 +389,7 @@ int main (void)
389
389
390
390
/* Test CFI_deallocate. */
391
391
rank = 1 ;
392
- errno = 1 ;
392
+ iso_errno = 1 ;
393
393
base_type = type [3 ] & CFI_type_mask ;
394
394
base_type_size = (type [3 ] - base_type ) >> CFI_type_kind_shift ;
395
395
for (int i = 1 ; i <= 3 ; i ++ )
@@ -434,7 +434,7 @@ int main (void)
434
434
attribute = i ;
435
435
for (int j = 0 ; j <= 4 ; j ++ )
436
436
{
437
- errno = 1 ;
437
+ iso_errno = 1 ;
438
438
rank = j ;
439
439
if (extents != NULL )
440
440
{
@@ -529,7 +529,7 @@ int main (void)
529
529
/* Loop through rank. */
530
530
for (int k = 1 ; k <= CFI_MAX_RANK ; k ++ )
531
531
{
532
- errno = 1 ;
532
+ iso_errno = 1 ;
533
533
rank = k ;
534
534
CFI_CDESC_T (rank ) source ;
535
535
if (extents != NULL )
@@ -616,7 +616,7 @@ int main (void)
616
616
for (int i = 0 ; i < CFI_MAX_RANK ; i ++ )
617
617
{
618
618
rank = i ;
619
- errno = 1 ;
619
+ iso_errno = 1 ;
620
620
base_type = type [3 ] & CFI_type_mask ;
621
621
base_type_size = (type [3 ] - base_type ) >> CFI_type_kind_shift ;
622
622
attribute = CFI_attribute_other ;
@@ -643,7 +643,7 @@ int main (void)
643
643
{
644
644
extents [r ] = r + 2 ;
645
645
}
646
- ind = CFI_establish ((CFI_cdesc_t * ) & test8b , & errno , attribute , type [3 ],
646
+ ind = CFI_establish ((CFI_cdesc_t * ) & test8b , & iso_errno , attribute , type [3 ],
647
647
base_type_size , rank , extents );
648
648
ind = CFI_setpointer ((CFI_cdesc_t * ) & test8a , (CFI_cdesc_t * ) & test8b ,
649
649
lower );
@@ -684,7 +684,7 @@ int main (void)
684
684
685
685
/* NULL source. */
686
686
rank = 10 ;
687
- errno = 1 ;
687
+ iso_errno = 1 ;
688
688
base_type = type [3 ] & CFI_type_mask ;
689
689
base_type_size = (type [3 ] - base_type ) >> CFI_type_kind_shift ;
690
690
CFI_CDESC_T (rank ) test9 ;
@@ -719,7 +719,7 @@ int main (void)
719
719
}
720
720
721
721
rank = 3 ;
722
- errno = 1 ;
722
+ iso_errno = 1 ;
723
723
attribute = CFI_attribute_other ;
724
724
CFI_CDESC_T (rank ) test10a , test10b ;
725
725
if (extents != NULL )
@@ -747,7 +747,7 @@ int main (void)
747
747
}
748
748
base_type = CFI_type_double & CFI_type_mask ;
749
749
base_type_size = (CFI_type_double - base_type ) >> CFI_type_kind_shift ;
750
- ind = CFI_establish ((CFI_cdesc_t * ) & test10b , & errno , attribute ,
750
+ ind = CFI_establish ((CFI_cdesc_t * ) & test10b , & iso_errno , attribute ,
751
751
CFI_type_double , base_type_size , rank , extents );
752
752
ind = CFI_setpointer ((CFI_cdesc_t * ) & test10a , (CFI_cdesc_t * ) & test10b ,
753
753
lower );
@@ -757,14 +757,14 @@ int main (void)
757
757
return 1 ;
758
758
}
759
759
760
- errno = 1 ;
760
+ iso_errno = 1 ;
761
761
base_type = CFI_type_other & CFI_type_mask ;
762
762
base_type_size = 666 ;
763
763
ind = CFI_establish ((CFI_cdesc_t * ) & test10a , & ind , attribute ,
764
764
CFI_type_other , base_type_size , rank , extents );
765
765
base_type = CFI_type_other & CFI_type_mask ;
766
766
base_type_size = 69 ;
767
- ind = CFI_establish ((CFI_cdesc_t * ) & test10b , & errno , attribute ,
767
+ ind = CFI_establish ((CFI_cdesc_t * ) & test10b , & iso_errno , attribute ,
768
768
CFI_type_other , base_type_size , rank , extents );
769
769
ind = CFI_setpointer ((CFI_cdesc_t * ) & test10a , (CFI_cdesc_t * ) & test10b ,
770
770
lower );
@@ -774,7 +774,7 @@ int main (void)
774
774
return 1 ;
775
775
}
776
776
777
- errno = 1 ;
777
+ iso_errno = 1 ;
778
778
base_type = type [3 ] & CFI_type_mask ;
779
779
base_type_size = (CFI_type_long - base_type ) >> CFI_type_kind_shift ;
780
780
ind = CFI_establish ((CFI_cdesc_t * ) & test10a , & ind , attribute , type [3 ],
@@ -798,7 +798,7 @@ int main (void)
798
798
}
799
799
base_type = CFI_type_other & CFI_type_mask ;
800
800
base_type_size = (CFI_type_long - base_type ) >> CFI_type_kind_shift ;
801
- ind = CFI_establish ((CFI_cdesc_t * ) & test10c , & errno , attribute , type [3 ],
801
+ ind = CFI_establish ((CFI_cdesc_t * ) & test10c , & iso_errno , attribute , type [3 ],
802
802
base_type_size , rank , extents );
803
803
ind = CFI_setpointer ((CFI_cdesc_t * ) & test10a , (CFI_cdesc_t * ) & test10c ,
804
804
lower );
@@ -847,7 +847,7 @@ int main (void)
847
847
/* Loop through rank. */
848
848
for (int k = 1 ; k <= CFI_MAX_RANK ; k ++ )
849
849
{
850
- errno = 1 ;
850
+ iso_errno = 1 ;
851
851
rank = k ;
852
852
CFI_CDESC_T (rank ) section , source ;
853
853
if (extents != NULL )
@@ -1010,7 +1010,7 @@ int main (void)
1010
1010
next_type2 :;
1011
1011
}
1012
1012
1013
- errno = 1 ;
1013
+ iso_errno = 1 ;
1014
1014
rank = 1 ;
1015
1015
CFI_CDESC_T (rank ) section , source ;
1016
1016
if (extents != NULL )
@@ -1089,7 +1089,7 @@ int main (void)
1089
1089
CFI_CDESC_T (0 ) section2 , source2 ;
1090
1090
ind = CFI_establish ((CFI_cdesc_t * ) & source2 , & ind , CFI_attribute_other ,
1091
1091
type [3 ], 0 , 0 , NULL );
1092
- ind = CFI_establish ((CFI_cdesc_t * ) & section2 , & errno , CFI_attribute_other ,
1092
+ ind = CFI_establish ((CFI_cdesc_t * ) & section2 , & iso_errno , CFI_attribute_other ,
1093
1093
type [3 ], 0 , 0 , NULL );
1094
1094
ind = CFI_section ((CFI_cdesc_t * ) & section2 , (CFI_cdesc_t * ) & source2 , lower ,
1095
1095
upper , strides );
@@ -1133,7 +1133,7 @@ int main (void)
1133
1133
1134
1134
for (int i = 1 ; i < CFI_MAX_RANK ; i ++ )
1135
1135
{
1136
- errno = 1 ;
1136
+ iso_errno = 1 ;
1137
1137
rank = i ;
1138
1138
int ctr = 0 ;
1139
1139
CFI_CDESC_T (rank ) source ;
@@ -1233,7 +1233,7 @@ int main (void)
1233
1233
}
1234
1234
1235
1235
/* CFI_section negative strides. */
1236
- errno = 1 ;
1236
+ iso_errno = 1 ;
1237
1237
rank = 8 ;
1238
1238
if (extents != NULL )
1239
1239
{
0 commit comments