diff options
author | Raymond Lu <songyulu@hdfgroup.org> | 2007-04-19 16:18:07 (GMT) |
---|---|---|
committer | Raymond Lu <songyulu@hdfgroup.org> | 2007-04-19 16:18:07 (GMT) |
commit | 52d6bf13e665e60420e03b995f9de65664ac5029 (patch) | |
tree | 048a6b0061fa24af7a64ceba36d9d5fd670bdc54 /src | |
parent | 2645021a3d2cfd5716f5cdd8e71b0560aaef59c4 (diff) | |
download | hdf5-52d6bf13e665e60420e03b995f9de65664ac5029.zip hdf5-52d6bf13e665e60420e03b995f9de65664ac5029.tar.gz hdf5-52d6bf13e665e60420e03b995f9de65664ac5029.tar.bz2 |
[svn-r13689] 1. changed the HDlseek to be lseek64 and HDfseek to be fseeko if available, to support big
files. 2. added a check in test/big.c to make sure the system supports big file.
Tested on liberty, smirom, copper, and sol.
Diffstat (limited to 'src')
-rw-r--r-- | src/H5private.h | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/H5private.h b/src/H5private.h index fb0ca5e..4005b4d 100644 --- a/src/H5private.h +++ b/src/H5private.h @@ -618,7 +618,11 @@ H5_DLL int HDfprintf (FILE *stream, const char *fmt, ...); #define HDfrexpl(X,N) frexp(X,N) #endif /* H5_HAVE_FREXPL */ /* fscanf() variable arguments */ -#define HDfseek(F,O,W) fseek(F,O,W) +#ifdef H5_HAVE_FSEEKO + #define HDfseek(F,O,W) fseeko(F,O,W) +#else + #define HDfseek(F,O,W) fseek(F,O,W) +#endif #define HDfsetpos(F,P) fsetpos(F,P) /* definitions related to the file stat utilities */ #ifdef WIN32 @@ -690,7 +694,11 @@ typedef off_t h5_stat_size_t; #define HDlseek(F,O,W) _lseeki64(F,O,W) #endif #else -#define HDlseek(F,O,W) lseek(F,O,W) + #ifdef H5_HAVE_FSEEK64 + #define HDlseek(F,O,W) lseek64(F,O,W) + #else + #define HDlseek(F,O,W) lseek(F,O,W) + #endif #endif #define HDmalloc(Z) malloc(Z) #define HDmblen(S,N) mblen(S,N) |