summaryrefslogtreecommitdiffstats
path: root/perform/overhead.c
diff options
context:
space:
mode:
authorAlbert Cheng <acheng@hdfgroup.org>2002-04-19 07:20:41 (GMT)
committerAlbert Cheng <acheng@hdfgroup.org>2002-04-19 07:20:41 (GMT)
commitf5d5e9e2ff980545217a4f9efb6a4ff1ac90f8b9 (patch)
tree8e8f3b4d1c47d20ccfecf11bd0b3a3a1cb5d2265 /perform/overhead.c
parent40117dd3849be65d039ca6aa02bb6d6a338c7f7b (diff)
downloadhdf5-f5d5e9e2ff980545217a4f9efb6a4ff1ac90f8b9.zip
hdf5-f5d5e9e2ff980545217a4f9efb6a4ff1ac90f8b9.tar.gz
hdf5-f5d5e9e2ff980545217a4f9efb6a4ff1ac90f8b9.tar.bz2
[svn-r5205] Purpose:
Code cleanup Description: Platform dependent code related to the struct stat and fstat calls polluted source codes. Hard to maintain. Solution: Platform dependent code are moved to H5private.h and then internal code can #include H5private.h. Repeat those macro definition for the stdio and multi drivers since they area examples for writing a virtual file driver. They must not use any internal code. Platforms tested: eirene (parallel), modi4 (serial including gass driver.)
Diffstat (limited to 'perform/overhead.c')
-rw-r--r--perform/overhead.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/perform/overhead.c b/perform/overhead.c
index b0546ba..903776e 100644
--- a/perform/overhead.c
+++ b/perform/overhead.c
@@ -11,6 +11,7 @@
/* See H5private.h for how to include headers */
#undef NDEBUG
#include "hdf5.h"
+#include "H5private.h"
#ifdef H5_STDC_HEADERS
# include <ctype.h>
@@ -186,7 +187,7 @@ test(fill_t fill_style, const double splits[],
int mdc_nelmts; /*num meta objs to cache*/
hsize_t i;
int j;
- struct stat sb;
+ h5_stat_t sb;
if (!had) had = calloc((size_t)cur_size[0], sizeof(int));
if ((fapl=H5Pcreate(H5P_FILE_ACCESS))<0) goto error;