File: hid_t.patch

package info (click to toggle)
hdf-eos5 2%3A2.0-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 14,692 kB
  • sloc: ansic: 92,051; fortran: 31,463; sh: 11,395; makefile: 492
file content (1124 lines) | stat: -rw-r--r-- 47,886 bytes parent folder | download | duplicates (3)
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
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
Author: Alastair McKinstry <mckinstry@debian.org>
Description: Add int -> hid_t (int64_t) changes needed for HDF5 1.10.1
Last-Updated: 2018-01-21
Forwarded: no

--- a/src/EHapi.c
+++ b/src/EHapi.c
@@ -1,4 +1,4 @@
-/*
+/* 
  ----------------------------------------------------------------------------
  |    Copyright (C) 1999 Emergent IT Inc. and Raytheon Systems Company      |
  |                                                                          |
@@ -326,6 +326,8 @@
 	outvalue = HE5_EHint2long(invalue);
   else if (sizeof(hid_t) == sizeof(long))
 	outvalue = invalue;
+  else if (sizeof(hid_t) == sizeof(long long))
+        outvalue = HE5_EHllong2long(invalue);
 
   return(outvalue);
 }
@@ -411,6 +413,8 @@
 	outvalue = invalue;
   else if (sizeof(hid_t) == sizeof(long))
 	outvalue = HE5_EHlong2int(invalue);
+  else if (sizeof(hid_t) == sizeof(long long))
+	outvalue = HE5_EHlong2int(invalue);
 
   return(outvalue);
 }
@@ -448,6 +452,8 @@
 	outvalue = invalue;
   else if (sizeof(hid_t) == sizeof(long))
 	outvalue = HE5_EHint2long(invalue);
+  else if (sizeof(hid_t) == sizeof(long long))
+	outvalue = HE5_EHint2long(invalue);
 
   return(outvalue);
 }
@@ -486,6 +492,8 @@
 	outvalue = HE5_EHlong2int(invalue);
   else if (sizeof(hid_t) == sizeof(long))
 	outvalue = invalue;
+  else if (sizeof(hid_t) == sizeof(long long))
+	outvalue = invalue;
 
   return(outvalue);
 }
@@ -577,6 +585,8 @@
 	outvalue = HE5_EHint2hsize(invalue);
   else if (sizeof(hid_t) == sizeof(long) )
 	outvalue = HE5_EHlong2hsize(invalue);
+  else if (sizeof(hid_t) == sizeof(long long))
+	outvalue = HE5_EHllong2hsize(invalue);
 
   return(outvalue);
 }
@@ -729,6 +739,8 @@
 	outvalue = HE5_EHhsize2int(invalue);
   else if (sizeof(hid_t) == sizeof(long) )
 	outvalue = HE5_EHhsize2long(invalue);
+  else if (sizeof(hid_t) == sizeof(long long))
+	outvalue = HE5_EHhsize2llong(invalue);
 
   return(outvalue);
 }
@@ -878,6 +890,8 @@
 	outvalue = HE5_EHint2hssize(invalue);
   else if (sizeof(hid_t) == sizeof(long) )
 	outvalue = HE5_EHlong2hssize(invalue);
+  else if (sizeof(hid_t) == sizeof(long long))
+	outvalue = HE5_EHllong2hssize(invalue);
 
   return(outvalue);
 }
@@ -1360,6 +1374,178 @@
   return(outvalue);
 }
 
+long long 
+HE5_EHint2llong(int invalue)
+{
+  herr_t        status   = FAIL;
+  long long     outvalue = FAIL;
+  long long     buf      = FAIL;
+
+
+  memmove(&buf,&invalue,sizeof(int));
+
+  status = H5Tconvert(H5T_NATIVE_INT, H5T_NATIVE_LLONG, 1, &buf, NULL, H5P_DEFAULT);
+  if (status == FAIL)
+	{
+	  H5Epush(__FILE__, "HE5_EHint2llong", __LINE__, H5E_FUNC, H5E_CANTINIT, "Cannot convert \"int\" to \"long long\" data type.");
+	  return(status);
+	}
+ 
+  memmove(&outvalue,&buf,sizeof(long long));
+
+  return(outvalue);
+}
+long long 
+HE5_EHlong2llong(long invalue)
+{
+  herr_t        status   = FAIL;
+  long long     outvalue = FAIL;
+  long long     buf      = FAIL;
+
+
+  memmove(&buf,&invalue,sizeof(long));
+
+  status = H5Tconvert(H5T_NATIVE_LONG, H5T_NATIVE_LLONG, 1, &buf, NULL, H5P_DEFAULT);
+  if (status == FAIL)
+	{
+	  H5Epush(__FILE__, "HE5_EHlong2llong", __LINE__, H5E_FUNC, H5E_CANTINIT, "Cannot convert \"long\" to \"long long\" data type.");
+	  return(status);
+	}
+ 
+  memmove(&outvalue,&buf,sizeof(long long));
+
+  return(outvalue);
+}
+long long 
+HE5_EHhsize2llong(hsize_t invalue)
+{
+  herr_t        status   = FAIL;
+  long long     outvalue = FAIL;
+  long long     buf      = FAIL;
+
+
+  memmove(&buf,&invalue,H5Tget_size(H5T_NATIVE_HSIZE));
+
+  status = H5Tconvert(H5T_NATIVE_HSIZE, H5T_NATIVE_LLONG, 1, &buf, NULL, H5P_DEFAULT);
+  if (status == FAIL)
+	{
+	  H5Epush(__FILE__, "HE5_EHhsize2llong", __LINE__, H5E_FUNC, H5E_CANTINIT, "Cannot convert \"hsize_t\" to \"long long\" data type.");
+	  return(status);
+	}
+ 
+  memmove(&outvalue,&buf,sizeof(long long));
+
+  return(outvalue);
+}
+long long 
+HE5_EHhssize2llong(hssize_t invalue)
+{
+  herr_t        status   = FAIL;
+  long long     outvalue = FAIL;
+  long long     buf      = FAIL;
+
+
+  memmove(&buf,&invalue,H5Tget_size(H5T_NATIVE_HSSIZE));
+
+  status = H5Tconvert(H5T_NATIVE_HSSIZE, H5T_NATIVE_LLONG, 1, &buf, NULL, H5P_DEFAULT);
+  if (status == FAIL)
+	{
+	  H5Epush(__FILE__, "HE5_EHhssize2llong", __LINE__, H5E_FUNC, H5E_CANTINIT, "Cannot convert \"hssize_t\" to \"long long\" data type.");
+	  return(status);
+	}
+ 
+  memmove(&outvalue,&buf,sizeof(long long));
+
+  return(outvalue);
+}
+int 
+HE5_EHllong2int(long long invalue)
+{
+  herr_t                  status   = FAIL;
+  int                     outvalue = FAIL;
+  long long               *buf     = (long long *)NULL;
+
+  buf = (long long *)calloc(1,sizeof(long long));
+  memmove(buf,&invalue,sizeof(long long));
+				 
+  status = H5Tconvert(H5T_NATIVE_LLONG, H5T_NATIVE_INT, 1, buf, NULL, H5P_DEFAULT);
+  if (status == FAIL)
+	{
+	  H5Epush(__FILE__, "HE5_EHllong2int", __LINE__, H5E_FUNC, H5E_CANTINIT, "Cannot convert \"long long\" to \"int\" data type.");
+	  return(status);
+	}
+				 
+  memmove(&outvalue,buf,sizeof(int));
+  free(buf);
+	  
+  return(outvalue);
+}
+long 
+HE5_EHllong2long(long long invalue)
+{
+  herr_t                  status   = FAIL;
+  long                    outvalue = FAIL;
+  long long               *buf     = (long long *)NULL;
+
+  buf = (long long *)calloc(1,sizeof(long long));
+  memmove(buf,&invalue,sizeof(long long));
+				 
+  status = H5Tconvert(H5T_NATIVE_LLONG, H5T_NATIVE_LONG, 1, buf, NULL, H5P_DEFAULT);
+  if (status == FAIL)
+	{
+	  H5Epush(__FILE__, "HE5_EHllong2long", __LINE__, H5E_FUNC, H5E_CANTINIT, "Cannot convert \"long long\" to \"long\" data type.");
+	  return(status);
+	}
+				 
+  memmove(&outvalue,buf,sizeof(long));
+  free(buf);
+	  
+  return(outvalue);
+}
+hsize_t 
+HE5_EHllong2hsize(long long invalue)
+{
+  herr_t                  status   = FAIL;
+  hsize_t                 outvalue = FAIL;
+  long long               *buf     = (long long *)NULL;
+
+  buf = (long long *)calloc(1,sizeof(long long));
+  memmove(buf,&invalue,sizeof(long long));
+				 
+  status = H5Tconvert(H5T_NATIVE_LLONG, H5T_NATIVE_HSIZE, 1, buf, NULL, H5P_DEFAULT);
+  if (status == FAIL)
+	{
+	  H5Epush(__FILE__, "HE5_EHllong2hsize", __LINE__, H5E_FUNC, H5E_CANTINIT, "Cannot convert \"long long\" to \"hsize_t\" data type.");
+	  return(status);
+	}
+				 
+  memmove(&outvalue,buf,H5Tget_size(H5T_NATIVE_HSIZE));
+  free(buf);
+	  
+  return(outvalue);
+}
+hssize_t 
+HE5_EHllong2hssize(long long invalue)
+{
+  herr_t                  status   = FAIL;
+  hssize_t                outvalue = FAIL;
+  long long               *buf     = (long long *)NULL;
+
+  buf = (long long *)calloc(1,sizeof(long long));
+  memmove(buf,&invalue,sizeof(long long));
+				 
+  status = H5Tconvert(H5T_NATIVE_LLONG, H5T_NATIVE_HSSIZE, 1, buf, NULL, H5P_DEFAULT);
+  if (status == FAIL)
+	{
+	  H5Epush(__FILE__, "HE5_EHllong2hssize", __LINE__, H5E_FUNC, H5E_CANTINIT, "Cannot convert \"long long\" to \"hssize_t\" data type.");
+	  return(status);
+	}
+				 
+  memmove(&outvalue,buf,H5Tget_size(H5T_NATIVE_HSSIZE));
+  free(buf);
+	  
+  return(outvalue);
+}
 
 /*----------------------------------------------------------------------------|
 |  BEGIN_PROLOG                                                               |
@@ -2224,7 +2410,7 @@
   if (fid < HE5_EHIDOFFSET || fid > HE5_NEOSHDF + HE5_EHIDOFFSET)
     {
 	  status = FAIL;
-	  sprintf(errbuf,"Invalid file ID: %d. ID should range from %d to  %d .\n", fid, HE5_EHIDOFFSET, HE5_NEOSHDF + HE5_EHIDOFFSET);
+	  sprintf(errbuf,"Invalid file ID: %ld. ID should range from %d to  %d .\n", (long int) fid, HE5_EHIDOFFSET, HE5_NEOSHDF + HE5_EHIDOFFSET);
 	  H5Epush(__FILE__, "HE5_EHchkfid", __LINE__, H5E_ARGS, H5E_BADVALUE, errbuf);
 	  HE5_EHprint(errbuf, __FILE__, __LINE__);
     }
@@ -2236,7 +2422,7 @@
 	  if( HE5_HeosTable[ fid0 ].active == 0)
         {
 		  status = FAIL;
-		  sprintf(errbuf,"HE5_EHchkid: File ID %d not active (%s).\n",fid, name);
+		  sprintf(errbuf,"HE5_EHchkid: File ID %ld not active (%s).\n",(long int) fid, name);
 		  H5Epush(__FILE__, "HE5_EHchkfid", __LINE__, H5E_ARGS, H5E_BADVALUE, errbuf);
 		  HE5_EHprint(errbuf, __FILE__, __LINE__);
         }
@@ -8617,7 +8803,7 @@
   else
     {
       status = FAIL;
-      sprintf(errbuf,"Invalid file ID: %d . ID should range from %d to %d . \n", fid, HE5_EHIDOFFSET, HE5_NEOSHDF + HE5_EHIDOFFSET);
+      sprintf(errbuf,"Invalid file ID: %ld . ID should range from %d to %d . \n", (long int) fid, HE5_EHIDOFFSET, HE5_NEOSHDF + HE5_EHIDOFFSET);
       H5Epush(__FILE__,  "HE5_EHclose", __LINE__, H5E_FILE, H5E_BADFILE, errbuf);
       HE5_EHprint(errbuf, __FILE__, __LINE__);
     }
@@ -12025,7 +12211,7 @@
   if( HE5_HeosTable[ fid0 ].active == 0)
     {
       status = FAIL;
-      sprintf(errbuf,"HE5_EHwritemeta: File ID %d not active \n",fid);
+      sprintf(errbuf,"HE5_EHwritemeta: File ID %ld not active \n",(long int) fid);
       H5Epush(__FILE__, "HE5_EHwritemeta", __LINE__, H5E_ARGS, H5E_BADVALUE, errbuf);
       HE5_EHprint(errbuf, __FILE__, __LINE__);
     }
@@ -12297,7 +12483,7 @@
   if( HE5_HeosTable[ fid0 ].active == 0)
     {
       status = FAIL;
-      sprintf(errbuf,"HE5_EHreadmeta: File ID %d not active \n",fid);
+      sprintf(errbuf,"HE5_EHreadmeta: File ID %ld not active \n",(long int) fid);
       H5Epush(__FILE__, "HE5_EHreadmeta", __LINE__, H5E_ARGS, H5E_BADVALUE, errbuf);
       HE5_EHprint(errbuf, __FILE__, __LINE__);
     }
@@ -12607,7 +12793,7 @@
   if( HE5_HeosTable[ fid0 ].active == 0)
     {
       status = FAIL;
-      sprintf(errbuf,"HE5_EHreadmeta: File ID %d not active \n",fid);
+      sprintf(errbuf,"HE5_EHreadmeta: File ID %ld not active \n",(long int) fid);
       H5Epush(__FILE__, "HE5_EHreadmeta", __LINE__, H5E_ARGS, H5E_BADVALUE, errbuf);
       HE5_EHprint(errbuf, __FILE__, __LINE__);
     }
--- a/include/HE5_HdfEosDef.h
+++ b/include/HE5_HdfEosDef.h
@@ -570,6 +570,15 @@
 int                  HE5_EHhssize2int(hssize_t invalue);
 hsize_t              HE5_EHhssize2hsize(hssize_t invalue);
 
+long long            HE5_EHint2llong(int invalue);
+long long            HE5_EHlong2llong(long invalue);
+long long            HE5_EHhsize2llong(hsize_t invalue);
+long long            HE5_EHhssize2llong(hssize_t invalue);
+int                  HE5_EHllong2int(long long invalue);
+long                 HE5_EHllong2long(long long invalue);
+hsize_t              HE5_EHllong2hsize(long long invalue);
+hssize_t             HE5_EHllong2hssize(long long invalue);
+
 unsigned LONGLONG    HE5_EHint2ullong(int invalue);
 long                 HE5_EHullong2long(unsigned LONGLONG invalue);
 
--- a/src/PTapi.c
+++ b/src/PTapi.c
@@ -106,88 +106,88 @@
 int
 HE5_PTopenF(char *filename, uintn Flags);
 int
-HE5_PTcreateF(int FileID, char *pointname);
+HE5_PTcreateF(hid_t FileID, char *pointname);
 int
-HE5_PTattachF(int FileID, char *pointname);
+HE5_PTattachF(hid_t FileID, char *pointname);
 int
-HE5_PTdetachF(int pointID);
+HE5_PTdetachF(hid_t pointID);
 int
-HE5_PTcloseF(int FileID);
+HE5_PTcloseF(hid_t FileID);
 
 /* Definition routines */
 
 int
