diff options
author | Pedro Vicente Nunes <pvn@hdfgroup.org> | 2001-06-28 21:23:13 (GMT) |
---|---|---|
committer | Pedro Vicente Nunes <pvn@hdfgroup.org> | 2001-06-28 21:23:13 (GMT) |
commit | bcb587dcc2305763546acd8e3303240530cd20cf (patch) | |
tree | 5a9e89047989e529f38005725b671bd62fa1e9d7 /src/H5FDsec2.c | |
parent | 3a925f72d08e3e61602c9e3344c1f67b340057fb (diff) | |
download | hdf5-bcb587dcc2305763546acd8e3303240530cd20cf.zip hdf5-bcb587dcc2305763546acd8e3303240530cd20cf.tar.gz hdf5-bcb587dcc2305763546acd8e3303240530cd20cf.tar.bz2 |
[svn-r4081]
Purpose:
[is this a bug fix? feature? ...]
Description:
[describe the bug, or describe the new feature, etc]
Solution:
[details about the changes, algorithm, etc...]
[Please as detail as you can since your own explanation is
better than others guessing it from the code.]
Platforms tested:
[machines you have tested the changed version. This is absolute
important. Test it out on at least two or three different platforms
such as Big-endian-32bit (SUN/IRIX), little-endian-32(LINUX) and
64-bit (IRIX64/UNICOS/DEC-ALPHA) would be good.]
Diffstat (limited to 'src/H5FDsec2.c')
-rw-r--r-- | src/H5FDsec2.c | 26 |
1 files changed, 1 insertions, 25 deletions
diff --git a/src/H5FDsec2.c b/src/H5FDsec2.c index 4c9f967..847b8fd 100644 --- a/src/H5FDsec2.c +++ b/src/H5FDsec2.c @@ -75,30 +75,6 @@ typedef struct H5FD_sec2_t { #endif } H5FD_sec2_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(). - */ -/* adding for windows NT file system support. */ - -#ifdef H5_HAVE_LSEEK64 -# define file_offset_t off64_t -# define file_seek lseek64 -#elif defined WIN32 -# define file_offset_t __int64 -# define file_seek _lseeki64 -#else -# define file_offset_t off_t -# define file_seek lseek -#endif - /* * These macros check for overflow of various quantities. These macros @@ -659,7 +635,7 @@ H5FD_sec2_write(H5FD_t *_file, H5FD_mem_t UNUSED type, hid_t UNUSED dxpl_id, had 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 */ |