summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLarry Knox <lrknox@hdfgroup.org>2020-10-15 23:31:57 (GMT)
committerGitHub <noreply@github.com>2020-10-15 23:31:57 (GMT)
commite6cda4817b303e2f984a31a8c20dd12f326772c5 (patch)
treee7639d271af88e8f769cb0315dcadd76731ad9b7
parent220f8972cdd6ccd7b8715a0fb17c1867fd0b35c5 (diff)
parentbb2ed7151b05b0a159a991bacc7c58d46f39d3c5 (diff)
downloadhdf5-e6cda4817b303e2f984a31a8c20dd12f326772c5.zip
hdf5-e6cda4817b303e2f984a31a8c20dd12f326772c5.tar.gz
hdf5-e6cda4817b303e2f984a31a8c20dd12f326772c5.tar.bz2
Merge pull request #37 from takluyver/description-errno
Note that the description for system errors may be used by h5py
-rw-r--r--src/H5Eprivate.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/H5Eprivate.h b/src/H5Eprivate.h
index 8f89201..f3d3b6f 100644
--- a/src/H5Eprivate.h
+++ b/src/H5Eprivate.h
@@ -114,12 +114,18 @@ typedef struct H5E_t H5E_t;
#define HSYS_DONE_ERROR(majorcode, minorcode, retcode, str) \
{ \
int myerrno = errno; \
+ /* Other projects may rely on the description format to get the errno and any changes should be \
+ * considered as an API change \
+ */ \
HDONE_ERROR(majorcode, minorcode, retcode, "%s, errno = %d, error message = '%s'", str, myerrno, \
HDstrerror(myerrno)); \
}
#define HSYS_GOTO_ERROR(majorcode, minorcode, retcode, str) \
{ \
int myerrno = errno; \
+ /* Other projects may rely on the description format to get the errno and any changes should be \
+ * considered as an API change \
+ */ \
HGOTO_ERROR(majorcode, minorcode, retcode, "%s, errno = %d, error message = '%s'", str, myerrno, \
HDstrerror(myerrno)); \
}