summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMuQun Yang <ymuqun@hdfgroup.org>2001-01-12 06:45:40 (GMT)
committerMuQun Yang <ymuqun@hdfgroup.org>2001-01-12 06:45:40 (GMT)
commit4ce7a7ad80b04620240ebdc68824aaf9b8ec6514 (patch)
tree16a527cd3f69bef42f89b4d73a68f1a21e091a5d
parent7785cbd55bfca87f0cb2687c9fbfbd51741199ea (diff)
downloadhdf5-4ce7a7ad80b04620240ebdc68824aaf9b8ec6514.zip
hdf5-4ce7a7ad80b04620240ebdc68824aaf9b8ec6514.tar.gz
hdf5-4ce7a7ad80b04620240ebdc68824aaf9b8ec6514.tar.bz2
[svn-r3275]
Purpose: windows bug fix Description: using HDopen and HDclose at this file, including H5private.h for windows specific headers. Solution: Platforms tested: win 2000, confirmed at eirene
-rw-r--r--test/iopipe.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/iopipe.c b/test/iopipe.c
index ed81eaa..d359ed8 100644
--- a/test/iopipe.c
+++ b/test/iopipe.c
@@ -9,6 +9,7 @@
/* See H5private.h for how to include headers */
#undef NDEBUG
#include <hdf5.h>
+#include <H5private.h>
#ifdef H5_STDC_HEADERS
# include <assert.h>
@@ -220,7 +221,7 @@ main (void)
/* Open the files */
file = H5Fcreate (HDF5_FILE_NAME, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
assert (file>=0);
- fd = open (RAW_FILE_NAME, O_RDWR|O_CREAT|O_TRUNC, 0666);
+ fd = HDopen (RAW_FILE_NAME, O_RDWR|O_CREAT|O_TRUNC, 0666);
assert (fd>=0);
/* Create the dataset */
@@ -516,7 +517,7 @@ printf("Before getrusage() call\n");
/* Close everything */
- close (fd);
+ HDclose (fd);
H5Dclose (dset);
H5Sclose (file_space);
H5Fclose (file);