diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2001-06-29 18:53:29 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2001-06-29 18:53:29 (GMT) |
commit | 955ef79577044849f77e718011fe1a525971ac92 (patch) | |
tree | 403241392023c64f1f7bbf518d66c7ba4cc9e829 /src/H5FDlog.c | |
parent | aca104be974d9857a47b2c6b877c694693870b8b (diff) | |
download | hdf5-955ef79577044849f77e718011fe1a525971ac92.zip hdf5-955ef79577044849f77e718011fe1a525971ac92.tar.gz hdf5-955ef79577044849f77e718011fe1a525971ac92.tar.bz2 |
[svn-r4086] Purpose:
Code Cleanup
Description:
CodeWarrior checkin broke the unix build in a couple of ways...
Solution:
Various tweaks and cleanups.
Platforms tested:
FreeBSD 4.3 (hawkwind)
Diffstat (limited to 'src/H5FDlog.c')
-rw-r--r-- | src/H5FDlog.c | 21 |
1 files changed, 19 insertions, 2 deletions
diff --git a/src/H5FDlog.c b/src/H5FDlog.c index 6454e24..e7b663c 100644 --- a/src/H5FDlog.c +++ b/src/H5FDlog.c @@ -103,7 +103,24 @@ 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 @@ -941,7 +958,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, (void*)buf, (size_t)size); + nbytes = HDwrite(file->fd, buf, (size_t)size); } while (-1==nbytes && EINTR==errno); if (-1==nbytes) { /* error */ |