diff options
author | Allen Byrne <byrn@hdfgroup.org> | 2009-05-21 15:40:03 (GMT) |
---|---|---|
committer | Allen Byrne <byrn@hdfgroup.org> | 2009-05-21 15:40:03 (GMT) |
commit | d2ef2af9b28e1648345c575403d7e575044b7445 (patch) | |
tree | 581cf5c2c9865c6eedcc1a6a57fb4334bf8a1647 /perform/sio_perf.c | |
parent | b75740341f787f9a4c3ddadeb0668066084b465f (diff) | |
download | hdf5-d2ef2af9b28e1648345c575403d7e575044b7445.zip hdf5-d2ef2af9b28e1648345c575403d7e575044b7445.tar.gz hdf5-d2ef2af9b28e1648345c575403d7e575044b7445.tar.bz2 |
[svn-r16969] Updated perf_serial test to work on windows.
Tested:
Windows and h5committest
Diffstat (limited to 'perform/sio_perf.c')
-rw-r--r-- | perform/sio_perf.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/perform/sio_perf.c b/perform/sio_perf.c index 5b97667..d852a45 100644 --- a/perform/sio_perf.c +++ b/perform/sio_perf.c @@ -353,7 +353,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; @@ -918,7 +918,7 @@ report_parameters(struct options *opts) } { - char *prefix = getenv("HDF5_PREFIX"); + char *prefix = HDgetenv("HDF5_PREFIX"); HDfprintf(output, "Env HDF5_PREFIX=%s\n", (prefix ? prefix : "not set")); @@ -992,9 +992,9 @@ parse_command_line(int argc, char *argv[]) if (isalnum(*end) && i < 10) buf[i++] = *end; - if (!strcasecmp(buf, "hdf5")) { + if (!HDstrcasecmp(buf, "hdf5")) { cl_opts->io_types |= SIO_HDF5; - } else if (!strcasecmp(buf, "posix")) { + } else if (!HDstrcasecmp(buf, "posix")) { cl_opts->io_types |= SIO_POSIX; } else { fprintf(stderr, "sio_perf: invalid --api option %s\n", @@ -1145,19 +1145,19 @@ parse_command_line(int argc, char *argv[]) cl_opts->h5_threshold = parse_size_directive(opt_arg); break; case 'v': - if (!strcasecmp(opt_arg, "sec2")) { + if (!HDstrcasecmp(opt_arg, "sec2")) { cl_opts->vfd=sec2; - } else if (!strcasecmp(opt_arg, "stdio")) { + } else if (!HDstrcasecmp(opt_arg, "stdio")) { cl_opts->vfd=stdio; - } else if (!strcasecmp(opt_arg, "core")) { + } else if (!HDstrcasecmp(opt_arg, "core")) { cl_opts->vfd=core; - } else if (!strcasecmp(opt_arg, "split")) { + } else if (!HDstrcasecmp(opt_arg, "split")) { cl_opts->vfd=split; - } else if (!strcasecmp(opt_arg, "multi")) { + } else if (!HDstrcasecmp(opt_arg, "multi")) { cl_opts->vfd=multi; - } else if (!strcasecmp(opt_arg, "family")) { + } else if (!HDstrcasecmp(opt_arg, "family")) { cl_opts->vfd=family; - } else if (!strcasecmp(opt_arg, "direct")) { + } else if (!HDstrcasecmp(opt_arg, "direct")) { cl_opts->vfd=direct; } else { fprintf(stderr, "sio_perf: invalid --api option %s\n", |