From 66e7376e347c2f445813ece0548ee5b6d70aa476 Mon Sep 17 00:00:00 2001 From: Raymond Lu Date: Thu, 5 Apr 2007 15:41:42 -0500 Subject: [svn-r13597] Add the macro check of H5_HAVE_FSEEKO for STDIO test. Without it there'll be no big file support. Updated document, too. Tested on smirom because it's a simple change. --- release_docs/RELEASE.txt | 6 +++++- test/big.c | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/release_docs/RELEASE.txt b/release_docs/RELEASE.txt index 698f884..cf6ed06 100644 --- a/release_docs/RELEASE.txt +++ b/release_docs/RELEASE.txt @@ -87,7 +87,11 @@ Bug Fixes since HDF5-1.6.5 Release Library ------- - - Relaxed restrictions on attribute operations to allow a file ID to + - STDIO driver didn't support files bigger than 2GB because the OFFSET + parameter of fseek is of type LONG INT, not big enough for big files. + Use fseeko instead for big files if it's available on the system. + SLU - 2007/4/5 + - Relaxed restrictions on attribute operations to allow a file ID to be used as the "location ID". If a file ID is used, the attribute operation will occur on the root group of the file. - QAK - 2007/02/09 diff --git a/test/big.c b/test/big.c index 60c01ad..cc85642 100644 --- a/test/big.c +++ b/test/big.c @@ -553,7 +553,10 @@ main (int ac, char **av) puts("Test passed with the Family Driver."); - /* Test big file with the STDIO driver */ +#ifdef H5_HAVE_FSEEKO + /* Test big file with the STDIO driver only if fseeko is supported, + * because the OFFSET parameter of fseek has the type LONG, not big + * enough to support big files. */ puts("\nTesting big file with the STDIO Driver "); fapl = h5_fileaccess(); @@ -565,6 +568,7 @@ main (int ac, char **av) if (writer(filename, fapl, WRT_N)) goto error; if (reader(filename, fapl)) goto error; puts("Test passed with the STDIO Driver."); +#endif quit: /* End with normal exit code */ -- cgit v0.12