From 134a692a8365ab5f196155298b6b601889c80a32 Mon Sep 17 00:00:00 2001 From: Quincey Koziol Date: Tue, 7 Oct 2003 10:27:19 -0500 Subject: [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 --- doc/html/RM_H5G.html | 34 +++++++++++++++++++++++++++++++++- 1 file changed, 33 insertions(+), 1 deletion(-) diff --git a/doc/html/RM_H5G.html b/doc/html/RM_H5G.html index 88fa534..4ec64bf 100644 --- a/doc/html/RM_H5G.html +++ b/doc/html/RM_H5G.html @@ -468,7 +468,8 @@ create or access function. The existence of an object can be tested by calling this function with a null statbuf.

- H5Gget_objinfo fills in the following data structure: + H5Gget_objinfo fills in the following data structure + (defined in H5Gpublic.h):

                   typedef struct H5G_stat_t {
                       unsigned long fileno[2];
@@ -477,8 +478,20 @@ create or access function.
                       int type;
                       time_t mtime; 
                       size_t linklen;
+                      H5O_stat_t ohdr;
                   } H5G_stat_t
         
+ + where H5O_stat_t (defined in H5Opublic.h) is: + +
+                  typedef struct H5O_stat_t {
+                      hsize_t size;
+                      hsize_t free;
+                      unsigned nmesgs;
+                      unsigned nchunks;
+                  } H5O_stat_t
+        
The fileno and objno fields contain four values which uniquely itentify an object among those HDF5 files which are open: if all four values are the same @@ -497,17 +510,36 @@ create or access function. the object or zero when information is being returned about a symbolic link (symbolic links do not have hard links but all other objects always have at least one). +

The type field contains the type of the object, one of H5G_GROUP, H5G_DATASET, H5G_LINK, or H5G_TYPE. +

The mtime field contains the modification time. +

If information is being returned about a symbolic link then linklen will be the length of the link value (the name of the pointed-to object with the null terminator); otherwise linklen will be zero. +

+ The fields in the H5O_stat_t struct contain information + about the object header for the object queried: +

+ +

Other fields may be added to this structure in the future.

Note:
Some systems will be able to record the time accurately but -- cgit v0.12