diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2009-09-10 19:33:12 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2009-09-10 19:33:12 (GMT) |
commit | 0b3fbf90899f97a7817779c106e171b89f19a042 (patch) | |
tree | 5bd630b6ead0b1fefe5b82a7db968c704b4614cc /src/H5FD.c | |
parent | d5c362618144381b3d2cb8030b6cd75d75bbe1bf (diff) | |
download | hdf5-0b3fbf90899f97a7817779c106e171b89f19a042.zip hdf5-0b3fbf90899f97a7817779c106e171b89f19a042.tar.gz hdf5-0b3fbf90899f97a7817779c106e171b89f19a042.tar.bz2 |
[svn-r17462] Description:
Bring r17461 from trunk to 1.8 branch:
Fix a few more problems when the user block is not aligned properly.
Tested on:
FreeBSD/32 6.3 (duty) in debug mode
(h5committested on trunk)
Diffstat (limited to 'src/H5FD.c')
-rw-r--r-- | src/H5FD.c | 30 |
1 files changed, 30 insertions, 0 deletions
@@ -2088,3 +2088,33 @@ done: FUNC_LEAVE_NOAPI(ret_value) } /* end H5FD_set_base_addr() */ + +/*-------------------------------------------------------------------------- + * Function: H5FD_get_base_addr + * + * Purpose: Get the base address for the file + * + * Return: Success: The absolute base address of the file + * Failure: The undefined address (HADDR_UNDEF) + * + * Programmer: Quincey Koziol + * Sept. 10, 2009 + * + *-------------------------------------------------------------------------- + */ +haddr_t +H5FD_get_base_addr(const H5FD_t *file) +{ + haddr_t ret_value; /* Return value */ + + FUNC_ENTER_NOAPI(H5FD_get_base_addr, HADDR_UNDEF) + + HDassert(file); + + /* Return the file's base address */ + ret_value = file->base_addr; + +done: + FUNC_LEAVE_NOAPI(ret_value) +} /* end H5FD_get_base_addr() */ + |