summaryrefslogtreecommitdiffstats
path: root/src/H5Fint.c
diff options
context:
space:
mode:
authorDana Robinson <derobins@hdfgroup.org>2019-06-11 16:04:23 (GMT)
committerDana Robinson <derobins@hdfgroup.org>2019-06-11 16:04:23 (GMT)
commit2bd041f8787562928ba8a060843cdeeb386bebf0 (patch)
treeb0dd4bec3cae19df2862cae18d549390629fa63e /src/H5Fint.c
parent48b0ff7724331737140ffae194cb2e741f0b668d (diff)
downloadhdf5-2bd041f8787562928ba8a060843cdeeb386bebf0.zip
hdf5-2bd041f8787562928ba8a060843cdeeb386bebf0.tar.gz
hdf5-2bd041f8787562928ba8a060843cdeeb386bebf0.tar.bz2
Added H5Fdelete call and VOL support (but no VFD/native implementation).
Diffstat (limited to 'src/H5Fint.c')
-rw-r--r--src/H5Fint.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/H5Fint.c b/src/H5Fint.c
index 2e8771c..ee9afed 100644
--- a/src/H5Fint.c
+++ b/src/H5Fint.c
@@ -863,7 +863,7 @@ H5F__is_hdf5(const char *name, hid_t fapl_id)
* should work with arbitrary VFDs, unlike H5Fis_hdf5().
*/
if(NULL == (file = H5FD_open(name, H5F_ACC_RDONLY, fapl_id, HADDR_UNDEF)))
- HGOTO_ERROR(H5E_IO, H5E_CANTINIT, FAIL, "unable to open file")
+ HGOTO_ERROR(H5E_FILE, H5E_CANTINIT, FAIL, "unable to open file")
/* The file is an hdf5 file if the hdf5 file signature can be found */
if(H5FD_locate_signature(file, &sig_addr) < 0)
@@ -874,7 +874,7 @@ done:
/* Close the file */
if(file)
if(H5FD_close(file) < 0 && TRUE == ret_value)
- HDONE_ERROR(H5E_IO, H5E_CANTCLOSEFILE, FAIL, "unable to close file")
+ HDONE_ERROR(H5E_FILE, H5E_CANTCLOSEFILE, FAIL, "unable to close file")
FUNC_LEAVE_NOAPI(ret_value)
} /* end H5F__is_hdf5() */