summaryrefslogtreecommitdiffstats
path: root/test/twriteorder.c
diff options
context:
space:
mode:
authorLarry Knox <lrknox@hdfgroup.org>2020-10-24 13:05:13 (GMT)
committerGitHub <noreply@github.com>2020-10-24 13:05:13 (GMT)
commit313a8c8546b3b975fba722b015c8c8269dd240cb (patch)
treeabbc9530d2a1460110e6b41af9de071deb66ead0 /test/twriteorder.c
parent2c3cf8240f45508dea02cab08fa67c2a775cab58 (diff)
parent2ae59f1c6199c62d6efeb43f91924e06f1fd6248 (diff)
downloadhdf5-313a8c8546b3b975fba722b015c8c8269dd240cb.zip
hdf5-313a8c8546b3b975fba722b015c8c8269dd240cb.tar.gz
hdf5-313a8c8546b3b975fba722b015c8c8269dd240cb.tar.bz2
Merge pull request #59 from derobins/trivial/HDprefix
HD prefix updates in src/ and test/
Diffstat (limited to 'test/twriteorder.c')
-rw-r--r--test/twriteorder.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/twriteorder.c b/test/twriteorder.c
index 83a615c..9c8a145 100644
--- a/test/twriteorder.c
+++ b/test/twriteorder.c
@@ -141,21 +141,21 @@ parse_option(int argc, char *const argv[])
HDexit(EXIT_SUCCESS);
break;
case 'b': /* number of planes to write/read */
- if ((blocksize_g = atoi(optarg)) <= 0) {
+ if ((blocksize_g = HDatoi(optarg)) <= 0) {
HDfprintf(stderr, "bad blocksize %s, must be a positive integer\n", optarg);
usage(progname_g);
Hgoto_error(-1);
};
break;
case 'n': /* number of planes to write/read */
- if ((nlinkedblock_g = atoi(optarg)) < 2) {
+ if ((nlinkedblock_g = HDatoi(optarg)) < 2) {
HDfprintf(stderr, "bad number of linked blocks %s, must be greater than 1.\n", optarg);
usage(progname_g);
Hgoto_error(-1);
};
break;
case 'p': /* number of planes to write/read */
- if ((part_size_g = atoi(optarg)) <= 0) {
+ if ((part_size_g = HDatoi(optarg)) <= 0) {
HDfprintf(stderr, "bad partition size %s, must be a positive integer\n", optarg);
usage(progname_g);
Hgoto_error(-1);
@@ -404,7 +404,7 @@ main(int argc, char *argv[])
Hgoto_error(1);
};
};
- mypid = getpid();
+ mypid = HDgetpid();
/* ============= */
/* launch reader */
@@ -440,7 +440,7 @@ main(int argc, char *argv[])
/* If readwrite, collect exit code of child process */
/* ================================================ */
if (launch_g == UC_READWRITE) {
- if ((tmppid = waitpid(childpid, &child_status, child_wait_option)) < 0) {
+ if ((tmppid = HDwaitpid(childpid, &child_status, child_wait_option)) < 0) {
HDperror("waitpid");
Hgoto_error(1);
}