summaryrefslogtreecommitdiffstats
path: root/tools/perform/pio_perf.c
diff options
context:
space:
mode:
authorAllen Byrne <byrn@hdfgroup.org>2016-10-21 20:20:42 (GMT)
committerAllen Byrne <byrn@hdfgroup.org>2016-10-21 20:20:42 (GMT)
commit5dfe4b6de70afa8f2cb08af47fb81b3f53381fd6 (patch)
tree19f4df58a466f989eacdf018c26d8cab2200e9ff /tools/perform/pio_perf.c
parent6ad305ee9d7ad4cdd8630de60aca0a11e73b848d (diff)
parent9a4ac501c1bd1f27bde1fc2acbc67bed74ff38ff (diff)
downloadhdf5-5dfe4b6de70afa8f2cb08af47fb81b3f53381fd6.zip
hdf5-5dfe4b6de70afa8f2cb08af47fb81b3f53381fd6.tar.gz
hdf5-5dfe4b6de70afa8f2cb08af47fb81b3f53381fd6.tar.bz2
Merge pull request #3 in ~BYRN/hdf5_adb from bugfix/HDFFV-9942-verify-standalone-perform to develop
* commit '9a4ac501c1bd1f27bde1fc2acbc67bed74ff38ff': Add defines missing on OSX Merge includes from sio file
Diffstat (limited to 'tools/perform/pio_perf.c')
-rw-r--r--tools/perform/pio_perf.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/tools/perform/pio_perf.c b/tools/perform/pio_perf.c
index 1402ec3..c1bfadb 100644
--- a/tools/perform/pio_perf.c
+++ b/tools/perform/pio_perf.c
@@ -1,6 +1,5 @@
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* Copyright by The HDF Group. *
- * Copyright by the Board of Trustees of the University of Illinois. *
* All rights reserved. *
* *
* This file is part of HDF5. The full HDF5 copyright notice, including *
@@ -378,7 +377,7 @@ main(int argc, char **argv)
}
if (opts->output_file) {
- if ((output = fopen(opts->output_file, "w")) == NULL) {
+ if ((output = HDfopen(opts->output_file, "w")) == NULL) {
fprintf(stderr, "%s: cannot open output file\n", progname);
perror(opts->output_file);
goto finish;
@@ -1228,7 +1227,7 @@ report_parameters(struct options *opts)
HDfprintf(output, "Contiguous\n");
{
- char *prefix = getenv("HDF5_PARAPREFIX");
+ char *prefix = HDgetenv("HDF5_PARAPREFIX");
HDfprintf(output, "rank %d: Env HDF5_PARAPREFIX=%s\n", rank,
(prefix ? prefix : "not set"));
@@ -1293,7 +1292,7 @@ parse_command_line(int argc, char *argv[])
char buf[10];
int i;
- memset(buf, '\0', sizeof(buf));
+ HDmemset(buf, '\0', sizeof(buf));
for (i = 0; *end != '\0' && *end != ','; ++end)
if (isalnum(*end) && i < 10)
@@ -1345,7 +1344,7 @@ parse_command_line(int argc, char *argv[])
char buf[10];
int i;
- memset(buf, '\0', sizeof(buf));
+ HDmemset(buf, '\0', sizeof(buf));
for (i = 0; *end != '\0' && *end != ','; ++end)
if (isalnum(*end) && i < 10)
@@ -1509,7 +1508,7 @@ parse_size_directive(const char *size)
off_t s;
char *endptr;
- s = strtol(size, &endptr, 10);
+ s = HDstrtol(size, &endptr, 10);
if (endptr && *endptr) {
while (*endptr != '\0' && (*endptr == ' ' || *endptr == '\t'))