diff options
author | Dana Robinson <43805+derobins@users.noreply.github.com> | 2023-07-27 20:43:30 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-27 20:43:30 (GMT) |
commit | 1e91d96fa02466ffe451319bdac1005f84dc7993 (patch) | |
tree | 4de04ef502c313dfd766497b20235188761146c0 /test/use_append_mchunks.c | |
parent | 95e5349089b95dfb95f0f8ce2d6db1bc04ba6c82 (diff) | |
download | hdf5-1e91d96fa02466ffe451319bdac1005f84dc7993.zip hdf5-1e91d96fa02466ffe451319bdac1005f84dc7993.tar.gz hdf5-1e91d96fa02466ffe451319bdac1005f84dc7993.tar.bz2 |
Brings over most of the HD prefix removal (#3293)
Diffstat (limited to 'test/use_append_mchunks.c')
-rw-r--r-- | test/use_append_mchunks.c | 54 |
1 files changed, 27 insertions, 27 deletions
diff --git a/test/use_append_mchunks.c b/test/use_append_mchunks.c index 60f63c0..9f39455 100644 --- a/test/use_append_mchunks.c +++ b/test/use_append_mchunks.c @@ -70,7 +70,7 @@ int setup_parameters(int argc, char *const argv[], options_t *opts) { /* use case defaults */ - HDmemset(opts, 0, sizeof(options_t)); + memset(opts, 0, sizeof(options_t)); opts->chunksize = Chunksize_DFT; opts->use_swmr = 1; /* use swmr open */ opts->iterations = 1; @@ -135,25 +135,25 @@ main(int argc, char *argv[]) /* Create file */ /* =========== */ if (UC_opts.launch != UC_READER) { - HDprintf("Creating skeleton data file for test...\n"); + printf("Creating skeleton data file for test...\n"); if ((UC_opts.fapl_id = h5_fileaccess()) < 0) { - HDfprintf(stderr, "can't create creation FAPL\n"); + fprintf(stderr, "can't create creation FAPL\n"); Hgoto_error(1); } if (H5Pset_libver_bounds(UC_opts.fapl_id, H5F_LIBVER_LATEST, H5F_LIBVER_LATEST) < 0) { - HDfprintf(stderr, "can't set creation FAPL libver bounds\n"); + fprintf(stderr, "can't set creation FAPL libver bounds\n"); Hgoto_error(1); } if (create_uc_file(&UC_opts) < 0) { - HDfprintf(stderr, "***encounter error\n"); + fprintf(stderr, "***encounter error\n"); Hgoto_error(1); } else { - HDprintf("File created.\n"); + printf("File created.\n"); } /* Close FAPL to prevent issues with forking later */ if (H5Pclose(UC_opts.fapl_id) < 0) { - HDfprintf(stderr, "can't close creation FAPL\n"); + fprintf(stderr, "can't close creation FAPL\n"); Hgoto_error(1); } UC_opts.fapl_id = H5I_INVALID_HID; @@ -176,20 +176,20 @@ main(int argc, char *argv[]) if (UC_opts.launch != UC_WRITER) { /* child process launch the reader */ if (0 == childpid) { - HDprintf("%d: launch reader process\n", mypid); + printf("%d: launch reader process\n", mypid); if ((UC_opts.fapl_id = h5_fileaccess()) < 0) { - HDfprintf(stderr, "can't create read FAPL\n"); - HDexit(EXIT_FAILURE); + fprintf(stderr, "can't create read FAPL\n"); + exit(EXIT_FAILURE); } if (read_uc_file(send_wait, &UC_opts) < 0) { - HDfprintf(stderr, "read_uc_file encountered error\n"); - HDexit(EXIT_FAILURE); + fprintf(stderr, "read_uc_file encountered error\n"); + exit(EXIT_FAILURE); } if (H5Pclose(UC_opts.fapl_id) < 0) { - HDfprintf(stderr, "can't close read FAPL\n"); - HDexit(EXIT_FAILURE); + fprintf(stderr, "can't close read FAPL\n"); + exit(EXIT_FAILURE); } - HDexit(EXIT_SUCCESS); + exit(EXIT_SUCCESS); } } @@ -197,39 +197,39 @@ main(int argc, char *argv[]) /* launch writer */ /* ============= */ /* this process continues to launch the writer */ - HDprintf("%d: continue as the writer process\n", mypid); + printf("%d: continue as the writer process\n", mypid); /* Set the file access property list */ if ((fapl = h5_fileaccess()) < 0) { - HDfprintf(stderr, "can't get write FAPL\n"); + fprintf(stderr, "can't get write FAPL\n"); Hgoto_error(1); } if (UC_opts.use_swmr) { if (H5Pset_libver_bounds(fapl, H5F_LIBVER_LATEST, H5F_LIBVER_LATEST) < 0) { - HDfprintf(stderr, "can't set write FAPL libver bounds\n"); + fprintf(stderr, "can't set write FAPL libver bounds\n"); Hgoto_error(1); } } if ((fid = H5Fopen(UC_opts.filename, H5F_ACC_RDWR | (UC_opts.use_swmr ? H5F_ACC_SWMR_WRITE : 0), fapl)) < 0) { - HDfprintf(stderr, "H5Fopen failed\n"); + fprintf(stderr, "H5Fopen failed\n"); Hgoto_error(1); } if (write_uc_file(send_wait, fid, &UC_opts) < 0) { - HDfprintf(stderr, "write_uc_file encountered error\n"); + fprintf(stderr, "write_uc_file encountered error\n"); Hgoto_error(1); } if (H5Fclose(fid) < 0) { - HDfprintf(stderr, "Failed to close file id\n"); + fprintf(stderr, "Failed to close file id\n"); Hgoto_error(1); } if (H5Pclose(fapl) < 0) { - HDfprintf(stderr, "can't close write FAPL\n"); + fprintf(stderr, "can't close write FAPL\n"); Hgoto_error(1); } @@ -244,22 +244,22 @@ main(int argc, char *argv[]) if (WIFEXITED(child_status)) { if ((child_ret_value = WEXITSTATUS(child_status)) != 0) { - HDprintf("%d: child process exited with non-zero code (%d)\n", mypid, child_ret_value); + printf("%d: child process exited with non-zero code (%d)\n", mypid, child_ret_value); Hgoto_error(1); } } else { - HDprintf("%d: child process terminated abnormally\n", mypid); + printf("%d: child process terminated abnormally\n", mypid); Hgoto_error(2); } } done: if (ret_value != 0) { - HDprintf("Error(s) encountered\n"); + printf("Error(s) encountered\n"); } else { - HDprintf("All passed\n"); + printf("All passed\n"); } return (ret_value); @@ -270,7 +270,7 @@ done: int main(void) { - HDfprintf(stderr, "Non-POSIX platform. Skipping.\n"); + fprintf(stderr, "Non-POSIX platform. Skipping.\n"); return EXIT_SUCCESS; } /* end main() */ |