diff options
author | Raymond Lu <songyulu@hdfgroup.org> | 2007-04-23 18:57:51 (GMT) |
---|---|---|
committer | Raymond Lu <songyulu@hdfgroup.org> | 2007-04-23 18:57:51 (GMT) |
commit | 156f8bc690dfa1ca70d82553c35eeeda4ca7356c (patch) | |
tree | 6b84d8fda52c513ceb1ec8c303c1e804a29ce57a /src | |
parent | f68c5d9849191393ef825508f0cdda56cc0c881d (diff) | |
download | hdf5-156f8bc690dfa1ca70d82553c35eeeda4ca7356c.zip hdf5-156f8bc690dfa1ca70d82553c35eeeda4ca7356c.tar.gz hdf5-156f8bc690dfa1ca70d82553c35eeeda4ca7356c.tar.bz2 |
[svn-r13694] 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 smirom because already tested the same changes for v1.6 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 c9d92e5..17b6e75 100644 --- a/src/H5private.h +++ b/src/H5private.h @@ -593,7 +593,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. * Windows have its own function names. @@ -677,7 +681,11 @@ H5_DLL int HDfprintf (FILE *stream, const char *fmt, ...); #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 HDposix_memalign(P,A,Z) posix_memalign(P,A,Z) |