summaryrefslogtreecommitdiffstats
path: root/src/H5FDlog.c
diff options
context:
space:
mode:
authorPedro Vicente Nunes <pvn@hdfgroup.org>2001-06-07 16:03:02 (GMT)
committerPedro Vicente Nunes <pvn@hdfgroup.org>2001-06-07 16:03:02 (GMT)
commit504bc34f6015d2c4df03b024c95cdbbab71cbd5f (patch)
treeacb62b5417ce2d5ef9f1209a5a7ac7945eea7e45 /src/H5FDlog.c
parent80737b93ef4425801da0f24b592e9b1bb3e3bca9 (diff)
downloadhdf5-504bc34f6015d2c4df03b024c95cdbbab71cbd5f.zip
hdf5-504bc34f6015d2c4df03b024c95cdbbab71cbd5f.tar.gz
hdf5-504bc34f6015d2c4df03b024c95cdbbab71cbd5f.tar.bz2
[svn-r3974] code warrior port
Diffstat (limited to 'src/H5FDlog.c')
-rw-r--r--src/H5FDlog.c23
1 files changed, 3 insertions, 20 deletions
diff --git a/src/H5FDlog.c b/src/H5FDlog.c
index ac04c2b..4f64f09 100644
--- a/src/H5FDlog.c
+++ b/src/H5FDlog.c
@@ -104,24 +104,7 @@ typedef struct H5FD_log_t {
#endif
} H5FD_log_t;
-/*
- * This driver supports systems that have the lseek64() function by defining
- * some macros here so we don't have to have conditional compilations later
- * throughout the code.
- *
- * file_offset_t: The datatype for file offsets, the second argument of
- * the lseek() or lseek64() call.
- *
- * file_seek: The function which adjusts the current file position,
- * either lseek() or lseek64().
- */
-#ifdef H5_HAVE_LSEEK64
-# define file_offset_t off64_t
-# define file_seek lseek64
-#else
-# define file_offset_t off_t
-# define file_seek lseek
-#endif
+
/*
* These macros check for overflow of various quantities. These macros
@@ -450,7 +433,7 @@ H5FD_log_open(const char *name, unsigned flags, hid_t fapl_id,
file->op = OP_UNKNOWN;
#ifdef WIN32
filehandle = _get_osfhandle(fd);
- results = GetFileInformationByHandle(filehandle, &fileinfo);
+ results = GetFileInformationByHandle((HANDLE)filehandle, &fileinfo);
file->fileindexhi = fileinfo.nFileIndexHigh;
file->fileindexlo = fileinfo.nFileIndexLow;
#else
@@ -973,7 +956,7 @@ H5FD_log_write(H5FD_t *_file, H5FD_mem_t UNUSED type, hid_t UNUSED dxpl_id, hadd
while (size>0) {
do {
assert(size==(hsize_t)((size_t)size)); /*check for overflow*/
- nbytes = HDwrite(file->fd, buf, (size_t)size);
+ nbytes = HDwrite(file->fd, (void*)buf, (size_t)size);
} while (-1==nbytes && EINTR==errno);
if (-1==nbytes) {
/* error */