-HE5_PTdeflevelF(int  pointID, const char *levelname, int rank[], char *fieldlist, long *dim_sizes, int dtype[], int array[]);
+HE5_PTdeflevelF(hid_t  pointID, const char *levelname, int rank[], char *fieldlist, long *dim_sizes, int dtype[], int array[]);
 int
-HE5_PTdeflinkageF(int pointID, char *parent, char *child, char *linkfield);
+HE5_PTdeflinkageF(hid_t pointID, char *parent, char *child, char *linkfield);
 
 /* I/O routines */
 
 int
-HE5_PTreadlevelF(int pointID, int level, char *fieldname, int ntype, void *datbuf);
+HE5_PTreadlevelF(hid_t pointID, int level, char *fieldname, int ntype, void *datbuf);
 int
-HE5_PTupdatelevelF(int pointID, int level, char *fieldlist, long nrec,  long recs[], int ntype, void *data);
+HE5_PTupdatelevelF(hid_t pointID, int level, char *fieldlist, long nrec,  long recs[], int ntype, void *data);
 int
-HE5_PTwritelevelF(int pointID, int level, long count[], char *fieldname, int ntype, void *data);
+HE5_PTwritelevelF(hid_t pointID, int level, long count[], char *fieldname, int ntype, void *data);
 int
