summaryrefslogtreecommitdiffstats
path: root/src/H5FDgass.c
diff options
context:
space:
mode:
authorMuQun Yang <ymuqun@hdfgroup.org>2002-03-29 13:53:15 (GMT)
committerMuQun Yang <ymuqun@hdfgroup.org>2002-03-29 13:53:15 (GMT)
commit5cae3b67d41de32cc3a94b9f9b15868f325b6f14 (patch)
tree35306f8bd58e030ba1243f6db681f3d53dd6c4d5 /src/H5FDgass.c
parentc852beb2b131a8fce297b0cc4cbd38e16d2a3f27 (diff)
downloadhdf5-5cae3b67d41de32cc3a94b9f9b15868f325b6f14.zip
hdf5-5cae3b67d41de32cc3a94b9f9b15868f325b6f14.tar.gz
hdf5-5cae3b67d41de32cc3a94b9f9b15868f325b6f14.tar.bz2
[svn-r5114]
Purpose: update win32 changes for fstati64. Description: Change fstat to fstati64 in the relevant source codes, Using HDfstat is possible. For > 4GB file, windows need to use fstati64 instead of fstat. Solution: Platforms tested: windows 2000(confirmed by eirene)
Diffstat (limited to 'src/H5FDgass.c')
-rw-r--r--src/H5FDgass.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/H5FDgass.c b/src/H5FDgass.c
index 380903e..5ab0e8e 100644
--- a/src/H5FDgass.c
+++ b/src/H5FDgass.c
@@ -308,6 +308,11 @@ H5FD_gass_open(const char *name, unsigned flags, hid_t fapl_id,
H5FD_gass_t *file=NULL;
const H5FD_gass_fapl_t *fa=NULL;
H5FD_gass_fapl_t _fa;
+#ifdef WIN32
+ struct _stati64 sb;
+#else
+ struct stat sb;
+#endif
char *filename = (char *) H5MM_malloc(80 * sizeof(char));
FUNC_ENTER(H5FD_gass_open, NULL);
@@ -382,7 +387,7 @@ H5FD_gass_open(const char *name, unsigned flags, hid_t fapl_id,
}
- if (fstat(fd, &sb)<0) {
+ if (HDfstat(fd, &sb)<0) {
close(fd);
HRETURN_ERROR(H5E_IO, H5E_BADFILE, NULL, "fstat failed");
}