diff options
author | Albert Cheng <acheng@hdfgroup.org> | 2002-04-19 07:20:10 (GMT) |
---|---|---|
committer | Albert Cheng <acheng@hdfgroup.org> | 2002-04-19 07:20:10 (GMT) |
commit | c6d695526c58f3f3906129e833883a183fb3cae6 (patch) | |
tree | cbdf2e899b6127be8d841942c2f18940387033b2 /src/H5private.h | |
parent | 0dfa9a8549cc4f8c40fd84589fe74c1e7253f1ba (diff) | |
download | hdf5-c6d695526c58f3f3906129e833883a183fb3cae6.zip hdf5-c6d695526c58f3f3906129e833883a183fb3cae6.tar.gz hdf5-c6d695526c58f3f3906129e833883a183fb3cae6.tar.bz2 |
[svn-r5204] Purpose:
Code cleanup
Description:
Platform dependent code related to the struct stat and fstat
calls polluted source codes. Hard to maintain.
Solution:
Platform dependent code are moved to H5private.h and then internal
code can #include H5private.h. Repeat those macro definition for
the stdio and multi drivers since they area examples for writing
a virtual file driver. They must not use any internal code.
Platforms tested:
eirene (parallel), modi4 (serial including gass driver.)
Diffstat (limited to 'src/H5private.h')
-rw-r--r-- | src/H5private.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/H5private.h b/src/H5private.h index fa281b9..742f762 100644 --- a/src/H5private.h +++ b/src/H5private.h @@ -547,10 +547,13 @@ __DLL__ int HDfprintf (FILE *stream, const char *fmt, ...); /* fscanf() variable arguments */ #define HDfseek(F,O,W) fseek(F,O,W) #define HDfsetpos(F,P) fsetpos(F,P) +/* definitions related to the file stat utilities */ #ifdef WIN32 -#define HDfstat(F,B) _fstati64(F,B) +#define HDfstat(F,B) _fstati64(F,B) +typedef struct _stati64 h5_stat_t; #else #define HDfstat(F,B) fstat(F,B) +typedef struct stat h5_stat_t; #endif #define HDftell(F) ftell(F) #define HDfwrite(M,Z,N,F) fwrite(M,Z,N,F) |