diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2003-10-07 15:27:19 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2003-10-07 15:27:19 (GMT) |
commit | 58c03f79fd15001ee30b36d0afba14fc8dcaf687 (patch) | |
tree | 6fad648f6c3aec38f44f2d4a9c142c288f363e0a /src/H5G.c | |
parent | f766b32d07fae4562e95b9166255c35c8f3e467a (diff) | |
download | hdf5-58c03f79fd15001ee30b36d0afba14fc8dcaf687.zip hdf5-58c03f79fd15001ee30b36d0afba14fc8dcaf687.tar.gz hdf5-58c03f79fd15001ee30b36d0afba14fc8dcaf687.tar.bz2 |
[svn-r7561] Purpose:
Feature add
Description:
Add a few new fields to the H5G_stat_t structure, to allow more information
about the object header to be retrieved.
Platforms tested:
FreeBSD 4.9 (sleipnir)
h5committest
Diffstat (limited to 'src/H5G.c')
-rw-r--r-- | src/H5G.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -2539,7 +2539,6 @@ H5G_get_objinfo (H5G_entry_t *loc, const char *name, hbool_t follow_link, /* Some other type of object */ statbuf->objno = obj_ent.header; statbuf->nlink = H5O_link (&obj_ent, 0, dxpl_id); - statbuf->type = H5G_LINK; if (NULL==H5O_read(&obj_ent, H5O_MTIME_ID, 0, &(statbuf->mtime), dxpl_id)) { H5E_clear(NULL); if (NULL==H5O_read(&obj_ent, H5O_MTIME_NEW_ID, 0, &(statbuf->mtime), dxpl_id)) { @@ -2549,6 +2548,10 @@ H5G_get_objinfo (H5G_entry_t *loc, const char *name, hbool_t follow_link, } statbuf->type = H5G_get_type(&obj_ent, dxpl_id); H5E_clear(NULL); /*clear errors resulting from checking type*/ + + /* Get object header information */ + if(H5O_get_info(&obj_ent, &(statbuf->ohdr), dxpl_id)<0) + HGOTO_ERROR(H5E_SYM, H5E_CANTGET, FAIL, "unable to get object header information") } /* Common code to retrieve the file's fileno */ |