summaryrefslogtreecommitdiffstats
path: root/src/H5FDsubfiling/H5subfiling_common.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/H5FDsubfiling/H5subfiling_common.c')
-rw-r--r--src/H5FDsubfiling/H5subfiling_common.c46
1 files changed, 23 insertions, 23 deletions
diff --git a/src/H5FDsubfiling/H5subfiling_common.c b/src/H5FDsubfiling/H5subfiling_common.c
index 980a1b3..25e80fb 100644
--- a/src/H5FDsubfiling/H5subfiling_common.c
+++ b/src/H5FDsubfiling/H5subfiling_common.c
@@ -50,7 +50,7 @@ char H5subfiling_mpi_error_str[MPI_MAX_ERROR_STRING];
int H5subfiling_mpi_error_str_len;
static subfiling_context_t *sf_context_cache = NULL;
-static sf_topology_t * sf_topology_cache = NULL;
+static sf_topology_t *sf_topology_cache = NULL;
static size_t sf_context_cache_limit = 16;
static size_t sf_topology_cache_limit = 4;
@@ -105,7 +105,7 @@ static int get_next_fid_map_index(void);
static void clear_fid_map_entry(uint64_t sf_fid, int64_t sf_context_id);
static int compare_hostid(const void *h1, const void *h2);
static herr_t get_ioc_selection_criteria_from_env(ioc_selection_t *ioc_selection_type,
- char ** ioc_sel_info_str);
+ char **ioc_sel_info_str);
static int count_nodes(sf_topology_t *info, MPI_Comm comm);
static herr_t gather_topology_info(sf_topology_t *info, MPI_Comm comm);
static int identify_ioc_ranks(sf_topology_t *info, int node_count, int iocs_per_node);
@@ -549,7 +549,7 @@ static inline void
assign_ioc_ranks(sf_topology_t *app_topology, int ioc_count, int rank_multiple)
{
app_layout_t *app_layout = NULL;
- int * io_concentrators = NULL;
+ int *io_concentrators = NULL;
HDassert(app_topology);
HDassert(app_topology->app_layout);
@@ -667,7 +667,7 @@ H5_get_subfiling_object(int64_t object_id)
/* Make more space in context cache if needed */
if ((size_t)obj_index == sf_context_cache_limit) {
size_t old_num_entries;
- void * tmp_realloc;
+ void *tmp_realloc;
old_num_entries = sf_context_cache_limit;
@@ -1095,7 +1095,7 @@ static herr_t
init_subfiling(ioc_selection_t ioc_selection_type, MPI_Comm comm, int64_t *context_id_out)
{
subfiling_context_t *new_context = NULL;
- sf_topology_t * app_topology = NULL;
+ sf_topology_t *app_topology = NULL;
int64_t context_id = -1;
int file_index = -1;
herr_t ret_value = SUCCEED;
@@ -1210,10 +1210,10 @@ static herr_t
init_app_topology(ioc_selection_t ioc_selection_type, MPI_Comm comm, sf_topology_t **app_topology_out)
{
sf_topology_t *app_topology = NULL;
- app_layout_t * app_layout = sf_app_layout;
- char * env_value = NULL;
- char * ioc_sel_str = NULL;
- int * io_concentrators = NULL;
+ app_layout_t *app_layout = sf_app_layout;
+ char *env_value = NULL;
+ char *ioc_sel_str = NULL;
+ int *io_concentrators = NULL;
long ioc_select_val = -1;
long iocs_per_node = 1;
int ioc_count = 0;
@@ -1511,7 +1511,7 @@ done:
static herr_t
init_subfiling_context(subfiling_context_t *sf_context, sf_topology_t *app_topology, MPI_Comm file_comm)
{
- char * env_value = NULL;
+ char *env_value = NULL;
int comm_rank;
int mpi_code;
herr_t ret_value = SUCCEED;
@@ -1959,9 +1959,9 @@ ioc_open_file(sf_work_request_t *msg, int file_acc_flags)
int64_t file_context_id;
hbool_t mutex_locked = FALSE;
mode_t mode = S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH;
- char * filepath = NULL;
- char * subfile_dir = NULL;
- char * base = NULL;
+ char *filepath = NULL;
+ char *subfile_dir = NULL;
+ char *base = NULL;
int fd = -1;
herr_t ret_value = SUCCEED;
@@ -2073,11 +2073,11 @@ static herr_t
generate_subfile_name(subfiling_context_t *sf_context, int file_acc_flags, char *filename_out,
size_t filename_out_len, char **filename_basename_out, char **subfile_dir_out)
{
- FILE * config_file = NULL;
- char * config_buf = NULL;
- char * subfile_dir = NULL;
- char * prefix = NULL;
- char * base = NULL;
+ FILE *config_file = NULL;
+ char *config_buf = NULL;
+ char *subfile_dir = NULL;
+ char *prefix = NULL;
+ char *base = NULL;
int n_io_concentrators;
int num_digits;
herr_t ret_value = SUCCEED;
@@ -2323,9 +2323,9 @@ create_config_file(subfiling_context_t *sf_context, const char *base_filename, c
hbool_t truncate_if_exists)
{
hbool_t config_file_exists = FALSE;
- FILE * config_file = NULL;
- char * config_filename = NULL;
- char * line_buf = NULL;
+ FILE *config_file = NULL;
+ char *config_filename = NULL;
+ char *line_buf = NULL;
int ret = 0;
herr_t ret_value = SUCCEED;
@@ -2505,8 +2505,8 @@ open_config_file(subfiling_context_t *sf_context, const char *base_filename, con
const char *mode, FILE **config_file_out)
{
hbool_t config_file_exists = FALSE;
- FILE * config_file = NULL;
- char * config_filename = NULL;
+ FILE *config_file = NULL;
+ char *config_filename = NULL;
int ret = 0;
herr_t ret_value = SUCCEED;