-HE5_PTwriteattrF(int pointID, const char *attrname, int ntype, long fortcount[], void *datbuf);
+HE5_PTwriteattrF(hid_t pointID, const char *attrname, int ntype, long fortcount[], void *datbuf);
 int
-HE5_PTwritegrpattrF(int pointID, const char *attrname, int ntype, long fortcount[], void * datbuf);
+HE5_PTwritegrpattrF(hid_t pointID, const char *attrname, int ntype, long fortcount[], void * datbuf);
 int
-HE5_PTwritelocattrF(int pointID, const char *levelname, const char *attrname, int ntype, long count[],void * datbuf);
+HE5_PTwritelocattrF(hid_t pointID, const char *levelname, const char *attrname, int ntype, long count[],void * datbuf);
 int
-HE5_PTreadattrF(int pointID, const char *attrname, void *datbuf);
+HE5_PTreadattrF(hid_t pointID, const char *attrname, void *datbuf);
 int
-HE5_PTreadgrpattrF(int pointID, const char *attrname, void *datbuf);
+HE5_PTreadgrpattrF(hid_t pointID, const char *attrname, void *datbuf);
 int
-HE5_PTreadlocattrF(int pointID, const char *levelname, const char *attrname, void *datbuf);
+HE5_PTreadlocattrF(hid_t pointID, const char *levelname, const char *attrname, void *datbuf);
 int
-HE5_PTwrbckptrF(int pointID, int level);
+HE5_PTwrbckptrF(hid_t pointID, int level);
 int
-HE5_PTwrfwdptrF(int pointID, int level);
+HE5_PTwrfwdptrF(hid_t pointID, int level);
 
 /* Inquiry routines */
 
 int
-HE5_PTnrecsF(int pointID, int level);
+HE5_PTnrecsF(hid_t pointID, int level);
 int
 HE5_PTnlevelsF(hid_t pointID);
 int
-HE5_PTnfieldsF(int pointID, int level, char *fieldlist, long *strbufsize);
+HE5_PTnfieldsF(hid_t pointID, int level, char *fieldlist, long *strbufsize);
 int
-HE5_PTlevelindxF(int pointID, const char *levelname);
+HE5_PTlevelindxF(hid_t pointID, const char *levelname);
 int
-HE5_PTgetlevelnameF(int pointID, int  level, char *levelname, long *strbufsize);
+HE5_PTgetlevelnameF(hid_t pointID, int  level, char *levelname, long *strbufsize);
 int
-HE5_PTbcklinkinfoF(int pointID, int level, char *linkfield);
+HE5_PTbcklinkinfoF(hid_t pointID, int level, char *linkfield);
 int
-HE5_PTfwdlinkinfoF(int pointID, int level, char *linkfield);
+HE5_PTfwdlinkinfoF(hid_t pointID, int level, char *linkfield);
 int
-HE5_PTlevelinfoF(int pointID, int level, char *levelname, int rank[], char *fieldlist, long *dim_sizes, long *datasize, long offset[], int dtype[]);
+HE5_PTlevelinfoF(hid_t pointID, int level, char *levelname, int rank[], char *fieldlist, long *dim_sizes, long *datasize, long offset[], int dtype[]);
 int
-HE5_PTinqdatatypeF(int pointID, char *fieldname, char *attrname, int fieldgroup, int *Type, int *Class, int *Order, long *size);
+HE5_PTinqdatatypeF(hid_t pointID, char *fieldname, char *attrname, int fieldgroup, int *Type, int *Class, int *Order, long *size);
 int
 HE5_PTinqpointF(const char *filename, char *pointlist, long *strbufsize);
 int
-HE5_PTattrinfoF(int pointID, const char *attrname, int *numbertype, long *fortcount);
+HE5_PTattrinfoF(hid_t pointID, const char *attrname, int *numbertype, long *fortcount);
 int
-HE5_PTgrpattrinfoF(int pointID, const char *attrname, int *numbertype, long *fortcount);
+HE5_PTgrpattrinfoF(hid_t pointID, const char *attrname, int *numbertype, long *fortcount);
 int
-HE5_PTlocattrinfoF(int pointID, const char *levelname, const char *attrname, int *numbertype, long *fortcount);
+HE5_PTlocattrinfoF(hid_t pointID, const char *levelname, const char *attrname, int *numbertype, long *fortcount);
 int
-HE5_PTattrinfoF2(int pointID, const char *attrname, int *numbertype, long *fortcount, long *fortsize);
+HE5_PTattrinfoF2(hid_t pointID, const char *attrname, int *numbertype, long *fortcount, long *fortsize);
 int
-HE5_PTgrpattrinfoF2(int pointID, const char *attrname, int *numbertype, long *fortcount, long *fortsize);
+HE5_PTgrpattrinfoF2(hid_t pointID, const char *attrname, int *numbertype, long *fortcount, long *fortsize);
 int
