summaryrefslogtreecommitdiffstats
path: root/src/H5FDstdio.c
diff options
context:
space:
mode:
authorAlbert Cheng <acheng@hdfgroup.org>2010-11-26 00:56:17 (GMT)
committerAlbert Cheng <acheng@hdfgroup.org>2010-11-26 00:56:17 (GMT)
commit43fa57565f0579e6c4fcca40b9a50c5af58fd1af (patch)
tree25bc5de2059d38be35806e8ad08e314c3964c781 /src/H5FDstdio.c
parent8f23cabbd8a4e872338d003351d87f97c3fa9569 (diff)
downloadhdf5-43fa57565f0579e6c4fcca40b9a50c5af58fd1af.zip
hdf5-43fa57565f0579e6c4fcca40b9a50c5af58fd1af.tar.gz
hdf5-43fa57565f0579e6c4fcca40b9a50c5af58fd1af.tar.bz2
[svn-r19848] Bug 1917: big test failed especially in Widows.
big.c: Changed the test to run Huge Dataset (tens of GB), Xtra large dataset(4GB big), Large dataset (2GB big), or merely 1GB big, depending on if the file system supports sparse file or if it supports larger than 32bigs I/O. H5FDstdio.c: Removed an incorrect condition that whether STDIO VFD supports larger than 32bits I/O depends on the support of fseeko. Windows does not use that. Instead, it uses _fseeki64 to support larger than 32bits I/O. Tested: h5committest, jam (serial).
Diffstat (limited to 'src/H5FDstdio.c')
-rw-r--r--src/H5FDstdio.c20
1 files changed, 0 insertions, 20 deletions
diff --git a/src/H5FDstdio.c b/src/H5FDstdio.c
index 20fa31f..9bc4161 100644
--- a/src/H5FDstdio.c
+++ b/src/H5FDstdio.c
@@ -130,14 +130,8 @@ typedef struct H5FD_stdio_t {
/* Use file_xxx to indicate these are local macros, avoiding confusing
* with the global HD_xxx macros.
- * Need fseeko, off_t, ftell and ftruncate are all of the same 32 or 64
- * versions.
* Assume fseeko, which is POSIX standard, is always supported;
* but prefer to use fseeko64 if supported.
- * [Note: the ifndef H5_HAVE_FSEEKO condition to determine BIG FILE not
- * supported was old code. This condition is not supposed to be true in Unix
- * like systems but may happen in non-Unix systems like Windows. They are left
- * in for now and will be cleaned later. -AKC-]
*/
#ifndef file_fseek
#ifdef H5_HAVE_FSEEKO64
@@ -175,11 +169,6 @@ typedef struct H5FD_stdio_t {
#define REGION_OVERFLOW(A,Z) (ADDR_OVERFLOW(A) || SIZE_OVERFLOW(Z) || \
HADDR_UNDEF==(A)+(Z) || (file_offset_t)((A)+(Z))<(file_offset_t)(A))
-#ifndef H5_HAVE_FSEEKO
-/* Define big file as 2GB */
-#define BIG_FILE 0x80000000UL
-#endif
-
/* Prototypes */
static H5FD_t *H5FD_stdio_open(const char *name, unsigned flags,
hid_t fapl_id, haddr_t maxaddr);
@@ -587,9 +576,6 @@ H5FD_stdio_alloc(H5FD_t *_file, H5FD_mem_t /*UNUSED*/ type, hid_t /*UNUSED*/ dxp
{
H5FD_stdio_t *file = (H5FD_stdio_t*)_file;
haddr_t addr;
-#ifndef H5_HAVE_FSEEKO
- static const char *func = "H5FD_stdio_alloc"; /* Function Name for error reporting */
-#endif
haddr_t ret_value; /* Return value */
/* Shut compiler up */
@@ -609,12 +595,6 @@ H5FD_stdio_alloc(H5FD_t *_file, H5FD_mem_t /*UNUSED*/ type, hid_t /*UNUSED*/ dxp
addr = ((addr / file->pub.alignment) + 1) * file->pub.alignment;
} /* end if */
-#ifndef H5_HAVE_FSEEKO
- /* If fseeko isn't available, big files (>2GB) won't be supported. */
- if((addr + size) > BIG_FILE)
- H5Epush_ret(func, H5E_ERR_CLS, H5E_IO, H5E_SEEKERROR, "can't write file bigger than 2GB because fseeko isn't available", HADDR_UNDEF)
-#endif
-
file->eoa = addr + size;
/* Set return value */