diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2007-02-06 12:18:05 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2007-02-06 12:18:05 (GMT) |
commit | 571523db1ffab60b505a0f66d3f7c25f4d1752d7 (patch) | |
tree | c3da7f1799eb8048885c4ce2b5372ba5fd3c183a /src/H5O.c | |
parent | 4e57d80f2e085a80dfe5f55a39c15e1edc4366f9 (diff) | |
download | hdf5-571523db1ffab60b505a0f66d3f7c25f4d1752d7.zip hdf5-571523db1ffab60b505a0f66d3f7c25f4d1752d7.tar.gz hdf5-571523db1ffab60b505a0f66d3f7c25f4d1752d7.tar.bz2 |
[svn-r13243] Description:
Add API routines for tracking & indexing the creation order on
attributes.
Tested on:
Mac OS X/32 10.4.8 (amazon)
FreeBSD/32 6.2 (duty)
Diffstat (limited to 'src/H5O.c')
-rw-r--r-- | src/H5O.c | 11 |
1 files changed, 6 insertions, 5 deletions
@@ -689,6 +689,10 @@ H5O_create(H5F_t *f, hid_t dxpl_id, size_t size_hint, hid_t ocpl_id, if(H5P_get(oc_plist, H5O_CRT_ATTR_MIN_DENSE_NAME, &oh->min_dense) < 0) HGOTO_ERROR(H5E_PLIST, H5E_CANTGET, FAIL, "can't get min. # of dense attributes") + /* Get object header flags */ + if(H5P_get(oc_plist, H5O_CRT_OHDR_FLAGS_NAME, &oh->flags) < 0) + HGOTO_ERROR(H5E_PLIST, H5E_CANTGET, FAIL, "can't get object header flags") + /* Set starting values for attribute info */ oh->attr_fheap_addr = HADDR_UNDEF; oh->name_bt2_addr = HADDR_UNDEF; @@ -1080,11 +1084,8 @@ done: *------------------------------------------------------------------------- */ herr_t -H5O_touch_oh(H5F_t *f, - hid_t dxpl_id, - H5O_t *oh, - hbool_t force, - unsigned * oh_flags_ptr) +H5O_touch_oh(H5F_t *f, hid_t dxpl_id, H5O_t *oh, hbool_t force, + unsigned * oh_flags_ptr) { time_t now; /* Current time */ herr_t ret_value = SUCCEED; /* Return value */ |