summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAlbert Cheng <acheng@hdfgroup.org>2006-08-17 04:05:35 (GMT)
committerAlbert Cheng <acheng@hdfgroup.org>2006-08-17 04:05:35 (GMT)
commitfc6b17b64085aace29f94793dda820f5edfb3bea (patch)
tree846829f2cb58e8e3e5171495e2fe8a5473a80346 /src
parenta0591aaf96dfd0a1eb37d6b47f17ab92f7ff6be3 (diff)
downloadhdf5-fc6b17b64085aace29f94793dda820f5edfb3bea.zip
hdf5-fc6b17b64085aace29f94793dda820f5edfb3bea.tar.gz
hdf5-fc6b17b64085aace29f94793dda820f5edfb3bea.tar.bz2
[svn-r12582] Purpose:
upgrade. Description: Changed the error report of read and write to HSYS_GOTO_ERROR to report system error messages. Platforms tested: heping, osage, copper.
Diffstat (limited to 'src')
-rw-r--r--src/H5FDsec2.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/H5FDsec2.c b/src/H5FDsec2.c
index 943f615..3a5e9eb 100644
--- a/src/H5FDsec2.c
+++ b/src/H5FDsec2.c
@@ -734,7 +734,7 @@ H5FD_sec2_read(H5FD_t *_file, H5FD_mem_t UNUSED type, hid_t UNUSED dxpl_id, hadd
nbytes = HDread(file->fd, buf, size);
} while (-1==nbytes && EINTR==errno);
if (-1==nbytes) /* error */
- HGOTO_ERROR(H5E_IO, H5E_READERROR, FAIL, "file read failed")
+ HSYS_GOTO_ERROR(H5E_IO, H5E_READERROR, FAIL, "file read failed")
if (0==nbytes) {
/* end of file but not end of format address space */
HDmemset(buf, 0, size);
@@ -818,7 +818,7 @@ H5FD_sec2_write(H5FD_t *_file, H5FD_mem_t UNUSED type, hid_t UNUSED dxpl_id, had
nbytes = HDwrite(file->fd, buf, size);
} while (-1==nbytes && EINTR==errno);
if (-1==nbytes) /* error */
- HGOTO_ERROR(H5E_IO, H5E_WRITEERROR, FAIL, "file write failed")
+ HSYS_GOTO_ERROR(H5E_IO, H5E_WRITEERROR, FAIL, "file write failed")
assert(nbytes>0);
assert((size_t)nbytes<=size);
H5_CHECK_OVERFLOW(nbytes,ssize_t,size_t);