summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2005-08-04 05:58:34 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2005-08-04 05:58:34 (GMT)
commita80d0f1e83031ca29574777ee3874d89cdd2dbb1 (patch)
tree42a6b8f5959ec5809578f210d3ffb24b97a27c4b
parente47d1d053efb2ca38a54d5ed21d209b3576961b2 (diff)
downloadhdf5-a80d0f1e83031ca29574777ee3874d89cdd2dbb1.zip
hdf5-a80d0f1e83031ca29574777ee3874d89cdd2dbb1.tar.gz
hdf5-a80d0f1e83031ca29574777ee3874d89cdd2dbb1.tar.bz2
[svn-r11196] Purpose:
Code tweak Description: Add in a couple of minor changes from Elena's version of pushing the system error information on the error stack. Platforms tested: FreeBSD 4.11 (sleipnir) Too minor to require h5committest
-rw-r--r--src/H5Eprivate.h2
-rw-r--r--src/H5FDsec2.c5
2 files changed, 3 insertions, 4 deletions
diff --git a/src/H5Eprivate.h b/src/H5Eprivate.h
index c5c546a..a1d8f0b 100644
--- a/src/H5Eprivate.h
+++ b/src/H5Eprivate.h
@@ -127,7 +127,7 @@ H5_DLL herr_t H5E_dump_api_stack(int is_api);
* stack.
*/
#define HSYS_ERROR(errnum){ \
- HERROR(H5E_INTERNAL, H5E_SYSERRSTR, strerror(errnum)); \
+ HERROR(H5E_INTERNAL, H5E_SYSERRSTR, HDstrerror(errnum)); \
}
#define HSYS_DONE_ERROR(majorcode, minorcode, retcode, str){ \
HSYS_ERROR(errno); \
diff --git a/src/H5FDsec2.c b/src/H5FDsec2.c
index 51da619..0aa898e 100644
--- a/src/H5FDsec2.c
+++ b/src/H5FDsec2.c
@@ -362,11 +362,10 @@ H5FD_sec2_open(const char *name, unsigned flags, hid_t UNUSED fapl_id,
if (H5F_ACC_EXCL & flags) o_flags |= O_EXCL;
/* Open the file */
- if ((fd=HDopen(name, o_flags, 0666))<0){
+ if ((fd=HDopen(name, o_flags, 0666))<0)
HSYS_GOTO_ERROR(H5E_FILE, H5E_CANTOPENFILE, NULL, "unable to open file")
- }
if (HDfstat(fd, &sb)<0)
- HGOTO_ERROR(H5E_FILE, H5E_BADFILE, NULL, "unable to fstat file")
+ HSYS_GOTO_ERROR(H5E_FILE, H5E_BADFILE, NULL, "unable to fstat file")
/* Create the new file struct */
if (NULL==(file=H5FL_CALLOC(H5FD_sec2_t)))