summaryrefslogtreecommitdiffstats
path: root/src/H5FDstdio.c
diff options
context:
space:
mode:
authorMuQun Yang <ymuqun@hdfgroup.org>2003-04-17 22:19:17 (GMT)
committerMuQun Yang <ymuqun@hdfgroup.org>2003-04-17 22:19:17 (GMT)
commit7c832af9aa0db8c98d6dc0a3610c5e2ad14a8da3 (patch)
tree0a820beace7b37902605798f076419eb5bb44bf4 /src/H5FDstdio.c
parent9dacf3d56bb3835ae545b13fa1949eb8c1e549a2 (diff)
downloadhdf5-7c832af9aa0db8c98d6dc0a3610c5e2ad14a8da3.zip
hdf5-7c832af9aa0db8c98d6dc0a3610c5e2ad14a8da3.tar.gz
hdf5-7c832af9aa0db8c98d6dc0a3610c5e2ad14a8da3.tar.bz2
[svn-r6707] Purpose:
A compiling error fixed for windows only Description: Use file handler instead of file stream at H5FDstdio.c when using getfileHandle function of windows. Solution: see above, however; stdio driver tests failed on windows. I am still investigating the bug. The current check will not fix the failure of stdio driver test on windows. The good news is that it won't affect the release since the default driver used for test is sec2 driver and all tests passed for sec2 driver on windows. Platforms tested: windows 2000 and confirmed at Linux. Since the only change is two-line code inside #ifdef WIN32 #endif macro block, it is not necessary to test all UNIX platforms. Still confirmed at eirene. Misc. update:
Diffstat (limited to 'src/H5FDstdio.c')
-rw-r--r--src/H5FDstdio.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/H5FDstdio.c b/src/H5FDstdio.c
index 5e7246a..f7510fe 100644
--- a/src/H5FDstdio.c
+++ b/src/H5FDstdio.c
@@ -875,9 +875,10 @@ H5FD_stdio_flush(H5FD_t *_file, hid_t dxpl_id, unsigned closing)
#ifdef WIN32
HFILE filehandle; /* Windows file handle */
LARGE_INTEGER li; /* 64-bit integer for SetFilePointer() call */
+ fd = _fileno(file->fp);
/* Map the posix file handle to a Windows file handle */
- filehandle = _get_osfhandle(file->fd);
+ filehandle = _get_osfhandle(fd);
/* Translate 64-bit integers into form Windows wants */
/* [This algorithm is from the Windows documentation for SetFilePointer()] */