summaryrefslogtreecommitdiffstats
path: root/test/fillval.c
diff options
context:
space:
mode:
authorScott Wegner <swegner@hdfgroup.org>2008-06-05 18:52:19 (GMT)
committerScott Wegner <swegner@hdfgroup.org>2008-06-05 18:52:19 (GMT)
commit532e23b808886527c6037c876ea6b203db16bcff (patch)
tree34f6a6c3e945a6ce9461a7b880f3b890c364ddd2 /test/fillval.c
parent92d070ab393fdd64267dfe53f55d39ef17c52257 (diff)
downloadhdf5-532e23b808886527c6037c876ea6b203db16bcff.zip
hdf5-532e23b808886527c6037c876ea6b203db16bcff.tar.gz
hdf5-532e23b808886527c6037c876ea6b203db16bcff.tar.bz2
[svn-r15150] Purpose: Separate Windows function macro definitions to win32defs.h
Description: In library code, we try not to use system calls directly, but instead use the HD{function} macro instead. This way, we can map special versions of the call on particular systems. Previously, it was all done in H5private.h. However, in an effort to clean up platform-specific definitions, we move all of the Windows macros into a separate file, win32defs.h. This way, we can use the non-Posix versions that Visual Studio sends warnings about. Some macros are set specifically in the platform-specific header files. Then, any macros left unset will be set by the "default" implementation in H5private.h. This checkin also cleans up various source files to use the HD* macros when possible. Tested: VS2005 on WinXP VS.NET on WinXP h5committest (kagiso, linew, smirom)
Diffstat (limited to 'test/fillval.c')
-rw-r--r--test/fillval.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/fillval.c b/test/fillval.c
index 2cf1191..29f37b4 100644
--- a/test/fillval.c
+++ b/test/fillval.c
@@ -1883,8 +1883,8 @@ test_extend(hid_t fapl, const char *base_name, H5D_layout_t layout)
hsize_t nelmts;
nelmts = max_size[0]*max_size[1]*max_size[2]*max_size[3]*max_size[4];
- if((fd=open(FILE_NAME_RAW, O_RDWR|O_CREAT|O_TRUNC, 0666)) < 0 ||
- close(fd) < 0) goto error;
+ if((fd=HDopen(FILE_NAME_RAW, O_RDWR|O_CREAT|O_TRUNC, 0666)) < 0 ||
+ HDclose(fd) < 0) goto error;
if(H5Pset_external(dcpl, FILE_NAME_RAW, (off_t)0, (hsize_t)nelmts*sizeof(int)) < 0)
goto error;
}