summaryrefslogtreecommitdiffstats
path: root/src/H5Ipublic.h
diff options
context:
space:
mode:
authorRobb Matzke <matzke@llnl.gov>2002-12-04 00:43:28 (GMT)
committerRobb Matzke <matzke@llnl.gov>2002-12-04 00:43:28 (GMT)
commit72075e7f11da33016acf66b9b7206fbc168dbad8 (patch)
tree48379c3ea0d31d026c2e69e70213f517866f19ca /src/H5Ipublic.h
parentbfe92300fb50413b363835fdc4a4e6a8bd5ff8ee (diff)
downloadhdf5-72075e7f11da33016acf66b9b7206fbc168dbad8.zip
hdf5-72075e7f11da33016acf66b9b7206fbc168dbad8.tar.gz
hdf5-72075e7f11da33016acf66b9b7206fbc168dbad8.tar.bz2
[svn-r6149] ./hdf5-devel/src/H5Ipublic.h
Purpose: Feature; Optimization Description: Clients pass `-1' or make their own #define for HDF5 functions that take an optional object ID. Blue's GPFS is slow for typical SAF restart dumps. Solution: Added a #define for H5I_INVALID_HID Added GPFS-specific code to H5FDmpiposix.c that tells mmfsd to forego byte range token prefetching. This code can be compiled into the library by defining USE_GPFS_HINTS. The plan is to either generalize this so it's detected during configure and turned on/off at runtime, or to move it up into DSL/SAF with the new HDF5 functions to that return the low-level file handle. Platforms tested: SuSE Linux (arborea), gcc and mpich-1.2.4 SunOS (baldric), gcc 2002-09-05 12:24:28 Robb Matzke <matzke@arborea.spizella.com> *: Added #define for H5I_INVALID_HID. An invalid object handle is actually any integer that isn't currently in use as a handle, and non-positive integers are never used as a handle. The #define is -1, and is mostly so that HDF5 users can pass a symbolic name instead of a negative number to functions that take optional object ID arguments.
Diffstat (limited to 'src/H5Ipublic.h')
-rw-r--r--src/H5Ipublic.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/H5Ipublic.h b/src/H5Ipublic.h
index 07ccbaa..b03f2ce 100644
--- a/src/H5Ipublic.h
+++ b/src/H5Ipublic.h
@@ -47,6 +47,9 @@ typedef enum {
/* Type of atoms to return to users */
typedef int hid_t;
+/* An invalid object ID. This is also negative for error return. */
+#define H5I_INVALID_HID (-1)
+
#ifdef __cplusplus
extern "C" {
#endif