From 4ce7a7ad80b04620240ebdc68824aaf9b8ec6514 Mon Sep 17 00:00:00 2001 From: MuQun Yang Date: Fri, 12 Jan 2001 01:45:40 -0500 Subject: [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 --- test/iopipe.c | 5 +++-- 1 file 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 +#include #ifdef H5_STDC_HEADERS # include @@ -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); -- cgit v0.12