summaryrefslogtreecommitdiffstats
path: root/utils
diff options
context:
space:
mode:
authorDana Robinson <43805+derobins@users.noreply.github.com>2023-06-29 15:19:31 (GMT)
committerGitHub <noreply@github.com>2023-06-29 15:19:31 (GMT)
commitfd56a593b7928da636b2494b25cd7478fed78c29 (patch)
treeb815098d8bcf67f4290d3ca74132ce793503b94e /utils
parent8aef67f0ae3e037df22c5319eb2eac8b95521b19 (diff)
downloadhdf5-fd56a593b7928da636b2494b25cd7478fed78c29.zip
hdf5-fd56a593b7928da636b2494b25cd7478fed78c29.tar.gz
hdf5-fd56a593b7928da636b2494b25cd7478fed78c29.tar.bz2
Remove HD from C std lib file ops (#3206)
* HDfclose * HDferror * HDfeof * HDfflush * HDfopen * HDfread * HDfwrite
Diffstat (limited to 'utils')
-rw-r--r--utils/mirror_vfd/mirror_remote.c6
-rw-r--r--utils/tools/h5dwalk/h5dwalk.c8
2 files changed, 7 insertions, 7 deletions
diff --git a/utils/mirror_vfd/mirror_remote.c b/utils/mirror_vfd/mirror_remote.c
index aaa7515..4f87c17 100644
--- a/utils/mirror_vfd/mirror_remote.c
+++ b/utils/mirror_vfd/mirror_remote.c
@@ -65,7 +65,7 @@ mirror_log(struct mirror_log_info *info, unsigned int level, const char *format,
}
fprintf(stream, "\n");
- HDfflush(stream);
+ fflush(stream);
} /* end if sufficiently verbose to print */
} /* end mirror_log() */
@@ -163,7 +163,7 @@ mirror_log_init(char *path, const char *prefix, unsigned int verbosity)
if (path && *path) {
FILE *f = NULL;
- f = HDfopen(path, "w");
+ f = fopen(path, "w");
if (NULL == f) {
fprintf(MIRROR_LOG_DEFAULT_STREAM, "WARN custom logging path could not be opened: %s\n",
path);
@@ -196,7 +196,7 @@ mirror_log_term(loginfo_t *info)
return FAIL;
}
if (info->stream != stderr || info->stream != stdout) {
- if (HDfclose(info->stream) < 0) {
+ if (fclose(info->stream) < 0) {
return FAIL;
}
}
diff --git a/utils/tools/h5dwalk/h5dwalk.c b/utils/tools/h5dwalk/h5dwalk.c
index c97861c..e8df52d 100644
--- a/utils/tools/h5dwalk/h5dwalk.c
+++ b/utils/tools/h5dwalk/h5dwalk.c
@@ -758,7 +758,7 @@ fill_file_list(mfu_flist new_flist, const char *config_filename, int myrank, int
char linebuf[PATH_MAX] = {
'\0',
};
- FILE *config = HDfopen(config_filename, "r");
+ FILE *config = fopen(config_filename, "r");
if (config == NULL)
return -1;
while (HDfgets(linebuf, sizeof(linebuf), config) != NULL) {
@@ -774,7 +774,7 @@ fill_file_list(mfu_flist new_flist, const char *config_filename, int myrank, int
}
linebuf[0] = 0;
}
- HDfclose(config);
+ fclose(config);
return index;
}
@@ -1257,7 +1257,7 @@ process_input_file(char *inputname, int myrank, int size)
char linebuf[PATH_MAX] = {
'\0',
};
- FILE *config = HDfopen(inputname, "r");
+ FILE *config = fopen(inputname, "r");
mfu_flist flist1 = NULL;
if (config == NULL)
@@ -1317,7 +1317,7 @@ process_input_file(char *inputname, int myrank, int size)
if (output_log_file) {
dh5tool_flist_write_text(output_log_file, flist1);
}
- HDfclose(config);
+ fclose(config);
mfu_flist_free(&flist1);
return 0;