summaryrefslogtreecommitdiffstats
path: root/src/H5G.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2005-08-27 13:34:28 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2005-08-27 13:34:28 (GMT)
commitfefbe61aca1a42e716e900be7af5b382be5e19c1 (patch)
treedbb600c8b6555569a4d94ff69b24e72c4787693d /src/H5G.c
parent538d37a1bcc15a600c71fad0566d8480c2344ee6 (diff)
downloadhdf5-fefbe61aca1a42e716e900be7af5b382be5e19c1.zip
hdf5-fefbe61aca1a42e716e900be7af5b382be5e19c1.tar.gz
hdf5-fefbe61aca1a42e716e900be7af5b382be5e19c1.tar.bz2
[svn-r11304] Purpose:
Code cleanup (sorta) Description: Adjust H5G_stat_t to prepare for eventual "external link" information. This also puts the information for regular objects and soft links into more obviously separate places. Platforms tested: FreeBSD 4.11 (sleipnir) Linux 2.4
Diffstat (limited to 'src/H5G.c')
-rw-r--r--src/H5G.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/H5G.c b/src/H5G.c
index 0690039..360e690 100644
--- a/src/H5G.c
+++ b/src/H5G.c
@@ -2789,7 +2789,7 @@ H5G_get_objinfo (H5G_entry_t *loc, const char *name, hbool_t follow_link,
s = H5HL_offset_into(grp_ent.file, heap, obj_ent.cache.slink.lval_offset);
- statbuf->linklen = HDstrlen(s) + 1; /*count the null terminator*/
+ statbuf->u.slink.linklen = HDstrlen(s) + 1; /*count the null terminator*/
/* Release the local heap */
if (H5HL_unprotect(grp_ent.file, dxpl_id, heap, stab_mesg.heap_addr, H5AC__NO_FLAGS_SET) < 0)
@@ -2799,13 +2799,13 @@ H5G_get_objinfo (H5G_entry_t *loc, const char *name, hbool_t follow_link,
statbuf->type = H5G_LINK;
} else {
/* Some other type of object */
- statbuf->objno = obj_ent.header;
- statbuf->nlink = H5O_link (&obj_ent, 0, dxpl_id);
- if (NULL==H5O_read(&obj_ent, H5O_MTIME_ID, 0, &(statbuf->mtime), dxpl_id)) {
+ statbuf->u.obj.objno = obj_ent.header;
+ statbuf->u.obj.nlink = H5O_link (&obj_ent, 0, dxpl_id);
+ if (NULL==H5O_read(&obj_ent, H5O_MTIME_ID, 0, &(statbuf->u.obj.mtime), dxpl_id)) {
H5E_clear_stack(NULL);
- if (NULL==H5O_read(&obj_ent, H5O_MTIME_NEW_ID, 0, &(statbuf->mtime), dxpl_id)) {
+ if (NULL==H5O_read(&obj_ent, H5O_MTIME_NEW_ID, 0, &(statbuf->u.obj.mtime), dxpl_id)) {
H5E_clear_stack(NULL);
- statbuf->mtime = 0;
+ statbuf->u.obj.mtime = 0;
}
}
/* Get object type */
@@ -2813,7 +2813,7 @@ H5G_get_objinfo (H5G_entry_t *loc, const char *name, hbool_t follow_link,
H5E_clear_stack(NULL); /*clear errors resulting from checking type*/
/* Get object header information */
- if(H5O_get_info(&obj_ent, &(statbuf->ohdr), dxpl_id)<0)
+ if(H5O_get_info(&obj_ent, &(statbuf->u.obj.ohdr), dxpl_id)<0)
HGOTO_ERROR(H5E_SYM, H5E_CANTGET, FAIL, "unable to get object header information")
}
} /* end if */