-HE5_PTlocattrinfoF2(int pointID, const char *levelname, const char *attrname, int *numbertype, long *fortcount, long *fortsize);
+HE5_PTlocattrinfoF2(hid_t pointID, const char *levelname, const char *attrname, int *numbertype, long *fortcount, long *fortsize);
 long
-HE5_PTinqattrsF(int pointID, char *attrnames, long *strbufsize);
+HE5_PTinqattrsF(hid_t pointID, char *attrnames, long *strbufsize);
 long
-HE5_PTinqgrpattrsF(int pointID, char *attrnames, long *strbufsize);
+HE5_PTinqgrpattrsF(hid_t pointID, char *attrnames, long *strbufsize);
 long
-HE5_PTinqlocattrsF(int pointID, const char *levelname, char *attrnames, long *strbufsize);
+HE5_PTinqlocattrsF(hid_t pointID, const char *levelname, char *attrnames, long *strbufsize);
 int
-HE5_PTnumtypeinfoF(int pointID, int level, int numtype[]);
+HE5_PTnumtypeinfoF(hid_t pointID, int level, int numtype[]);
 
 
 /* Fortran Wrapper Utility Routines  */
@@ -632,7 +632,7 @@
 /*----------------------------------------------------------------------------|
 |  BEGIN_PROLOG                                                               |
 |                                                                             |
-|  FUNCTION: HE5_PTattach                                                     |
+|  FUNCTION: HE5_PTattach                                                    |
 |                                                                             |
 |  DESCRIPTION: Attaches to an existing point data set.                       |
 |                                                                             |
@@ -823,7 +823,7 @@
 	      status = HE5_PTgetlevelname_fromSM(pointID, i, LevelName);
 	      if ( status == FAIL )
 		{
-		  sprintf(errbuf, "Failed to get LevelName for the Level_%d.",i) ;
+		  sprintf(errbuf, "Failed to get LevelName for the Level_%ld.", (long int) i) ;
 		  H5Epush(__FILE__, "HE5_PTattach", __LINE__, H5E_ARGS, H5E_BADVALUE, errbuf);
 		  HE5_EHprint(errbuf, __FILE__, __LINE__);
 
@@ -1190,7 +1190,7 @@
   nlevels = HE5_PTnlevels(pointID);
   if (nlevels == 0)
     {
-      sprintf(errbuf, "No Levels Defined for point ID: %d\n", pointID);
+      sprintf(errbuf, "No Levels Defined for point ID: %ld\n", (long int) pointID);
       H5Epush(__FILE__, "HE5_PTnrecs", __LINE__, H5E_BTREE, H5E_NOTFOUND, errbuf);
       HE5_EHprint(errbuf, __FILE__, __LINE__);
       return(0);
@@ -1199,7 +1199,7 @@
     {
       /* Report error if level # to large */
       /* -------------------------------- */
-      sprintf(errbuf, "Only %d levels Defined for point ID: %d\n", nlevels, pointID);
+      sprintf(errbuf, "Only %d levels Defined for point ID: %ld\n", nlevels,(long int)  pointID);
       H5Epush(__FILE__, "HE5_PTnrecs", __LINE__, H5E_ARGS, H5E_BADVALUE, errbuf);
       HE5_EHprint(errbuf, __FILE__, __LINE__);
       return(0);
