diff options
author | Scott Wegner <swegner@hdfgroup.org> | 2008-06-05 18:52:19 (GMT) |
---|---|---|
committer | Scott Wegner <swegner@hdfgroup.org> | 2008-06-05 18:52:19 (GMT) |
commit | 532e23b808886527c6037c876ea6b203db16bcff (patch) | |
tree | 34f6a6c3e945a6ce9461a7b880f3b890c364ddd2 /perform/iopipe.c | |
parent | 92d070ab393fdd64267dfe53f55d39ef17c52257 (diff) | |
download | hdf5-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 'perform/iopipe.c')
-rw-r--r-- | perform/iopipe.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/perform/iopipe.c b/perform/iopipe.c index d736f17..0667995 100644 --- a/perform/iopipe.c +++ b/perform/iopipe.c @@ -326,9 +326,9 @@ printf("Before getrusage() call\n"); for (i=0; i<nwrite; i++) { putc (PROGRESS, stderr); fflush (stderr); - offset = lseek (fd, (off_t)0, SEEK_SET); + offset = HDlseek (fd, (off_t)0, SEEK_SET); assert (0==offset); - n = write (fd, the_data, (size_t)(size[0]*size[1])); + n = HDwrite (fd, the_data, (size_t)(size[0]*size[1])); assert (n>=0 && (size_t)n==size[0]*size[1]); } #ifdef H5_HAVE_GETRUSAGE @@ -405,9 +405,9 @@ printf("Before getrusage() call\n"); for (i=0; i<nread; i++) { putc (PROGRESS, stderr); fflush (stderr); - offset = lseek (fd, (off_t)0, SEEK_SET); + offset = HDlseek (fd, (off_t)0, SEEK_SET); assert (0==offset); - n = read (fd, the_data, (size_t)(size[0]*size[1])); + n = HDread (fd, the_data, (size_t)(size[0]*size[1])); assert (n>=0 && (size_t)n==size[0]*size[1]); } #ifdef H5_HAVE_GETRUSAGE |