From 0a4ca388fef1c6bcb2442a466777489a9575ad63 Mon Sep 17 00:00:00 2001 From: MuQun Yang Date: Fri, 19 Apr 2002 15:48:43 -0500 Subject: [svn-r5208] Purpose: a bug fix Description: should use HDfstat instead of fstat Solution: Platforms tested: linux 2.218, windows 2000 --- perform/overhead.c | 4 ++-- 1 file 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]); -- cgit v0.12