summaryrefslogtreecommitdiffstats
path: root/src/H5AC.c
diff options
context:
space:
mode:
authorRobb Matzke <matzke@llnl.gov>1997-08-01 16:51:29 (GMT)
committerRobb Matzke <matzke@llnl.gov>1997-08-01 16:51:29 (GMT)
commitfc4bcbc21f9a530aa03e1525516507de2c8dadb5 (patch)
tree0d79d7649f3c58b67d8d0a0cfeff64b50bdcb79f /src/H5AC.c
parent3ecc8c71b5f8e546f608f5d15f272c98fd593f61 (diff)
downloadhdf5-fc4bcbc21f9a530aa03e1525516507de2c8dadb5.zip
hdf5-fc4bcbc21f9a530aa03e1525516507de2c8dadb5.tar.gz
hdf5-fc4bcbc21f9a530aa03e1525516507de2c8dadb5.tar.bz2
[svn-r4] Changed SIZEOF_OFFSET and SIZEOF_SIZE to H5F_SIZEOF_OFFSET and
H5F_SIZEOF_SIZE. Modified files to use these instead of accessing the hdf5_file_t struct directly. Changed address return values from H5B to -1 for error. Changed off_t to haddr_t for anything that's a file address.
Diffstat (limited to 'src/H5AC.c')
-rw-r--r--src/H5AC.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/H5AC.c b/src/H5AC.c
index a0123b1..cca36bc 100644
--- a/src/H5AC.c
+++ b/src/H5AC.c
@@ -99,13 +99,13 @@ H5AC_dest (hdf5_file_t *f)
*-------------------------------------------------------------------------
*/
void *
-H5AC_find (hdf5_file_t *f, const H5AC_class_t *type, off_t addr,
+H5AC_find (hdf5_file_t *f, const H5AC_class_t *type, haddr_t addr,
const void *udata)
{
unsigned idx = HASH(addr);
herr_t status;
void *thing = NULL;
- herr_t (*flush)(hdf5_file_t*,hbool_t,off_t,void*)=NULL;
+ herr_t (*flush)(hdf5_file_t*,hbool_t,haddr_t,void*)=NULL;
assert (type);
assert (type->load);
@@ -175,12 +175,12 @@ H5AC_find (hdf5_file_t *f, const H5AC_class_t *type, off_t addr,
*-------------------------------------------------------------------------
*/
herr_t
-H5AC_flush (hdf5_file_t *f, const H5AC_class_t *type, off_t addr,
+H5AC_flush (hdf5_file_t *f, const H5AC_class_t *type, haddr_t addr,
hbool_t destroy)
{
uintn i = HASH(addr);
herr_t status;
- herr_t (*flush)(hdf5_file_t*,hbool_t,off_t,void*)=NULL;
+ herr_t (*flush)(hdf5_file_t*,hbool_t,haddr_t,void*)=NULL;
if (!type || 0==addr) {
/*
@@ -232,11 +232,11 @@ H5AC_flush (hdf5_file_t *f, const H5AC_class_t *type, off_t addr,
*-------------------------------------------------------------------------
*/
herr_t
-H5AC_set (hdf5_file_t *f, const H5AC_class_t *type, off_t addr, void *thing)
+H5AC_set (hdf5_file_t *f, const H5AC_class_t *type, haddr_t addr, void *thing)
{
herr_t status;
uintn idx = HASH (addr);
- herr_t (*flush)(hdf5_file_t*,hbool_t,off_t,void*)=NULL;
+ herr_t (*flush)(hdf5_file_t*,hbool_t,haddr_t,void*)=NULL;
assert (type);
assert (type->flush);
@@ -274,11 +274,11 @@ H5AC_set (hdf5_file_t *f, const H5AC_class_t *type, off_t addr, void *thing)
*/
herr_t
H5AC_rename (hdf5_file_t *f, const H5AC_class_t *type,
- off_t old_addr, off_t new_addr)
+ haddr_t old_addr, haddr_t new_addr)
{
uintn old_idx = HASH (old_addr);
uintn new_idx = HASH (new_addr);
- herr_t (*flush)(hdf5_file_t*, hbool_t, off_t, void*);
+ herr_t (*flush)(hdf5_file_t*, hbool_t, haddr_t, void*);
herr_t status;
assert (type);