summaryrefslogtreecommitdiffstats
path: root/perform/overhead.c
diff options
context:
space:
mode:
authorMuQun Yang <ymuqun@hdfgroup.org>2002-04-19 20:48:43 (GMT)
committerMuQun Yang <ymuqun@hdfgroup.org>2002-04-19 20:48:43 (GMT)
commit0a4ca388fef1c6bcb2442a466777489a9575ad63 (patch)
tree0677f9431c8f09c40ec1592a2c9b1892db7bf0db /perform/overhead.c
parent5369181ba3202de8c164e514620fe530519d25be (diff)
downloadhdf5-0a4ca388fef1c6bcb2442a466777489a9575ad63.zip
hdf5-0a4ca388fef1c6bcb2442a466777489a9575ad63.tar.gz
hdf5-0a4ca388fef1c6bcb2442a466777489a9575ad63.tar.bz2
[svn-r5208]
Purpose: a bug fix Description: should use HDfstat instead of fstat Solution: Platforms tested: linux 2.218, windows 2000
Diffstat (limited to 'perform/overhead.c')
-rw-r--r--perform/overhead.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/perform/overhead.c b/perform/overhead.c
index 903776e..264a3ce 100644
--- a/perform/overhead.c
+++ b/perform/overhead.c
@@ -257,7 +257,7 @@ test(fill_t fill_style, const double splits[],
/* Determine overhead */
if (verbose) {
if (H5Fflush(file, H5F_SCOPE_LOCAL)<0) goto error;
- if (fstat(fd, &sb)<0) goto error;
+ if (HDfstat(fd, &sb)<0) goto error;
/*
* The extra cast in the following statement is a bug workaround
* for the Win32 version 5.0 compiler.
@@ -302,7 +302,7 @@ test(fill_t fill_style, const double splits[],
#if !defined( __MWERKS__)
- if (fstat(fd, &sb)<0) goto error;
+ if (HDfstat(fd, &sb)<0) goto error;
printf("%-7s %8.3f\n", sname,
(double)(hssize_t)(sb.st_size-cur_size[0]*sizeof(int))/
(hssize_t)cur_size[0]);