summaryrefslogtreecommitdiffstats
path: root/src/H5Fquery.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/H5Fquery.c')
-rw-r--r--src/H5Fquery.c99
1 files changed, 18 insertions, 81 deletions
diff --git a/src/H5Fquery.c b/src/H5Fquery.c
index 32587bf..580c5fa 100644
--- a/src/H5Fquery.c
+++ b/src/H5Fquery.c
@@ -26,54 +26,44 @@
/* Module Setup */
/****************/
-#include "H5Fmodule.h" /* This source code file is part of the H5F module */
-
+#include "H5Fmodule.h" /* This source code file is part of the H5F module */
/***********/
/* Headers */
/***********/
-#include "H5private.h" /* Generic Functions */
-#include "H5Eprivate.h" /* Error handling */
-#include "H5Fpkg.h" /* File access */
-#include "H5FDprivate.h" /* File drivers */
-
+#include "H5private.h" /* Generic Functions */
+#include "H5Eprivate.h" /* Error handling */
+#include "H5Fpkg.h" /* File access */
+#include "H5FDprivate.h" /* File drivers */
/****************/
/* Local Macros */
/****************/
-
/******************/
/* Local Typedefs */
/******************/
-
/********************/
/* Package Typedefs */
/********************/
-
/********************/
/* Local Prototypes */
/********************/
-
/*********************/
/* Package Variables */
/*********************/
-
/*****************************/
/* Library Private Variables */
/*****************************/
-
/*******************/
/* Local Variables */
/*******************/
-
-
/*-------------------------------------------------------------------------
* Function: H5F_shared_get_intent
*
@@ -95,7 +85,6 @@ H5F_shared_get_intent(const H5F_shared_t *f_sh)
FUNC_LEAVE_NOAPI(f_sh->flags)
} /* end H5F_shared_get_intent() */
-
/*-------------------------------------------------------------------------
* Function: H5F_get_intent
*
@@ -117,7 +106,6 @@ H5F_get_intent(const H5F_t *f)
FUNC_LEAVE_NOAPI(f->shared->flags)
} /* end H5F_get_intent() */
-
/*-------------------------------------------------------------------------
* Function: H5F_get_low_bound
*
@@ -142,7 +130,6 @@ H5F_get_low_bound(const H5F_t *f)
FUNC_LEAVE_NOAPI(f->shared->low_bound)
} /* end H5F_get_low_bound() */
-
/*-------------------------------------------------------------------------
* Function: H5F_get_high_bound
*
@@ -167,7 +154,6 @@ H5F_get_high_bound(const H5F_t *f)
FUNC_LEAVE_NOAPI(f->shared->high_bound)
} /* end H5F_get_high_bound() */
-
/*-------------------------------------------------------------------------
* Function: H5F_get_open_name
*
@@ -189,7 +175,6 @@ H5F_get_open_name(const H5F_t *f)
FUNC_LEAVE_NOAPI(f->open_name)
} /* end H5F_get_open_name() */
-
/*-------------------------------------------------------------------------
* Function: H5F_get_actual_name
*
@@ -211,13 +196,12 @@ H5F_get_actual_name(const H5F_t *f)
FUNC_LEAVE_NOAPI(f->actual_name)
} /* end H5F_get_actual_name() */
-
/*-------------------------------------------------------------------------
* Function: H5F_get_extpath
*
* Purpose: Retrieve the file's 'extpath' flags
- * This is used by H5L_extern_traverse() and H5D_build_file_prefix() to retrieve the main file's location
- * when searching the target file.
+ * This is used by H5L_extern_traverse() and H5D_build_file_prefix() to retrieve the main file's
+ *location when searching the target file.
*
* Return: 'extpath' on success/abort on failure (shouldn't fail)
*-------------------------------------------------------------------------
@@ -234,7 +218,6 @@ H5F_get_extpath(const H5F_t *f)
FUNC_LEAVE_NOAPI(f->extpath)
} /* end H5F_get_extpath() */
-
/*-------------------------------------------------------------------------
* Function: H5F_get_shared
*
@@ -254,7 +237,6 @@ H5F_get_shared(const H5F_t *f)
FUNC_LEAVE_NOAPI(f->shared)
} /* end H5F_get_shared() */
-
/*-------------------------------------------------------------------------
* Function: H5F_same_shared
*
@@ -277,7 +259,6 @@ H5F_same_shared(const H5F_t *f1, const H5F_t *f2)
FUNC_LEAVE_NOAPI(f1->shared == f2->shared)
} /* end H5F_same_shared() */
-
/*-------------------------------------------------------------------------
* Function: H5F_get_nopen_objs
*
@@ -297,7 +278,6 @@ H5F_get_nopen_objs(const H5F_t *f)
FUNC_LEAVE_NOAPI(f->nopen_objs)
} /* end H5F_get_nopen_objs() */
-
/*-------------------------------------------------------------------------
* Function: H5F_get_file_id
*
@@ -317,7 +297,6 @@ H5F_get_file_id(const H5F_t *f)
FUNC_LEAVE_NOAPI(f->file_id)
} /* end H5F_get_file_id() */
-
/*-------------------------------------------------------------------------
* Function: H5F_get_parent
*
@@ -337,7 +316,6 @@ H5F_get_parent(const H5F_t *f)
FUNC_LEAVE_NOAPI(f->parent)
} /* end H5F_get_parent() */
-
/*-------------------------------------------------------------------------
* Function: H5F_get_nmounts
*
@@ -357,7 +335,6 @@ H5F_get_nmounts(const H5F_t *f)
FUNC_LEAVE_NOAPI(f->nmounts)
} /* end H5F_get_nmounts() */
-
/*-------------------------------------------------------------------------
* Function: H5F_get_read_attempts
*
@@ -377,7 +354,6 @@ H5F_get_read_attempts(const H5F_t *f)
FUNC_LEAVE_NOAPI(f->shared->read_attempts)
} /* end H5F_get_read_attempts() */
-
/*-------------------------------------------------------------------------
* Function: H5F_get_fcpl
*
@@ -399,7 +375,6 @@ H5F_get_fcpl(const H5F_t *f)
FUNC_LEAVE_NOAPI(f->shared->fcpl_id)
} /* end H5F_get_fcpl() */
-
/*-------------------------------------------------------------------------
* Function: H5F_sizeof_addr
*
@@ -422,7 +397,6 @@ H5F_sizeof_addr(const H5F_t *f)
FUNC_LEAVE_NOAPI(f->shared->sizeof_addr)
} /* end H5F_sizeof_addr() */
-
/*-------------------------------------------------------------------------
* Function: H5F_sizeof_size
*
@@ -445,7 +419,6 @@ H5F_sizeof_size(const H5F_t *f)
FUNC_LEAVE_NOAPI(f->shared->sizeof_size)
} /* H5F_sizeof_size() */
-
/*-------------------------------------------------------------------------
* Function: H5F_get_sohm_addr
*
@@ -466,7 +439,6 @@ H5F_get_sohm_addr(const H5F_t *f)
FUNC_LEAVE_NOAPI(f->shared->sohm_addr)
} /* end H5F_get_sohm_addr() */
-
/*-------------------------------------------------------------------------
* Function: H5F_get_sohm_vers
*
@@ -487,7 +459,6 @@ H5F_get_sohm_vers(const H5F_t *f)
FUNC_LEAVE_NOAPI(f->shared->sohm_vers)
} /* end H5F_get_sohm_vers() */
-
/*-------------------------------------------------------------------------
* Function: H5F_get_sohm_nindexes
*
@@ -508,7 +479,6 @@ H5F_get_sohm_nindexes(const H5F_t *f)
FUNC_LEAVE_NOAPI(f->shared->sohm_nindexes)
} /* end H5F_get_sohm_nindexes() */
-
/*-------------------------------------------------------------------------
* Function: H5F_sym_leaf_k
*
@@ -534,7 +504,6 @@ H5F_sym_leaf_k(const H5F_t *f)
FUNC_LEAVE_NOAPI(f->shared->sblock->sym_leaf_k)
} /* end H5F_sym_leaf_k() */
-
/*-------------------------------------------------------------------------
* Function: H5F_get_min_dset_ohdr
*
@@ -553,7 +522,6 @@ H5F_get_min_dset_ohdr(const H5F_t *f)
FUNC_LEAVE_NOAPI(f->shared->crt_dset_min_ohdr_flag)
} /* end H5F_get_min_dset_ohdr */
-
/*-------------------------------------------------------------------------
* Function: H5F_Kvalue
*
@@ -580,7 +548,6 @@ H5F_Kvalue(const H5F_t *f, const H5B_class_t *type)
FUNC_LEAVE_NOAPI(f->shared->sblock->btree_k[type->id])
} /* end H5F_Kvalue() */
-
/*-------------------------------------------------------------------------
* Function: H5F_get_nrefs
*
@@ -601,7 +568,6 @@ H5F_get_nrefs(const H5F_t *f)
FUNC_LEAVE_NOAPI(f->shared->nrefs)
} /* end H5F_get_nrefs() */
-
/*-------------------------------------------------------------------------
* Function: H5F_rdcc_nslots
*
@@ -626,7 +592,6 @@ H5F_rdcc_nslots(const H5F_t *f)
FUNC_LEAVE_NOAPI(f->shared->rdcc_nslots)
} /* end H5F_rdcc_nelmts() */
-
/*-------------------------------------------------------------------------
* Function: H5F_rdcc_nbytes
*
@@ -651,7 +616,6 @@ H5F_rdcc_nbytes(const H5F_t *f)
FUNC_LEAVE_NOAPI(f->shared->rdcc_nbytes)
} /* end H5F_rdcc_nbytes() */
-
/*-------------------------------------------------------------------------
* Function: H5F_rdcc_w0
*
@@ -676,7 +640,6 @@ H5F_rdcc_w0(const H5F_t *f)
FUNC_LEAVE_NOAPI(f->shared->rdcc_w0)
} /* end H5F_rdcc_w0() */
-
/*-------------------------------------------------------------------------
* Function: H5F_get_base_addr
*
@@ -700,7 +663,6 @@ H5F_get_base_addr(const H5F_t *f)
FUNC_LEAVE_NOAPI(f->shared->sblock->base_addr)
} /* end H5F_get_base_addr() */
-
/*-------------------------------------------------------------------------
* Function: H5F_grp_btree_shared
*
@@ -725,7 +687,6 @@ H5F_grp_btree_shared(const H5F_t *f)
FUNC_LEAVE_NOAPI(f->shared->grp_btree_shared)
} /* end H5F_grp_btree_shared() */
-
/*-------------------------------------------------------------------------
* Function: H5F_sieve_buf_size
*
@@ -750,7 +711,6 @@ H5F_sieve_buf_size(const H5F_t *f)
FUNC_LEAVE_NOAPI(f->shared->sieve_buf_size)
} /* end H5F_sieve_buf_size() */
-
/*-------------------------------------------------------------------------
* Function: H5F_gc_ref
*
@@ -778,7 +738,6 @@ H5F_gc_ref(const H5F_t *f)
FUNC_LEAVE_NOAPI(f->shared->gc_ref)
} /* end H5F_gc_ref() */
-
/*-------------------------------------------------------------------------
* Function: H5F_get_fc_degree
*
@@ -800,7 +759,6 @@ H5F_get_fc_degree(const H5F_t *f)
FUNC_LEAVE_NOAPI(f->shared->fc_degree)
} /* end H5F_get_fc_degree() */
-
/*-------------------------------------------------------------------------
* Function: H5F_get_evict_on_close
*
@@ -824,7 +782,6 @@ H5F_get_evict_on_close(const H5F_t *f)
FUNC_LEAVE_NOAPI(f->shared->evict_on_close)
} /* end H5F_get_evict_on_close() */
-
/*-------------------------------------------------------------------------
* Function: H5F_store_msg_crt_idx
*
@@ -846,7 +803,6 @@ H5F_store_msg_crt_idx(const H5F_t *f)
FUNC_LEAVE_NOAPI(f->shared->store_msg_crt_idx)
} /* end H5F_store_msg_crt_idx() */
-
/*-------------------------------------------------------------------------
* Function: H5F_shared_has_feature
*
@@ -867,7 +823,6 @@ H5F_shared_has_feature(const H5F_shared_t *f_sh, unsigned feature)
FUNC_LEAVE_NOAPI((hbool_t)(f_sh->lf->feature_flags & feature))
} /* end H5F_shared_has_feature() */
-
/*-------------------------------------------------------------------------
* Function: H5F_has_feature
*
@@ -886,10 +841,9 @@ H5F_has_feature(const H5F_t *f, unsigned feature)
HDassert(f);
HDassert(f->shared);
- FUNC_LEAVE_NOAPI((hbool_t)(f->shared->lf->feature_flags&feature))
+ FUNC_LEAVE_NOAPI((hbool_t)(f->shared->lf->feature_flags & feature))
} /* end H5F_has_feature() */
-
/*-------------------------------------------------------------------------
* Function: H5F_get_driver_id
*
@@ -913,7 +867,6 @@ H5F_get_driver_id(const H5F_t *f)
FUNC_LEAVE_NOAPI(f->shared->lf->driver_id)
} /* end H5F_get_driver_id() */
-
/*-------------------------------------------------------------------------
* Function: H5F_get_fileno
*
@@ -927,7 +880,7 @@ H5F_get_driver_id(const H5F_t *f)
herr_t
H5F_get_fileno(const H5F_t *f, unsigned long *filenum)
{
- herr_t ret_value = SUCCEED;
+ herr_t ret_value = SUCCEED;
FUNC_ENTER_NOAPI(FAIL)
@@ -937,14 +890,13 @@ H5F_get_fileno(const H5F_t *f, unsigned long *filenum)
HDassert(filenum);
/* Retrieve the file's serial number */
- if(H5FD_get_fileno(f->shared->lf, filenum) < 0)
- HGOTO_ERROR(H5E_FILE, H5E_BADRANGE, FAIL, "can't retrieve fileno")
+ if (H5FD_get_fileno(f->shared->lf, filenum) < 0)
+ HGOTO_ERROR(H5E_FILE, H5E_BADRANGE, FAIL, "can't retrieve fileno")
done:
FUNC_LEAVE_NOAPI(ret_value)
} /* end H5F_get_fileno() */
-
/*-------------------------------------------------------------------------
* Function: H5F_shared_get_eoa
*
@@ -956,21 +908,20 @@ done:
haddr_t
H5F_shared_get_eoa(const H5F_shared_t *f_sh, H5FD_mem_t type)
{
- haddr_t ret_value = HADDR_UNDEF; /* Return value */
+ haddr_t ret_value = HADDR_UNDEF; /* Return value */
FUNC_ENTER_NOAPI(HADDR_UNDEF)
HDassert(f_sh);
/* Dispatch to driver */
- if(HADDR_UNDEF == (ret_value = H5FD_get_eoa(f_sh->lf, type)))
+ if (HADDR_UNDEF == (ret_value = H5FD_get_eoa(f_sh->lf, type)))
HGOTO_ERROR(H5E_VFL, H5E_CANTINIT, HADDR_UNDEF, "driver get_eoa request failed")
done:
FUNC_LEAVE_NOAPI(ret_value)
} /* end H5F_shared_get_eoa() */
-
/*-------------------------------------------------------------------------
* Function: H5F_get_eoa
*
@@ -982,7 +933,7 @@ done:
haddr_t
H5F_get_eoa(const H5F_t *f, H5FD_mem_t type)
{
- haddr_t ret_value = HADDR_UNDEF; /* Return value */
+ haddr_t ret_value = HADDR_UNDEF; /* Return value */
FUNC_ENTER_NOAPI(HADDR_UNDEF)
@@ -990,14 +941,13 @@ H5F_get_eoa(const H5F_t *f, H5FD_mem_t type)
HDassert(f->shared);
/* Dispatch to driver */
- if(HADDR_UNDEF == (ret_value = H5FD_get_eoa(f->shared->lf, type)))
+ if (HADDR_UNDEF == (ret_value = H5FD_get_eoa(f->shared->lf, type)))
HGOTO_ERROR(H5E_VFL, H5E_CANTINIT, HADDR_UNDEF, "driver get_eoa request failed")
done:
FUNC_LEAVE_NOAPI(ret_value)
} /* end H5F_get_eoa() */
-
/*-------------------------------------------------------------------------
* Function: H5F_get_vfd_handle
*
@@ -1011,7 +961,7 @@ done:
herr_t
H5F_get_vfd_handle(const H5F_t *file, hid_t fapl, void **file_handle)
{
- herr_t ret_value = SUCCEED; /* Return value */
+ herr_t ret_value = SUCCEED; /* Return value */
FUNC_ENTER_NOAPI(FAIL)
@@ -1020,14 +970,13 @@ H5F_get_vfd_handle(const H5F_t *file, hid_t fapl, void **file_handle)
HDassert(file_handle);
/* Get the VFD handle */
- if(H5FD_get_vfd_handle(file->shared->lf, fapl, file_handle) < 0)
+ if (H5FD_get_vfd_handle(file->shared->lf, fapl, file_handle) < 0)
HGOTO_ERROR(H5E_FILE, H5E_CANTGET, FAIL, "can't get file handle for file driver")
done:
FUNC_LEAVE_NOAPI(ret_value)
} /* end H5F_get_vfd_handle() */
-
/*-------------------------------------------------------------------------
* Function: H5F_is_tmp_addr
*
@@ -1051,7 +1000,6 @@ H5F_is_tmp_addr(const H5F_t *f, haddr_t addr)
FUNC_LEAVE_NOAPI(H5F_addr_le(f->shared->tmp_addr, addr))
} /* end H5F_is_tmp_addr() */
-
/*-------------------------------------------------------------------------
* Function: H5F_use_tmp_space
*
@@ -1076,7 +1024,7 @@ H5F_use_tmp_space(const H5F_t *f)
} /* end H5F_use_tmp_space() */
#ifdef H5_HAVE_PARALLEL
-
+
/*-------------------------------------------------------------------------
* Function: H5F_coll_md_read
*
@@ -1098,7 +1046,6 @@ H5F_coll_md_read(const H5F_t *f)
} /* end H5F_coll_md_read() */
#endif /* H5_HAVE_PARALLEL */
-
/*-------------------------------------------------------------------------
* Function: H5F_use_mdc_logging
*
@@ -1122,7 +1069,6 @@ H5F_use_mdc_logging(const H5F_t *f)
FUNC_LEAVE_NOAPI(f->shared->use_mdc_logging)
} /* end H5F_use_mdc_logging() */
-
/*-------------------------------------------------------------------------
* Function: H5F_start_mdc_log_on_access
*
@@ -1146,7 +1092,6 @@ H5F_start_mdc_log_on_access(const H5F_t *f)
FUNC_LEAVE_NOAPI(f->shared->start_mdc_log_on_access)
} /* end H5F_start_mdc_log_on_access() */
-
/*-------------------------------------------------------------------------
* Function: H5F_mdc_log_location
*
@@ -1170,7 +1115,6 @@ H5F_mdc_log_location(const H5F_t *f)
FUNC_LEAVE_NOAPI(f->shared->mdc_log_location)
} /* end H5F_mdc_log_location() */
-
/*-------------------------------------------------------------------------
* Function: H5F_get_alignment
*
@@ -1192,7 +1136,6 @@ H5F_get_alignment(const H5F_t *f)
FUNC_LEAVE_NOAPI(f->shared->alignment)
} /* end H5F_get_alignment() */
-
/*-------------------------------------------------------------------------
* Function: H5F_get_threshold
*
@@ -1214,7 +1157,6 @@ H5F_get_threshold(const H5F_t *f)
FUNC_LEAVE_NOAPI(f->shared->threshold)
} /* end H5F_get_threshold() */
-
/*-------------------------------------------------------------------------
* Function: H5F_get_pgend_meta_thres
*
@@ -1236,7 +1178,6 @@ H5F_get_pgend_meta_thres(const H5F_t *f)
FUNC_LEAVE_NOAPI(f->shared->pgend_meta_thres)
} /* end H5F_get_pgend_meta_thres() */
-
/*-------------------------------------------------------------------------
* Function: H5F_get_point_of_no_return
*
@@ -1258,7 +1199,6 @@ H5F_get_point_of_no_return(const H5F_t *f)
FUNC_LEAVE_NOAPI(f->shared->point_of_no_return)
} /* end H5F_get_point_of_no_return() */
-
/*-------------------------------------------------------------------------
* Function: H5F_get_first_alloc_dealloc
*
@@ -1280,7 +1220,6 @@ H5F_get_first_alloc_dealloc(const H5F_t *f)
FUNC_LEAVE_NOAPI(f->shared->first_alloc_dealloc)
} /* end H5F_get_first_alloc_dealloc() */
-
/*-------------------------------------------------------------------------
* Function: H5F_get_eoa_pre_fsm_fsalloc
*
@@ -1302,7 +1241,6 @@ H5F_get_eoa_pre_fsm_fsalloc(const H5F_t *f)
FUNC_LEAVE_NOAPI(f->shared->eoa_pre_fsm_fsalloc)
} /* end H5F_get_eoa_pre_fsm_fsalloc() */
-
/*-------------------------------------------------------------------------
* Function: H5F_get_file_locking
*
@@ -1322,4 +1260,3 @@ H5F_get_file_locking(const H5F_t *f)
FUNC_LEAVE_NOAPI(f->shared->use_file_locking)
} /* end H5F_get_file_locking */
-