diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2008-04-08 16:09:17 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2008-04-08 16:09:17 (GMT) |
commit | de68c607843fbfa55f94a661cf8cf58ad09adc0c (patch) | |
tree | 8185120942d326db8f36ea6ce964f6974ca57659 /src/H5F.c | |
parent | b7f6a65f7458ba351a55206abcbdc89f3c721f4b (diff) | |
download | hdf5-de68c607843fbfa55f94a661cf8cf58ad09adc0c.zip hdf5-de68c607843fbfa55f94a661cf8cf58ad09adc0c.tar.gz hdf5-de68c607843fbfa55f94a661cf8cf58ad09adc0c.tar.bz2 |
[svn-r14811] Description:
Add "_META" suffix to FUNC_ENTER/FUNC_LEAVE API routines that can modify
metadata in the file. This will give us a single place to change to recording
the beginning & ending of transactions.
Tested on:
FreeBSD/32 6.2 (duty)
Too simple to require h5committest
Diffstat (limited to 'src/H5F.c')
-rw-r--r-- | src/H5F.c | 20 |
1 files changed, 10 insertions, 10 deletions
@@ -1432,7 +1432,7 @@ H5Fcreate(const char *filename, unsigned flags, hid_t fcpl_id, hid_t fapl_id) H5F_t *new_file = NULL; /*file struct for new file */ hid_t ret_value; /*return value */ - FUNC_ENTER_API(H5Fcreate, FAIL) + FUNC_ENTER_API_META(H5Fcreate, FAIL) H5TRACE4("i", "*sIuii", filename, flags, fcpl_id, fapl_id); /* Check/fix arguments */ @@ -1484,7 +1484,7 @@ done: if(H5F_close(new_file) < 0) HDONE_ERROR(H5E_FILE, H5E_CANTCLOSEFILE, FAIL, "problems closing file") - FUNC_LEAVE_API(ret_value) + FUNC_LEAVE_API_META(ret_value) } /* end H5Fcreate() */ @@ -1534,7 +1534,7 @@ H5Fopen(const char *filename, unsigned flags, hid_t fapl_id) H5F_t *new_file = NULL; /*file struct for new file */ hid_t ret_value; /*return value */ - FUNC_ENTER_API(H5Fopen, FAIL) + FUNC_ENTER_API_META(H5Fopen, FAIL) H5TRACE3("i", "*sIui", filename, flags, fapl_id); /* Check/fix arguments. */ @@ -1564,7 +1564,7 @@ done: if(ret_value < 0 && new_file && H5F_try_close(new_file) < 0) HDONE_ERROR(H5E_FILE, H5E_CANTCLOSEFILE, FAIL, "problems closing file") - FUNC_LEAVE_API(ret_value) + FUNC_LEAVE_API_META(ret_value) } /* end H5Fopen() */ @@ -1601,7 +1601,7 @@ H5Fflush(hid_t object_id, H5F_scope_t scope) H5O_loc_t *oloc = NULL; herr_t ret_value=SUCCEED; /* Return value */ - FUNC_ENTER_API(H5Fflush, FAIL) + FUNC_ENTER_API_META(H5Fflush, FAIL) H5TRACE2("e", "iFs", object_id, scope); switch(H5I_get_type(object_id)) { @@ -1651,7 +1651,7 @@ H5Fflush(hid_t object_id, H5F_scope_t scope) HGOTO_ERROR(H5E_FILE, H5E_CANTINIT, FAIL, "flush failed") done: - FUNC_LEAVE_API(ret_value) + FUNC_LEAVE_API_META(ret_value) } /* end H5Fflush() */ @@ -2011,7 +2011,7 @@ H5Fclose(hid_t file_id) { herr_t ret_value = SUCCEED; - FUNC_ENTER_API(H5Fclose, FAIL) + FUNC_ENTER_API_META(H5Fclose, FAIL) H5TRACE1("e", "i", file_id); /* Check/fix arguments. */ @@ -2026,7 +2026,7 @@ H5Fclose(hid_t file_id) HGOTO_ERROR(H5E_ATOM, H5E_CANTCLOSEFILE, FAIL, "decrementing file ID failed") done: - FUNC_LEAVE_API(ret_value) + FUNC_LEAVE_API_META(ret_value) } /* end H5Fclose() */ @@ -2059,7 +2059,7 @@ H5Freopen(hid_t file_id) H5F_t *new_file = NULL; hid_t ret_value; - FUNC_ENTER_API(H5Freopen, FAIL) + FUNC_ENTER_API_META(H5Freopen, FAIL) H5TRACE1("i", "i", file_id); /* Check arguments */ @@ -2087,7 +2087,7 @@ done: if(H5F_dest(new_file, H5AC_dxpl_id) < 0) HDONE_ERROR(H5E_FILE, H5E_CANTCLOSEFILE, FAIL, "can't close file") - FUNC_LEAVE_API(ret_value) + FUNC_LEAVE_API_META(ret_value) } /* end H5Freopen() */ |