@@ -1656,7 +1656,7 @@
   if (nlevels == 0)
     {
       status = FAIL;
-      sprintf(errbuf, "No Levels Defined for point ID: %d\n", pointID);
+      sprintf(errbuf, "No Levels Defined for point ID: %ld\n", (long int) pointID);
       H5Epush(__FILE__, "HE5_PTnfields", __LINE__, H5E_BTREE, H5E_NOTFOUND, errbuf);
       HE5_EHprint(errbuf, __FILE__, __LINE__);
       return(status);
@@ -1666,7 +1666,7 @@
       /* Report error if level # too large */
       /* --------------------------------- */
       status = FAIL;
-      sprintf(errbuf, "Only %d levels Defined for point ID: %d\n", nlevels, pointID);
+      sprintf(errbuf, "Only %d levels Defined for point ID: %ld\n", nlevels,(long int)  pointID);
       H5Epush(__FILE__, "HE5_PTnfields", __LINE__, H5E_ARGS, H5E_BADRANGE, errbuf);
       HE5_EHprint(errbuf, __FILE__, __LINE__);
       return(status);
@@ -1838,7 +1838,7 @@
       if (nlevels == 0)
 	{
 	  status = FAIL;
-	  sprintf(errbuf, "No Levels Defined for point ID: %d\n", pointID);
+	  sprintf(errbuf, "No Levels Defined for point ID: %ld\n", (long int) pointID);
 	  H5Epush(__FILE__, "HE5_PTgetlevelname", __LINE__, H5E_BTREE, H5E_NOTFOUND, errbuf);
 	  HE5_EHprint(errbuf, __FILE__, __LINE__);
 
@@ -1848,7 +1848,7 @@
 	  /* Report error if level # to large */
 	  /* -------------------------------- */
 	  status = FAIL;
-	  sprintf(errbuf, "Only %d levels Defined for point ID: %d\n", nlevels, pointID);
+	  sprintf(errbuf, "Only %d levels Defined for point ID: %ld\n", nlevels, (long int) pointID);
 	  H5Epush(__FILE__, "HE5_PTgetlevelname", __LINE__, H5E_ARGS, H5E_BADVALUE, errbuf);
 	  HE5_EHprint(errbuf, __FILE__, __LINE__);
 	}
@@ -3043,7 +3043,7 @@
   if (nlevels == 0)
     {
       status = FAIL;
-      sprintf(errbuf, "No Levels Defined for point ID: %d\n", pointID);
+      sprintf(errbuf, "No Levels Defined for point ID: %ld\n", (long int) pointID);
       H5Epush(__FILE__, "HE5_PTwritelevel",   __LINE__, H5E_BTREE, H5E_NOTFOUND, errbuf);
       HE5_EHprint(errbuf, __FILE__, __LINE__);
       return(status);
@@ -3053,7 +3053,7 @@
       /* Report error if level # to large */
       /* -------------------------------- */
       status = FAIL;
-      sprintf(errbuf, "Only %d levels Defined for point ID: %d\n", nlevels, pointID);
+      sprintf(errbuf, "Only %d levels Defined for point ID: %ld\n", nlevels,(long int)  pointID);
       H5Epush(__FILE__, "HE5_PTwritelevel", __LINE__, H5E_ARGS, H5E_BADVALUE, errbuf);
       HE5_EHprint(errbuf, __FILE__, __LINE__);
       return(status);
@@ -3482,7 +3482,7 @@
   nlevels = HE5_PTnlevels(pointID);
   if (nlevels == 0)
     {
-      sprintf(errbuf, "No Levels Defined for point ID: %d\n", pointID);
+      sprintf(errbuf, "No Levels Defined for point ID: %ld\n", (long int) pointID);
       H5Epush(__FILE__, "HE5_PTlevelinfo", __LINE__, H5E_BTREE, H5E_NOTFOUND, errbuf);
       HE5_EHprint(errbuf, __FILE__, __LINE__);
       return(FAIL);
@@ -3491,7 +3491,7 @@
     {
       /* Report error if level # to large */
       /* -------------------------------- */
-      sprintf(errbuf, "Only %d levels Defined for point ID: %d\n", nlevels, pointID);
+      sprintf(errbuf, "Only %d levels Defined for point ID: %ld\n", nlevels,(long int)  pointID);
       H5Epush(__FILE__, "HE5_PTlevelinfo", __LINE__, H5E_ARGS, H5E_BADVALUE, errbuf);
       HE5_EHprint(errbuf, __FILE__, __LINE__);
       return(FAIL);
@@ -3909,7 +3909,7 @@
   if (nlevels == 0)
     {
       status = FAIL;
-      sprintf(errbuf, "No Levels Defined for point ID: %d\n", pointID);
+      sprintf(errbuf, "No Levels Defined for point ID: %ld\n", (long int) pointID);
       H5Epush(__FILE__, "HE5_PTreadlevel", __LINE__, H5E_BTREE, H5E_NOTFOUND, errbuf);
       HE5_EHprint(errbuf, __FILE__, __LINE__);
       return(status);
@@ -3919,7 +3919,7 @@
       /* Report error if level # to large */
       /* -------------------------------- */
       status = FAIL;
-      sprintf(errbuf, "Only %d levels Defined for point ID: %d\n", nlevels, pointID);
+      sprintf(errbuf, "Only %d levels Defined for point ID: %ld\n", nlevels, (long int) pointID);
       H5Epush(__FILE__, "HE5_PTreadlevel", __LINE__, H5E_FILE, H5E_SEEKERROR, errbuf);
       HE5_EHprint(errbuf, __FILE__, __LINE__);
       return(status);
@@ -8309,7 +8309,7 @@
 {
   hid_t     fid     = FAIL;/* hdf5 type file ID     */
 
-  int       FileID  = FAIL;/* Return file ID        */
+  hid_t     FileID  = FAIL;/* Return file ID        */
 
   uintn     flags   = 9999;/* HDF5 file access code */
 
@@ -8389,7 +8389,7 @@
 |  END_PROLOG                                                                 |
 -----------------------------------------------------------------------------*/
 int
-HE5_PTcreateF(int FileID, char *pointname)
+HE5_PTcreateF(hid_t FileID, char *pointname)
 {
   int             PointID   = FAIL;/* point ID (return value)             */
 
@@ -8457,7 +8457,7 @@
 |  END_PROLOG                                                                 |
 -----------------------------------------------------------------------------*/
 int
-HE5_PTattachF(int FileID, char *pointname)
+HE5_PTattachF(hid_t FileID, char *pointname)
 {
   int             PointID  = FAIL;	/* Return value of the Point ID    */
 
@@ -8529,7 +8529,7 @@
 |  END_PROLOG                                                                 |
 -----------------------------------------------------------------------------*/
 int
-HE5_PTdetachF(int  PointID)
+HE5_PTdetachF(hid_t  PointID)
 {
   int             ret    = FAIL;/* (int) Return status variable   */
 
@@ -8599,7 +8599,7 @@
 |  END_PROLOG                                                                 |
 -----------------------------------------------------------------------------*/
 int
-HE5_PTcloseF(int FileID)
+HE5_PTcloseF(hid_t FileID)
 {
   int               ret    = FAIL;/* (int) return status variable   */
 
@@ -8682,7 +8682,7 @@
 |  END_PROLOG                                                                 |
 -----------------------------------------------------------------------------*/
 int
-HE5_PTdeflevelF(int  pointID, const char *levelname, int rank[], char *fieldlist, long *dim_sizes, int dtype[], int array[])
+HE5_PTdeflevelF(hid_t  pointID, const char *levelname, int rank[], char *fieldlist, long *dim_sizes, int dtype[], int array[])
 {
   herr_t            status    = FAIL;/* routine return status variable */
 
@@ -8879,7 +8879,7 @@
 |  END_PROLOG                                                                 |
 -----------------------------------------------------------------------------*/
 int
-HE5_PTdeflinkageF(int pointID, char *parent, char *child, char *linkfield)
+HE5_PTdeflinkageF(hid_t pointID, char *parent, char *child, char *linkfield)
 {
   int       ret     = FAIL;/* (int) Return status variable   */
 
@@ -8956,7 +8956,7 @@
 |  END_PROLOG                                                                 |
 -----------------------------------------------------------------------------*/
 int
-HE5_PTreadlevelF(int pointID, int level, char *fieldname, int ntype, void *datbuf)
+HE5_PTreadlevelF(hid_t pointID, int level, char *fieldname, int ntype, void *datbuf)
 {
   int            ret     = FAIL;/* (int) return status variable   */
 
@@ -9093,7 +9093,7 @@
   if (nlevels == 0)
     {
       status = FAIL;
-      sprintf(errbuf, "No Levels Defined for point ID: %d\n", pointID);
+      sprintf(errbuf, "No Levels Defined for point ID: %ld\n", (long int) pointID);
       H5Epush(__FILE__, "HE5_PTreadlevel_f", __LINE__, H5E_BTREE, H5E_NOTFOUND, errbuf);
       HE5_EHprint(errbuf, __FILE__, __LINE__);
       return(status);
@@ -9103,7 +9103,7 @@
       /* Report error if level # to large */
       /* -------------------------------- */
       status = FAIL;
-      sprintf(errbuf, "Only %d levels Defined for point ID: %d\n", nlevels, pointID);
+      sprintf(errbuf, "Only %d levels Defined for point ID: %ld\n", nlevels, (long int) pointID);
       H5Epush(__FILE__, "HE5_PTreadlevel_f", __LINE__, H5E_FILE, H5E_SEEKERROR, errbuf);
       HE5_EHprint(errbuf, __FILE__, __LINE__);
       return(status);
@@ -9345,7 +9345,7 @@
 |  END_PROLOG                                                                 |
 -----------------------------------------------------------------------------*/
 int
-HE5_PTwritelevelF(int pointID, int level, long count[], char *fieldname, int ntype, void *data)
+HE5_PTwritelevelF(hid_t pointID, int level, long count[], char *fieldname, int ntype, void *data)
 {
   herr_t            status = FAIL;/* routine return status variable */
 
@@ -9507,7 +9507,7 @@
   if (nlevels == 0)
     {
       status = FAIL;
-      sprintf(errbuf, "No Levels Defined for point ID: %d\n", pointID);
+      sprintf(errbuf, "No Levels Defined for point ID: %ld\n", (long int) pointID);
       H5Epush(__FILE__, "HE5_PTwritelevel_f", __LINE__, H5E_BTREE, H5E_NOTFOUND, errbuf);
       HE5_EHprint(errbuf, __FILE__, __LINE__);
       return(status);
@@ -9517,7 +9517,7 @@
       /* Report error if level # to large */
       /* -------------------------------- */
       status = FAIL;
-      sprintf(errbuf, "Only %d levels Defined for point ID: %d\n", nlevels, pointID);
+      sprintf(errbuf, "Only %d levels Defined for point ID: %ld\n", nlevels, (long int) pointID);
       H5Epush(__FILE__, "HE5_PTwritelevel_f", __LINE__, H5E_ARGS, H5E_BADVALUE, errbuf);
       HE5_EHprint(errbuf, __FILE__, __LINE__);
       return(status);
@@ -9816,7 +9816,7 @@
 |  END_PROLOG                                                                 |
 -----------------------------------------------------------------------------*/
 int
-HE5_PTwrbckptrF(int pointID, int level)
+HE5_PTwrbckptrF(hid_t pointID, int level)
 {
   int             ret    = FAIL;/* (int) Return status variable   */
 
@@ -9885,7 +9885,7 @@
 |  END_PROLOG                                                                 |
 -----------------------------------------------------------------------------*/
 int
-HE5_PTwrfwdptrF(int pointID, int level)
+HE5_PTwrfwdptrF(hid_t pointID, int level)
 {
   int             ret    = FAIL;/* (int) Return status variable   */
 
@@ -9958,7 +9958,7 @@
 |  END_PROLOG                                                                 |
 -----------------------------------------------------------------------------*/
 int
-HE5_PTupdatelevelF(int pointID, int level, char *fieldlist, long nrec,  long recs[], int ntype, void *data)
+HE5_PTupdatelevelF(hid_t pointID, int level, char *fieldlist, long nrec,  long recs[], int ntype, void *data)
 {
   herr_t            status  = FAIL;
 
@@ -10696,7 +10696,7 @@
 |  END_PROLOG                                                                 |
 -----------------------------------------------------------------------------*/
 int
-HE5_PTwriteattrF(int pointID, const char *attrname, int ntype, long fortcount[], void *datbuf)
+HE5_PTwriteattrF(hid_t pointID, const char *attrname, int ntype, long fortcount[], void *datbuf)
 {
 
   int       ret     = FAIL;/* int return status variable                 */
@@ -10854,7 +10854,7 @@
 |  END_PROLOG                                                                 |
 -----------------------------------------------------------------------------*/
 int
-HE5_PTwritegrpattrF(int pointID, const char *attrname, int ntype, long fortcount[], void * datbuf)
+HE5_PTwritegrpattrF(hid_t pointID, const char *attrname, int ntype, long fortcount[], void * datbuf)
 {
   int          ret        = FAIL;        /* (int) return status variable      */
   int	       rank       = 1;           /* Rank variable                     */
@@ -11009,7 +11009,7 @@
 |  END_PROLOG                                                                 |
 -----------------------------------------------------------------------------*/
 int
-HE5_PTwritelocattrF(int pointID, const char *levelname, const char *attrname, int ntype, long fortcount[],void * datbuf)
+HE5_PTwritelocattrF(hid_t pointID, const char *levelname, const char *attrname, int ntype, long fortcount[],void * datbuf)
 {
   int	       ret  = FAIL;             /* routine return status variable             */
   int 	       rank = 1;                /* Note: It is assumed that fortcout has just */
@@ -11163,7 +11163,7 @@
 |  END_PROLOG                                                                 |
 -----------------------------------------------------------------------------*/
 int
-HE5_PTreadattrF(int pointID, const char *attrname, void *datbuf)
+HE5_PTreadattrF(hid_t pointID, const char *attrname, void *datbuf)
 {
   int         ret     = FAIL;/* routine return status variable  */
 
@@ -11219,7 +11219,7 @@
 |  END_PROLOG                                                                 |
 -----------------------------------------------------------------------------*/
 int
-HE5_PTreadgrpattrF(int pointID, const char *attrname, void *datbuf)
+HE5_PTreadgrpattrF(hid_t pointID, const char *attrname, void *datbuf)
 {
   int         ret             = FAIL;   /* (int) return status      */
 
@@ -11274,7 +11274,7 @@
 |  END_PROLOG                                                                 |
 -----------------------------------------------------------------------------*/
 int
-HE5_PTreadlocattrF(int pointID, const char *levelname, const char *attrname, void *datbuf)
+HE5_PTreadlocattrF(hid_t pointID, const char *levelname, const char *attrname, void *datbuf)
 {
   int         ret             =  FAIL;/* return status variable   */
 
@@ -11984,7 +11984,7 @@
 |  END_PROLOG                                                                 |
 -----------------------------------------------------------------------------*/
 int
-HE5_PTnrecsF(int pointID, int level)
+HE5_PTnrecsF(hid_t pointID, int level)
 {
   hid_t           PointID = FAIL;/* HDF5 type point ID            */
 
@@ -12109,7 +12109,7 @@
 |  END_PROLOG                                                                 |
 -----------------------------------------------------------------------------*/
 int
-HE5_PTnfieldsF(int pointID, int level, char *fieldlist, long *strbufsize)
+HE5_PTnfieldsF(hid_t pointID, int level, char *fieldlist, long *strbufsize)
 {
   hid_t           PointID  = FAIL;/* HDF5 type point ID            */
 
@@ -12174,7 +12174,7 @@
 |  END_PROLOG                                                                 |
 -----------------------------------------------------------------------------*/
 int
-HE5_PTlevelindxF(int pointID, const char *levelname)
+HE5_PTlevelindxF(hid_t pointID, const char *levelname)
 {
   hid_t           PointID = FAIL;/* HDF5 type point ID            */
 
@@ -12240,7 +12240,7 @@
 |  END_PROLOG                                                                 |
 -----------------------------------------------------------------------------*/
 int
-HE5_PTgetlevelnameF(int pointID, int  level, char *levelname, long *strbufsize)
+HE5_PTgetlevelnameF(hid_t pointID, int  level, char *levelname, long *strbufsize)
 {
   int             ret     = FAIL;
 
@@ -12310,7 +12310,7 @@
 |  END_PROLOG                                                                 |
 -----------------------------------------------------------------------------*/
 int
-HE5_PTbcklinkinfoF(int pointID, int level, char *linkfield)
+HE5_PTbcklinkinfoF(hid_t pointID, int level, char *linkfield)
 {
   int             ret     = FAIL;
 
@@ -12378,7 +12378,7 @@
 |  END_PROLOG                                                                 |
 -----------------------------------------------------------------------------*/
 int
-HE5_PTfwdlinkinfoF(int pointID, int level, char *linkfield)
+HE5_PTfwdlinkinfoF(hid_t pointID, int level, char *linkfield)
 {
   int             ret     = FAIL;
 
@@ -12455,7 +12455,7 @@
 |  END_PROLOG                                                                 |
 -----------------------------------------------------------------------------*/
 int
-HE5_PTlevelinfoF(int pointID, int level, char *levelname, int rank[], char *fieldlist, long *dim_sizes, long *datasize, long offset[], int dtype[])
+HE5_PTlevelinfoF(hid_t pointID, int level, char *levelname, int rank[], char *fieldlist, long *dim_sizes, long *datasize, long offset[], int dtype[])
 {
   herr_t            status = FAIL;/* routine return status variable */
 
@@ -12581,7 +12581,7 @@
 |  END_PROLOG                                                                 |
 -----------------------------------------------------------------------------*/
 int
-HE5_PTinqdatatypeF(int pointID, char *fieldname, char *attrname, int fieldgroup, int *Type, int *Class, int *Order, long *size)
+HE5_PTinqdatatypeF(hid_t pointID, char *fieldname, char *attrname, int fieldgroup, int *Type, int *Class, int *Order, long *size)
 {
   int	       ret      = FAIL;               /* (int) status variable  */
 
@@ -12770,7 +12770,7 @@
 |  END_PROLOG                                                                 |
 -----------------------------------------------------------------------------*/
 int
-HE5_PTattrinfoF(int pointID, const char *attrname, int *numbertype, long *fortcount)
+HE5_PTattrinfoF(hid_t pointID, const char *attrname, int *numbertype, long *fortcount)
 {
   int          ret      = FAIL;               /* (int) return status variable  */
 
@@ -12870,7 +12870,7 @@
 |  END_PROLOG                                                                 |
 -----------------------------------------------------------------------------*/
 int
-HE5_PTattrinfoF2(int pointID, const char *attrname, int *numbertype, long *fortcount, long *fortsize)
+HE5_PTattrinfoF2(hid_t pointID, const char *attrname, int *numbertype, long *fortcount, long *fortsize)
 {
   int          ret      = FAIL;               /* (int) return status variable  */
 
@@ -12985,7 +12985,7 @@
 |  END_PROLOG                                                                 |
 -----------------------------------------------------------------------------*/
 int
-HE5_PTgrpattrinfoF(int pointID, const char *attrname, int *numbertype, long *fortcount)
+HE5_PTgrpattrinfoF(hid_t pointID, const char *attrname, int *numbertype, long *fortcount)
 {
   int	      ret     = FAIL;	        /* (int) return status variable   */
 
@@ -13087,7 +13087,7 @@
 |  END_PROLOG                                                                 |
 -----------------------------------------------------------------------------*/
 int
-HE5_PTgrpattrinfoF2(int pointID, const char *attrname, int *numbertype, long *fortcount, long *fortsize)
+HE5_PTgrpattrinfoF2(hid_t pointID, const char *attrname, int *numbertype, long *fortcount, long *fortsize)
 {
   int	      ret     = FAIL;	        /* (int) return status variable   */
 
@@ -13201,7 +13201,7 @@
 |  END_PROLOG                                                                 |
 -----------------------------------------------------------------------------*/
 int
-HE5_PTlocattrinfoF(int pointID, const char *levelname, const char *attrname, int *numbertype, long *fortcount)
+HE5_PTlocattrinfoF(hid_t pointID, const char *levelname, const char *attrname, int *numbertype, long *fortcount)
 {
   int	      ret     = FAIL;	        /* (int) return status variable   */
 
@@ -13304,7 +13304,7 @@
 |  END_PROLOG                                                                 |
 -----------------------------------------------------------------------------*/
 int
-HE5_PTlocattrinfoF2(int pointID, const char *levelname, const char *attrname, int *numbertype, long *fortcount, long *fortsize)
+HE5_PTlocattrinfoF2(hid_t pointID, const char *levelname, const char *attrname, int *numbertype, long *fortcount, long *fortsize)
 {
   int	      ret     = FAIL;	        /* (int) return status variable   */
 
@@ -13419,7 +13419,7 @@
 |  END_PROLOG                                                                 |
 -----------------------------------------------------------------------------*/
 long
-HE5_PTinqattrsF(int pointID, char *attrnames, long *strbufsize)
+HE5_PTinqattrsF(hid_t pointID, char *attrnames, long *strbufsize)
 {
   long            nattr    = FAIL;/* Number of attributes (return)  */
 
@@ -13493,7 +13493,7 @@
 |  END_PROLOG                                                                 |
 -----------------------------------------------------------------------------*/
 long
-HE5_PTinqgrpattrsF(int pointID, char *attrnames, long *strbufsize)
+HE5_PTinqgrpattrsF(hid_t pointID, char *attrnames, long *strbufsize)
 {
   long            nattr   = FAIL;         /* Number of attributes (return)  */
 
@@ -13564,7 +13564,7 @@
 |  END_PROLOG                                                                 |
 -----------------------------------------------------------------------------*/
 long
-HE5_PTinqlocattrsF(int pointID, const char *levelname, char *attrnames, long *strbufsize)
+HE5_PTinqlocattrsF(hid_t pointID, const char *levelname, char *attrnames, long *strbufsize)
 {
   long            nattr       = FAIL;     /* Number of attributes   */
 
@@ -13630,7 +13630,7 @@
 |  END_PROLOG                                                                 |
 -----------------------------------------------------------------------------*/
 int
-HE5_PTnumtypeinfoF(int pointID, int level, int numtype[])
+HE5_PTnumtypeinfoF(hid_t pointID, int level, int numtype[])
 {
   herr_t            status = FAIL;/* routine return status variable */
 
--- a/src/GDapi.c
+++ b/src/GDapi.c
@@ -1727,7 +1727,8 @@
 
   hid_t           fid      = FAIL;/* HDF-EOS file id                */
   hid_t           gid      = FAIL;/* "HDFEOS" group ID              */
-  hid_t           (*func)(void*);
+  /* hid_t           (*func)(void*); */
+  H5E_auto1_t	  func;
 
   void            *edata = (void *)NULL;
 
@@ -2564,7 +2565,8 @@
 
   hid_t           fid      = FAIL;/* HDF-EOS file id                */
   hid_t           gid      = FAIL;/* "HDFEOS" group ID              */
-  hid_t           (*func)(void*);
+  /* hid_t           (*func)(void*); */
+  H5E_auto1_t	  func;
 
   hsize_t         dims[HE5_DTSETRANKMAX];/* default dimension sizes */
 
@@ -4612,7 +4614,7 @@
 
   int             i;                          /* Loop Index                     */
 
-  hid_t           (*func)(void*);
+  H5E_auto1_t	  func ;                      /* hid_t    (*func)(void*);       */
   hid_t           fid    = FAIL;              /* HDF-EOS file ID                */
   hid_t           gid    = FAIL;              /* "HDFEOS" group ID              */
 
@@ -17363,7 +17365,7 @@
   if (regionID < 0 || regionID >= HE5_NGRIDREGN)
     {
       status = FAIL;
-      sprintf(errbuf, "Invalid Region ID: %d.\n", regionID);
+      sprintf(errbuf, "Invalid Region ID: %ld.\n", (long int) regionID);
       H5Epush(__FILE__, "HE5_GDregioninfo", __LINE__, H5E_ARGS, H5E_BADVALUE, errbuf);
       HE5_EHprint(errbuf, __FILE__, __LINE__);
       free(errbuf);
@@ -17378,7 +17380,7 @@
   if (HE5_GDXRegion[regionID] == 0)
     {
       status = FAIL;
-      sprintf(errbuf, "Inactive Region ID: %d.\n", regionID);
+      sprintf(errbuf, "Inactive Region ID: %ld.\n", regionID);
       H5Epush(__FILE__, "HE5_GDregioninfo", __LINE__, H5E_ARGS, H5E_BADVALUE, errbuf);
       HE5_EHprint(errbuf, __FILE__, __LINE__);
       free(errbuf);
@@ -17881,7 +17883,7 @@
   if (regionID < 0 || regionID >= HE5_NGRIDREGN)
     {
       status = FAIL;
-      sprintf(errbuf, "Invalid Region id: %d.\n", regionID);
+      sprintf(errbuf, "Invalid Region id: %ld.\n", regionID);
       H5Epush(__FILE__, "HE5_GDextractregion", __LINE__, H5E_ARGS, H5E_BADVALUE, errbuf);
       HE5_EHprint(errbuf, __FILE__, __LINE__);
       free(errbuf);
@@ -17895,7 +17897,7 @@
   if (HE5_GDXRegion[regionID] == 0)
     {
       status = FAIL;
-      sprintf(errbuf, "Inactive Region ID: %d.\n", regionID);
+      sprintf(errbuf, "Inactive Region ID: %ld.\n", regionID);
       H5Epush(__FILE__,  "HE5_GDextractregion", __LINE__, H5E_ARGS, H5E_BADVALUE, errbuf);
       HE5_EHprint(errbuf, __FILE__, __LINE__);
       free(errbuf);
--- a/src/SWapi.c
+++ b/src/SWapi.c
@@ -13444,7 +13444,7 @@
 
 		      if ((HE5_SWXRegion[k]->nRegions) > HE5_MAXNREGIONS)
 			{
-			  sprintf(errbuf, "HE5_SWXRegion[%d]->nRegions exceeded HE5_MAXNREGIONS = %d.\n", k, HE5_MAXNREGIONS);
+			  sprintf(errbuf, "HE5_SWXRegion[%ld]->nRegions exceeded HE5_MAXNREGIONS = %d.\n", k, HE5_MAXNREGIONS);
 			  H5Epush(__FILE__, "HE5_SWdefboxregion", __LINE__, H5E_ARGS, H5E_BADRANGE, errbuf);
 			  HE5_EHprint(errbuf, __FILE__, __LINE__);
 			  if (lonArr != NULL) free(lonArr);
@@ -14768,7 +14768,7 @@
       if (regionID < 0 || regionID >= HE5_NSWATHREGN)
         {
 	  status = FAIL;
-	  sprintf(errbuf, "Invalid Region ID: %d.\n", regionID);
+	  sprintf(errbuf, "Invalid Region ID: %ld.\n", (long int) regionID);
 	  H5Epush(__FILE__, "HE5_SWextractregion", __LINE__, H5E_ARGS, H5E_BADVALUE, errbuf);
 	  HE5_EHprint(errbuf, __FILE__, __LINE__);
         }
@@ -14781,7 +14781,7 @@
       if (HE5_SWXRegion[regionID] == 0)
         {
 	  status = FAIL;
-	  sprintf(errbuf, "Inactive Region ID: %d.\n", regionID);
+	  sprintf(errbuf, "Inactive Region ID: %ld.\n", (long int) regionID);
 	  H5Epush(__FILE__, "HE5_SWextractregion", __LINE__, H5E_ARGS, H5E_BADVALUE, errbuf);
 	  HE5_EHprint(errbuf, __FILE__, __LINE__);
         }
@@ -16336,7 +16336,7 @@
       if (regionID < 0 || regionID >= HE5_NSWATHREGN)
         {
 	  status = FAIL;
-	  sprintf(errbuf, "Invalid Region id: %d.\n", regionID);
+	  sprintf(errbuf, "Invalid Region id: %ld.\n", (long int) regionID);
 	  H5Epush(__FILE__, "HE5_SWregioninfo", __LINE__, H5E_ARGS, H5E_BADVALUE, errbuf);
 	  HE5_EHprint(errbuf, __FILE__, __LINE__);
         }
@@ -16349,7 +16349,7 @@
       if (HE5_SWXRegion[regionID] == 0)
         {
 	  status = FAIL;
-	  sprintf(errbuf,"Inactive Region ID: %d.\n", regionID);
+	  sprintf(errbuf,"Inactive Region ID: %ld.\n", (long int) regionID);
 	  H5Epush(__FILE__, "HE5_SWregioninfo", __LINE__, H5E_ARGS, H5E_BADVALUE, errbuf);
 	  HE5_EHprint(errbuf, __FILE__, __LINE__);
         }
@@ -16816,7 +16816,7 @@
       if (regionID < 0 || regionID >= HE5_NSWATHREGN)
         {
 	  status = FAIL;
-	  sprintf(errbuf, "Invalid Region ID: %d.\n", regionID);
+	  sprintf(errbuf, "Invalid Region ID: %ld.\n", (long int) regionID);
 	  H5Epush(__FILE__, "HE5_SWupdatescene", __LINE__, H5E_ARGS, H5E_BADRANGE, errbuf);
 	  HE5_EHprint(errbuf, __FILE__, __LINE__);
         }
@@ -16829,7 +16829,7 @@
       if (HE5_SWXRegion[regionID] == 0)
         {
 	  status = FAIL;
-	  sprintf(errbuf, "Inactive Region ID: %d.\n", regionID);
+	  sprintf(errbuf, "Inactive Region ID: %ld.\n", (long int) regionID);
 	  H5Epush(__FILE__, "HE5_SWupdatescene", __LINE__, H5E_ARGS, H5E_BADRANGE, errbuf);
 	  HE5_EHprint(errbuf, __FILE__, __LINE__);
         }
@@ -16858,7 +16858,7 @@
 		  free(HE5_SWXRegion[regionID]);
 		  HE5_SWXRegion[regionID] = 0;
 		  status = FAIL;
-		  sprintf(errbuf, "Inactive Region ID: %d.\n", regionID);
+		  sprintf(errbuf, "Inactive Region ID: %ld.\n", (long int) regionID);
 		  H5Epush(__FILE__, "HE5_SWupdatescene", __LINE__, H5E_ARGS, H5E_BADRANGE, errbuf);
 		  HE5_EHprint(errbuf, __FILE__, __LINE__);
 		  break;
@@ -16977,7 +16977,7 @@
       if (regionID < 0 || regionID >= HE5_NSWATHREGN)
         {
 	  status = FAIL;
-	  sprintf(errbuf,"Invalid Region id: %d.\n", regionID);
+	  sprintf(errbuf,"Invalid Region id: %ld.\n", (long int) regionID);
 	  H5Epush(__FILE__, "HE5_SWupdateidxmap", __LINE__, H5E_ARGS, H5E_BADRANGE, errbuf);
 	  HE5_EHprint(errbuf, __FILE__, __LINE__);
         }
@@ -16990,7 +16990,7 @@
       if (HE5_SWXRegion[regionID] == 0)
         {
 	  status = FAIL;
-	  sprintf(errbuf, "Inactive Region ID: %d.\n", regionID);
+	  sprintf(errbuf, "Inactive Region ID: %ld.\n", (long int) regionID);
 	  H5Epush(__FILE__, "HE5_SWupdateidxmap", __LINE__, H5E_FILE, H5E_BADRANGE, errbuf );
 	  HE5_EHprint(errbuf, __FILE__, __LINE__);
         }
@@ -23745,7 +23745,7 @@
   if (regionID < 0 || regionID >= HE5_NSWATHREGN)
     {
       status = FAIL;
-      sprintf(errbuf, "Invalid Region ID: %d.\n", regionID);
+      sprintf(errbuf, "Invalid Region ID: %ld.\n", (long int) regionID);
       H5Epush(__FILE__, "HE5_SWindexinfo", __LINE__, H5E_ARGS, H5E_BADVALUE, errbuf);
       HE5_EHprint(errbuf, __FILE__, __LINE__);
       return(status);
@@ -23756,7 +23756,7 @@
   if (HE5_SWXRegion[regionID] == 0)
     {
       status = FAIL;
-      sprintf(errbuf, "Inactive Region ID: %d.\n", regionID);
+      sprintf(errbuf, "Inactive Region ID: %ld.\n", (long int) regionID);
       H5Epush(__FILE__, "HE5_SWindexinfo", __LINE__, H5E_ARGS, H5E_BADVALUE, errbuf);
       HE5_EHprint(errbuf, __FILE__, __LINE__);
       return(status);
--- a/src/ZAapi.c
+++ b/src/ZAapi.c
@@ -1,4 +1,4 @@
-/*
+/* 
  ----------------------------------------------------------------------------
  |    Copyright (C) 2002  Emergent IT Inc.  and Raytheon Systems Company    |
  |                                                                          |