summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorDana Robinson <43805+derobins@users.noreply.github.com>2023-06-29 19:33:46 (GMT)
committerGitHub <noreply@github.com>2023-06-29 19:33:46 (GMT)
commit39e6bf48c92dda00057e2e19cdeed93f5a07b3c8 (patch)
tree7596e876fd008f38830d04591d49a0328208b0d1 /test
parentfd933f30b1f8cd487ad790ac0b054bb779280a62 (diff)
downloadhdf5-39e6bf48c92dda00057e2e19cdeed93f5a07b3c8.zip
hdf5-39e6bf48c92dda00057e2e19cdeed93f5a07b3c8.tar.gz
hdf5-39e6bf48c92dda00057e2e19cdeed93f5a07b3c8.tar.bz2
Remove HD from HDmem* calls (#3211)
Diffstat (limited to 'test')
-rw-r--r--test/API/H5_api_attribute_test.c32
-rw-r--r--test/API/H5_api_dataset_test.c14
-rw-r--r--test/API/H5_api_link_test.c186
-rw-r--r--test/API/tarray.c4
-rw-r--r--test/API/tattr.c80
-rw-r--r--test/API/tchecksum.c10
-rw-r--r--test/API/tcoords.c6
-rw-r--r--test/API/testhdf5.c2
-rw-r--r--test/API/tfile.c16
-rw-r--r--test/API/tgenprop.c40
-rw-r--r--test/API/th5o.c24
-rw-r--r--test/API/th5s.c22
-rw-r--r--test/API/tid.c2
-rw-r--r--test/API/titerate.c2
-rw-r--r--test/API/tmisc.c30
-rw-r--r--test/API/trefer.c2
-rw-r--r--test/API/tselect.c70
-rw-r--r--test/API/tunicode.c22
-rw-r--r--test/API/tvlstr.c4
-rw-r--r--test/API/tvltypes.c10
-rw-r--r--test/accum.c200
-rw-r--r--test/accum_swmr_reader.c2
-rw-r--r--test/bittests.c32
-rw-r--r--test/btree2.c4
-rw-r--r--test/cache.c20
-rw-r--r--test/cache_common.c14
-rw-r--r--test/cache_logging.c2
-rw-r--r--test/chunk_info.c8
-rw-r--r--test/cmpd_dset.c2
-rw-r--r--test/cross_read.c4
-rw-r--r--test/direct_chunk.c8
-rw-r--r--test/dsets.c86
-rw-r--r--test/dt_arith.c562
-rw-r--r--test/dtypes.c96
-rw-r--r--test/earray.c34
-rw-r--r--test/evict_on_close.c6
-rw-r--r--test/external.c18
-rw-r--r--test/external_env.c2
-rw-r--r--test/farray.c22
-rw-r--r--test/fheap.c312
-rw-r--r--test/file_image.c6
-rw-r--r--test/fillval.c22
-rw-r--r--test/filter_fail.c10
-rw-r--r--test/filter_plugin.c2
-rw-r--r--test/freespace.c48
-rw-r--r--test/genall5.c22
-rw-r--r--test/getname.c14
-rw-r--r--test/gheap.c18
-rw-r--r--test/h5test.c4
-rw-r--r--test/hyperslab.c2
-rw-r--r--test/istore.c10
-rw-r--r--test/links.c208
-rw-r--r--test/mdset.c6
-rw-r--r--test/mf.c62
-rw-r--r--test/mirror_vfd.c110
-rw-r--r--test/ntypes.c20
-rw-r--r--test/objcopy.c90
-rw-r--r--test/objcopy_ref.c6
-rw-r--r--test/ohdr.c10
-rw-r--r--test/onion.c36
-rw-r--r--test/page_buffer.c4
-rw-r--r--test/s3comms.c2
-rw-r--r--test/select_io_dset.c82
-rw-r--r--test/stab.c2
-rw-r--r--test/swmr.c14
-rw-r--r--test/swmr_addrem_writer.c2
-rw-r--r--test/swmr_generator.c2
-rw-r--r--test/swmr_reader.c6
-rw-r--r--test/swmr_remove_reader.c6
-rw-r--r--test/swmr_sparse_reader.c4
-rw-r--r--test/swmr_sparse_writer.c2
-rw-r--r--test/swmr_start_write.c2
-rw-r--r--test/swmr_writer.c2
-rw-r--r--test/tarray.c4
-rw-r--r--test/tattr.c80
-rw-r--r--test/tchecksum.c10
-rw-r--r--test/tcoords.c6
-rw-r--r--test/tfile.c16
-rw-r--r--test/tgenprop.c40
-rw-r--r--test/th5o.c24
-rw-r--r--test/th5s.c22
-rw-r--r--test/thread_id.c2
-rw-r--r--test/tid.c2
-rw-r--r--test/tmeta.c2
-rw-r--r--test/tmisc.c18
-rw-r--r--test/trefer.c2
-rw-r--r--test/trefer_deprec.c4
-rw-r--r--test/trefstr.c4
-rw-r--r--test/tselect.c70
-rw-r--r--test/tskiplist.c4
-rw-r--r--test/tsohm.c28
-rw-r--r--test/ttsafe_dcreate.c2
-rw-r--r--test/tunicode.c22
-rw-r--r--test/tvlstr.c4
-rw-r--r--test/tvltypes.c10
-rw-r--r--test/twriteorder.c6
-rw-r--r--test/use_append_chunk.c2
-rw-r--r--test/use_append_chunk_mirror.c2
-rw-r--r--test/use_append_mchunks.c2
-rw-r--r--test/vds.c206
-rw-r--r--test/vds_env.c4
-rw-r--r--test/vfd.c26
-rw-r--r--test/vfd_plugin.c6
-rw-r--r--test/vol.c2
104 files changed, 1739 insertions, 1741 deletions
diff --git a/test/API/H5_api_attribute_test.c b/test/API/H5_api_attribute_test.c
index 45f4704..144b0a4 100644
--- a/test/API/H5_api_attribute_test.c
+++ b/test/API/H5_api_attribute_test.c
@@ -4932,7 +4932,7 @@ test_get_attribute_info(void)
PART_ERROR(H5Aget_info);
}
- HDmemset(&attr_info, 0, sizeof(attr_info));
+ memset(&attr_info, 0, sizeof(attr_info));
if (H5Aget_info(attr_id, &attr_info) < 0) {
H5_FAILED();
printf(" couldn't get attribute info\n");
@@ -4975,7 +4975,7 @@ test_get_attribute_info(void)
{
TESTING_2("H5Aget_info_by_name");
- HDmemset(&attr_info, 0, sizeof(attr_info));
+ memset(&attr_info, 0, sizeof(attr_info));
if (H5Aget_info_by_name(group_id, ".", ATTRIBUTE_GET_INFO_TEST_ATTR_NAME, &attr_info,
H5P_DEFAULT) < 0) {
H5_FAILED();
@@ -4998,7 +4998,7 @@ test_get_attribute_info(void)
PART_ERROR(H5Aget_info_by_name);
}
- HDmemset(&attr_info, 0, sizeof(attr_info));
+ memset(&attr_info, 0, sizeof(attr_info));
if (H5Aget_info_by_name(group_id, ".", ATTRIBUTE_GET_INFO_TEST_ATTR_NAME2, &attr_info,
H5P_DEFAULT) < 0) {
H5_FAILED();
@@ -5021,7 +5021,7 @@ test_get_attribute_info(void)
PART_ERROR(H5Aget_info_by_name);
}
- HDmemset(&attr_info, 0, sizeof(attr_info));
+ memset(&attr_info, 0, sizeof(attr_info));
if (H5Aget_info_by_name(group_id, ".", ATTRIBUTE_GET_INFO_TEST_ATTR_NAME3, &attr_info,
H5P_DEFAULT) < 0) {
H5_FAILED();
@@ -5058,7 +5058,7 @@ test_get_attribute_info(void)
PART_EMPTY(H5Aget_info_by_idx_crt_order_increasing);
}
- HDmemset(&attr_info, 0, sizeof(attr_info));
+ memset(&attr_info, 0, sizeof(attr_info));
if (H5Aget_info_by_idx(group_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_INC, 0, &attr_info,
H5P_DEFAULT) < 0) {
H5_FAILED();
@@ -5083,7 +5083,7 @@ test_get_attribute_info(void)
PART_ERROR(H5Aget_info_by_idx_crt_order_increasing);
}
- HDmemset(&attr_info, 0, sizeof(attr_info));
+ memset(&attr_info, 0, sizeof(attr_info));
if (H5Aget_info_by_idx(group_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_INC, 1, &attr_info,
H5P_DEFAULT) < 0) {
H5_FAILED();
@@ -5108,7 +5108,7 @@ test_get_attribute_info(void)
PART_ERROR(H5Aget_info_by_idx_crt_order_increasing);
}
- HDmemset(&attr_info, 0, sizeof(attr_info));
+ memset(&attr_info, 0, sizeof(attr_info));
if (H5Aget_info_by_idx(group_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_INC, 2, &attr_info,
H5P_DEFAULT) < 0) {
H5_FAILED();
@@ -5147,7 +5147,7 @@ test_get_attribute_info(void)
PART_EMPTY(H5Aget_info_by_idx_crt_order_decreasing);
}
- HDmemset(&attr_info, 0, sizeof(attr_info));
+ memset(&attr_info, 0, sizeof(attr_info));
if (H5Aget_info_by_idx(group_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_DEC, 2, &attr_info,
H5P_DEFAULT) < 0) {
H5_FAILED();
@@ -5172,7 +5172,7 @@ test_get_attribute_info(void)
PART_ERROR(H5Aget_info_by_idx_crt_order_decreasing);
}
- HDmemset(&attr_info, 0, sizeof(attr_info));
+ memset(&attr_info, 0, sizeof(attr_info));
if (H5Aget_info_by_idx(group_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_DEC, 1, &attr_info,
H5P_DEFAULT) < 0) {
H5_FAILED();
@@ -5197,7 +5197,7 @@ test_get_attribute_info(void)
PART_ERROR(H5Aget_info_by_idx_crt_order_decreasing);
}
- HDmemset(&attr_info, 0, sizeof(attr_info));
+ memset(&attr_info, 0, sizeof(attr_info));
if (H5Aget_info_by_idx(group_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_DEC, 0, &attr_info,
H5P_DEFAULT) < 0) {
H5_FAILED();
@@ -5230,7 +5230,7 @@ test_get_attribute_info(void)
{
TESTING_2("H5Aget_info_by_idx by alphabetical order in increasing order");
- HDmemset(&attr_info, 0, sizeof(attr_info));
+ memset(&attr_info, 0, sizeof(attr_info));
if (H5Aget_info_by_idx(group_id, ".", H5_INDEX_NAME, H5_ITER_INC, 0, &attr_info, H5P_DEFAULT) <
0) {
H5_FAILED();
@@ -5255,7 +5255,7 @@ test_get_attribute_info(void)
PART_ERROR(H5Aget_info_by_idx_name_order_increasing);
}
- HDmemset(&attr_info, 0, sizeof(attr_info));
+ memset(&attr_info, 0, sizeof(attr_info));
if (H5Aget_info_by_idx(group_id, ".", H5_INDEX_NAME, H5_ITER_INC, 1, &attr_info, H5P_DEFAULT) <
0) {
H5_FAILED();
@@ -5280,7 +5280,7 @@ test_get_attribute_info(void)
PART_ERROR(H5Aget_info_by_idx_name_order_increasing);
}
- HDmemset(&attr_info, 0, sizeof(attr_info));
+ memset(&attr_info, 0, sizeof(attr_info));
if (H5Aget_info_by_idx(group_id, ".", H5_INDEX_NAME, H5_ITER_INC, 2, &attr_info, H5P_DEFAULT) <
0) {
H5_FAILED();
@@ -5313,7 +5313,7 @@ test_get_attribute_info(void)
{
TESTING_2("H5Aget_info_by_idx by alphabetical order in decreasing order");
- HDmemset(&attr_info, 0, sizeof(attr_info));
+ memset(&attr_info, 0, sizeof(attr_info));
if (H5Aget_info_by_idx(group_id, ".", H5_INDEX_NAME, H5_ITER_DEC, 2, &attr_info, H5P_DEFAULT) <
0) {
H5_FAILED();
@@ -5338,7 +5338,7 @@ test_get_attribute_info(void)
PART_ERROR(H5Aget_info_by_idx_name_order_decreasing);
}
- HDmemset(&attr_info, 0, sizeof(attr_info));
+ memset(&attr_info, 0, sizeof(attr_info));
if (H5Aget_info_by_idx(group_id, ".", H5_INDEX_NAME, H5_ITER_DEC, 1, &attr_info, H5P_DEFAULT) <
0) {
H5_FAILED();
@@ -5363,7 +5363,7 @@ test_get_attribute_info(void)
PART_ERROR(H5Aget_info_by_idx_name_order_decreasing);
}
- HDmemset(&attr_info, 0, sizeof(attr_info));
+ memset(&attr_info, 0, sizeof(attr_info));
if (H5Aget_info_by_idx(group_id, ".", H5_INDEX_NAME, H5_ITER_DEC, 0, &attr_info, H5P_DEFAULT) <
0) {
H5_FAILED();
diff --git a/test/API/H5_api_dataset_test.c b/test/API/H5_api_dataset_test.c
index 55c4497..d99516f 100644
--- a/test/API/H5_api_dataset_test.c
+++ b/test/API/H5_api_dataset_test.c
@@ -3656,7 +3656,7 @@ test_dataset_property_lists(void)
{
hsize_t tmp_chunk_dims[DATASET_PROPERTY_LIST_TEST_SPACE_RANK];
- HDmemset(tmp_chunk_dims, 0, sizeof(tmp_chunk_dims));
+ memset(tmp_chunk_dims, 0, sizeof(tmp_chunk_dims));
if (H5Pget_chunk(dcpl_id1, DATASET_PROPERTY_LIST_TEST_SPACE_RANK, tmp_chunk_dims) < 0) {
H5_FAILED();
@@ -3771,7 +3771,7 @@ test_dataset_property_lists(void)
PART_ERROR(H5Dget_access_plist);
}
- HDmemset(tmp_prefix, 0, (size_t)buf_size + 1);
+ memset(tmp_prefix, 0, (size_t)buf_size + 1);
if (H5Pget_efile_prefix(dapl_id2, tmp_prefix, (size_t)buf_size) < 0) {
H5_FAILED();
@@ -3858,7 +3858,7 @@ test_dataset_property_lists(void)
{
hsize_t tmp_chunk_dims[DATASET_PROPERTY_LIST_TEST_SPACE_RANK];
- HDmemset(tmp_chunk_dims, 0, sizeof(tmp_chunk_dims));
+ memset(tmp_chunk_dims, 0, sizeof(tmp_chunk_dims));
if (H5Pget_chunk(dcpl_id1, DATASET_PROPERTY_LIST_TEST_SPACE_RANK, tmp_chunk_dims) < 0) {
H5_FAILED();
@@ -7217,7 +7217,7 @@ test_dataset_set_extent_chunked_unlimited(void)
* Remember the current dimensionality of the dataset before
* changing them again.
*/
- HDmemcpy(dims, new_dims, sizeof(new_dims));
+ memcpy(dims, new_dims, sizeof(new_dims));
}
/*
@@ -7282,7 +7282,7 @@ test_dataset_set_extent_chunked_unlimited(void)
* Remember the current dimensionality of the dataset before
* changing them again.
*/
- HDmemcpy(dims, new_dims, sizeof(new_dims));
+ memcpy(dims, new_dims, sizeof(new_dims));
}
if (H5Pclose(dcpl_id) < 0)
@@ -7478,7 +7478,7 @@ test_dataset_set_extent_chunked_fixed(void)
* Remember the current dimensionality of the dataset before
* changing them again.
*/
- HDmemcpy(dims, new_dims, sizeof(new_dims));
+ memcpy(dims, new_dims, sizeof(new_dims));
}
/*
@@ -7556,7 +7556,7 @@ test_dataset_set_extent_chunked_fixed(void)
* Remember the current dimensionality of the dataset before
* changing them again.
*/
- HDmemcpy(dims2, new_dims, sizeof(new_dims));
+ memcpy(dims2, new_dims, sizeof(new_dims));
}
if (H5Pclose(dcpl_id) < 0)
diff --git a/test/API/H5_api_link_test.c b/test/API/H5_api_link_test.c
index ffc5de5..3abd602 100644
--- a/test/API/H5_api_link_test.c
+++ b/test/API/H5_api_link_test.c
@@ -11564,7 +11564,7 @@ test_get_link_val(void)
TESTING_2("H5Lget_val on soft link");
- HDmemset(&link_info, 0, sizeof(link_info));
+ memset(&link_info, 0, sizeof(link_info));
if ((subgroup_id = H5Gcreate2(group_id, GET_LINK_VAL_TEST_SUBGROUP1_NAME, H5P_DEFAULT, gcpl_id,
H5P_DEFAULT)) < 0) {
@@ -11642,7 +11642,7 @@ test_get_link_val(void)
TESTING_2("H5Lget_val on external link");
- HDmemset(&link_info, 0, sizeof(link_info));
+ memset(&link_info, 0, sizeof(link_info));
HDsnprintf(ext_link_filename, H5_API_TEST_FILENAME_MAX_LENGTH, "%s",
EXTERNAL_LINK_TEST_FILE_NAME);
@@ -11849,7 +11849,7 @@ test_get_link_val(void)
}
/* Retrieve the info and value of each link in turn */
- HDmemset(&link_info, 0, sizeof(link_info));
+ memset(&link_info, 0, sizeof(link_info));
if (H5Lget_info_by_idx2(subgroup_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_INC, 0, &link_info,
H5P_DEFAULT) < 0) {
H5_FAILED();
@@ -11865,7 +11865,7 @@ test_get_link_val(void)
PART_ERROR(H5Lget_val_by_idx_soft_crt_order_increasing);
}
- HDmemset(link_val_buf, 0, GET_LINK_VAL_TEST_LINK_VAL_BUF_SIZE);
+ memset(link_val_buf, 0, GET_LINK_VAL_TEST_LINK_VAL_BUF_SIZE);
if (H5Lget_val_by_idx(subgroup_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_INC, 0, link_val_buf,
GET_LINK_VAL_TEST_LINK_VAL_BUF_SIZE, H5P_DEFAULT) < 0) {
H5_FAILED();
@@ -11880,7 +11880,7 @@ test_get_link_val(void)
PART_ERROR(H5Lget_val_by_idx_soft_crt_order_increasing);
}
- HDmemset(&link_info, 0, sizeof(link_info));
+ memset(&link_info, 0, sizeof(link_info));
if (H5Lget_info_by_idx2(subgroup_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_INC, 1, &link_info,
H5P_DEFAULT) < 0) {
H5_FAILED();
@@ -11896,7 +11896,7 @@ test_get_link_val(void)
PART_ERROR(H5Lget_val_by_idx_soft_crt_order_increasing);
}
- HDmemset(link_val_buf, 0, GET_LINK_VAL_TEST_LINK_VAL_BUF_SIZE);
+ memset(link_val_buf, 0, GET_LINK_VAL_TEST_LINK_VAL_BUF_SIZE);
if (H5Lget_val_by_idx(subgroup_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_INC, 1, link_val_buf,
GET_LINK_VAL_TEST_LINK_VAL_BUF_SIZE, H5P_DEFAULT) < 0) {
H5_FAILED();
@@ -11911,7 +11911,7 @@ test_get_link_val(void)
PART_ERROR(H5Lget_val_by_idx_soft_crt_order_increasing);
}
- HDmemset(&link_info, 0, sizeof(link_info));
+ memset(&link_info, 0, sizeof(link_info));
if (H5Lget_info_by_idx2(subgroup_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_INC, 2, &link_info,
H5P_DEFAULT) < 0) {
H5_FAILED();
@@ -11927,7 +11927,7 @@ test_get_link_val(void)
PART_ERROR(H5Lget_val_by_idx_soft_crt_order_increasing);
}
- HDmemset(link_val_buf, 0, GET_LINK_VAL_TEST_LINK_VAL_BUF_SIZE);
+ memset(link_val_buf, 0, GET_LINK_VAL_TEST_LINK_VAL_BUF_SIZE);
if (H5Lget_val_by_idx(subgroup_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_INC, 2, link_val_buf,
GET_LINK_VAL_TEST_LINK_VAL_BUF_SIZE, H5P_DEFAULT) < 0) {
H5_FAILED();
@@ -12043,7 +12043,7 @@ test_get_link_val(void)
}
/* Retrieve the info and value of each link in turn */
- HDmemset(&link_info, 0, sizeof(link_info));
+ memset(&link_info, 0, sizeof(link_info));
if (H5Lget_info_by_idx2(subgroup_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_DEC, 2, &link_info,
H5P_DEFAULT) < 0) {
H5_FAILED();
@@ -12059,7 +12059,7 @@ test_get_link_val(void)
PART_ERROR(H5Lget_val_by_idx_soft_crt_order_decreasing);
}
- HDmemset(link_val_buf, 0, GET_LINK_VAL_TEST_LINK_VAL_BUF_SIZE);
+ memset(link_val_buf, 0, GET_LINK_VAL_TEST_LINK_VAL_BUF_SIZE);
if (H5Lget_val_by_idx(subgroup_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_DEC, 2, link_val_buf,
GET_LINK_VAL_TEST_LINK_VAL_BUF_SIZE, H5P_DEFAULT) < 0) {
H5_FAILED();
@@ -12074,7 +12074,7 @@ test_get_link_val(void)
PART_ERROR(H5Lget_val_by_idx_soft_crt_order_decreasing);
}
- HDmemset(&link_info, 0, sizeof(link_info));
+ memset(&link_info, 0, sizeof(link_info));
if (H5Lget_info_by_idx2(subgroup_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_DEC, 1, &link_info,
H5P_DEFAULT) < 0) {
H5_FAILED();
@@ -12090,7 +12090,7 @@ test_get_link_val(void)
PART_ERROR(H5Lget_val_by_idx_soft_crt_order_decreasing);
}
- HDmemset(link_val_buf, 0, GET_LINK_VAL_TEST_LINK_VAL_BUF_SIZE);
+ memset(link_val_buf, 0, GET_LINK_VAL_TEST_LINK_VAL_BUF_SIZE);
if (H5Lget_val_by_idx(subgroup_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_DEC, 1, link_val_buf,
GET_LINK_VAL_TEST_LINK_VAL_BUF_SIZE, H5P_DEFAULT) < 0) {
H5_FAILED();
@@ -12105,7 +12105,7 @@ test_get_link_val(void)
PART_ERROR(H5Lget_val_by_idx_soft_crt_order_decreasing);
}
- HDmemset(&link_info, 0, sizeof(link_info));
+ memset(&link_info, 0, sizeof(link_info));
if (H5Lget_info_by_idx2(subgroup_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_DEC, 0, &link_info,
H5P_DEFAULT) < 0) {
H5_FAILED();
@@ -12121,7 +12121,7 @@ test_get_link_val(void)
PART_ERROR(H5Lget_val_by_idx_soft_crt_order_decreasing);
}
- HDmemset(link_val_buf, 0, GET_LINK_VAL_TEST_LINK_VAL_BUF_SIZE);
+ memset(link_val_buf, 0, GET_LINK_VAL_TEST_LINK_VAL_BUF_SIZE);
if (H5Lget_val_by_idx(subgroup_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_DEC, 0, link_val_buf,
GET_LINK_VAL_TEST_LINK_VAL_BUF_SIZE, H5P_DEFAULT) < 0) {
H5_FAILED();
@@ -12231,7 +12231,7 @@ test_get_link_val(void)
}
/* Retrieve the info and value of each link in turn */
- HDmemset(&link_info, 0, sizeof(link_info));
+ memset(&link_info, 0, sizeof(link_info));
if (H5Lget_info_by_idx2(subgroup_id, ".", H5_INDEX_NAME, H5_ITER_INC, 0, &link_info,
H5P_DEFAULT) < 0) {
H5_FAILED();
@@ -12247,7 +12247,7 @@ test_get_link_val(void)
PART_ERROR(H5Lget_val_by_idx_soft_name_order_increasing);
}
- HDmemset(link_val_buf, 0, GET_LINK_VAL_TEST_LINK_VAL_BUF_SIZE);
+ memset(link_val_buf, 0, GET_LINK_VAL_TEST_LINK_VAL_BUF_SIZE);
if (H5Lget_val_by_idx(subgroup_id, ".", H5_INDEX_NAME, H5_ITER_INC, 0, link_val_buf,
GET_LINK_VAL_TEST_LINK_VAL_BUF_SIZE, H5P_DEFAULT) < 0) {
H5_FAILED();
@@ -12262,7 +12262,7 @@ test_get_link_val(void)
PART_ERROR(H5Lget_val_by_idx_soft_name_order_increasing);
}
- HDmemset(&link_info, 0, sizeof(link_info));
+ memset(&link_info, 0, sizeof(link_info));
if (H5Lget_info_by_idx2(subgroup_id, ".", H5_INDEX_NAME, H5_ITER_INC, 1, &link_info,
H5P_DEFAULT) < 0) {
H5_FAILED();
@@ -12278,7 +12278,7 @@ test_get_link_val(void)
PART_ERROR(H5Lget_val_by_idx_soft_name_order_increasing);
}
- HDmemset(link_val_buf, 0, GET_LINK_VAL_TEST_LINK_VAL_BUF_SIZE);
+ memset(link_val_buf, 0, GET_LINK_VAL_TEST_LINK_VAL_BUF_SIZE);
if (H5Lget_val_by_idx(subgroup_id, ".", H5_INDEX_NAME, H5_ITER_INC, 1, link_val_buf,
GET_LINK_VAL_TEST_LINK_VAL_BUF_SIZE, H5P_DEFAULT) < 0) {
H5_FAILED();
@@ -12293,7 +12293,7 @@ test_get_link_val(void)
PART_ERROR(H5Lget_val_by_idx_soft_name_order_increasing);
}
- HDmemset(&link_info, 0, sizeof(link_info));
+ memset(&link_info, 0, sizeof(link_info));
if (H5Lget_info_by_idx2(subgroup_id, ".", H5_INDEX_NAME, H5_ITER_INC, 2, &link_info,
H5P_DEFAULT) < 0) {
H5_FAILED();
@@ -12309,7 +12309,7 @@ test_get_link_val(void)
PART_ERROR(H5Lget_val_by_idx_soft_name_order_increasing);
}
- HDmemset(link_val_buf, 0, GET_LINK_VAL_TEST_LINK_VAL_BUF_SIZE);
+ memset(link_val_buf, 0, GET_LINK_VAL_TEST_LINK_VAL_BUF_SIZE);
if (H5Lget_val_by_idx(subgroup_id, ".", H5_INDEX_NAME, H5_ITER_INC, 2, link_val_buf,
GET_LINK_VAL_TEST_LINK_VAL_BUF_SIZE, H5P_DEFAULT) < 0) {
H5_FAILED();
@@ -12419,7 +12419,7 @@ test_get_link_val(void)
}
/* Retrieve the info and value of each link in turn */
- HDmemset(&link_info, 0, sizeof(link_info));
+ memset(&link_info, 0, sizeof(link_info));
if (H5Lget_info_by_idx2(subgroup_id, ".", H5_INDEX_NAME, H5_ITER_DEC, 2, &link_info,
H5P_DEFAULT) < 0) {
H5_FAILED();
@@ -12435,7 +12435,7 @@ test_get_link_val(void)
PART_ERROR(H5Lget_val_by_idx_soft_name_order_decreasing);
}
- HDmemset(link_val_buf, 0, GET_LINK_VAL_TEST_LINK_VAL_BUF_SIZE);
+ memset(link_val_buf, 0, GET_LINK_VAL_TEST_LINK_VAL_BUF_SIZE);
if (H5Lget_val_by_idx(subgroup_id, ".", H5_INDEX_NAME, H5_ITER_DEC, 2, link_val_buf,
GET_LINK_VAL_TEST_LINK_VAL_BUF_SIZE, H5P_DEFAULT) < 0) {
H5_FAILED();
@@ -12450,7 +12450,7 @@ test_get_link_val(void)
PART_ERROR(H5Lget_val_by_idx_soft_name_order_decreasing);
}
- HDmemset(&link_info, 0, sizeof(link_info));
+ memset(&link_info, 0, sizeof(link_info));
if (H5Lget_info_by_idx2(subgroup_id, ".", H5_INDEX_NAME, H5_ITER_DEC, 1, &link_info,
H5P_DEFAULT) < 0) {
H5_FAILED();
@@ -12466,7 +12466,7 @@ test_get_link_val(void)
PART_ERROR(H5Lget_val_by_idx_soft_name_order_decreasing);
}
- HDmemset(link_val_buf, 0, GET_LINK_VAL_TEST_LINK_VAL_BUF_SIZE);
+ memset(link_val_buf, 0, GET_LINK_VAL_TEST_LINK_VAL_BUF_SIZE);
if (H5Lget_val_by_idx(subgroup_id, ".", H5_INDEX_NAME, H5_ITER_DEC, 1, link_val_buf,
GET_LINK_VAL_TEST_LINK_VAL_BUF_SIZE, H5P_DEFAULT) < 0) {
H5_FAILED();
@@ -12481,7 +12481,7 @@ test_get_link_val(void)
PART_ERROR(H5Lget_val_by_idx_soft_name_order_decreasing);
}
- HDmemset(&link_info, 0, sizeof(link_info));
+ memset(&link_info, 0, sizeof(link_info));
if (H5Lget_info_by_idx2(subgroup_id, ".", H5_INDEX_NAME, H5_ITER_DEC, 0, &link_info,
H5P_DEFAULT) < 0) {
H5_FAILED();
@@ -12497,7 +12497,7 @@ test_get_link_val(void)
PART_ERROR(H5Lget_val_by_idx_soft_name_order_decreasing);
}
- HDmemset(link_val_buf, 0, GET_LINK_VAL_TEST_LINK_VAL_BUF_SIZE);
+ memset(link_val_buf, 0, GET_LINK_VAL_TEST_LINK_VAL_BUF_SIZE);
if (H5Lget_val_by_idx(subgroup_id, ".", H5_INDEX_NAME, H5_ITER_DEC, 0, link_val_buf,
GET_LINK_VAL_TEST_LINK_VAL_BUF_SIZE, H5P_DEFAULT) < 0) {
H5_FAILED();
@@ -12625,7 +12625,7 @@ test_get_link_val(void)
}
/* Retrieve the info and value of each link in turn */
- HDmemset(&link_info, 0, sizeof(link_info));
+ memset(&link_info, 0, sizeof(link_info));
if (H5Lget_info_by_idx2(subgroup_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_INC, 0, &link_info,
H5P_DEFAULT) < 0) {
H5_FAILED();
@@ -12641,7 +12641,7 @@ test_get_link_val(void)
PART_ERROR(H5Lget_val_by_idx_external_crt_order_increasing);
}
- HDmemset(link_val_buf, 0, GET_LINK_VAL_TEST_LINK_VAL_BUF_SIZE);
+ memset(link_val_buf, 0, GET_LINK_VAL_TEST_LINK_VAL_BUF_SIZE);
if (H5Lget_val_by_idx(subgroup_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_INC, 0, link_val_buf,
GET_LINK_VAL_TEST_LINK_VAL_BUF_SIZE, H5P_DEFAULT) < 0) {
H5_FAILED();
@@ -12670,7 +12670,7 @@ test_get_link_val(void)
PART_ERROR(H5Lget_val_by_idx_external_crt_order_increasing);
}
- HDmemset(&link_info, 0, sizeof(link_info));
+ memset(&link_info, 0, sizeof(link_info));
if (H5Lget_info_by_idx2(subgroup_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_INC, 1, &link_info,
H5P_DEFAULT) < 0) {
H5_FAILED();
@@ -12686,7 +12686,7 @@ test_get_link_val(void)
PART_ERROR(H5Lget_val_by_idx_external_crt_order_increasing);
}
- HDmemset(link_val_buf, 0, GET_LINK_VAL_TEST_LINK_VAL_BUF_SIZE);
+ memset(link_val_buf, 0, GET_LINK_VAL_TEST_LINK_VAL_BUF_SIZE);
if (H5Lget_val_by_idx(subgroup_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_INC, 1, link_val_buf,
GET_LINK_VAL_TEST_LINK_VAL_BUF_SIZE, H5P_DEFAULT) < 0) {
H5_FAILED();
@@ -12715,7 +12715,7 @@ test_get_link_val(void)
PART_ERROR(H5Lget_val_by_idx_external_crt_order_increasing);
}
- HDmemset(&link_info, 0, sizeof(link_info));
+ memset(&link_info, 0, sizeof(link_info));
if (H5Lget_info_by_idx2(subgroup_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_INC, 2, &link_info,
H5P_DEFAULT) < 0) {
H5_FAILED();
@@ -12731,7 +12731,7 @@ test_get_link_val(void)
PART_ERROR(H5Lget_val_by_idx_external_crt_order_increasing);
}
- HDmemset(link_val_buf, 0, GET_LINK_VAL_TEST_LINK_VAL_BUF_SIZE);
+ memset(link_val_buf, 0, GET_LINK_VAL_TEST_LINK_VAL_BUF_SIZE);
if (H5Lget_val_by_idx(subgroup_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_INC, 2, link_val_buf,
GET_LINK_VAL_TEST_LINK_VAL_BUF_SIZE, H5P_DEFAULT) < 0) {
H5_FAILED();
@@ -12875,7 +12875,7 @@ test_get_link_val(void)
}
/* Retrieve the info and value of each link in turn */
- HDmemset(&link_info, 0, sizeof(link_info));
+ memset(&link_info, 0, sizeof(link_info));
if (H5Lget_info_by_idx2(subgroup_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_DEC, 2, &link_info,
H5P_DEFAULT) < 0) {
H5_FAILED();
@@ -12891,7 +12891,7 @@ test_get_link_val(void)
PART_ERROR(H5Lget_val_by_idx_external_crt_order_decreasing);
}
- HDmemset(link_val_buf, 0, GET_LINK_VAL_TEST_LINK_VAL_BUF_SIZE);
+ memset(link_val_buf, 0, GET_LINK_VAL_TEST_LINK_VAL_BUF_SIZE);
if (H5Lget_val_by_idx(subgroup_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_DEC, 2, link_val_buf,
GET_LINK_VAL_TEST_LINK_VAL_BUF_SIZE, H5P_DEFAULT) < 0) {
H5_FAILED();
@@ -12920,7 +12920,7 @@ test_get_link_val(void)
PART_ERROR(H5Lget_val_by_idx_external_crt_order_decreasing);
}
- HDmemset(&link_info, 0, sizeof(link_info));
+ memset(&link_info, 0, sizeof(link_info));
if (H5Lget_info_by_idx2(subgroup_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_DEC, 1, &link_info,
H5P_DEFAULT) < 0) {
H5_FAILED();
@@ -12936,7 +12936,7 @@ test_get_link_val(void)
PART_ERROR(H5Lget_val_by_idx_external_crt_order_decreasing);
}
- HDmemset(link_val_buf, 0, GET_LINK_VAL_TEST_LINK_VAL_BUF_SIZE);
+ memset(link_val_buf, 0, GET_LINK_VAL_TEST_LINK_VAL_BUF_SIZE);
if (H5Lget_val_by_idx(subgroup_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_DEC, 1, link_val_buf,
GET_LINK_VAL_TEST_LINK_VAL_BUF_SIZE, H5P_DEFAULT) < 0) {
H5_FAILED();
@@ -12965,7 +12965,7 @@ test_get_link_val(void)
PART_ERROR(H5Lget_val_by_idx_external_crt_order_decreasing);
}
- HDmemset(&link_info, 0, sizeof(link_info));
+ memset(&link_info, 0, sizeof(link_info));
if (H5Lget_info_by_idx2(subgroup_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_DEC, 0, &link_info,
H5P_DEFAULT) < 0) {
H5_FAILED();
@@ -12981,7 +12981,7 @@ test_get_link_val(void)
PART_ERROR(H5Lget_val_by_idx_external_crt_order_decreasing);
}
- HDmemset(link_val_buf, 0, GET_LINK_VAL_TEST_LINK_VAL_BUF_SIZE);
+ memset(link_val_buf, 0, GET_LINK_VAL_TEST_LINK_VAL_BUF_SIZE);
if (H5Lget_val_by_idx(subgroup_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_DEC, 0, link_val_buf,
GET_LINK_VAL_TEST_LINK_VAL_BUF_SIZE, H5P_DEFAULT) < 0) {
H5_FAILED();
@@ -13119,7 +13119,7 @@ test_get_link_val(void)
}
/* Retrieve the info and value of each link in turn */
- HDmemset(&link_info, 0, sizeof(link_info));
+ memset(&link_info, 0, sizeof(link_info));
if (H5Lget_info_by_idx2(subgroup_id, ".", H5_INDEX_NAME, H5_ITER_INC, 0, &link_info,
H5P_DEFAULT) < 0) {
H5_FAILED();
@@ -13135,7 +13135,7 @@ test_get_link_val(void)
PART_ERROR(H5Lget_val_by_idx_external_name_order_increasing);
}
- HDmemset(link_val_buf, 0, GET_LINK_VAL_TEST_LINK_VAL_BUF_SIZE);
+ memset(link_val_buf, 0, GET_LINK_VAL_TEST_LINK_VAL_BUF_SIZE);
if (H5Lget_val_by_idx(subgroup_id, ".", H5_INDEX_NAME, H5_ITER_INC, 0, link_val_buf,
GET_LINK_VAL_TEST_LINK_VAL_BUF_SIZE, H5P_DEFAULT) < 0) {
H5_FAILED();
@@ -13164,7 +13164,7 @@ test_get_link_val(void)
PART_ERROR(H5Lget_val_by_idx_external_name_order_increasing);
}
- HDmemset(&link_info, 0, sizeof(link_info));
+ memset(&link_info, 0, sizeof(link_info));
if (H5Lget_info_by_idx2(subgroup_id, ".", H5_INDEX_NAME, H5_ITER_INC, 1, &link_info,
H5P_DEFAULT) < 0) {
H5_FAILED();
@@ -13180,7 +13180,7 @@ test_get_link_val(void)
PART_ERROR(H5Lget_val_by_idx_external_name_order_increasing);
}
- HDmemset(link_val_buf, 0, GET_LINK_VAL_TEST_LINK_VAL_BUF_SIZE);
+ memset(link_val_buf, 0, GET_LINK_VAL_TEST_LINK_VAL_BUF_SIZE);
if (H5Lget_val_by_idx(subgroup_id, ".", H5_INDEX_NAME, H5_ITER_INC, 1, link_val_buf,
GET_LINK_VAL_TEST_LINK_VAL_BUF_SIZE, H5P_DEFAULT) < 0) {
H5_FAILED();
@@ -13209,7 +13209,7 @@ test_get_link_val(void)
PART_ERROR(H5Lget_val_by_idx_external_name_order_increasing);
}
- HDmemset(&link_info, 0, sizeof(link_info));
+ memset(&link_info, 0, sizeof(link_info));
if (H5Lget_info_by_idx2(subgroup_id, ".", H5_INDEX_NAME, H5_ITER_INC, 2, &link_info,
H5P_DEFAULT) < 0) {
H5_FAILED();
@@ -13225,7 +13225,7 @@ test_get_link_val(void)
PART_ERROR(H5Lget_val_by_idx_external_name_order_increasing);
}
- HDmemset(link_val_buf, 0, GET_LINK_VAL_TEST_LINK_VAL_BUF_SIZE);
+ memset(link_val_buf, 0, GET_LINK_VAL_TEST_LINK_VAL_BUF_SIZE);
if (H5Lget_val_by_idx(subgroup_id, ".", H5_INDEX_NAME, H5_ITER_INC, 2, link_val_buf,
GET_LINK_VAL_TEST_LINK_VAL_BUF_SIZE, H5P_DEFAULT) < 0) {
H5_FAILED();
@@ -13363,7 +13363,7 @@ test_get_link_val(void)
}
/* Retrieve the info and value of each link in turn */
- HDmemset(&link_info, 0, sizeof(link_info));
+ memset(&link_info, 0, sizeof(link_info));
if (H5Lget_info_by_idx2(subgroup_id, ".", H5_INDEX_NAME, H5_ITER_DEC, 2, &link_info,
H5P_DEFAULT) < 0) {
H5_FAILED();
@@ -13379,7 +13379,7 @@ test_get_link_val(void)
PART_ERROR(H5Lget_val_by_idx_external_name_order_decreasing);
}
- HDmemset(link_val_buf, 0, GET_LINK_VAL_TEST_LINK_VAL_BUF_SIZE);
+ memset(link_val_buf, 0, GET_LINK_VAL_TEST_LINK_VAL_BUF_SIZE);
if (H5Lget_val_by_idx(subgroup_id, ".", H5_INDEX_NAME, H5_ITER_DEC, 2, link_val_buf,
GET_LINK_VAL_TEST_LINK_VAL_BUF_SIZE, H5P_DEFAULT) < 0) {
H5_FAILED();
@@ -13408,7 +13408,7 @@ test_get_link_val(void)
PART_ERROR(H5Lget_val_by_idx_external_name_order_decreasing);
}
- HDmemset(&link_info, 0, sizeof(link_info));
+ memset(&link_info, 0, sizeof(link_info));
if (H5Lget_info_by_idx2(subgroup_id, ".", H5_INDEX_NAME, H5_ITER_DEC, 1, &link_info,
H5P_DEFAULT) < 0) {
H5_FAILED();
@@ -13424,7 +13424,7 @@ test_get_link_val(void)
PART_ERROR(H5Lget_val_by_idx_external_name_order_decreasing);
}
- HDmemset(link_val_buf, 0, GET_LINK_VAL_TEST_LINK_VAL_BUF_SIZE);
+ memset(link_val_buf, 0, GET_LINK_VAL_TEST_LINK_VAL_BUF_SIZE);
if (H5Lget_val_by_idx(subgroup_id, ".", H5_INDEX_NAME, H5_ITER_DEC, 1, link_val_buf,
GET_LINK_VAL_TEST_LINK_VAL_BUF_SIZE, H5P_DEFAULT) < 0) {
H5_FAILED();
@@ -13453,7 +13453,7 @@ test_get_link_val(void)
PART_ERROR(H5Lget_val_by_idx_external_name_order_decreasing);
}
- HDmemset(&link_info, 0, sizeof(link_info));
+ memset(&link_info, 0, sizeof(link_info));
if (H5Lget_info_by_idx2(subgroup_id, ".", H5_INDEX_NAME, H5_ITER_DEC, 0, &link_info,
H5P_DEFAULT) < 0) {
H5_FAILED();
@@ -13469,7 +13469,7 @@ test_get_link_val(void)
PART_ERROR(H5Lget_val_by_idx_external_name_order_decreasing);
}
- HDmemset(link_val_buf, 0, GET_LINK_VAL_TEST_LINK_VAL_BUF_SIZE);
+ memset(link_val_buf, 0, GET_LINK_VAL_TEST_LINK_VAL_BUF_SIZE);
if (H5Lget_val_by_idx(subgroup_id, ".", H5_INDEX_NAME, H5_ITER_DEC, 0, link_val_buf,
GET_LINK_VAL_TEST_LINK_VAL_BUF_SIZE, H5P_DEFAULT) < 0) {
H5_FAILED();
@@ -13705,7 +13705,7 @@ test_get_link_val_invalid_params(void)
{
TESTING_2("H5Lget_val with an invalid location ID");
- HDmemset(&link_info, 0, sizeof(link_info));
+ memset(&link_info, 0, sizeof(link_info));
H5E_BEGIN_TRY
{
@@ -13781,7 +13781,7 @@ test_get_link_val_invalid_params(void)
{
TESTING_2("H5Lget_val_by_idx with an invalid location ID");
- HDmemset(&link_info, 0, sizeof(link_info));
+ memset(&link_info, 0, sizeof(link_info));
H5E_BEGIN_TRY
{
@@ -14033,7 +14033,7 @@ test_get_link_info(void)
{
TESTING_2("H5Lget_info2 on hard link");
- HDmemset(&link_info, 0, sizeof(link_info));
+ memset(&link_info, 0, sizeof(link_info));
if ((subgroup_id = H5Gcreate2(group_id, GET_LINK_INFO_TEST_SUBGROUP1_NAME, H5P_DEFAULT, gcpl_id,
H5P_DEFAULT)) < 0) {
@@ -14104,7 +14104,7 @@ test_get_link_info(void)
{
TESTING_2("H5Lget_info2 on soft link");
- HDmemset(&link_info, 0, sizeof(link_info));
+ memset(&link_info, 0, sizeof(link_info));
if ((subgroup_id = H5Gcreate2(group_id, GET_LINK_INFO_TEST_SUBGROUP2_NAME, H5P_DEFAULT, gcpl_id,
H5P_DEFAULT)) < 0) {
@@ -14187,7 +14187,7 @@ test_get_link_info(void)
{
TESTING_2("H5Lget_info2 on external link");
- HDmemset(&link_info, 0, sizeof(link_info));
+ memset(&link_info, 0, sizeof(link_info));
HDsnprintf(ext_link_filename, H5_API_TEST_FILENAME_MAX_LENGTH, "%s",
EXTERNAL_LINK_TEST_FILE_NAME);
@@ -14380,7 +14380,7 @@ test_get_link_info(void)
}
/* Retrieve info of links in turn */
- HDmemset(&link_info, 0, sizeof(link_info));
+ memset(&link_info, 0, sizeof(link_info));
if (H5Lget_info_by_idx2(subgroup_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_INC, 0, &link_info,
H5P_DEFAULT) < 0) {
H5_FAILED();
@@ -14401,7 +14401,7 @@ test_get_link_info(void)
PART_ERROR(H5Lget_info_by_idx_hard_crt_order_increasing);
}
- HDmemset(&link_info, 0, sizeof(link_info));
+ memset(&link_info, 0, sizeof(link_info));
if (H5Lget_info_by_idx2(subgroup_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_INC, 1, &link_info,
H5P_DEFAULT) < 0) {
H5_FAILED();
@@ -14422,7 +14422,7 @@ test_get_link_info(void)
PART_ERROR(H5Lget_info_by_idx_hard_crt_order_increasing);
}
- HDmemset(&link_info, 0, sizeof(link_info));
+ memset(&link_info, 0, sizeof(link_info));
if (H5Lget_info_by_idx2(subgroup_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_INC, 2, &link_info,
H5P_DEFAULT) < 0) {
H5_FAILED();
@@ -14543,7 +14543,7 @@ test_get_link_info(void)
}
/* Retrieve info of links in turn */
- HDmemset(&link_info, 0, sizeof(link_info));
+ memset(&link_info, 0, sizeof(link_info));
if (H5Lget_info_by_idx2(subgroup_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_DEC, 2, &link_info,
H5P_DEFAULT) < 0) {
H5_FAILED();
@@ -14564,7 +14564,7 @@ test_get_link_info(void)
PART_ERROR(H5Lget_info_by_idx_hard_crt_order_decreasing);
}
- HDmemset(&link_info, 0, sizeof(link_info));
+ memset(&link_info, 0, sizeof(link_info));
if (H5Lget_info_by_idx2(subgroup_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_DEC, 1, &link_info,
H5P_DEFAULT) < 0) {
H5_FAILED();
@@ -14585,7 +14585,7 @@ test_get_link_info(void)
PART_ERROR(H5Lget_info_by_idx_hard_crt_order_decreasing);
}
- HDmemset(&link_info, 0, sizeof(link_info));
+ memset(&link_info, 0, sizeof(link_info));
if (H5Lget_info_by_idx2(subgroup_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_DEC, 0, &link_info,
H5P_DEFAULT) < 0) {
H5_FAILED();
@@ -14700,7 +14700,7 @@ test_get_link_info(void)
}
/* Retrieve info of links in turn */
- HDmemset(&link_info, 0, sizeof(link_info));
+ memset(&link_info, 0, sizeof(link_info));
if (H5Lget_info_by_idx2(subgroup_id, ".", H5_INDEX_NAME, H5_ITER_INC, 0, &link_info,
H5P_DEFAULT) < 0) {
H5_FAILED();
@@ -14723,7 +14723,7 @@ test_get_link_info(void)
}
}
- HDmemset(&link_info, 0, sizeof(link_info));
+ memset(&link_info, 0, sizeof(link_info));
if (H5Lget_info_by_idx2(subgroup_id, ".", H5_INDEX_NAME, H5_ITER_INC, 1, &link_info,
H5P_DEFAULT) < 0) {
H5_FAILED();
@@ -14746,7 +14746,7 @@ test_get_link_info(void)
}
}
- HDmemset(&link_info, 0, sizeof(link_info));
+ memset(&link_info, 0, sizeof(link_info));
if (H5Lget_info_by_idx2(subgroup_id, ".", H5_INDEX_NAME, H5_ITER_INC, 2, &link_info,
H5P_DEFAULT) < 0) {
H5_FAILED();
@@ -14863,7 +14863,7 @@ test_get_link_info(void)
}
/* Retrieve info of links in turn */
- HDmemset(&link_info, 0, sizeof(link_info));
+ memset(&link_info, 0, sizeof(link_info));
if (H5Lget_info_by_idx2(subgroup_id, ".", H5_INDEX_NAME, H5_ITER_DEC, 2, &link_info,
H5P_DEFAULT) < 0) {
H5_FAILED();
@@ -14886,7 +14886,7 @@ test_get_link_info(void)
}
}
- HDmemset(&link_info, 0, sizeof(link_info));
+ memset(&link_info, 0, sizeof(link_info));
if (H5Lget_info_by_idx2(subgroup_id, ".", H5_INDEX_NAME, H5_ITER_DEC, 1, &link_info,
H5P_DEFAULT) < 0) {
H5_FAILED();
@@ -14909,7 +14909,7 @@ test_get_link_info(void)
}
}
- HDmemset(&link_info, 0, sizeof(link_info));
+ memset(&link_info, 0, sizeof(link_info));
if (H5Lget_info_by_idx2(subgroup_id, ".", H5_INDEX_NAME, H5_ITER_DEC, 0, &link_info,
H5P_DEFAULT) < 0) {
H5_FAILED();
@@ -15038,7 +15038,7 @@ test_get_link_info(void)
}
/* Retrieve info of links in turn */
- HDmemset(&link_info, 0, sizeof(link_info));
+ memset(&link_info, 0, sizeof(link_info));
if (H5Lget_info_by_idx2(subgroup_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_INC, 0, &link_info,
H5P_DEFAULT) < 0) {
H5_FAILED();
@@ -15069,7 +15069,7 @@ test_get_link_info(void)
PART_ERROR(H5Lget_info_by_idx_soft_crt_order_increasing);
}
- HDmemset(&link_info, 0, sizeof(link_info));
+ memset(&link_info, 0, sizeof(link_info));
if (H5Lget_info_by_idx2(subgroup_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_INC, 1, &link_info,
H5P_DEFAULT) < 0) {
H5_FAILED();
@@ -15100,7 +15100,7 @@ test_get_link_info(void)
PART_ERROR(H5Lget_info_by_idx_soft_crt_order_increasing);
}
- HDmemset(&link_info, 0, sizeof(link_info));
+ memset(&link_info, 0, sizeof(link_info));
if (H5Lget_info_by_idx2(subgroup_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_INC, 2, &link_info,
H5P_DEFAULT) < 0) {
H5_FAILED();
@@ -15237,7 +15237,7 @@ test_get_link_info(void)
}
/* Retrieve info of links in turn */
- HDmemset(&link_info, 0, sizeof(link_info));
+ memset(&link_info, 0, sizeof(link_info));
if (H5Lget_info_by_idx2(subgroup_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_DEC, 2, &link_info,
H5P_DEFAULT) < 0) {
H5_FAILED();
@@ -15268,7 +15268,7 @@ test_get_link_info(void)
PART_ERROR(H5Lget_info_by_idx_soft_crt_order_decreasing);
}
- HDmemset(&link_info, 0, sizeof(link_info));
+ memset(&link_info, 0, sizeof(link_info));
if (H5Lget_info_by_idx2(subgroup_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_DEC, 1, &link_info,
H5P_DEFAULT) < 0) {
H5_FAILED();
@@ -15299,7 +15299,7 @@ test_get_link_info(void)
PART_ERROR(H5Lget_info_by_idx_soft_crt_order_decreasing);
}
- HDmemset(&link_info, 0, sizeof(link_info));
+ memset(&link_info, 0, sizeof(link_info));
if (H5Lget_info_by_idx2(subgroup_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_DEC, 0, &link_info,
H5P_DEFAULT) < 0) {
H5_FAILED();
@@ -15430,7 +15430,7 @@ test_get_link_info(void)
}
/* Retrieve info of links in turn */
- HDmemset(&link_info, 0, sizeof(link_info));
+ memset(&link_info, 0, sizeof(link_info));
if (H5Lget_info_by_idx2(subgroup_id, ".", H5_INDEX_NAME, H5_ITER_INC, 0, &link_info,
H5P_DEFAULT) < 0) {
H5_FAILED();
@@ -15463,7 +15463,7 @@ test_get_link_info(void)
}
}
- HDmemset(&link_info, 0, sizeof(link_info));
+ memset(&link_info, 0, sizeof(link_info));
if (H5Lget_info_by_idx2(subgroup_id, ".", H5_INDEX_NAME, H5_ITER_INC, 1, &link_info,
H5P_DEFAULT) < 0) {
H5_FAILED();
@@ -15496,7 +15496,7 @@ test_get_link_info(void)
}
}
- HDmemset(&link_info, 0, sizeof(link_info));
+ memset(&link_info, 0, sizeof(link_info));
if (H5Lget_info_by_idx2(subgroup_id, ".", H5_INDEX_NAME, H5_ITER_INC, 2, &link_info,
H5P_DEFAULT) < 0) {
H5_FAILED();
@@ -15629,7 +15629,7 @@ test_get_link_info(void)
}
/* Retrieve info of links in turn */
- HDmemset(&link_info, 0, sizeof(link_info));
+ memset(&link_info, 0, sizeof(link_info));
if (H5Lget_info_by_idx2(subgroup_id, ".", H5_INDEX_NAME, H5_ITER_DEC, 2, &link_info,
H5P_DEFAULT) < 0) {
H5_FAILED();
@@ -15662,7 +15662,7 @@ test_get_link_info(void)
}
}
- HDmemset(&link_info, 0, sizeof(link_info));
+ memset(&link_info, 0, sizeof(link_info));
if (H5Lget_info_by_idx2(subgroup_id, ".", H5_INDEX_NAME, H5_ITER_DEC, 1, &link_info,
H5P_DEFAULT) < 0) {
H5_FAILED();
@@ -15695,7 +15695,7 @@ test_get_link_info(void)
}
}
- HDmemset(&link_info, 0, sizeof(link_info));
+ memset(&link_info, 0, sizeof(link_info));
if (H5Lget_info_by_idx2(subgroup_id, ".", H5_INDEX_NAME, H5_ITER_DEC, 0, &link_info,
H5P_DEFAULT) < 0) {
H5_FAILED();
@@ -15843,7 +15843,7 @@ test_get_link_info(void)
}
/* Retrieve info of links in turn */
- HDmemset(&link_info, 0, sizeof(link_info));
+ memset(&link_info, 0, sizeof(link_info));
if (H5Lget_info_by_idx2(subgroup_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_INC, 0, &link_info,
H5P_DEFAULT) < 0) {
H5_FAILED();
@@ -15872,7 +15872,7 @@ test_get_link_info(void)
PART_ERROR(H5Lget_info_by_idx_external_crt_order_increasing);
}
- HDmemset(&link_info, 0, sizeof(link_info));
+ memset(&link_info, 0, sizeof(link_info));
if (H5Lget_info_by_idx2(subgroup_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_INC, 1, &link_info,
H5P_DEFAULT) < 0) {
H5_FAILED();
@@ -15901,7 +15901,7 @@ test_get_link_info(void)
PART_ERROR(H5Lget_info_by_idx_external_crt_order_increasing);
}
- HDmemset(&link_info, 0, sizeof(link_info));
+ memset(&link_info, 0, sizeof(link_info));
if (H5Lget_info_by_idx2(subgroup_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_INC, 2, &link_info,
H5P_DEFAULT) < 0) {
H5_FAILED();
@@ -16047,7 +16047,7 @@ test_get_link_info(void)
}
/* Retrieve info of links in turn */
- HDmemset(&link_info, 0, sizeof(link_info));
+ memset(&link_info, 0, sizeof(link_info));
if (H5Lget_info_by_idx2(subgroup_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_DEC, 2, &link_info,
H5P_DEFAULT) < 0) {
H5_FAILED();
@@ -16076,7 +16076,7 @@ test_get_link_info(void)
PART_ERROR(H5Lget_info_by_idx_external_crt_order_decreasing);
}
- HDmemset(&link_info, 0, sizeof(link_info));
+ memset(&link_info, 0, sizeof(link_info));
if (H5Lget_info_by_idx2(subgroup_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_DEC, 1, &link_info,
H5P_DEFAULT) < 0) {
H5_FAILED();
@@ -16105,7 +16105,7 @@ test_get_link_info(void)
PART_ERROR(H5Lget_info_by_idx_external_crt_order_decreasing);
}
- HDmemset(&link_info, 0, sizeof(link_info));
+ memset(&link_info, 0, sizeof(link_info));
if (H5Lget_info_by_idx2(subgroup_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_DEC, 0, &link_info,
H5P_DEFAULT) < 0) {
H5_FAILED();
@@ -16245,7 +16245,7 @@ test_get_link_info(void)
}
/* Retrieve info of links in turn */
- HDmemset(&link_info, 0, sizeof(link_info));
+ memset(&link_info, 0, sizeof(link_info));
if (H5Lget_info_by_idx2(subgroup_id, ".", H5_INDEX_NAME, H5_ITER_INC, 0, &link_info,
H5P_DEFAULT) < 0) {
H5_FAILED();
@@ -16276,7 +16276,7 @@ test_get_link_info(void)
}
}
- HDmemset(&link_info, 0, sizeof(link_info));
+ memset(&link_info, 0, sizeof(link_info));
if (H5Lget_info_by_idx2(subgroup_id, ".", H5_INDEX_NAME, H5_ITER_INC, 1, &link_info,
H5P_DEFAULT) < 0) {
H5_FAILED();
@@ -16307,7 +16307,7 @@ test_get_link_info(void)
}
}
- HDmemset(&link_info, 0, sizeof(link_info));
+ memset(&link_info, 0, sizeof(link_info));
if (H5Lget_info_by_idx2(subgroup_id, ".", H5_INDEX_NAME, H5_ITER_INC, 2, &link_info,
H5P_DEFAULT) < 0) {
H5_FAILED();
@@ -16449,7 +16449,7 @@ test_get_link_info(void)
}
/* Retrieve info of links in turn */
- HDmemset(&link_info, 0, sizeof(link_info));
+ memset(&link_info, 0, sizeof(link_info));
if (H5Lget_info_by_idx2(subgroup_id, ".", H5_INDEX_NAME, H5_ITER_DEC, 2, &link_info,
H5P_DEFAULT) < 0) {
H5_FAILED();
@@ -16480,7 +16480,7 @@ test_get_link_info(void)
}
}
- HDmemset(&link_info, 0, sizeof(link_info));
+ memset(&link_info, 0, sizeof(link_info));
if (H5Lget_info_by_idx2(subgroup_id, ".", H5_INDEX_NAME, H5_ITER_DEC, 1, &link_info,
H5P_DEFAULT) < 0) {
H5_FAILED();
@@ -16511,7 +16511,7 @@ test_get_link_info(void)
}
}
- HDmemset(&link_info, 0, sizeof(link_info));
+ memset(&link_info, 0, sizeof(link_info));
if (H5Lget_info_by_idx2(subgroup_id, ".", H5_INDEX_NAME, H5_ITER_DEC, 0, &link_info,
H5P_DEFAULT) < 0) {
H5_FAILED();
@@ -16740,7 +16740,7 @@ test_get_link_info_invalid_params(void)
{
TESTING_2("H5Lget_info2 with an invalid location ID");
- HDmemset(&link_info, 0, sizeof(link_info));
+ memset(&link_info, 0, sizeof(link_info));
H5E_BEGIN_TRY
{
@@ -16812,7 +16812,7 @@ test_get_link_info_invalid_params(void)
}
PART_END(H5Lget_info_invalid_lapl);
- HDmemset(&link_info, 0, sizeof(link_info));
+ memset(&link_info, 0, sizeof(link_info));
PART_BEGIN(H5Lget_info_by_idx_invalid_loc_id)
{
diff --git a/test/API/tarray.c b/test/API/tarray.c
index 935379e..39bb419 100644
--- a/test/API/tarray.c
+++ b/test/API/tarray.c
@@ -1634,7 +1634,7 @@ test_array_bkg(void)
/* ------------------- */
dtsinfo = (CmpDTSinfo *)malloc(sizeof(CmpDTSinfo));
CHECK_PTR(dtsinfo, "malloc");
- HDmemset(dtsinfo, 0, sizeof(CmpDTSinfo));
+ memset(dtsinfo, 0, sizeof(CmpDTSinfo));
for (i = 0; i < LENGTH; i++) {
for (j = 0; j < ALEN; j++) {
cf[i].a[j] = 100 * (i + 1) + j;
@@ -1849,7 +1849,7 @@ test_array_bkg(void)
/* Reset the data to read in */
/* ------------------------- */
- HDmemset(cfr, 0, sizeof(CmpField) * LENGTH);
+ memset(cfr, 0, sizeof(CmpField) * LENGTH);
status = H5Dread(dataset, type, H5S_ALL, H5S_ALL, H5P_DEFAULT, cfr);
CHECK(status, FAIL, "H5Dread");
diff --git a/test/API/tattr.c b/test/API/tattr.c
index 06a45e5..182d62d 100644
--- a/test/API/tattr.c
+++ b/test/API/tattr.c
@@ -935,7 +935,7 @@ test_attr_compound_read(hid_t fapl)
/* Verify values read in */
for (i = 0; i < ATTR4_DIM1; i++)
for (j = 0; j < ATTR4_DIM2; j++)
- if (HDmemcmp(&attr_data4[i][j], &read_data4[i][j], sizeof(struct attr4_struct)) != 0) {
+ if (memcmp(&attr_data4[i][j], &read_data4[i][j], sizeof(struct attr4_struct)) != 0) {
printf("%d: attribute data different: attr_data4[%d][%d].i=%d, read_data4[%d][%d].i=%d\n",
__LINE__, i, j, attr_data4[i][j].i, i, j, read_data4[i][j].i);
printf("%d: attribute data different: attr_data4[%d][%d].d=%f, read_data4[%d][%d].d=%f\n",
@@ -5832,19 +5832,19 @@ attr_info_by_idx_check(hid_t obj_id, const char *attrname, hsize_t n, hbool_t us
old_nerrs = nerrors;
/* Verify the information for first attribute, in increasing creation order */
- HDmemset(&ainfo, 0, sizeof(ainfo));
+ memset(&ainfo, 0, sizeof(ainfo));
ret = H5Aget_info_by_idx(obj_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_INC, (hsize_t)0, &ainfo, H5P_DEFAULT);
CHECK(ret, FAIL, "H5Aget_info_by_idx");
VERIFY(ainfo.corder, 0, "H5Aget_info_by_idx");
/* Verify the information for new attribute, in increasing creation order */
- HDmemset(&ainfo, 0, sizeof(ainfo));
+ memset(&ainfo, 0, sizeof(ainfo));
ret = H5Aget_info_by_idx(obj_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_INC, n, &ainfo, H5P_DEFAULT);
CHECK(ret, FAIL, "H5Aget_info_by_idx");
VERIFY(ainfo.corder, n, "H5Aget_info_by_idx");
/* Verify the name for new link, in increasing creation order */
- HDmemset(tmpname, 0, (size_t)NAME_BUF_SIZE);
+ memset(tmpname, 0, (size_t)NAME_BUF_SIZE);
ret = (herr_t)H5Aget_name_by_idx(obj_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_INC, n, tmpname,
(size_t)NAME_BUF_SIZE, H5P_DEFAULT);
CHECK(ret, FAIL, "H5Aget_name_by_idx");
@@ -5857,21 +5857,21 @@ attr_info_by_idx_check(hid_t obj_id, const char *attrname, hsize_t n, hbool_t us
*/
if (use_index) {
/* Verify the information for first attribute, in native creation order */
- HDmemset(&ainfo, 0, sizeof(ainfo));
+ memset(&ainfo, 0, sizeof(ainfo));
ret = H5Aget_info_by_idx(obj_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_INC /* H5_ITER_NATIVE */,
(hsize_t)0, &ainfo, H5P_DEFAULT);
CHECK(ret, FAIL, "H5Aget_info_by_idx");
VERIFY(ainfo.corder, 0, "H5Aget_info_by_idx");
/* Verify the information for new attribute, in native creation order */
- HDmemset(&ainfo, 0, sizeof(ainfo));
+ memset(&ainfo, 0, sizeof(ainfo));
ret = H5Aget_info_by_idx(obj_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_INC /* H5_ITER_NATIVE */, n, &ainfo,
H5P_DEFAULT);
CHECK(ret, FAIL, "H5Aget_info_by_idx");
VERIFY(ainfo.corder, n, "H5Aget_info_by_idx");
/* Verify the name for new link, in increasing native order */
- HDmemset(tmpname, 0, (size_t)NAME_BUF_SIZE);
+ memset(tmpname, 0, (size_t)NAME_BUF_SIZE);
ret = (herr_t)H5Aget_name_by_idx(obj_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_INC /* H5_ITER_NATIVE */, n,
tmpname, (size_t)NAME_BUF_SIZE, H5P_DEFAULT);
CHECK(ret, FAIL, "H5Aget_name_by_idx");
@@ -5880,19 +5880,19 @@ attr_info_by_idx_check(hid_t obj_id, const char *attrname, hsize_t n, hbool_t us
} /* end if */
/* Verify the information for first attribute, in decreasing creation order */
- HDmemset(&ainfo, 0, sizeof(ainfo));
+ memset(&ainfo, 0, sizeof(ainfo));
ret = H5Aget_info_by_idx(obj_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_DEC, n, &ainfo, H5P_DEFAULT);
CHECK(ret, FAIL, "H5Aget_info_by_idx");
VERIFY(ainfo.corder, 0, "H5Aget_info_by_idx");
/* Verify the information for new attribute, in increasing creation order */
- HDmemset(&ainfo, 0, sizeof(ainfo));
+ memset(&ainfo, 0, sizeof(ainfo));
ret = H5Aget_info_by_idx(obj_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_DEC, (hsize_t)0, &ainfo, H5P_DEFAULT);
CHECK(ret, FAIL, "H5Aget_info_by_idx");
VERIFY(ainfo.corder, n, "H5Aget_info_by_idx");
/* Verify the name for new link, in increasing creation order */
- HDmemset(tmpname, 0, (size_t)NAME_BUF_SIZE);
+ memset(tmpname, 0, (size_t)NAME_BUF_SIZE);
ret = (herr_t)H5Aget_name_by_idx(obj_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_DEC, (hsize_t)0, tmpname,
(size_t)NAME_BUF_SIZE, H5P_DEFAULT);
CHECK(ret, FAIL, "H5Aget_name_by_idx");
@@ -5900,19 +5900,19 @@ attr_info_by_idx_check(hid_t obj_id, const char *attrname, hsize_t n, hbool_t us
TestErrPrintf("Line %d: attribute name size wrong!\n", __LINE__);
/* Verify the information for first attribute, in increasing name order */
- HDmemset(&ainfo, 0, sizeof(ainfo));
+ memset(&ainfo, 0, sizeof(ainfo));
ret = H5Aget_info_by_idx(obj_id, ".", H5_INDEX_NAME, H5_ITER_INC, (hsize_t)0, &ainfo, H5P_DEFAULT);
CHECK(ret, FAIL, "H5Aget_info_by_idx");
VERIFY(ainfo.corder, 0, "H5Aget_info_by_idx");
/* Verify the information for new attribute, in increasing name order */
- HDmemset(&ainfo, 0, sizeof(ainfo));
+ memset(&ainfo, 0, sizeof(ainfo));
ret = H5Aget_info_by_idx(obj_id, ".", H5_INDEX_NAME, H5_ITER_INC, n, &ainfo, H5P_DEFAULT);
CHECK(ret, FAIL, "H5Aget_info_by_idx");
VERIFY(ainfo.corder, n, "H5Aget_info_by_idx");
/* Verify the name for new link, in increasing name order */
- HDmemset(tmpname, 0, (size_t)NAME_BUF_SIZE);
+ memset(tmpname, 0, (size_t)NAME_BUF_SIZE);
ret = (herr_t)H5Aget_name_by_idx(obj_id, ".", H5_INDEX_NAME, H5_ITER_INC, n, tmpname,
(size_t)NAME_BUF_SIZE, H5P_DEFAULT);
CHECK(ret, FAIL, "H5Aget_name_by_idx");
@@ -5924,19 +5924,19 @@ attr_info_by_idx_check(hid_t obj_id, const char *attrname, hsize_t n, hbool_t us
*/
/* Verify the information for first attribute, in decreasing name order */
- HDmemset(&ainfo, 0, sizeof(ainfo));
+ memset(&ainfo, 0, sizeof(ainfo));
ret = H5Aget_info_by_idx(obj_id, ".", H5_INDEX_NAME, H5_ITER_DEC, n, &ainfo, H5P_DEFAULT);
CHECK(ret, FAIL, "H5Aget_info_by_idx");
VERIFY(ainfo.corder, 0, "H5Aget_info_by_idx");
/* Verify the information for new attribute, in increasing name order */
- HDmemset(&ainfo, 0, sizeof(ainfo));
+ memset(&ainfo, 0, sizeof(ainfo));
ret = H5Aget_info_by_idx(obj_id, ".", H5_INDEX_NAME, H5_ITER_DEC, (hsize_t)0, &ainfo, H5P_DEFAULT);
CHECK(ret, FAIL, "H5Aget_info_by_idx");
VERIFY(ainfo.corder, n, "H5Aget_info_by_idx");
/* Verify the name for new link, in increasing name order */
- HDmemset(tmpname, 0, (size_t)NAME_BUF_SIZE);
+ memset(tmpname, 0, (size_t)NAME_BUF_SIZE);
ret = (herr_t)H5Aget_name_by_idx(obj_id, ".", H5_INDEX_NAME, H5_ITER_DEC, (hsize_t)0, tmpname,
(size_t)NAME_BUF_SIZE, H5P_DEFAULT);
CHECK(ret, FAIL, "H5Aget_name_by_idx");
@@ -6654,7 +6654,7 @@ test_attr_delete_by_idx(hbool_t new_format, hid_t fcpl, hid_t fapl)
CHECK(ret, FAIL, "H5Adelete_by_idx");
/* Verify the attribute information for first attribute in appropriate order */
- HDmemset(&ainfo, 0, sizeof(ainfo));
+ memset(&ainfo, 0, sizeof(ainfo));
ret = H5Aget_info_by_idx(my_dataset, ".", idx_type, order, (hsize_t)0, &ainfo,
H5P_DEFAULT);
if (new_format) {
@@ -6667,7 +6667,7 @@ test_attr_delete_by_idx(hbool_t new_format, hid_t fcpl, hid_t fapl)
} /* end if */
/* Verify the name for first attribute in appropriate order */
- HDmemset(tmpname, 0, (size_t)NAME_BUF_SIZE);
+ memset(tmpname, 0, (size_t)NAME_BUF_SIZE);
ret = (herr_t)H5Aget_name_by_idx(my_dataset, ".", idx_type, order, (hsize_t)0,
tmpname, (size_t)NAME_BUF_SIZE, H5P_DEFAULT);
if (order == H5_ITER_INC)
@@ -6787,7 +6787,7 @@ test_attr_delete_by_idx(hbool_t new_format, hid_t fcpl, hid_t fapl)
CHECK(ret, FAIL, "H5Adelete_by_idx");
/* Verify the attribute information for first attribute in appropriate order */
- HDmemset(&ainfo, 0, sizeof(ainfo));
+ memset(&ainfo, 0, sizeof(ainfo));
ret = H5Aget_info_by_idx(my_dataset, ".", idx_type, order, (hsize_t)0, &ainfo,
H5P_DEFAULT);
if (new_format) {
@@ -6800,7 +6800,7 @@ test_attr_delete_by_idx(hbool_t new_format, hid_t fcpl, hid_t fapl)
} /* end if */
/* Verify the name for first attribute in appropriate order */
- HDmemset(tmpname, 0, (size_t)NAME_BUF_SIZE);
+ memset(tmpname, 0, (size_t)NAME_BUF_SIZE);
ret = (herr_t)H5Aget_name_by_idx(my_dataset, ".", idx_type, order, (hsize_t)0,
tmpname, (size_t)NAME_BUF_SIZE, H5P_DEFAULT);
if (order == H5_ITER_INC)
@@ -6904,7 +6904,7 @@ test_attr_delete_by_idx(hbool_t new_format, hid_t fcpl, hid_t fapl)
CHECK(ret, FAIL, "H5Adelete_by_idx");
/* Verify the attribute information for first attribute in appropriate order */
- HDmemset(&ainfo, 0, sizeof(ainfo));
+ memset(&ainfo, 0, sizeof(ainfo));
ret = H5Aget_info_by_idx(my_dataset, ".", idx_type, order, (hsize_t)u, &ainfo,
H5P_DEFAULT);
if (new_format) {
@@ -6918,7 +6918,7 @@ test_attr_delete_by_idx(hbool_t new_format, hid_t fcpl, hid_t fapl)
} /* end if */
/* Verify the name for first attribute in appropriate order */
- HDmemset(tmpname, 0, (size_t)NAME_BUF_SIZE);
+ memset(tmpname, 0, (size_t)NAME_BUF_SIZE);
ret = (herr_t)H5Aget_name_by_idx(my_dataset, ".", idx_type, order, (hsize_t)u,
tmpname, (size_t)NAME_BUF_SIZE, H5P_DEFAULT);
if (order == H5_ITER_INC)
@@ -6957,7 +6957,7 @@ test_attr_delete_by_idx(hbool_t new_format, hid_t fcpl, hid_t fapl)
CHECK(ret, FAIL, "H5Adelete_by_idx");
/* Verify the attribute information for first attribute in appropriate order */
- HDmemset(&ainfo, 0, sizeof(ainfo));
+ memset(&ainfo, 0, sizeof(ainfo));
ret = H5Aget_info_by_idx(my_dataset, ".", idx_type, order, (hsize_t)0, &ainfo,
H5P_DEFAULT);
if (new_format) {
@@ -6971,7 +6971,7 @@ test_attr_delete_by_idx(hbool_t new_format, hid_t fcpl, hid_t fapl)
} /* end if */
/* Verify the name for first attribute in appropriate order */
- HDmemset(tmpname, 0, (size_t)NAME_BUF_SIZE);
+ memset(tmpname, 0, (size_t)NAME_BUF_SIZE);
ret = (herr_t)H5Aget_name_by_idx(my_dataset, ".", idx_type, order, (hsize_t)0,
tmpname, (size_t)NAME_BUF_SIZE, H5P_DEFAULT);
if (order == H5_ITER_INC)
@@ -7162,7 +7162,7 @@ attr_iterate_check(hid_t fid, const char *dsetname, hid_t obj_id, H5_index_t idx
iter_info->stop = -1;
iter_info->ncalled = 0;
iter_info->curr = order != H5_ITER_DEC ? 0 : (max_attrs - 1);
- HDmemset(iter_info->visited, 0, sizeof(hbool_t) * iter_info->max_visit);
+ memset(iter_info->visited, 0, sizeof(hbool_t) * iter_info->max_visit);
ret = H5Aiterate2(obj_id, idx_type, order, &skip, attr_iterate2_cb, iter_info);
CHECK(ret, FAIL, "H5Aiterate2");
@@ -7177,7 +7177,7 @@ attr_iterate_check(hid_t fid, const char *dsetname, hid_t obj_id, H5_index_t idx
iter_info->stop = -1;
iter_info->ncalled = 0;
iter_info->curr = order != H5_ITER_DEC ? 0 : (max_attrs - 1);
- HDmemset(iter_info->visited, 0, sizeof(hbool_t) * iter_info->max_visit);
+ memset(iter_info->visited, 0, sizeof(hbool_t) * iter_info->max_visit);
ret = H5Aiterate_by_name(fid, dsetname, idx_type, order, &skip, attr_iterate2_cb, iter_info, H5P_DEFAULT);
CHECK(ret, FAIL, "H5Aiterate_by_name");
@@ -7192,7 +7192,7 @@ attr_iterate_check(hid_t fid, const char *dsetname, hid_t obj_id, H5_index_t idx
iter_info->stop = -1;
iter_info->ncalled = 0;
iter_info->curr = order != H5_ITER_DEC ? 0 : (max_attrs - 1);
- HDmemset(iter_info->visited, 0, sizeof(hbool_t) * iter_info->max_visit);
+ memset(iter_info->visited, 0, sizeof(hbool_t) * iter_info->max_visit);
ret = H5Aiterate_by_name(obj_id, ".", idx_type, order, &skip, attr_iterate2_cb, iter_info, H5P_DEFAULT);
CHECK(ret, FAIL, "H5Aiterate_by_name");
@@ -7209,7 +7209,7 @@ attr_iterate_check(hid_t fid, const char *dsetname, hid_t obj_id, H5_index_t idx
iter_info->stop = -1;
iter_info->ncalled = 0;
iter_info->curr = order != H5_ITER_DEC ? 0 : (max_attrs - 1);
- HDmemset(iter_info->visited, 0, sizeof(hbool_t) * iter_info->max_visit);
+ memset(iter_info->visited, 0, sizeof(hbool_t) * iter_info->max_visit);
ret = H5Aiterate1(obj_id, &oskip, attr_iterate1_cb, iter_info);
CHECK(ret, FAIL, "H5Aiterate1");
@@ -7226,7 +7226,7 @@ attr_iterate_check(hid_t fid, const char *dsetname, hid_t obj_id, H5_index_t idx
iter_info->stop = -1;
iter_info->ncalled = 0;
iter_info->curr = order != H5_ITER_DEC ? skip : ((max_attrs - 1) - skip);
- HDmemset(iter_info->visited, 0, sizeof(hbool_t) * iter_info->max_visit);
+ memset(iter_info->visited, 0, sizeof(hbool_t) * iter_info->max_visit);
ret = H5Aiterate2(obj_id, idx_type, order, &skip, attr_iterate2_cb, iter_info);
CHECK(ret, FAIL, "H5Aiterate2");
@@ -7257,7 +7257,7 @@ attr_iterate_check(hid_t fid, const char *dsetname, hid_t obj_id, H5_index_t idx
iter_info->stop = -1;
iter_info->ncalled = 0;
iter_info->curr = order != H5_ITER_DEC ? skip : ((max_attrs - 1) - skip);
- HDmemset(iter_info->visited, 0, sizeof(hbool_t) * iter_info->max_visit);
+ memset(iter_info->visited, 0, sizeof(hbool_t) * iter_info->max_visit);
ret = H5Aiterate_by_name(fid, dsetname, idx_type, order, &skip, attr_iterate2_cb, iter_info, H5P_DEFAULT);
CHECK(ret, FAIL, "H5Aiterate_by_name");
@@ -7288,7 +7288,7 @@ attr_iterate_check(hid_t fid, const char *dsetname, hid_t obj_id, H5_index_t idx
iter_info->stop = -1;
iter_info->ncalled = 0;
iter_info->curr = order != H5_ITER_DEC ? skip : ((max_attrs - 1) - skip);
- HDmemset(iter_info->visited, 0, sizeof(hbool_t) * iter_info->max_visit);
+ memset(iter_info->visited, 0, sizeof(hbool_t) * iter_info->max_visit);
ret = H5Aiterate_by_name(obj_id, ".", idx_type, order, &skip, attr_iterate2_cb, iter_info, H5P_DEFAULT);
CHECK(ret, FAIL, "H5Aiterate_by_name");
@@ -7321,7 +7321,7 @@ attr_iterate_check(hid_t fid, const char *dsetname, hid_t obj_id, H5_index_t idx
iter_info->stop = -1;
iter_info->ncalled = 0;
iter_info->curr = order != H5_ITER_DEC ? (unsigned)oskip : ((max_attrs - 1) - oskip);
- HDmemset(iter_info->visited, 0, sizeof(hbool_t) * iter_info->max_visit);
+ memset(iter_info->visited, 0, sizeof(hbool_t) * iter_info->max_visit);
ret = H5Aiterate1(obj_id, &oskip, attr_iterate1_cb, iter_info);
CHECK(ret, FAIL, "H5Aiterate1");
@@ -7354,7 +7354,7 @@ attr_iterate_check(hid_t fid, const char *dsetname, hid_t obj_id, H5_index_t idx
iter_info->stop = 3;
iter_info->ncalled = 0;
iter_info->curr = order != H5_ITER_DEC ? 0 : (max_attrs - 1);
- HDmemset(iter_info->visited, 0, sizeof(hbool_t) * iter_info->max_visit);
+ memset(iter_info->visited, 0, sizeof(hbool_t) * iter_info->max_visit);
ret = H5Aiterate2(obj_id, idx_type, order, &skip, attr_iterate2_cb, iter_info);
CHECK(ret, FAIL, "H5Aiterate2");
VERIFY(ret, CORDER_ITER_STOP, "H5Aiterate2");
@@ -7366,7 +7366,7 @@ attr_iterate_check(hid_t fid, const char *dsetname, hid_t obj_id, H5_index_t idx
iter_info->stop = 3;
iter_info->ncalled = 0;
iter_info->curr = order != H5_ITER_DEC ? 0 : (max_attrs - 1);
- HDmemset(iter_info->visited, 0, sizeof(hbool_t) * iter_info->max_visit);
+ memset(iter_info->visited, 0, sizeof(hbool_t) * iter_info->max_visit);
ret = H5Aiterate_by_name(fid, dsetname, idx_type, order, &skip, attr_iterate2_cb, iter_info, H5P_DEFAULT);
CHECK(ret, FAIL, "H5Aiterate_by_name");
VERIFY(ret, CORDER_ITER_STOP, "H5Aiterate_by_name");
@@ -7378,7 +7378,7 @@ attr_iterate_check(hid_t fid, const char *dsetname, hid_t obj_id, H5_index_t idx
iter_info->stop = 3;
iter_info->ncalled = 0;
iter_info->curr = order != H5_ITER_DEC ? 0 : (max_attrs - 1);
- HDmemset(iter_info->visited, 0, sizeof(hbool_t) * iter_info->max_visit);
+ memset(iter_info->visited, 0, sizeof(hbool_t) * iter_info->max_visit);
ret = H5Aiterate_by_name(obj_id, ".", idx_type, order, &skip, attr_iterate2_cb, iter_info, H5P_DEFAULT);
CHECK(ret, FAIL, "H5Aiterate_by_name");
VERIFY(ret, CORDER_ITER_STOP, "H5Aiterate_by_name");
@@ -7392,7 +7392,7 @@ attr_iterate_check(hid_t fid, const char *dsetname, hid_t obj_id, H5_index_t idx
iter_info->stop = 3;
iter_info->ncalled = 0;
iter_info->curr = order != H5_ITER_DEC ? 0 : (max_attrs - 1);
- HDmemset(iter_info->visited, 0, sizeof(hbool_t) * iter_info->max_visit);
+ memset(iter_info->visited, 0, sizeof(hbool_t) * iter_info->max_visit);
ret = H5Aiterate1(obj_id, &oskip, attr_iterate1_cb, iter_info);
CHECK(ret, FAIL, "H5Aiterate1");
VERIFY(ret, CORDER_ITER_STOP, "H5Aiterate1");
@@ -8802,7 +8802,7 @@ test_attr_shared_write(hid_t fcpl, hid_t fapl)
/* Allocate & initialize "big" attribute data */
big_value = (unsigned *)malloc((size_t)(SPACE1_DIM1 * SPACE1_DIM2 * SPACE1_DIM3) * sizeof(unsigned));
CHECK_PTR(big_value, "malloc");
- HDmemset(big_value, 1, sizeof(unsigned) * (size_t)(SPACE1_DIM1 * SPACE1_DIM2 * SPACE1_DIM3));
+ memset(big_value, 1, sizeof(unsigned) * (size_t)(SPACE1_DIM1 * SPACE1_DIM2 * SPACE1_DIM3));
/* Create dataspace for dataset */
sid = H5Screate(H5S_SCALAR);
@@ -9153,7 +9153,7 @@ test_attr_shared_rename(hid_t fcpl, hid_t fapl)
/* Allocate & initialize "big" attribute data */
big_value = (unsigned *)malloc((size_t)(SPACE1_DIM1 * SPACE1_DIM2 * SPACE1_DIM3) * sizeof(unsigned));
CHECK_PTR(big_value, "malloc");
- HDmemset(big_value, 1, sizeof(unsigned) * (size_t)(SPACE1_DIM1 * SPACE1_DIM2 * SPACE1_DIM3));
+ memset(big_value, 1, sizeof(unsigned) * (size_t)(SPACE1_DIM1 * SPACE1_DIM2 * SPACE1_DIM3));
/* Create dataspace for dataset */
sid = H5Screate(H5S_SCALAR);
@@ -9612,7 +9612,7 @@ test_attr_shared_delete(hid_t fcpl, hid_t fapl)
/* Allocate & initialize "big" attribute data */
big_value = (unsigned *)malloc((size_t)(SPACE1_DIM1 * SPACE1_DIM2 * SPACE1_DIM3) * sizeof(unsigned));
CHECK_PTR(big_value, "malloc");
- HDmemset(big_value, 1, sizeof(unsigned) * (size_t)(SPACE1_DIM1 * SPACE1_DIM2 * SPACE1_DIM3));
+ memset(big_value, 1, sizeof(unsigned) * (size_t)(SPACE1_DIM1 * SPACE1_DIM2 * SPACE1_DIM3));
/* Create dataspace for dataset */
sid = H5Screate(H5S_SCALAR);
@@ -9996,7 +9996,7 @@ test_attr_shared_unlink(hid_t fcpl, hid_t fapl)
/* Allocate & initialize "big" attribute data */
big_value = (unsigned *)malloc((size_t)(SPACE1_DIM1 * SPACE1_DIM2 * SPACE1_DIM3) * sizeof(unsigned));
CHECK_PTR(big_value, "malloc");
- HDmemset(big_value, 1, sizeof(unsigned) * (size_t)(SPACE1_DIM1 * SPACE1_DIM2 * SPACE1_DIM3));
+ memset(big_value, 1, sizeof(unsigned) * (size_t)(SPACE1_DIM1 * SPACE1_DIM2 * SPACE1_DIM3));
/* Create dataspace for dataset */
sid = H5Screate(H5S_SCALAR);
diff --git a/test/API/tchecksum.c b/test/API/tchecksum.c
index 450be3f..62db33c 100644
--- a/test/API/tchecksum.c
+++ b/test/API/tchecksum.c
@@ -55,7 +55,7 @@ test_chksum_size_one(void)
VERIFY(chksum, 0xa209c931, "H5_checksum_lookup3");
/* Buffer w/zero(s) for data */
- HDmemset(buf, 0, sizeof(buf));
+ memset(buf, 0, sizeof(buf));
chksum = H5_checksum_fletcher32(buf, sizeof(buf));
VERIFY(chksum, 0, "H5_checksum_fletcher32");
@@ -88,7 +88,7 @@ test_chksum_size_two(void)
VERIFY(chksum, 0x8ba7a6c9, "H5_checksum_lookup3");
/* Buffer w/zero(s) for data */
- HDmemset(buf, 0, sizeof(buf));
+ memset(buf, 0, sizeof(buf));
chksum = H5_checksum_fletcher32(buf, sizeof(buf));
VERIFY(chksum, 0, "H5_checksum_fletcher32");
@@ -121,7 +121,7 @@ test_chksum_size_three(void)
VERIFY(chksum, 0xcebdf4f0, "H5_checksum_lookup3");
/* Buffer w/zero(s) for data */
- HDmemset(buf, 0, sizeof(buf));
+ memset(buf, 0, sizeof(buf));
chksum = H5_checksum_fletcher32(buf, sizeof(buf));
VERIFY(chksum, 0, "H5_checksum_fletcher32");
@@ -154,7 +154,7 @@ test_chksum_size_four(void)
VERIFY(chksum, 0x2c88bb51, "H5_checksum_lookup3");
/* Buffer w/zero(s) for data */
- HDmemset(buf, 0, sizeof(buf));
+ memset(buf, 0, sizeof(buf));
chksum = H5_checksum_fletcher32(buf, sizeof(buf));
VERIFY(chksum, 0, "H5_checksum_fletcher32");
@@ -196,7 +196,7 @@ test_chksum_large(void)
VERIFY(chksum, 0x1bd2ee7b, "H5_checksum_lookup3");
/* Buffer w/zero(s) for data */
- HDmemset(large_buf, 0, (size_t)BUF_LEN);
+ memset(large_buf, 0, (size_t)BUF_LEN);
chksum = H5_checksum_fletcher32(large_buf, (size_t)BUF_LEN);
VERIFY(chksum, 0, "H5_checksum_fletcher32");
diff --git a/test/API/tcoords.c b/test/API/tcoords.c
index 2a6e301..d9b9711 100644
--- a/test/API/tcoords.c
+++ b/test/API/tcoords.c
@@ -86,7 +86,7 @@ test_singleEnd_selElements(hid_t file, hbool_t is_chunked)
}
/* Construct dataset's name */
- HDmemset(dset_name, 0, (size_t)NAME_LEN);
+ memset(dset_name, 0, (size_t)NAME_LEN);
HDstrcat(dset_name, SINGLE_END_DSET);
if (is_chunked)
HDstrcat(dset_name, "_chunked");
@@ -258,7 +258,7 @@ test_singleEnd_selHyperslab(hid_t file, hbool_t is_chunked)
hsize_t mem3_block[4] = {1, 3, 6, 1};
/* Construct dataset's name */
- HDmemset(dset_name, 0, NAME_LEN);
+ memset(dset_name, 0, NAME_LEN);
HDstrcat(dset_name, SINGLE_END_DSET);
if (is_chunked)
HDstrcat(dset_name, "_chunked");
@@ -461,7 +461,7 @@ test_multiple_ends(hid_t file, hbool_t is_chunked)
}
/* Construct dataset's name */
- HDmemset(dset_name, 0, NAME_LEN);
+ memset(dset_name, 0, NAME_LEN);
HDstrcat(dset_name, MULTI_ENDS_SEL_HYPER_DSET);
if (is_chunked)
HDstrcat(dset_name, "_chunked");
diff --git a/test/API/testhdf5.c b/test/API/testhdf5.c
index 5f2c1b8..62d4a7d 100644
--- a/test/API/testhdf5.c
+++ b/test/API/testhdf5.c
@@ -275,7 +275,7 @@ h5_fixname_real(const char *base_name, hid_t fapl, const char *_suffix, char *fu
if (!base_name || !fullname || size < 1)
return NULL;
- HDmemset(fullname, 0, size);
+ memset(fullname, 0, size);
/* Determine if driver is set by environment variable. If it is,
* only generate a suffix if fixing the filename for the superblock
diff --git a/test/API/tfile.c b/test/API/tfile.c
index 8b00742..8f1cc28 100644
--- a/test/API/tfile.c
+++ b/test/API/tfile.c
@@ -2852,7 +2852,7 @@ test_file_double_file_dataset_open(hbool_t new_format)
CHECK(tid1, FAIL, "H5Tcopy");
/* Second file's dataset read */
- HDmemset(buffer, 0, sizeof(char *) * 5);
+ memset(buffer, 0, sizeof(char *) * 5);
ret = H5Dread(did2, tid2, H5S_ALL, H5S_ALL, H5P_DEFAULT, buffer);
CHECK(ret, FAIL, "H5Dread");
ret = H5Treclaim(tid2, sid1, H5P_DEFAULT, buffer);
@@ -2867,7 +2867,7 @@ test_file_double_file_dataset_open(hbool_t new_format)
CHECK(ret, FAIL, "H5Fclose");
/* First file's dataset read */
- HDmemset(buffer, 0, sizeof(char *) * 5);
+ memset(buffer, 0, sizeof(char *) * 5);
ret = H5Dread(did1, tid1, H5S_ALL, H5S_ALL, H5P_DEFAULT, buffer);
CHECK(ret, FAIL, "H5Dread");
ret = H5Treclaim(tid2, sid1, H5P_DEFAULT, buffer);
@@ -4475,7 +4475,7 @@ set_multi_split(hid_t fapl, hsize_t pagesize, hbool_t split)
assert(split);
- HDmemset(memb_name, 0, sizeof memb_name);
+ memset(memb_name, 0, sizeof memb_name);
/* Get current split settings */
if (H5Pget_fapl_multi(fapl, memb_map, memb_fapl_arr, memb_name, memb_addr, &relax) < 0)
@@ -4830,7 +4830,7 @@ test_sects_freespace(const char *env_h5_drvr, hbool_t new_format)
VERIFY(nsects, FAIL, "H5Fget_free_sections");
/* Retrieve and verify free space info for all the sections */
- HDmemset(all_sect_info, 0, sizeof(all_sect_info));
+ memset(all_sect_info, 0, sizeof(all_sect_info));
nsects = H5Fget_free_sections(file, H5FD_MEM_DEFAULT, (size_t)nall, all_sect_info);
VERIFY(nsects, nall, "H5Fget_free_sections");
@@ -4844,7 +4844,7 @@ test_sects_freespace(const char *env_h5_drvr, hbool_t new_format)
last_size = all_sect_info[nall - 1].size;
/* Retrieve and verify free space info for -1 sections */
- HDmemset(sect_info, 0, sizeof(sect_info));
+ memset(sect_info, 0, sizeof(sect_info));
nsects = H5Fget_free_sections(file, H5FD_MEM_DEFAULT, (size_t)(nall - 1), sect_info);
VERIFY(nsects, nall, "H5Fget_free_sections");
@@ -4859,7 +4859,7 @@ test_sects_freespace(const char *env_h5_drvr, hbool_t new_format)
VERIFY(((hsize_t)free_space - last_size), total, "H5Fget_free_sections");
#endif
/* Retrieve and verify free-space info for +1 sections */
- HDmemset(sect_info, 0, sizeof(sect_info));
+ memset(sect_info, 0, sizeof(sect_info));
nsects = H5Fget_free_sections(file, H5FD_MEM_DEFAULT, (size_t)(nall + 1), sect_info);
VERIFY(nsects, nall, "H5Fget_free_sections");
@@ -4876,7 +4876,7 @@ test_sects_freespace(const char *env_h5_drvr, hbool_t new_format)
VERIFY(free_space, total, "H5Fget_free_sections");
#endif
- HDmemset(meta_sect_info, 0, sizeof(meta_sect_info));
+ memset(meta_sect_info, 0, sizeof(meta_sect_info));
if (multi_vfd) {
hssize_t ntmp;
@@ -4909,7 +4909,7 @@ test_sects_freespace(const char *env_h5_drvr, hbool_t new_format)
CHECK(nraw, FAIL, "H5Fget_free_sections");
/* Retrieve and verify free-space sections for raw data */
- HDmemset(raw_sect_info, 0, sizeof(raw_sect_info));
+ memset(raw_sect_info, 0, sizeof(raw_sect_info));
nsects = H5Fget_free_sections(file, H5FD_MEM_DRAW, (size_t)nraw, raw_sect_info);
VERIFY(nsects, nraw, "H5Fget_free_sections");
diff --git a/test/API/tgenprop.c b/test/API/tgenprop.c
index 10c2d3a..fed974c 100644
--- a/test/API/tgenprop.c
+++ b/test/API/tgenprop.c
@@ -802,7 +802,7 @@ test_genprop_basic_list_prop(void)
/* Check values of temporary properties (set with regular values) */
ret = H5Pget(lid1, PROP3_NAME, &prop3_value);
CHECK_I(ret, "H5Pget");
- if (HDmemcmp(&prop3_value, PROP3_DEF_VALUE, PROP3_SIZE) != 0)
+ if (memcmp(&prop3_value, PROP3_DEF_VALUE, PROP3_SIZE) != 0)
TestErrPrintf("Property #3 doesn't match!, line=%d\n", __LINE__);
ret = H5Pget(lid1, PROP4_NAME, &prop4_value);
CHECK_I(ret, "H5Pget");
@@ -1028,7 +1028,7 @@ test_genprop_prop_crt_cb1(const char *name, size_t size, void *def_value)
prop1_cb_info.crt_count++;
prop1_cb_info.crt_name = HDstrdup(name);
prop1_cb_info.crt_value = malloc(size);
- HDmemcpy(prop1_cb_info.crt_value, def_value, size);
+ memcpy(prop1_cb_info.crt_value, def_value, size);
return (SUCCEED);
}
@@ -1048,7 +1048,7 @@ test_genprop_prop_set_cb1(hid_t plist_id, const char *name, size_t size, void *v
prop1_cb_info.set_name = HDstrdup(name);
if (prop1_cb_info.set_value == NULL)
prop1_cb_info.set_value = malloc(size);
- HDmemcpy(prop1_cb_info.set_value, value, size);
+ memcpy(prop1_cb_info.set_value, value, size);
return (SUCCEED);
}
@@ -1068,7 +1068,7 @@ test_genprop_prop_get_cb1(hid_t plist_id, const char *name, size_t size, void *v
prop1_cb_info.get_name = HDstrdup(name);
if (prop1_cb_info.get_value == NULL)
prop1_cb_info.get_value = malloc(size);
- HDmemcpy(prop1_cb_info.get_value, value, size);
+ memcpy(prop1_cb_info.get_value, value, size);
return (SUCCEED);
}
@@ -1087,7 +1087,7 @@ test_genprop_prop_cop_cb1(const char *name, size_t size, void *value)
prop1_cb_info.cop_name = HDstrdup(name);
if (prop1_cb_info.cop_value == NULL)
prop1_cb_info.cop_value = malloc(size);
- HDmemcpy(prop1_cb_info.cop_value, value, size);
+ memcpy(prop1_cb_info.cop_value, value, size);
return (SUCCEED);
}
@@ -1103,7 +1103,7 @@ test_genprop_prop_cmp_cb1(const void *value1, const void *value2, size_t size)
/* Set the information from the comparison call */
prop1_cb_info.cmp_count++;
- return (HDmemcmp(value1, value2, size));
+ return (memcmp(value1, value2, size));
}
/****************************************************************
@@ -1117,7 +1117,7 @@ test_genprop_prop_cmp_cb3(const void *value1, const void *value2, size_t size)
/* Set the information from the comparison call */
prop3_cb_info.cmp_count++;
- return (HDmemcmp(value1, value2, size));
+ return (memcmp(value1, value2, size));
}
/****************************************************************
@@ -1134,7 +1134,7 @@ test_genprop_prop_cls_cb1(const char *name, size_t size, void *value)
prop1_cb_info.cls_name = HDstrdup(name);
if (prop1_cb_info.cls_value == NULL)
prop1_cb_info.cls_value = malloc(size);
- HDmemcpy(prop1_cb_info.cls_value, value, size);
+ memcpy(prop1_cb_info.cls_value, value, size);
return (SUCCEED);
}
@@ -1152,7 +1152,7 @@ test_genprop_prop_del_cb2(hid_t plist_id, const char *name, size_t size, void *v
prop2_cb_info.del_plist_id = plist_id;
prop2_cb_info.del_name = HDstrdup(name);
prop2_cb_info.del_value = malloc(size);
- HDmemcpy(prop2_cb_info.del_value, value, size);
+ memcpy(prop2_cb_info.del_value, value, size);
return (SUCCEED);
}
@@ -1221,9 +1221,9 @@ test_genprop_list_callback(void)
cop_cb_struct.id = (-1);
/* Initialize callback information for properties tracked */
- HDmemset(&prop1_cb_info, 0, sizeof(prop_cb_info));
- HDmemset(&prop2_cb_info, 0, sizeof(prop_cb_info));
- HDmemset(&prop3_cb_info, 0, sizeof(prop_cb_info));
+ memset(&prop1_cb_info, 0, sizeof(prop_cb_info));
+ memset(&prop2_cb_info, 0, sizeof(prop_cb_info));
+ memset(&prop3_cb_info, 0, sizeof(prop_cb_info));
/* Create a property list from the class */
lid1 = H5Pcreate(cid1);
@@ -1240,7 +1240,7 @@ test_genprop_list_callback(void)
VERIFY(prop1_cb_info.crt_count, 1, "H5Pcreate");
if (HDstrcmp(prop1_cb_info.crt_name, PROP1_NAME) != 0)
TestErrPrintf("Property #1 name doesn't match!, line=%d\n", __LINE__);
- if (HDmemcmp(prop1_cb_info.crt_value, PROP1_DEF_VALUE, PROP1_SIZE) != 0)
+ if (memcmp(prop1_cb_info.crt_value, PROP1_DEF_VALUE, PROP1_SIZE) != 0)
TestErrPrintf("Property #1 value doesn't match!, line=%d\n", __LINE__);
/* Check values of permanent properties (set with default values) */
@@ -1259,7 +1259,7 @@ test_genprop_list_callback(void)
/* Check values of temporary properties (set with regular values) */
ret = H5Pget(lid1, PROP3_NAME, &prop3_value);
CHECK_I(ret, "H5Pget");
- if (HDmemcmp(&prop3_value, PROP3_DEF_VALUE, PROP3_SIZE) != 0)
+ if (memcmp(&prop3_value, PROP3_DEF_VALUE, PROP3_SIZE) != 0)
TestErrPrintf("Property #3 doesn't match!, line=%d\n", __LINE__);
/* The compare callback should not have been called, as there is no get
* callback for this property */
@@ -1276,7 +1276,7 @@ test_genprop_list_callback(void)
VERIFY(prop1_cb_info.get_plist_id, lid1, "H5Pget");
if (HDstrcmp(prop1_cb_info.get_name, PROP1_NAME) != 0)
TestErrPrintf("Property #1 name doesn't match!, line=%d\n", __LINE__);
- if (HDmemcmp(prop1_cb_info.get_value, PROP1_DEF_VALUE, PROP1_SIZE) != 0)
+ if (memcmp(prop1_cb_info.get_value, PROP1_DEF_VALUE, PROP1_SIZE) != 0)
TestErrPrintf("Property #1 value doesn't match!, line=%d\n", __LINE__);
/* Set value of property #1 to different value */
@@ -1288,7 +1288,7 @@ test_genprop_list_callback(void)
VERIFY(prop1_cb_info.set_plist_id, lid1, "H5Pset");
if (HDstrcmp(prop1_cb_info.set_name, PROP1_NAME) != 0)
TestErrPrintf("Property #1 name doesn't match!, line=%d\n", __LINE__);
- if (HDmemcmp(prop1_cb_info.set_value, &prop1_new_value, PROP1_SIZE) != 0)
+ if (memcmp(prop1_cb_info.set_value, &prop1_new_value, PROP1_SIZE) != 0)
TestErrPrintf("Property #1 value doesn't match!, line=%d\n", __LINE__);
/* The compare callback should not have been called */
@@ -1311,7 +1311,7 @@ test_genprop_list_callback(void)
VERIFY(prop1_cb_info.get_plist_id, lid1, "H5Pget");
if (HDstrcmp(prop1_cb_info.get_name, PROP1_NAME) != 0)
TestErrPrintf("Property #1 name doesn't match!, line=%d\n", __LINE__);
- if (HDmemcmp(prop1_cb_info.get_value, &prop1_new_value, PROP1_SIZE) != 0)
+ if (memcmp(prop1_cb_info.get_value, &prop1_new_value, PROP1_SIZE) != 0)
TestErrPrintf("Property #1 value doesn't match!, line=%d\n", __LINE__);
/* Delete property #2 */
@@ -1323,7 +1323,7 @@ test_genprop_list_callback(void)
VERIFY(prop2_cb_info.del_plist_id, lid1, "H5Premove");
if (HDstrcmp(prop2_cb_info.del_name, PROP2_NAME) != 0)
TestErrPrintf("Property #2 name doesn't match!, line=%d\n", __LINE__);
- if (HDmemcmp(prop2_cb_info.del_value, PROP2_DEF_VALUE, PROP2_SIZE) != 0)
+ if (memcmp(prop2_cb_info.del_value, PROP2_DEF_VALUE, PROP2_SIZE) != 0)
TestErrPrintf("Property #2 value doesn't match!, line=%d\n", __LINE__);
/* Copy first list */
@@ -1334,7 +1334,7 @@ test_genprop_list_callback(void)
VERIFY(prop1_cb_info.cop_count, 1, "H5Pcopy");
if (HDstrcmp(prop1_cb_info.cop_name, PROP1_NAME) != 0)
TestErrPrintf("Property #1 name doesn't match!, line=%d\n", __LINE__);
- if (HDmemcmp(prop1_cb_info.cop_value, &prop1_new_value, PROP1_SIZE) != 0)
+ if (memcmp(prop1_cb_info.cop_value, &prop1_new_value, PROP1_SIZE) != 0)
TestErrPrintf("Property #1 value doesn't match!, line=%d\n", __LINE__);
/* Verify that the class creation callback occurred */
@@ -1357,7 +1357,7 @@ test_genprop_list_callback(void)
VERIFY(prop1_cb_info.cls_count, 1, "H5Pclose");
if (HDstrcmp(prop1_cb_info.cls_name, PROP1_NAME) != 0)
TestErrPrintf("Property #1 name doesn't match!, line=%d\n", __LINE__);
- if (HDmemcmp(prop1_cb_info.cls_value, &prop1_new_value, PROP1_SIZE) != 0)
+ if (memcmp(prop1_cb_info.cls_value, &prop1_new_value, PROP1_SIZE) != 0)
TestErrPrintf("Property #1 value doesn't match!, line=%d\n", __LINE__);
/* Close second list */
diff --git a/test/API/th5o.c b/test/API/th5o.c
index b961468..d733eb9 100644
--- a/test/API/th5o.c
+++ b/test/API/th5o.c
@@ -1463,8 +1463,8 @@ test_h5o_getinfo_same_file(void)
CHECK(gid2, FAIL, "H5Gcreate2");
/* Reset object info */
- HDmemset(&oinfo1, 0, sizeof(oinfo1));
- HDmemset(&oinfo2, 0, sizeof(oinfo2));
+ memset(&oinfo1, 0, sizeof(oinfo1));
+ memset(&oinfo2, 0, sizeof(oinfo2));
/* Query the object info for each object, through group IDs */
ret = H5Oget_info3(gid1, &oinfo1, H5O_INFO_BASIC);
@@ -1475,8 +1475,8 @@ test_h5o_getinfo_same_file(void)
VERIFY(oinfo1.fileno, oinfo2.fileno, "file number from H5Oget_info3");
/* Reset object info */
- HDmemset(&oinfo1, 0, sizeof(oinfo1));
- HDmemset(&oinfo2, 0, sizeof(oinfo2));
+ memset(&oinfo1, 0, sizeof(oinfo1));
+ memset(&oinfo2, 0, sizeof(oinfo2));
/* Query the object info for each object, by name */
ret = H5Oget_info_by_name3(fid1, "group1", &oinfo1, H5O_INFO_BASIC, H5P_DEFAULT);
@@ -1507,8 +1507,8 @@ test_h5o_getinfo_same_file(void)
CHECK(gid2, FAIL, "H5Gopen2");
/* Reset object info */
- HDmemset(&oinfo1, 0, sizeof(oinfo1));
- HDmemset(&oinfo2, 0, sizeof(oinfo2));
+ memset(&oinfo1, 0, sizeof(oinfo1));
+ memset(&oinfo2, 0, sizeof(oinfo2));
/* Query the object info for each object, through group IDs */
ret = H5Oget_info3(gid1, &oinfo1, H5O_INFO_BASIC);
@@ -1519,8 +1519,8 @@ test_h5o_getinfo_same_file(void)
VERIFY(oinfo1.fileno, oinfo2.fileno, "file number from H5Oget_info3");
/* Reset object info */
- HDmemset(&oinfo1, 0, sizeof(oinfo1));
- HDmemset(&oinfo2, 0, sizeof(oinfo2));
+ memset(&oinfo1, 0, sizeof(oinfo1));
+ memset(&oinfo2, 0, sizeof(oinfo2));
/* Query the object info for each object, by name */
ret = H5Oget_info_by_name3(fid1, "group1", &oinfo1, H5O_INFO_BASIC, H5P_DEFAULT);
@@ -1782,8 +1782,8 @@ test_h5o_getinfo_visit(void)
CHECK(gid2, FAIL, "H5Gcreate2");
/* Reset object info */
- HDmemset(&oinfo1, 0, sizeof(oinfo1));
- HDmemset(&oinfo2, 0, sizeof(oinfo2));
+ memset(&oinfo1, 0, sizeof(oinfo1));
+ memset(&oinfo2, 0, sizeof(oinfo2));
/* Query the object info for "group1" via H5Oget_info1 and H5Oget_info2 */
ret = H5Oget_info1(gid1, &oinfo1);
@@ -1796,8 +1796,8 @@ test_h5o_getinfo_visit(void)
VERIFY(oinfo1.num_attrs, oinfo2.num_attrs, "obj info from H5Oget_info1/2");
/* Reset object info */
- HDmemset(&oinfo1, 0, sizeof(oinfo1));
- HDmemset(&oinfo2, 0, sizeof(oinfo2));
+ memset(&oinfo1, 0, sizeof(oinfo1));
+ memset(&oinfo2, 0, sizeof(oinfo2));
/* Query the object info for "group2" via H5Oget_info1 and H5Oget_info2 */
ret = H5Oget_info_by_name1(fid, "group2", &oinfo1, H5P_DEFAULT);
diff --git a/test/API/th5s.c b/test/API/th5s.c
index 626e59c..da45d28 100644
--- a/test/API/th5s.c
+++ b/test/API/th5s.c
@@ -148,7 +148,7 @@ test_h5s_basic(void)
rank = H5Sget_simple_extent_dims(sid1, tdims, NULL);
CHECK(rank, FAIL, "H5Sget_simple_extent_dims");
- VERIFY(HDmemcmp(tdims, dims1, SPACE1_RANK * sizeof(hsize_t)), 0, "H5Sget_simple_extent_dims");
+ VERIFY(memcmp(tdims, dims1, SPACE1_RANK * sizeof(hsize_t)), 0, "H5Sget_simple_extent_dims");
sid2 = H5Screate_simple(SPACE2_RANK, dims2, max2);
CHECK(sid2, FAIL, "H5Screate_simple");
@@ -163,16 +163,16 @@ test_h5s_basic(void)
rank = H5Sget_simple_extent_dims(sid2, tdims, tmax);
CHECK(rank, FAIL, "H5Sget_simple_extent_dims");
- VERIFY(HDmemcmp(tdims, dims2, SPACE2_RANK * sizeof(hsize_t)), 0, "H5Sget_simple_extent_dims");
- VERIFY(HDmemcmp(tmax, max2, SPACE2_RANK * sizeof(hsize_t)), 0, "H5Sget_simple_extent_dims");
+ VERIFY(memcmp(tdims, dims2, SPACE2_RANK * sizeof(hsize_t)), 0, "H5Sget_simple_extent_dims");
+ VERIFY(memcmp(tmax, max2, SPACE2_RANK * sizeof(hsize_t)), 0, "H5Sget_simple_extent_dims");
/* Change max dims to be equal to the dimensions */
ret = H5Sset_extent_simple(sid1, SPACE1_RANK, dims1, NULL);
CHECK(ret, FAIL, "H5Sset_extent_simple");
rank = H5Sget_simple_extent_dims(sid1, tdims, tmax);
CHECK(rank, FAIL, "H5Sget_simple_extent_dims");
- VERIFY(HDmemcmp(tdims, dims1, SPACE1_RANK * sizeof(hsize_t)), 0, "H5Sget_simple_extent_dims");
- VERIFY(HDmemcmp(tmax, dims1, SPACE1_RANK * sizeof(hsize_t)), 0, "H5Sget_simple_extent_dims");
+ VERIFY(memcmp(tdims, dims1, SPACE1_RANK * sizeof(hsize_t)), 0, "H5Sget_simple_extent_dims");
+ VERIFY(memcmp(tmax, dims1, SPACE1_RANK * sizeof(hsize_t)), 0, "H5Sget_simple_extent_dims");
ret = H5Sclose(sid1);
CHECK(ret, FAIL, "H5Sclose");
@@ -1043,7 +1043,7 @@ test_h5s_zero_dim(void)
rank = H5Sget_simple_extent_dims(sid_chunk, tdims, NULL);
CHECK(rank, FAIL, "H5Sget_simple_extent_dims");
- VERIFY(HDmemcmp(tdims, dims1, SPACE1_RANK * sizeof(hsize_t)), 0, "H5Sget_simple_extent_dims");
+ VERIFY(memcmp(tdims, dims1, SPACE1_RANK * sizeof(hsize_t)), 0, "H5Sget_simple_extent_dims");
/* Set it to chunked dataset */
plist_id = H5Pcreate(H5P_DATASET_CREATE);
@@ -1307,7 +1307,7 @@ test_h5s_encode(H5F_libver_t low, H5F_libver_t high)
/* Retrieve and verify the dataspace dimensions */
rank = H5Sget_simple_extent_dims(decoded_sid1, tdims, NULL);
CHECK(rank, FAIL, "H5Sget_simple_extent_dims");
- VERIFY(HDmemcmp(tdims, dims1, SPACE1_RANK * sizeof(hsize_t)), 0, "H5Sget_simple_extent_dims");
+ VERIFY(memcmp(tdims, dims1, SPACE1_RANK * sizeof(hsize_t)), 0, "H5Sget_simple_extent_dims");
/* Verify the type of dataspace selection */
sel_type = H5Sget_select_type(decoded_sid1);
@@ -1499,7 +1499,7 @@ test_h5s_encode1(void)
/* Retrieve and verify the dataspace dimensions */
rank = H5Sget_simple_extent_dims(decoded_sid1, tdims, NULL);
CHECK(rank, FAIL, "H5Sget_simple_extent_dims");
- VERIFY(HDmemcmp(tdims, dims1, SPACE1_RANK * sizeof(hsize_t)), 0, "H5Sget_simple_extent_dims");
+ VERIFY(memcmp(tdims, dims1, SPACE1_RANK * sizeof(hsize_t)), 0, "H5Sget_simple_extent_dims");
/* Verify the type of dataspace selection */
sel_type = H5Sget_select_type(decoded_sid1);
@@ -2478,7 +2478,7 @@ test_h5s_compound_scalar_read(void)
ret = H5Dread(dataset, type, H5S_ALL, H5S_ALL, H5P_DEFAULT, &rdata);
CHECK(ret, FAIL, "H5Dread");
- if (HDmemcmp(&space4_data, &rdata, sizeof(struct space4_struct)) != 0) {
+ if (memcmp(&space4_data, &rdata, sizeof(struct space4_struct)) != 0) {
printf("scalar data different: space4_data.c1=%c, read_data4.c1=%c\n", space4_data.c1, rdata.c1);
printf("scalar data different: space4_data.u=%u, read_data4.u=%u\n", space4_data.u, rdata.u);
printf("scalar data different: space4_data.f=%f, read_data4.f=%f\n", (double)space4_data.f,
@@ -2583,8 +2583,8 @@ test_h5s_chunk(void)
CHECK(status, FAIL, "H5Fclose");
/* Reset/initialize the data arrays to read in */
- HDmemset(chunk_data_dbl_data, 0, sizeof(double) * CHUNK_DATA_NX * CHUNK_DATA_NY);
- HDmemset(chunk_data_flt_data, 0, sizeof(float) * CHUNK_DATA_NX * CHUNK_DATA_NY);
+ memset(chunk_data_dbl_data, 0, sizeof(double) * CHUNK_DATA_NX * CHUNK_DATA_NY);
+ memset(chunk_data_flt_data, 0, sizeof(float) * CHUNK_DATA_NX * CHUNK_DATA_NY);
fileID = H5Fopen(DATAFILE, H5F_ACC_RDONLY, H5P_DEFAULT);
CHECK(fileID, FAIL, "H5Fopen");
diff --git a/test/API/tid.c b/test/API/tid.c
index 3433b20..b353a8a 100644
--- a/test/API/tid.c
+++ b/test/API/tid.c
@@ -740,7 +740,7 @@ test_remove_clear_type(void)
* Build object list *
*********************/
- HDmemset(obj_list.objects, 0, list_size);
+ memset(obj_list.objects, 0, list_size);
/* The number of objects used is a random number between the min and max */
obj_list.count = obj_list.remaining =
diff --git a/test/API/titerate.c b/test/API/titerate.c
index a72c304..1349e70 100644
--- a/test/API/titerate.c
+++ b/test/API/titerate.c
@@ -444,7 +444,7 @@ test_iter_attr(hid_t fapl, hbool_t new_format)
if ((vol_cap_flags_g & H5VL_CAP_FLAG_ITERATE) && (vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) &&
(vol_cap_flags_g & H5VL_CAP_FLAG_DATASET_BASIC) && (vol_cap_flags_g & H5VL_CAP_FLAG_ATTR_BASIC)) {
- HDmemset(&info, 0, sizeof(iter_info));
+ memset(&info, 0, sizeof(iter_info));
/* Create the test file with the datasets */
file = H5Fcreate(DATAFILE, H5F_ACC_TRUNC, H5P_DEFAULT, fapl);
diff --git a/test/API/tmisc.c b/test/API/tmisc.c
index 1518d8d..d4213d2 100644
--- a/test/API/tmisc.c
+++ b/test/API/tmisc.c
@@ -491,8 +491,8 @@ test_misc2_write_attribute(void)
char *string_att1 = HDstrdup("string attribute in file one");
char *string_att2 = HDstrdup("string attribute in file two");
- HDmemset(&data, 0, sizeof(data));
- HDmemset(&data_check, 0, sizeof(data_check));
+ memset(&data, 0, sizeof(data));
+ memset(&data_check, 0, sizeof(data_check));
type = misc2_create_type();
@@ -2389,7 +2389,7 @@ misc13_insert_user_block(const char *old_name, const char *new_name, const char
CHECK_PTR(user_block, "calloc");
/* Copy in the user block data */
- HDmemcpy(user_block, str, HDstrlen(str));
+ memcpy(user_block, str, HDstrlen(str));
/* Open the new file */
new_fp = fopen(new_name, "wb");
@@ -2883,15 +2883,15 @@ test_misc16(void)
hsize_t dims[] = {MISC16_SPACE_DIM};
int i;
- HDmemset(wdata, 0, sizeof(wdata));
- HDmemset(rdata, 0, sizeof(rdata));
+ memset(wdata, 0, sizeof(wdata));
+ memset(rdata, 0, sizeof(rdata));
/* Initialize the data */
/* (Note that these are supposed to stress the code, so are a little weird) */
- HDmemcpy(wdata[0], "1234567", MISC16_STR_SIZE);
- HDmemcpy(wdata[1], "1234567\0", MISC16_STR_SIZE);
- HDmemcpy(wdata[2], "12345678", MISC16_STR_SIZE);
- HDmemcpy(wdata[3], "\0\0\0\0\0\0\0\0", MISC16_STR_SIZE);
+ memcpy(wdata[0], "1234567", MISC16_STR_SIZE);
+ memcpy(wdata[1], "1234567\0", MISC16_STR_SIZE);
+ memcpy(wdata[2], "12345678", MISC16_STR_SIZE);
+ memcpy(wdata[3], "\0\0\0\0\0\0\0\0", MISC16_STR_SIZE);
/* Create the file */
file = H5Fcreate(MISC16_FILE, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
@@ -2974,15 +2974,15 @@ test_misc17(void)
hsize_t dims[] = {MISC17_SPACE_DIM1, MISC17_SPACE_DIM2};
int i;
- HDmemset(wdata, 0, sizeof(wdata));
- HDmemset(rdata, 0, sizeof(rdata));
+ memset(wdata, 0, sizeof(wdata));
+ memset(rdata, 0, sizeof(rdata));
/* Initialize the data */
/* (Note that these are supposed to stress the code, so are a little weird) */
- HDmemcpy(wdata[0], "1234567", MISC17_SPACE_DIM2);
- HDmemcpy(wdata[1], "1234567\0", MISC17_SPACE_DIM2);
- HDmemcpy(wdata[2], "12345678", MISC17_SPACE_DIM2);
- HDmemcpy(wdata[3], "\0\0\0\0\0\0\0\0", MISC17_SPACE_DIM2);
+ memcpy(wdata[0], "1234567", MISC17_SPACE_DIM2);
+ memcpy(wdata[1], "1234567\0", MISC17_SPACE_DIM2);
+ memcpy(wdata[2], "12345678", MISC17_SPACE_DIM2);
+ memcpy(wdata[3], "\0\0\0\0\0\0\0\0", MISC17_SPACE_DIM2);
/* Create the file */
file = H5Fcreate(MISC17_FILE, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
diff --git a/test/API/trefer.c b/test/API/trefer.c
index 12723e7..81c2321 100644
--- a/test/API/trefer.c
+++ b/test/API/trefer.c
@@ -1047,7 +1047,7 @@ test_reference_cmpnd_obj(void)
CHECK(dataset, H5I_INVALID_HID, "H5Dcreate2");
/* Reset buffer for writing */
- HDmemset(&cmpnd_wbuf, 0, sizeof(cmpnd_wbuf));
+ memset(&cmpnd_wbuf, 0, sizeof(cmpnd_wbuf));
/* Create reference to dataset */
ret = H5Rcreate_object(fid1, "/Group1/Dataset1", H5P_DEFAULT, &cmpnd_wbuf.ref0);
diff --git a/test/API/tselect.c b/test/API/tselect.c
index a9568a4..fc6a275 100644
--- a/test/API/tselect.c
+++ b/test/API/tselect.c
@@ -649,7 +649,7 @@ test_select_point(hid_t xfer_plist)
/* Save points for later iteration */
/* (these are in the second half of the buffer, because we are prepending */
/* the next list of points to the beginning of the point selection list) */
- HDmemcpy(((char *)pi.coord) + sizeof(coord2), coord2, sizeof(coord2));
+ memcpy(((char *)pi.coord) + sizeof(coord2), coord2, sizeof(coord2));
ret = (int)H5Sget_select_npoints(sid2);
VERIFY(ret, 10, "H5Sget_select_npoints");
@@ -689,7 +689,7 @@ test_select_point(hid_t xfer_plist)
VERIFY(ret, 20, "H5Sget_select_npoints");
/* Save points for later iteration */
- HDmemcpy(pi.coord, coord2, sizeof(coord2));
+ memcpy(pi.coord, coord2, sizeof(coord2));
/* Create a dataset */
dataset = H5Dcreate2(fid1, SPACE1_NAME, H5T_NATIVE_UCHAR, sid1, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT);
@@ -1537,7 +1537,7 @@ test_select_hyper_contig(hid_t dset_type, hid_t xfer_plist)
CHECK(ret, FAIL, "H5Dread");
/* Compare data read with data written out */
- if (HDmemcmp(rbuf, wbuf, sizeof(uint16_t) * 30 * 12) != 0)
+ if (memcmp(rbuf, wbuf, sizeof(uint16_t) * 30 * 12) != 0)
TestErrPrintf("hyperslab values don't match! Line=%d\n", __LINE__);
/* Close memory dataspace */
@@ -1680,7 +1680,7 @@ test_select_hyper_contig2(hid_t dset_type, hid_t xfer_plist)
CHECK(ret, FAIL, "H5Dread");
/* Compare data read with data written out */
- if (HDmemcmp(rbuf, wbuf, sizeof(uint16_t) * 2 * SPACE8_DIM3 * SPACE8_DIM2 * SPACE8_DIM1) != 0)
+ if (memcmp(rbuf, wbuf, sizeof(uint16_t) * 2 * SPACE8_DIM3 * SPACE8_DIM2 * SPACE8_DIM1) != 0)
TestErrPrintf("Error: hyperslab values don't match!\n");
/* Close memory dataspace */
@@ -2199,7 +2199,7 @@ test_select_hyper_contig_dr__run_test(int test_num, const uint16_t *cube_buf, co
*/
/* zero out the in-memory large cube */
- HDmemset(large_cube_buf_1, 0, large_cube_size * sizeof(uint16_t));
+ memset(large_cube_buf_1, 0, large_cube_size * sizeof(uint16_t));
u = 0;
do {
@@ -2268,7 +2268,7 @@ test_select_hyper_contig_dr__run_test(int test_num, const uint16_t *cube_buf, co
TestErrPrintf("large cube read from small cube has bad data! Line=%u\n", __LINE__);
/* Zero out the buffer for the next pass */
- HDmemset(large_cube_buf_1 + start_index, 0, small_cube_size * sizeof(uint16_t));
+ memset(large_cube_buf_1 + start_index, 0, small_cube_size * sizeof(uint16_t));
x++;
} while ((large_rank >= 2) && (small_rank <= 1) && (x < edge_size));
@@ -3176,7 +3176,7 @@ test_select_hyper_checker_board_dr__run_test(int test_num, const uint16_t *cube_
VERIFY(check, TRUE, "H5Sselect_shape_same");
/* zero the buffer that we will be using for reading */
- HDmemset(small_cube_buf_1, 0, sizeof(*small_cube_buf_1) * small_cube_size);
+ memset(small_cube_buf_1, 0, sizeof(*small_cube_buf_1) * small_cube_size);
/* Read selection from disk */
ret = H5Dread(large_cube_dataset, H5T_NATIVE_UINT16, mem_small_cube_sid,
@@ -3256,7 +3256,7 @@ test_select_hyper_checker_board_dr__run_test(int test_num, const uint16_t *cube_
VERIFY(check, TRUE, "H5Sselect_shape_same");
/* zero out the in memory large cube */
- HDmemset(large_cube_buf_1, 0, sizeof(*large_cube_buf_1) * large_cube_size);
+ memset(large_cube_buf_1, 0, sizeof(*large_cube_buf_1) * large_cube_size);
/* Read selection from disk */
ret = H5Dread(small_cube_dataset, H5T_NATIVE_UINT16, mem_large_cube_sid,
@@ -3383,7 +3383,7 @@ test_select_hyper_checker_board_dr__run_test(int test_num, const uint16_t *cube_
CHECK(ret, FAIL, "H5Dwrite");
/* zero the buffer that we will be using for reading */
- HDmemset(small_cube_buf_1, 0, sizeof(*small_cube_buf_1) * small_cube_size);
+ memset(small_cube_buf_1, 0, sizeof(*small_cube_buf_1) * small_cube_size);
/* read the on disk small cube into memory */
ret = H5Dread(small_cube_dataset, H5T_NATIVE_UINT16, full_small_cube_sid,
@@ -3479,7 +3479,7 @@ test_select_hyper_checker_board_dr__run_test(int test_num, const uint16_t *cube_
CHECK(ret, FAIL, "H5Dwrite");
/* zero out the in memory large cube */
- HDmemset(large_cube_buf_1, 0, sizeof(*large_cube_buf_1) * large_cube_size);
+ memset(large_cube_buf_1, 0, sizeof(*large_cube_buf_1) * large_cube_size);
/* read the on disk large cube into memory */
ret = H5Dread(large_cube_dataset, H5T_NATIVE_UINT16, full_large_cube_sid,
@@ -3797,7 +3797,7 @@ test_select_hyper_copy(void)
CHECK(ret, FAIL, "H5Dread");
/* Compare data read with data written out */
- if (HDmemcmp(rbuf, rbuf2, sizeof(uint16_t) * SPACE3_DIM1 * SPACE3_DIM2) != 0)
+ if (memcmp(rbuf, rbuf2, sizeof(uint16_t) * SPACE3_DIM1 * SPACE3_DIM2) != 0)
TestErrPrintf("hyperslab values don't match! Line=%d\n", __LINE__);
/* Close memory dataspace */
@@ -4010,7 +4010,7 @@ test_select_point_copy(void)
CHECK(ret, FAIL, "H5Dread");
/* Compare data read with data written out */
- if (HDmemcmp(rbuf, rbuf2, sizeof(uint16_t) * SPACE3_DIM1 * SPACE3_DIM2) != 0)
+ if (memcmp(rbuf, rbuf2, sizeof(uint16_t) * SPACE3_DIM1 * SPACE3_DIM2) != 0)
TestErrPrintf("point values don't match!\n");
/* Close memory dataspace */
@@ -5271,7 +5271,7 @@ test_select_hyper_union_stagger(void)
CHECK(error, FAIL, "H5Fclose");
/* Initialize input buffer */
- HDmemset(data_out, 0, 7 * 7 * sizeof(int));
+ memset(data_out, 0, 7 * 7 * sizeof(int));
/* Open file */
file_id = H5Fopen(FILENAME, H5F_ACC_RDONLY, H5P_DEFAULT);
@@ -6401,7 +6401,7 @@ test_select_hyper_union_random_5d(hid_t read_plist)
} /* end if */
/* Set the read buffer back to all zeroes */
- HDmemset(rbuf, 0, (size_t)SPACE6_DIM1);
+ memset(rbuf, 0, (size_t)SPACE6_DIM1);
} /* end for */
/* Close memory dataspace */
@@ -7133,7 +7133,7 @@ test_select_combine(void)
VERIFY(nblocks, 1, "H5Sget_select_hyper_nblocks");
/* Retrieve the block defined */
- HDmemset(blocks, -1, sizeof(blocks)); /* Reset block list */
+ memset(blocks, -1, sizeof(blocks)); /* Reset block list */
error = H5Sget_select_hyper_blocklist(space1, (hsize_t)0, (hsize_t)nblocks, (hsize_t *)blocks);
CHECK(error, FAIL, "H5Sget_select_hyper_blocklist");
@@ -7168,7 +7168,7 @@ test_select_combine(void)
VERIFY(nblocks, 2, "H5Sget_select_hyper_nblocks");
/* Retrieve the block defined */
- HDmemset(blocks, -1, sizeof(blocks)); /* Reset block list */
+ memset(blocks, -1, sizeof(blocks)); /* Reset block list */
error = H5Sget_select_hyper_blocklist(space1, (hsize_t)0, (hsize_t)nblocks, (hsize_t *)blocks);
CHECK(error, FAIL, "H5Sget_select_hyper_blocklist");
@@ -7207,7 +7207,7 @@ test_select_combine(void)
VERIFY(nblocks, 2, "H5Sget_select_hyper_nblocks");
/* Retrieve the block defined */
- HDmemset(blocks, -1, sizeof(blocks)); /* Reset block list */
+ memset(blocks, -1, sizeof(blocks)); /* Reset block list */
error = H5Sget_select_hyper_blocklist(space1, (hsize_t)0, (hsize_t)nblocks, (hsize_t *)blocks);
CHECK(error, FAIL, "H5Sget_select_hyper_blocklist");
@@ -7266,7 +7266,7 @@ test_select_combine(void)
VERIFY(nblocks, 1, "H5Sget_select_hyper_nblocks");
/* Retrieve the block defined */
- HDmemset(blocks, -1, sizeof(blocks)); /* Reset block list */
+ memset(blocks, -1, sizeof(blocks)); /* Reset block list */
error = H5Sget_select_hyper_blocklist(space1, (hsize_t)0, (hsize_t)nblocks, (hsize_t *)blocks);
CHECK(error, FAIL, "H5Sget_select_hyper_blocklist");
@@ -7321,7 +7321,7 @@ test_select_combine(void)
VERIFY(nblocks, 1, "H5Sget_select_hyper_nblocks");
/* Retrieve the block defined */
- HDmemset(blocks, -1, sizeof(blocks)); /* Reset block list */
+ memset(blocks, -1, sizeof(blocks)); /* Reset block list */
error = H5Sget_select_hyper_blocklist(space1, (hsize_t)0, (hsize_t)nblocks, (hsize_t *)blocks);
CHECK(error, FAIL, "H5Sget_select_hyper_blocklist");
@@ -7376,7 +7376,7 @@ test_select_combine(void)
VERIFY(nblocks, 1, "H5Sget_select_hyper_nblocks");
/* Retrieve the block defined */
- HDmemset(blocks, -1, sizeof(blocks)); /* Reset block list */
+ memset(blocks, -1, sizeof(blocks)); /* Reset block list */
error = H5Sget_select_hyper_blocklist(space1, (hsize_t)0, (hsize_t)nblocks, (hsize_t *)blocks);
CHECK(error, FAIL, "H5Sget_select_hyper_blocklist");
@@ -7561,14 +7561,14 @@ test_select_fill_point(hssize_t *offset)
CHECK(ret, FAIL, "H5Sselect_elements");
if (offset != NULL) {
- HDmemcpy(real_offset, offset, SPACE7_RANK * sizeof(hssize_t));
+ memcpy(real_offset, offset, SPACE7_RANK * sizeof(hssize_t));
/* Set offset, if provided */
ret = H5Soffset_simple(sid1, real_offset);
CHECK(ret, FAIL, "H5Soffset_simple");
} /* end if */
else
- HDmemset(real_offset, 0, SPACE7_RANK * sizeof(hssize_t));
+ memset(real_offset, 0, SPACE7_RANK * sizeof(hssize_t));
/* Set fill value */
fill_value = SPACE7_FILL;
@@ -7665,14 +7665,14 @@ test_select_fill_hyper_simple(hssize_t *offset)
CHECK(ret, FAIL, "H5Sselect_hyperslab");
if (offset != NULL) {
- HDmemcpy(real_offset, offset, SPACE7_RANK * sizeof(hssize_t));
+ memcpy(real_offset, offset, SPACE7_RANK * sizeof(hssize_t));
/* Set offset, if provided */
ret = H5Soffset_simple(sid1, real_offset);
CHECK(ret, FAIL, "H5Soffset_simple");
} /* end if */
else
- HDmemset(real_offset, 0, SPACE7_RANK * sizeof(hssize_t));
+ memset(real_offset, 0, SPACE7_RANK * sizeof(hssize_t));
/* Set fill value */
fill_value = SPACE7_FILL;
@@ -7780,14 +7780,14 @@ test_select_fill_hyper_regular(hssize_t *offset)
CHECK(ret, FAIL, "H5Sselect_hyperslab");
if (offset != NULL) {
- HDmemcpy(real_offset, offset, SPACE7_RANK * sizeof(hssize_t));
+ memcpy(real_offset, offset, SPACE7_RANK * sizeof(hssize_t));
/* Set offset, if provided */
ret = H5Soffset_simple(sid1, real_offset);
CHECK(ret, FAIL, "H5Soffset_simple");
} /* end if */
else
- HDmemset(real_offset, 0, SPACE7_RANK * sizeof(hssize_t));
+ memset(real_offset, 0, SPACE7_RANK * sizeof(hssize_t));
/* Set fill value */
fill_value = SPACE7_FILL;
@@ -7904,14 +7904,14 @@ test_select_fill_hyper_irregular(hssize_t *offset)
CHECK(ret, FAIL, "H5Sselect_hyperslab");
if (offset != NULL) {
- HDmemcpy(real_offset, offset, SPACE7_RANK * sizeof(hssize_t));
+ memcpy(real_offset, offset, SPACE7_RANK * sizeof(hssize_t));
/* Set offset, if provided */
ret = H5Soffset_simple(sid1, real_offset);
CHECK(ret, FAIL, "H5Soffset_simple");
} /* end if */
else
- HDmemset(real_offset, 0, SPACE7_RANK * sizeof(hssize_t));
+ memset(real_offset, 0, SPACE7_RANK * sizeof(hssize_t));
/* Set fill value */
fill_value = SPACE7_FILL;
@@ -14334,7 +14334,7 @@ test_hyper_unlim_check(hid_t sid, hsize_t *dims, hssize_t endpoints, hssize_t en
CHECK(lim_sid, FAIL, "H5Scopy");
/* "And" lim_sid with dims to create limited selection */
- HDmemset(start, 0, sizeof(start));
+ memset(start, 0, sizeof(start));
ret = H5Sselect_hyperslab(lim_sid, H5S_SELECT_AND, start, NULL, dims, NULL);
CHECK(ret, FAIL, "H5Sselect_hyperslab");
@@ -14361,18 +14361,18 @@ test_hyper_unlim_check(hid_t sid, hsize_t *dims, hssize_t endpoints, hssize_t en
/* Verify blocklist */
if (nblocks == (hssize_t)1) {
- if (HDmemcmp(blocklist, eblock1, 6 * sizeof(eblock1[0])) != 0)
+ if (memcmp(blocklist, eblock1, 6 * sizeof(eblock1[0])) != 0)
ERROR("H5Sget_select_hyper_blocklist");
} /* end if */
else {
assert(nblocks == (hssize_t)2);
- if (HDmemcmp(blocklist, eblock1, 6 * sizeof(eblock1[0])) != 0) {
- if (HDmemcmp(blocklist, eblock2, 6 * sizeof(eblock2[0])) != 0)
+ if (memcmp(blocklist, eblock1, 6 * sizeof(eblock1[0])) != 0) {
+ if (memcmp(blocklist, eblock2, 6 * sizeof(eblock2[0])) != 0)
ERROR("H5Sget_select_hyper_blocklist");
- if (HDmemcmp(&blocklist[6], eblock1, 6 * sizeof(eblock1[0])) != 0)
+ if (memcmp(&blocklist[6], eblock1, 6 * sizeof(eblock1[0])) != 0)
ERROR("H5Sget_select_hyper_blocklist");
} /* end if */
- else if (HDmemcmp(&blocklist[6], eblock2, 6 * sizeof(eblock2[0])) != 0)
+ else if (memcmp(&blocklist[6], eblock2, 6 * sizeof(eblock2[0])) != 0)
ERROR("H5Sget_select_hyper_blocklist");
} /* end else */
} /* end if */
@@ -15144,7 +15144,7 @@ test_irreg_io(void)
CHECK(ret, FAIL, "H5Sselect_hyperslab");
/* Reset the buffer */
- HDmemset(rbuf, 0, sizeof(rbuf));
+ memset(rbuf, 0, sizeof(rbuf));
/* Read selection from disk */
ret = H5Dread(did, H5T_NATIVE_UCHAR, mem_sid, sid, H5P_DEFAULT, rbuf);
diff --git a/test/API/tunicode.c b/test/API/tunicode.c
index 326de86..93e28e3 100644
--- a/test/API/tunicode.c
+++ b/test/API/tunicode.c
@@ -180,7 +180,7 @@ test_strpad(hid_t H5_ATTR_UNUSED fid, const char *string)
cmpbuf[2 * small_len - 1] = '\0';
HDstrcpy(&cmpbuf[2 * small_len], new_string);
- VERIFY(HDmemcmp(buf, cmpbuf, 2 * big_len), 0, "HDmemcmp");
+ VERIFY(memcmp(buf, cmpbuf, 2 * big_len), 0, "memcmp");
/* Now convert from smaller datatype to bigger datatype. This should
* leave our buffer looking like: "abc\0\0\0\0\0abc\0\0\0\0\0" */
@@ -188,12 +188,12 @@ test_strpad(hid_t H5_ATTR_UNUSED fid, const char *string)
CHECK(ret, FAIL, "H5Tconvert");
/* First fill the buffer with NULLs */
- HDmemset(cmpbuf, '\0', (size_t)LONG_BUF_SIZE);
+ memset(cmpbuf, '\0', (size_t)LONG_BUF_SIZE);
/* Copy in the characters */
HDstrncpy(cmpbuf, new_string, small_len - 1);
HDstrncpy(&cmpbuf[big_len], new_string, small_len - 1);
- VERIFY(HDmemcmp(buf, cmpbuf, 2 * big_len), 0, "HDmemcmp");
+ VERIFY(memcmp(buf, cmpbuf, 2 * big_len), 0, "memcmp");
ret = H5Tclose(src_type);
CHECK(ret, FAIL, "H5Tclose");
@@ -240,7 +240,7 @@ test_strpad(hid_t H5_ATTR_UNUSED fid, const char *string)
HDstrncpy(&cmpbuf[small_len], new_string, small_len);
HDstrncpy(&cmpbuf[2 * small_len], new_string, big_len);
- VERIFY(HDmemcmp(buf, cmpbuf, 2 * big_len), 0, "HDmemcmp");
+ VERIFY(memcmp(buf, cmpbuf, 2 * big_len), 0, "memcmp");
/* Now convert from smaller datatype to bigger datatype. This should
* leave our buffer looking like: "abcd\0\0\0\0abcd\0\0\0\0" */
@@ -248,12 +248,12 @@ test_strpad(hid_t H5_ATTR_UNUSED fid, const char *string)
CHECK(ret, FAIL, "H5Tconvert");
/* First fill the buffer with NULLs */
- HDmemset(cmpbuf, '\0', (size_t)LONG_BUF_SIZE);
+ memset(cmpbuf, '\0', (size_t)LONG_BUF_SIZE);
/* Copy in the characters */
HDstrncpy(cmpbuf, new_string, small_len);
HDstrncpy(&cmpbuf[big_len], new_string, small_len);
- VERIFY(HDmemcmp(buf, cmpbuf, 2 * big_len), 0, "HDmemcmp");
+ VERIFY(memcmp(buf, cmpbuf, 2 * big_len), 0, "memcmp");
ret = H5Tclose(src_type);
CHECK(ret, FAIL, "H5Tclose");
@@ -285,7 +285,7 @@ test_strpad(hid_t H5_ATTR_UNUSED fid, const char *string)
HDstrncpy(&cmpbuf[small_len], new_string, small_len);
HDstrncpy(&cmpbuf[2 * small_len], new_string, big_len);
- VERIFY(HDmemcmp(buf, cmpbuf, 2 * big_len), 0, "HDmemcmp");
+ VERIFY(memcmp(buf, cmpbuf, 2 * big_len), 0, "memcmp");
/* Now convert from smaller datatype to bigger datatype. This should
* leave our buffer looking like: "abcd abcd " */
@@ -293,12 +293,12 @@ test_strpad(hid_t H5_ATTR_UNUSED fid, const char *string)
CHECK(ret, FAIL, "H5Tconvert");
/* First fill the buffer with spaces */
- HDmemset(cmpbuf, ' ', (size_t)LONG_BUF_SIZE);
+ memset(cmpbuf, ' ', (size_t)LONG_BUF_SIZE);
/* Copy in the characters */
HDstrncpy(cmpbuf, new_string, small_len);
HDstrncpy(&cmpbuf[big_len], new_string, small_len);
- VERIFY(HDmemcmp(buf, cmpbuf, 2 * big_len), 0, "HDmemcmp");
+ VERIFY(memcmp(buf, cmpbuf, 2 * big_len), 0, "memcmp");
ret = H5Tclose(src_type);
CHECK(ret, FAIL, "H5Tclose");
@@ -589,7 +589,7 @@ test_compound(hid_t fid, const char *string)
herr_t ret;
/* Initialize compound data */
- HDmemset(&s1, 0, sizeof(s1_t)); /* To make purify happy */
+ memset(&s1, 0, sizeof(s1_t)); /* To make purify happy */
s1.a = COMP_INT_VAL;
s1.c = COMP_DOUBLE_VAL;
s1.b = COMP_FLOAT_VAL;
@@ -814,7 +814,7 @@ test_unicode(void)
/* Create a random string with length NUM_CHARS */
HDsrandom((unsigned)HDtime(NULL));
- HDmemset(test_string, 0, sizeof(test_string));
+ memset(test_string, 0, sizeof(test_string));
for (x = 0; x < NUM_CHARS; x++) {
/* We need to avoid unprintable characters (codes 0-31) and the
* . and / characters, since they aren't allowed in path names.
diff --git a/test/API/tvlstr.c b/test/API/tvlstr.c
index 8819a51..ced17ea 100644
--- a/test/API/tvlstr.c
+++ b/test/API/tvlstr.c
@@ -163,7 +163,7 @@ test_vlstrings_basic(void)
CHECK(dataset, FAIL, "H5Dcreate2");
wdata2 = (char *)calloc((size_t)65534, sizeof(char));
- HDmemset(wdata2, 'A', (size_t)65533);
+ memset(wdata2, 'A', (size_t)65533);
ret = H5Dwrite(dataset2, tid1, H5S_ALL, H5S_ALL, H5P_DEFAULT, &wdata2);
CHECK(ret, FAIL, "H5Dwrite");
@@ -626,7 +626,7 @@ test_write_vl_string_attribute(void)
CHECK(att, FAIL, "H5Acreate2");
string_att_write = (char *)calloc((size_t)8192, sizeof(char));
- HDmemset(string_att_write, 'A', (size_t)8191);
+ memset(string_att_write, 'A', (size_t)8191);
ret = H5Awrite(att, type, &string_att_write);
CHECK(ret, FAIL, "H5Awrite");
diff --git a/test/API/tvltypes.c b/test/API/tvltypes.c
index d62f703..53275cc 100644
--- a/test/API/tvltypes.c
+++ b/test/API/tvltypes.c
@@ -1633,7 +1633,7 @@ test_vltypes_compound_vlen_atomic(void)
CHECK(dcpl_pid, FAIL, "H5Pcreate");
/* Set the fill value for the second dataset */
- HDmemset(&fill, 0, sizeof(s1));
+ memset(&fill, 0, sizeof(s1));
ret = H5Pset_fill_value(dcpl_pid, tid2, &fill);
CHECK(ret, FAIL, "H5Pset_fill_value");
@@ -2835,7 +2835,7 @@ test_vltypes_fill_value(void)
CHECK(ret, FAIL, "H5Treclaim");
/* Clear the read buffer */
- HDmemset(rbuf, 0, dset_elmts * sizeof(dtype1_struct));
+ memset(rbuf, 0, dset_elmts * sizeof(dtype1_struct));
/* Read in non-contiguous selection from 'empty' dataset of fill value */
ret = H5Dread(dset_id, dtype1_id, dset_select_dspace_id, dset_select_dspace_id, xfer_pid, rbuf);
@@ -2893,7 +2893,7 @@ test_vltypes_fill_value(void)
CHECK(ret, FAIL, "H5Treclaim");
/* Clear the read buffer */
- HDmemset(rbuf, 0, dset_elmts * sizeof(dtype1_struct));
+ memset(rbuf, 0, dset_elmts * sizeof(dtype1_struct));
/* Read in non-contiguous selection from 'empty' dataset of fill value */
ret = H5Dread(dset_id, dtype1_id, dset_select_dspace_id, dset_select_dspace_id, xfer_pid, rbuf);
@@ -3048,7 +3048,7 @@ test_vltypes_fill_value(void)
CHECK(ret, FAIL, "H5Treclaim");
/* Clear the read buffer */
- HDmemset(rbuf, 0, dset_elmts * sizeof(dtype1_struct));
+ memset(rbuf, 0, dset_elmts * sizeof(dtype1_struct));
/* Read in non-contiguous selection from dataset */
ret = H5Dread(dset_id, dtype1_id, dset_select_dspace_id, dset_select_dspace_id, xfer_pid, rbuf);
@@ -3136,7 +3136,7 @@ test_vltypes_fill_value(void)
CHECK(ret, FAIL, "H5Treclaim");
/* Clear the read buffer */
- HDmemset(rbuf, 0, dset_elmts * sizeof(dtype1_struct));
+ memset(rbuf, 0, dset_elmts * sizeof(dtype1_struct));
/* Read in non-contiguous selection from dataset */
ret = H5Dread(dset_id, dtype1_id, dset_select_dspace_id, dset_select_dspace_id, xfer_pid, rbuf);
diff --git a/test/accum.c b/test/accum.c
index cc26009..6f4db2d 100644
--- a/test/accum.c
+++ b/test/accum.c
@@ -198,7 +198,7 @@ test_write_read(H5F_t *f)
FAIL_STACK_ERROR;
if (accum_read(0, 1024, read_buf) < 0)
FAIL_STACK_ERROR;
- if (HDmemcmp(write_buf, read_buf, (size_t)1024) != 0)
+ if (memcmp(write_buf, read_buf, (size_t)1024) != 0)
TEST_ERROR;
if (accum_reset(f) < 0)
@@ -260,7 +260,7 @@ test_write_read_nonacc_front(H5F_t *f)
FAIL_STACK_ERROR;
if (accum_read(0, 1024, read_buf) < 0)
FAIL_STACK_ERROR;
- if (HDmemcmp(write_buf, read_buf, (size_t)1024) != 0)
+ if (memcmp(write_buf, read_buf, (size_t)1024) != 0)
TEST_ERROR;
if (accum_reset(f) < 0)
@@ -322,7 +322,7 @@ test_write_read_nonacc_end(H5F_t *f)
FAIL_STACK_ERROR;
if (accum_read(1024, 1024, read_buf) < 0)
FAIL_STACK_ERROR;
- if (HDmemcmp(write_buf, read_buf, (size_t)1024) != 0)
+ if (memcmp(write_buf, read_buf, (size_t)1024) != 0)
TEST_ERROR;
if (accum_reset(f) < 0)
@@ -406,7 +406,7 @@ test_free(H5F_t *f)
/* Check that the accumulator still contains the correct data */
if (accum_read(1 * sizeof(int32_t), 127 * sizeof(int32_t), rbuf) < 0)
FAIL_STACK_ERROR;
- if (HDmemcmp(wbuf + 1, rbuf, 127 * sizeof(int32_t)) != 0)
+ if (memcmp(wbuf + 1, rbuf, 127 * sizeof(int32_t)) != 0)
TEST_ERROR;
/* Free the block of 4B at 127*4B */
@@ -416,7 +416,7 @@ test_free(H5F_t *f)
/* Check that the accumulator still contains the correct data */
if (accum_read(1 * sizeof(int32_t), 126 * sizeof(int32_t), rbuf) < 0)
FAIL_STACK_ERROR;
- if (HDmemcmp(wbuf + 1, rbuf, 126 * sizeof(int32_t)) != 0)
+ if (memcmp(wbuf + 1, rbuf, 126 * sizeof(int32_t)) != 0)
TEST_ERROR;
/* Free the block of 4B at 2*4B */
@@ -426,125 +426,125 @@ test_free(H5F_t *f)
/* Check that the accumulator still contains the correct data */
if (accum_read(1 * sizeof(int32_t), 1 * sizeof(int32_t), rbuf) < 0)
FAIL_STACK_ERROR;
- if (HDmemcmp(wbuf + 1, rbuf, 1 * sizeof(int32_t)) != 0)
+ if (memcmp(wbuf + 1, rbuf, 1 * sizeof(int32_t)) != 0)
TEST_ERROR;
if (accum_read(3 * sizeof(int32_t), 124 * sizeof(int32_t), rbuf) < 0)
FAIL_STACK_ERROR;
- if (HDmemcmp(wbuf + 3, rbuf, 124 * sizeof(int32_t)) != 0)
+ if (memcmp(wbuf + 3, rbuf, 124 * sizeof(int32_t)) != 0)
TEST_ERROR;
/* Test freeing section that overlaps the start of the accumulator and is
* entirely before dirty section */
if (accum_write(64 * sizeof(int32_t), 128 * sizeof(int32_t), wbuf) < 0)
FAIL_STACK_ERROR;
- HDmemcpy(expect + 64, wbuf, 128 * sizeof(int32_t));
+ memcpy(expect + 64, wbuf, 128 * sizeof(int32_t));
if (accum_flush(f) < 0)
FAIL_STACK_ERROR;
if (accum_write(68 * sizeof(int32_t), 4 * sizeof(int32_t), wbuf) < 0)
FAIL_STACK_ERROR;
- HDmemcpy(expect + 68, wbuf, 4 * sizeof(int32_t));
+ memcpy(expect + 68, wbuf, 4 * sizeof(int32_t));
if (accum_free(f, 62 * sizeof(int32_t), 4 * sizeof(int32_t)) < 0)
FAIL_STACK_ERROR;
/* Check that the accumulator still contains the correct data */
if (accum_read(66 * sizeof(int32_t), 126 * sizeof(int32_t), rbuf) < 0)
FAIL_STACK_ERROR;
- if (HDmemcmp(expect + 66, rbuf, 126 * sizeof(int32_t)) != 0)
+ if (memcmp(expect + 66, rbuf, 126 * sizeof(int32_t)) != 0)
TEST_ERROR;
/* Test freeing section that overlaps the start of the accumulator and
* completely contains dirty section */
if (accum_write(64 * sizeof(int32_t), 128 * sizeof(int32_t), wbuf) < 0)
FAIL_STACK_ERROR;
- HDmemcpy(expect + 64, wbuf, 128 * sizeof(int32_t));
+ memcpy(expect + 64, wbuf, 128 * sizeof(int32_t));
if (accum_flush(f) < 0)
FAIL_STACK_ERROR;
if (accum_write(68 * sizeof(int32_t), 4 * sizeof(int32_t), wbuf) < 0)
FAIL_STACK_ERROR;
- HDmemcpy(expect + 68, wbuf, 4 * sizeof(int32_t));
+ memcpy(expect + 68, wbuf, 4 * sizeof(int32_t));
if (accum_free(f, 62 * sizeof(int32_t), 16 * sizeof(int32_t)) < 0)
FAIL_STACK_ERROR;
/* Check that the accumulator still contains the correct data */
if (accum_read(78 * sizeof(int32_t), 114 * sizeof(int32_t), rbuf) < 0)
FAIL_STACK_ERROR;
- if (HDmemcmp(expect + 78, rbuf, 114 * sizeof(int32_t)) != 0)
+ if (memcmp(expect + 78, rbuf, 114 * sizeof(int32_t)) != 0)
TEST_ERROR;
/* Test freeing section completely contained in accumulator and is entirely
* before dirty section */
if (accum_write(64 * sizeof(int32_t), 128 * sizeof(int32_t), wbuf) < 0)
FAIL_STACK_ERROR;
- HDmemcpy(expect + 64, wbuf, 128 * sizeof(int32_t));
+ memcpy(expect + 64, wbuf, 128 * sizeof(int32_t));
if (accum_flush(f) < 0)
FAIL_STACK_ERROR;
if (accum_write(72 * sizeof(int32_t), 4 * sizeof(int32_t), wbuf) < 0)
FAIL_STACK_ERROR;
- HDmemcpy(expect + 72, wbuf, 4 * sizeof(int32_t));
+ memcpy(expect + 72, wbuf, 4 * sizeof(int32_t));
if (accum_free(f, 66 * sizeof(int32_t), 4 * sizeof(int32_t)) < 0)
FAIL_STACK_ERROR;
/* Check that the accumulator still contains the correct data */
if (accum_read(70 * sizeof(int32_t), 122 * sizeof(int32_t), rbuf) < 0)
FAIL_STACK_ERROR;
- if (HDmemcmp(expect + 70, rbuf, 122 * sizeof(int32_t)) != 0)
+ if (memcmp(expect + 70, rbuf, 122 * sizeof(int32_t)) != 0)
TEST_ERROR;
/* Test freeing section completely contained in accumulator, starts before
* dirty section, and ends in dirty section */
if (accum_write(64 * sizeof(int32_t), 128 * sizeof(int32_t), wbuf) < 0)
FAIL_STACK_ERROR;
- HDmemcpy(expect + 64, wbuf, 128 * sizeof(int32_t));
+ memcpy(expect + 64, wbuf, 128 * sizeof(int32_t));
if (accum_flush(f) < 0)
FAIL_STACK_ERROR;
if (accum_write(72 * sizeof(int32_t), 4 * sizeof(int32_t), wbuf) < 0)
FAIL_STACK_ERROR;
- HDmemcpy(expect + 72, wbuf, 4 * sizeof(int32_t));
+ memcpy(expect + 72, wbuf, 4 * sizeof(int32_t));
if (accum_free(f, 70 * sizeof(int32_t), 4 * sizeof(int32_t)) < 0)
FAIL_STACK_ERROR;
/* Check that the accumulator still contains the correct data */
if (accum_read(74 * sizeof(int32_t), 118 * sizeof(int32_t), rbuf) < 0)
FAIL_STACK_ERROR;
- if (HDmemcmp(expect + 74, rbuf, 118 * sizeof(int32_t)) != 0)
+ if (memcmp(expect + 74, rbuf, 118 * sizeof(int32_t)) != 0)
TEST_ERROR;
/* Test freeing section completely contained in accumulator and completely
* contains dirty section */
if (accum_write(64 * sizeof(int32_t), 128 * sizeof(int32_t), wbuf) < 0)
FAIL_STACK_ERROR;
- HDmemcpy(expect + 64, wbuf, 128 * sizeof(int32_t));
+ memcpy(expect + 64, wbuf, 128 * sizeof(int32_t));
if (accum_flush(f) < 0)
FAIL_STACK_ERROR;
if (accum_write(72 * sizeof(int32_t), 4 * sizeof(int32_t), wbuf) < 0)
FAIL_STACK_ERROR;
- HDmemcpy(expect + 72, wbuf, 4 * sizeof(int32_t));
+ memcpy(expect + 72, wbuf, 4 * sizeof(int32_t));
if (accum_free(f, 70 * sizeof(int32_t), 8 * sizeof(int32_t)) < 0)
FAIL_STACK_ERROR;
/* Check that the accumulator still contains the correct data */
if (accum_read(78 * sizeof(int32_t), 114 * sizeof(int32_t), rbuf) < 0)
FAIL_STACK_ERROR;
- if (HDmemcmp(expect + 78, rbuf, 114 * sizeof(int32_t)) != 0)
+ if (memcmp(expect + 78, rbuf, 114 * sizeof(int32_t)) != 0)
TEST_ERROR;
/* Test freeing section completely contained in accumulator, starts at start
* of dirty section, and ends in dirty section */
if (accum_write(64 * sizeof(int32_t), 128 * sizeof(int32_t), wbuf) < 0)
FAIL_STACK_ERROR;
- HDmemcpy(expect + 64, wbuf, 128 * sizeof(int32_t));
+ memcpy(expect + 64, wbuf, 128 * sizeof(int32_t));
if (accum_flush(f) < 0)
FAIL_STACK_ERROR;
if (accum_write(72 * sizeof(int32_t), 8 * sizeof(int32_t), wbuf) < 0)
FAIL_STACK_ERROR;
- HDmemcpy(expect + 72, wbuf, 8 * sizeof(int32_t));
+ memcpy(expect + 72, wbuf, 8 * sizeof(int32_t));
if (accum_free(f, 72 * sizeof(int32_t), 4 * sizeof(int32_t)) < 0)
FAIL_STACK_ERROR;
/* Check that the accumulator still contains the correct data */
if (accum_read(76 * sizeof(int32_t), 116 * sizeof(int32_t), rbuf) < 0)
FAIL_STACK_ERROR;
- if (HDmemcmp(expect + 76, rbuf, 116 * sizeof(int32_t)) != 0)
+ if (memcmp(expect + 76, rbuf, 116 * sizeof(int32_t)) != 0)
TEST_ERROR;
free(wbuf);
@@ -608,7 +608,7 @@ test_accum_overlap(H5F_t *f)
FAIL_STACK_ERROR;
if (accum_read(40, 10 * sizeof(int32_t), rbuf) < 0)
FAIL_STACK_ERROR;
- if (HDmemcmp(wbuf, rbuf, 10 * sizeof(int32_t)) != 0)
+ if (memcmp(wbuf, rbuf, 10 * sizeof(int32_t)) != 0)
TEST_ERROR;
/* Case 2: End of new piece aligns with start of accumulated data */
@@ -620,7 +620,7 @@ test_accum_overlap(H5F_t *f)
FAIL_STACK_ERROR;
if (accum_read(20, 5 * sizeof(int32_t), rbuf) < 0)
FAIL_STACK_ERROR;
- if (HDmemcmp(wbuf, rbuf, 5 * sizeof(int32_t)) != 0)
+ if (memcmp(wbuf, rbuf, 5 * sizeof(int32_t)) != 0)
TEST_ERROR;
/* Case 3: Start of new piece aligns with start of accumulated data */
@@ -632,7 +632,7 @@ test_accum_overlap(H5F_t *f)
FAIL_STACK_ERROR;
if (accum_read(20, 3 * sizeof(int32_t), rbuf) < 0)
FAIL_STACK_ERROR;
- if (HDmemcmp(wbuf, rbuf, 3 * sizeof(int32_t)) != 0)
+ if (memcmp(wbuf, rbuf, 3 * sizeof(int32_t)) != 0)
TEST_ERROR;
/* Case 4: New piece overlaps start of accumulated data */
@@ -644,7 +644,7 @@ test_accum_overlap(H5F_t *f)
FAIL_STACK_ERROR;
if (accum_read(8, 5 * sizeof(int32_t), rbuf) < 0)
FAIL_STACK_ERROR;
- if (HDmemcmp(wbuf, rbuf, 5 * sizeof(int32_t)) != 0)
+ if (memcmp(wbuf, rbuf, 5 * sizeof(int32_t)) != 0)
TEST_ERROR;
/* Case 5: New piece completely within accumulated data */
@@ -656,7 +656,7 @@ test_accum_overlap(H5F_t *f)
FAIL_STACK_ERROR;
if (accum_read(48, 4 * sizeof(int32_t), rbuf) < 0)
FAIL_STACK_ERROR;
- if (HDmemcmp(wbuf, rbuf, 4 * sizeof(int32_t)) != 0)
+ if (memcmp(wbuf, rbuf, 4 * sizeof(int32_t)) != 0)
TEST_ERROR;
/* Case 6: End of new piece aligns with end of accumulated data */
@@ -668,7 +668,7 @@ test_accum_overlap(H5F_t *f)
FAIL_STACK_ERROR;
if (accum_read(68, 3 * sizeof(int32_t), rbuf) < 0)
FAIL_STACK_ERROR;
- if (HDmemcmp(wbuf, rbuf, 3 * sizeof(int32_t)) != 0)
+ if (memcmp(wbuf, rbuf, 3 * sizeof(int32_t)) != 0)
TEST_ERROR;
/* Case 7: New piece overlaps end of accumulated data */
@@ -680,7 +680,7 @@ test_accum_overlap(H5F_t *f)
FAIL_STACK_ERROR;
if (accum_read(76, 5 * sizeof(int32_t), rbuf) < 0)
FAIL_STACK_ERROR;
- if (HDmemcmp(wbuf, rbuf, 5 * sizeof(int32_t)) != 0)
+ if (memcmp(wbuf, rbuf, 5 * sizeof(int32_t)) != 0)
TEST_ERROR;
/* Case 8: Start of new piece aligns with end of accumulated data */
@@ -692,7 +692,7 @@ test_accum_overlap(H5F_t *f)
FAIL_STACK_ERROR;
if (accum_read(96, 3 * sizeof(int32_t), rbuf) < 0)
FAIL_STACK_ERROR;
- if (HDmemcmp(wbuf, rbuf, 3 * sizeof(int32_t)) != 0)
+ if (memcmp(wbuf, rbuf, 3 * sizeof(int32_t)) != 0)
TEST_ERROR;
/* Set up expected data buffer and verify contents of
@@ -717,7 +717,7 @@ test_accum_overlap(H5F_t *f)
wbuf[i] = 8;
if (accum_read(8, 25 * sizeof(int32_t), rbuf) < 0)
FAIL_STACK_ERROR;
- if (HDmemcmp(wbuf, rbuf, 25 * sizeof(int32_t)) != 0)
+ if (memcmp(wbuf, rbuf, 25 * sizeof(int32_t)) != 0)
TEST_ERROR;
/* Case 9: New piece completely before accumulated data */
@@ -729,7 +729,7 @@ test_accum_overlap(H5F_t *f)
FAIL_STACK_ERROR;
if (accum_read(0, 1 * sizeof(int32_t), rbuf) < 0)
FAIL_STACK_ERROR;
- if (HDmemcmp(wbuf, rbuf, 1 * sizeof(int32_t)) != 0)
+ if (memcmp(wbuf, rbuf, 1 * sizeof(int32_t)) != 0)
TEST_ERROR;
/* Case 10: New piece completely after accumulated data */
@@ -741,7 +741,7 @@ test_accum_overlap(H5F_t *f)
FAIL_STACK_ERROR;
if (accum_read(116, 4 * sizeof(int32_t), rbuf) < 0)
FAIL_STACK_ERROR;
- if (HDmemcmp(wbuf, rbuf, 4 * sizeof(int32_t)) != 0)
+ if (memcmp(wbuf, rbuf, 4 * sizeof(int32_t)) != 0)
TEST_ERROR;
/* Case 11: New piece completely overlaps accumulated data */
@@ -753,7 +753,7 @@ test_accum_overlap(H5F_t *f)
FAIL_STACK_ERROR;
if (accum_read(112, 6 * sizeof(int32_t), rbuf) < 0)
FAIL_STACK_ERROR;
- if (HDmemcmp(wbuf, rbuf, 6 * sizeof(int32_t)) != 0)
+ if (memcmp(wbuf, rbuf, 6 * sizeof(int32_t)) != 0)
TEST_ERROR;
if (accum_reset(f) < 0)
@@ -812,7 +812,7 @@ test_accum_overlap_clean(H5F_t *f)
FAIL_STACK_ERROR;
if (accum_read(40, 10 * sizeof(int32_t), rbuf) < 0)
FAIL_STACK_ERROR;
- if (HDmemcmp(wbuf, rbuf, 10 * sizeof(int32_t)) != 0)
+ if (memcmp(wbuf, rbuf, 10 * sizeof(int32_t)) != 0)
TEST_ERROR;
/* Case 2: End of new piece aligns with start of clean accumulated data */
@@ -826,7 +826,7 @@ test_accum_overlap_clean(H5F_t *f)
FAIL_STACK_ERROR;
if (accum_read(20, 5 * sizeof(int32_t), rbuf) < 0)
FAIL_STACK_ERROR;
- if (HDmemcmp(wbuf, rbuf, 5 * sizeof(int32_t)) != 0)
+ if (memcmp(wbuf, rbuf, 5 * sizeof(int32_t)) != 0)
TEST_ERROR;
/* Case 3: Start of new piece aligns with start of accumulated data,
@@ -839,7 +839,7 @@ test_accum_overlap_clean(H5F_t *f)
FAIL_STACK_ERROR;
if (accum_read(20, 6 * sizeof(int32_t), rbuf) < 0)
FAIL_STACK_ERROR;
- if (HDmemcmp(wbuf, rbuf, 6 * sizeof(int32_t)) != 0)
+ if (memcmp(wbuf, rbuf, 6 * sizeof(int32_t)) != 0)
TEST_ERROR;
/* Case 4: New piece completely within accumulated data, overlaps
@@ -852,7 +852,7 @@ test_accum_overlap_clean(H5F_t *f)
FAIL_STACK_ERROR;
if (accum_read(40, 2 * sizeof(int32_t), rbuf) < 0)
FAIL_STACK_ERROR;
- if (HDmemcmp(wbuf, rbuf, 2 * sizeof(int32_t)) != 0)
+ if (memcmp(wbuf, rbuf, 2 * sizeof(int32_t)) != 0)
TEST_ERROR;
/* Case 5: New piece completely within accumulated data, completely
@@ -865,7 +865,7 @@ test_accum_overlap_clean(H5F_t *f)
FAIL_STACK_ERROR;
if (accum_read(52, 2 * sizeof(int32_t), rbuf) < 0)
FAIL_STACK_ERROR;
- if (HDmemcmp(wbuf, rbuf, 2 * sizeof(int32_t)) != 0)
+ if (memcmp(wbuf, rbuf, 2 * sizeof(int32_t)) != 0)
TEST_ERROR;
/* Case 6: New piece completely within clean accumulated data */
@@ -879,7 +879,7 @@ test_accum_overlap_clean(H5F_t *f)
FAIL_STACK_ERROR;
if (accum_read(44, 3 * sizeof(int32_t), rbuf) < 0)
FAIL_STACK_ERROR;
- if (HDmemcmp(wbuf, rbuf, 3 * sizeof(int32_t)) != 0)
+ if (memcmp(wbuf, rbuf, 3 * sizeof(int32_t)) != 0)
TEST_ERROR;
/* Case 7: New piece overlaps start of clean accumulated data */
@@ -893,7 +893,7 @@ test_accum_overlap_clean(H5F_t *f)
FAIL_STACK_ERROR;
if (accum_read(16, 2 * sizeof(int32_t), rbuf) < 0)
FAIL_STACK_ERROR;
- if (HDmemcmp(wbuf, rbuf, 2 * sizeof(int32_t)) != 0)
+ if (memcmp(wbuf, rbuf, 2 * sizeof(int32_t)) != 0)
TEST_ERROR;
/* Case 8: New piece overlaps start of accumulated data, completely
@@ -906,7 +906,7 @@ test_accum_overlap_clean(H5F_t *f)
FAIL_STACK_ERROR;
if (accum_read(12, 4 * sizeof(int32_t), rbuf) < 0)
FAIL_STACK_ERROR;
- if (HDmemcmp(wbuf, rbuf, 4 * sizeof(int32_t)) != 0)
+ if (memcmp(wbuf, rbuf, 4 * sizeof(int32_t)) != 0)
TEST_ERROR;
/* Case 9: Start of new piece aligns with end of clean accumulated data */
@@ -920,7 +920,7 @@ test_accum_overlap_clean(H5F_t *f)
FAIL_STACK_ERROR;
if (accum_read(80, 3 * sizeof(int32_t), rbuf) < 0)
FAIL_STACK_ERROR;
- if (HDmemcmp(wbuf, rbuf, 3 * sizeof(int32_t)) != 0)
+ if (memcmp(wbuf, rbuf, 3 * sizeof(int32_t)) != 0)
TEST_ERROR;
/* Case 10: New piece overlaps end of clean accumulated data */
@@ -934,7 +934,7 @@ test_accum_overlap_clean(H5F_t *f)
FAIL_STACK_ERROR;
if (accum_read(88, 2 * sizeof(int32_t), rbuf) < 0)
FAIL_STACK_ERROR;
- if (HDmemcmp(wbuf, rbuf, 2 * sizeof(int32_t)) != 0)
+ if (memcmp(wbuf, rbuf, 2 * sizeof(int32_t)) != 0)
TEST_ERROR;
/* Case 11: New piece overlaps end of accumulated data, completely encloses
@@ -947,7 +947,7 @@ test_accum_overlap_clean(H5F_t *f)
FAIL_STACK_ERROR;
if (accum_read(84, 4 * sizeof(int32_t), rbuf) < 0)
FAIL_STACK_ERROR;
- if (HDmemcmp(wbuf, rbuf, 4 * sizeof(int32_t)) != 0)
+ if (memcmp(wbuf, rbuf, 4 * sizeof(int32_t)) != 0)
TEST_ERROR;
/* Set up expected data buffer and verify contents of
@@ -970,7 +970,7 @@ test_accum_overlap_clean(H5F_t *f)
wbuf[i] = 7;
if (accum_read(12, 22 * sizeof(int32_t), rbuf) < 0)
FAIL_STACK_ERROR;
- if (HDmemcmp(wbuf, rbuf, 22 * sizeof(int32_t)) != 0)
+ if (memcmp(wbuf, rbuf, 22 * sizeof(int32_t)) != 0)
TEST_ERROR;
if (accum_reset(f) < 0)
@@ -1028,7 +1028,7 @@ test_accum_non_overlap_size(H5F_t *f)
FAIL_STACK_ERROR;
if (accum_read(140, 10 * sizeof(int32_t), rbuf) < 0)
FAIL_STACK_ERROR;
- if (HDmemcmp(wbuf, rbuf, 10 * sizeof(int32_t)) != 0)
+ if (memcmp(wbuf, rbuf, 10 * sizeof(int32_t)) != 0)
TEST_ERROR;
/* Case 9: New piece completely before accumulated data */
@@ -1040,7 +1040,7 @@ test_accum_non_overlap_size(H5F_t *f)
FAIL_STACK_ERROR;
if (accum_read(0, 20 * sizeof(int32_t), rbuf) < 0)
FAIL_STACK_ERROR;
- if (HDmemcmp(wbuf, rbuf, 20 * sizeof(int32_t)) != 0)
+ if (memcmp(wbuf, rbuf, 20 * sizeof(int32_t)) != 0)
TEST_ERROR;
if (accum_reset(f) < 0)
@@ -1099,7 +1099,7 @@ test_accum_overlap_size(H5F_t *f)
FAIL_STACK_ERROR;
if (accum_read(64, 10 * sizeof(int32_t), rbuf) < 0)
FAIL_STACK_ERROR;
- if (HDmemcmp(wbuf, rbuf, 10 * sizeof(int32_t)) != 0)
+ if (memcmp(wbuf, rbuf, 10 * sizeof(int32_t)) != 0)
TEST_ERROR;
/* Case 9: New piece completely before accumulated data */
@@ -1111,7 +1111,7 @@ test_accum_overlap_size(H5F_t *f)
FAIL_STACK_ERROR;
if (accum_read(60, 72 * sizeof(int32_t), rbuf) < 0)
FAIL_STACK_ERROR;
- if (HDmemcmp(wbuf, rbuf, 72 * sizeof(int32_t)) != 0)
+ if (memcmp(wbuf, rbuf, 72 * sizeof(int32_t)) != 0)
TEST_ERROR;
if (accum_reset(f) < 0)
@@ -1199,13 +1199,13 @@ test_accum_adjust(H5F_t *f)
/* Read back and verify first write */
if (accum_read((1024 * 1024), (1024 * 1024) - 1, rbuf) < 0)
FAIL_STACK_ERROR;
- if (HDmemcmp(wbuf, rbuf, (size_t)((1024 * 1024) - 1)) != 0)
+ if (memcmp(wbuf, rbuf, (size_t)((1024 * 1024) - 1)) != 0)
TEST_ERROR;
/* Read back and verify second write */
if (accum_read((1024 * 1024) - 1024, 1024, rbuf) < 0)
FAIL_STACK_ERROR;
- if (HDmemcmp(wbuf, rbuf, (size_t)1024) != 0)
+ if (memcmp(wbuf, rbuf, (size_t)1024) != 0)
TEST_ERROR;
/* Reset accumulator for next case */
@@ -1236,12 +1236,12 @@ test_accum_adjust(H5F_t *f)
/* Read back and verify both pieces of data */
if (accum_read(1048576, 1048575, rbuf) < 0)
FAIL_STACK_ERROR;
- if (HDmemcmp(wbuf, rbuf, (size_t)1048576) != 0)
+ if (memcmp(wbuf, rbuf, (size_t)1048576) != 0)
TEST_ERROR;
if (accum_read(5, 1048571, rbuf) < 0)
FAIL_STACK_ERROR;
- if (HDmemcmp(wbuf, rbuf, (size_t)1048571) != 0)
+ if (memcmp(wbuf, rbuf, (size_t)1048571) != 0)
TEST_ERROR;
/* Reset accumulator for next case */
@@ -1283,7 +1283,7 @@ test_accum_adjust(H5F_t *f)
the data is as expected */
if (accum_read((1024 * 1024) - 1, 1024, rbuf) < 0)
FAIL_STACK_ERROR;
- if (HDmemcmp(wbuf, rbuf, (size_t)1024) != 0)
+ if (memcmp(wbuf, rbuf, (size_t)1024) != 0)
TEST_ERROR;
/* Reset accumulator for next case */
@@ -1331,7 +1331,7 @@ test_accum_adjust(H5F_t *f)
the data is as expected */
if (accum_read(1048571, 349523, rbuf) < 0)
FAIL_STACK_ERROR;
- if (HDmemcmp(wbuf, rbuf, (size_t)349523) != 0)
+ if (memcmp(wbuf, rbuf, (size_t)349523) != 0)
TEST_ERROR;
/* Reset accumulator for next case */
@@ -1376,7 +1376,7 @@ test_accum_adjust(H5F_t *f)
the data is as expected */
if (accum_read((1024 * 1024) - 5, 10, rbuf) < 0)
FAIL_STACK_ERROR;
- if (HDmemcmp(wbuf, rbuf, (size_t)10) != 0)
+ if (memcmp(wbuf, rbuf, (size_t)10) != 0)
TEST_ERROR;
/* Reset accumulator for next case */
@@ -1414,7 +1414,7 @@ test_accum_adjust(H5F_t *f)
the data is as expected */
if (accum_read(1048571, 349523, rbuf) < 0)
FAIL_STACK_ERROR;
- if (HDmemcmp(wbuf, rbuf, (size_t)349523) != 0)
+ if (memcmp(wbuf, rbuf, (size_t)349523) != 0)
TEST_ERROR;
if (accum_reset(f) < 0)
@@ -1500,7 +1500,7 @@ test_read_after(H5F_t *f)
the data is as expected */
if (accum_read(512, 512, rbuf) < 0)
FAIL_STACK_ERROR;
- if (HDmemcmp(wbuf, rbuf, (size_t)128) != 0)
+ if (memcmp(wbuf, rbuf, (size_t)128) != 0)
TEST_ERROR;
if (accum_reset(f) < 0)
@@ -1566,13 +1566,13 @@ test_big(H5F_t *f)
FAIL_STACK_ERROR;
/* Verify data read */
- if (HDmemcmp(wbuf, rbuf, (size_t)BIG_BUF_SIZE) != 0)
+ if (memcmp(wbuf, rbuf, (size_t)BIG_BUF_SIZE) != 0)
TEST_ERROR;
/* Reset data in file back to zeros & reset the read buffer */
if (accum_write(0, BIG_BUF_SIZE, zbuf) < 0)
FAIL_STACK_ERROR;
- HDmemset(rbuf, 0, (size_t)BIG_BUF_SIZE);
+ memset(rbuf, 0, (size_t)BIG_BUF_SIZE);
if (accum_reset(f) < 0)
FAIL_STACK_ERROR;
@@ -1586,17 +1586,17 @@ test_big(H5F_t *f)
FAIL_STACK_ERROR;
/* Verify data read */
- if (HDmemcmp(zbuf, rbuf, (size_t)1024) != 0)
+ if (memcmp(zbuf, rbuf, (size_t)1024) != 0)
TEST_ERROR;
- if (HDmemcmp(wbuf, rbuf + 1024, (size_t)1024) != 0)
+ if (memcmp(wbuf, rbuf + 1024, (size_t)1024) != 0)
TEST_ERROR;
- if (HDmemcmp(zbuf, rbuf + 2048, (size_t)(BIG_BUF_SIZE - 2048)) != 0)
+ if (memcmp(zbuf, rbuf + 2048, (size_t)(BIG_BUF_SIZE - 2048)) != 0)
TEST_ERROR;
/* Reset data in file back to zeros & reset the read buffer */
if (accum_write(1024, 1024, zbuf) < 0)
FAIL_STACK_ERROR;
- HDmemset(rbuf, 0, (size_t)BIG_BUF_SIZE);
+ memset(rbuf, 0, (size_t)BIG_BUF_SIZE);
if (accum_reset(f) < 0)
FAIL_STACK_ERROR;
@@ -1610,15 +1610,15 @@ test_big(H5F_t *f)
FAIL_STACK_ERROR;
/* Verify data read */
- if (HDmemcmp(zbuf, rbuf, (size_t)(BIG_BUF_SIZE - 512)) != 0)
+ if (memcmp(zbuf, rbuf, (size_t)(BIG_BUF_SIZE - 512)) != 0)
TEST_ERROR;
- if (HDmemcmp(wbuf, rbuf + (BIG_BUF_SIZE - 512), (size_t)512) != 0)
+ if (memcmp(wbuf, rbuf + (BIG_BUF_SIZE - 512), (size_t)512) != 0)
TEST_ERROR;
/* Reset data in file back to zeros & reset the read buffer */
if (accum_write(BIG_BUF_SIZE - 512, 1024, zbuf) < 0)
FAIL_STACK_ERROR;
- HDmemset(rbuf, 0, (size_t)BIG_BUF_SIZE);
+ memset(rbuf, 0, (size_t)BIG_BUF_SIZE);
if (accum_reset(f) < 0)
FAIL_STACK_ERROR;
@@ -1632,15 +1632,15 @@ test_big(H5F_t *f)
FAIL_STACK_ERROR;
/* Verify data read */
- if (HDmemcmp(wbuf + 512, rbuf, (size_t)512) != 0)
+ if (memcmp(wbuf + 512, rbuf, (size_t)512) != 0)
TEST_ERROR;
- if (HDmemcmp(zbuf, rbuf + 512, (size_t)(BIG_BUF_SIZE - 512)) != 0)
+ if (memcmp(zbuf, rbuf + 512, (size_t)(BIG_BUF_SIZE - 512)) != 0)
TEST_ERROR;
/* Reset data in file back to zeros & reset the read buffer */
if (accum_write(0, 1024, zbuf) < 0)
FAIL_STACK_ERROR;
- HDmemset(rbuf, 0, (size_t)BIG_BUF_SIZE);
+ memset(rbuf, 0, (size_t)BIG_BUF_SIZE);
if (accum_reset(f) < 0)
FAIL_STACK_ERROR;
@@ -1660,13 +1660,13 @@ test_big(H5F_t *f)
FAIL_STACK_ERROR;
/* Verify data read */
- if (HDmemcmp(wbuf2, rbuf, (size_t)BIG_BUF_SIZE) != 0)
+ if (memcmp(wbuf2, rbuf, (size_t)BIG_BUF_SIZE) != 0)
TEST_ERROR;
/* Reset data in file back to zeros & reset the read buffer */
if (accum_write(0, BIG_BUF_SIZE, zbuf) < 0)
FAIL_STACK_ERROR;
- HDmemset(rbuf, 0, (size_t)BIG_BUF_SIZE);
+ memset(rbuf, 0, (size_t)BIG_BUF_SIZE);
if (accum_reset(f) < 0)
FAIL_STACK_ERROR;
@@ -1686,15 +1686,15 @@ test_big(H5F_t *f)
FAIL_STACK_ERROR;
/* Verify data read */
- if (HDmemcmp(wbuf2, rbuf, (size_t)BIG_BUF_SIZE) != 0)
+ if (memcmp(wbuf2, rbuf, (size_t)BIG_BUF_SIZE) != 0)
TEST_ERROR;
- if (HDmemcmp(wbuf + 512, rbuf + BIG_BUF_SIZE, (size_t)512) != 0)
+ if (memcmp(wbuf + 512, rbuf + BIG_BUF_SIZE, (size_t)512) != 0)
TEST_ERROR;
/* Reset data in file back to zeros & reset the read buffer */
if (accum_write(0, BIG_BUF_SIZE + 512, zbuf) < 0)
FAIL_STACK_ERROR;
- HDmemset(rbuf, 0, (size_t)(BIG_BUF_SIZE + 512));
+ memset(rbuf, 0, (size_t)(BIG_BUF_SIZE + 512));
if (accum_reset(f) < 0)
FAIL_STACK_ERROR;
@@ -1719,17 +1719,17 @@ test_big(H5F_t *f)
FAIL_STACK_ERROR;
/* Verify data read */
- if (HDmemcmp(wbuf2, rbuf, (size_t)BIG_BUF_SIZE) != 0)
+ if (memcmp(wbuf2, rbuf, (size_t)BIG_BUF_SIZE) != 0)
TEST_ERROR;
- if (HDmemcmp(zbuf, rbuf + BIG_BUF_SIZE, (size_t)512) != 0)
+ if (memcmp(zbuf, rbuf + BIG_BUF_SIZE, (size_t)512) != 0)
TEST_ERROR;
- if (HDmemcmp(wbuf, rbuf + BIG_BUF_SIZE + 512, (size_t)512) != 0)
+ if (memcmp(wbuf, rbuf + BIG_BUF_SIZE + 512, (size_t)512) != 0)
TEST_ERROR;
/* Reset data in file back to zeros & reset the read buffer */
if (accum_write(0, BIG_BUF_SIZE + 1536, zbuf) < 0)
FAIL_STACK_ERROR;
- HDmemset(rbuf, 0, (size_t)(BIG_BUF_SIZE + 1024));
+ memset(rbuf, 0, (size_t)(BIG_BUF_SIZE + 1024));
if (accum_reset(f) < 0)
FAIL_STACK_ERROR;
@@ -1756,15 +1756,15 @@ test_big(H5F_t *f)
FAIL_STACK_ERROR;
/* Verify data read */
- if (HDmemcmp(zbuf, rbuf, (size_t)1536) != 0)
+ if (memcmp(zbuf, rbuf, (size_t)1536) != 0)
TEST_ERROR;
- if (HDmemcmp(wbuf2, rbuf + 1536, (size_t)BIG_BUF_SIZE) != 0)
+ if (memcmp(wbuf2, rbuf + 1536, (size_t)BIG_BUF_SIZE) != 0)
TEST_ERROR;
/* Reset data in file back to zeros & reset the read buffer */
if (accum_write(1536, BIG_BUF_SIZE, zbuf) < 0)
FAIL_STACK_ERROR;
- HDmemset(rbuf, 0, (size_t)(BIG_BUF_SIZE + 1536));
+ memset(rbuf, 0, (size_t)(BIG_BUF_SIZE + 1536));
if (accum_reset(f) < 0)
FAIL_STACK_ERROR;
@@ -1789,15 +1789,15 @@ test_big(H5F_t *f)
FAIL_STACK_ERROR;
/* Verify data read */
- if (HDmemcmp(zbuf, rbuf, (size_t)512) != 0)
+ if (memcmp(zbuf, rbuf, (size_t)512) != 0)
TEST_ERROR;
- if (HDmemcmp(wbuf2, rbuf + 512, (size_t)BIG_BUF_SIZE) != 0)
+ if (memcmp(wbuf2, rbuf + 512, (size_t)BIG_BUF_SIZE) != 0)
TEST_ERROR;
/* Reset data in file back to zeros & reset the read buffer */
if (accum_write(512, BIG_BUF_SIZE, zbuf) < 0)
FAIL_STACK_ERROR;
- HDmemset(rbuf, 0, (size_t)(BIG_BUF_SIZE + 512));
+ memset(rbuf, 0, (size_t)(BIG_BUF_SIZE + 512));
if (accum_reset(f) < 0)
FAIL_STACK_ERROR;
@@ -1822,17 +1822,17 @@ test_big(H5F_t *f)
FAIL_STACK_ERROR;
/* Verify data read */
- if (HDmemcmp(wbuf, rbuf, (size_t)1024) != 0)
+ if (memcmp(wbuf, rbuf, (size_t)1024) != 0)
TEST_ERROR;
- if (HDmemcmp(zbuf, rbuf + 1024, (size_t)512) != 0)
+ if (memcmp(zbuf, rbuf + 1024, (size_t)512) != 0)
TEST_ERROR;
- if (HDmemcmp(wbuf2, rbuf + 1536, (size_t)BIG_BUF_SIZE) != 0)
+ if (memcmp(wbuf2, rbuf + 1536, (size_t)BIG_BUF_SIZE) != 0)
TEST_ERROR;
/* Reset data in file back to zeros & reset the read buffer */
if (accum_write(0, BIG_BUF_SIZE + 1536, zbuf) < 0)
FAIL_STACK_ERROR;
- HDmemset(rbuf, 0, (size_t)(BIG_BUF_SIZE + 1536));
+ memset(rbuf, 0, (size_t)(BIG_BUF_SIZE + 1536));
if (accum_reset(f) < 0)
FAIL_STACK_ERROR;
@@ -1857,9 +1857,9 @@ test_big(H5F_t *f)
FAIL_STACK_ERROR;
/* Verify data read */
- if (HDmemcmp(wbuf, rbuf, (size_t)512) != 0)
+ if (memcmp(wbuf, rbuf, (size_t)512) != 0)
TEST_ERROR;
- if (HDmemcmp(wbuf2, rbuf + 512, (size_t)BIG_BUF_SIZE) != 0)
+ if (memcmp(wbuf2, rbuf + 512, (size_t)BIG_BUF_SIZE) != 0)
TEST_ERROR;
if (accum_reset(f) < 0)
@@ -1993,7 +1993,7 @@ fprintf(stderr, "Random # seed was: %u\n", seed);
/* Verify individual reads */
if (accum_read(RANDOM_BASE_OFF + off[u], len[u], rbuf) < 0)
FAIL_STACK_ERROR;
- if (HDmemcmp(wbuf + off[u], rbuf, len[u]) != 0)
+ if (memcmp(wbuf + off[u], rbuf, len[u]) != 0)
TEST_ERROR;
} /* end for */
@@ -2002,7 +2002,7 @@ fprintf(stderr, "Random # seed was: %u\n", seed);
FAIL_STACK_ERROR;
/* Verify data read back in */
- if (HDmemcmp(wbuf, rbuf, (size_t)RANDOM_BUF_SIZE) != 0)
+ if (memcmp(wbuf, rbuf, (size_t)RANDOM_BUF_SIZE) != 0)
TEST_ERROR;
if (accum_reset(f) < 0)
@@ -2148,7 +2148,7 @@ test_swmr_write_big(hbool_t newest_format)
if (H5F_block_read(rf, H5FD_MEM_DEFAULT, (haddr_t)1024, (size_t)1024, rbuf) < 0)
FAIL_STACK_ERROR;
/* Verify the data read is correct */
- if (HDmemcmp(wbuf, rbuf, (size_t)1024) != 0)
+ if (memcmp(wbuf, rbuf, (size_t)1024) != 0)
TEST_ERROR;
/* Flush the data to disk */
if (accum_reset(rf) < 0)
@@ -2169,7 +2169,7 @@ test_swmr_write_big(hbool_t newest_format)
if (H5F_block_read(rf, H5FD_MEM_DEFAULT, (haddr_t)1024, (size_t)1024, rbuf) < 0)
FAIL_STACK_ERROR;
/* Verify the data read is correct */
- if (HDmemcmp(wbuf, rbuf, (size_t)1024) != 0)
+ if (memcmp(wbuf, rbuf, (size_t)1024) != 0)
TEST_ERROR;
/* The data stays in the accumulator */
@@ -2180,7 +2180,7 @@ test_swmr_write_big(hbool_t newest_format)
if (H5F_block_read(rf, H5FD_MEM_DEFAULT, (haddr_t)2048, (size_t)BIG_BUF_SIZE, rbuf) < 0)
FAIL_STACK_ERROR;
/* Verify the data read is correct */
- if (HDmemcmp(wbuf2, rbuf, (size_t)BIG_BUF_SIZE) != 0)
+ if (memcmp(wbuf2, rbuf, (size_t)BIG_BUF_SIZE) != 0)
TEST_ERROR;
#if defined(H5_HAVE_WIN32_API)
diff --git a/test/accum_swmr_reader.c b/test/accum_swmr_reader.c
index 7ab9ab9..659a60a 100644
--- a/test/accum_swmr_reader.c
+++ b/test/accum_swmr_reader.c
@@ -88,7 +88,7 @@ main(void)
FAIL_STACK_ERROR;
/* Verify the data read is correct */
- if (HDmemcmp(buf, rbuf, (size_t)1024) != 0)
+ if (memcmp(buf, rbuf, (size_t)1024) != 0)
TEST_ERROR;
/* CLose the file */
diff --git a/test/bittests.c b/test/bittests.c
index 512e84a..10cd280 100644
--- a/test/bittests.c
+++ b/test/bittests.c
@@ -43,7 +43,7 @@ test_find(void)
TESTING("bit search operations");
/* The zero length buffer */
- HDmemset(v1, 0xaa, sizeof v1);
+ memset(v1, 0xaa, sizeof v1);
n = H5T__bit_find(v1, (size_t)0, (size_t)0, H5T_BIT_LSB, TRUE);
if (-1 != n) {
H5_FAILED();
@@ -58,7 +58,7 @@ test_find(void)
}
/* The zero buffer */
- HDmemset(v1, 0, sizeof v1);
+ memset(v1, 0, sizeof v1);
n = H5T__bit_find(v1, (size_t)0, 8 * sizeof(v1), H5T_BIT_LSB, TRUE);
if (-1 != n) {
H5_FAILED();
@@ -74,7 +74,7 @@ test_find(void)
/* Try all combinations of one byte */
for (i = 0; i < 8 * (int)sizeof(v1); i++) {
- HDmemset(v1, 0, sizeof v1);
+ memset(v1, 0, sizeof v1);
v1[i / 8] = (uint8_t)(1 << (i % 8));
n = H5T__bit_find(v1, (size_t)0, 8 * sizeof(v1), H5T_BIT_LSB, TRUE);
if ((ssize_t)i != n) {
@@ -91,7 +91,7 @@ test_find(void)
}
/* The one buffer */
- HDmemset(v1, 0xff, sizeof v1);
+ memset(v1, 0xff, sizeof v1);
n = H5T__bit_find(v1, (size_t)0, 8 * sizeof(v1), H5T_BIT_LSB, FALSE);
if (-1 != n) {
H5_FAILED();
@@ -107,7 +107,7 @@ test_find(void)
/* Try all combinations of one byte */
for (i = 0; i < 8 * (int)sizeof(v1); i++) {
- HDmemset(v1, 0xff, sizeof v1);
+ memset(v1, 0xff, sizeof v1);
v1[i / 8] &= (uint8_t) ~(1 << (i % 8));
n = H5T__bit_find(v1, (size_t)0, 8 * sizeof(v1), H5T_BIT_LSB, FALSE);
if ((ssize_t)i != n) {
@@ -160,8 +160,8 @@ test_copy(void)
d_offset = (size_t)HDrand() % (8 * sizeof v2);
size = (unsigned)HDrand() % MIN(8 * sizeof(v1), 8 * sizeof(v2));
size = MIN3(size, 8 * sizeof(v1) - s_offset, 8 * sizeof(v2) - d_offset);
- HDmemset(v1, 0xff, sizeof v1);
- HDmemset(v2, 0x00, sizeof v2);
+ memset(v1, 0xff, sizeof v1);
+ memset(v2, 0x00, sizeof v2);
/* Copy some bits to v2 and make sure something was copied */
H5T__bit_copy(v2, d_offset, v1, s_offset, size);
@@ -285,7 +285,7 @@ test_shift(void)
shift_dist = (ssize_t)((size_t)HDrand() % size);
/*-------- LEFT-shift some bits and make sure something was shifted --------*/
- HDmemset(vector, 0x00, sizeof vector);
+ memset(vector, 0x00, sizeof vector);
H5T__bit_set(vector, offset, size, 1);
H5T__bit_shift(vector, shift_dist, offset, size);
@@ -314,7 +314,7 @@ test_shift(void)
}
/*-------- RIGHT-shift some bits and make sure something was shifted --------*/
- HDmemset(vector, 0x00, sizeof vector);
+ memset(vector, 0x00, sizeof vector);
H5T__bit_set(vector, offset, size, 1);
H5T__bit_shift(vector, -shift_dist, offset, size);
@@ -351,7 +351,7 @@ test_shift(void)
else
shift_dist = -((ssize_t)size);
- HDmemset(vector, 0x00, sizeof vector);
+ memset(vector, 0x00, sizeof vector);
H5T__bit_set(vector, offset, size, 1);
H5T__bit_shift(vector, shift_dist, offset, size);
@@ -417,7 +417,7 @@ test_increment(void)
if (size == 0)
continue;
- HDmemset(vector, 0x00, sizeof vector);
+ memset(vector, 0x00, sizeof vector);
if (size > 1) /* if size=6, make a sequence like 011111 */
H5T__bit_set(vector, offset, size - 1, 1);
else /* if size=1, just set this one bit to 1 */
@@ -504,7 +504,7 @@ test_decrement(void)
continue;
/* All-zero sequence will become 111111(size=6) after decrement */
- HDmemset(vector, 0x00, sizeof vector);
+ memset(vector, 0x00, sizeof vector);
/* decrement the sequence by one */
H5T__bit_dec(vector, offset, size);
@@ -573,7 +573,7 @@ test_negate(void)
continue;
/* All-zero sequence will become 111111(size=6) after negating */
- HDmemset(vector, 0x00, sizeof vector);
+ memset(vector, 0x00, sizeof vector);
/* negate the sequence */
H5T__bit_neg(vector, offset, size);
@@ -602,7 +602,7 @@ test_negate(void)
}
/* All-one sequence will become 000000(size=6) after negating */
- HDmemset(vector, 0x00, sizeof vector);
+ memset(vector, 0x00, sizeof vector);
H5T__bit_set(vector, offset, size, 1);
/* negate the sequence */
@@ -668,7 +668,7 @@ test_set(void)
d_offset = (size_t)HDrand() % (8 * sizeof v2);
size = (size_t)HDrand() % (8 * sizeof(v2));
size = MIN(size, 8 * sizeof(v2) - d_offset);
- HDmemset(v2, 0x00, sizeof v2);
+ memset(v2, 0x00, sizeof v2);
/* Set some bits in v2 */
H5T__bit_set(v2, d_offset, size, TRUE);
@@ -783,7 +783,7 @@ test_clear(void)
d_offset = (size_t)HDrand() % (8 * sizeof v2);
size = (size_t)HDrand() % (8 * sizeof(v2));
size = MIN(size, 8 * sizeof(v2) - d_offset);
- HDmemset(v2, 0xff, sizeof v2);
+ memset(v2, 0xff, sizeof v2);
/* Clear some bits in v2 */
H5T__bit_set(v2, d_offset, size, FALSE);
diff --git a/test/btree2.c b/test/btree2.c
index ff426d7..9b8edbe 100644
--- a/test/btree2.c
+++ b/test/btree2.c
@@ -56,7 +56,7 @@ static int
init_cparam(H5B2_create_t *cparam, H5B2_create_t *cparam2)
{
/* Wipe out background */
- HDmemset(cparam, 0, sizeof(*cparam));
+ memset(cparam, 0, sizeof(*cparam));
/* General parameters */
cparam->cls = H5B2_TEST;
@@ -66,7 +66,7 @@ init_cparam(H5B2_create_t *cparam, H5B2_create_t *cparam2)
cparam->merge_percent = 40;
/* Wipe out background */
- HDmemset(cparam2, 0, sizeof(*cparam2));
+ memset(cparam2, 0, sizeof(*cparam2));
/* General parameters */
cparam2->cls = H5B2_TEST2;
diff --git a/test/cache.c b/test/cache.c
index 838bc5a..673b253 100644
--- a/test/cache.c
+++ b/test/cache.c
@@ -8319,8 +8319,8 @@ check_flush_cache__flush_op_eviction_test(H5F_t *file_ptr)
expected[i].serialized = FALSE;
expected[i].destroyed = FALSE;
- HDmemset(expected[i].flush_dep_par_type, 0, sizeof(expected[i].flush_dep_par_type));
- HDmemset(expected[i].flush_dep_par_idx, 0, sizeof(expected[i].flush_dep_par_idx));
+ memset(expected[i].flush_dep_par_type, 0, sizeof(expected[i].flush_dep_par_type));
+ memset(expected[i].flush_dep_par_idx, 0, sizeof(expected[i].flush_dep_par_idx));
expected[i].flush_dep_npar = 0;
expected[i].flush_dep_nchd = 0;
@@ -8365,8 +8365,8 @@ check_flush_cache__flush_op_eviction_test(H5F_t *file_ptr)
expected[i].serialized = FALSE;
expected[i].destroyed = FALSE;
- HDmemset(expected[i].flush_dep_par_type, 0, sizeof(expected[i].flush_dep_par_type));
- HDmemset(expected[i].flush_dep_par_idx, 0, sizeof(expected[i].flush_dep_par_idx));
+ memset(expected[i].flush_dep_par_type, 0, sizeof(expected[i].flush_dep_par_type));
+ memset(expected[i].flush_dep_par_idx, 0, sizeof(expected[i].flush_dep_par_idx));
expected[i].flush_dep_npar = 0;
expected[i].flush_dep_nchd = 0;
@@ -8388,8 +8388,8 @@ check_flush_cache__flush_op_eviction_test(H5F_t *file_ptr)
expected[i].serialized = FALSE;
expected[i].destroyed = FALSE;
- HDmemset(expected[i].flush_dep_par_type, 0, sizeof(expected[i].flush_dep_par_type));
- HDmemset(expected[i].flush_dep_par_idx, 0, sizeof(expected[i].flush_dep_par_idx));
+ memset(expected[i].flush_dep_par_type, 0, sizeof(expected[i].flush_dep_par_type));
+ memset(expected[i].flush_dep_par_idx, 0, sizeof(expected[i].flush_dep_par_idx));
expected[i].flush_dep_npar = 0;
expected[i].flush_dep_nchd = 0;
@@ -25203,8 +25203,8 @@ check_metadata_blizzard_absence(hbool_t fill_via_insertion, unsigned paged)
expected[i].serialized = FALSE;
expected[i].destroyed = FALSE;
- HDmemset(expected[i].flush_dep_par_type, 0, sizeof(expected[i].flush_dep_par_type));
- HDmemset(expected[i].flush_dep_par_idx, 0, sizeof(expected[i].flush_dep_par_idx));
+ memset(expected[i].flush_dep_par_type, 0, sizeof(expected[i].flush_dep_par_type));
+ memset(expected[i].flush_dep_par_idx, 0, sizeof(expected[i].flush_dep_par_idx));
expected[i].flush_dep_npar = 0;
expected[i].flush_dep_nchd = 0;
@@ -31046,8 +31046,8 @@ check_metadata_cork(hbool_t fill_via_insertion, unsigned paged)
expected[i].serialized = FALSE;
expected[i].destroyed = FALSE;
- HDmemset(expected[i].flush_dep_par_type, 0, sizeof(expected[i].flush_dep_par_type));
- HDmemset(expected[i].flush_dep_par_idx, 0, sizeof(expected[i].flush_dep_par_idx));
+ memset(expected[i].flush_dep_par_type, 0, sizeof(expected[i].flush_dep_par_type));
+ memset(expected[i].flush_dep_par_idx, 0, sizeof(expected[i].flush_dep_par_idx));
expected[i].flush_dep_npar = 0;
expected[i].flush_dep_nchd = 0;
diff --git a/test/cache_common.c b/test/cache_common.c
index f469a5b..b406ff4 100644
--- a/test/cache_common.c
+++ b/test/cache_common.c
@@ -1105,7 +1105,7 @@ serialize(const H5F_t H5_ATTR_UNUSED *f, void *image_ptr, size_t len, void *thin
assert(entry->num_flush_ops < MAX_FLUSH_OPS);
/* null out the image to avoid spurious failures */
- HDmemset(image_ptr, 0, len);
+ memset(image_ptr, 0, len);
if ((type == PICO_ENTRY_TYPE) || (type == VARIABLE_ENTRY_TYPE) || (type == NOTIFY_ENTRY_TYPE)) {
assert(entry->size >= PICO_ENTRY_SIZE);
@@ -2077,7 +2077,7 @@ reset_entries(void)
} /* end for */
/* Make copy of entries in base_addr for later */
- HDmemcpy(orig_base_addr, base_addr, (size_t)(max_index + 1) * sizeof(*base_addr));
+ memcpy(orig_base_addr, base_addr, (size_t)(max_index + 1) * sizeof(*base_addr));
} /* end for */
/* Indicate that we've made a copy for later */
@@ -2090,7 +2090,7 @@ reset_entries(void)
orig_base_addr = orig_entries[i];
/* Make copy of entries in base_addr for later */
- HDmemcpy(base_addr, orig_base_addr, (size_t)(max_index + 1) * sizeof(*base_addr));
+ memcpy(base_addr, orig_base_addr, (size_t)(max_index + 1) * sizeof(*base_addr));
} /* end for */
} /* end else */
@@ -4663,11 +4663,11 @@ destroy_flush_dependency(int32_t par_type, int32_t par_idx, int32_t chd_type, in
break;
assert(i < chd_entry_ptr->flush_dep_npar);
if (i < chd_entry_ptr->flush_dep_npar - 1)
- HDmemmove(&chd_entry_ptr->flush_dep_par_type[i], &chd_entry_ptr->flush_dep_par_type[i + 1],
- (chd_entry_ptr->flush_dep_npar - i - 1) * sizeof(chd_entry_ptr->flush_dep_par_type[0]));
+ memmove(&chd_entry_ptr->flush_dep_par_type[i], &chd_entry_ptr->flush_dep_par_type[i + 1],
+ (chd_entry_ptr->flush_dep_npar - i - 1) * sizeof(chd_entry_ptr->flush_dep_par_type[0]));
if (i < chd_entry_ptr->flush_dep_npar - 1)
- HDmemmove(&chd_entry_ptr->flush_dep_par_idx[i], &chd_entry_ptr->flush_dep_par_idx[i + 1],
- (chd_entry_ptr->flush_dep_npar - i - 1) * sizeof(chd_entry_ptr->flush_dep_par_idx[0]));
+ memmove(&chd_entry_ptr->flush_dep_par_idx[i], &chd_entry_ptr->flush_dep_par_idx[i + 1],
+ (chd_entry_ptr->flush_dep_npar - i - 1) * sizeof(chd_entry_ptr->flush_dep_par_idx[0]));
chd_entry_ptr->flush_dep_npar--;
par_entry_ptr->flush_dep_nchd--;
if (par_entry_ptr->flush_dep_nchd == 0) {
diff --git a/test/cache_logging.c b/test/cache_logging.c
index dff9feb..5001c49 100644
--- a/test/cache_logging.c
+++ b/test/cache_logging.c
@@ -109,7 +109,7 @@ test_logging_api(void)
/* Perform some manipulations */
for (i = 0; i < N_GROUPS; i++) {
- HDmemset(group_name, 0, sizeof(group_name));
+ memset(group_name, 0, sizeof(group_name));
HDsnprintf(group_name, sizeof(group_name), "%d", i);
if ((gid = H5Gcreate2(fid, group_name, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0)
TEST_ERROR;
diff --git a/test/chunk_info.c b/test/chunk_info.c
index e45dcb9..4a62458 100644
--- a/test/chunk_info.c
+++ b/test/chunk_info.c
@@ -329,7 +329,7 @@ verify_selected_chunks(hid_t dset, hid_t plist, const hsize_t *start, const hsiz
hsize_t ii, jj; /* Array indices */
int n;
- HDmemset(&read_buf, 0, sizeof(read_buf));
+ memset(&read_buf, 0, sizeof(read_buf));
/* Initialize the array of chunk data for all NUM_CHUNKS chunks, this is
the same as the written data and will be used to verify the read data */
@@ -351,7 +351,7 @@ verify_selected_chunks(hid_t dset, hid_t plist, const hsize_t *start, const hsiz
TEST_ERROR;
/* Verify that read chunk is the same as the corresponding written one */
- if (HDmemcmp(expected_buf[chk_index], read_buf, CHUNK_NX * CHUNK_NY) != 0) {
+ if (memcmp(expected_buf[chk_index], read_buf, CHUNK_NX * CHUNK_NY) != 0) {
fprintf(stderr,
"Read chunk differs from written chunk at offset (%" PRIuHSIZE ",%" PRIuHSIZE ")\n",
offset[0], offset[1]);
@@ -589,7 +589,7 @@ test_get_chunk_info_highest_v18(hid_t fapl)
/* Allocate input (non-compressed) buffer */
if (NULL == (inbuf = calloc(1, CHK_SIZE)))
TEST_ERROR;
- HDmemcpy(inbuf, direct_buf, CHK_SIZE);
+ memcpy(inbuf, direct_buf, CHK_SIZE);
#endif /* end H5_HAVE_FILTER_DEFLATE */
/* Write only NUM_CHUNKS_WRITTEN chunks at the following logical coords:
@@ -2118,7 +2118,7 @@ test_flt_msk_with_skip_compress(hid_t fapl)
TEST_ERROR;
/* Read the raw chunk back with H5Dread_chunk */
- HDmemset(&read_direct_buf, 0, sizeof(read_direct_buf));
+ memset(&read_direct_buf, 0, sizeof(read_direct_buf));
if (H5Dread_chunk(dset, H5P_DEFAULT, offset, &read_flt_msk, read_direct_buf) < 0)
TEST_ERROR;
if (read_flt_msk != flt_msk)
diff --git a/test/cmpd_dset.c b/test/cmpd_dset.c
index 06667f4..5e7a6e1 100644
--- a/test/cmpd_dset.c
+++ b/test/cmpd_dset.c
@@ -1678,7 +1678,7 @@ test_pack_ooo(void)
/* Reshape free_order to remove j (which is no longer free) */
if (j < (num_free - 1))
- HDmemmove(&free_order[j], &free_order[j + 1], (num_free - j - 1) * sizeof(free_order[0]));
+ memmove(&free_order[j], &free_order[j + 1], (num_free - j - 1) * sizeof(free_order[0]));
} /* end for */
/* Generate order to insert inner compound type */
diff --git a/test/cross_read.c b/test/cross_read.c
index 1ee84a3..8369a76 100644
--- a/test/cross_read.c
+++ b/test/cross_read.c
@@ -84,7 +84,7 @@ check_data_i(const char *dsetname, hid_t fid)
for (i = 0; i < NY; i++)
data_in[NX][i] = -2;
/* Output */
- HDmemset(data_out, 0, (NX + 1) * NY * sizeof(long long));
+ memset(data_out, 0, (NX + 1) * NY * sizeof(long long));
/* Read data from hyperslab in the file into the hyperslab in
* memory and display.
@@ -155,7 +155,7 @@ check_data_f(const char *dsetname, hid_t fid)
for (i = 0; i < NY; i++)
data_in[NX][i] = -2.2;
/* Output */
- HDmemset(data_out, 0, (NX + 1) * NY * sizeof(double));
+ memset(data_out, 0, (NX + 1) * NY * sizeof(double));
/* Read data from hyperslab in the file into the hyperslab in
* memory and display.
diff --git a/test/direct_chunk.c b/test/direct_chunk.c
index d72242b..078349c 100644
--- a/test/direct_chunk.c
+++ b/test/direct_chunk.c
@@ -611,7 +611,7 @@ test_skip_compress_write1(hid_t file)
goto error;
/* Read the raw chunk back */
- HDmemset(&read_direct_buf, 0, sizeof(read_direct_buf));
+ memset(&read_direct_buf, 0, sizeof(read_direct_buf));
if ((status = H5Dread_chunk(dataset, H5P_DEFAULT, offset, &read_filter_mask, read_direct_buf)) < 0)
goto error;
if (read_filter_mask != filter_mask)
@@ -879,7 +879,7 @@ test_skip_compress_write2(hid_t file)
goto error;
/* Read the raw chunk back */
- HDmemset(&read_direct_buf, 0, sizeof(read_direct_buf));
+ memset(&read_direct_buf, 0, sizeof(read_direct_buf));
if ((status = H5Dread_chunk(dataset, H5P_DEFAULT, offset, &read_filter_mask, read_direct_buf)) < 0)
goto error;
if (read_filter_mask != filter_mask)
@@ -1881,7 +1881,7 @@ test_read_unfiltered_dset(hid_t file)
offset[0] = (hsize_t)i * CHUNK_NX;
offset[1] = (hsize_t)j * CHUNK_NY;
/* Read the raw chunk back */
- HDmemset(&direct_buf, 0, sizeof(direct_buf));
+ memset(&direct_buf, 0, sizeof(direct_buf));
filter_mask = UINT_MAX;
if ((status = H5Dread_chunk(dataset, dxpl, offset, &filter_mask, direct_buf)) < 0)
goto error;
@@ -1982,7 +1982,7 @@ test_read_unallocated_chunk(hid_t file)
FAIL_STACK_ERROR;
/* Write a single chunk to initialize the chunk storage */
- HDmemset(direct_buf, 0, CHUNK_NX * CHUNK_NY * sizeof(int));
+ memset(direct_buf, 0, CHUNK_NX * CHUNK_NY * sizeof(int));
offset[0] = 0;
offset[1] = 0;
diff --git a/test/dsets.c b/test/dsets.c
index 0679f33..6d8c9dc 100644
--- a/test/dsets.c
+++ b/test/dsets.c
@@ -1821,11 +1821,11 @@ filter_corrupt(unsigned int flags, size_t cd_nelmts, const unsigned int *cd_valu
if (NULL == (data = malloc((size_t)length)))
TEST_ERROR;
- HDmemset(data, (int)value, (size_t)length);
+ memset(data, (int)value, (size_t)length);
if (flags & H5Z_FLAG_REVERSE) { /* Verify data is actually corrupted during read */
dst += offset;
- if (HDmemcmp(data, dst, (size_t)length) != 0)
+ if (memcmp(data, dst, (size_t)length) != 0)
TEST_ERROR;
else {
*buf_size = nbytes;
@@ -1834,7 +1834,7 @@ filter_corrupt(unsigned int flags, size_t cd_nelmts, const unsigned int *cd_valu
} /* end if */
else { /* Write corrupted data */
dst += offset;
- HDmemcpy(dst, data, (size_t)length);
+ memcpy(dst, data, (size_t)length);
*buf_size = nbytes;
ret_value = *buf_size;
} /* end else */
@@ -4336,7 +4336,7 @@ test_nbit_compound_3(hid_t file)
/* Initialize data */
for (i = 0; i < (size_t)size[0]; i++) {
power = HDpow(2.0, 17.0 - 1.0);
- HDmemset(&orig_data[i], 0, sizeof(orig_data[i]));
+ memset(&orig_data[i], 0, sizeof(orig_data[i]));
orig_data[i].i = (int)(HDrandom() % (long)power);
HDstrcpy(orig_data[i].str, "fixed-length C string");
orig_data[i].vl_str = HDstrdup("variable-length C string");
@@ -7143,7 +7143,7 @@ auxread_fdata(hid_t fid, const char *name)
goto error;
if ((rank = H5Sget_simple_extent_ndims(space_id)) < 0)
goto error;
- HDmemset(dims, 0, sizeof dims);
+ memset(dims, 0, sizeof dims);
if (H5Sget_simple_extent_dims(space_id, dims, NULL) < 0)
goto error;
nelmts = 1;
@@ -11336,7 +11336,7 @@ test_single_chunk(hid_t fapl)
if ((did = H5Dopen2(fid, DSET_SINGLE_NOMAX, H5P_DEFAULT)) < 0)
TEST_ERROR;
- HDmemset(rbuf, 0, sizeof(int) * (DSET_DIM1 * DSET_DIM2));
+ memset(rbuf, 0, sizeof(int) * (DSET_DIM1 * DSET_DIM2));
/* Read from dataset */
if (H5Dread(did, H5T_NATIVE_INT, H5S_ALL, H5S_ALL, H5P_DEFAULT, t_rbuf) < 0)
@@ -12409,7 +12409,7 @@ test_bt2_hdr_fd(const char *env_h5_driver, hid_t fapl)
TESTING("Version 2 B-tree chunk index header flush dependencies handled correctly");
/* Initialize struct */
- HDmemset(&info, 0, sizeof(info));
+ memset(&info, 0, sizeof(info));
/* Skip this test if SWMR I/O is not supported for the VFD specified
* by the environment variable.
@@ -12563,7 +12563,7 @@ test_storage_size(hid_t fapl)
FAIL_STACK_ERROR;
/* Initialize buffer to zeroes */
- HDmemset(wdata, 0, sizeof(wdata));
+ memset(wdata, 0, sizeof(wdata));
/* write elements to dataset */
if (H5Dwrite(dsid, H5T_NATIVE_INT, sid, sid, H5P_DEFAULT, wdata) < 0)
@@ -12612,7 +12612,7 @@ test_storage_size(hid_t fapl)
FAIL_STACK_ERROR;
/* Initialize buffer to zeroes */
- HDmemset(wdata, 0, sizeof(wdata));
+ memset(wdata, 0, sizeof(wdata));
/* write elements to dataset */
if (H5Dwrite(dsid, H5T_NATIVE_INT, sid, sid, H5P_DEFAULT, wdata) < 0)
@@ -12673,7 +12673,7 @@ test_storage_size(hid_t fapl)
FAIL_STACK_ERROR;
/* Initialize buffer to zeroes */
- HDmemset(wdata, 0, sizeof(wdata));
+ memset(wdata, 0, sizeof(wdata));
/* write elements to dataset */
if (H5Dwrite(dsid, H5T_NATIVE_INT, sid, sid, H5P_DEFAULT, wdata) < 0)
@@ -12734,7 +12734,7 @@ test_storage_size(hid_t fapl)
FAIL_STACK_ERROR;
/* Initialize buffer to zeroes */
- HDmemset(wdata, 0, sizeof(wdata));
+ memset(wdata, 0, sizeof(wdata));
/* write elements to dataset */
if (H5Dwrite(dsid, H5T_NATIVE_INT, sid, sid, H5P_DEFAULT, wdata) < 0)
@@ -12795,7 +12795,7 @@ test_storage_size(hid_t fapl)
FAIL_STACK_ERROR;
/* Initialize buffer to zeroes */
- HDmemset(wdata, 0, sizeof(wdata));
+ memset(wdata, 0, sizeof(wdata));
/* write elements to dataset */
if (H5Dwrite(dsid, H5T_NATIVE_INT, sid, sid, H5P_DEFAULT, wdata) < 0)
@@ -12856,7 +12856,7 @@ test_storage_size(hid_t fapl)
FAIL_STACK_ERROR;
/* Initialize buffer to zeroes */
- HDmemset(wdata, 0, sizeof(wdata));
+ memset(wdata, 0, sizeof(wdata));
/* write elements to dataset */
if (H5Dwrite(dsid, H5T_NATIVE_INT, sid, sid, H5P_DEFAULT, wdata) < 0)
@@ -12917,7 +12917,7 @@ test_storage_size(hid_t fapl)
FAIL_STACK_ERROR;
/* Initialize buffer to zeroes */
- HDmemset(wdata, 0, sizeof(wdata));
+ memset(wdata, 0, sizeof(wdata));
/* write elements to dataset */
if (H5Dwrite(dsid, H5T_NATIVE_INT, sid, sid, H5P_DEFAULT, wdata) < 0)
@@ -13171,14 +13171,14 @@ test_scatter(void)
TEST_ERROR;
/* Initialize dst_buf and expect_dst_buf */
- (void)HDmemset(expect_dst_buf, 0, sizeof(expect_dst_buf));
+ (void)memset(expect_dst_buf, 0, sizeof(expect_dst_buf));
for (i = 0; i < 8; i++)
expect_dst_buf[0][0][i] = src_buf[i];
/* Loop over buffer sizes */
for (src_buf_size = 1; src_buf_size <= 9; src_buf_size++) {
/* Reset dst_buf */
- (void)HDmemset(dst_buf, 0, sizeof(dst_buf));
+ (void)memset(dst_buf, 0, sizeof(dst_buf));
/* Set up scatter info */
scatter_info.src_buf = src_buf;
@@ -13207,7 +13207,7 @@ test_scatter(void)
TEST_ERROR;
/* Initialize expect_dst_buf */
- (void)HDmemset(expect_dst_buf, 0, sizeof(expect_dst_buf));
+ (void)memset(expect_dst_buf, 0, sizeof(expect_dst_buf));
src_i = 0;
for (i = 3; i < 5; i++)
for (j = 2; j < 5; j++)
@@ -13217,7 +13217,7 @@ test_scatter(void)
/* Loop over buffer sizes */
for (src_buf_size = 1; src_buf_size <= 13; src_buf_size++) {
/* Reset dst_buf */
- (void)HDmemset(dst_buf, 0, sizeof(dst_buf));
+ (void)memset(dst_buf, 0, sizeof(dst_buf));
/* Set up scatter info */
scatter_info.src_buf = src_buf;
@@ -13255,7 +13255,7 @@ test_scatter(void)
/* Iterate over block containing selection, checking if each element is in
* selection. Note that the algorithm used here (if statement) would not
* work for overlapping hyperslabs. */
- (void)HDmemset(expect_dst_buf, 0, sizeof(expect_dst_buf));
+ (void)memset(expect_dst_buf, 0, sizeof(expect_dst_buf));
src_i = 0;
for (i = 1; i < 8; i++)
for (j = 1; j < 4; j++)
@@ -13271,7 +13271,7 @@ test_scatter(void)
/* Loop over buffer sizes */
for (src_buf_size = 1; src_buf_size <= 37; src_buf_size++) {
/* Reset dst_buf */
- (void)HDmemset(dst_buf, 0, sizeof(dst_buf));
+ (void)memset(dst_buf, 0, sizeof(dst_buf));
/* Set up scatter info */
scatter_info.src_buf = src_buf;
@@ -13310,7 +13310,7 @@ test_scatter(void)
/* Initialize expect_dst_buf */
/* Iterate over block containing selection, checking if each element is in
* selection. */
- (void)HDmemset(expect_dst_buf, 0, sizeof(expect_dst_buf));
+ (void)memset(expect_dst_buf, 0, sizeof(expect_dst_buf));
src_i = 0;
for (i = 1; i < 4; i++)
for (j = 1; j < 4; j++)
@@ -13326,7 +13326,7 @@ test_scatter(void)
/* Loop over buffer sizes */
for (src_buf_size = 1; src_buf_size <= 17; src_buf_size++) {
/* Reset dst_buf */
- (void)HDmemset(dst_buf, 0, sizeof(dst_buf));
+ (void)memset(dst_buf, 0, sizeof(dst_buf));
/* Set up scatter info */
scatter_info.src_buf = src_buf;
@@ -13351,14 +13351,14 @@ test_scatter(void)
/* Initialize expect_dst_buf */
/* Iterate over block containing selection, checking if each element is in
* selection. */
- (void)HDmemset(expect_dst_buf, 0, sizeof(expect_dst_buf));
+ (void)memset(expect_dst_buf, 0, sizeof(expect_dst_buf));
for (i = 0; i < (int)(sizeof(point) / sizeof(point[0])); i++)
expect_dst_buf[point[i][0]][point[i][1]][point[i][2]] = src_buf[i];
/* Loop over buffer sizes */
for (src_buf_size = 1; src_buf_size <= 5; src_buf_size++) {
/* Reset dst_buf */
- (void)HDmemset(dst_buf, 0, sizeof(dst_buf));
+ (void)memset(dst_buf, 0, sizeof(dst_buf));
/* Set up scatter info */
scatter_info.src_buf = src_buf;
@@ -13489,14 +13489,14 @@ test_gather(void)
TEST_ERROR;
/* Initialize expect_dst_buf */
- (void)HDmemset(expect_dst_buf, 0, sizeof(expect_dst_buf));
+ (void)memset(expect_dst_buf, 0, sizeof(expect_dst_buf));
for (i = 0; i < 8; i++)
expect_dst_buf[i] = src_buf[0][0][i];
/* Loop over buffer sizes */
for (dst_buf_size = 1; dst_buf_size <= 9; dst_buf_size++) {
/* Reset dst_buf */
- (void)HDmemset(dst_buf, 0, sizeof(dst_buf));
+ (void)memset(dst_buf, 0, sizeof(dst_buf));
/* Initialize gather_info */
gather_info.expect_dst_buf = expect_dst_buf;
@@ -13517,7 +13517,7 @@ test_gather(void)
/* Loop over buffer sizes */
for (dst_buf_size = 8; dst_buf_size <= 9; dst_buf_size++) {
/* Reset dst_buf */
- (void)HDmemset(dst_buf, 0, sizeof(dst_buf));
+ (void)memset(dst_buf, 0, sizeof(dst_buf));
/* Gather data */
if (H5Dgather(sid, src_buf, H5T_NATIVE_INT, dst_buf_size * sizeof(dst_buf[0]), dst_buf, NULL, NULL) <
@@ -13533,7 +13533,7 @@ test_gather(void)
/* Test with a dst_buf_size that is not a multiple of the datatype size */
/* Reset dst_buf */
dst_buf_size = 7;
- (void)HDmemset(dst_buf, 0, sizeof(dst_buf));
+ (void)memset(dst_buf, 0, sizeof(dst_buf));
/* Initialize gather_info */
gather_info.expect_dst_buf = expect_dst_buf;
@@ -13563,7 +13563,7 @@ test_gather(void)
TEST_ERROR;
/* Initialize expect_dst_buf */
- (void)HDmemset(expect_dst_buf, 0, sizeof(expect_dst_buf));
+ (void)memset(expect_dst_buf, 0, sizeof(expect_dst_buf));
dst_i = 0;
for (i = 3; i < 5; i++)
for (j = 2; j < 5; j++)
@@ -13573,7 +13573,7 @@ test_gather(void)
/* Loop over buffer sizes */
for (dst_buf_size = 1; dst_buf_size <= 13; dst_buf_size++) {
/* Reset dst_buf */
- (void)HDmemset(dst_buf, 0, sizeof(dst_buf));
+ (void)memset(dst_buf, 0, sizeof(dst_buf));
/* Initialize gather_info */
gather_info.expect_dst_buf = expect_dst_buf;
@@ -13613,7 +13613,7 @@ test_gather(void)
/* Iterate over block containing selection, checking if each element is in
* selection. Note that the algorithm used here (if statement) would not
* work for overlapping hyperslabs. */
- (void)HDmemset(expect_dst_buf, 0, sizeof(expect_dst_buf));
+ (void)memset(expect_dst_buf, 0, sizeof(expect_dst_buf));
dst_i = 0;
for (i = 1; i < 8; i++)
for (j = 1; j < 4; j++)
@@ -13629,7 +13629,7 @@ test_gather(void)
/* Loop over buffer sizes */
for (dst_buf_size = 1; dst_buf_size <= 37; dst_buf_size++) {
/* Reset dst_buf */
- (void)HDmemset(dst_buf, 0, sizeof(dst_buf));
+ (void)memset(dst_buf, 0, sizeof(dst_buf));
/* Initialize gather_info */
gather_info.expect_dst_buf = expect_dst_buf;
@@ -13670,7 +13670,7 @@ test_gather(void)
/* Initialize expect_dst_buf */
/* Iterate over block containing selection, checking if each element is in
* selection. */
- (void)HDmemset(expect_dst_buf, 0, sizeof(expect_dst_buf));
+ (void)memset(expect_dst_buf, 0, sizeof(expect_dst_buf));
dst_i = 0;
for (i = 1; i < 4; i++)
for (j = 1; j < 4; j++)
@@ -13686,7 +13686,7 @@ test_gather(void)
/* Loop over buffer sizes */
for (dst_buf_size = 1; dst_buf_size <= 17; dst_buf_size++) {
/* Reset dst_buf */
- (void)HDmemset(dst_buf, 0, sizeof(dst_buf));
+ (void)memset(dst_buf, 0, sizeof(dst_buf));
/* Initialize gather_info */
gather_info.expect_dst_buf = expect_dst_buf;
@@ -13713,14 +13713,14 @@ test_gather(void)
/* Initialize expect_dst_buf */
/* Iterate over block containing selection, checking if each element is in
* selection. */
- (void)HDmemset(expect_dst_buf, 0, sizeof(expect_dst_buf));
+ (void)memset(expect_dst_buf, 0, sizeof(expect_dst_buf));
for (i = 0; i < (int)(sizeof(point) / sizeof(point[0])); i++)
expect_dst_buf[i] = src_buf[point[i][0]][point[i][1]][point[i][2]];
/* Loop over buffer sizes */
for (dst_buf_size = 1; dst_buf_size <= 5; dst_buf_size++) {
/* Reset dst_buf */
- (void)HDmemset(dst_buf, 0, sizeof(dst_buf));
+ (void)memset(dst_buf, 0, sizeof(dst_buf));
/* Initialize gather_info */
gather_info.expect_dst_buf = expect_dst_buf;
@@ -14031,7 +14031,7 @@ test_gather_error(void)
TEST_ERROR;
/* Initialize expect_dst_buf */
- (void)HDmemset(expect_dst_buf, 0, sizeof(expect_dst_buf));
+ (void)memset(expect_dst_buf, 0, sizeof(expect_dst_buf));
for (i = 0; i < 6; i++)
expect_dst_buf[i] = src_buf[i + 2];
@@ -14904,7 +14904,7 @@ test_h5s_block(void)
FAIL_STACK_ERROR;
/* Reset the memory buffer */
- HDmemset(buf, 0, sizeof(buf));
+ memset(buf, 0, sizeof(buf));
/* Read the entire dataset */
if (H5Dread(dset_id, H5T_NATIVE_INT, H5S_BLOCK, H5S_ALL, H5P_DEFAULT, buf) < 0)
@@ -15082,7 +15082,7 @@ test_h5s_plist(void)
FAIL_STACK_ERROR;
/* Reset the memory buffer */
- HDmemset(buf, 0, sizeof(buf));
+ memset(buf, 0, sizeof(buf));
/* Read the entire dataset */
if (H5Dread(dset_id, H5T_NATIVE_INT, H5S_BLOCK, H5S_ALL, H5P_DEFAULT, buf) < 0)
@@ -15094,7 +15094,7 @@ test_h5s_plist(void)
TEST_ERROR;
/* Reset the memory buffer */
- HDmemset(buf, 0, sizeof(buf));
+ memset(buf, 0, sizeof(buf));
/* Set valid selection in DXPL */
if (H5Pset_dataset_io_hyperslab_selection(dxpl_id, 1, H5S_SELECT_SET, &start, &stride, &count, &block) <
@@ -15111,7 +15111,7 @@ test_h5s_plist(void)
TEST_ERROR;
/* Reset the memory buffer */
- HDmemset(buf, 0, sizeof(buf));
+ memset(buf, 0, sizeof(buf));
/* Check for copying property list w/selection */
if ((dxpl_id_copy = H5Pcopy(dxpl_id)) < 0)
@@ -15309,7 +15309,7 @@ test_0sized_dset_metadata_alloc(hid_t fapl_id)
FAIL_STACK_ERROR;
/* Retrieve & verify the dataset's index info */
- HDmemset(&nat_info, 0, sizeof(nat_info));
+ memset(&nat_info, 0, sizeof(nat_info));
if (H5Oget_native_info(dset_id, &nat_info, H5O_NATIVE_INFO_META_SIZE) < 0)
FAIL_STACK_ERROR;
if (0 != nat_info.meta_size.obj.index_size)
@@ -15348,7 +15348,7 @@ test_0sized_dset_metadata_alloc(hid_t fapl_id)
FAIL_STACK_ERROR;
/* Retrieve & verify the dataset's index info */
- HDmemset(&nat_info, 0, sizeof(nat_info));
+ memset(&nat_info, 0, sizeof(nat_info));
if (H5Oget_native_info(dset_id, &nat_info, H5O_NATIVE_INFO_META_SIZE) < 0)
FAIL_STACK_ERROR;
if (0 == nat_info.meta_size.obj.index_size)
diff --git a/test/dt_arith.c b/test/dt_arith.c
index 57ef5ca..ed80d5f 100644
--- a/test/dt_arith.c
+++ b/test/dt_arith.c
@@ -113,8 +113,8 @@ static int without_hardware_g = 0;
NELMTS = SRC_PREC * 3; \
BUF = (unsigned char *)aligned_malloc(NELMTS * MAX(SRC_SIZE, DST_SIZE)); \
SAVED = (unsigned char *)aligned_malloc(NELMTS * MAX(SRC_SIZE, DST_SIZE)); \
- HDmemset(BUF, 0, NELMTS *MAX(SRC_SIZE, DST_SIZE)); \
- HDmemset(SAVED, 0, NELMTS *MAX(SRC_SIZE, DST_SIZE)); \
+ memset(BUF, 0, NELMTS *MAX(SRC_SIZE, DST_SIZE)); \
+ memset(SAVED, 0, NELMTS *MAX(SRC_SIZE, DST_SIZE)); \
\
buf_p = BUF; \
saved_p = SAVED; \
@@ -123,14 +123,14 @@ static int without_hardware_g = 0;
/*VALUE2 ascends from 00000000, to 00000011, 00000111,..., until 11111111.*/ \
for (n = 0; n < SRC_PREC; n++) { \
{ \
- HDmemcpy(buf_p, &value1, SRC_SIZE); \
- HDmemcpy(saved_p, &value1, SRC_SIZE); \
+ memcpy(buf_p, &value1, SRC_SIZE); \
+ memcpy(saved_p, &value1, SRC_SIZE); \
buf_p += SRC_SIZE; \
saved_p += SRC_SIZE; \
} \
{ \
- HDmemcpy(buf_p, &value2, SRC_SIZE); \
- HDmemcpy(saved_p, &value2, SRC_SIZE); \
+ memcpy(buf_p, &value2, SRC_SIZE); \
+ memcpy(saved_p, &value2, SRC_SIZE); \
buf_p += SRC_SIZE; \
saved_p += SRC_SIZE; \
} \
@@ -149,8 +149,8 @@ static int without_hardware_g = 0;
/* VALUE2 descends from 11111111 to 11111110, 11111100, ..., until 10000000. */ \
for (n = 0; n < SRC_PREC - 1; n++) { \
{ \
- HDmemcpy(buf_p, &value2, SRC_SIZE); \
- HDmemcpy(saved_p, &value2, SRC_SIZE); \
+ memcpy(buf_p, &value2, SRC_SIZE); \
+ memcpy(saved_p, &value2, SRC_SIZE); \
buf_p += SRC_SIZE; \
saved_p += SRC_SIZE; \
} \
@@ -230,8 +230,8 @@ static int without_hardware_g = 0;
/* Allocate buffers */ \
BUF = (unsigned char *)aligned_malloc(NELMTS * MAX(SRC_SIZE, DST_SIZE)); \
SAVED = (unsigned char *)aligned_malloc(NELMTS * MAX(SRC_SIZE, DST_SIZE)); \
- HDmemset(BUF, 0, NELMTS *MAX(SRC_SIZE, DST_SIZE)); \
- HDmemset(SAVED, 0, NELMTS *MAX(SRC_SIZE, DST_SIZE)); \
+ memset(BUF, 0, NELMTS *MAX(SRC_SIZE, DST_SIZE)); \
+ memset(SAVED, 0, NELMTS *MAX(SRC_SIZE, DST_SIZE)); \
\
buf_p = BUF; \
saved_p = SAVED; \
@@ -241,15 +241,15 @@ static int without_hardware_g = 0;
value2 = -SRC_MIN; \
for (n = 0; n < num_norm; n++) { \
if (value1 < SRC_MAX) { /*positive*/ \
- HDmemcpy(buf_p, &value1, SRC_SIZE); \
- HDmemcpy(saved_p, &value1, SRC_SIZE); \
+ memcpy(buf_p, &value1, SRC_SIZE); \
+ memcpy(saved_p, &value1, SRC_SIZE); \
value1 *= multiply; \
buf_p += SRC_SIZE; \
saved_p += SRC_SIZE; \
} \
if (value2 > -SRC_MAX) { /*negative*/ \
- HDmemcpy(buf_p, &value2, SRC_SIZE); \
- HDmemcpy(saved_p, &value2, SRC_SIZE); \
+ memcpy(buf_p, &value2, SRC_SIZE); \
+ memcpy(saved_p, &value2, SRC_SIZE); \
value2 *= multiply; \
buf_p += SRC_SIZE; \
saved_p += SRC_SIZE; \
@@ -257,14 +257,14 @@ static int without_hardware_g = 0;
} \
\
value1 = SRC_MAX; /*maximal value*/ \
- HDmemcpy(buf_p, &value1, SRC_SIZE); \
- HDmemcpy(saved_p, &value1, SRC_SIZE); \
+ memcpy(buf_p, &value1, SRC_SIZE); \
+ memcpy(saved_p, &value1, SRC_SIZE); \
buf_p += SRC_SIZE; \
saved_p += SRC_SIZE; \
\
value2 = -SRC_MAX; /*negative value*/ \
- HDmemcpy(buf_p, &value2, SRC_SIZE); \
- HDmemcpy(saved_p, &value2, SRC_SIZE); \
+ memcpy(buf_p, &value2, SRC_SIZE); \
+ memcpy(saved_p, &value2, SRC_SIZE); \
buf_p += SRC_SIZE; \
saved_p += SRC_SIZE; \
} while (0)
@@ -285,8 +285,8 @@ static int without_hardware_g = 0;
/* Allocate buffers */ \
BUF = (unsigned char *)aligned_malloc(NELMTS * MAX(SRC_SIZE, DST_SIZE)); \
SAVED = (unsigned char *)aligned_malloc(NELMTS * MAX(SRC_SIZE, DST_SIZE)); \
- HDmemset(BUF, 0, NELMTS *MAX(SRC_SIZE, DST_SIZE)); \
- HDmemset(SAVED, 0, NELMTS *MAX(SRC_SIZE, DST_SIZE)); \
+ memset(BUF, 0, NELMTS *MAX(SRC_SIZE, DST_SIZE)); \
+ memset(SAVED, 0, NELMTS *MAX(SRC_SIZE, DST_SIZE)); \
\
tmp1 = (unsigned char *)calloc((size_t)1, (size_t)SRC_SIZE); \
tmp2 = (unsigned char *)calloc((size_t)1, (size_t)SRC_SIZE); \
@@ -296,14 +296,14 @@ static int without_hardware_g = 0;
\
/*Denormalized values. Exponent is 0. Let mantissa starts from 00000001, 00000011, \
*00000111,..., until 11111111.*/ \
- HDmemset(tmp1, 0, SRC_SIZE); \
- HDmemset(tmp2, 0, SRC_SIZE); \
+ memset(tmp1, 0, SRC_SIZE); \
+ memset(tmp2, 0, SRC_SIZE); \
H5T__bit_set(tmp2, SRC_PREC - 1, (size_t)1, TRUE); /*the negative value*/ \
for (n = 0; n < SRC_MANT_DIG - 1; n++) { \
H5T__bit_set(tmp1, n, (size_t)1, TRUE); /*turn on 1 bit each time*/ \
CHANGE_ORDER(tmp1, SRC_ORDR, SRC_SIZE); /*change order for big endian*/ \
- HDmemcpy(buf_p, tmp1, SRC_SIZE); \
- HDmemcpy(saved_p, tmp1, SRC_SIZE); \
+ memcpy(buf_p, tmp1, SRC_SIZE); \
+ memcpy(saved_p, tmp1, SRC_SIZE); \
CHANGE_ORDER(tmp1, SRC_ORDR, SRC_SIZE); /*change back the order for bit operation*/ \
buf_p += SRC_SIZE; \
saved_p += SRC_SIZE; \
@@ -311,8 +311,8 @@ static int without_hardware_g = 0;
/*negative values*/ \
H5T__bit_set(tmp2, n, (size_t)1, TRUE); \
CHANGE_ORDER(tmp2, SRC_ORDR, SRC_SIZE); \
- HDmemcpy(buf_p, tmp2, SRC_SIZE); \
- HDmemcpy(saved_p, tmp2, SRC_SIZE); \
+ memcpy(buf_p, tmp2, SRC_SIZE); \
+ memcpy(saved_p, tmp2, SRC_SIZE); \
CHANGE_ORDER(tmp2, SRC_ORDR, SRC_SIZE); \
buf_p += SRC_SIZE; \
saved_p += SRC_SIZE; \
@@ -337,24 +337,24 @@ static int without_hardware_g = 0;
/* Allocate buffers */ \
BUF = (unsigned char *)aligned_malloc(NELMTS * MAX(SRC_SIZE, DST_SIZE)); \
SAVED = (unsigned char *)aligned_malloc(NELMTS * MAX(SRC_SIZE, DST_SIZE)); \
- HDmemset(BUF, 0, NELMTS *MAX(SRC_SIZE, DST_SIZE)); \
- HDmemset(SAVED, 0, NELMTS *MAX(SRC_SIZE, DST_SIZE)); \
+ memset(BUF, 0, NELMTS *MAX(SRC_SIZE, DST_SIZE)); \
+ memset(SAVED, 0, NELMTS *MAX(SRC_SIZE, DST_SIZE)); \
value = (unsigned char *)calloc(SRC_SIZE, sizeof(unsigned char)); \
\
buf_p = BUF; \
\
/* +0 */ \
H5T__bit_set(value, (size_t)0, SRC_PREC, FALSE); \
- HDmemcpy(buf_p, value, SRC_SIZE * sizeof(unsigned char)); \
+ memcpy(buf_p, value, SRC_SIZE * sizeof(unsigned char)); \
buf_p += SRC_SIZE; \
\
for (n = 0; n < 2; n++) { \
if (n == 1) { \
- HDmemset(value, 0, SRC_SIZE * sizeof(unsigned char)); \
+ memset(value, 0, SRC_SIZE * sizeof(unsigned char)); \
/* -0 */ \
H5T__bit_set(value, (size_t)(SRC_PREC - 1), (size_t)1, TRUE); \
CHANGE_ORDER(value, SRC_ORDR, SRC_SIZE); /*change order for big endian*/ \
- HDmemcpy(buf_p, value, SRC_SIZE * sizeof(unsigned char)); \
+ memcpy(buf_p, value, SRC_SIZE * sizeof(unsigned char)); \
CHANGE_ORDER(value, SRC_ORDR, SRC_SIZE); /*change back the order for bit operation*/ \
buf_p += SRC_SIZE; \
} \
@@ -362,26 +362,26 @@ static int without_hardware_g = 0;
/* +/-infinity */ \
H5T__bit_set(value, (size_t)(SRC_MANT_DIG - 1), SRC_PREC - SRC_MANT_DIG, TRUE); \
CHANGE_ORDER(value, SRC_ORDR, SRC_SIZE); /*change order for big endian*/ \
- HDmemcpy(buf_p, value, SRC_SIZE * sizeof(unsigned char)); \
+ memcpy(buf_p, value, SRC_SIZE * sizeof(unsigned char)); \
CHANGE_ORDER(value, SRC_ORDR, SRC_SIZE); /*change back the order for bit operation*/ \
buf_p += SRC_SIZE; \
\
/* +/-SNaN */ \
H5T__bit_set(value, (size_t)0, (size_t)1, TRUE); \
CHANGE_ORDER(value, SRC_ORDR, SRC_SIZE); /*change order for big endian*/ \
- HDmemcpy(buf_p, value, SRC_SIZE * sizeof(unsigned char)); \
+ memcpy(buf_p, value, SRC_SIZE * sizeof(unsigned char)); \
CHANGE_ORDER(value, SRC_ORDR, SRC_SIZE); /*change back the order for bit operation*/ \
buf_p += SRC_SIZE; \
\
/* +/-QNaN */ \
H5T__bit_set(value, (size_t)(SRC_MANT_DIG - 2), (size_t)1, TRUE); \
CHANGE_ORDER(value, SRC_ORDR, SRC_SIZE); /*change order for big endian*/ \
- HDmemcpy(buf_p, value, SRC_SIZE * sizeof(unsigned char)); \
+ memcpy(buf_p, value, SRC_SIZE * sizeof(unsigned char)); \
CHANGE_ORDER(value, SRC_ORDR, SRC_SIZE); /*change back the order for bit operation*/ \
buf_p += SRC_SIZE; \
} \
\
- HDmemcpy(SAVED, BUF, NELMTS *MAX(SRC_SIZE, DST_SIZE)); \
+ memcpy(SAVED, BUF, NELMTS *MAX(SRC_SIZE, DST_SIZE)); \
free(value); \
} while (0)
@@ -630,8 +630,8 @@ test_particular_fp_integer(void)
buf1 = (unsigned char *)calloc((size_t)1, (size_t)MAX(src_size1, dst_size1));
saved_buf1 = (unsigned char *)calloc((size_t)1, (size_t)MAX(src_size1, dst_size1));
- HDmemcpy(buf1, &src_d, src_size1);
- HDmemcpy(saved_buf1, &src_d, src_size1);
+ memcpy(buf1, &src_d, src_size1);
+ memcpy(saved_buf1, &src_d, src_size1);
/* Register exception handling function and signal the destination is "signed char". */
flag = 1;
@@ -648,7 +648,7 @@ test_particular_fp_integer(void)
goto error;
}
- HDmemcpy(&dst_c, buf1, dst_size1);
+ memcpy(&dst_c, buf1, dst_size1);
/* Print errors */
if (dst_c != SCHAR_MAX) {
@@ -663,14 +663,14 @@ test_particular_fp_integer(void)
for (j = 0; j < src_size1; j++)
printf(" %02x", saved_buf1[ENDIAN(src_size1, j, endian)]);
- HDmemcpy(&x, saved_buf1, src_size1);
+ memcpy(&x, saved_buf1, src_size1);
printf(" %29.20e\n", x);
printf(" dst = ");
for (j = 0; j < dst_size1; j++)
printf(" %02x", buf1[ENDIAN(dst_size1, j, endian)]);
- HDmemcpy(&y, buf1, dst_size1);
+ memcpy(&y, buf1, dst_size1);
printf(" %29d\n", y);
}
@@ -679,8 +679,8 @@ test_particular_fp_integer(void)
dst_size2 = H5Tget_size(H5T_NATIVE_INT);
buf2 = (unsigned char *)calloc((size_t)1, (size_t)MAX(src_size2, dst_size2));
saved_buf2 = (unsigned char *)calloc((size_t)1, (size_t)MAX(src_size2, dst_size2));
- HDmemcpy(buf2, &src_f, src_size2);
- HDmemcpy(saved_buf2, &src_f, src_size2);
+ memcpy(buf2, &src_f, src_size2);
+ memcpy(saved_buf2, &src_f, src_size2);
/* signal exception handling function that the destination is "int". */
flag = 0;
@@ -692,7 +692,7 @@ test_particular_fp_integer(void)
goto error;
}
- HDmemcpy(&dst_i, buf2, dst_size2);
+ memcpy(&dst_i, buf2, dst_size2);
/* Print errors */
if (dst_i != fill_value) {
@@ -707,14 +707,14 @@ test_particular_fp_integer(void)
for (j = 0; j < src_size2; j++)
printf(" %02x", saved_buf2[ENDIAN(src_size2, j, endian)]);
- HDmemcpy(&x, saved_buf2, src_size2);
+ memcpy(&x, saved_buf2, src_size2);
printf(" %29.20e\n", (double)x);
printf(" dst = ");
for (j = 0; j < dst_size2; j++)
printf(" %02x", buf2[ENDIAN(dst_size2, j, endian)]);
- HDmemcpy(&y, buf2, dst_size2);
+ memcpy(&y, buf2, dst_size2);
printf(" %29d\n", y);
}
@@ -922,8 +922,8 @@ test_derived_flt(void)
endian = H5Tget_order(H5T_NATIVE_INT);
buf = (unsigned char *)malloc(nelmts * (MAX(src_size, size)));
saved_buf = (unsigned char *)malloc(nelmts * src_size);
- HDmemset(buf, 0, nelmts * MAX(src_size, size));
- HDmemset(saved_buf, 0, nelmts * src_size);
+ memset(buf, 0, nelmts * MAX(src_size, size));
+ memset(saved_buf, 0, nelmts * src_size);
aligned = (int *)calloc((size_t)1, src_size);
for (i = 0; i < nelmts * src_size; i++)
@@ -965,14 +965,14 @@ test_derived_flt(void)
for (j = 0; j < src_size; j++)
printf(" %02x", saved_buf[i * src_size + ENDIAN(src_size, j, endian)]);
- HDmemcpy(aligned, saved_buf + i * sizeof(int), sizeof(int));
+ memcpy(aligned, saved_buf + i * sizeof(int), sizeof(int));
printf(" %29d\n", *aligned);
printf(" dst = ");
for (j = 0; j < src_size; j++)
printf(" %02x", buf[i * src_size + ENDIAN(src_size, j, endian)]);
- HDmemcpy(aligned, buf + i * sizeof(int), sizeof(int));
+ memcpy(aligned, buf + i * sizeof(int), sizeof(int));
printf(" %29d\n", *aligned);
if (fails_this_test >= max_fails) {
@@ -1083,8 +1083,8 @@ test_derived_flt(void)
endian = H5Tget_order(tid2);
buf = (unsigned char *)malloc(nelmts * (MAX(src_size, dst_size)));
saved_buf = (unsigned char *)malloc(nelmts * src_size);
- HDmemset(buf, 0, nelmts * MAX(src_size, dst_size));
- HDmemset(saved_buf, 0, nelmts * src_size);
+ memset(buf, 0, nelmts * MAX(src_size, dst_size));
+ memset(saved_buf, 0, nelmts * src_size);
for (i = 0; i < nelmts * src_size; i++)
buf[i] = saved_buf[i] = (unsigned char)HDrand();
@@ -1404,8 +1404,8 @@ test_derived_integer(void)
endian = H5Tget_order(tid1);
buf = (unsigned char *)malloc(nelmts * (MAX(src_size, dst_size)));
saved_buf = (unsigned char *)malloc(nelmts * src_size);
- HDmemset(buf, 0, nelmts * MAX(src_size, dst_size));
- HDmemset(saved_buf, 0, nelmts * src_size);
+ memset(buf, 0, nelmts * MAX(src_size, dst_size));
+ memset(saved_buf, 0, nelmts * src_size);
for (i = 0; i < nelmts * src_size; i++)
buf[i] = saved_buf[i] = (unsigned char)HDrand();
@@ -1734,43 +1734,43 @@ test_conv_int_1(const char *name, hid_t src, hid_t dst)
hw = (unsigned char *)&hw_char;
switch (src_type) {
case INT_SCHAR:
- HDmemcpy(aligned, saved + j * sizeof(signed char), sizeof(signed char));
+ memcpy(aligned, saved + j * sizeof(signed char), sizeof(signed char));
hw_char = (signed char)(*((signed char *)aligned));
break;
case INT_UCHAR:
- HDmemcpy(aligned, saved + j * sizeof(unsigned char), sizeof(unsigned char));
+ memcpy(aligned, saved + j * sizeof(unsigned char), sizeof(unsigned char));
hw_char = (signed char)(*((unsigned char *)aligned));
break;
case INT_SHORT:
- HDmemcpy(aligned, saved + j * sizeof(short), sizeof(short));
+ memcpy(aligned, saved + j * sizeof(short), sizeof(short));
hw_char = (signed char)(*((short *)aligned));
break;
case INT_USHORT:
- HDmemcpy(aligned, saved + j * sizeof(unsigned short), sizeof(unsigned short));
+ memcpy(aligned, saved + j * sizeof(unsigned short), sizeof(unsigned short));
hw_char = (signed char)(*((unsigned short *)aligned));
break;
case INT_INT:
- HDmemcpy(aligned, saved + j * sizeof(int), sizeof(int));
+ memcpy(aligned, saved + j * sizeof(int), sizeof(int));
hw_char = (signed char)(*((int *)aligned));
break;
case INT_UINT:
- HDmemcpy(aligned, saved + j * sizeof(unsigned), sizeof(unsigned));
+ memcpy(aligned, saved + j * sizeof(unsigned), sizeof(unsigned));
hw_char = (signed char)(*((unsigned *)aligned));
break;
case INT_LONG:
- HDmemcpy(aligned, saved + j * sizeof(long), sizeof(long));
+ memcpy(aligned, saved + j * sizeof(long), sizeof(long));
hw_char = (signed char)(*((long *)aligned));
break;
case INT_ULONG:
- HDmemcpy(aligned, saved + j * sizeof(unsigned long), sizeof(unsigned long));
+ memcpy(aligned, saved + j * sizeof(unsigned long), sizeof(unsigned long));
hw_char = (signed char)(*((unsigned long *)aligned));
break;
case INT_LLONG:
- HDmemcpy(aligned, saved + j * sizeof(long long), sizeof(long long));
+ memcpy(aligned, saved + j * sizeof(long long), sizeof(long long));
hw_char = (signed char)(*((long long *)aligned));
break;
case INT_ULLONG:
- HDmemcpy(aligned, saved + j * sizeof(unsigned long long), sizeof(unsigned long long));
+ memcpy(aligned, saved + j * sizeof(unsigned long long), sizeof(unsigned long long));
hw_char = (signed char)(*((unsigned long long *)aligned));
break;
case FLT_FLOAT:
@@ -1786,43 +1786,43 @@ test_conv_int_1(const char *name, hid_t src, hid_t dst)
hw = (unsigned char *)&hw_uchar;
switch (src_type) {
case INT_SCHAR:
- HDmemcpy(aligned, saved + j * sizeof(signed char), sizeof(signed char));
+ memcpy(aligned, saved + j * sizeof(signed char), sizeof(signed char));
hw_uchar = (unsigned char)(*((signed char *)aligned));
break;
case INT_UCHAR:
- HDmemcpy(aligned, saved + j * sizeof(unsigned char), sizeof(unsigned char));
+ memcpy(aligned, saved + j * sizeof(unsigned char), sizeof(unsigned char));
hw_uchar = (unsigned char)(*((unsigned char *)aligned));
break;
case INT_SHORT:
- HDmemcpy(aligned, saved + j * sizeof(short), sizeof(short));
+ memcpy(aligned, saved + j * sizeof(short), sizeof(short));
hw_uchar = (unsigned char)(*((short *)aligned));
break;
case INT_USHORT:
- HDmemcpy(aligned, saved + j * sizeof(unsigned short), sizeof(unsigned short));
+ memcpy(aligned, saved + j * sizeof(unsigned short), sizeof(unsigned short));
hw_uchar = (unsigned char)(*((unsigned short *)aligned));
break;
case INT_INT:
- HDmemcpy(aligned, saved + j * sizeof(int), sizeof(int));
+ memcpy(aligned, saved + j * sizeof(int), sizeof(int));
hw_uchar = (unsigned char)(*((int *)aligned));
break;
case INT_UINT:
- HDmemcpy(aligned, saved + j * sizeof(unsigned), sizeof(unsigned));
+ memcpy(aligned, saved + j * sizeof(unsigned), sizeof(unsigned));
hw_uchar = (unsigned char)(*((unsigned *)aligned));
break;
case INT_LONG:
- HDmemcpy(aligned, saved + j * sizeof(long), sizeof(long));
+ memcpy(aligned, saved + j * sizeof(long), sizeof(long));
hw_uchar = (unsigned char)(*((long *)aligned));
break;
case INT_ULONG:
- HDmemcpy(aligned, saved + j * sizeof(unsigned long), sizeof(unsigned long));
+ memcpy(aligned, saved + j * sizeof(unsigned long), sizeof(unsigned long));
hw_uchar = (unsigned char)(*((unsigned long *)aligned));
break;
case INT_LLONG:
- HDmemcpy(aligned, saved + j * sizeof(long long), sizeof(long long));
+ memcpy(aligned, saved + j * sizeof(long long), sizeof(long long));
hw_uchar = (unsigned char)(*((long long *)aligned));
break;
case INT_ULLONG:
- HDmemcpy(aligned, saved + j * sizeof(unsigned long long), sizeof(unsigned long long));
+ memcpy(aligned, saved + j * sizeof(unsigned long long), sizeof(unsigned long long));
hw_uchar = (unsigned char)(*((unsigned long long *)aligned));
break;
case FLT_FLOAT:
@@ -1838,43 +1838,43 @@ test_conv_int_1(const char *name, hid_t src, hid_t dst)
hw = (unsigned char *)&hw_short;
switch (src_type) {
case INT_SCHAR:
- HDmemcpy(aligned, saved + j * sizeof(char), sizeof(char));
+ memcpy(aligned, saved + j * sizeof(char), sizeof(char));
hw_short = (short)(*((char *)aligned));
break;
case INT_UCHAR:
- HDmemcpy(aligned, saved + j * sizeof(unsigned char), sizeof(unsigned char));
+ memcpy(aligned, saved + j * sizeof(unsigned char), sizeof(unsigned char));
hw_short = (short)(*((unsigned char *)aligned));
break;
case INT_SHORT:
- HDmemcpy(aligned, saved + j * sizeof(short), sizeof(short));
+ memcpy(aligned, saved + j * sizeof(short), sizeof(short));
hw_short = (short)(*((short *)aligned));
break;
case INT_USHORT:
- HDmemcpy(aligned, saved + j * sizeof(unsigned short), sizeof(unsigned short));
+ memcpy(aligned, saved + j * sizeof(unsigned short), sizeof(unsigned short));
hw_short = (short)(*((unsigned short *)aligned));
break;
case INT_INT:
- HDmemcpy(aligned, saved + j * sizeof(int), sizeof(int));
+ memcpy(aligned, saved + j * sizeof(int), sizeof(int));
hw_short = (short)(*((int *)aligned));
break;
case INT_UINT:
- HDmemcpy(aligned, saved + j * sizeof(unsigned), sizeof(unsigned));
+ memcpy(aligned, saved + j * sizeof(unsigned), sizeof(unsigned));
hw_short = (short)(*((unsigned *)aligned));
break;
case INT_LONG:
- HDmemcpy(aligned, saved + j * sizeof(long), sizeof(long));
+ memcpy(aligned, saved + j * sizeof(long), sizeof(long));
hw_short = (short)(*((long *)aligned));
break;
case INT_ULONG:
- HDmemcpy(aligned, saved + j * sizeof(unsigned long), sizeof(unsigned long));
+ memcpy(aligned, saved + j * sizeof(unsigned long), sizeof(unsigned long));
hw_short = (short)(*((unsigned long *)aligned));
break;
case INT_LLONG:
- HDmemcpy(aligned, saved + j * sizeof(long long), sizeof(long long));
+ memcpy(aligned, saved + j * sizeof(long long), sizeof(long long));
hw_short = (short)(*((long long *)aligned));
break;
case INT_ULLONG:
- HDmemcpy(aligned, saved + j * sizeof(unsigned long long), sizeof(unsigned long long));
+ memcpy(aligned, saved + j * sizeof(unsigned long long), sizeof(unsigned long long));
hw_short = (short)(*((unsigned long long *)aligned));
break;
@@ -1891,43 +1891,43 @@ test_conv_int_1(const char *name, hid_t src, hid_t dst)
hw = (unsigned char *)&hw_ushort;
switch (src_type) {
case INT_SCHAR:
- HDmemcpy(aligned, saved + j * sizeof(signed char), sizeof(signed char));
+ memcpy(aligned, saved + j * sizeof(signed char), sizeof(signed char));
hw_ushort = (unsigned short)(*((signed char *)aligned));
break;
case INT_UCHAR:
- HDmemcpy(aligned, saved + j * sizeof(unsigned char), sizeof(unsigned char));
+ memcpy(aligned, saved + j * sizeof(unsigned char), sizeof(unsigned char));
hw_ushort = (unsigned short)(*((unsigned char *)aligned));
break;
case INT_SHORT:
- HDmemcpy(aligned, saved + j * sizeof(short), sizeof(short));
+ memcpy(aligned, saved + j * sizeof(short), sizeof(short));
hw_ushort = (unsigned short)(*((short *)aligned));
break;
case INT_USHORT:
- HDmemcpy(aligned, saved + j * sizeof(unsigned short), sizeof(unsigned short));
+ memcpy(aligned, saved + j * sizeof(unsigned short), sizeof(unsigned short));
hw_ushort = (unsigned short)(*((unsigned short *)aligned));
break;
case INT_INT:
- HDmemcpy(aligned, saved + j * sizeof(int), sizeof(int));
+ memcpy(aligned, saved + j * sizeof(int), sizeof(int));
hw_ushort = (unsigned short)(*((int *)aligned));
break;
case INT_UINT:
- HDmemcpy(aligned, saved + j * sizeof(unsigned), sizeof(unsigned));
+ memcpy(aligned, saved + j * sizeof(unsigned), sizeof(unsigned));
hw_ushort = (unsigned short)(*((unsigned *)aligned));
break;
case INT_LONG:
- HDmemcpy(aligned, saved + j * sizeof(long), sizeof(long));
+ memcpy(aligned, saved + j * sizeof(long), sizeof(long));
hw_ushort = (unsigned short)(*((long *)aligned));
break;
case INT_ULONG:
- HDmemcpy(aligned, saved + j * sizeof(unsigned long), sizeof(unsigned long));
+ memcpy(aligned, saved + j * sizeof(unsigned long), sizeof(unsigned long));
hw_ushort = (unsigned short)(*((unsigned long *)aligned));
break;
case INT_LLONG:
- HDmemcpy(aligned, saved + j * sizeof(long long), sizeof(long long));
+ memcpy(aligned, saved + j * sizeof(long long), sizeof(long long));
hw_ushort = (unsigned short)(*((long long *)aligned));
break;
case INT_ULLONG:
- HDmemcpy(aligned, saved + j * sizeof(unsigned long long), sizeof(unsigned long long));
+ memcpy(aligned, saved + j * sizeof(unsigned long long), sizeof(unsigned long long));
hw_ushort = (unsigned short)(*((unsigned long long *)aligned));
break;
case FLT_FLOAT:
@@ -1943,43 +1943,43 @@ test_conv_int_1(const char *name, hid_t src, hid_t dst)
hw = (unsigned char *)&hw_int;
switch (src_type) {
case INT_SCHAR:
- HDmemcpy(aligned, saved + j * sizeof(signed char), sizeof(signed char));
+ memcpy(aligned, saved + j * sizeof(signed char), sizeof(signed char));
hw_int = (int)(*((signed char *)aligned));
break;
case INT_UCHAR:
- HDmemcpy(aligned, saved + j * sizeof(unsigned char), sizeof(unsigned char));
+ memcpy(aligned, saved + j * sizeof(unsigned char), sizeof(unsigned char));
hw_int = (int)(*((unsigned char *)aligned));
break;
case INT_SHORT:
- HDmemcpy(aligned, saved + j * sizeof(short), sizeof(short));
+ memcpy(aligned, saved + j * sizeof(short), sizeof(short));
hw_int = (int)(*((short *)aligned));
break;
case INT_USHORT:
- HDmemcpy(aligned, saved + j * sizeof(unsigned short), sizeof(unsigned short));
+ memcpy(aligned, saved + j * sizeof(unsigned short), sizeof(unsigned short));
hw_int = (int)(*((unsigned short *)aligned));
break;
case INT_INT:
- HDmemcpy(aligned, saved + j * sizeof(int), sizeof(int));
+ memcpy(aligned, saved + j * sizeof(int), sizeof(int));
hw_int = (int)(*((int *)aligned));
break;
case INT_UINT:
- HDmemcpy(aligned, saved + j * sizeof(unsigned), sizeof(unsigned));
+ memcpy(aligned, saved + j * sizeof(unsigned), sizeof(unsigned));
hw_int = (int)(*((unsigned *)aligned));
break;
case INT_LONG:
- HDmemcpy(aligned, saved + j * sizeof(long), sizeof(long));
+ memcpy(aligned, saved + j * sizeof(long), sizeof(long));
hw_int = (int)(*((long *)aligned));
break;
case INT_ULONG:
- HDmemcpy(aligned, saved + j * sizeof(unsigned long), sizeof(unsigned long));
+ memcpy(aligned, saved + j * sizeof(unsigned long), sizeof(unsigned long));
hw_int = (int)(*((unsigned long *)aligned));
break;
case INT_LLONG:
- HDmemcpy(aligned, saved + j * sizeof(long long), sizeof(long long));
+ memcpy(aligned, saved + j * sizeof(long long), sizeof(long long));
hw_int = (int)(*((long long *)aligned));
break;
case INT_ULLONG:
- HDmemcpy(aligned, saved + j * sizeof(unsigned long long), sizeof(unsigned long long));
+ memcpy(aligned, saved + j * sizeof(unsigned long long), sizeof(unsigned long long));
hw_int = (int)(*((unsigned long long *)aligned));
break;
case FLT_FLOAT:
@@ -1995,43 +1995,43 @@ test_conv_int_1(const char *name, hid_t src, hid_t dst)
hw = (unsigned char *)&hw_uint;
switch (src_type) {
case INT_SCHAR:
- HDmemcpy(aligned, saved + j * sizeof(signed char), sizeof(signed char));
+ memcpy(aligned, saved + j * sizeof(signed char), sizeof(signed char));
hw_uint = (unsigned int)(*((signed char *)aligned));
break;
case INT_UCHAR:
- HDmemcpy(aligned, saved + j * sizeof(unsigned char), sizeof(unsigned char));
+ memcpy(aligned, saved + j * sizeof(unsigned char), sizeof(unsigned char));
hw_uint = (unsigned int)(*((unsigned char *)aligned));
break;
case INT_SHORT:
- HDmemcpy(aligned, saved + j * sizeof(short), sizeof(short));
+ memcpy(aligned, saved + j * sizeof(short), sizeof(short));
hw_uint = (unsigned int)(*((short *)aligned));
break;
case INT_USHORT:
- HDmemcpy(aligned, saved + j * sizeof(unsigned short), sizeof(unsigned short));
+ memcpy(aligned, saved + j * sizeof(unsigned short), sizeof(unsigned short));
hw_uint = (unsigned int)(*((unsigned short *)aligned));
break;
case INT_INT:
- HDmemcpy(aligned, saved + j * sizeof(int), sizeof(int));
+ memcpy(aligned, saved + j * sizeof(int), sizeof(int));
hw_uint = (unsigned int)(*((int *)aligned));
break;
case INT_UINT:
- HDmemcpy(aligned, saved + j * sizeof(unsigned), sizeof(unsigned));
+ memcpy(aligned, saved + j * sizeof(unsigned), sizeof(unsigned));
hw_uint = (unsigned int)(*((unsigned *)aligned));
break;
case INT_LONG:
- HDmemcpy(aligned, saved + j * sizeof(long), sizeof(long));
+ memcpy(aligned, saved + j * sizeof(long), sizeof(long));
hw_uint = (unsigned int)(*((long *)aligned));
break;
case INT_ULONG:
- HDmemcpy(aligned, saved + j * sizeof(unsigned long), sizeof(unsigned long));
+ memcpy(aligned, saved + j * sizeof(unsigned long), sizeof(unsigned long));
hw_uint = (unsigned int)(*((unsigned long *)aligned));
break;
case INT_LLONG:
- HDmemcpy(aligned, saved + j * sizeof(long long), sizeof(long long));
+ memcpy(aligned, saved + j * sizeof(long long), sizeof(long long));
hw_uint = (unsigned int)(*((long long *)aligned));
break;
case INT_ULLONG:
- HDmemcpy(aligned, saved + j * sizeof(unsigned long long), sizeof(unsigned long long));
+ memcpy(aligned, saved + j * sizeof(unsigned long long), sizeof(unsigned long long));
hw_uint = (unsigned int)(*((unsigned long long *)aligned));
break;
case FLT_FLOAT:
@@ -2047,43 +2047,43 @@ test_conv_int_1(const char *name, hid_t src, hid_t dst)
hw = (unsigned char *)&hw_long;
switch (src_type) {
case INT_SCHAR:
- HDmemcpy(aligned, saved + j * sizeof(signed char), sizeof(signed char));
+ memcpy(aligned, saved + j * sizeof(signed char), sizeof(signed char));
hw_long = (long int)(*((signed char *)aligned));
break;
case INT_UCHAR:
- HDmemcpy(aligned, saved + j * sizeof(unsigned char), sizeof(unsigned char));
+ memcpy(aligned, saved + j * sizeof(unsigned char), sizeof(unsigned char));
hw_long = (long int)(*((unsigned char *)aligned));
break;
case INT_SHORT:
- HDmemcpy(aligned, saved + j * sizeof(short), sizeof(short));
+ memcpy(aligned, saved + j * sizeof(short), sizeof(short));
hw_long = (long int)(*((short *)aligned));
break;
case INT_USHORT:
- HDmemcpy(aligned, saved + j * sizeof(unsigned short), sizeof(unsigned short));
+ memcpy(aligned, saved + j * sizeof(unsigned short), sizeof(unsigned short));
hw_long = (long int)(*((unsigned short *)aligned));
break;
case INT_INT:
- HDmemcpy(aligned, saved + j * sizeof(int), sizeof(int));
+ memcpy(aligned, saved + j * sizeof(int), sizeof(int));
hw_long = (long int)(*((int *)aligned));
break;
case INT_UINT:
- HDmemcpy(aligned, saved + j * sizeof(unsigned), sizeof(unsigned));
+ memcpy(aligned, saved + j * sizeof(unsigned), sizeof(unsigned));
hw_long = (long int)(*((unsigned *)aligned));
break;
case INT_LONG:
- HDmemcpy(aligned, saved + j * sizeof(long), sizeof(long));
+ memcpy(aligned, saved + j * sizeof(long), sizeof(long));
hw_long = (long int)(*((long *)aligned));
break;
case INT_ULONG:
- HDmemcpy(aligned, saved + j * sizeof(unsigned long), sizeof(unsigned long));
+ memcpy(aligned, saved + j * sizeof(unsigned long), sizeof(unsigned long));
hw_long = (long int)(*((unsigned long *)aligned));
break;
case INT_LLONG:
- HDmemcpy(aligned, saved + j * sizeof(long long), sizeof(long long));
+ memcpy(aligned, saved + j * sizeof(long long), sizeof(long long));
hw_long = (long int)(*((long long *)aligned));
break;
case INT_ULLONG:
- HDmemcpy(aligned, saved + j * sizeof(unsigned long long), sizeof(unsigned long long));
+ memcpy(aligned, saved + j * sizeof(unsigned long long), sizeof(unsigned long long));
hw_long = (long int)(*((unsigned long long *)aligned));
break;
case FLT_FLOAT:
@@ -2099,43 +2099,43 @@ test_conv_int_1(const char *name, hid_t src, hid_t dst)
hw = (unsigned char *)&hw_ulong;
switch (src_type) {
case INT_SCHAR:
- HDmemcpy(aligned, saved + j * sizeof(signed char), sizeof(signed char));
+ memcpy(aligned, saved + j * sizeof(signed char), sizeof(signed char));
hw_ulong = (unsigned long)(*((signed char *)aligned));
break;
case INT_UCHAR:
- HDmemcpy(aligned, saved + j * sizeof(unsigned char), sizeof(unsigned char));
+ memcpy(aligned, saved + j * sizeof(unsigned char), sizeof(unsigned char));
hw_ulong = (unsigned long)(*((unsigned char *)aligned));
break;
case INT_SHORT:
- HDmemcpy(aligned, saved + j * sizeof(short), sizeof(short));
+ memcpy(aligned, saved + j * sizeof(short), sizeof(short));
hw_ulong = (unsigned long)(*((short *)aligned));
break;
case INT_USHORT:
- HDmemcpy(aligned, saved + j * sizeof(unsigned short), sizeof(unsigned short));
+ memcpy(aligned, saved + j * sizeof(unsigned short), sizeof(unsigned short));
hw_ulong = (unsigned long)(*((unsigned short *)aligned));
break;
case INT_INT:
- HDmemcpy(aligned, saved + j * sizeof(int), sizeof(int));
+ memcpy(aligned, saved + j * sizeof(int), sizeof(int));
hw_ulong = (unsigned long)(*((int *)aligned));
break;
case INT_UINT:
- HDmemcpy(aligned, saved + j * sizeof(unsigned), sizeof(unsigned));
+ memcpy(aligned, saved + j * sizeof(unsigned), sizeof(unsigned));
hw_ulong = (unsigned long)(*((unsigned *)aligned));
break;
case INT_LONG:
- HDmemcpy(aligned, saved + j * sizeof(long), sizeof(long));
+ memcpy(aligned, saved + j * sizeof(long), sizeof(long));
hw_ulong = (unsigned long)(*((long *)aligned));
break;
case INT_ULONG:
- HDmemcpy(aligned, saved + j * sizeof(unsigned long), sizeof(unsigned long));
+ memcpy(aligned, saved + j * sizeof(unsigned long), sizeof(unsigned long));
hw_ulong = (unsigned long)(*((unsigned long *)aligned));
break;
case INT_LLONG:
- HDmemcpy(aligned, saved + j * sizeof(long long), sizeof(long long));
+ memcpy(aligned, saved + j * sizeof(long long), sizeof(long long));
hw_ulong = (unsigned long)(*((long long *)aligned));
break;
case INT_ULLONG:
- HDmemcpy(aligned, saved + j * sizeof(unsigned long long), sizeof(unsigned long long));
+ memcpy(aligned, saved + j * sizeof(unsigned long long), sizeof(unsigned long long));
hw_ulong = (unsigned long)(*((unsigned long long *)aligned));
break;
case FLT_FLOAT:
@@ -2151,43 +2151,43 @@ test_conv_int_1(const char *name, hid_t src, hid_t dst)
hw = (unsigned char *)&hw_llong;
switch (src_type) {
case INT_SCHAR:
- HDmemcpy(aligned, saved + j * sizeof(char), sizeof(char));
+ memcpy(aligned, saved + j * sizeof(char), sizeof(char));
hw_llong = (long long)(*((char *)aligned));
break;
case INT_UCHAR:
- HDmemcpy(aligned, saved + j * sizeof(unsigned char), sizeof(unsigned char));
+ memcpy(aligned, saved + j * sizeof(unsigned char), sizeof(unsigned char));
hw_llong = (long long)(*((unsigned char *)aligned));
break;
case INT_SHORT:
- HDmemcpy(aligned, saved + j * sizeof(short), sizeof(short));
+ memcpy(aligned, saved + j * sizeof(short), sizeof(short));
hw_llong = (long long)(*((short *)aligned));
break;
case INT_USHORT:
- HDmemcpy(aligned, saved + j * sizeof(unsigned short), sizeof(unsigned short));
+ memcpy(aligned, saved + j * sizeof(unsigned short), sizeof(unsigned short));
hw_llong = (long long)(*((unsigned short *)aligned));
break;
case INT_INT:
- HDmemcpy(aligned, saved + j * sizeof(int), sizeof(int));
+ memcpy(aligned, saved + j * sizeof(int), sizeof(int));
hw_llong = (long long)(*((int *)aligned));
break;
case INT_UINT:
- HDmemcpy(aligned, saved + j * sizeof(unsigned), sizeof(unsigned));
+ memcpy(aligned, saved + j * sizeof(unsigned), sizeof(unsigned));
hw_llong = (long long)(*((unsigned *)aligned));
break;
case INT_LONG:
- HDmemcpy(aligned, saved + j * sizeof(long), sizeof(long));
+ memcpy(aligned, saved + j * sizeof(long), sizeof(long));
hw_llong = (long long)(*((long *)aligned));
break;
case INT_ULONG:
- HDmemcpy(aligned, saved + j * sizeof(unsigned long), sizeof(unsigned long));
+ memcpy(aligned, saved + j * sizeof(unsigned long), sizeof(unsigned long));
hw_llong = (long long)(*((unsigned long *)aligned));
break;
case INT_LLONG:
- HDmemcpy(aligned, saved + j * sizeof(long long), sizeof(long long));
+ memcpy(aligned, saved + j * sizeof(long long), sizeof(long long));
hw_llong = (long long)(*((long long *)aligned));
break;
case INT_ULLONG:
- HDmemcpy(aligned, saved + j * sizeof(unsigned long long), sizeof(unsigned long long));
+ memcpy(aligned, saved + j * sizeof(unsigned long long), sizeof(unsigned long long));
hw_llong = (long long)(*((unsigned long long *)aligned));
break;
case FLT_FLOAT:
@@ -2203,43 +2203,43 @@ test_conv_int_1(const char *name, hid_t src, hid_t dst)
hw = (unsigned char *)&hw_ullong;
switch (src_type) {
case INT_SCHAR:
- HDmemcpy(aligned, saved + j * sizeof(signed char), sizeof(signed char));
+ memcpy(aligned, saved + j * sizeof(signed char), sizeof(signed char));
hw_ullong = (unsigned long long)(*((signed char *)aligned));
break;
case INT_UCHAR:
- HDmemcpy(aligned, saved + j * sizeof(unsigned char), sizeof(unsigned char));
+ memcpy(aligned, saved + j * sizeof(unsigned char), sizeof(unsigned char));
hw_ullong = (unsigned long long)(*((unsigned char *)aligned));
break;
case INT_SHORT:
- HDmemcpy(aligned, saved + j * sizeof(short), sizeof(short));
+ memcpy(aligned, saved + j * sizeof(short), sizeof(short));
hw_ullong = (unsigned long long)(*((short *)aligned));
break;
case INT_USHORT:
- HDmemcpy(aligned, saved + j * sizeof(unsigned short), sizeof(unsigned short));
+ memcpy(aligned, saved + j * sizeof(unsigned short), sizeof(unsigned short));
hw_ullong = (unsigned long long)(*((unsigned short *)aligned));
break;
case INT_INT:
- HDmemcpy(aligned, saved + j * sizeof(int), sizeof(int));
+ memcpy(aligned, saved + j * sizeof(int), sizeof(int));
hw_ullong = (unsigned long long)(*((int *)aligned));
break;
case INT_UINT:
- HDmemcpy(aligned, saved + j * sizeof(unsigned), sizeof(unsigned));
+ memcpy(aligned, saved + j * sizeof(unsigned), sizeof(unsigned));
hw_ullong = (unsigned long long)(*((unsigned *)aligned));
break;
case INT_LONG:
- HDmemcpy(aligned, saved + j * sizeof(long), sizeof(long));
+ memcpy(aligned, saved + j * sizeof(long), sizeof(long));
hw_ullong = (unsigned long long)(*((long *)aligned));
break;
case INT_ULONG:
- HDmemcpy(aligned, saved + j * sizeof(unsigned long), sizeof(unsigned long));
+ memcpy(aligned, saved + j * sizeof(unsigned long), sizeof(unsigned long));
hw_ullong = (unsigned long long)(*((unsigned long *)aligned));
break;
case INT_LLONG:
- HDmemcpy(aligned, saved + j * sizeof(long long), sizeof(long long));
+ memcpy(aligned, saved + j * sizeof(long long), sizeof(long long));
hw_ullong = (unsigned long long)(*((long long *)aligned));
break;
case INT_ULLONG:
- HDmemcpy(aligned, saved + j * sizeof(unsigned long long), sizeof(unsigned long long));
+ memcpy(aligned, saved + j * sizeof(unsigned long long), sizeof(unsigned long long));
hw_ullong = (unsigned long long)(*((unsigned long long *)aligned));
break;
case FLT_FLOAT:
@@ -2385,43 +2385,43 @@ test_conv_int_1(const char *name, hid_t src, hid_t dst)
printf("%*s", (int)(3 * MAX(0, (ssize_t)dst_size - (ssize_t)src_size)), "");
switch (src_type) {
case INT_SCHAR:
- HDmemcpy(aligned, saved + j * sizeof(signed char), sizeof(signed char));
+ memcpy(aligned, saved + j * sizeof(signed char), sizeof(signed char));
printf(" %29d\n", (int)*((signed char *)aligned));
break;
case INT_UCHAR:
- HDmemcpy(aligned, saved + j * sizeof(unsigned char), sizeof(unsigned char));
+ memcpy(aligned, saved + j * sizeof(unsigned char), sizeof(unsigned char));
printf(" %29u\n", (unsigned)*((unsigned char *)aligned));
break;
case INT_SHORT:
- HDmemcpy(aligned, saved + j * sizeof(short), sizeof(short));
+ memcpy(aligned, saved + j * sizeof(short), sizeof(short));
printf(" %29hd\n", *((short *)aligned));
break;
case INT_USHORT:
- HDmemcpy(aligned, saved + j * sizeof(unsigned short), sizeof(unsigned short));
+ memcpy(aligned, saved + j * sizeof(unsigned short), sizeof(unsigned short));
printf(" %29hu\n", *((unsigned short *)aligned));
break;
case INT_INT:
- HDmemcpy(aligned, saved + j * sizeof(int), sizeof(int));
+ memcpy(aligned, saved + j * sizeof(int), sizeof(int));
printf(" %29d\n", *((int *)aligned));
break;
case INT_UINT:
- HDmemcpy(aligned, saved + j * sizeof(unsigned), sizeof(unsigned));
+ memcpy(aligned, saved + j * sizeof(unsigned), sizeof(unsigned));
printf(" %29u\n", *((unsigned *)aligned));
break;
case INT_LONG:
- HDmemcpy(aligned, saved + j * sizeof(long), sizeof(long));
+ memcpy(aligned, saved + j * sizeof(long), sizeof(long));
printf(" %29ld\n", *((long *)aligned));
break;
case INT_ULONG:
- HDmemcpy(aligned, saved + j * sizeof(unsigned long), sizeof(unsigned long));
+ memcpy(aligned, saved + j * sizeof(unsigned long), sizeof(unsigned long));
printf(" %29lu\n", *((unsigned long *)aligned));
break;
case INT_LLONG:
- HDmemcpy(aligned, saved + j * sizeof(long long), sizeof(long long));
+ memcpy(aligned, saved + j * sizeof(long long), sizeof(long long));
fprintf(stdout, " %29lld\n", *((long long *)aligned));
break;
case INT_ULLONG:
- HDmemcpy(aligned, saved + j * sizeof(unsigned long long), sizeof(unsigned long long));
+ memcpy(aligned, saved + j * sizeof(unsigned long long), sizeof(unsigned long long));
fprintf(stdout, " %29llu\n", *((unsigned long long *)aligned));
break;
case FLT_FLOAT:
@@ -2439,43 +2439,43 @@ test_conv_int_1(const char *name, hid_t src, hid_t dst)
printf("%*s", (int)(3 * MAX(0, (ssize_t)src_size - (ssize_t)dst_size)), "");
switch (dst_type) {
case INT_SCHAR:
- HDmemcpy(aligned, buf + j * sizeof(signed char), sizeof(signed char));
+ memcpy(aligned, buf + j * sizeof(signed char), sizeof(signed char));
printf(" %29d\n", (int)*((signed char *)aligned));
break;
case INT_UCHAR:
- HDmemcpy(aligned, buf + j * sizeof(unsigned char), sizeof(unsigned char));
+ memcpy(aligned, buf + j * sizeof(unsigned char), sizeof(unsigned char));
printf(" %29u\n", (unsigned)*((unsigned char *)aligned));
break;
case INT_SHORT:
- HDmemcpy(aligned, buf + j * sizeof(short), sizeof(short));
+ memcpy(aligned, buf + j * sizeof(short), sizeof(short));
printf(" %29hd\n", *((short *)aligned));
break;
case INT_USHORT:
- HDmemcpy(aligned, buf + j * sizeof(unsigned short), sizeof(unsigned short));
+ memcpy(aligned, buf + j * sizeof(unsigned short), sizeof(unsigned short));
printf(" %29hu\n", *((unsigned short *)aligned));
break;
case INT_INT:
- HDmemcpy(aligned, buf + j * sizeof(int), sizeof(int));
+ memcpy(aligned, buf + j * sizeof(int), sizeof(int));
printf(" %29d\n", *((int *)aligned));
break;
case INT_UINT:
- HDmemcpy(aligned, buf + j * sizeof(unsigned), sizeof(unsigned));
+ memcpy(aligned, buf + j * sizeof(unsigned), sizeof(unsigned));
printf(" %29u\n", *((unsigned *)aligned));
break;
case INT_LONG:
- HDmemcpy(aligned, buf + j * sizeof(long), sizeof(long));
+ memcpy(aligned, buf + j * sizeof(long), sizeof(long));
printf(" %29ld\n", *((long *)aligned));
break;
case INT_ULONG:
- HDmemcpy(aligned, buf + j * sizeof(unsigned long), sizeof(unsigned long));
+ memcpy(aligned, buf + j * sizeof(unsigned long), sizeof(unsigned long));
printf(" %29lu\n", *((unsigned long *)aligned));
break;
case INT_LLONG:
- HDmemcpy(aligned, buf + j * sizeof(long long), sizeof(long long));
+ memcpy(aligned, buf + j * sizeof(long long), sizeof(long long));
fprintf(stdout, " %29lld\n", *((long long *)aligned));
break;
case INT_ULLONG:
- HDmemcpy(aligned, buf + j * sizeof(long long), sizeof(unsigned long long));
+ memcpy(aligned, buf + j * sizeof(long long), sizeof(unsigned long long));
fprintf(stdout, " %29llu\n", *((unsigned long long *)aligned));
break;
case FLT_FLOAT:
@@ -2639,18 +2639,18 @@ my_isnan(dtype_t type, void *val)
if (FLT_FLOAT == type) {
float x = 0.0;
- HDmemcpy(&x, val, sizeof(float));
+ memcpy(&x, val, sizeof(float));
retval = isnan(x);
}
else if (FLT_DOUBLE == type) {
double x = 0.0;
- HDmemcpy(&x, val, sizeof(double));
+ memcpy(&x, val, sizeof(double));
retval = isnan(x);
#if H5_SIZEOF_LONG_DOUBLE != H5_SIZEOF_DOUBLE
}
else if (FLT_LDOUBLE == type) {
long double x = 0.0L;
- HDmemcpy(&x, val, sizeof(long double));
+ memcpy(&x, val, sizeof(long double));
retval = isnan(x);
#endif
}
@@ -2666,20 +2666,20 @@ my_isnan(dtype_t type, void *val)
if (FLT_FLOAT == type) {
float x = 0.0;
- HDmemcpy(&x, val, sizeof(float));
+ memcpy(&x, val, sizeof(float));
HDsnprintf(s, sizeof(s), "%g", (double)x);
}
else if (FLT_DOUBLE == type) {
double x = 0.0;
- HDmemcpy(&x, val, sizeof(double));
+ memcpy(&x, val, sizeof(double));
HDsnprintf(s, sizeof(s), "%g", x);
#if H5_SIZEOF_LONG_DOUBLE != H5_SIZEOF_DOUBLE
}
else if (FLT_LDOUBLE == type) {
long double x = 0.0L;
- HDmemcpy(&x, val, sizeof(long double));
+ memcpy(&x, val, sizeof(long double));
HDsnprintf(s, sizeof(s), "%Lg", x);
#endif
}
@@ -2993,7 +2993,7 @@ test_conv_flt_1(const char *name, int run_test, hid_t src, hid_t dst)
/* The hardware conversion */
/* Check for underflow when src is a "larger" float than dst.*/
if (FLT_FLOAT == src_type) {
- HDmemcpy(aligned, saved + j * sizeof(float), sizeof(float));
+ memcpy(aligned, saved + j * sizeof(float), sizeof(float));
if (FLT_FLOAT == dst_type) {
hw_f = *((float *)aligned);
hw = (unsigned char *)&hw_f;
@@ -3010,7 +3010,7 @@ test_conv_flt_1(const char *name, int run_test, hid_t src, hid_t dst)
}
}
else if (FLT_DOUBLE == src_type) {
- HDmemcpy(aligned, saved + j * sizeof(double), sizeof(double));
+ memcpy(aligned, saved + j * sizeof(double), sizeof(double));
if (FLT_FLOAT == dst_type) {
hw_f = (float)(*((double *)aligned));
hw = (unsigned char *)&hw_f;
@@ -3030,7 +3030,7 @@ test_conv_flt_1(const char *name, int run_test, hid_t src, hid_t dst)
#if H5_SIZEOF_LONG_DOUBLE != H5_SIZEOF_DOUBLE
}
else {
- HDmemcpy(aligned, saved + j * sizeof(long double), sizeof(long double));
+ memcpy(aligned, saved + j * sizeof(long double), sizeof(long double));
if (FLT_FLOAT == dst_type) {
hw_f = (float)*((long double *)aligned);
hw = (unsigned char *)&hw_f;
@@ -3119,7 +3119,7 @@ test_conv_flt_1(const char *name, int run_test, hid_t src, hid_t dst)
if (FLT_FLOAT == dst_type) {
float x = 0.0;
- HDmemcpy(&x, &buf[j * dst_size], sizeof(float));
+ memcpy(&x, &buf[j * dst_size], sizeof(float));
if (underflow && HDfabsf(x) <= FLT_MIN && HDfabsf(hw_f) <= FLT_MIN)
continue; /* all underflowed, no error */
if (overflow && my_isinf(dendian, buf + j * sizeof(float), dst_size, dst_mpos, dst_msize,
@@ -3130,7 +3130,7 @@ test_conv_flt_1(const char *name, int run_test, hid_t src, hid_t dst)
}
else if (FLT_DOUBLE == dst_type) {
double x = 0.0;
- HDmemcpy(&x, &buf[j * dst_size], sizeof(double));
+ memcpy(&x, &buf[j * dst_size], sizeof(double));
if (underflow && HDfabs(x) <= DBL_MIN && HDfabs(hw_d) <= DBL_MIN)
continue; /* all underflowed, no error */
if (overflow && my_isinf(dendian, buf + j * sizeof(double), dst_size, dst_mpos, dst_msize,
@@ -3142,7 +3142,7 @@ test_conv_flt_1(const char *name, int run_test, hid_t src, hid_t dst)
}
else {
long double x = 0.0L;
- HDmemcpy(&x, &buf[j * dst_size], sizeof(long double));
+ memcpy(&x, &buf[j * dst_size], sizeof(long double));
/* dst is largest float, no need to check underflow. */
check_mant[0] = (double)HDfrexpl(x, check_expo + 0);
check_mant[1] = (double)HDfrexpl(hw_ld, check_expo + 1);
@@ -3189,18 +3189,18 @@ test_conv_flt_1(const char *name, int run_test, hid_t src, hid_t dst)
printf("%*s", (int)(3 * MAX(0, (ssize_t)dst_size - (ssize_t)src_size)), "");
if (FLT_FLOAT == src_type) {
float x = 0.0;
- HDmemcpy(&x, &saved[j * src_size], sizeof(float));
+ memcpy(&x, &saved[j * src_size], sizeof(float));
printf(" %29.20e\n", (double)x);
}
else if (FLT_DOUBLE == src_type) {
double x = 0.0;
- HDmemcpy(&x, &saved[j * src_size], sizeof(double));
+ memcpy(&x, &saved[j * src_size], sizeof(double));
printf(" %29.20e\n", x);
#if H5_SIZEOF_LONG_DOUBLE != H5_SIZEOF_DOUBLE
}
else {
long double x = 0.0L;
- HDmemcpy(&x, &saved[j * src_size], sizeof(long double));
+ memcpy(&x, &saved[j * src_size], sizeof(long double));
fprintf(stdout, " %29.20Le\n", x);
#endif
}
@@ -3211,18 +3211,18 @@ test_conv_flt_1(const char *name, int run_test, hid_t src, hid_t dst)
printf("%*s", (int)(3 * MAX(0, (ssize_t)src_size - (ssize_t)dst_size)), "");
if (FLT_FLOAT == dst_type) {
float x = 0.0;
- HDmemcpy(&x, &buf[j * dst_size], sizeof(float));
+ memcpy(&x, &buf[j * dst_size], sizeof(float));
printf(" %29.20e\n", (double)x);
}
else if (FLT_DOUBLE == dst_type) {
double x = 0.0;
- HDmemcpy(&x, &buf[j * dst_size], sizeof(double));
+ memcpy(&x, &buf[j * dst_size], sizeof(double));
printf(" %29.20e\n", x);
#if H5_SIZEOF_LONG_DOUBLE != H5_SIZEOF_DOUBLE
}
else {
long double x = 0.0L;
- HDmemcpy(&x, &buf[j * dst_size], sizeof(long double));
+ memcpy(&x, &buf[j * dst_size], sizeof(long double));
fprintf(stdout, " %29.20Le\n", x);
#endif
}
@@ -3564,7 +3564,7 @@ test_conv_int_fp(const char *name, int run_test, hid_t src, hid_t dst)
* 12 bytes but precision is 10 bytes. The 2 unused bytes may
* have garbage causing wrong value comparison.
*/
- HDmemset(&hw_ldouble, 0, sizeof(long double));
+ memset(&hw_ldouble, 0, sizeof(long double));
/* Create a dataset transfer property list and datatype conversion
* exception handler function and pass in fill value. This is mainly
@@ -3679,43 +3679,43 @@ test_conv_int_fp(const char *name, int run_test, hid_t src, hid_t dst)
hw = (unsigned char *)&hw_float;
switch (src_type) {
case INT_SCHAR:
- HDmemcpy(aligned, saved + j * sizeof(signed char), sizeof(signed char));
+ memcpy(aligned, saved + j * sizeof(signed char), sizeof(signed char));
hw_float = (float)(*((signed char *)aligned));
break;
case INT_UCHAR:
- HDmemcpy(aligned, saved + j * sizeof(unsigned char), sizeof(unsigned char));
+ memcpy(aligned, saved + j * sizeof(unsigned char), sizeof(unsigned char));
hw_float = (float)(*((unsigned char *)aligned));
break;
case INT_SHORT:
- HDmemcpy(aligned, saved + j * sizeof(short), sizeof(short));
+ memcpy(aligned, saved + j * sizeof(short), sizeof(short));
hw_float = (float)(*((short *)aligned));
break;
case INT_USHORT:
- HDmemcpy(aligned, saved + j * sizeof(unsigned short), sizeof(unsigned short));
+ memcpy(aligned, saved + j * sizeof(unsigned short), sizeof(unsigned short));
hw_float = (float)(*((unsigned short *)aligned));
break;
case INT_INT:
- HDmemcpy(aligned, saved + j * sizeof(int), sizeof(int));
+ memcpy(aligned, saved + j * sizeof(int), sizeof(int));
hw_float = (float)(*((int *)aligned));
break;
case INT_UINT:
- HDmemcpy(aligned, saved + j * sizeof(unsigned), sizeof(unsigned));
+ memcpy(aligned, saved + j * sizeof(unsigned), sizeof(unsigned));
hw_float = (float)(*((unsigned *)aligned));
break;
case INT_LONG:
- HDmemcpy(aligned, saved + j * sizeof(long), sizeof(long));
+ memcpy(aligned, saved + j * sizeof(long), sizeof(long));
hw_float = (float)(*((long *)aligned));
break;
case INT_ULONG:
- HDmemcpy(aligned, saved + j * sizeof(unsigned long), sizeof(unsigned long));
+ memcpy(aligned, saved + j * sizeof(unsigned long), sizeof(unsigned long));
hw_float = (float)(*((unsigned long *)aligned));
break;
case INT_LLONG:
- HDmemcpy(aligned, saved + j * sizeof(long long), sizeof(long long));
+ memcpy(aligned, saved + j * sizeof(long long), sizeof(long long));
hw_float = (float)(*((long long *)aligned));
break;
case INT_ULLONG:
- HDmemcpy(aligned, saved + j * sizeof(unsigned long long), sizeof(unsigned long long));
+ memcpy(aligned, saved + j * sizeof(unsigned long long), sizeof(unsigned long long));
hw_float = (float)(*((unsigned long long *)aligned));
break;
case FLT_FLOAT:
@@ -3731,43 +3731,43 @@ test_conv_int_fp(const char *name, int run_test, hid_t src, hid_t dst)
hw = (unsigned char *)&hw_double;
switch (src_type) {
case INT_SCHAR:
- HDmemcpy(aligned, saved + j * sizeof(signed char), sizeof(signed char));
+ memcpy(aligned, saved + j * sizeof(signed char), sizeof(signed char));
hw_double = (double)(*((signed char *)aligned));
break;
case INT_UCHAR:
- HDmemcpy(aligned, saved + j * sizeof(unsigned char), sizeof(unsigned char));
+ memcpy(aligned, saved + j * sizeof(unsigned char), sizeof(unsigned char));
hw_double = (double)(*((unsigned char *)aligned));
break;
case INT_SHORT:
- HDmemcpy(aligned, saved + j * sizeof(short), sizeof(short));
+ memcpy(aligned, saved + j * sizeof(short), sizeof(short));
hw_double = (double)(*((short *)aligned));
break;
case INT_USHORT:
- HDmemcpy(aligned, saved + j * sizeof(unsigned short), sizeof(unsigned short));
+ memcpy(aligned, saved + j * sizeof(unsigned short), sizeof(unsigned short));
hw_double = (double)(*((unsigned short *)aligned));
break;
case INT_INT:
- HDmemcpy(aligned, saved + j * sizeof(int), sizeof(int));
+ memcpy(aligned, saved + j * sizeof(int), sizeof(int));
hw_double = (double)(*((int *)aligned));
break;
case INT_UINT:
- HDmemcpy(aligned, saved + j * sizeof(unsigned), sizeof(unsigned));
+ memcpy(aligned, saved + j * sizeof(unsigned), sizeof(unsigned));
hw_double = (double)(*((unsigned *)aligned));
break;
case INT_LONG:
- HDmemcpy(aligned, saved + j * sizeof(long), sizeof(long));
+ memcpy(aligned, saved + j * sizeof(long), sizeof(long));
hw_double = (double)(*((long *)aligned));
break;
case INT_ULONG:
- HDmemcpy(aligned, saved + j * sizeof(unsigned long), sizeof(unsigned long));
+ memcpy(aligned, saved + j * sizeof(unsigned long), sizeof(unsigned long));
hw_double = (double)(*((unsigned long *)aligned));
break;
case INT_LLONG:
- HDmemcpy(aligned, saved + j * sizeof(long long), sizeof(long long));
+ memcpy(aligned, saved + j * sizeof(long long), sizeof(long long));
hw_double = (double)(*((long long *)aligned));
break;
case INT_ULLONG:
- HDmemcpy(aligned, saved + j * sizeof(unsigned long long), sizeof(unsigned long long));
+ memcpy(aligned, saved + j * sizeof(unsigned long long), sizeof(unsigned long long));
hw_double = (double)(*((unsigned long long *)aligned));
break;
case FLT_FLOAT:
@@ -3783,43 +3783,43 @@ test_conv_int_fp(const char *name, int run_test, hid_t src, hid_t dst)
hw = (unsigned char *)&hw_ldouble;
switch (src_type) {
case INT_SCHAR:
- HDmemcpy(aligned, saved + j * sizeof(signed char), sizeof(signed char));
+ memcpy(aligned, saved + j * sizeof(signed char), sizeof(signed char));
hw_ldouble = (long double)(*((signed char *)aligned));
break;
case INT_UCHAR:
- HDmemcpy(aligned, saved + j * sizeof(unsigned char), sizeof(unsigned char));
+ memcpy(aligned, saved + j * sizeof(unsigned char), sizeof(unsigned char));
hw_ldouble = (long double)(*((unsigned char *)aligned));
break;
case INT_SHORT:
- HDmemcpy(aligned, saved + j * sizeof(short), sizeof(short));
+ memcpy(aligned, saved + j * sizeof(short), sizeof(short));
hw_ldouble = (long double)(*((short *)aligned));
break;
case INT_USHORT:
- HDmemcpy(aligned, saved + j * sizeof(unsigned short), sizeof(unsigned short));
+ memcpy(aligned, saved + j * sizeof(unsigned short), sizeof(unsigned short));
hw_ldouble = (long double)(*((unsigned short *)aligned));
break;
case INT_INT:
- HDmemcpy(aligned, saved + j * sizeof(int), sizeof(int));
+ memcpy(aligned, saved + j * sizeof(int), sizeof(int));
hw_ldouble = (long double)(*((int *)aligned));
break;
case INT_UINT:
- HDmemcpy(aligned, saved + j * sizeof(unsigned), sizeof(unsigned));
+ memcpy(aligned, saved + j * sizeof(unsigned), sizeof(unsigned));
hw_ldouble = (long double)(*((unsigned *)aligned));
break;
case INT_LONG:
- HDmemcpy(aligned, saved + j * sizeof(long), sizeof(long));
+ memcpy(aligned, saved + j * sizeof(long), sizeof(long));
hw_ldouble = (long double)(*((long *)aligned));
break;
case INT_ULONG:
- HDmemcpy(aligned, saved + j * sizeof(unsigned long), sizeof(unsigned long));
+ memcpy(aligned, saved + j * sizeof(unsigned long), sizeof(unsigned long));
hw_ldouble = (long double)(*((unsigned long *)aligned));
break;
case INT_LLONG:
- HDmemcpy(aligned, saved + j * sizeof(long long), sizeof(long long));
+ memcpy(aligned, saved + j * sizeof(long long), sizeof(long long));
hw_ldouble = (long double)(*((long long *)aligned));
break;
case INT_ULLONG:
- HDmemcpy(aligned, saved + j * sizeof(unsigned long long), sizeof(unsigned long long));
+ memcpy(aligned, saved + j * sizeof(unsigned long long), sizeof(unsigned long long));
hw_ldouble = (long double)(*((unsigned long long *)aligned));
break;
case FLT_FLOAT:
@@ -3835,15 +3835,15 @@ test_conv_int_fp(const char *name, int run_test, hid_t src, hid_t dst)
hw = (unsigned char *)&hw_schar;
switch (src_type) {
case FLT_FLOAT:
- HDmemcpy(aligned, saved + j * sizeof(float), sizeof(float));
+ memcpy(aligned, saved + j * sizeof(float), sizeof(float));
hw_schar = (signed char)(*((float *)aligned));
break;
case FLT_DOUBLE:
- HDmemcpy(aligned, saved + j * sizeof(double), sizeof(double));
+ memcpy(aligned, saved + j * sizeof(double), sizeof(double));
hw_schar = (signed char)(*((double *)aligned));
break;
case FLT_LDOUBLE:
- HDmemcpy(aligned, saved + j * sizeof(long double), sizeof(long double));
+ memcpy(aligned, saved + j * sizeof(long double), sizeof(long double));
hw_schar = (signed char)(*((long double *)aligned));
break;
case INT_SCHAR:
@@ -3866,15 +3866,15 @@ test_conv_int_fp(const char *name, int run_test, hid_t src, hid_t dst)
hw = (unsigned char *)&hw_uchar;
switch (src_type) {
case FLT_FLOAT:
- HDmemcpy(aligned, saved + j * sizeof(float), sizeof(float));
+ memcpy(aligned, saved + j * sizeof(float), sizeof(float));
hw_uchar = (unsigned char)(*((float *)aligned));
break;
case FLT_DOUBLE:
- HDmemcpy(aligned, saved + j * sizeof(double), sizeof(double));
+ memcpy(aligned, saved + j * sizeof(double), sizeof(double));
hw_uchar = (unsigned char)(*((double *)aligned));
break;
case FLT_LDOUBLE:
- HDmemcpy(aligned, saved + j * sizeof(long double), sizeof(long double));
+ memcpy(aligned, saved + j * sizeof(long double), sizeof(long double));
hw_uchar = (unsigned char)(*((long double *)aligned));
break;
case INT_SCHAR:
@@ -3897,15 +3897,15 @@ test_conv_int_fp(const char *name, int run_test, hid_t src, hid_t dst)
hw = (unsigned char *)&hw_short;
switch (src_type) {
case FLT_FLOAT:
- HDmemcpy(aligned, saved + j * sizeof(float), sizeof(float));
+ memcpy(aligned, saved + j * sizeof(float), sizeof(float));
hw_short = (short)(*((float *)aligned));
break;
case FLT_DOUBLE:
- HDmemcpy(aligned, saved + j * sizeof(double), sizeof(double));
+ memcpy(aligned, saved + j * sizeof(double), sizeof(double));
hw_short = (short)(*((double *)aligned));
break;
case FLT_LDOUBLE:
- HDmemcpy(aligned, saved + j * sizeof(long double), sizeof(long double));
+ memcpy(aligned, saved + j * sizeof(long double), sizeof(long double));
hw_short = (short)(*((long double *)aligned));
break;
case INT_SCHAR:
@@ -3928,15 +3928,15 @@ test_conv_int_fp(const char *name, int run_test, hid_t src, hid_t dst)
hw = (unsigned char *)&hw_ushort;
switch (src_type) {
case FLT_FLOAT:
- HDmemcpy(aligned, saved + j * sizeof(float), sizeof(float));
+ memcpy(aligned, saved + j * sizeof(float), sizeof(float));
hw_ushort = (unsigned short)(*((float *)aligned));
break;
case FLT_DOUBLE:
- HDmemcpy(aligned, saved + j * sizeof(double), sizeof(double));
+ memcpy(aligned, saved + j * sizeof(double), sizeof(double));
hw_ushort = (unsigned short)(*((double *)aligned));
break;
case FLT_LDOUBLE:
- HDmemcpy(aligned, saved + j * sizeof(long double), sizeof(long double));
+ memcpy(aligned, saved + j * sizeof(long double), sizeof(long double));
hw_ushort = (unsigned short)(*((long double *)aligned));
break;
case INT_SCHAR:
@@ -3959,15 +3959,15 @@ test_conv_int_fp(const char *name, int run_test, hid_t src, hid_t dst)
hw = (unsigned char *)&hw_int;
switch (src_type) {
case FLT_FLOAT:
- HDmemcpy(aligned, saved + j * sizeof(float), sizeof(float));
+ memcpy(aligned, saved + j * sizeof(float), sizeof(float));
hw_int = (int)(*((float *)aligned));
break;
case FLT_DOUBLE:
- HDmemcpy(aligned, saved + j * sizeof(double), sizeof(double));
+ memcpy(aligned, saved + j * sizeof(double), sizeof(double));
hw_int = (int)(*((double *)aligned));
break;
case FLT_LDOUBLE:
- HDmemcpy(aligned, saved + j * sizeof(long double), sizeof(long double));
+ memcpy(aligned, saved + j * sizeof(long double), sizeof(long double));
hw_int = (int)(*((long double *)aligned));
break;
case INT_SCHAR:
@@ -3990,15 +3990,15 @@ test_conv_int_fp(const char *name, int run_test, hid_t src, hid_t dst)
hw = (unsigned char *)&hw_uint;
switch (src_type) {
case FLT_FLOAT:
- HDmemcpy(aligned, saved + j * sizeof(float), sizeof(float));
+ memcpy(aligned, saved + j * sizeof(float), sizeof(float));
hw_uint = (unsigned int)(*((float *)aligned));
break;
case FLT_DOUBLE:
- HDmemcpy(aligned, saved + j * sizeof(double), sizeof(double));
+ memcpy(aligned, saved + j * sizeof(double), sizeof(double));
hw_uint = (unsigned int)(*((double *)aligned));
break;
case FLT_LDOUBLE:
- HDmemcpy(aligned, saved + j * sizeof(long double), sizeof(long double));
+ memcpy(aligned, saved + j * sizeof(long double), sizeof(long double));
hw_uint = (unsigned int)(*((long double *)aligned));
break;
case INT_SCHAR:
@@ -4021,15 +4021,15 @@ test_conv_int_fp(const char *name, int run_test, hid_t src, hid_t dst)
hw = (unsigned char *)&hw_long;
switch (src_type) {
case FLT_FLOAT:
- HDmemcpy(aligned, saved + j * sizeof(float), sizeof(float));
+ memcpy(aligned, saved + j * sizeof(float), sizeof(float));
hw_long = (long)(*((float *)aligned));
break;
case FLT_DOUBLE:
- HDmemcpy(aligned, saved + j * sizeof(double), sizeof(double));
+ memcpy(aligned, saved + j * sizeof(double), sizeof(double));
hw_long = (long)(*((double *)aligned));
break;
case FLT_LDOUBLE:
- HDmemcpy(aligned, saved + j * sizeof(long double), sizeof(long double));
+ memcpy(aligned, saved + j * sizeof(long double), sizeof(long double));
hw_long = (long)(*((long double *)aligned));
break;
case INT_SCHAR:
@@ -4052,15 +4052,15 @@ test_conv_int_fp(const char *name, int run_test, hid_t src, hid_t dst)
hw = (unsigned char *)&hw_ulong;
switch (src_type) {
case FLT_FLOAT:
- HDmemcpy(aligned, saved + j * sizeof(float), sizeof(float));
+ memcpy(aligned, saved + j * sizeof(float), sizeof(float));
hw_ulong = (unsigned long)(*((float *)aligned));
break;
case FLT_DOUBLE:
- HDmemcpy(aligned, saved + j * sizeof(double), sizeof(double));
+ memcpy(aligned, saved + j * sizeof(double), sizeof(double));
hw_ulong = (unsigned long)(*((double *)aligned));
break;
case FLT_LDOUBLE:
- HDmemcpy(aligned, saved + j * sizeof(long double), sizeof(long double));
+ memcpy(aligned, saved + j * sizeof(long double), sizeof(long double));
hw_ulong = (unsigned long)(*((long double *)aligned));
break;
case INT_SCHAR:
@@ -4083,15 +4083,15 @@ test_conv_int_fp(const char *name, int run_test, hid_t src, hid_t dst)
hw = (unsigned char *)&hw_llong;
switch (src_type) {
case FLT_FLOAT:
- HDmemcpy(aligned, saved + j * sizeof(float), sizeof(float));
+ memcpy(aligned, saved + j * sizeof(float), sizeof(float));
hw_llong = (long long)(*((float *)aligned));
break;
case FLT_DOUBLE:
- HDmemcpy(aligned, saved + j * sizeof(double), sizeof(double));
+ memcpy(aligned, saved + j * sizeof(double), sizeof(double));
hw_llong = (long long)(*((double *)aligned));
break;
case FLT_LDOUBLE:
- HDmemcpy(aligned, saved + j * sizeof(long double), sizeof(long double));
+ memcpy(aligned, saved + j * sizeof(long double), sizeof(long double));
hw_llong = (long long)(*((long double *)aligned));
break;
case INT_SCHAR:
@@ -4114,15 +4114,15 @@ test_conv_int_fp(const char *name, int run_test, hid_t src, hid_t dst)
hw = (unsigned char *)&hw_ullong;
switch (src_type) {
case FLT_FLOAT:
- HDmemcpy(aligned, saved + j * sizeof(float), sizeof(float));
+ memcpy(aligned, saved + j * sizeof(float), sizeof(float));
hw_ullong = (unsigned long long)(*((float *)aligned));
break;
case FLT_DOUBLE:
- HDmemcpy(aligned, saved + j * sizeof(double), sizeof(double));
+ memcpy(aligned, saved + j * sizeof(double), sizeof(double));
hw_ullong = (unsigned long long)(*((double *)aligned));
break;
case FLT_LDOUBLE:
- HDmemcpy(aligned, saved + j * sizeof(long double), sizeof(long double));
+ memcpy(aligned, saved + j * sizeof(long double), sizeof(long double));
hw_ullong = (unsigned long long)(*((long double *)aligned));
break;
case INT_SCHAR:
@@ -4287,55 +4287,55 @@ test_conv_int_fp(const char *name, int run_test, hid_t src, hid_t dst)
printf("%*s", (int)(3 * MAX(0, (ssize_t)dst_size - (ssize_t)src_size)), "");
switch (src_type) {
case INT_SCHAR:
- HDmemcpy(aligned, saved + j * sizeof(signed char), sizeof(signed char));
+ memcpy(aligned, saved + j * sizeof(signed char), sizeof(signed char));
printf(" %29d\n", (int)*((signed char *)aligned));
break;
case INT_UCHAR:
- HDmemcpy(aligned, saved + j * sizeof(unsigned char), sizeof(unsigned char));
+ memcpy(aligned, saved + j * sizeof(unsigned char), sizeof(unsigned char));
printf(" %29u\n", (unsigned)*((unsigned char *)aligned));
break;
case INT_SHORT:
- HDmemcpy(aligned, saved + j * sizeof(short), sizeof(short));
+ memcpy(aligned, saved + j * sizeof(short), sizeof(short));
printf(" %29hd\n", *((short *)aligned));
break;
case INT_USHORT:
- HDmemcpy(aligned, saved + j * sizeof(unsigned short), sizeof(unsigned short));
+ memcpy(aligned, saved + j * sizeof(unsigned short), sizeof(unsigned short));
printf(" %29hu\n", *((unsigned short *)aligned));
break;
case INT_INT:
- HDmemcpy(aligned, saved + j * sizeof(int), sizeof(int));
+ memcpy(aligned, saved + j * sizeof(int), sizeof(int));
printf(" %29d\n", *((int *)aligned));
break;
case INT_UINT:
- HDmemcpy(aligned, saved + j * sizeof(unsigned), sizeof(unsigned));
+ memcpy(aligned, saved + j * sizeof(unsigned), sizeof(unsigned));
printf(" %29u\n", *((unsigned *)aligned));
break;
case INT_LONG:
- HDmemcpy(aligned, saved + j * sizeof(long), sizeof(long));
+ memcpy(aligned, saved + j * sizeof(long), sizeof(long));
printf(" %29ld\n", *((long *)aligned));
break;
case INT_ULONG:
- HDmemcpy(aligned, saved + j * sizeof(unsigned long), sizeof(unsigned long));
+ memcpy(aligned, saved + j * sizeof(unsigned long), sizeof(unsigned long));
printf(" %29lu\n", *((unsigned long *)aligned));
break;
case INT_LLONG:
- HDmemcpy(aligned, saved + j * sizeof(long long), sizeof(long long));
+ memcpy(aligned, saved + j * sizeof(long long), sizeof(long long));
fprintf(stdout, " %29lld\n", *((long long *)aligned));
break;
case INT_ULLONG:
- HDmemcpy(aligned, saved + j * sizeof(unsigned long long), sizeof(unsigned long long));
+ memcpy(aligned, saved + j * sizeof(unsigned long long), sizeof(unsigned long long));
fprintf(stdout, " %29llu\n", *((unsigned long long *)aligned));
break;
case FLT_FLOAT:
- HDmemcpy(aligned, saved + j * sizeof(float), sizeof(float));
+ memcpy(aligned, saved + j * sizeof(float), sizeof(float));
printf(" %29f\n", (double)*((float *)aligned));
break;
case FLT_DOUBLE:
- HDmemcpy(aligned, saved + j * sizeof(double), sizeof(double));
+ memcpy(aligned, saved + j * sizeof(double), sizeof(double));
printf(" %29f\n", *((double *)aligned));
break;
case FLT_LDOUBLE:
- HDmemcpy(aligned, saved + j * sizeof(long double), sizeof(long double));
+ memcpy(aligned, saved + j * sizeof(long double), sizeof(long double));
printf(" %29Lf\n", *((long double *)aligned));
break;
case OTHER:
@@ -4350,55 +4350,55 @@ test_conv_int_fp(const char *name, int run_test, hid_t src, hid_t dst)
printf("%*s", (int)(3 * MAX(0, (ssize_t)src_size - (ssize_t)dst_size)), "");
switch (dst_type) {
case INT_SCHAR:
- HDmemcpy(aligned, buf + j * sizeof(signed char), sizeof(signed char));
+ memcpy(aligned, buf + j * sizeof(signed char), sizeof(signed char));
printf(" %29d\n", (int)*((signed char *)aligned));
break;
case INT_UCHAR:
- HDmemcpy(aligned, buf + j * sizeof(unsigned char), sizeof(unsigned char));
+ memcpy(aligned, buf + j * sizeof(unsigned char), sizeof(unsigned char));
printf(" %29u\n", (unsigned)*((unsigned char *)aligned));
break;
case INT_SHORT:
- HDmemcpy(aligned, buf + j * sizeof(short), sizeof(short));
+ memcpy(aligned, buf + j * sizeof(short), sizeof(short));
printf(" %29hd\n", *((short *)aligned));
break;
case INT_USHORT:
- HDmemcpy(aligned, buf + j * sizeof(unsigned short), sizeof(unsigned short));
+ memcpy(aligned, buf + j * sizeof(unsigned short), sizeof(unsigned short));
printf(" %29hu\n", *((unsigned short *)aligned));
break;
case INT_INT:
- HDmemcpy(aligned, buf + j * sizeof(int), sizeof(int));
+ memcpy(aligned, buf + j * sizeof(int), sizeof(int));
printf(" %29d\n", *((int *)aligned));
break;
case INT_UINT:
- HDmemcpy(aligned, buf + j * sizeof(unsigned), sizeof(unsigned));
+ memcpy(aligned, buf + j * sizeof(unsigned), sizeof(unsigned));
printf(" %29u\n", *((unsigned *)aligned));
break;
case INT_LONG:
- HDmemcpy(aligned, buf + j * sizeof(long), sizeof(long));
+ memcpy(aligned, buf + j * sizeof(long), sizeof(long));
printf(" %29ld\n", *((long *)aligned));
break;
case INT_ULONG:
- HDmemcpy(aligned, buf + j * sizeof(unsigned long), sizeof(unsigned long));
+ memcpy(aligned, buf + j * sizeof(unsigned long), sizeof(unsigned long));
printf(" %29lu\n", *((unsigned long *)aligned));
break;
case INT_LLONG:
- HDmemcpy(aligned, buf + j * sizeof(long long), sizeof(long long));
+ memcpy(aligned, buf + j * sizeof(long long), sizeof(long long));
fprintf(stdout, " %29lld\n", *((long long *)aligned));
break;
case INT_ULLONG:
- HDmemcpy(aligned, buf + j * sizeof(unsigned long long), sizeof(unsigned long long));
+ memcpy(aligned, buf + j * sizeof(unsigned long long), sizeof(unsigned long long));
fprintf(stdout, " %29llu\n", *((unsigned long long *)aligned));
break;
case FLT_FLOAT:
- HDmemcpy(aligned, buf + j * sizeof(float), sizeof(float));
+ memcpy(aligned, buf + j * sizeof(float), sizeof(float));
printf(" %29f\n", (double)*((float *)aligned));
break;
case FLT_DOUBLE:
- HDmemcpy(aligned, buf + j * sizeof(double), sizeof(double));
+ memcpy(aligned, buf + j * sizeof(double), sizeof(double));
printf(" %29f\n", *((double *)aligned));
break;
case FLT_LDOUBLE:
- HDmemcpy(aligned, buf + j * sizeof(long double), sizeof(long double));
+ memcpy(aligned, buf + j * sizeof(long double), sizeof(long double));
printf(" %29Lf\n", *((long double *)aligned));
break;
case OTHER:
@@ -4540,8 +4540,8 @@ overflows(unsigned char *origin_bits, hid_t src_id, size_t dst_num_bits)
ssize_t indx;
unsigned char bits[32], mant_bits[32];
- HDmemset(bits, 0, (size_t)32);
- HDmemset(mant_bits, 0, (size_t)32);
+ memset(bits, 0, (size_t)32);
+ memset(mant_bits, 0, (size_t)32);
/*
* Sometimes, type size isn't equal to the precision like Linux's "long
@@ -4553,7 +4553,7 @@ overflows(unsigned char *origin_bits, hid_t src_id, size_t dst_num_bits)
bias = H5Tget_ebias(src_id);
norm = H5Tget_norm(src_id);
- HDmemcpy(bits, origin_bits, src_prec / 8 + 1);
+ memcpy(bits, origin_bits, src_prec / 8 + 1);
/*Check for special cases: +Inf, -Inf*/
if (H5T__bit_find(bits, mpos, mant_digits, H5T_BIT_LSB, TRUE) < 0) {
diff --git a/test/dtypes.c b/test/dtypes.c
index 77a9ecd..21a79a1 100644
--- a/test/dtypes.c
+++ b/test/dtypes.c
@@ -778,7 +778,7 @@ test_compound_2(void)
s_ptr->d = i * 8 + 6;
s_ptr->e = i * 8 + 7;
}
- HDmemcpy(buf, orig, nelmts * sizeof(struct st));
+ memcpy(buf, orig, nelmts * sizeof(struct st));
/* Build hdf5 datatypes */
array_dt = H5Tarray_create2(H5T_NATIVE_INT, 1, &four);
@@ -903,7 +903,7 @@ test_compound_3(void)
s_ptr->d = i * 8 + 6;
s_ptr->e = i * 8 + 7;
}
- HDmemcpy(buf, orig, nelmts * sizeof(struct st));
+ memcpy(buf, orig, nelmts * sizeof(struct st));
/* Build hdf5 datatypes */
array_dt = H5Tarray_create2(H5T_NATIVE_INT, 1, &four);
@@ -1028,7 +1028,7 @@ test_compound_4(void)
s_ptr->d = (i * 8 + 6) & 0x7fff;
s_ptr->e = i * 8 + 7;
}
- HDmemcpy(buf, orig, nelmts * sizeof(struct st));
+ memcpy(buf, orig, nelmts * sizeof(struct st));
/* Build hdf5 datatypes */
array_dt = H5Tarray_create2(H5T_NATIVE_INT, 1, &four);
@@ -1170,7 +1170,7 @@ test_compound_5(void)
H5Tinsert(dst_type, "coll_ids", HOFFSET(dst_type_t, coll_ids), int_array);
/* Convert data */
- HDmemcpy(buf, src, sizeof(src));
+ memcpy(buf, src, sizeof(src));
H5Tconvert(src_type, dst_type, (size_t)2, buf, bkg, H5P_DEFAULT);
dst = (dst_type_t *)buf;
@@ -1182,7 +1182,7 @@ test_compound_5(void)
H5Tclose(int_array);
/* Check results */
- if (HDmemcmp(src[1].name, dst[1].name, sizeof(src[1].name)) != 0 || src[1].tdim != dst[1].tdim ||
+ if (memcmp(src[1].name, dst[1].name, sizeof(src[1].name)) != 0 || src[1].tdim != dst[1].tdim ||
src[1].coll_ids[0] != dst[1].coll_ids[0] || src[1].coll_ids[1] != dst[1].coll_ids[1] ||
src[1].coll_ids[2] != dst[1].coll_ids[2] || src[1].coll_ids[3] != dst[1].coll_ids[3]) {
H5_FAILED();
@@ -1246,7 +1246,7 @@ test_compound_6(void)
s_ptr->b = (int16_t)((i * 8 + 1) & 0x7fff);
s_ptr->d = (int16_t)((i * 8 + 6) & 0x7fff);
}
- HDmemcpy(buf, orig, nelmts * sizeof(struct st));
+ memcpy(buf, orig, nelmts * sizeof(struct st));
/* Build hdf5 datatypes */
if ((st = H5Tcreate(H5T_COMPOUND, sizeof(struct st))) < 0 ||
@@ -2268,7 +2268,7 @@ test_compound_11(void)
} /* end for */
/* Make copy of buffer before conversion */
- HDmemcpy(buf_orig, buf, sizeof(big_t) * NTESTELEM);
+ memcpy(buf_orig, buf, sizeof(big_t) * NTESTELEM);
dim[0] = NTESTELEM;
if ((space_id = H5Screate_simple(1, dim, NULL)) < 0) {
@@ -2335,7 +2335,7 @@ test_compound_11(void)
TEST_ERROR;
/* Recover the original buffer information */
- HDmemcpy(buf, buf_orig, sizeof(big_t) * NTESTELEM);
+ memcpy(buf, buf_orig, sizeof(big_t) * NTESTELEM);
/* Convert buffer from 'big' to 'little' struct */
if (H5Tconvert(big_tid, little_tid, (size_t)NTESTELEM, buf, bkg, H5P_DEFAULT) < 0)
@@ -2376,7 +2376,7 @@ test_compound_11(void)
TEST_ERROR;
/* Recover the original buffer information */
- HDmemcpy(buf, buf_orig, sizeof(big_t) * NTESTELEM);
+ memcpy(buf, buf_orig, sizeof(big_t) * NTESTELEM);
/* Convert buffer from 'big' to 'little' struct */
if (H5Tconvert(big_tid, little_tid, (size_t)NTESTELEM, buf, bkg, H5P_DEFAULT) < 0)
@@ -2568,7 +2568,7 @@ test_compound_13(void)
TESTING("compound datatypes of boundary size with latest format");
/* Create some phony data. */
- HDmemset(&data_out, 0, sizeof(data_out));
+ memset(&data_out, 0, sizeof(data_out));
for (u = 0; u < COMPOUND13_ARRAY_SIZE + 1; u++)
data_out.x[u] = (unsigned char)u;
data_out.y = 99.99F;
@@ -4646,17 +4646,17 @@ test_conv_str_1(void)
goto error;
if (NULL == (buf = (char *)calloc((size_t)2, (size_t)10)))
goto error;
- HDmemcpy(buf, "abcdefghi\0abcdefghi\0", (size_t)20);
+ memcpy(buf, "abcdefghi\0abcdefghi\0", (size_t)20);
if (H5Tconvert(src_type, dst_type, (size_t)2, buf, NULL, H5P_DEFAULT) < 0)
goto error;
- if (HDmemcmp(buf, "abcd\0abcd\0abcdefghi\0", (size_t)20) != 0) {
+ if (memcmp(buf, "abcd\0abcd\0abcdefghi\0", (size_t)20) != 0) {
H5_FAILED();
HDputs(" Truncated C-string test failed");
goto error;
}
if (H5Tconvert(dst_type, src_type, (size_t)2, buf, NULL, H5P_DEFAULT) < 0)
goto error;
- if (HDmemcmp(buf, "abcd\0\0\0\0\0\0abcd\0\0\0\0\0\0", (size_t)20) != 0) {
+ if (memcmp(buf, "abcd\0\0\0\0\0\0abcd\0\0\0\0\0\0", (size_t)20) != 0) {
H5_FAILED();
HDputs(" Extended C-string test failed");
goto error;
@@ -4677,17 +4677,17 @@ test_conv_str_1(void)
goto error;
if (NULL == (buf = (char *)calloc((size_t)2, (size_t)10)))
goto error;
- HDmemcpy(buf, "abcdefghijabcdefghij", (size_t)20);
+ memcpy(buf, "abcdefghijabcdefghij", (size_t)20);
if (H5Tconvert(src_type, dst_type, (size_t)2, buf, NULL, H5P_DEFAULT) < 0)
goto error;
- if (HDmemcmp(buf, "abcdeabcdeabcdefghij", (size_t)20) != 0) {
+ if (memcmp(buf, "abcdeabcdeabcdefghij", (size_t)20) != 0) {
H5_FAILED();
HDputs(" Truncated C buffer test failed");
goto error;
}
if (H5Tconvert(dst_type, src_type, (size_t)2, buf, NULL, H5P_DEFAULT) < 0)
goto error;
- if (HDmemcmp(buf, "abcde\0\0\0\0\0abcde\0\0\0\0\0", (size_t)20) != 0) {
+ if (memcmp(buf, "abcde\0\0\0\0\0abcde\0\0\0\0\0", (size_t)20) != 0) {
H5_FAILED();
HDputs(" Extended C buffer test failed");
goto error;
@@ -4708,17 +4708,17 @@ test_conv_str_1(void)
goto error;
if (NULL == (buf = (char *)calloc((size_t)2, (size_t)10)))
goto error;
- HDmemcpy(buf, "abcdefghijabcdefghij", (size_t)20);
+ memcpy(buf, "abcdefghijabcdefghij", (size_t)20);
if (H5Tconvert(src_type, dst_type, (size_t)2, buf, NULL, H5P_DEFAULT) < 0)
goto error;
- if (HDmemcmp(buf, "abcdeabcdeabcdefghij", (size_t)20) != 0) {
+ if (memcmp(buf, "abcdeabcdeabcdefghij", (size_t)20) != 0) {
H5_FAILED();
HDputs(" Truncated Fortran-string test failed");
goto error;
}
if (H5Tconvert(dst_type, src_type, (size_t)2, buf, NULL, H5P_DEFAULT) < 0)
goto error;
- if (HDmemcmp(buf, "abcde abcde ", (size_t)20) != 0) {
+ if (memcmp(buf, "abcde abcde ", (size_t)20) != 0) {
H5_FAILED();
HDputs(" Extended Fortran-string test failed");
goto error;
@@ -4742,10 +4742,10 @@ test_conv_str_1(void)
goto error;
if (NULL == (buf = (char *)calloc((size_t)2, (size_t)10)))
goto error;
- HDmemcpy(buf, "abcdefghijabcdefghij", (size_t)20);
+ memcpy(buf, "abcdefghijabcdefghij", (size_t)20);
if (H5Tconvert(src_type, dst_type, (size_t)2, buf, NULL, H5P_DEFAULT) < 0)
goto error;
- if (HDmemcmp(buf, "abcdefghijabcdefghij", (size_t)20) != 0) {
+ if (memcmp(buf, "abcdefghijabcdefghij", (size_t)20) != 0) {
H5_FAILED();
HDputs(" Non-terminated string test 1");
goto error;
@@ -4753,18 +4753,18 @@ test_conv_str_1(void)
H5Tclose(dst_type);
if ((dst_type = mkstr((size_t)5, H5T_STR_NULLTERM)) < 0)
goto error;
- HDmemcpy(buf, "abcdefghijabcdefghij", (size_t)20);
+ memcpy(buf, "abcdefghijabcdefghij", (size_t)20);
if (H5Tconvert(src_type, dst_type, (size_t)2, buf, NULL, H5P_DEFAULT) < 0)
goto error;
- if (HDmemcmp(buf, "abcd\0abcd\0abcdefghij", (size_t)20) != 0) {
+ if (memcmp(buf, "abcd\0abcd\0abcdefghij", (size_t)20) != 0) {
H5_FAILED();
HDputs(" Non-terminated string test 2");
goto error;
}
- HDmemcpy(buf, "abcdeabcdexxxxxxxxxx", (size_t)20);
+ memcpy(buf, "abcdeabcdexxxxxxxxxx", (size_t)20);
if (H5Tconvert(dst_type, src_type, (size_t)2, buf, NULL, H5P_DEFAULT) < 0)
goto error;
- if (HDmemcmp(buf, "abcde\0\0\0\0\0abcde\0\0\0\0\0", (size_t)20) != 0) {
+ if (memcmp(buf, "abcde\0\0\0\0\0abcde\0\0\0\0\0", (size_t)20) != 0) {
H5_FAILED();
HDputs(" Non-terminated string test 2");
goto error;
@@ -4785,17 +4785,17 @@ test_conv_str_1(void)
goto error;
if (NULL == (buf = (char *)calloc((size_t)2, (size_t)10)))
goto error;
- HDmemcpy(buf, "abcdefghi\0abcdefghi\0", (size_t)20);
+ memcpy(buf, "abcdefghi\0abcdefghi\0", (size_t)20);
if (H5Tconvert(src_type, dst_type, (size_t)2, buf, NULL, H5P_DEFAULT) < 0)
goto error;
- if (HDmemcmp(buf, "abcdefghi abcdefghi ", (size_t)20) != 0) {
+ if (memcmp(buf, "abcdefghi abcdefghi ", (size_t)20) != 0) {
H5_FAILED();
HDputs(" C string to Fortran test 1");
goto error;
}
if (H5Tconvert(dst_type, src_type, (size_t)2, buf, NULL, H5P_DEFAULT) < 0)
goto error;
- if (HDmemcmp(buf, "abcdefghi\0abcdefghi\0", (size_t)20) != 0) {
+ if (memcmp(buf, "abcdefghi\0abcdefghi\0", (size_t)20) != 0) {
H5_FAILED();
HDputs(" Fortran to C string test 1");
goto error;
@@ -4804,17 +4804,17 @@ test_conv_str_1(void)
goto error;
if ((dst_type = mkstr((size_t)5, H5T_STR_SPACEPAD)) < 0)
goto error;
- HDmemcpy(buf, "abcdefgh\0\0abcdefgh\0\0", (size_t)20);
+ memcpy(buf, "abcdefgh\0\0abcdefgh\0\0", (size_t)20);
if (H5Tconvert(src_type, dst_type, (size_t)2, buf, NULL, H5P_DEFAULT) < 0)
goto error;
- if (HDmemcmp(buf, "abcdeabcdeabcdefgh\0\0", (size_t)20) != 0) {
+ if (memcmp(buf, "abcdeabcdeabcdefgh\0\0", (size_t)20) != 0) {
H5_FAILED();
HDputs(" C string to Fortran test 2");
goto error;
}
if (H5Tconvert(dst_type, src_type, (size_t)2, buf, NULL, H5P_DEFAULT) < 0)
goto error;
- if (HDmemcmp(buf, "abcde\0\0\0\0\0abcde\0\0\0\0\0", (size_t)20) != 0) {
+ if (memcmp(buf, "abcde\0\0\0\0\0abcde\0\0\0\0\0", (size_t)20) != 0) {
H5_FAILED();
HDputs(" Fortran to C string test 2");
goto error;
@@ -4827,17 +4827,17 @@ test_conv_str_1(void)
goto error;
if ((dst_type = mkstr((size_t)10, H5T_STR_SPACEPAD)) < 0)
goto error;
- HDmemcpy(buf, "abcd\0abcd\0xxxxxxxxxx", (size_t)20);
+ memcpy(buf, "abcd\0abcd\0xxxxxxxxxx", (size_t)20);
if (H5Tconvert(src_type, dst_type, (size_t)2, buf, NULL, H5P_DEFAULT) < 0)
goto error;
- if (HDmemcmp(buf, "abcd abcd ", (size_t)20) != 0) {
+ if (memcmp(buf, "abcd abcd ", (size_t)20) != 0) {
H5_FAILED();
HDputs(" C string to Fortran test 3");
goto error;
}
if (H5Tconvert(dst_type, src_type, (size_t)2, buf, NULL, H5P_DEFAULT) < 0)
goto error;
- if (HDmemcmp(buf, "abcd\0abcd\0abcd ", (size_t)20) != 0) {
+ if (memcmp(buf, "abcd\0abcd\0abcd ", (size_t)20) != 0) {
H5_FAILED();
HDputs(" Fortran to C string test 3");
goto error;
@@ -4858,17 +4858,17 @@ test_conv_str_1(void)
goto error;
if (NULL == (buf = (char *)calloc((size_t)2, (size_t)10)))
goto error;
- HDmemcpy(buf, "abcdefghijabcdefghij", (size_t)20);
+ memcpy(buf, "abcdefghijabcdefghij", (size_t)20);
if (H5Tconvert(src_type, dst_type, (size_t)2, buf, NULL, H5P_DEFAULT) < 0)
goto error;
- if (HDmemcmp(buf, "abcdefghijabcdefghij", (size_t)20) != 0) {
+ if (memcmp(buf, "abcdefghijabcdefghij", (size_t)20) != 0) {
H5_FAILED();
HDputs(" C buffer to Fortran test 1");
goto error;
}
if (H5Tconvert(dst_type, src_type, (size_t)2, buf, NULL, H5P_DEFAULT) < 0)
goto error;
- if (HDmemcmp(buf, "abcdefghijabcdefghij", (size_t)20) != 0) {
+ if (memcmp(buf, "abcdefghijabcdefghij", (size_t)20) != 0) {
H5_FAILED();
HDputs(" Fortran to C buffer test 1");
goto error;
@@ -4877,17 +4877,17 @@ test_conv_str_1(void)
goto error;
if ((dst_type = mkstr((size_t)5, H5T_STR_SPACEPAD)) < 0)
goto error;
- HDmemcpy(buf, "abcdefgh\0\0abcdefgh\0\0", (size_t)20);
+ memcpy(buf, "abcdefgh\0\0abcdefgh\0\0", (size_t)20);
if (H5Tconvert(src_type, dst_type, (size_t)2, buf, NULL, H5P_DEFAULT) < 0)
goto error;
- if (HDmemcmp(buf, "abcdeabcdeabcdefgh\0\0", (size_t)20) != 0) {
+ if (memcmp(buf, "abcdeabcdeabcdefgh\0\0", (size_t)20) != 0) {
H5_FAILED();
HDputs(" C buffer to Fortran test 2");
goto error;
}
if (H5Tconvert(dst_type, src_type, (size_t)2, buf, NULL, H5P_DEFAULT) < 0)
goto error;
- if (HDmemcmp(buf, "abcde\0\0\0\0\0abcde\0\0\0\0\0", (size_t)20) != 0) {
+ if (memcmp(buf, "abcde\0\0\0\0\0abcde\0\0\0\0\0", (size_t)20) != 0) {
H5_FAILED();
HDputs(" Fortran to C buffer test 2");
goto error;
@@ -4900,17 +4900,17 @@ test_conv_str_1(void)
goto error;
if ((dst_type = mkstr((size_t)10, H5T_STR_SPACEPAD)) < 0)
goto error;
- HDmemcpy(buf, "abcd\0abcd\0xxxxxxxxxx", (size_t)20);
+ memcpy(buf, "abcd\0abcd\0xxxxxxxxxx", (size_t)20);
if (H5Tconvert(src_type, dst_type, (size_t)2, buf, NULL, H5P_DEFAULT) < 0)
goto error;
- if (HDmemcmp(buf, "abcd abcd ", (size_t)20) != 0) {
+ if (memcmp(buf, "abcd abcd ", (size_t)20) != 0) {
H5_FAILED();
HDputs(" C buffer to Fortran test 3");
goto error;
}
if (H5Tconvert(dst_type, src_type, (size_t)2, buf, NULL, H5P_DEFAULT) < 0)
goto error;
- if (HDmemcmp(buf, "abcd\0abcd\0abcd ", (size_t)20) != 0) {
+ if (memcmp(buf, "abcd\0abcd\0abcd ", (size_t)20) != 0) {
H5_FAILED();
HDputs(" Fortran to C buffer test 3");
goto error;
@@ -5699,7 +5699,7 @@ opaque_long(void)
/* Create long tag */
if (NULL == (long_tag = (char *)malloc((size_t)(16384 + 1))))
TEST_ERROR;
- HDmemset(long_tag, 'a', (size_t)16384);
+ memset(long_tag, 'a', (size_t)16384);
long_tag[16384] = '\0';
/* Set opaque type's tag */
@@ -6696,7 +6696,7 @@ test_int_float_except(void)
TEST_ERROR;
/* Convert buffer */
- HDmemset(&e, 0, sizeof(except_info_t));
+ memset(&e, 0, sizeof(except_info_t));
if (H5Tconvert(H5T_NATIVE_FLOAT, H5T_NATIVE_INT, (size_t)CONVERT_SIZE, buf, NULL, dxpl) < 0)
TEST_ERROR;
@@ -6720,7 +6720,7 @@ test_int_float_except(void)
TEST_ERROR;
/* Convert buffer */
- HDmemset(&e, 0, sizeof(except_info_t));
+ memset(&e, 0, sizeof(except_info_t));
if (H5Tconvert(H5T_NATIVE_INT, H5T_NATIVE_FLOAT, (size_t)CONVERT_SIZE, buf, NULL, dxpl) < 0)
TEST_ERROR;
@@ -6746,7 +6746,7 @@ test_int_float_except(void)
/* Work on second buffer */
/* Convert second buffer */
- HDmemset(&e, 0, sizeof(except_info_t));
+ memset(&e, 0, sizeof(except_info_t));
if (H5Tconvert(H5T_NATIVE_INT, H5T_NATIVE_FLOAT, (size_t)CONVERT_SIZE, buf2, NULL, dxpl) < 0)
TEST_ERROR;
@@ -6770,7 +6770,7 @@ test_int_float_except(void)
TEST_ERROR;
/* Convert buffer */
- HDmemset(&e, 0, sizeof(except_info_t));
+ memset(&e, 0, sizeof(except_info_t));
if (H5Tconvert(H5T_NATIVE_FLOAT, H5T_NATIVE_INT, (size_t)CONVERT_SIZE, buf2, NULL, dxpl) < 0)
TEST_ERROR;
diff --git a/test/earray.c b/test/earray.c
index 9fca6cd..8f5b2be 100644
--- a/test/earray.c
+++ b/test/earray.c
@@ -180,7 +180,7 @@ static int
init_cparam(H5EA_create_t *cparam)
{
/* Wipe out background */
- HDmemset(cparam, 0, sizeof(*cparam));
+ memset(cparam, 0, sizeof(*cparam));
/* General parameters */
cparam->cls = H5EA_CLS_TEST;
@@ -214,7 +214,7 @@ init_tparam(earray_test_param_t *tparam, const H5EA_create_t *cparam)
size_t u; /* Local index variable */
/* Wipe out background */
- HDmemset(tparam, 0, sizeof(*tparam));
+ memset(tparam, 0, sizeof(*tparam));
/* Compute general information */
tparam->nsblks = 1 + (cparam->max_nelmts_bits - H5VM_log2_of2(cparam->data_blk_min_elmts));
@@ -467,7 +467,7 @@ create_array(H5F_t *f, const H5EA_create_t *cparam, H5EA_t **ea, haddr_t *ea_add
FAIL_STACK_ERROR;
if (!H5_addr_defined(*ea_addr))
TEST_ERROR;
- HDmemset(&state, 0, sizeof(state));
+ memset(&state, 0, sizeof(state));
state.hdr_size = EA_HDR_SIZE;
if (check_stats(*ea, &state))
TEST_ERROR;
@@ -495,7 +495,7 @@ verify_cparam(const H5EA_t *ea, const H5EA_create_t *cparam)
H5EA_create_t test_cparam; /* Creation parameters for array */
/* Retrieve creation parameters */
- HDmemset(&test_cparam, 0, sizeof(H5EA_create_t));
+ memset(&test_cparam, 0, sizeof(H5EA_create_t));
if (H5EA__get_cparam_test(ea, &test_cparam) < 0)
FAIL_STACK_ERROR;
@@ -585,7 +585,7 @@ test_create(hid_t fapl, H5EA_create_t *cparam, earray_test_param_t H5_ATTR_UNUSE
H5EA_create_t test_cparam; /* Creation parameters for array */
/* Set invalid element size */
- HDmemcpy(&test_cparam, cparam, sizeof(test_cparam));
+ memcpy(&test_cparam, cparam, sizeof(test_cparam));
test_cparam.raw_elmt_size = 0;
H5E_BEGIN_TRY
{
@@ -602,7 +602,7 @@ test_create(hid_t fapl, H5EA_create_t *cparam, earray_test_param_t H5_ATTR_UNUSE
} /* end if */
/* Set invalid max. # of elements bits */
- HDmemcpy(&test_cparam, cparam, sizeof(test_cparam));
+ memcpy(&test_cparam, cparam, sizeof(test_cparam));
test_cparam.max_nelmts_bits = 0;
H5E_BEGIN_TRY
{
@@ -618,7 +618,7 @@ test_create(hid_t fapl, H5EA_create_t *cparam, earray_test_param_t H5_ATTR_UNUSE
TEST_ERROR;
} /* end if */
- HDmemcpy(&test_cparam, cparam, sizeof(test_cparam));
+ memcpy(&test_cparam, cparam, sizeof(test_cparam));
test_cparam.max_nelmts_bits = 65;
H5E_BEGIN_TRY
{
@@ -635,7 +635,7 @@ test_create(hid_t fapl, H5EA_create_t *cparam, earray_test_param_t H5_ATTR_UNUSE
} /* end if */
/* Set invalid min. # of data block pointers in super blocks */
- HDmemcpy(&test_cparam, cparam, sizeof(test_cparam));
+ memcpy(&test_cparam, cparam, sizeof(test_cparam));
test_cparam.sup_blk_min_data_ptrs = 0;
H5E_BEGIN_TRY
{
@@ -650,7 +650,7 @@ test_create(hid_t fapl, H5EA_create_t *cparam, earray_test_param_t H5_ATTR_UNUSE
/* Indicate error */
TEST_ERROR;
} /* end if */
- HDmemcpy(&test_cparam, cparam, sizeof(test_cparam));
+ memcpy(&test_cparam, cparam, sizeof(test_cparam));
test_cparam.sup_blk_min_data_ptrs = 1;
H5E_BEGIN_TRY
{
@@ -665,7 +665,7 @@ test_create(hid_t fapl, H5EA_create_t *cparam, earray_test_param_t H5_ATTR_UNUSE
/* Indicate error */
TEST_ERROR;
} /* end if */
- HDmemcpy(&test_cparam, cparam, sizeof(test_cparam));
+ memcpy(&test_cparam, cparam, sizeof(test_cparam));
test_cparam.sup_blk_min_data_ptrs = 6;
H5E_BEGIN_TRY
{
@@ -682,7 +682,7 @@ test_create(hid_t fapl, H5EA_create_t *cparam, earray_test_param_t H5_ATTR_UNUSE
} /* end if */
/* Set invalid min. # of elements per data block */
- HDmemcpy(&test_cparam, cparam, sizeof(test_cparam));
+ memcpy(&test_cparam, cparam, sizeof(test_cparam));
test_cparam.data_blk_min_elmts = 0;
H5E_BEGIN_TRY
{
@@ -700,7 +700,7 @@ test_create(hid_t fapl, H5EA_create_t *cparam, earray_test_param_t H5_ATTR_UNUSE
/* Set invalid max. # of elements per data block page bits */
if (test_cparam.idx_blk_elmts > 0) {
- HDmemcpy(&test_cparam, cparam, sizeof(test_cparam));
+ memcpy(&test_cparam, cparam, sizeof(test_cparam));
test_cparam.max_dblk_page_nelmts_bits =
(uint8_t)(H5VM_log2_gen((uint64_t)test_cparam.idx_blk_elmts) - 1);
H5E_BEGIN_TRY
@@ -717,7 +717,7 @@ test_create(hid_t fapl, H5EA_create_t *cparam, earray_test_param_t H5_ATTR_UNUSE
TEST_ERROR;
} /* end if */
} /* end if */
- HDmemcpy(&test_cparam, cparam, sizeof(test_cparam));
+ memcpy(&test_cparam, cparam, sizeof(test_cparam));
test_cparam.max_dblk_page_nelmts_bits = 4; /* corresponds to 16 elements in data block page, which is
less than the 64 elements for the default settings */
H5E_BEGIN_TRY
@@ -733,7 +733,7 @@ test_create(hid_t fapl, H5EA_create_t *cparam, earray_test_param_t H5_ATTR_UNUSE
/* Indicate error */
TEST_ERROR;
} /* end if */
- HDmemcpy(&test_cparam, cparam, sizeof(test_cparam));
+ memcpy(&test_cparam, cparam, sizeof(test_cparam));
test_cparam.max_dblk_page_nelmts_bits = (uint8_t)(test_cparam.max_nelmts_bits + 1);
H5E_BEGIN_TRY
{
@@ -2005,7 +2005,7 @@ test_set_elmts(hid_t fapl, H5EA_create_t *cparam, earray_test_param_t *tparam, h
TEST_ERROR;
/* Verify array state */
- HDmemset(&state, 0, sizeof(state));
+ memset(&state, 0, sizeof(state));
state.hdr_size = EA_HDR_SIZE;
if (check_stats(ea, &state))
TEST_ERROR;
@@ -2176,7 +2176,7 @@ test_skip_elmts(hid_t fapl, H5EA_create_t *cparam, earray_test_param_t *tparam,
TEST_ERROR;
/* Verify array state */
- HDmemset(&state, 0, sizeof(state));
+ memset(&state, 0, sizeof(state));
state.hdr_size = EA_HDR_SIZE;
if (check_stats(ea, &state))
TEST_ERROR;
@@ -2206,7 +2206,7 @@ test_skip_elmts(hid_t fapl, H5EA_create_t *cparam, earray_test_param_t *tparam,
TEST_ERROR;
/* Set array state */
- HDmemset(&state, 0, sizeof(state));
+ memset(&state, 0, sizeof(state));
state.hdr_size = EA_HDR_SIZE;
state.nindex_blks = 1;
state.index_blk_size = EA_IBLOCK_SIZE;
diff --git a/test/evict_on_close.c b/test/evict_on_close.c
index 20ce3d1..feebb08 100644
--- a/test/evict_on_close.c
+++ b/test/evict_on_close.c
@@ -183,7 +183,7 @@ generate_eoc_test_file(hid_t fapl_id)
char subgroup_name[SUBGROUP_NAME_SIZE];
/* Create the group name */
- HDmemset(subgroup_name, '\0', SUBGROUP_NAME_SIZE);
+ memset(subgroup_name, '\0', SUBGROUP_NAME_SIZE);
if (HDsnprintf(subgroup_name, (size_t)(SUBGROUP_NAME_SIZE - 1), "%d", i) < 0)
TEST_ERROR;
@@ -278,7 +278,7 @@ generate_eoc_test_file(hid_t fapl_id)
char subgroup_name[SUBGROUP_NAME_SIZE];
/* Create the group name */
- HDmemset(subgroup_name, '\0', SUBGROUP_NAME_SIZE);
+ memset(subgroup_name, '\0', SUBGROUP_NAME_SIZE);
if (HDsnprintf(subgroup_name, (size_t)(SUBGROUP_NAME_SIZE - 1), "%d", i) < 0)
TEST_ERROR;
@@ -619,7 +619,7 @@ check_group_layout(hid_t fid, const char *group_name)
char subgroup_name[SUBGROUP_NAME_SIZE];
/* Create the group name */
- HDmemset(subgroup_name, '\0', SUBGROUP_NAME_SIZE);
+ memset(subgroup_name, '\0', SUBGROUP_NAME_SIZE);
if (HDsnprintf(subgroup_name, (size_t)(SUBGROUP_NAME_SIZE - 1), "%d", i) < 0)
TEST_ERROR;
diff --git a/test/external.c b/test/external.c
index 9bb2da3..cc0d262 100644
--- a/test/external.c
+++ b/test/external.c
@@ -47,8 +47,8 @@ files_have_same_contents(const char *name1, const char *name2)
/* Loop until files are empty or we encounter a problem */
while (1) {
- HDmemset(buf1, 0, sizeof(buf1));
- HDmemset(buf2, 0, sizeof(buf2));
+ memset(buf1, 0, sizeof(buf1));
+ memset(buf2, 0, sizeof(buf2));
n1 = HDread(fd1, buf1, sizeof(buf1));
if (n1 < 0 || (size_t)n1 > sizeof(buf1))
@@ -65,7 +65,7 @@ files_have_same_contents(const char *name1, const char *name2)
break;
}
- if (HDmemcmp(buf1, buf2, (size_t)n1) != 0)
+ if (memcmp(buf1, buf2, (size_t)n1) != 0)
break;
} /* end while */
@@ -720,7 +720,7 @@ test_read_file_set(hid_t fapl)
FAIL_STACK_ERROR;
/* Read the entire dataset */
- HDmemset(whole, 0, sizeof(whole));
+ memset(whole, 0, sizeof(whole));
if (H5Dread(dset, H5T_NATIVE_INT, space, space, H5P_DEFAULT, whole) < 0)
FAIL_STACK_ERROR;
@@ -738,7 +738,7 @@ test_read_file_set(hid_t fapl)
FAIL_STACK_ERROR;
/* Read */
- HDmemset(whole, 0, sizeof(whole));
+ memset(whole, 0, sizeof(whole));
if (H5Dread(dset, H5T_NATIVE_INT, hs_space, hs_space, H5P_DEFAULT, whole) < 0)
FAIL_STACK_ERROR;
@@ -962,7 +962,7 @@ test_path_absolute(hid_t fapl)
FAIL_STACK_ERROR;
/* Read the entire dataset and compare with the original */
- HDmemset(whole, 0, sizeof(whole));
+ memset(whole, 0, sizeof(whole));
if (H5Dread(dset, H5T_NATIVE_INT, space, space, H5P_DEFAULT, whole) < 0)
FAIL_STACK_ERROR;
for (i = 0; i < TOTAL_SIZE; i++)
@@ -1049,7 +1049,7 @@ test_path_relative(hid_t fapl)
FAIL_STACK_ERROR;
/* Read the entire dataset and compare with the original */
- HDmemset(whole, 0, sizeof(whole));
+ memset(whole, 0, sizeof(whole));
if (H5Dread(dset, H5T_NATIVE_INT, space, space, H5P_DEFAULT, whole) < 0)
FAIL_STACK_ERROR;
for (i = 0; i < TOTAL_SIZE; i++)
@@ -1170,7 +1170,7 @@ test_path_relative_cwd(hid_t fapl)
FAIL_PUTS_ERROR("reopening the dataset with a different efile_prefix succeeded");
/* Read the entire dataset and compare with the original */
- HDmemset(whole, 0, sizeof(whole));
+ memset(whole, 0, sizeof(whole));
if (H5Dread(dset, H5T_NATIVE_INT, space, space, H5P_DEFAULT, whole) < 0)
FAIL_STACK_ERROR;
for (i = 0; i < TOTAL_SIZE; i++)
@@ -1207,7 +1207,7 @@ test_path_relative_cwd(hid_t fapl)
FAIL_PUTS_ERROR("reopening the dataset with a different efile_prefix succeeded");
/* Read the entire dataset and compare with the original */
- HDmemset(whole, 0, sizeof(whole));
+ memset(whole, 0, sizeof(whole));
if (H5Dread(dset, H5T_NATIVE_INT, space, space, H5P_DEFAULT, whole) < 0)
FAIL_STACK_ERROR;
for (i = 0; i < TOTAL_SIZE; i++)
diff --git a/test/external_env.c b/test/external_env.c
index 07322a1..1a91c2a 100644
--- a/test/external_env.c
+++ b/test/external_env.c
@@ -91,7 +91,7 @@ test_path_env(hid_t fapl)
FAIL_STACK_ERROR;
/* Read the entire dataset and compare with the original */
- HDmemset(whole, 0, sizeof(whole));
+ memset(whole, 0, sizeof(whole));
if (H5Dread(dset, H5T_NATIVE_INT, space, space, H5P_DEFAULT, whole) < 0)
FAIL_STACK_ERROR;
for (i = 0; i < TOTAL_SIZE; i++)
diff --git a/test/farray.c b/test/farray.c
index 60571cd..a7a4125 100644
--- a/test/farray.c
+++ b/test/farray.c
@@ -116,7 +116,7 @@ static herr_t
init_cparam(H5FA_create_t *cparam, farray_test_param_t *tparam)
{
/* Wipe out background */
- HDmemset(cparam, 0, sizeof(*cparam));
+ memset(cparam, 0, sizeof(*cparam));
cparam->cls = H5FA_CLS_TEST;
cparam->raw_elmt_size = ELMT_SIZE;
@@ -320,7 +320,7 @@ create_array(H5F_t *f, const H5FA_create_t *cparam, H5FA_t **fa, haddr_t *fa_add
TEST_ERROR;
/* Check array stats */
- HDmemset(&state, 0, sizeof(state));
+ memset(&state, 0, sizeof(state));
state.hdr_size = FA_HDR_SIZE;
state.nelmts = cparam->nelmts;
if (check_stats(*fa, &state))
@@ -348,7 +348,7 @@ verify_cparam(const H5FA_t *fa, const H5FA_create_t *cparam)
H5FA_create_t test_cparam; /* Creation parameters for array */
/* Retrieve creation parameters */
- HDmemset(&test_cparam, 0, sizeof(H5FA_create_t));
+ memset(&test_cparam, 0, sizeof(H5FA_create_t));
if (H5FA__get_cparam_test(fa, &test_cparam) < 0)
FAIL_STACK_ERROR;
@@ -437,7 +437,7 @@ test_create(hid_t fapl, H5FA_create_t *cparam, farray_test_param_t H5_ATTR_UNUSE
H5FA_create_t test_cparam; /* Creation parameters for array */
/* Set invalid element size */
- HDmemcpy(&test_cparam, cparam, sizeof(test_cparam));
+ memcpy(&test_cparam, cparam, sizeof(test_cparam));
test_cparam.raw_elmt_size = 0;
H5E_BEGIN_TRY
{
@@ -454,7 +454,7 @@ test_create(hid_t fapl, H5FA_create_t *cparam, farray_test_param_t H5_ATTR_UNUSE
} /* end if */
/* Set invalid max. # of elements bits */
- HDmemcpy(&test_cparam, cparam, sizeof(test_cparam));
+ memcpy(&test_cparam, cparam, sizeof(test_cparam));
test_cparam.max_dblk_page_nelmts_bits = 0;
H5E_BEGIN_TRY
{
@@ -471,7 +471,7 @@ test_create(hid_t fapl, H5FA_create_t *cparam, farray_test_param_t H5_ATTR_UNUSE
} /* end if */
/* Set invalid max. # of elements */
- HDmemcpy(&test_cparam, cparam, sizeof(test_cparam));
+ memcpy(&test_cparam, cparam, sizeof(test_cparam));
test_cparam.nelmts = 0;
H5E_BEGIN_TRY
{
@@ -1380,7 +1380,7 @@ test_set_elmts(hid_t fapl, H5FA_create_t *cparam, farray_test_param_t *tparam, h
TEST_ERROR;
/* Verify array state */
- HDmemset(&state, 0, sizeof(state));
+ memset(&state, 0, sizeof(state));
state.hdr_size = FA_HDR_SIZE;
state.nelmts = cparam->nelmts;
state.dblk_size = 0;
@@ -1451,7 +1451,7 @@ test_set_elmts(hid_t fapl, H5FA_create_t *cparam, farray_test_param_t *tparam, h
} /* end for */
/* Verify array state */
- HDmemset(&state, 0, sizeof(state));
+ memset(&state, 0, sizeof(state));
set_fa_state(cparam, &state);
if (check_stats(fa, &state))
TEST_ERROR;
@@ -1535,7 +1535,7 @@ test_skip_elmts(hid_t fapl, H5FA_create_t *cparam, farray_test_param_t *tparam,
TEST_ERROR;
/* Verify array state */
- HDmemset(&state, 0, sizeof(state));
+ memset(&state, 0, sizeof(state));
state.hdr_size = FA_HDR_SIZE;
state.nelmts = cparam->nelmts;
state.dblk_size = 0;
@@ -1560,7 +1560,7 @@ test_skip_elmts(hid_t fapl, H5FA_create_t *cparam, farray_test_param_t *tparam,
FAIL_STACK_ERROR;
/* Verify array state */
- HDmemset(&state, 0, sizeof(state));
+ memset(&state, 0, sizeof(state));
set_fa_state(cparam, &state);
if (check_stats(fa, &state))
TEST_ERROR;
@@ -1671,7 +1671,7 @@ main(void)
for (curr_test = FARRAY_TEST_NORMAL; curr_test < FARRAY_TEST_NTESTS; curr_test++) {
/* Initialize the testing parameters */
- HDmemset(&tparam, 0, sizeof(tparam));
+ memset(&tparam, 0, sizeof(tparam));
tparam.nelmts = TEST_NELMTS;
/* Set appropriate testing parameters for each test */
diff --git a/test/fheap.c b/test/fheap.c
index ac99c77..b8c78da 100644
--- a/test/fheap.c
+++ b/test/fheap.c
@@ -189,7 +189,7 @@ static int
init_small_cparam(H5HF_create_t *cparam)
{
/* Wipe out background */
- HDmemset(cparam, 0, sizeof(H5HF_create_t));
+ memset(cparam, 0, sizeof(H5HF_create_t));
/* General parameters */
cparam->id_len = SMALL_ID_LEN;
@@ -222,7 +222,7 @@ static int
init_large_cparam(H5HF_create_t *cparam)
{
/* Wipe out background */
- HDmemset(cparam, 0, sizeof(H5HF_create_t));
+ memset(cparam, 0, sizeof(H5HF_create_t));
/* General parameters */
cparam->id_len = LARGE_ID_LEN;
@@ -323,7 +323,7 @@ static herr_t
op_memcpy(const void *obj, size_t obj_len, void *op_data)
{
/* Make copy of the object */
- HDmemcpy(op_data, obj, obj_len);
+ memcpy(op_data, obj, obj_len);
return (SUCCEED);
} /* op_memcpy() */
@@ -370,7 +370,7 @@ add_obj(H5HF_t *fh, size_t obj_off, size_t obj_size, fheap_heap_state_t *state,
TEST_ERROR;
/* Insert object */
- HDmemset(heap_id, 0, id_len);
+ memset(heap_id, 0, id_len);
if (H5HF_insert(fh, obj_size, obj, heap_id) < 0)
FAIL_STACK_ERROR;
@@ -405,7 +405,7 @@ add_obj(H5HF_t *fh, size_t obj_off, size_t obj_size, fheap_heap_state_t *state,
TEST_ERROR;
if (H5HF_read(fh, heap_id, shared_robj_g) < 0)
FAIL_STACK_ERROR;
- if (HDmemcmp(obj, shared_robj_g, obj_size) != 0)
+ if (memcmp(obj, shared_robj_g, obj_size) != 0)
TEST_ERROR;
/* If the heap IDs are to be retained, append them to the list */
@@ -432,7 +432,7 @@ add_obj(H5HF_t *fh, size_t obj_off, size_t obj_size, fheap_heap_state_t *state,
} /* end if */
/* Append the object info onto the array */
- HDmemcpy(&keep_ids->ids[keep_ids->num_ids * id_len], heap_id, id_len);
+ memcpy(&keep_ids->ids[keep_ids->num_ids * id_len], heap_id, id_len);
keep_ids->lens[keep_ids->num_ids] = obj_size;
keep_ids->offs[keep_ids->num_ids] = obj_off;
@@ -523,7 +523,7 @@ begin_test(fheap_test_param_t *tparam, const char *base_desc, fheap_heap_ids_t *
H5MM_xfree(test_desc);
/* Initialize the heap ID structure */
- HDmemset(keep_ids, 0, sizeof(fheap_heap_ids_t));
+ memset(keep_ids, 0, sizeof(fheap_heap_ids_t));
/* Retrieve "bulk" filling object size */
if (fill_size)
@@ -631,7 +631,7 @@ open_heap(char *filename, hid_t fapl, const H5HF_create_t *cparam, const fheap_t
FAIL_STACK_ERROR;
if (!H5_addr_defined(*fh_addr))
TEST_ERROR;
- HDmemset(state, 0, sizeof(fheap_heap_state_t));
+ memset(state, 0, sizeof(fheap_heap_state_t));
if (check_stats(*fh, state))
TEST_ERROR;
@@ -676,7 +676,7 @@ open_heap(char *filename, hid_t fapl, const H5HF_create_t *cparam, const fheap_t
FAIL_STACK_ERROR;
if (!H5_addr_defined(*fh_addr))
TEST_ERROR;
- HDmemset(state, 0, sizeof(fheap_heap_state_t));
+ memset(state, 0, sizeof(fheap_heap_state_t));
if (check_stats(*fh, state))
TEST_ERROR;
} /* end if */
@@ -942,7 +942,7 @@ del_objs(H5F_t *f, H5HF_t **fh, fheap_test_param_t *tparam, fheap_heap_state_t *
} /* end for */
/* Heap should be completely empty now, reset our state */
- HDmemset(state, 0, sizeof(fheap_heap_state_t));
+ memset(state, 0, sizeof(fheap_heap_state_t));
/* Check up on heap... */
if (check_stats(*fh, state))
@@ -1121,7 +1121,7 @@ fill_heap(H5HF_t *fh, unsigned block_row, size_t obj_size, fheap_heap_state_t *s
/* Check that object is correct */
wobj = &shared_wobj_g[*curr_off_ptr];
- if (HDmemcmp(wobj, shared_robj_g, *curr_len_ptr) != 0)
+ if (memcmp(wobj, shared_robj_g, *curr_len_ptr) != 0)
TEST_ERROR;
/* Adjust object & ID pointers */
@@ -1147,9 +1147,9 @@ fill_heap(H5HF_t *fh, unsigned block_row, size_t obj_size, fheap_heap_state_t *s
} /* end if */
/* Append the IDs onto the array */
- HDmemcpy(&keep_ids->ids[keep_ids->num_ids * id_len], shared_ids_g, (num_ids * id_len));
- HDmemcpy(&keep_ids->lens[keep_ids->num_ids], shared_lens_g, (num_ids * sizeof(size_t)));
- HDmemcpy(&keep_ids->offs[keep_ids->num_ids], shared_offs_g, (num_ids * sizeof(size_t)));
+ memcpy(&keep_ids->ids[keep_ids->num_ids * id_len], shared_ids_g, (num_ids * id_len));
+ memcpy(&keep_ids->lens[keep_ids->num_ids], shared_lens_g, (num_ids * sizeof(size_t)));
+ memcpy(&keep_ids->offs[keep_ids->num_ids], shared_offs_g, (num_ids * sizeof(size_t)));
/* Increment the number of IDs kept */
keep_ids->num_ids += num_ids;
@@ -1772,14 +1772,14 @@ test_create(hid_t fapl, H5HF_create_t *cparam, fheap_test_param_t *tparam)
FAIL_STACK_ERROR;
if (!H5_addr_defined(fh_addr))
TEST_ERROR;
- HDmemset(&state, 0, sizeof(fheap_heap_state_t));
+ memset(&state, 0, sizeof(fheap_heap_state_t));
if (check_stats(fh, &state))
TEST_ERROR;
PASSED();
/* Query the type of address mapping */
TESTING("query heap creation parameters");
- HDmemset(&test_cparam, 0, sizeof(H5HF_create_t));
+ memset(&test_cparam, 0, sizeof(H5HF_create_t));
if (H5HF_get_cparam_test(fh, &test_cparam) < 0)
FAIL_STACK_ERROR;
if (H5HF_cmp_cparam_test(cparam, &test_cparam))
@@ -1894,7 +1894,7 @@ test_reopen(hid_t fapl, H5HF_create_t *cparam, fheap_test_param_t *tparam)
FAIL_STACK_ERROR;
if (!H5_addr_defined(fh_addr))
TEST_ERROR;
- HDmemset(&state, 0, sizeof(fheap_heap_state_t));
+ memset(&state, 0, sizeof(fheap_heap_state_t));
if (check_stats(fh, &state))
TEST_ERROR;
@@ -1928,7 +1928,7 @@ test_reopen(hid_t fapl, H5HF_create_t *cparam, fheap_test_param_t *tparam)
FAIL_STACK_ERROR;
/* Query the creation parameters */
- HDmemset(&test_cparam, 0, sizeof(H5HF_create_t));
+ memset(&test_cparam, 0, sizeof(H5HF_create_t));
if (H5HF_get_cparam_test(fh, &test_cparam) < 0)
FAIL_STACK_ERROR;
if (H5HF_cmp_cparam_test(cparam, &test_cparam))
@@ -2046,7 +2046,7 @@ test_open_twice(hid_t fapl, H5HF_create_t *cparam, fheap_test_param_t *tparam)
FAIL_STACK_ERROR;
if (!H5_addr_defined(fh_addr))
TEST_ERROR;
- HDmemset(&state, 0, sizeof(fheap_heap_state_t));
+ memset(&state, 0, sizeof(fheap_heap_state_t));
if (check_stats(fh, &state))
TEST_ERROR;
@@ -2055,7 +2055,7 @@ test_open_twice(hid_t fapl, H5HF_create_t *cparam, fheap_test_param_t *tparam)
FAIL_STACK_ERROR;
/* Verify the creation parameters */
- HDmemset(&test_cparam, 0, sizeof(H5HF_create_t));
+ memset(&test_cparam, 0, sizeof(H5HF_create_t));
if (H5HF_get_cparam_test(fh2, &test_cparam) < 0)
FAIL_STACK_ERROR;
if (H5HF_cmp_cparam_test(cparam, &test_cparam))
@@ -2087,7 +2087,7 @@ test_open_twice(hid_t fapl, H5HF_create_t *cparam, fheap_test_param_t *tparam)
FAIL_STACK_ERROR;
/* Verify the creation parameters */
- HDmemset(&test_cparam, 0, sizeof(H5HF_create_t));
+ memset(&test_cparam, 0, sizeof(H5HF_create_t));
if (H5HF_get_cparam_test(fh2, &test_cparam) < 0)
FAIL_STACK_ERROR;
if (H5HF_cmp_cparam_test(cparam, &test_cparam))
@@ -2213,7 +2213,7 @@ test_delete_open(hid_t fapl, H5HF_create_t *cparam, fheap_test_param_t *tparam)
FAIL_STACK_ERROR;
if (!H5_addr_defined(fh_addr))
TEST_ERROR;
- HDmemset(&state, 0, sizeof(fheap_heap_state_t));
+ memset(&state, 0, sizeof(fheap_heap_state_t));
if (check_stats(fh, &state))
TEST_ERROR;
@@ -2226,7 +2226,7 @@ test_delete_open(hid_t fapl, H5HF_create_t *cparam, fheap_test_param_t *tparam)
FAIL_STACK_ERROR;
/* Verify the creation parameters */
- HDmemset(&test_cparam, 0, sizeof(H5HF_create_t));
+ memset(&test_cparam, 0, sizeof(H5HF_create_t));
if (H5HF_get_cparam_test(fh2, &test_cparam) < 0)
FAIL_STACK_ERROR;
if (H5HF_cmp_cparam_test(cparam, &test_cparam))
@@ -2365,7 +2365,7 @@ test_id_limits(hid_t fapl, H5HF_create_t *cparam, hid_t fcpl)
TESTING("limits of heap ID lengths");
/* Copy heap creation properties */
- HDmemcpy(&tmp_cparam, cparam, sizeof(H5HF_create_t));
+ memcpy(&tmp_cparam, cparam, sizeof(H5HF_create_t));
/* Set the 'default' heap ID length */
tmp_cparam.id_len = 0;
@@ -2698,7 +2698,7 @@ test_filtered_create(hid_t fapl, H5HF_create_t *cparam, hid_t fcpl)
TESTING("creating heaps with I/O filters");
/* Copy heap creation properties */
- HDmemcpy(&tmp_cparam, cparam, sizeof(H5HF_create_t));
+ memcpy(&tmp_cparam, cparam, sizeof(H5HF_create_t));
/* Set an I/O filter for heap data */
deflate_level = 6;
@@ -2741,7 +2741,7 @@ test_filtered_create(hid_t fapl, H5HF_create_t *cparam, hid_t fcpl)
FAIL_STACK_ERROR;
/* Query the heap creation parameters */
- HDmemset(&test_cparam, 0, sizeof(H5HF_create_t));
+ memset(&test_cparam, 0, sizeof(H5HF_create_t));
if (H5HF_get_cparam_test(fh, &test_cparam) < 0)
FAIL_STACK_ERROR;
if (H5HF_cmp_cparam_test(&tmp_cparam, &test_cparam))
@@ -3093,7 +3093,7 @@ test_man_insert_weird(hid_t fapl, H5HF_create_t *cparam, fheap_test_param_t *tpa
FAIL_STACK_ERROR;
if (!H5_addr_defined(fh_addr))
TEST_ERROR;
- HDmemset(&state, 0, sizeof(fheap_heap_state_t));
+ memset(&state, 0, sizeof(fheap_heap_state_t));
if (check_stats(fh, &state))
TEST_ERROR;
@@ -3203,7 +3203,7 @@ test_man_insert_first(hid_t fapl, H5HF_create_t *cparam, fheap_test_param_t *tpa
FAIL_STACK_ERROR;
if (!H5_addr_defined(fh_addr))
TEST_ERROR;
- HDmemset(&state, 0, sizeof(fheap_heap_state_t));
+ memset(&state, 0, sizeof(fheap_heap_state_t));
if (check_stats(fh, &state))
TEST_ERROR;
@@ -3301,7 +3301,7 @@ test_man_insert_second(hid_t fapl, H5HF_create_t *cparam, fheap_test_param_t *tp
FAIL_STACK_ERROR;
if (!H5_addr_defined(fh_addr))
FAIL_STACK_ERROR;
- HDmemset(&state, 0, sizeof(fheap_heap_state_t));
+ memset(&state, 0, sizeof(fheap_heap_state_t));
/*
* Test inserting first (small) object into absolute heap
@@ -3395,7 +3395,7 @@ test_man_insert_root_mult(hid_t fapl, H5HF_create_t *cparam, fheap_test_param_t
FAIL_STACK_ERROR;
if (!H5_addr_defined(fh_addr))
FAIL_STACK_ERROR;
- HDmemset(&state, 0, sizeof(fheap_heap_state_t));
+ memset(&state, 0, sizeof(fheap_heap_state_t));
/*
* Test inserting mult. (small) object into absolute heap
@@ -3491,7 +3491,7 @@ test_man_insert_force_indirect(hid_t fapl, H5HF_create_t *cparam, fheap_test_par
FAIL_STACK_ERROR;
if (!H5_addr_defined(fh_addr))
FAIL_STACK_ERROR;
- HDmemset(&state, 0, sizeof(fheap_heap_state_t));
+ memset(&state, 0, sizeof(fheap_heap_state_t));
/*
* Test forcing creation of indirect root block & second direct block
@@ -3594,7 +3594,7 @@ test_man_insert_fill_second(hid_t fapl, H5HF_create_t *cparam, fheap_test_param_
FAIL_STACK_ERROR;
if (!H5_addr_defined(fh_addr))
FAIL_STACK_ERROR;
- HDmemset(&state, 0, sizeof(fheap_heap_state_t));
+ memset(&state, 0, sizeof(fheap_heap_state_t));
/*
* Test inserting mult. (small) objects to fill second direct block
@@ -3698,7 +3698,7 @@ test_man_insert_third_direct(hid_t fapl, H5HF_create_t *cparam, fheap_test_param
FAIL_STACK_ERROR;
if (!H5_addr_defined(fh_addr))
FAIL_STACK_ERROR;
- HDmemset(&state, 0, sizeof(fheap_heap_state_t));
+ memset(&state, 0, sizeof(fheap_heap_state_t));
/*
* Test inserting mult. (small) objects to create third direct block
@@ -3806,7 +3806,7 @@ test_man_fill_first_row(hid_t fapl, H5HF_create_t *cparam, fheap_test_param_t *t
FAIL_STACK_ERROR;
if (!H5_addr_defined(fh_addr))
FAIL_STACK_ERROR;
- HDmemset(&state, 0, sizeof(fheap_heap_state_t));
+ memset(&state, 0, sizeof(fheap_heap_state_t));
/*
* Test inserting mult. (small) objects to fill first row in root indirect block
@@ -3899,7 +3899,7 @@ test_man_start_second_row(hid_t fapl, H5HF_create_t *cparam, fheap_test_param_t
FAIL_STACK_ERROR;
if (!H5_addr_defined(fh_addr))
FAIL_STACK_ERROR;
- HDmemset(&state, 0, sizeof(fheap_heap_state_t));
+ memset(&state, 0, sizeof(fheap_heap_state_t));
/*
* Test inserting mult. (small) objects to start second row in root indirect block
@@ -3999,7 +3999,7 @@ test_man_fill_second_row(hid_t fapl, H5HF_create_t *cparam, fheap_test_param_t *
FAIL_STACK_ERROR;
if (!H5_addr_defined(fh_addr))
FAIL_STACK_ERROR;
- HDmemset(&state, 0, sizeof(fheap_heap_state_t));
+ memset(&state, 0, sizeof(fheap_heap_state_t));
/*
* Test inserting mult. (small) objects to start second row in root indirect block
@@ -4097,7 +4097,7 @@ test_man_start_third_row(hid_t fapl, H5HF_create_t *cparam, fheap_test_param_t *
FAIL_STACK_ERROR;
if (!H5_addr_defined(fh_addr))
FAIL_STACK_ERROR;
- HDmemset(&state, 0, sizeof(fheap_heap_state_t));
+ memset(&state, 0, sizeof(fheap_heap_state_t));
/*
* Test inserting mult. (small) objects to start third row in root indirect block
@@ -4205,7 +4205,7 @@ test_man_fill_fourth_row(hid_t fapl, H5HF_create_t *cparam, fheap_test_param_t *
FAIL_STACK_ERROR;
if (!H5_addr_defined(fh_addr))
FAIL_STACK_ERROR;
- HDmemset(&state, 0, sizeof(fheap_heap_state_t));
+ memset(&state, 0, sizeof(fheap_heap_state_t));
/*
* Test inserting mult. (small) objects to fill four rows in root indirect block
@@ -4299,7 +4299,7 @@ test_man_fill_all_root_direct(hid_t fapl, H5HF_create_t *cparam, fheap_test_para
FAIL_STACK_ERROR;
if (!H5_addr_defined(fh_addr))
FAIL_STACK_ERROR;
- HDmemset(&state, 0, sizeof(fheap_heap_state_t));
+ memset(&state, 0, sizeof(fheap_heap_state_t));
/*
* Test inserting mult. (small) objects to fill all direct rows in root indirect block
@@ -4392,7 +4392,7 @@ test_man_first_recursive_indirect(hid_t fapl, H5HF_create_t *cparam, fheap_test_
FAIL_STACK_ERROR;
if (!H5_addr_defined(fh_addr))
FAIL_STACK_ERROR;
- HDmemset(&state, 0, sizeof(fheap_heap_state_t));
+ memset(&state, 0, sizeof(fheap_heap_state_t));
/*
* Test inserting mult. (small) objects to force creation of first recursive indirect block
@@ -4491,7 +4491,7 @@ test_man_second_direct_recursive_indirect(hid_t fapl, H5HF_create_t *cparam, fhe
FAIL_STACK_ERROR;
if (!H5_addr_defined(fh_addr))
FAIL_STACK_ERROR;
- HDmemset(&state, 0, sizeof(fheap_heap_state_t));
+ memset(&state, 0, sizeof(fheap_heap_state_t));
/*
* Test inserting mult. (small) objects to force creation of second direct
@@ -4598,7 +4598,7 @@ test_man_fill_first_recursive_indirect(hid_t fapl, H5HF_create_t *cparam, fheap_
FAIL_STACK_ERROR;
if (!H5_addr_defined(fh_addr))
FAIL_STACK_ERROR;
- HDmemset(&state, 0, sizeof(fheap_heap_state_t));
+ memset(&state, 0, sizeof(fheap_heap_state_t));
/*
* Test inserting mult. (small) objects to fill all direct
@@ -4698,7 +4698,7 @@ test_man_second_recursive_indirect(hid_t fapl, H5HF_create_t *cparam, fheap_test
FAIL_STACK_ERROR;
if (!H5_addr_defined(fh_addr))
FAIL_STACK_ERROR;
- HDmemset(&state, 0, sizeof(fheap_heap_state_t));
+ memset(&state, 0, sizeof(fheap_heap_state_t));
/*
* Test inserting mult. (small) objects to fill all direct
@@ -4806,7 +4806,7 @@ test_man_fill_second_recursive_indirect(hid_t fapl, H5HF_create_t *cparam, fheap
FAIL_STACK_ERROR;
if (!H5_addr_defined(fh_addr))
FAIL_STACK_ERROR;
- HDmemset(&state, 0, sizeof(fheap_heap_state_t));
+ memset(&state, 0, sizeof(fheap_heap_state_t));
/*
* Test inserting mult. (small) objects to fill all direct
@@ -4907,7 +4907,7 @@ test_man_fill_recursive_indirect_row(hid_t fapl, H5HF_create_t *cparam, fheap_te
FAIL_STACK_ERROR;
if (!H5_addr_defined(fh_addr))
FAIL_STACK_ERROR;
- HDmemset(&state, 0, sizeof(fheap_heap_state_t));
+ memset(&state, 0, sizeof(fheap_heap_state_t));
/*
* Test inserting mult. (small) objects to fill all direct
@@ -5006,7 +5006,7 @@ test_man_start_2nd_recursive_indirect(hid_t fapl, H5HF_create_t *cparam, fheap_t
FAIL_STACK_ERROR;
if (!H5_addr_defined(fh_addr))
FAIL_STACK_ERROR;
- HDmemset(&state, 0, sizeof(fheap_heap_state_t));
+ memset(&state, 0, sizeof(fheap_heap_state_t));
/*
* Test inserting mult. (small) objects to fill all direct
@@ -5112,7 +5112,7 @@ test_man_recursive_indirect_two_deep(hid_t fapl, H5HF_create_t *cparam, fheap_te
FAIL_STACK_ERROR;
if (!H5_addr_defined(fh_addr))
FAIL_STACK_ERROR;
- HDmemset(&state, 0, sizeof(fheap_heap_state_t));
+ memset(&state, 0, sizeof(fheap_heap_state_t));
/*
* Test inserting mult. (small) objects to fill all direct
@@ -5212,7 +5212,7 @@ test_man_start_3rd_recursive_indirect(hid_t fapl, H5HF_create_t *cparam, fheap_t
FAIL_STACK_ERROR;
if (!H5_addr_defined(fh_addr))
FAIL_STACK_ERROR;
- HDmemset(&state, 0, sizeof(fheap_heap_state_t));
+ memset(&state, 0, sizeof(fheap_heap_state_t));
/*
* Test inserting mult. (small) objects to fill all direct
@@ -5319,7 +5319,7 @@ test_man_fill_first_3rd_recursive_indirect(hid_t fapl, H5HF_create_t *cparam, fh
FAIL_STACK_ERROR;
if (!H5_addr_defined(fh_addr))
FAIL_STACK_ERROR;
- HDmemset(&state, 0, sizeof(fheap_heap_state_t));
+ memset(&state, 0, sizeof(fheap_heap_state_t));
/*
* Test inserting mult. (small) objects to fill all direct
@@ -5427,7 +5427,7 @@ test_man_fill_3rd_recursive_indirect_row(hid_t fapl, H5HF_create_t *cparam, fhea
FAIL_STACK_ERROR;
if (!H5_addr_defined(fh_addr))
FAIL_STACK_ERROR;
- HDmemset(&state, 0, sizeof(fheap_heap_state_t));
+ memset(&state, 0, sizeof(fheap_heap_state_t));
/*
* Test inserting mult. (small) objects to fill all direct
@@ -5532,7 +5532,7 @@ test_man_fill_all_3rd_recursive_indirect(hid_t fapl, H5HF_create_t *cparam, fhea
FAIL_STACK_ERROR;
if (!H5_addr_defined(fh_addr))
FAIL_STACK_ERROR;
- HDmemset(&state, 0, sizeof(fheap_heap_state_t));
+ memset(&state, 0, sizeof(fheap_heap_state_t));
/*
* Test inserting mult. (small) objects to fill all direct
@@ -5638,7 +5638,7 @@ test_man_start_4th_recursive_indirect(hid_t fapl, H5HF_create_t *cparam, fheap_t
FAIL_STACK_ERROR;
if (!H5_addr_defined(fh_addr))
FAIL_STACK_ERROR;
- HDmemset(&state, 0, sizeof(fheap_heap_state_t));
+ memset(&state, 0, sizeof(fheap_heap_state_t));
/*
* Test inserting mult. (small) objects to fill all direct
@@ -5750,7 +5750,7 @@ test_man_fill_first_4th_recursive_indirect(hid_t fapl, H5HF_create_t *cparam, fh
FAIL_STACK_ERROR;
if (!H5_addr_defined(fh_addr))
FAIL_STACK_ERROR;
- HDmemset(&state, 0, sizeof(fheap_heap_state_t));
+ memset(&state, 0, sizeof(fheap_heap_state_t));
/*
* Test inserting mult. (small) objects to fill all direct
@@ -5868,7 +5868,7 @@ test_man_fill_4th_recursive_indirect_row(hid_t fapl, H5HF_create_t *cparam, fhea
FAIL_STACK_ERROR;
if (!H5_addr_defined(fh_addr))
FAIL_STACK_ERROR;
- HDmemset(&state, 0, sizeof(fheap_heap_state_t));
+ memset(&state, 0, sizeof(fheap_heap_state_t));
/*
* Test inserting mult. (small) objects to fill all direct
@@ -5977,7 +5977,7 @@ test_man_fill_all_4th_recursive_indirect(hid_t fapl, H5HF_create_t *cparam, fhea
FAIL_STACK_ERROR;
if (!H5_addr_defined(fh_addr))
FAIL_STACK_ERROR;
- HDmemset(&state, 0, sizeof(fheap_heap_state_t));
+ memset(&state, 0, sizeof(fheap_heap_state_t));
/*
* Test inserting mult. (small) objects to fill all direct
@@ -6088,7 +6088,7 @@ test_man_start_5th_recursive_indirect(hid_t fapl, H5HF_create_t *cparam, fheap_t
FAIL_STACK_ERROR;
if (!H5_addr_defined(fh_addr))
FAIL_STACK_ERROR;
- HDmemset(&state, 0, sizeof(fheap_heap_state_t));
+ memset(&state, 0, sizeof(fheap_heap_state_t));
/*
* Test inserting mult. (small) objects to fill all direct
@@ -6217,7 +6217,7 @@ test_man_remove_bogus(hid_t fapl, H5HF_create_t *cparam, fheap_test_param_t *tpa
FAIL_STACK_ERROR;
if (!H5_addr_defined(fh_addr))
FAIL_STACK_ERROR;
- HDmemset(&state, 0, sizeof(fheap_heap_state_t));
+ memset(&state, 0, sizeof(fheap_heap_state_t));
if (check_stats(fh, &state))
FAIL_STACK_ERROR;
@@ -6373,7 +6373,7 @@ test_man_remove_one(hid_t fapl, H5HF_create_t *cparam, fheap_test_param_t *tpara
FAIL_STACK_ERROR;
if (!H5_addr_defined(fh_addr))
FAIL_STACK_ERROR;
- HDmemset(&state, 0, sizeof(fheap_heap_state_t));
+ memset(&state, 0, sizeof(fheap_heap_state_t));
if (check_stats(fh, &state))
FAIL_STACK_ERROR;
@@ -6535,7 +6535,7 @@ test_man_remove_two(hid_t fapl, H5HF_create_t *cparam, fheap_test_param_t *tpara
FAIL_STACK_ERROR;
if (!H5_addr_defined(fh_addr))
FAIL_STACK_ERROR;
- HDmemset(&state, 0, sizeof(fheap_heap_state_t));
+ memset(&state, 0, sizeof(fheap_heap_state_t));
if (check_stats(fh, &state))
FAIL_STACK_ERROR;
@@ -6726,7 +6726,7 @@ test_man_remove_one_larger(hid_t fapl, H5HF_create_t *cparam, fheap_test_param_t
FAIL_STACK_ERROR;
if (!H5_addr_defined(fh_addr))
FAIL_STACK_ERROR;
- HDmemset(&state, 0, sizeof(fheap_heap_state_t));
+ memset(&state, 0, sizeof(fheap_heap_state_t));
if (check_stats(fh, &state))
FAIL_STACK_ERROR;
@@ -6893,7 +6893,7 @@ test_man_remove_two_larger(hid_t fapl, H5HF_create_t *cparam, fheap_test_param_t
FAIL_STACK_ERROR;
if (!H5_addr_defined(fh_addr))
FAIL_STACK_ERROR;
- HDmemset(&state, 0, sizeof(fheap_heap_state_t));
+ memset(&state, 0, sizeof(fheap_heap_state_t));
if (check_stats(fh, &state))
FAIL_STACK_ERROR;
@@ -7131,7 +7131,7 @@ test_man_remove_three_larger(hid_t fapl, H5HF_create_t *cparam, fheap_test_param
FAIL_STACK_ERROR;
if (!H5_addr_defined(fh_addr))
FAIL_STACK_ERROR;
- HDmemset(&state, 0, sizeof(fheap_heap_state_t));
+ memset(&state, 0, sizeof(fheap_heap_state_t));
if (check_stats(fh, &state))
FAIL_STACK_ERROR;
@@ -7433,7 +7433,7 @@ test_man_incr_insert_remove(hid_t fapl, H5HF_create_t *cparam, fheap_test_param_
FAIL_STACK_ERROR;
if (!H5_addr_defined(fh_addr))
FAIL_STACK_ERROR;
- HDmemset(&state, 0, sizeof(fheap_heap_state_t));
+ memset(&state, 0, sizeof(fheap_heap_state_t));
if (check_stats(fh, &state))
FAIL_STACK_ERROR;
@@ -7442,8 +7442,8 @@ test_man_incr_insert_remove(hid_t fapl, H5HF_create_t *cparam, fheap_test_param_
*/
TESTING("incremental object insertion and removal");
- HDmemset(&obj1, 0, sizeof(obj1));
- HDmemset(&obj2, 0, sizeof(obj2));
+ memset(&obj1, 0, sizeof(obj1));
+ memset(&obj2, 0, sizeof(obj2));
for (i = 0; i < 100; i++) {
for (j = 0; j < i; j++) {
if (H5HF_remove(fh, heap_id[j]) < 0)
@@ -7459,7 +7459,7 @@ test_man_incr_insert_remove(hid_t fapl, H5HF_create_t *cparam, fheap_test_param_
TEST_ERROR;
/* Insert object */
- HDmemset(heap_id[i], 0, id_len);
+ memset(heap_id[i], 0, id_len);
HDsnprintf(obj1.b, sizeof(obj1.b), "%s%2d", "ABCDEFGHIJKLMNOPQRSTUVWXYZ", i);
if (H5HF_insert(fh, (sizeof(obj1)), &obj1, heap_id[i]) < 0)
FAIL_STACK_ERROR;
@@ -12359,10 +12359,10 @@ test_huge_insert_one(hid_t fapl, H5HF_create_t *cparam, fheap_test_param_t *tpar
FAIL_STACK_ERROR;
if (obj_size != robj_size)
TEST_ERROR;
- HDmemset(shared_robj_g, 0, obj_size);
+ memset(shared_robj_g, 0, obj_size);
if (H5HF_read(fh, heap_id, shared_robj_g) < 0)
FAIL_STACK_ERROR;
- if (HDmemcmp(shared_wobj_g, shared_robj_g, obj_size) != 0)
+ if (memcmp(shared_wobj_g, shared_robj_g, obj_size) != 0)
TEST_ERROR;
/* Delete individual objects, if we won't be deleting the entire heap later */
@@ -12509,10 +12509,10 @@ test_huge_insert_two(hid_t fapl, H5HF_create_t *cparam, fheap_test_param_t *tpar
FAIL_STACK_ERROR;
if (obj_size != robj_size)
TEST_ERROR;
- HDmemset(shared_robj_g, 0, obj_size);
+ memset(shared_robj_g, 0, obj_size);
if (H5HF_read(fh, heap_id, shared_robj_g) < 0)
FAIL_STACK_ERROR;
- if (HDmemcmp(shared_wobj_g, shared_robj_g, obj_size) != 0)
+ if (memcmp(shared_wobj_g, shared_robj_g, obj_size) != 0)
TEST_ERROR;
/* Insert second object too large for managed heap blocks */
@@ -12539,10 +12539,10 @@ test_huge_insert_two(hid_t fapl, H5HF_create_t *cparam, fheap_test_param_t *tpar
FAIL_STACK_ERROR;
if (obj_size != robj_size)
TEST_ERROR;
- HDmemset(shared_robj_g, 0, obj_size);
+ memset(shared_robj_g, 0, obj_size);
if (H5HF_read(fh, heap_id2, shared_robj_g) < 0)
FAIL_STACK_ERROR;
- if (HDmemcmp(shared_wobj_g, shared_robj_g, obj_size) != 0)
+ if (memcmp(shared_wobj_g, shared_robj_g, obj_size) != 0)
TEST_ERROR;
/* Delete individual objects, if we won't be deleting the entire heap later */
@@ -12739,10 +12739,10 @@ test_huge_insert_three(hid_t fapl, H5HF_create_t *cparam, fheap_test_param_t *tp
FAIL_STACK_ERROR;
if (obj_size != robj_size)
TEST_ERROR;
- HDmemset(shared_robj_g, 0, obj_size);
+ memset(shared_robj_g, 0, obj_size);
if (H5HF_read(fh, heap_id, shared_robj_g) < 0)
FAIL_STACK_ERROR;
- if (HDmemcmp(shared_wobj_g, shared_robj_g, obj_size) != 0)
+ if (memcmp(shared_wobj_g, shared_robj_g, obj_size) != 0)
TEST_ERROR;
/* Insert second object too large for managed heap blocks */
@@ -12769,10 +12769,10 @@ test_huge_insert_three(hid_t fapl, H5HF_create_t *cparam, fheap_test_param_t *tp
FAIL_STACK_ERROR;
if (obj_size != robj_size)
TEST_ERROR;
- HDmemset(shared_robj_g, 0, obj_size);
+ memset(shared_robj_g, 0, obj_size);
if (H5HF_read(fh, heap_id2, shared_robj_g) < 0)
FAIL_STACK_ERROR;
- if (HDmemcmp(shared_wobj_g, shared_robj_g, obj_size) != 0)
+ if (memcmp(shared_wobj_g, shared_robj_g, obj_size) != 0)
TEST_ERROR;
/* Insert third object too large for managed heap blocks */
@@ -12799,10 +12799,10 @@ test_huge_insert_three(hid_t fapl, H5HF_create_t *cparam, fheap_test_param_t *tp
FAIL_STACK_ERROR;
if (obj_size != robj_size)
TEST_ERROR;
- HDmemset(shared_robj_g, 0, obj_size);
+ memset(shared_robj_g, 0, obj_size);
if (H5HF_read(fh, heap_id3, shared_robj_g) < 0)
FAIL_STACK_ERROR;
- if (HDmemcmp(shared_wobj_g, shared_robj_g, obj_size) != 0)
+ if (memcmp(shared_wobj_g, shared_robj_g, obj_size) != 0)
TEST_ERROR;
/* Delete individual objects, if we won't be deleting the entire heap later */
@@ -13047,10 +13047,10 @@ test_huge_insert_mix(hid_t fapl, H5HF_create_t *cparam, fheap_test_param_t *tpar
FAIL_STACK_ERROR;
if (obj_size != robj_size)
TEST_ERROR;
- HDmemset(shared_robj_g, 0, obj_size);
+ memset(shared_robj_g, 0, obj_size);
if (H5HF_read(fh, heap_id, shared_robj_g) < 0)
FAIL_STACK_ERROR;
- if (HDmemcmp(shared_wobj_g, shared_robj_g, obj_size) != 0)
+ if (memcmp(shared_wobj_g, shared_robj_g, obj_size) != 0)
TEST_ERROR;
/* Insert second object too large for managed heap blocks */
@@ -13077,10 +13077,10 @@ test_huge_insert_mix(hid_t fapl, H5HF_create_t *cparam, fheap_test_param_t *tpar
FAIL_STACK_ERROR;
if (obj_size != robj_size)
TEST_ERROR;
- HDmemset(shared_robj_g, 0, obj_size);
+ memset(shared_robj_g, 0, obj_size);
if (H5HF_read(fh, heap_id2, shared_robj_g) < 0)
FAIL_STACK_ERROR;
- if (HDmemcmp(shared_wobj_g, shared_robj_g, obj_size) != 0)
+ if (memcmp(shared_wobj_g, shared_robj_g, obj_size) != 0)
TEST_ERROR;
/* Insert third object too large for managed heap blocks */
@@ -13107,10 +13107,10 @@ test_huge_insert_mix(hid_t fapl, H5HF_create_t *cparam, fheap_test_param_t *tpar
FAIL_STACK_ERROR;
if (obj_size != robj_size)
TEST_ERROR;
- HDmemset(shared_robj_g, 0, obj_size);
+ memset(shared_robj_g, 0, obj_size);
if (H5HF_read(fh, heap_id3, shared_robj_g) < 0)
FAIL_STACK_ERROR;
- if (HDmemcmp(shared_wobj_g, shared_robj_g, obj_size) != 0)
+ if (memcmp(shared_wobj_g, shared_robj_g, obj_size) != 0)
TEST_ERROR;
/* Insert fourth object small enough to fit into 'normal' heap blocks */
@@ -13144,10 +13144,10 @@ test_huge_insert_mix(hid_t fapl, H5HF_create_t *cparam, fheap_test_param_t *tpar
FAIL_STACK_ERROR;
if (obj_size != robj_size)
TEST_ERROR;
- HDmemset(shared_robj_g, 0, obj_size);
+ memset(shared_robj_g, 0, obj_size);
if (H5HF_read(fh, heap_id4, shared_robj_g) < 0)
FAIL_STACK_ERROR;
- if (HDmemcmp(shared_wobj_g, shared_robj_g, obj_size) != 0)
+ if (memcmp(shared_wobj_g, shared_robj_g, obj_size) != 0)
TEST_ERROR;
/* Insert fifth object small enough to fit into 'normal' heap blocks */
@@ -13182,10 +13182,10 @@ test_huge_insert_mix(hid_t fapl, H5HF_create_t *cparam, fheap_test_param_t *tpar
FAIL_STACK_ERROR;
if (obj_size != robj_size)
TEST_ERROR;
- HDmemset(shared_robj_g, 0, obj_size);
+ memset(shared_robj_g, 0, obj_size);
if (H5HF_read(fh, heap_id5, shared_robj_g) < 0)
FAIL_STACK_ERROR;
- if (HDmemcmp(shared_wobj_g, shared_robj_g, obj_size) != 0)
+ if (memcmp(shared_wobj_g, shared_robj_g, obj_size) != 0)
TEST_ERROR;
/* Delete individual objects, if we won't be deleting the entire heap later */
@@ -13320,7 +13320,7 @@ test_huge_insert_mix(hid_t fapl, H5HF_create_t *cparam, fheap_test_param_t *tpar
} /* end else */
/* Check up on heap... */
- HDmemset(&state, 0, sizeof(fheap_heap_state_t));
+ memset(&state, 0, sizeof(fheap_heap_state_t));
if (check_stats(fh, &state))
TEST_ERROR;
} /* end if */
@@ -13419,7 +13419,7 @@ test_filtered_huge(hid_t fapl, H5HF_create_t *cparam, fheap_test_param_t *tparam
const char *base_desc = "insert 'huge' object into heap with I/O filters, then remove";
/* Copy heap creation properties */
- HDmemcpy(&tmp_cparam, cparam, sizeof(H5HF_create_t));
+ memcpy(&tmp_cparam, cparam, sizeof(H5HF_create_t));
/* Set an I/O filter for heap data */
deflate_level = 6;
@@ -13517,10 +13517,10 @@ test_filtered_huge(hid_t fapl, H5HF_create_t *cparam, fheap_test_param_t *tparam
FAIL_STACK_ERROR;
if (obj_size != robj_size)
TEST_ERROR;
- HDmemset(shared_robj_g, 0, obj_size);
+ memset(shared_robj_g, 0, obj_size);
if (H5HF_read(fh, heap_id, shared_robj_g) < 0)
FAIL_STACK_ERROR;
- if (HDmemcmp(shared_wobj_g, shared_robj_g, obj_size) != 0)
+ if (memcmp(shared_wobj_g, shared_robj_g, obj_size) != 0)
TEST_ERROR;
/* Delete individual objects, if we won't be deleting the entire heap later */
@@ -13665,10 +13665,10 @@ test_tiny_insert_one(hid_t fapl, H5HF_create_t *cparam, fheap_test_param_t *tpar
FAIL_STACK_ERROR;
if (obj_size != robj_size)
TEST_ERROR;
- HDmemset(shared_robj_g, 0, obj_size);
+ memset(shared_robj_g, 0, obj_size);
if (H5HF_read(fh, heap_id, shared_robj_g) < 0)
FAIL_STACK_ERROR;
- if (HDmemcmp(shared_wobj_g, shared_robj_g, obj_size) != 0)
+ if (memcmp(shared_wobj_g, shared_robj_g, obj_size) != 0)
TEST_ERROR;
/* Delete individual objects, if we won't be deleting the entire heap later */
@@ -13815,10 +13815,10 @@ test_tiny_insert_two(hid_t fapl, H5HF_create_t *cparam, fheap_test_param_t *tpar
FAIL_STACK_ERROR;
if (obj_size != robj_size)
TEST_ERROR;
- HDmemset(shared_robj_g, 0, obj_size);
+ memset(shared_robj_g, 0, obj_size);
if (H5HF_read(fh, heap_id, shared_robj_g) < 0)
FAIL_STACK_ERROR;
- if (HDmemcmp(shared_wobj_g, shared_robj_g, obj_size) != 0)
+ if (memcmp(shared_wobj_g, shared_robj_g, obj_size) != 0)
TEST_ERROR;
/* Insert second object small enough to encode in heap ID */
@@ -13845,10 +13845,10 @@ test_tiny_insert_two(hid_t fapl, H5HF_create_t *cparam, fheap_test_param_t *tpar
FAIL_STACK_ERROR;
if (obj_size != robj_size)
TEST_ERROR;
- HDmemset(shared_robj_g, 0, obj_size);
+ memset(shared_robj_g, 0, obj_size);
if (H5HF_read(fh, heap_id2, shared_robj_g) < 0)
FAIL_STACK_ERROR;
- if (HDmemcmp(shared_wobj_g, shared_robj_g, obj_size) != 0)
+ if (memcmp(shared_wobj_g, shared_robj_g, obj_size) != 0)
TEST_ERROR;
/* Delete individual objects, if we won't be deleting the entire heap later */
@@ -14058,17 +14058,17 @@ test_tiny_insert_mix(hid_t fapl, H5HF_create_t *cparam, fheap_test_param_t *tpar
FAIL_STACK_ERROR;
if (obj_size != robj_size)
TEST_ERROR;
- HDmemset(shared_robj_g, 0, obj_size);
+ memset(shared_robj_g, 0, obj_size);
if (H5HF_read(fh, heap_id, shared_robj_g) < 0)
FAIL_STACK_ERROR;
- if (HDmemcmp(shared_wobj_g, shared_robj_g, obj_size) != 0)
+ if (memcmp(shared_wobj_g, shared_robj_g, obj_size) != 0)
TEST_ERROR;
/* Check 'op' functionality on first huge object */
- HDmemset(shared_robj_g, 0, obj_size);
+ memset(shared_robj_g, 0, obj_size);
if (H5HF_op(fh, heap_id, op_memcpy, shared_robj_g) < 0)
FAIL_STACK_ERROR;
- if (HDmemcmp(shared_wobj_g, shared_robj_g, obj_size) != 0)
+ if (memcmp(shared_wobj_g, shared_robj_g, obj_size) != 0)
TEST_ERROR;
/* Insert second object too large for managed heap blocks */
@@ -14095,17 +14095,17 @@ test_tiny_insert_mix(hid_t fapl, H5HF_create_t *cparam, fheap_test_param_t *tpar
FAIL_STACK_ERROR;
if (obj_size != robj_size)
TEST_ERROR;
- HDmemset(shared_robj_g, 0, obj_size);
+ memset(shared_robj_g, 0, obj_size);
if (H5HF_read(fh, heap_id2, shared_robj_g) < 0)
FAIL_STACK_ERROR;
- if (HDmemcmp(shared_wobj_g, shared_robj_g, obj_size) != 0)
+ if (memcmp(shared_wobj_g, shared_robj_g, obj_size) != 0)
TEST_ERROR;
/* Check 'op' functionality on second huge object */
- HDmemset(shared_robj_g, 0, obj_size);
+ memset(shared_robj_g, 0, obj_size);
if (H5HF_op(fh, heap_id2, op_memcpy, shared_robj_g) < 0)
FAIL_STACK_ERROR;
- if (HDmemcmp(shared_wobj_g, shared_robj_g, obj_size) != 0)
+ if (memcmp(shared_wobj_g, shared_robj_g, obj_size) != 0)
TEST_ERROR;
/* Insert third object too large for managed heap blocks */
@@ -14132,17 +14132,17 @@ test_tiny_insert_mix(hid_t fapl, H5HF_create_t *cparam, fheap_test_param_t *tpar
FAIL_STACK_ERROR;
if (obj_size != robj_size)
TEST_ERROR;
- HDmemset(shared_robj_g, 0, obj_size);
+ memset(shared_robj_g, 0, obj_size);
if (H5HF_read(fh, heap_id3, shared_robj_g) < 0)
FAIL_STACK_ERROR;
- if (HDmemcmp(shared_wobj_g, shared_robj_g, obj_size) != 0)
+ if (memcmp(shared_wobj_g, shared_robj_g, obj_size) != 0)
TEST_ERROR;
/* Check 'op' functionality on third huge object */
- HDmemset(shared_robj_g, 0, obj_size);
+ memset(shared_robj_g, 0, obj_size);
if (H5HF_op(fh, heap_id3, op_memcpy, shared_robj_g) < 0)
FAIL_STACK_ERROR;
- if (HDmemcmp(shared_wobj_g, shared_robj_g, obj_size) != 0)
+ if (memcmp(shared_wobj_g, shared_robj_g, obj_size) != 0)
TEST_ERROR;
/* Insert fourth object small enough to fit into 'normal' heap blocks */
@@ -14176,17 +14176,17 @@ test_tiny_insert_mix(hid_t fapl, H5HF_create_t *cparam, fheap_test_param_t *tpar
FAIL_STACK_ERROR;
if (obj_size != robj_size)
TEST_ERROR;
- HDmemset(shared_robj_g, 0, obj_size);
+ memset(shared_robj_g, 0, obj_size);
if (H5HF_read(fh, heap_id4, shared_robj_g) < 0)
FAIL_STACK_ERROR;
- if (HDmemcmp(shared_wobj_g, shared_robj_g, obj_size) != 0)
+ if (memcmp(shared_wobj_g, shared_robj_g, obj_size) != 0)
TEST_ERROR;
/* Check 'op' functionality on fourth ('normal') object */
- HDmemset(shared_robj_g, 0, obj_size);
+ memset(shared_robj_g, 0, obj_size);
if (H5HF_op(fh, heap_id4, op_memcpy, shared_robj_g) < 0)
FAIL_STACK_ERROR;
- if (HDmemcmp(shared_wobj_g, shared_robj_g, obj_size) != 0)
+ if (memcmp(shared_wobj_g, shared_robj_g, obj_size) != 0)
TEST_ERROR;
/* Insert fifth object small enough to fit into 'normal' heap blocks */
@@ -14221,17 +14221,17 @@ test_tiny_insert_mix(hid_t fapl, H5HF_create_t *cparam, fheap_test_param_t *tpar
FAIL_STACK_ERROR;
if (obj_size != robj_size)
TEST_ERROR;
- HDmemset(shared_robj_g, 0, obj_size);
+ memset(shared_robj_g, 0, obj_size);
if (H5HF_read(fh, heap_id5, shared_robj_g) < 0)
FAIL_STACK_ERROR;
- if (HDmemcmp(shared_wobj_g, shared_robj_g, obj_size) != 0)
+ if (memcmp(shared_wobj_g, shared_robj_g, obj_size) != 0)
TEST_ERROR;
/* Check 'op' functionality on fifth ('normal') object */
- HDmemset(shared_robj_g, 0, obj_size);
+ memset(shared_robj_g, 0, obj_size);
if (H5HF_op(fh, heap_id5, op_memcpy, shared_robj_g) < 0)
FAIL_STACK_ERROR;
- if (HDmemcmp(shared_wobj_g, shared_robj_g, obj_size) != 0)
+ if (memcmp(shared_wobj_g, shared_robj_g, obj_size) != 0)
TEST_ERROR;
/* Insert sixth object small enough to encode in heap ID */
@@ -14258,17 +14258,17 @@ test_tiny_insert_mix(hid_t fapl, H5HF_create_t *cparam, fheap_test_param_t *tpar
FAIL_STACK_ERROR;
if (obj_size != robj_size)
TEST_ERROR;
- HDmemset(shared_robj_g, 0, obj_size);
+ memset(shared_robj_g, 0, obj_size);
if (H5HF_read(fh, heap_id6, shared_robj_g) < 0)
FAIL_STACK_ERROR;
- if (HDmemcmp(shared_wobj_g, shared_robj_g, obj_size) != 0)
+ if (memcmp(shared_wobj_g, shared_robj_g, obj_size) != 0)
TEST_ERROR;
/* Check 'op' functionality on sixth ('tiny') object */
- HDmemset(shared_robj_g, 0, obj_size);
+ memset(shared_robj_g, 0, obj_size);
if (H5HF_op(fh, heap_id6, op_memcpy, shared_robj_g) < 0)
FAIL_STACK_ERROR;
- if (HDmemcmp(shared_wobj_g, shared_robj_g, obj_size) != 0)
+ if (memcmp(shared_wobj_g, shared_robj_g, obj_size) != 0)
TEST_ERROR;
/* Insert seventh object small enough to encode in heap ID */
@@ -14295,17 +14295,17 @@ test_tiny_insert_mix(hid_t fapl, H5HF_create_t *cparam, fheap_test_param_t *tpar
FAIL_STACK_ERROR;
if (obj_size != robj_size)
TEST_ERROR;
- HDmemset(shared_robj_g, 0, obj_size);
+ memset(shared_robj_g, 0, obj_size);
if (H5HF_read(fh, heap_id7, shared_robj_g) < 0)
FAIL_STACK_ERROR;
- if (HDmemcmp(shared_wobj_g, shared_robj_g, obj_size) != 0)
+ if (memcmp(shared_wobj_g, shared_robj_g, obj_size) != 0)
TEST_ERROR;
/* Check 'op' functionality on seventh ('tiny') object */
- HDmemset(shared_robj_g, 0, obj_size);
+ memset(shared_robj_g, 0, obj_size);
if (H5HF_op(fh, heap_id7, op_memcpy, shared_robj_g) < 0)
FAIL_STACK_ERROR;
- if (HDmemcmp(shared_wobj_g, shared_robj_g, obj_size) != 0)
+ if (memcmp(shared_wobj_g, shared_robj_g, obj_size) != 0)
TEST_ERROR;
/* Delete individual objects, if we won't be deleting the entire heap later */
@@ -14502,7 +14502,7 @@ test_tiny_insert_mix(hid_t fapl, H5HF_create_t *cparam, fheap_test_param_t *tpar
} /* end else */
/* Check up on heap... */
- HDmemset(&state, 0, sizeof(fheap_heap_state_t));
+ memset(&state, 0, sizeof(fheap_heap_state_t));
if (check_stats(fh, &state))
TEST_ERROR;
} /* end if */
@@ -14603,7 +14603,7 @@ test_filtered_man_root_direct(hid_t fapl, H5HF_create_t *cparam, fheap_test_para
const char *base_desc = "insert one 'managed' object into heap with I/O filters, then remove";
/* Copy heap creation properties */
- HDmemcpy(&tmp_cparam, cparam, sizeof(H5HF_create_t));
+ memcpy(&tmp_cparam, cparam, sizeof(H5HF_create_t));
/* Set an I/O filter for heap data */
deflate_level = 6;
@@ -14669,10 +14669,10 @@ test_filtered_man_root_direct(hid_t fapl, H5HF_create_t *cparam, fheap_test_para
FAIL_STACK_ERROR;
if (obj_size != robj_size)
TEST_ERROR;
- HDmemset(shared_robj_g, 0, obj_size);
+ memset(shared_robj_g, 0, obj_size);
if (H5HF_read(fh, heap_id, shared_robj_g) < 0)
FAIL_STACK_ERROR;
- if (HDmemcmp(shared_wobj_g, shared_robj_g, obj_size) != 0)
+ if (memcmp(shared_wobj_g, shared_robj_g, obj_size) != 0)
TEST_ERROR;
/* Delete individual objects, if we won't be deleting the entire heap later */
@@ -14688,7 +14688,7 @@ test_filtered_man_root_direct(hid_t fapl, H5HF_create_t *cparam, fheap_test_para
TEST_ERROR;
/* Check up on heap... */
- HDmemset(&state, 0, sizeof(fheap_heap_state_t));
+ memset(&state, 0, sizeof(fheap_heap_state_t));
if (check_stats(fh, &state))
TEST_ERROR;
} /* end if */
@@ -14774,7 +14774,7 @@ test_filtered_man_root_indirect(hid_t fapl, H5HF_create_t *cparam, fheap_test_pa
const char *base_desc = "insert two 'managed' objects into heap with I/O filters, then remove";
/* Copy heap creation properties */
- HDmemcpy(&tmp_cparam, cparam, sizeof(H5HF_create_t));
+ memcpy(&tmp_cparam, cparam, sizeof(H5HF_create_t));
/* Set an I/O filter for heap data */
deflate_level = 6;
@@ -14849,10 +14849,10 @@ test_filtered_man_root_indirect(hid_t fapl, H5HF_create_t *cparam, fheap_test_pa
FAIL_STACK_ERROR;
if (obj_size != robj_size)
TEST_ERROR;
- HDmemset(shared_robj_g, 0, obj_size);
+ memset(shared_robj_g, 0, obj_size);
if (H5HF_read(fh, heap_id1, shared_robj_g) < 0)
FAIL_STACK_ERROR;
- if (HDmemcmp(shared_wobj_g, shared_robj_g, obj_size) != 0)
+ if (memcmp(shared_wobj_g, shared_robj_g, obj_size) != 0)
TEST_ERROR;
/* Read in ('normal') object #2 */
@@ -14860,10 +14860,10 @@ test_filtered_man_root_indirect(hid_t fapl, H5HF_create_t *cparam, fheap_test_pa
FAIL_STACK_ERROR;
if (obj_size != robj_size)
TEST_ERROR;
- HDmemset(shared_robj_g, 0, obj_size);
+ memset(shared_robj_g, 0, obj_size);
if (H5HF_read(fh, heap_id2, shared_robj_g) < 0)
FAIL_STACK_ERROR;
- if (HDmemcmp(shared_wobj_g, shared_robj_g, obj_size) != 0)
+ if (memcmp(shared_wobj_g, shared_robj_g, obj_size) != 0)
TEST_ERROR;
/* Delete individual objects, if we won't be deleting the entire heap later */
@@ -14907,7 +14907,7 @@ test_filtered_man_root_indirect(hid_t fapl, H5HF_create_t *cparam, fheap_test_pa
FAIL_STACK_ERROR;
/* Check up on heap... */
- HDmemset(&state, 0, sizeof(fheap_heap_state_t));
+ memset(&state, 0, sizeof(fheap_heap_state_t));
if (check_stats(fh, &state))
TEST_ERROR;
@@ -14937,7 +14937,7 @@ test_filtered_man_root_indirect(hid_t fapl, H5HF_create_t *cparam, fheap_test_pa
FAIL_STACK_ERROR;
/* Check up on heap... */
- HDmemset(&state, 0, sizeof(fheap_heap_state_t));
+ memset(&state, 0, sizeof(fheap_heap_state_t));
if (check_stats(fh, &state))
TEST_ERROR;
} /* end if */
@@ -14980,7 +14980,7 @@ test_filtered_man_root_indirect(hid_t fapl, H5HF_create_t *cparam, fheap_test_pa
FAIL_STACK_ERROR;
/* Check up on heap... */
- HDmemset(&state, 0, sizeof(fheap_heap_state_t));
+ memset(&state, 0, sizeof(fheap_heap_state_t));
if (check_stats(fh, &state))
TEST_ERROR;
@@ -15010,7 +15010,7 @@ test_filtered_man_root_indirect(hid_t fapl, H5HF_create_t *cparam, fheap_test_pa
FAIL_STACK_ERROR;
/* Check up on heap... */
- HDmemset(&state, 0, sizeof(fheap_heap_state_t));
+ memset(&state, 0, sizeof(fheap_heap_state_t));
if (check_stats(fh, &state))
TEST_ERROR;
} /* end else */
@@ -15097,10 +15097,10 @@ test_random(hsize_t size_limit, hid_t fapl, H5HF_create_t *cparam, fheap_test_pa
size_t u; /* Local index variable */
/* Initialize the heap ID structure */
- HDmemset(&keep_ids, 0, sizeof(fheap_heap_ids_t));
+ memset(&keep_ids, 0, sizeof(fheap_heap_ids_t));
/* Copy heap creation properties */
- HDmemcpy(&tmp_cparam, cparam, sizeof(H5HF_create_t));
+ memcpy(&tmp_cparam, cparam, sizeof(H5HF_create_t));
/* Check if we are compressing the blocks */
if (tparam->comp == FHEAP_TEST_COMPRESS) {
@@ -15182,9 +15182,9 @@ fprintf(stderr, "Random # seed was: %lu\n", seed);
/* Swap current position with future position */
/* (just swap the heap ID, the len & offset isn't used */
- HDmemcpy(temp_id, &keep_ids.ids[u * id_len], id_len);
- HDmemcpy(&keep_ids.ids[u * id_len], &keep_ids.ids[(u + pos) * id_len], id_len);
- HDmemcpy(&keep_ids.ids[(u + pos) * id_len], temp_id, id_len);
+ memcpy(temp_id, &keep_ids.ids[u * id_len], id_len);
+ memcpy(&keep_ids.ids[u * id_len], &keep_ids.ids[(u + pos) * id_len], id_len);
+ memcpy(&keep_ids.ids[(u + pos) * id_len], temp_id, id_len);
} /* end if */
} /* end for */
@@ -15298,10 +15298,10 @@ test_random_pow2(hsize_t size_limit, hid_t fapl, H5HF_create_t *cparam, fheap_te
size_t u; /* Local index variable */
/* Initialize the heap ID structure */
- HDmemset(&keep_ids, 0, sizeof(fheap_heap_ids_t));
+ memset(&keep_ids, 0, sizeof(fheap_heap_ids_t));
/* Copy heap creation properties */
- HDmemcpy(&tmp_cparam, cparam, sizeof(H5HF_create_t));
+ memcpy(&tmp_cparam, cparam, sizeof(H5HF_create_t));
/* Check if we are compressing the blocks */
if (tparam->comp == FHEAP_TEST_COMPRESS) {
@@ -15397,9 +15397,9 @@ fprintf(stderr, "Random # seed was: %lu\n", seed);
/* Swap current position with future position */
/* (just swap the heap ID, the len & offset isn't used */
- HDmemcpy(temp_id, &keep_ids.ids[u * id_len], id_len);
- HDmemcpy(&keep_ids.ids[u * id_len], &keep_ids.ids[(u + pos) * id_len], id_len);
- HDmemcpy(&keep_ids.ids[(u + pos) * id_len], temp_id, id_len);
+ memcpy(temp_id, &keep_ids.ids[u * id_len], id_len);
+ memcpy(&keep_ids.ids[u * id_len], &keep_ids.ids[(u + pos) * id_len], id_len);
+ memcpy(&keep_ids.ids[(u + pos) * id_len], temp_id, id_len);
} /* end if */
} /* end for */
@@ -15530,10 +15530,10 @@ test_write(hid_t fapl, H5HF_create_t *cparam, fheap_test_param_t *tparam)
TESTING("writing objects in heap");
/* Initialize the heap ID structure */
- HDmemset(&keep_ids, 0, sizeof(fheap_heap_ids_t));
+ memset(&keep_ids, 0, sizeof(fheap_heap_ids_t));
/* Copy heap creation properties */
- HDmemcpy(&tmp_cparam, cparam, sizeof(H5HF_create_t));
+ memcpy(&tmp_cparam, cparam, sizeof(H5HF_create_t));
/* Check if we are compressing the blocks */
if (tparam->comp == FHEAP_TEST_COMPRESS) {
@@ -15666,7 +15666,7 @@ test_write(hid_t fapl, H5HF_create_t *cparam, fheap_test_param_t *tparam)
FAIL_STACK_ERROR;
/* Compare data read in */
- if (HDmemcmp(rewrite_obj, shared_robj_g, obj_size) != 0)
+ if (memcmp(rewrite_obj, shared_robj_g, obj_size) != 0)
TEST_ERROR;
/* Change size of data to write */
@@ -15715,7 +15715,7 @@ test_write(hid_t fapl, H5HF_create_t *cparam, fheap_test_param_t *tparam)
FAIL_STACK_ERROR;
/* Compare data read in */
- if (HDmemcmp(rewrite_obj, shared_robj_g, obj_size) != 0)
+ if (memcmp(rewrite_obj, shared_robj_g, obj_size) != 0)
TEST_ERROR;
/* Change size of data to write */
@@ -15797,7 +15797,7 @@ test_bug1(hid_t fapl, H5HF_create_t *cparam, fheap_test_param_t *tparam)
TESTING("bug1: inserting several objects & removing one, then re-inserting");
/* Initialize the heap ID structure */
- HDmemset(&keep_ids, 0, sizeof(fheap_heap_ids_t));
+ memset(&keep_ids, 0, sizeof(fheap_heap_ids_t));
/* Perform common file & heap open operations */
if (open_heap(filename, fapl, cparam, tparam, &file, &f, &fh, &fh_addr, &state, &empty_size) < 0)
@@ -16102,7 +16102,7 @@ main(void)
/* Iterate over the testing parameters */
for (curr_test = FHEAP_TEST_NORMAL; curr_test < FHEAP_TEST_NTESTS; curr_test++) {
/* Clear the testing parameters */
- HDmemset(&tparam, 0, sizeof(fheap_test_param_t));
+ memset(&tparam, 0, sizeof(fheap_test_param_t));
tparam.actual_id_len = HEAP_ID_LEN;
/* Set to run with different file space setting */
diff --git a/test/file_image.c b/test/file_image.c
index 0f76630..2b4e481 100644
--- a/test/file_image.c
+++ b/test/file_image.c
@@ -129,7 +129,7 @@ test_properties(void)
VERIFY(temp != NULL, "temp is null!");
VERIFY(temp_size == size, "Sizes of buffers don't match");
VERIFY(temp != buffer, "Retrieved buffer is the same as original");
- VERIFY(0 == HDmemcmp(temp, buffer, size), "Buffers contain different data");
+ VERIFY(0 == memcmp(temp, buffer, size), "Buffers contain different data");
/* Copy the fapl */
if ((fapl_2 = H5Pcopy(fapl_1)) < 0)
@@ -144,7 +144,7 @@ test_properties(void)
VERIFY(temp2 != NULL, "Received buffer not set");
VERIFY(temp2 != buffer, "Retrieved buffer is the same as original");
VERIFY(temp2 != temp, "Retrieved buffer is the same as previously retrieved buffer");
- VERIFY(0 == HDmemcmp(temp2, buffer, size), "Buffers contain different data");
+ VERIFY(0 == memcmp(temp2, buffer, size), "Buffers contain different data");
retval = 0;
@@ -200,7 +200,7 @@ memcpy_cb(void *dest, const void *src, size_t size, H5FD_file_image_op_t op, voi
u->used_callbacks |= MEMCPY;
u->memcpy_src = op;
- return HDmemcpy(dest, src, size);
+ return memcpy(dest, src, size);
}
/******************************************************************************
diff --git a/test/fillval.c b/test/fillval.c
index a34e7f7..81f7b36 100644
--- a/test/fillval.c
+++ b/test/fillval.c
@@ -1011,7 +1011,7 @@ test_rdwr_cases(hid_t file, hid_t dcpl, const char *dname, void *_fillval, H5D_f
}
/* case for compound datatype */
else if (datatype == H5T_COMPOUND) {
- HDmemset(buf_c, 0, ((size_t)nelmts * sizeof(comp_datatype)));
+ memset(buf_c, 0, ((size_t)nelmts * sizeof(comp_datatype)));
for (u = 0; u < nelmts; u++) {
buf_c[u].a = 1111.11F;
buf_c[u].x = 2222;
@@ -1261,7 +1261,7 @@ test_rdwr(hid_t fapl, const char *base_name, H5D_layout_t layout)
* as compound type */
if (H5Pset_fill_time(dcpl, H5D_FILL_TIME_ALLOC) < 0)
goto error;
- HDmemset(&fill_ctype, 0, sizeof(fill_ctype));
+ memset(&fill_ctype, 0, sizeof(fill_ctype));
fill_ctype.y = 4444.4444;
if (H5Pset_fill_value(dcpl, ctype_id, &fill_ctype) < 0)
goto error;
@@ -1327,7 +1327,7 @@ test_rdwr(hid_t fapl, const char *base_name, H5D_layout_t layout)
* as compound type */
if (H5Pset_fill_time(dcpl, H5D_FILL_TIME_ALLOC) < 0)
goto error;
- HDmemset(&fill_ctype, 0, sizeof(fill_ctype));
+ memset(&fill_ctype, 0, sizeof(fill_ctype));
fill_ctype.y = 4444.4444;
if (H5Pset_fill_value(dcpl, ctype_id, &fill_ctype) < 0)
goto error;
@@ -1632,7 +1632,7 @@ test_extend_cases(hid_t file, hid_t _dcpl, const char *dset_name, const hsize_t
TEST_ERROR;
/* Clear the read buffer */
- HDmemset(val_rd, 0, val_size);
+ memset(val_rd, 0, val_size);
} /* end for */
if (H5Sclose(mspace) < 0)
TEST_ERROR;
@@ -1696,7 +1696,7 @@ test_extend_cases(hid_t file, hid_t _dcpl, const char *dset_name, const hsize_t
TEST_ERROR;
/* Clear the read buffer */
- HDmemset(val_rd, 0, val_size);
+ memset(val_rd, 0, val_size);
} /* end for */
if (H5Sclose(mspace) < 0)
TEST_ERROR;
@@ -1744,7 +1744,7 @@ test_extend_cases(hid_t file, hid_t _dcpl, const char *dset_name, const hsize_t
TEST_ERROR;
/* Clear the read buffer */
- HDmemset(val_rd, 0, val_size);
+ memset(val_rd, 0, val_size);
} /* end for */
if (H5Sclose(mspace) < 0)
TEST_ERROR;
@@ -1790,7 +1790,7 @@ test_extend_cases(hid_t file, hid_t _dcpl, const char *dset_name, const hsize_t
TEST_ERROR;
/* Clear the read buffer */
- HDmemset(val_rd, 0, val_size);
+ memset(val_rd, 0, val_size);
} /* end for */
if (H5Sclose(mspace) < 0)
TEST_ERROR;
@@ -1838,7 +1838,7 @@ test_extend_cases(hid_t file, hid_t _dcpl, const char *dset_name, const hsize_t
TEST_ERROR;
/* Clear the read buffer */
- HDmemset(val_rd, 0, val_size);
+ memset(val_rd, 0, val_size);
} /* end for */
if (H5Sclose(mspace) < 0)
TEST_ERROR;
@@ -1893,7 +1893,7 @@ test_extend_cases(hid_t file, hid_t _dcpl, const char *dset_name, const hsize_t
TEST_ERROR;
/* Clear the read buffer */
- HDmemset(val_rd, 0, val_size);
+ memset(val_rd, 0, val_size);
/* Set location for another element initialized by H5Dset_extent() */
hs_offset[3] -= 1;
@@ -1915,7 +1915,7 @@ test_extend_cases(hid_t file, hid_t _dcpl, const char *dset_name, const hsize_t
TEST_ERROR;
/* Clear the read buffer */
- HDmemset(val_rd, 0, val_size);
+ memset(val_rd, 0, val_size);
/* Read some data and make sure it's the right value */
for (i = 0; i < 1000; i++) {
@@ -1946,7 +1946,7 @@ test_extend_cases(hid_t file, hid_t _dcpl, const char *dset_name, const hsize_t
TEST_ERROR;
/* Clear the read buffer */
- HDmemset(val_rd, 0, val_size);
+ memset(val_rd, 0, val_size);
} /* end for */
if (H5Sclose(mspace) < 0)
TEST_ERROR;
diff --git a/test/filter_fail.c b/test/filter_fail.c
index 4215342..0044cf9 100644
--- a/test/filter_fail.c
+++ b/test/filter_fail.c
@@ -257,7 +257,7 @@ test_filter_read(char *file_name, hid_t my_fapl)
TEST_ERROR;
/* Read the chunks */
- HDmemset(rbuf, 0, DIM * sizeof(int));
+ memset(rbuf, 0, DIM * sizeof(int));
if (H5Dread(dataset, H5T_NATIVE_INT, H5S_ALL, H5S_ALL, H5P_DEFAULT, rbuf) < 0)
TEST_ERROR;
@@ -284,8 +284,8 @@ test_filter_read(char *file_name, hid_t my_fapl)
if ((sid = H5Dget_space(dataset)) < 0)
TEST_ERROR;
- HDmemset(hs_offset, 0, sizeof(hs_offset));
- HDmemset(hs_size, 0, sizeof(hs_size));
+ memset(hs_offset, 0, sizeof(hs_offset));
+ memset(hs_size, 0, sizeof(hs_size));
hs_size[0] = DIM / 2;
if (H5Sselect_hyperslab(sid, H5S_SELECT_SET, hs_offset, stride, hs_size, NULL) < 0)
@@ -295,12 +295,12 @@ test_filter_read(char *file_name, hid_t my_fapl)
if ((mspace = H5Screate_simple(1, dims, NULL)) < 0)
TEST_ERROR;
- HDmemset(zero, 0, sizeof zero);
+ memset(zero, 0, sizeof zero);
if (H5Sselect_hyperslab(mspace, H5S_SELECT_SET, zero, stride, &nelmts, NULL) < 0)
TEST_ERROR;
- HDmemset(rbuf, 0, DIM * sizeof(int));
+ memset(rbuf, 0, DIM * sizeof(int));
if (H5Dread(dataset, H5T_NATIVE_INT, H5S_ALL, sid, H5P_DEFAULT, rbuf) < 0)
TEST_ERROR;
diff --git a/test/filter_plugin.c b/test/filter_plugin.c
index d7a21e6..64230e5 100644
--- a/test/filter_plugin.c
+++ b/test/filter_plugin.c
@@ -124,7 +124,7 @@ allocate_and_init_2D_array(int ***arr, const hsize_t *sizes, int **initial_value
/* Copy over the data elements */
if (initial_values) {
n_bytes = r * c * sizeof(int);
- HDmemcpy((*arr)[0], initial_values[0], n_bytes);
+ memcpy((*arr)[0], initial_values[0], n_bytes);
}
return SUCCEED;
diff --git a/test/freespace.c b/test/freespace.c
index 9578976..e1628b7 100644
--- a/test/freespace.c
+++ b/test/freespace.c
@@ -363,7 +363,7 @@ TEST_set_eoa(haddr_t val)
static void
init_cparam(H5FS_create_t *cparam)
{
- HDmemset(cparam, 0, sizeof(H5FS_create_t));
+ memset(cparam, 0, sizeof(H5FS_create_t));
/* Set the free space creation parameters */
cparam->shrink_percent = TEST_FSPACE_SHRINK;
@@ -492,11 +492,11 @@ test_fs_create(hid_t fapl)
if (frsp->nclasses != nclasses)
TEST_ERROR;
- HDmemset(&state, 0, sizeof(frspace_state_t));
+ memset(&state, 0, sizeof(frspace_state_t));
if (check_stats(f, frsp, &state))
TEST_ERROR;
- HDmemset(&test_cparam, 0, sizeof(H5FS_create_t));
+ memset(&test_cparam, 0, sizeof(H5FS_create_t));
if (H5FS__get_cparam_test(frsp, &test_cparam) < 0)
FAIL_STACK_ERROR;
if (H5FS__cmp_cparam_test(&cparam, &test_cparam))
@@ -641,7 +641,7 @@ test_fs_sect_add(hid_t fapl)
if (H5FS_sect_add(f, frsp, (H5FS_section_info_t *)sect_node, H5FS_ADD_RETURNED_SPACE, NULL) < 0)
FAIL_STACK_ERROR;
- HDmemset(&state, 0, sizeof(frspace_state_t));
+ memset(&state, 0, sizeof(frspace_state_t));
state.tot_space += sect_node->sect_info.size;
state.tot_sect_count += 1;
state.serial_sect_count += 1;
@@ -707,7 +707,7 @@ test_fs_sect_add(hid_t fapl)
if (H5FS_sect_add(f, frsp, (H5FS_section_info_t *)sect_node, 0, NULL) < 0)
FAIL_STACK_ERROR;
- HDmemset(&state, 0, sizeof(frspace_state_t));
+ memset(&state, 0, sizeof(frspace_state_t));
state.tot_space += sect_node->sect_info.size;
state.tot_sect_count += 1;
state.ghost_sect_count += 1;
@@ -785,7 +785,7 @@ test_fs_sect_add(hid_t fapl)
FAIL_STACK_ERROR;
/* nothing in free-space */
- HDmemset(&state, 0, sizeof(frspace_state_t));
+ memset(&state, 0, sizeof(frspace_state_t));
if (check_stats(f, frsp, &state))
TEST_ERROR;
@@ -854,7 +854,7 @@ test_fs_sect_add(hid_t fapl)
if (H5FS_sect_add(f, frsp, (H5FS_section_info_t *)sect_node, H5FS_ADD_DESERIALIZING, &can_shrink) < 0)
FAIL_STACK_ERROR;
- HDmemset(&state, 0, sizeof(frspace_state_t));
+ memset(&state, 0, sizeof(frspace_state_t));
state.tot_space += sect_node->sect_info.size;
state.tot_sect_count += 1;
state.serial_sect_count += 1;
@@ -965,7 +965,7 @@ test_fs_sect_find(hid_t fapl)
if (!H5_addr_defined(fs_addr))
TEST_ERROR;
- HDmemset(&state, 0, sizeof(frspace_state_t));
+ memset(&state, 0, sizeof(frspace_state_t));
if (check_stats(f, frsp, &state))
TEST_ERROR;
@@ -1010,7 +1010,7 @@ test_fs_sect_find(hid_t fapl)
if (H5FS_sect_add(f, frsp, (H5FS_section_info_t *)sect_node1, H5FS_ADD_RETURNED_SPACE, NULL) < 0)
FAIL_STACK_ERROR;
- HDmemset(&state, 0, sizeof(frspace_state_t));
+ memset(&state, 0, sizeof(frspace_state_t));
state.tot_space += sect_node1->sect_info.size;
state.tot_sect_count += 1;
state.serial_sect_count += 1;
@@ -1137,7 +1137,7 @@ test_fs_sect_find(hid_t fapl)
if (H5FS_sect_add(f, frsp, (H5FS_section_info_t *)sect_node1, H5FS_ADD_RETURNED_SPACE, NULL) < 0)
FAIL_STACK_ERROR;
- HDmemset(&state, 0, sizeof(frspace_state_t));
+ memset(&state, 0, sizeof(frspace_state_t));
state.tot_space += sect_node1->sect_info.size;
state.tot_sect_count += 1;
state.serial_sect_count += 1;
@@ -1216,7 +1216,7 @@ test_fs_sect_find(hid_t fapl)
if (H5FS_sect_add(f, frsp, (H5FS_section_info_t *)sect_node1, H5FS_ADD_RETURNED_SPACE, NULL) < 0)
FAIL_STACK_ERROR;
- HDmemset(&state, 0, sizeof(frspace_state_t));
+ memset(&state, 0, sizeof(frspace_state_t));
state.tot_space += sect_node1->sect_info.size;
state.tot_sect_count += 1;
state.serial_sect_count += 1;
@@ -1364,7 +1364,7 @@ test_fs_sect_merge(hid_t fapl)
if (H5FS_sect_add(f, frsp, (H5FS_section_info_t *)sect_node1, H5FS_ADD_RETURNED_SPACE, NULL) < 0)
FAIL_STACK_ERROR;
- HDmemset(&state, 0, sizeof(frspace_state_t));
+ memset(&state, 0, sizeof(frspace_state_t));
state.tot_space += TEST_SECT_SIZE50;
state.tot_sect_count += 1;
state.serial_sect_count += 1;
@@ -1493,7 +1493,7 @@ test_fs_sect_merge(hid_t fapl)
if (H5FS_sect_add(f, frsp, (H5FS_section_info_t *)sect_node1, H5FS_ADD_RETURNED_SPACE, NULL) < 0)
FAIL_STACK_ERROR;
- HDmemset(&state, 0, sizeof(frspace_state_t));
+ memset(&state, 0, sizeof(frspace_state_t));
state.tot_space += TEST_SECT_SIZE30;
state.tot_sect_count += 1;
state.serial_sect_count += 1;
@@ -1596,7 +1596,7 @@ test_fs_sect_merge(hid_t fapl)
if (H5FS_sect_add(f, frsp, (H5FS_section_info_t *)sect_node1, H5FS_ADD_RETURNED_SPACE, NULL) < 0)
FAIL_STACK_ERROR;
- HDmemset(&state, 0, sizeof(frspace_state_t));
+ memset(&state, 0, sizeof(frspace_state_t));
state.tot_space += TEST_SECT_SIZE10;
state.tot_sect_count += 1;
state.serial_sect_count += 1;
@@ -1843,7 +1843,7 @@ test_fs_sect_shrink(hid_t fapl)
if (H5FS_sect_add(f, frsp, (H5FS_section_info_t *)sect_node1, H5FS_ADD_RETURNED_SPACE, &can_shrink) < 0)
FAIL_STACK_ERROR;
- HDmemset(&state, 0, sizeof(frspace_state_t));
+ memset(&state, 0, sizeof(frspace_state_t));
state.tot_space += sect_node1->sect_info.size;
state.tot_sect_count += 1;
state.serial_sect_count += 1;
@@ -1879,7 +1879,7 @@ test_fs_sect_shrink(hid_t fapl)
FAIL_STACK_ERROR;
/* should have nothing in free-space */
- HDmemset(&state, 0, sizeof(frspace_state_t));
+ memset(&state, 0, sizeof(frspace_state_t));
if (check_stats(f, frsp, &state))
TEST_ERROR;
@@ -1944,7 +1944,7 @@ test_fs_sect_shrink(hid_t fapl)
if (H5FS_sect_add(f, frsp, (H5FS_section_info_t *)sect_node1, H5FS_ADD_RETURNED_SPACE, &can_shrink) < 0)
FAIL_STACK_ERROR;
- HDmemset(&state, 0, sizeof(frspace_state_t));
+ memset(&state, 0, sizeof(frspace_state_t));
state.tot_space += sect_node1->sect_info.size;
state.tot_sect_count += 1;
state.serial_sect_count += 1;
@@ -2044,7 +2044,7 @@ test_fs_sect_shrink(hid_t fapl)
if (H5FS_sect_add(f, frsp, (H5FS_section_info_t *)sect_node1, H5FS_ADD_RETURNED_SPACE, &can_shrink) < 0)
FAIL_STACK_ERROR;
- HDmemset(&state, 0, sizeof(frspace_state_t));
+ memset(&state, 0, sizeof(frspace_state_t));
state.tot_space += sect_node1->sect_info.size;
state.tot_sect_count += 1;
state.serial_sect_count += 1;
@@ -2065,7 +2065,7 @@ test_fs_sect_shrink(hid_t fapl)
FAIL_STACK_ERROR;
/* section A & B are merged and then strunk, so there is nothing in free-space */
- HDmemset(&state, 0, sizeof(frspace_state_t));
+ memset(&state, 0, sizeof(frspace_state_t));
if (check_stats(f, frsp, &state))
TEST_ERROR;
@@ -2186,7 +2186,7 @@ test_fs_sect_change_class(hid_t fapl)
if (H5FS_sect_add(f, frsp, (H5FS_section_info_t *)sect_node1, H5FS_ADD_RETURNED_SPACE, NULL) < 0)
FAIL_STACK_ERROR;
- HDmemset(&state, 0, sizeof(frspace_state_t));
+ memset(&state, 0, sizeof(frspace_state_t));
state.tot_space += TEST_SECT_SIZE30;
state.tot_sect_count += 1;
state.ghost_sect_count += 1;
@@ -2474,7 +2474,7 @@ test_fs_sect_extend(hid_t fapl)
if (H5FS_sect_add(f, frsp, (H5FS_section_info_t *)sect_node1, H5FS_ADD_RETURNED_SPACE, NULL) < 0)
FAIL_STACK_ERROR;
- HDmemset(&state, 0, sizeof(frspace_state_t));
+ memset(&state, 0, sizeof(frspace_state_t));
state.tot_space += sect_node1->sect_info.size;
state.tot_sect_count += 1;
state.serial_sect_count += 1;
@@ -2551,7 +2551,7 @@ test_fs_sect_extend(hid_t fapl)
if (H5FS_sect_add(f, frsp, (H5FS_section_info_t *)sect_node1, H5FS_ADD_RETURNED_SPACE, NULL) < 0)
FAIL_STACK_ERROR;
- HDmemset(&state, 0, sizeof(frspace_state_t));
+ memset(&state, 0, sizeof(frspace_state_t));
state.tot_space += sect_node1->sect_info.size;
state.tot_sect_count += 1;
state.serial_sect_count += 1;
@@ -2625,7 +2625,7 @@ test_fs_sect_extend(hid_t fapl)
if (H5FS_sect_add(f, frsp, (H5FS_section_info_t *)sect_node1, H5FS_ADD_RETURNED_SPACE, NULL) < 0)
FAIL_STACK_ERROR;
- HDmemset(&state, 0, sizeof(frspace_state_t));
+ memset(&state, 0, sizeof(frspace_state_t));
state.tot_space += sect_node1->sect_info.size;
state.tot_sect_count += 1;
state.serial_sect_count += 1;
@@ -2700,7 +2700,7 @@ test_fs_sect_extend(hid_t fapl)
if (H5FS_sect_add(f, frsp, (H5FS_section_info_t *)sect_node1, H5FS_ADD_RETURNED_SPACE, NULL) < 0)
FAIL_STACK_ERROR;
- HDmemset(&state, 0, sizeof(frspace_state_t));
+ memset(&state, 0, sizeof(frspace_state_t));
state.tot_space += sect_node1->sect_info.size;
state.tot_sect_count += 1;
state.serial_sect_count += 1;
diff --git a/test/genall5.c b/test/genall5.c
index 84541d2..005e944 100644
--- a/test/genall5.c
+++ b/test/genall5.c
@@ -170,7 +170,7 @@ vrfy_ns_grp_0(hid_t fid, const char *group_name)
}
if (pass) {
- HDmemset(&grp_info, 0, sizeof(grp_info));
+ memset(&grp_info, 0, sizeof(grp_info));
ret = H5Gget_info(gid, &grp_info);
if (ret < 0) {
@@ -422,7 +422,7 @@ vrfy_ns_grp_c(hid_t fid, const char *group_name, unsigned nlinks)
}
if (pass) {
- HDmemset(&grp_info, 0, sizeof(grp_info));
+ memset(&grp_info, 0, sizeof(grp_info));
ret = H5Gget_info(gid, &grp_info);
if (ret < 0) {
@@ -468,7 +468,7 @@ vrfy_ns_grp_c(hid_t fid, const char *group_name, unsigned nlinks)
}
assert(link_exists >= 0);
- HDmemset(&lnk_info, 0, sizeof(grp_info));
+ memset(&lnk_info, 0, sizeof(grp_info));
ret = H5Lget_info2(gid, linkname, &lnk_info, H5P_DEFAULT);
if (ret < 0) {
@@ -538,7 +538,7 @@ vrfy_ns_grp_c(hid_t fid, const char *group_name, unsigned nlinks)
}
assert(H5L_TYPE_HARD == lnk_info.type);
- HDmemset(&root_oinfo, 0, sizeof(root_oinfo));
+ memset(&root_oinfo, 0, sizeof(root_oinfo));
ret = H5Oget_info3(fid, &root_oinfo, H5O_INFO_BASIC);
if (ret < 0) {
@@ -826,7 +826,7 @@ vrfy_ns_grp_d(hid_t fid, const char *group_name, unsigned nlinks)
}
if (pass) {
- HDmemset(&grp_info, 0, sizeof(grp_info));
+ memset(&grp_info, 0, sizeof(grp_info));
ret = H5Gget_info(gid, &grp_info);
if (ret < 0) {
@@ -871,7 +871,7 @@ vrfy_ns_grp_d(hid_t fid, const char *group_name, unsigned nlinks)
}
assert(link_exists >= 0);
- HDmemset(&lnk_info, 0, sizeof(grp_info));
+ memset(&lnk_info, 0, sizeof(grp_info));
ret = H5Lget_info2(gid, linkname, &lnk_info, H5P_DEFAULT);
if (ret < 0) {
@@ -941,7 +941,7 @@ vrfy_ns_grp_d(hid_t fid, const char *group_name, unsigned nlinks)
}
assert(H5L_TYPE_HARD == lnk_info.type);
- HDmemset(&root_oinfo, 0, sizeof(root_oinfo));
+ memset(&root_oinfo, 0, sizeof(root_oinfo));
ret = H5Oget_info3(fid, &root_oinfo, H5O_INFO_BASIC);
if (ret < 0) {
pass = FALSE;
@@ -1180,7 +1180,7 @@ vrfy_os_grp_0(hid_t fid, const char *group_name)
}
if (pass) {
- HDmemset(&grp_info, 0, sizeof(grp_info));
+ memset(&grp_info, 0, sizeof(grp_info));
ret = H5Gget_info(gid, &grp_info);
if (ret < 0) {
@@ -1409,7 +1409,7 @@ vrfy_os_grp_n(hid_t fid, const char *group_name, int proc_num, unsigned nlinks)
}
if (pass) {
- HDmemset(&grp_info, 0, sizeof(grp_info));
+ memset(&grp_info, 0, sizeof(grp_info));
ret = H5Gget_info(gid, &grp_info);
@@ -1455,7 +1455,7 @@ vrfy_os_grp_n(hid_t fid, const char *group_name, int proc_num, unsigned nlinks)
}
assert(link_exists >= 0);
- HDmemset(&lnk_info, 0, sizeof(grp_info));
+ memset(&lnk_info, 0, sizeof(grp_info));
ret = H5Lget_info2(gid, linkname, &lnk_info, H5P_DEFAULT);
if (ret < 0) {
@@ -1523,7 +1523,7 @@ vrfy_os_grp_n(hid_t fid, const char *group_name, int proc_num, unsigned nlinks)
}
assert(H5L_TYPE_HARD == lnk_info.type);
- HDmemset(&root_oinfo, 0, sizeof(root_oinfo));
+ memset(&root_oinfo, 0, sizeof(root_oinfo));
ret = H5Oget_info3(fid, &root_oinfo, H5O_INFO_BASIC);
if (ret < 0) {
diff --git a/test/getname.c b/test/getname.c
index 3ae0563..12f85d0 100644
--- a/test/getname.c
+++ b/test/getname.c
@@ -3324,7 +3324,7 @@ test_obj_ref(hid_t fapl)
TEST_ERROR;
PASSED();
- HDmemset(buf, 0, sizeof(buf));
+ memset(buf, 0, sizeof(buf));
TESTING("getting path to dataset in /Group1");
if ((dataset2 = H5Rdereference2(dataset, H5P_DEFAULT, H5R_OBJECT, &wbuf[1])) < 0)
FAIL_STACK_ERROR;
@@ -3340,7 +3340,7 @@ test_obj_ref(hid_t fapl)
TEST_ERROR;
PASSED();
- HDmemset(buf, 0, sizeof(buf));
+ memset(buf, 0, sizeof(buf));
TESTING("getting path to /Group1");
if ((group = H5Rdereference2(dataset, H5P_DEFAULT, H5R_OBJECT, &wbuf[2])) < 0)
FAIL_STACK_ERROR;
@@ -3356,7 +3356,7 @@ test_obj_ref(hid_t fapl)
TEST_ERROR;
PASSED();
- HDmemset(buf, 0, sizeof(buf));
+ memset(buf, 0, sizeof(buf));
TESTING("getting path to datatype in /Group1");
if ((tid1 = H5Rdereference2(dataset, H5P_DEFAULT, H5R_OBJECT, &wbuf[3])) < 0)
FAIL_STACK_ERROR;
@@ -3372,7 +3372,7 @@ test_obj_ref(hid_t fapl)
TEST_ERROR;
PASSED();
- HDmemset(buf, 0, sizeof(buf));
+ memset(buf, 0, sizeof(buf));
TESTING("getting path to dataset in nested group");
if ((dataset2 = H5Rdereference2(dataset, H5P_DEFAULT, H5R_OBJECT, &wbuf[4])) < 0)
FAIL_STACK_ERROR;
@@ -3388,7 +3388,7 @@ test_obj_ref(hid_t fapl)
TEST_ERROR;
PASSED();
- HDmemset(buf, 0, sizeof(buf));
+ memset(buf, 0, sizeof(buf));
TESTING("getting path to nested group");
if ((group = H5Rdereference2(dataset, H5P_DEFAULT, H5R_OBJECT, &wbuf[5])) < 0)
FAIL_STACK_ERROR;
@@ -3404,7 +3404,7 @@ test_obj_ref(hid_t fapl)
TEST_ERROR;
PASSED();
- HDmemset(buf, 0, sizeof(buf));
+ memset(buf, 0, sizeof(buf));
TESTING("getting path to dataset created via hard link");
if ((dataset2 = H5Rdereference2(dataset, H5P_DEFAULT, H5R_OBJECT, &wbuf[6])) < 0)
FAIL_STACK_ERROR;
@@ -3420,7 +3420,7 @@ test_obj_ref(hid_t fapl)
TEST_ERROR;
PASSED();
- HDmemset(buf, 0, sizeof(buf));
+ memset(buf, 0, sizeof(buf));
TESTING("getting path to root group");
if ((group = H5Rdereference2(dataset, H5P_DEFAULT, H5R_OBJECT, &wbuf[7])) < 0)
FAIL_STACK_ERROR;
diff --git a/test/gheap.c b/test/gheap.c
index ce38dc3..714ba27 100644
--- a/test/gheap.c
+++ b/test/gheap.c
@@ -95,7 +95,7 @@ test_1(hid_t fapl)
*/
for (u = 0; u < GHEAP_TEST_NOBJS; u++) {
size = u + 1;
- HDmemset(out, (int)('A' + u % 26), size);
+ memset(out, (int)('A' + u % 26), size);
H5Eclear2(H5E_DEFAULT);
status = H5HG_insert(f, size, out, obj + u);
if (status < 0) {
@@ -115,14 +115,14 @@ test_1(hid_t fapl)
*/
for (u = 0; u < GHEAP_TEST_NOBJS; u++) {
size = u + 1;
- HDmemset(out, (int)('A' + u % 26), size);
+ memset(out, (int)('A' + u % 26), size);
H5Eclear2(H5E_DEFAULT);
if (NULL == H5HG_read(f, obj + u, in, NULL)) {
H5_FAILED();
HDputs(" Unable to read object");
nerrors++;
}
- else if (HDmemcmp(in, out, size) != 0) {
+ else if (memcmp(in, out, size) != 0) {
H5_FAILED();
HDputs(" Value read doesn't match value written");
nerrors++;
@@ -198,7 +198,7 @@ test_2(hid_t fapl)
*/
for (u = 0; u < GHEAP_TEST_NOBJS; u++) {
size = GHEAP_TEST_NOBJS - u;
- HDmemset(out, (int)('A' + u % 26), size);
+ memset(out, (int)('A' + u % 26), size);
H5Eclear2(H5E_DEFAULT);
if (H5HG_insert(f, size, out, obj + u) < 0) {
H5_FAILED();
@@ -212,14 +212,14 @@ test_2(hid_t fapl)
*/
for (u = 0; u < GHEAP_TEST_NOBJS; u++) {
size = GHEAP_TEST_NOBJS - u;
- HDmemset(out, (int)('A' + u % 26), size);
+ memset(out, (int)('A' + u % 26), size);
H5Eclear2(H5E_DEFAULT);
if (NULL == H5HG_read(f, obj + u, in, NULL)) {
H5_FAILED();
HDputs(" Unable to read object");
nerrors++;
}
- else if (HDmemcmp(in, out, size) != 0) {
+ else if (memcmp(in, out, size) != 0) {
H5_FAILED();
HDputs(" Value read doesn't match value written");
nerrors++;
@@ -293,7 +293,7 @@ test_3(hid_t fapl)
/* Create some stuff */
for (u = 0; u < GHEAP_TEST_NOBJS; u++) {
size = u % 30 + 100;
- HDmemset(out, (int)('A' + u % 26), size);
+ memset(out, (int)('A' + u % 26), size);
H5Eclear2(H5E_DEFAULT);
status = H5HG_insert(f, size, out, obj + u);
if (status < 0) {
@@ -381,7 +381,7 @@ test_4(hid_t fapl)
for (u = 0; u < GHEAP_TEST_NOBJS; u++) {
/* Insert */
size = u % 30 + 100;
- HDmemset(out, (int)('A' + u % 26), size);
+ memset(out, (int)('A' + u % 26), size);
H5Eclear2(H5E_DEFAULT);
status = H5HG_insert(f, size, out, obj + u);
if (status < 0) {
@@ -402,7 +402,7 @@ test_4(hid_t fapl)
HDputs(" Unable to remove object");
nerrors++;
}
- HDmemset(obj + u - 1, 0, sizeof *obj);
+ memset(obj + u - 1, 0, sizeof *obj);
}
}
diff --git a/test/h5test.c b/test/h5test.c
index 9725259..7d5ba66 100644
--- a/test/h5test.c
+++ b/test/h5test.c
@@ -465,7 +465,7 @@ h5_fixname_real(const char *base_name, hid_t fapl, const char *_suffix, char *fu
if (!base_name || !fullname || size < 1)
return NULL;
- HDmemset(fullname, 0, size);
+ memset(fullname, 0, size);
/* Determine if driver is set by environment variable. If it is,
* only generate a suffix if fixing the filename for the superblock
@@ -1731,7 +1731,7 @@ h5_get_dummy_vfd_class(void)
TEST_ERROR;
/* Copy the dummy VFD */
- HDmemcpy(vfd_class, &H5FD_dummy_g, sizeof(H5FD_class_t));
+ memcpy(vfd_class, &H5FD_dummy_g, sizeof(H5FD_class_t));
return vfd_class;
diff --git a/test/hyperslab.c b/test/hyperslab.c
index 5b9ff1d..e2ca4f1 100644
--- a/test/hyperslab.c
+++ b/test/hyperslab.c
@@ -1003,7 +1003,7 @@ test_array_fill(size_t lo, size_t hi)
if (dst[(u * ARRAY_FILL_SIZE) + v] != src[v])
TEST_ERROR;
- HDmemset(dst, 0, sizeof(int) * ARRAY_FILL_SIZE * w);
+ memset(dst, 0, sizeof(int) * ARRAY_FILL_SIZE * w);
} /* end for */
PASSED();
diff --git a/test/istore.c b/test/istore.c
index 4c328e8..8dcc205 100644
--- a/test/istore.c
+++ b/test/istore.c
@@ -303,7 +303,7 @@ test_extend(hid_t f, const char *prefix, size_t nx, size_t ny, size_t nz)
/* Fill the source array */
if (0 == nelmts)
continue;
- HDmemset(buf, (signed)(128 + ctr), (size_t)nelmts);
+ memset(buf, (signed)(128 + ctr), (size_t)nelmts);
/* Create dataspace for selection in memory */
if ((mspace = H5Screate_simple(1, &nelmts, NULL)) < 0)
@@ -321,13 +321,13 @@ test_extend(hid_t f, const char *prefix, size_t nx, size_t ny, size_t nz)
}
/* Read from disk */
- HDmemset(check, 0xff, (size_t)nelmts);
+ memset(check, 0xff, (size_t)nelmts);
if (H5Dread(dataset, TEST_DATATYPE, mspace, fspace, H5P_DEFAULT, check) < 0) {
H5_FAILED();
fprintf(stderr, " Read failed: ctr=%lu\n", (unsigned long)ctr);
goto error;
}
- if (HDmemcmp(buf, check, (size_t)nelmts) != 0) {
+ if (memcmp(buf, check, (size_t)nelmts) != 0) {
H5_FAILED();
fprintf(stderr, " Read check failed: ctr=%lu\n", (unsigned long)ctr);
fprintf(stderr, " Wrote:\n");
@@ -351,7 +351,7 @@ test_extend(hid_t f, const char *prefix, size_t nx, size_t ny, size_t nz)
}
/* Now read the entire array back out and check it */
- HDmemset(buf, 0xff, nx * ny * nz);
+ memset(buf, 0xff, nx * ny * nz);
if (H5Dread(dataset, TEST_DATATYPE, H5S_ALL, H5S_ALL, H5P_DEFAULT, buf) < 0) {
H5_FAILED();
fprintf(stderr, " Read failed for whole array.\n");
@@ -454,7 +454,7 @@ test_sparse(hid_t f, const char *prefix, size_t nblocks, size_t nx, size_t ny, s
return SUCCEED;
}
buf = (uint8_t *)malloc(nx * ny * nz);
- HDmemset(buf, 128, nx * ny * nz);
+ memset(buf, 128, nx * ny * nz);
/* Set dimensions of dataset */
for (u = 0; u < (size_t)ndims; u++)
diff --git a/test/links.c b/test/links.c
index 585be40..1c46fb7 100644
--- a/test/links.c
+++ b/test/links.c
@@ -2019,7 +2019,7 @@ test_deprec(hid_t fapl, hbool_t new_format)
if (H5Gget_objinfo(file_id, "/group1/link_to_group2", TRUE, &sb_hard2) < 0)
FAIL_STACK_ERROR;
- if (HDmemcmp(&sb_hard1.objno, sb_hard2.objno, sizeof(sb_hard1.objno)) != 0) {
+ if (memcmp(&sb_hard1.objno, sb_hard2.objno, sizeof(sb_hard1.objno)) != 0) {
H5_FAILED();
HDputs(" Hard link test failed. Link seems not to point to the ");
HDputs(" expected file location.");
@@ -2032,7 +2032,7 @@ test_deprec(hid_t fapl, hbool_t new_format)
if (H5Gget_objinfo(file_id, "/group2/link_to_group1", TRUE, &sb_hard2) < 0)
FAIL_STACK_ERROR;
- if (HDmemcmp(&sb_hard1.objno, sb_hard2.objno, sizeof(sb_hard1.objno)) != 0) {
+ if (memcmp(&sb_hard1.objno, sb_hard2.objno, sizeof(sb_hard1.objno)) != 0) {
H5_FAILED();
HDputs(" Hard link test failed. Link seems not to point to the ");
HDputs(" expected file location.");
@@ -4867,7 +4867,7 @@ link_info_by_idx_check_deprec(hid_t group_id, const char *linkname, hsize_t n, h
HDsnprintf(valname, sizeof(valname), "value %02u", (unsigned)n);
/* Verify the link information for first link, in increasing creation order */
- HDmemset(&linfo, 0, sizeof(linfo));
+ memset(&linfo, 0, sizeof(linfo));
if (H5Lget_info_by_idx1(group_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_INC, (hsize_t)0, &linfo, H5P_DEFAULT) <
0)
TEST_ERROR;
@@ -4875,7 +4875,7 @@ link_info_by_idx_check_deprec(hid_t group_id, const char *linkname, hsize_t n, h
TEST_ERROR;
/* Verify the link information for new link, in increasing creation order */
- HDmemset(&linfo, 0, sizeof(linfo));
+ memset(&linfo, 0, sizeof(linfo));
if (H5Lget_info_by_idx1(group_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_INC, n, &linfo, H5P_DEFAULT) < 0)
TEST_ERROR;
if (linfo.corder != (int64_t)n)
@@ -4883,7 +4883,7 @@ link_info_by_idx_check_deprec(hid_t group_id, const char *linkname, hsize_t n, h
/* Verify value for new soft link, in increasing creation order */
if (!hard_link) {
- HDmemset(tmpval, 0, (size_t)NAME_BUF_SIZE);
+ memset(tmpval, 0, (size_t)NAME_BUF_SIZE);
if (H5Lget_val_by_idx(group_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_INC, n, tmpval,
(size_t)NAME_BUF_SIZE, H5P_DEFAULT) < 0)
TEST_ERROR;
@@ -4892,7 +4892,7 @@ link_info_by_idx_check_deprec(hid_t group_id, const char *linkname, hsize_t n, h
} /* end if */
/* Verify the name for new link, in increasing creation order */
- HDmemset(tmpname, 0, (size_t)NAME_BUF_SIZE);
+ memset(tmpname, 0, (size_t)NAME_BUF_SIZE);
if (H5Lget_name_by_idx(group_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_INC, n, tmpname, (size_t)NAME_BUF_SIZE,
H5P_DEFAULT) < 0)
TEST_ERROR;
@@ -4905,7 +4905,7 @@ link_info_by_idx_check_deprec(hid_t group_id, const char *linkname, hsize_t n, h
*/
if (use_index) {
/* Verify the link information for first link, in native creation order (which is increasing) */
- HDmemset(&linfo, 0, sizeof(linfo));
+ memset(&linfo, 0, sizeof(linfo));
if (H5Lget_info_by_idx1(group_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_NATIVE, (hsize_t)0, &linfo,
H5P_DEFAULT) < 0)
TEST_ERROR;
@@ -4913,7 +4913,7 @@ link_info_by_idx_check_deprec(hid_t group_id, const char *linkname, hsize_t n, h
TEST_ERROR;
/* Verify the link information for new link, in native creation order (which is increasing) */
- HDmemset(&linfo, 0, sizeof(linfo));
+ memset(&linfo, 0, sizeof(linfo));
if (H5Lget_info_by_idx1(group_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_NATIVE, n, &linfo, H5P_DEFAULT) <
0)
TEST_ERROR;
@@ -4922,7 +4922,7 @@ link_info_by_idx_check_deprec(hid_t group_id, const char *linkname, hsize_t n, h
/* Verify value for new soft link, in native creation order (which is increasing) */
if (!hard_link) {
- HDmemset(tmpval, 0, (size_t)NAME_BUF_SIZE);
+ memset(tmpval, 0, (size_t)NAME_BUF_SIZE);
if (H5Lget_val_by_idx(group_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_NATIVE, n, tmpval,
(size_t)NAME_BUF_SIZE, H5P_DEFAULT) < 0)
TEST_ERROR;
@@ -4931,7 +4931,7 @@ link_info_by_idx_check_deprec(hid_t group_id, const char *linkname, hsize_t n, h
} /* end if */
/* Verify the name for new link, in native creation order (which is increasing) */
- HDmemset(tmpname, 0, (size_t)NAME_BUF_SIZE);
+ memset(tmpname, 0, (size_t)NAME_BUF_SIZE);
if (H5Lget_name_by_idx(group_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_NATIVE, n, tmpname,
(size_t)NAME_BUF_SIZE, H5P_DEFAULT) < 0)
TEST_ERROR;
@@ -4940,14 +4940,14 @@ link_info_by_idx_check_deprec(hid_t group_id, const char *linkname, hsize_t n, h
} /* end if */
/* Verify the link information for first link, in decreasing creation order */
- HDmemset(&linfo, 0, sizeof(linfo));
+ memset(&linfo, 0, sizeof(linfo));
if (H5Lget_info_by_idx1(group_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_DEC, n, &linfo, H5P_DEFAULT) < 0)
TEST_ERROR;
if (linfo.corder != 0)
TEST_ERROR;
/* Verify the link information for new link, in decreasing creation order */
- HDmemset(&linfo, 0, sizeof(linfo));
+ memset(&linfo, 0, sizeof(linfo));
if (H5Lget_info_by_idx1(group_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_DEC, (hsize_t)0, &linfo, H5P_DEFAULT) <
0)
TEST_ERROR;
@@ -4956,7 +4956,7 @@ link_info_by_idx_check_deprec(hid_t group_id, const char *linkname, hsize_t n, h
/* Verify value for new soft link, in decreasing creation order */
if (!hard_link) {
- HDmemset(tmpval, 0, (size_t)NAME_BUF_SIZE);
+ memset(tmpval, 0, (size_t)NAME_BUF_SIZE);
if (H5Lget_val_by_idx(group_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_DEC, (hsize_t)0, tmpval,
(size_t)NAME_BUF_SIZE, H5P_DEFAULT) < 0)
TEST_ERROR;
@@ -4965,7 +4965,7 @@ link_info_by_idx_check_deprec(hid_t group_id, const char *linkname, hsize_t n, h
} /* end if */
/* Verify the name for new link, in decreasing creation order */
- HDmemset(tmpname, 0, (size_t)NAME_BUF_SIZE);
+ memset(tmpname, 0, (size_t)NAME_BUF_SIZE);
if (H5Lget_name_by_idx(group_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_DEC, (hsize_t)0, tmpname,
(size_t)NAME_BUF_SIZE, H5P_DEFAULT) < 0)
TEST_ERROR;
@@ -4973,14 +4973,14 @@ link_info_by_idx_check_deprec(hid_t group_id, const char *linkname, hsize_t n, h
TEST_ERROR;
/* Verify the link information for first link, in increasing link name order */
- HDmemset(&linfo, 0, sizeof(linfo));
+ memset(&linfo, 0, sizeof(linfo));
if (H5Lget_info_by_idx1(group_id, ".", H5_INDEX_NAME, H5_ITER_INC, (hsize_t)0, &linfo, H5P_DEFAULT) < 0)
TEST_ERROR;
if (linfo.corder != 0)
TEST_ERROR;
/* Verify the link information for new link, in increasing link name order */
- HDmemset(&linfo, 0, sizeof(linfo));
+ memset(&linfo, 0, sizeof(linfo));
if (H5Lget_info_by_idx1(group_id, ".", H5_INDEX_NAME, H5_ITER_INC, n, &linfo, H5P_DEFAULT) < 0)
TEST_ERROR;
if (linfo.corder != (int64_t)n)
@@ -4988,7 +4988,7 @@ link_info_by_idx_check_deprec(hid_t group_id, const char *linkname, hsize_t n, h
/* Verify value for new soft link, in increasing link name order */
if (!hard_link) {
- HDmemset(tmpval, 0, (size_t)NAME_BUF_SIZE);
+ memset(tmpval, 0, (size_t)NAME_BUF_SIZE);
if (H5Lget_val_by_idx(group_id, ".", H5_INDEX_NAME, H5_ITER_INC, n, tmpval, (size_t)NAME_BUF_SIZE,
H5P_DEFAULT) < 0)
TEST_ERROR;
@@ -4997,7 +4997,7 @@ link_info_by_idx_check_deprec(hid_t group_id, const char *linkname, hsize_t n, h
} /* end if */
/* Verify the name for new link, in increasing link name order */
- HDmemset(tmpname, 0, (size_t)NAME_BUF_SIZE);
+ memset(tmpname, 0, (size_t)NAME_BUF_SIZE);
if (H5Lget_name_by_idx(group_id, ".", H5_INDEX_NAME, H5_ITER_INC, n, tmpname, (size_t)NAME_BUF_SIZE,
H5P_DEFAULT) < 0)
TEST_ERROR;
@@ -5009,14 +5009,14 @@ link_info_by_idx_check_deprec(hid_t group_id, const char *linkname, hsize_t n, h
*/
/* Verify the link information for first link, in decreasing link name order */
- HDmemset(&linfo, 0, sizeof(linfo));
+ memset(&linfo, 0, sizeof(linfo));
if (H5Lget_info_by_idx1(group_id, ".", H5_INDEX_NAME, H5_ITER_DEC, n, &linfo, H5P_DEFAULT) < 0)
TEST_ERROR;
if (linfo.corder != 0)
TEST_ERROR;
/* Verify the link information for new link, in decreasing link name order */
- HDmemset(&linfo, 0, sizeof(linfo));
+ memset(&linfo, 0, sizeof(linfo));
if (H5Lget_info_by_idx1(group_id, ".", H5_INDEX_NAME, H5_ITER_DEC, (hsize_t)0, &linfo, H5P_DEFAULT) < 0)
TEST_ERROR;
if (linfo.corder != (int64_t)n)
@@ -5024,7 +5024,7 @@ link_info_by_idx_check_deprec(hid_t group_id, const char *linkname, hsize_t n, h
/* Verify value for new soft link, in decreasing link name order */
if (!hard_link) {
- HDmemset(tmpval, 0, (size_t)NAME_BUF_SIZE);
+ memset(tmpval, 0, (size_t)NAME_BUF_SIZE);
if (H5Lget_val_by_idx(group_id, ".", H5_INDEX_NAME, H5_ITER_DEC, (hsize_t)0, tmpval,
(size_t)NAME_BUF_SIZE, H5P_DEFAULT) < 0)
TEST_ERROR;
@@ -5033,7 +5033,7 @@ link_info_by_idx_check_deprec(hid_t group_id, const char *linkname, hsize_t n, h
} /* end if */
/* Verify the name for new link, in decreasing link name order */
- HDmemset(tmpname, 0, (size_t)NAME_BUF_SIZE);
+ memset(tmpname, 0, (size_t)NAME_BUF_SIZE);
if (H5Lget_name_by_idx(group_id, ".", H5_INDEX_NAME, H5_ITER_DEC, (hsize_t)0, tmpname,
(size_t)NAME_BUF_SIZE, H5P_DEFAULT) < 0)
TEST_ERROR;
@@ -5648,7 +5648,7 @@ delete_by_idx_deprec(hid_t fapl)
TEST_ERROR;
/* Verify the link information for first link in appropriate order */
- HDmemset(&linfo, 0, sizeof(linfo));
+ memset(&linfo, 0, sizeof(linfo));
if (H5Lget_info_by_idx1(group_id, ".", idx_type, order, (hsize_t)0, &linfo, H5P_DEFAULT) <
0)
TEST_ERROR;
@@ -5662,7 +5662,7 @@ delete_by_idx_deprec(hid_t fapl)
} /* end else */
/* Verify the name for first link in appropriate order */
- HDmemset(tmpname, 0, (size_t)NAME_BUF_SIZE);
+ memset(tmpname, 0, (size_t)NAME_BUF_SIZE);
if (H5Lget_name_by_idx(group_id, ".", idx_type, order, (hsize_t)0, tmpname,
(size_t)NAME_BUF_SIZE, H5P_DEFAULT) < 0)
TEST_ERROR;
@@ -5722,7 +5722,7 @@ delete_by_idx_deprec(hid_t fapl)
TEST_ERROR;
/* Verify the link information for first link in appropriate order */
- HDmemset(&linfo, 0, sizeof(linfo));
+ memset(&linfo, 0, sizeof(linfo));
if (H5Lget_info_by_idx1(group_id, ".", idx_type, order, (hsize_t)0, &linfo, H5P_DEFAULT) <
0)
TEST_ERROR;
@@ -5736,7 +5736,7 @@ delete_by_idx_deprec(hid_t fapl)
} /* end else */
/* Verify the name for first link in appropriate order */
- HDmemset(tmpname, 0, (size_t)NAME_BUF_SIZE);
+ memset(tmpname, 0, (size_t)NAME_BUF_SIZE);
if (H5Lget_name_by_idx(group_id, ".", idx_type, order, (hsize_t)0, tmpname,
(size_t)NAME_BUF_SIZE, H5P_DEFAULT) < 0)
TEST_ERROR;
@@ -5800,7 +5800,7 @@ delete_by_idx_deprec(hid_t fapl)
TEST_ERROR;
/* Verify the link information for current link in appropriate order */
- HDmemset(&linfo, 0, sizeof(linfo));
+ memset(&linfo, 0, sizeof(linfo));
if (H5Lget_info_by_idx1(group_id, ".", idx_type, order, (hsize_t)u, &linfo, H5P_DEFAULT) <
0)
TEST_ERROR;
@@ -5814,7 +5814,7 @@ delete_by_idx_deprec(hid_t fapl)
} /* end else */
/* Verify the name for current link in appropriate order */
- HDmemset(tmpname, 0, (size_t)NAME_BUF_SIZE);
+ memset(tmpname, 0, (size_t)NAME_BUF_SIZE);
if (H5Lget_name_by_idx(group_id, ".", idx_type, order, (hsize_t)u, tmpname,
(size_t)NAME_BUF_SIZE, H5P_DEFAULT) < 0)
TEST_ERROR;
@@ -5834,7 +5834,7 @@ delete_by_idx_deprec(hid_t fapl)
TEST_ERROR;
/* Verify the link information for first link in appropriate order */
- HDmemset(&linfo, 0, sizeof(linfo));
+ memset(&linfo, 0, sizeof(linfo));
if (H5Lget_info_by_idx1(group_id, ".", idx_type, order, (hsize_t)0, &linfo, H5P_DEFAULT) <
0)
TEST_ERROR;
@@ -5848,7 +5848,7 @@ delete_by_idx_deprec(hid_t fapl)
} /* end else */
/* Verify the name for first link in appropriate order */
- HDmemset(tmpname, 0, (size_t)NAME_BUF_SIZE);
+ memset(tmpname, 0, (size_t)NAME_BUF_SIZE);
if (H5Lget_name_by_idx(group_id, ".", idx_type, order, (hsize_t)0, tmpname,
(size_t)NAME_BUF_SIZE, H5P_DEFAULT) < 0)
TEST_ERROR;
@@ -6003,7 +6003,7 @@ delete_by_idx_old_deprec(hid_t fapl)
TEST_ERROR;
/* Verify the link information for first link in appropriate order */
- HDmemset(&linfo, 0, sizeof(linfo));
+ memset(&linfo, 0, sizeof(linfo));
if (H5Lget_info_by_idx1(group_id, ".", H5_INDEX_NAME, order, (hsize_t)0, &linfo, H5P_DEFAULT) < 0)
TEST_ERROR;
if (order == H5_ITER_INC) {
@@ -6016,7 +6016,7 @@ delete_by_idx_old_deprec(hid_t fapl)
} /* end else */
/* Verify the name for first link in appropriate order */
- HDmemset(tmpname, 0, (size_t)NAME_BUF_SIZE);
+ memset(tmpname, 0, (size_t)NAME_BUF_SIZE);
if (H5Lget_name_by_idx(group_id, ".", H5_INDEX_NAME, order, (hsize_t)0, tmpname,
(size_t)NAME_BUF_SIZE, H5P_DEFAULT) < 0)
TEST_ERROR;
@@ -6077,7 +6077,7 @@ delete_by_idx_old_deprec(hid_t fapl)
TEST_ERROR;
/* Verify the link information for current link in appropriate order */
- HDmemset(&linfo, 0, sizeof(linfo));
+ memset(&linfo, 0, sizeof(linfo));
if (H5Lget_info_by_idx1(group_id, ".", H5_INDEX_NAME, order, (hsize_t)u, &linfo, H5P_DEFAULT) < 0)
TEST_ERROR;
if (order == H5_ITER_INC) {
@@ -6090,7 +6090,7 @@ delete_by_idx_old_deprec(hid_t fapl)
} /* end else */
/* Verify the name for current link in appropriate order */
- HDmemset(tmpname, 0, (size_t)NAME_BUF_SIZE);
+ memset(tmpname, 0, (size_t)NAME_BUF_SIZE);
if (H5Lget_name_by_idx(group_id, ".", H5_INDEX_NAME, order, (hsize_t)u, tmpname,
(size_t)NAME_BUF_SIZE, H5P_DEFAULT) < 0)
TEST_ERROR;
@@ -6111,7 +6111,7 @@ delete_by_idx_old_deprec(hid_t fapl)
TEST_ERROR;
/* Verify the link information for first link in appropriate order */
- HDmemset(&linfo, 0, sizeof(linfo));
+ memset(&linfo, 0, sizeof(linfo));
if (H5Lget_info_by_idx1(group_id, ".", H5_INDEX_NAME, order, (hsize_t)0, &linfo, H5P_DEFAULT) < 0)
TEST_ERROR;
if (order == H5_ITER_INC) {
@@ -6124,7 +6124,7 @@ delete_by_idx_old_deprec(hid_t fapl)
} /* end else */
/* Verify the name for first link in appropriate order */
- HDmemset(tmpname, 0, (size_t)NAME_BUF_SIZE);
+ memset(tmpname, 0, (size_t)NAME_BUF_SIZE);
if (H5Lget_name_by_idx(group_id, ".", H5_INDEX_NAME, order, (hsize_t)0, tmpname,
(size_t)NAME_BUF_SIZE, H5P_DEFAULT) < 0)
TEST_ERROR;
@@ -6295,7 +6295,7 @@ link_iterate_check_deprec(hid_t group_id, H5_index_t idx_type, H5_iter_order_t o
iter_info->stop = -1;
iter_info->ncalled = 0;
iter_info->curr = order != H5_ITER_DEC ? 0 : (max_links - 1);
- HDmemset(iter_info->visited, 0, sizeof(hbool_t) * iter_info->max_visit);
+ memset(iter_info->visited, 0, sizeof(hbool_t) * iter_info->max_visit);
if (H5Literate1(group_id, idx_type, order, &skip, link_iterate_deprec_cb, iter_info) < 0)
TEST_ERROR;
@@ -6312,7 +6312,7 @@ link_iterate_check_deprec(hid_t group_id, H5_index_t idx_type, H5_iter_order_t o
iter_info->stop = -1;
iter_info->ncalled = 0;
iter_info->curr = order != H5_ITER_DEC ? 0 : (max_links - 1);
- HDmemset(iter_info->visited, 0, sizeof(hbool_t) * iter_info->max_visit);
+ memset(iter_info->visited, 0, sizeof(hbool_t) * iter_info->max_visit);
if (H5Giterate(group_id, ".", &gskip, group_iterate_deprec_cb, iter_info) < 0)
TEST_ERROR;
@@ -6329,7 +6329,7 @@ link_iterate_check_deprec(hid_t group_id, H5_index_t idx_type, H5_iter_order_t o
iter_info->stop = -1;
iter_info->ncalled = 0;
iter_info->curr = (int64_t)(order != H5_ITER_DEC ? skip : ((max_links - 1) - skip));
- HDmemset(iter_info->visited, 0, sizeof(hbool_t) * iter_info->max_visit);
+ memset(iter_info->visited, 0, sizeof(hbool_t) * iter_info->max_visit);
if (H5Literate1(group_id, idx_type, order, &skip, link_iterate_deprec_cb, iter_info) < 0)
TEST_ERROR;
@@ -6364,7 +6364,7 @@ link_iterate_check_deprec(hid_t group_id, H5_index_t idx_type, H5_iter_order_t o
iter_info->stop = -1;
iter_info->ncalled = 0;
iter_info->curr = order != H5_ITER_DEC ? (unsigned)gskip : ((max_links - 1) - (unsigned)gskip);
- HDmemset(iter_info->visited, 0, sizeof(hbool_t) * iter_info->max_visit);
+ memset(iter_info->visited, 0, sizeof(hbool_t) * iter_info->max_visit);
if (H5Giterate(group_id, ".", &gskip, group_iterate_deprec_cb, iter_info) < 0)
TEST_ERROR;
@@ -6399,7 +6399,7 @@ link_iterate_check_deprec(hid_t group_id, H5_index_t idx_type, H5_iter_order_t o
iter_info->stop = 3;
iter_info->ncalled = 0;
iter_info->curr = order != H5_ITER_DEC ? 0 : (max_links - 1);
- HDmemset(iter_info->visited, 0, sizeof(hbool_t) * iter_info->max_visit);
+ memset(iter_info->visited, 0, sizeof(hbool_t) * iter_info->max_visit);
if ((ret = H5Literate1(group_id, idx_type, order, &skip, link_iterate_deprec_cb, iter_info)) < 0)
TEST_ERROR;
if (ret != CORDER_ITER_STOP)
@@ -6413,7 +6413,7 @@ link_iterate_check_deprec(hid_t group_id, H5_index_t idx_type, H5_iter_order_t o
iter_info->stop = 3;
iter_info->ncalled = 0;
iter_info->curr = order != H5_ITER_DEC ? 0 : (max_links - 1);
- HDmemset(iter_info->visited, 0, sizeof(hbool_t) * iter_info->max_visit);
+ memset(iter_info->visited, 0, sizeof(hbool_t) * iter_info->max_visit);
if ((ret = H5Giterate(group_id, ".", &gskip, group_iterate_deprec_cb, iter_info)) < 0)
TEST_ERROR;
if (ret != CORDER_ITER_STOP)
@@ -6775,7 +6775,7 @@ link_iterate_old_check_deprec(hid_t group_id, H5_iter_order_t order, unsigned ma
iter_info->stop = -1;
iter_info->ncalled = 0;
iter_info->curr = order != H5_ITER_DEC ? 0 : (max_links - 1);
- HDmemset(iter_info->visited, 0, sizeof(hbool_t) * iter_info->max_visit);
+ memset(iter_info->visited, 0, sizeof(hbool_t) * iter_info->max_visit);
if (H5Literate1(group_id, H5_INDEX_NAME, order, &skip, link_iterate_old_deprec_cb, iter_info) < 0)
TEST_ERROR;
@@ -6792,7 +6792,7 @@ link_iterate_old_check_deprec(hid_t group_id, H5_iter_order_t order, unsigned ma
iter_info->stop = -1;
iter_info->ncalled = 0;
iter_info->curr = order != H5_ITER_DEC ? 0 : (max_links - 1);
- HDmemset(iter_info->visited, 0, sizeof(hbool_t) * iter_info->max_visit);
+ memset(iter_info->visited, 0, sizeof(hbool_t) * iter_info->max_visit);
if (H5Giterate(group_id, ".", &gskip, group_iterate_old_deprec_cb, iter_info) < 0)
TEST_ERROR;
@@ -6809,7 +6809,7 @@ link_iterate_old_check_deprec(hid_t group_id, H5_iter_order_t order, unsigned ma
iter_info->stop = -1;
iter_info->ncalled = 0;
iter_info->curr = (int64_t)(order != H5_ITER_DEC ? skip : ((max_links - 1) - skip));
- HDmemset(iter_info->visited, 0, sizeof(hbool_t) * iter_info->max_visit);
+ memset(iter_info->visited, 0, sizeof(hbool_t) * iter_info->max_visit);
if (H5Literate1(group_id, H5_INDEX_NAME, order, &skip, link_iterate_old_deprec_cb, iter_info) < 0)
TEST_ERROR;
@@ -6844,7 +6844,7 @@ link_iterate_old_check_deprec(hid_t group_id, H5_iter_order_t order, unsigned ma
iter_info->stop = -1;
iter_info->ncalled = 0;
iter_info->curr = order != H5_ITER_DEC ? (unsigned)gskip : ((max_links - 1) - (unsigned)gskip);
- HDmemset(iter_info->visited, 0, sizeof(hbool_t) * iter_info->max_visit);
+ memset(iter_info->visited, 0, sizeof(hbool_t) * iter_info->max_visit);
if (H5Giterate(group_id, ".", &gskip, group_iterate_old_deprec_cb, iter_info) < 0)
TEST_ERROR;
@@ -6879,7 +6879,7 @@ link_iterate_old_check_deprec(hid_t group_id, H5_iter_order_t order, unsigned ma
iter_info->stop = 3;
iter_info->ncalled = 0;
iter_info->curr = order != H5_ITER_DEC ? 0 : (max_links - 1);
- HDmemset(iter_info->visited, 0, sizeof(hbool_t) * iter_info->max_visit);
+ memset(iter_info->visited, 0, sizeof(hbool_t) * iter_info->max_visit);
if ((ret = H5Literate1(group_id, H5_INDEX_NAME, order, &skip, link_iterate_old_deprec_cb, iter_info)) < 0)
TEST_ERROR;
if (ret != CORDER_ITER_STOP)
@@ -6893,7 +6893,7 @@ link_iterate_old_check_deprec(hid_t group_id, H5_iter_order_t order, unsigned ma
iter_info->stop = 3;
iter_info->ncalled = 0;
iter_info->curr = order != H5_ITER_DEC ? 0 : (max_links - 1);
- HDmemset(iter_info->visited, 0, sizeof(hbool_t) * iter_info->max_visit);
+ memset(iter_info->visited, 0, sizeof(hbool_t) * iter_info->max_visit);
if ((ret = H5Giterate(group_id, ".", &gskip, group_iterate_old_deprec_cb, iter_info)) < 0)
TEST_ERROR;
if (ret != CORDER_ITER_STOP)
@@ -9035,11 +9035,11 @@ external_set_elink_fapl1(hid_t fapl, hbool_t new_format)
h5_fixname(FILENAME[37], fam_fapl, filename2A, sizeof filename2A);
/* settings for multi file */
- HDmemset(memb_map, 0, sizeof memb_map);
- HDmemset(memb_fapl, 0, sizeof memb_fapl);
- HDmemset(memb_name, 0, sizeof memb_name);
- HDmemset(memb_addr, 0, sizeof memb_addr);
- HDmemset(sv, 0, sizeof sv);
+ memset(memb_map, 0, sizeof memb_map);
+ memset(memb_fapl, 0, sizeof memb_fapl);
+ memset(memb_name, 0, sizeof memb_name);
+ memset(memb_addr, 0, sizeof memb_addr);
+ memset(sv, 0, sizeof sv);
for (mt = H5FD_MEM_DEFAULT; mt < H5FD_MEM_NTYPES; mt++) {
memb_map[mt] = H5FD_MEM_SUPER;
@@ -13654,7 +13654,7 @@ external_link_with_committed_datatype(hid_t fapl, hbool_t new_format)
FAIL_STACK_ERROR;
/* Compare the data read should be the same as wbuf */
- if (HDmemcmp(wbuf, rbuf, sizeof(wbuf)) != 0)
+ if (memcmp(wbuf, rbuf, sizeof(wbuf)) != 0)
FAIL_STACK_ERROR;
/* Close the dataset */
@@ -17995,7 +17995,7 @@ link_info_by_idx_check(hid_t group_id, const char *linkname, hsize_t n, hbool_t
HDsnprintf(valname, sizeof(valname), "value %02u", (unsigned)n);
/* Verify the link information for first link, in increasing creation order */
- HDmemset(&linfo, 0, sizeof(linfo));
+ memset(&linfo, 0, sizeof(linfo));
if (H5Lget_info_by_idx2(group_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_INC, (hsize_t)0, &linfo, H5P_DEFAULT) <
0)
TEST_ERROR;
@@ -18003,7 +18003,7 @@ link_info_by_idx_check(hid_t group_id, const char *linkname, hsize_t n, hbool_t
TEST_ERROR;
/* Verify the link information for new link, in increasing creation order */
- HDmemset(&linfo, 0, sizeof(linfo));
+ memset(&linfo, 0, sizeof(linfo));
if (H5Lget_info_by_idx2(group_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_INC, n, &linfo, H5P_DEFAULT) < 0)
TEST_ERROR;
if (linfo.corder != (int64_t)n)
@@ -18011,7 +18011,7 @@ link_info_by_idx_check(hid_t group_id, const char *linkname, hsize_t n, hbool_t
/* Verify value for new soft link, in increasing creation order */
if (!hard_link) {
- HDmemset(tmpval, 0, (size_t)NAME_BUF_SIZE);
+ memset(tmpval, 0, (size_t)NAME_BUF_SIZE);
if (H5Lget_val_by_idx(group_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_INC, n, tmpval,
(size_t)NAME_BUF_SIZE, H5P_DEFAULT) < 0)
TEST_ERROR;
@@ -18020,7 +18020,7 @@ link_info_by_idx_check(hid_t group_id, const char *linkname, hsize_t n, hbool_t
} /* end if */
/* Verify the name for new link, in increasing creation order */
- HDmemset(tmpname, 0, (size_t)NAME_BUF_SIZE);
+ memset(tmpname, 0, (size_t)NAME_BUF_SIZE);
if (H5Lget_name_by_idx(group_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_INC, n, tmpname, (size_t)NAME_BUF_SIZE,
H5P_DEFAULT) < 0)
TEST_ERROR;
@@ -18033,7 +18033,7 @@ link_info_by_idx_check(hid_t group_id, const char *linkname, hsize_t n, hbool_t
*/
if (use_index) {
/* Verify the link information for first link, in native creation order (which is increasing) */
- HDmemset(&linfo, 0, sizeof(linfo));
+ memset(&linfo, 0, sizeof(linfo));
if (H5Lget_info_by_idx2(group_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_NATIVE, (hsize_t)0, &linfo,
H5P_DEFAULT) < 0)
TEST_ERROR;
@@ -18041,7 +18041,7 @@ link_info_by_idx_check(hid_t group_id, const char *linkname, hsize_t n, hbool_t
TEST_ERROR;
/* Verify the link information for new link, in native creation order (which is increasing) */
- HDmemset(&linfo, 0, sizeof(linfo));
+ memset(&linfo, 0, sizeof(linfo));
if (H5Lget_info_by_idx2(group_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_NATIVE, n, &linfo, H5P_DEFAULT) <
0)
TEST_ERROR;
@@ -18050,7 +18050,7 @@ link_info_by_idx_check(hid_t group_id, const char *linkname, hsize_t n, hbool_t
/* Verify value for new soft link, in native creation order (which is increasing) */
if (!hard_link) {
- HDmemset(tmpval, 0, (size_t)NAME_BUF_SIZE);
+ memset(tmpval, 0, (size_t)NAME_BUF_SIZE);
if (H5Lget_val_by_idx(group_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_NATIVE, n, tmpval,
(size_t)NAME_BUF_SIZE, H5P_DEFAULT) < 0)
TEST_ERROR;
@@ -18059,7 +18059,7 @@ link_info_by_idx_check(hid_t group_id, const char *linkname, hsize_t n, hbool_t
} /* end if */
/* Verify the name for new link, in native creation order (which is increasing) */
- HDmemset(tmpname, 0, (size_t)NAME_BUF_SIZE);
+ memset(tmpname, 0, (size_t)NAME_BUF_SIZE);
if (H5Lget_name_by_idx(group_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_NATIVE, n, tmpname,
(size_t)NAME_BUF_SIZE, H5P_DEFAULT) < 0)
TEST_ERROR;
@@ -18068,14 +18068,14 @@ link_info_by_idx_check(hid_t group_id, const char *linkname, hsize_t n, hbool_t
} /* end if */
/* Verify the link information for first link, in decreasing creation order */
- HDmemset(&linfo, 0, sizeof(linfo));
+ memset(&linfo, 0, sizeof(linfo));
if (H5Lget_info_by_idx2(group_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_DEC, n, &linfo, H5P_DEFAULT) < 0)
TEST_ERROR;
if (linfo.corder != 0)
TEST_ERROR;
/* Verify the link information for new link, in decreasing creation order */
- HDmemset(&linfo, 0, sizeof(linfo));
+ memset(&linfo, 0, sizeof(linfo));
if (H5Lget_info_by_idx2(group_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_DEC, (hsize_t)0, &linfo, H5P_DEFAULT) <
0)
TEST_ERROR;
@@ -18084,7 +18084,7 @@ link_info_by_idx_check(hid_t group_id, const char *linkname, hsize_t n, hbool_t
/* Verify value for new soft link, in decreasing creation order */
if (!hard_link) {
- HDmemset(tmpval, 0, (size_t)NAME_BUF_SIZE);
+ memset(tmpval, 0, (size_t)NAME_BUF_SIZE);
if (H5Lget_val_by_idx(group_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_DEC, (hsize_t)0, tmpval,
(size_t)NAME_BUF_SIZE, H5P_DEFAULT) < 0)
TEST_ERROR;
@@ -18093,7 +18093,7 @@ link_info_by_idx_check(hid_t group_id, const char *linkname, hsize_t n, hbool_t
} /* end if */
/* Verify the name for new link, in decreasing creation order */
- HDmemset(tmpname, 0, (size_t)NAME_BUF_SIZE);
+ memset(tmpname, 0, (size_t)NAME_BUF_SIZE);
if (H5Lget_name_by_idx(group_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_DEC, (hsize_t)0, tmpname,
(size_t)NAME_BUF_SIZE, H5P_DEFAULT) < 0)
TEST_ERROR;
@@ -18101,14 +18101,14 @@ link_info_by_idx_check(hid_t group_id, const char *linkname, hsize_t n, hbool_t
TEST_ERROR;
/* Verify the link information for first link, in increasing link name order */
- HDmemset(&linfo, 0, sizeof(linfo));
+ memset(&linfo, 0, sizeof(linfo));
if (H5Lget_info_by_idx2(group_id, ".", H5_INDEX_NAME, H5_ITER_INC, (hsize_t)0, &linfo, H5P_DEFAULT) < 0)
TEST_ERROR;
if (linfo.corder != 0)
TEST_ERROR;
/* Verify the link information for new link, in increasing link name order */
- HDmemset(&linfo, 0, sizeof(linfo));
+ memset(&linfo, 0, sizeof(linfo));
if (H5Lget_info_by_idx2(group_id, ".", H5_INDEX_NAME, H5_ITER_INC, n, &linfo, H5P_DEFAULT) < 0)
TEST_ERROR;
if (linfo.corder != (int64_t)n)
@@ -18116,7 +18116,7 @@ link_info_by_idx_check(hid_t group_id, const char *linkname, hsize_t n, hbool_t
/* Verify value for new soft link, in increasing link name order */
if (!hard_link) {
- HDmemset(tmpval, 0, (size_t)NAME_BUF_SIZE);
+ memset(tmpval, 0, (size_t)NAME_BUF_SIZE);
if (H5Lget_val_by_idx(group_id, ".", H5_INDEX_NAME, H5_ITER_INC, n, tmpval, (size_t)NAME_BUF_SIZE,
H5P_DEFAULT) < 0)
TEST_ERROR;
@@ -18125,7 +18125,7 @@ link_info_by_idx_check(hid_t group_id, const char *linkname, hsize_t n, hbool_t
} /* end if */
/* Verify the name for new link, in increasing link name order */
- HDmemset(tmpname, 0, (size_t)NAME_BUF_SIZE);
+ memset(tmpname, 0, (size_t)NAME_BUF_SIZE);
if (H5Lget_name_by_idx(group_id, ".", H5_INDEX_NAME, H5_ITER_INC, n, tmpname, (size_t)NAME_BUF_SIZE,
H5P_DEFAULT) < 0)
TEST_ERROR;
@@ -18137,14 +18137,14 @@ link_info_by_idx_check(hid_t group_id, const char *linkname, hsize_t n, hbool_t
*/
/* Verify the link information for first link, in decreasing link name order */
- HDmemset(&linfo, 0, sizeof(linfo));
+ memset(&linfo, 0, sizeof(linfo));
if (H5Lget_info_by_idx2(group_id, ".", H5_INDEX_NAME, H5_ITER_DEC, n, &linfo, H5P_DEFAULT) < 0)
TEST_ERROR;
if (linfo.corder != 0)
TEST_ERROR;
/* Verify the link information for new link, in decreasing link name order */
- HDmemset(&linfo, 0, sizeof(linfo));
+ memset(&linfo, 0, sizeof(linfo));
if (H5Lget_info_by_idx2(group_id, ".", H5_INDEX_NAME, H5_ITER_DEC, (hsize_t)0, &linfo, H5P_DEFAULT) < 0)
TEST_ERROR;
if (linfo.corder != (int64_t)n)
@@ -18152,7 +18152,7 @@ link_info_by_idx_check(hid_t group_id, const char *linkname, hsize_t n, hbool_t
/* Verify value for new soft link, in decreasing link name order */
if (!hard_link) {
- HDmemset(tmpval, 0, (size_t)NAME_BUF_SIZE);
+ memset(tmpval, 0, (size_t)NAME_BUF_SIZE);
if (H5Lget_val_by_idx(group_id, ".", H5_INDEX_NAME, H5_ITER_DEC, (hsize_t)0, tmpval,
(size_t)NAME_BUF_SIZE, H5P_DEFAULT) < 0)
TEST_ERROR;
@@ -18161,7 +18161,7 @@ link_info_by_idx_check(hid_t group_id, const char *linkname, hsize_t n, hbool_t
} /* end if */
/* Verify the name for new link, in decreasing link name order */
- HDmemset(tmpname, 0, (size_t)NAME_BUF_SIZE);
+ memset(tmpname, 0, (size_t)NAME_BUF_SIZE);
if (H5Lget_name_by_idx(group_id, ".", H5_INDEX_NAME, H5_ITER_DEC, (hsize_t)0, tmpname,
(size_t)NAME_BUF_SIZE, H5P_DEFAULT) < 0)
TEST_ERROR;
@@ -18482,7 +18482,7 @@ link_info_by_idx_old(hid_t fapl)
if (H5Oget_info3(group_id2, &oi, H5O_INFO_BASIC) < 0)
TEST_ERROR;
- HDmemcpy(&objtoken[u], &oi.token, sizeof(H5O_token_t));
+ memcpy(&objtoken[u], &oi.token, sizeof(H5O_token_t));
/* Close group */
if (H5Gclose(group_id2) < 0)
@@ -18790,7 +18790,7 @@ delete_by_idx(hid_t fapl)
TEST_ERROR;
/* Verify the link information for first link in appropriate order */
- HDmemset(&linfo, 0, sizeof(linfo));
+ memset(&linfo, 0, sizeof(linfo));
if (H5Lget_info_by_idx2(group_id, ".", idx_type, order, (hsize_t)0, &linfo, H5P_DEFAULT) <
0)
TEST_ERROR;
@@ -18804,7 +18804,7 @@ delete_by_idx(hid_t fapl)
} /* end else */
/* Verify the name for first link in appropriate order */
- HDmemset(tmpname, 0, (size_t)NAME_BUF_SIZE);
+ memset(tmpname, 0, (size_t)NAME_BUF_SIZE);
if (H5Lget_name_by_idx(group_id, ".", idx_type, order, (hsize_t)0, tmpname,
(size_t)NAME_BUF_SIZE, H5P_DEFAULT) < 0)
TEST_ERROR;
@@ -18864,7 +18864,7 @@ delete_by_idx(hid_t fapl)
TEST_ERROR;
/* Verify the link information for first link in appropriate order */
- HDmemset(&linfo, 0, sizeof(linfo));
+ memset(&linfo, 0, sizeof(linfo));
if (H5Lget_info_by_idx2(group_id, ".", idx_type, order, (hsize_t)0, &linfo, H5P_DEFAULT) <
0)
TEST_ERROR;
@@ -18878,7 +18878,7 @@ delete_by_idx(hid_t fapl)
} /* end else */
/* Verify the name for first link in appropriate order */
- HDmemset(tmpname, 0, (size_t)NAME_BUF_SIZE);
+ memset(tmpname, 0, (size_t)NAME_BUF_SIZE);
if (H5Lget_name_by_idx(group_id, ".", idx_type, order, (hsize_t)0, tmpname,
(size_t)NAME_BUF_SIZE, H5P_DEFAULT) < 0)
TEST_ERROR;
@@ -18942,7 +18942,7 @@ delete_by_idx(hid_t fapl)
TEST_ERROR;
/* Verify the link information for current link in appropriate order */
- HDmemset(&linfo, 0, sizeof(linfo));
+ memset(&linfo, 0, sizeof(linfo));
if (H5Lget_info_by_idx2(group_id, ".", idx_type, order, (hsize_t)u, &linfo, H5P_DEFAULT) <
0)
TEST_ERROR;
@@ -18956,7 +18956,7 @@ delete_by_idx(hid_t fapl)
} /* end else */
/* Verify the name for current link in appropriate order */
- HDmemset(tmpname, 0, (size_t)NAME_BUF_SIZE);
+ memset(tmpname, 0, (size_t)NAME_BUF_SIZE);
if (H5Lget_name_by_idx(group_id, ".", idx_type, order, (hsize_t)u, tmpname,
(size_t)NAME_BUF_SIZE, H5P_DEFAULT) < 0)
TEST_ERROR;
@@ -18976,7 +18976,7 @@ delete_by_idx(hid_t fapl)
TEST_ERROR;
/* Verify the link information for first link in appropriate order */
- HDmemset(&linfo, 0, sizeof(linfo));
+ memset(&linfo, 0, sizeof(linfo));
if (H5Lget_info_by_idx2(group_id, ".", idx_type, order, (hsize_t)0, &linfo, H5P_DEFAULT) <
0)
TEST_ERROR;
@@ -18990,7 +18990,7 @@ delete_by_idx(hid_t fapl)
} /* end else */
/* Verify the name for first link in appropriate order */
- HDmemset(tmpname, 0, (size_t)NAME_BUF_SIZE);
+ memset(tmpname, 0, (size_t)NAME_BUF_SIZE);
if (H5Lget_name_by_idx(group_id, ".", idx_type, order, (hsize_t)0, tmpname,
(size_t)NAME_BUF_SIZE, H5P_DEFAULT) < 0)
TEST_ERROR;
@@ -19121,7 +19121,7 @@ delete_by_idx_old(hid_t fapl)
if (H5Oget_info3(group_id2, &oi, H5O_INFO_BASIC) < 0)
TEST_ERROR;
- HDmemcpy(&objtoken[u], &oi.token, sizeof(H5O_token_t));
+ memcpy(&objtoken[u], &oi.token, sizeof(H5O_token_t));
/* Close group */
if (H5Gclose(group_id2) < 0)
@@ -19155,7 +19155,7 @@ delete_by_idx_old(hid_t fapl)
TEST_ERROR;
/* Verify the link information for first link in appropriate order */
- HDmemset(&linfo, 0, sizeof(linfo));
+ memset(&linfo, 0, sizeof(linfo));
if (H5Lget_info_by_idx2(group_id, ".", H5_INDEX_NAME, order, (hsize_t)0, &linfo, H5P_DEFAULT) < 0)
TEST_ERROR;
if (order == H5_ITER_INC) {
@@ -19172,7 +19172,7 @@ delete_by_idx_old(hid_t fapl)
} /* end else */
/* Verify the name for first link in appropriate order */
- HDmemset(tmpname, 0, (size_t)NAME_BUF_SIZE);
+ memset(tmpname, 0, (size_t)NAME_BUF_SIZE);
if (H5Lget_name_by_idx(group_id, ".", H5_INDEX_NAME, order, (hsize_t)0, tmpname,
(size_t)NAME_BUF_SIZE, H5P_DEFAULT) < 0)
TEST_ERROR;
@@ -19218,7 +19218,7 @@ delete_by_idx_old(hid_t fapl)
if (H5Oget_info3(group_id2, &oi, H5O_INFO_BASIC) < 0)
TEST_ERROR;
- HDmemcpy(&objtoken[u], &oi.token, sizeof(H5O_token_t));
+ memcpy(&objtoken[u], &oi.token, sizeof(H5O_token_t));
/* Close group */
if (H5Gclose(group_id2) < 0)
@@ -19234,7 +19234,7 @@ delete_by_idx_old(hid_t fapl)
TEST_ERROR;
/* Verify the link information for current link in appropriate order */
- HDmemset(&linfo, 0, sizeof(linfo));
+ memset(&linfo, 0, sizeof(linfo));
if (H5Lget_info_by_idx2(group_id, ".", H5_INDEX_NAME, order, (hsize_t)u, &linfo, H5P_DEFAULT) < 0)
TEST_ERROR;
if (order == H5_ITER_INC) {
@@ -19251,7 +19251,7 @@ delete_by_idx_old(hid_t fapl)
} /* end else */
/* Verify the name for current link in appropriate order */
- HDmemset(tmpname, 0, (size_t)NAME_BUF_SIZE);
+ memset(tmpname, 0, (size_t)NAME_BUF_SIZE);
if (H5Lget_name_by_idx(group_id, ".", H5_INDEX_NAME, order, (hsize_t)u, tmpname,
(size_t)NAME_BUF_SIZE, H5P_DEFAULT) < 0)
TEST_ERROR;
@@ -19272,7 +19272,7 @@ delete_by_idx_old(hid_t fapl)
TEST_ERROR;
/* Verify the link information for first link in appropriate order */
- HDmemset(&linfo, 0, sizeof(linfo));
+ memset(&linfo, 0, sizeof(linfo));
if (H5Lget_info_by_idx2(group_id, ".", H5_INDEX_NAME, order, (hsize_t)0, &linfo, H5P_DEFAULT) < 0)
TEST_ERROR;
if (order == H5_ITER_INC) {
@@ -19289,7 +19289,7 @@ delete_by_idx_old(hid_t fapl)
} /* end else */
/* Verify the name for first link in appropriate order */
- HDmemset(tmpname, 0, (size_t)NAME_BUF_SIZE);
+ memset(tmpname, 0, (size_t)NAME_BUF_SIZE);
if (H5Lget_name_by_idx(group_id, ".", H5_INDEX_NAME, order, (hsize_t)0, tmpname,
(size_t)NAME_BUF_SIZE, H5P_DEFAULT) < 0)
TEST_ERROR;
@@ -19469,7 +19469,7 @@ link_iterate_check(hid_t group_id, H5_index_t idx_type, H5_iter_order_t order, u
iter_info->stop = -1;
iter_info->ncalled = 0;
iter_info->curr = order != H5_ITER_DEC ? 0 : (max_links - 1);
- HDmemset(iter_info->visited, 0, sizeof(hbool_t) * iter_info->max_visit);
+ memset(iter_info->visited, 0, sizeof(hbool_t) * iter_info->max_visit);
if (H5Literate2(group_id, idx_type, order, &skip, link_iterate_cb, iter_info) < 0)
TEST_ERROR;
@@ -19487,7 +19487,7 @@ link_iterate_check(hid_t group_id, H5_index_t idx_type, H5_iter_order_t order, u
iter_info->stop = -1;
iter_info->ncalled = 0;
iter_info->curr = order != H5_ITER_DEC ? 0 : (max_links - 1);
- HDmemset(iter_info->visited, 0, sizeof(hbool_t) * iter_info->max_visit);
+ memset(iter_info->visited, 0, sizeof(hbool_t) * iter_info->max_visit);
if (H5Giterate(group_id, ".", &gskip, group_iterate_cb, iter_info) < 0)
TEST_ERROR;
@@ -19505,7 +19505,7 @@ link_iterate_check(hid_t group_id, H5_index_t idx_type, H5_iter_order_t order, u
iter_info->stop = -1;
iter_info->ncalled = 0;
iter_info->curr = (int64_t)(order != H5_ITER_DEC ? skip : ((max_links - 1) - skip));
- HDmemset(iter_info->visited, 0, sizeof(hbool_t) * iter_info->max_visit);
+ memset(iter_info->visited, 0, sizeof(hbool_t) * iter_info->max_visit);
if (H5Literate2(group_id, idx_type, order, &skip, link_iterate_cb, iter_info) < 0)
TEST_ERROR;
@@ -19541,7 +19541,7 @@ link_iterate_check(hid_t group_id, H5_index_t idx_type, H5_iter_order_t order, u
iter_info->stop = -1;
iter_info->ncalled = 0;
iter_info->curr = order != H5_ITER_DEC ? (unsigned)gskip : ((max_links - 1) - (unsigned)gskip);
- HDmemset(iter_info->visited, 0, sizeof(hbool_t) * iter_info->max_visit);
+ memset(iter_info->visited, 0, sizeof(hbool_t) * iter_info->max_visit);
if (H5Giterate(group_id, ".", &gskip, group_iterate_cb, iter_info) < 0)
TEST_ERROR;
@@ -19577,7 +19577,7 @@ link_iterate_check(hid_t group_id, H5_index_t idx_type, H5_iter_order_t order, u
iter_info->stop = 3;
iter_info->ncalled = 0;
iter_info->curr = order != H5_ITER_DEC ? 0 : (max_links - 1);
- HDmemset(iter_info->visited, 0, sizeof(hbool_t) * iter_info->max_visit);
+ memset(iter_info->visited, 0, sizeof(hbool_t) * iter_info->max_visit);
if ((ret = H5Literate2(group_id, idx_type, order, &skip, link_iterate_cb, iter_info)) < 0)
TEST_ERROR;
if (ret != CORDER_ITER_STOP)
@@ -19592,7 +19592,7 @@ link_iterate_check(hid_t group_id, H5_index_t idx_type, H5_iter_order_t order, u
iter_info->stop = 3;
iter_info->ncalled = 0;
iter_info->curr = order != H5_ITER_DEC ? 0 : (max_links - 1);
- HDmemset(iter_info->visited, 0, sizeof(hbool_t) * iter_info->max_visit);
+ memset(iter_info->visited, 0, sizeof(hbool_t) * iter_info->max_visit);
if ((ret = H5Giterate(group_id, ".", &gskip, group_iterate_cb, iter_info)) < 0)
TEST_ERROR;
if (ret != CORDER_ITER_STOP)
@@ -19963,7 +19963,7 @@ link_iterate_old_check(hid_t group_id, H5_iter_order_t order, unsigned max_links
iter_info->stop = -1;
iter_info->ncalled = 0;
iter_info->curr = order != H5_ITER_DEC ? 0 : (max_links - 1);
- HDmemset(iter_info->visited, 0, sizeof(hbool_t) * iter_info->max_visit);
+ memset(iter_info->visited, 0, sizeof(hbool_t) * iter_info->max_visit);
if (H5Literate2(group_id, H5_INDEX_NAME, order, &skip, link_iterate_old_cb, iter_info) < 0)
TEST_ERROR;
@@ -19981,7 +19981,7 @@ link_iterate_old_check(hid_t group_id, H5_iter_order_t order, unsigned max_links
iter_info->stop = -1;
iter_info->ncalled = 0;
iter_info->curr = order != H5_ITER_DEC ? 0 : (max_links - 1);
- HDmemset(iter_info->visited, 0, sizeof(hbool_t) * iter_info->max_visit);
+ memset(iter_info->visited, 0, sizeof(hbool_t) * iter_info->max_visit);
if (H5Giterate(group_id, ".", &gskip, group_iterate_old_cb, iter_info) < 0)
TEST_ERROR;
@@ -19999,7 +19999,7 @@ link_iterate_old_check(hid_t group_id, H5_iter_order_t order, unsigned max_links
iter_info->stop = -1;
iter_info->ncalled = 0;
iter_info->curr = (int64_t)(order != H5_ITER_DEC ? skip : ((max_links - 1) - skip));
- HDmemset(iter_info->visited, 0, sizeof(hbool_t) * iter_info->max_visit);
+ memset(iter_info->visited, 0, sizeof(hbool_t) * iter_info->max_visit);
if (H5Literate2(group_id, H5_INDEX_NAME, order, &skip, link_iterate_old_cb, iter_info) < 0)
TEST_ERROR;
@@ -20035,7 +20035,7 @@ link_iterate_old_check(hid_t group_id, H5_iter_order_t order, unsigned max_links
iter_info->stop = -1;
iter_info->ncalled = 0;
iter_info->curr = order != H5_ITER_DEC ? (unsigned)gskip : ((max_links - 1) - (unsigned)gskip);
- HDmemset(iter_info->visited, 0, sizeof(hbool_t) * iter_info->max_visit);
+ memset(iter_info->visited, 0, sizeof(hbool_t) * iter_info->max_visit);
if (H5Giterate(group_id, ".", &gskip, group_iterate_old_cb, iter_info) < 0)
TEST_ERROR;
@@ -20071,7 +20071,7 @@ link_iterate_old_check(hid_t group_id, H5_iter_order_t order, unsigned max_links
iter_info->stop = 3;
iter_info->ncalled = 0;
iter_info->curr = order != H5_ITER_DEC ? 0 : (max_links - 1);
- HDmemset(iter_info->visited, 0, sizeof(hbool_t) * iter_info->max_visit);
+ memset(iter_info->visited, 0, sizeof(hbool_t) * iter_info->max_visit);
if ((ret = H5Literate2(group_id, H5_INDEX_NAME, order, &skip, link_iterate_old_cb, iter_info)) < 0)
TEST_ERROR;
if (ret != CORDER_ITER_STOP)
@@ -20086,7 +20086,7 @@ link_iterate_old_check(hid_t group_id, H5_iter_order_t order, unsigned max_links
iter_info->stop = 3;
iter_info->ncalled = 0;
iter_info->curr = order != H5_ITER_DEC ? 0 : (max_links - 1);
- HDmemset(iter_info->visited, 0, sizeof(hbool_t) * iter_info->max_visit);
+ memset(iter_info->visited, 0, sizeof(hbool_t) * iter_info->max_visit);
if ((ret = H5Giterate(group_id, ".", &gskip, group_iterate_old_cb, iter_info)) < 0)
TEST_ERROR;
if (ret != CORDER_ITER_STOP)
@@ -20334,7 +20334,7 @@ open_by_idx_check(hid_t main_group_id, hid_t soft_group_id, hid_t mount_file_id,
/* Get the address of the root group in the file to mount */
if (H5Oget_info3(mount_file_id, &oi, H5O_INFO_BASIC) < 0)
TEST_ERROR;
- HDmemcpy(&mnt_root_token, &oi.token, sizeof(mnt_root_token));
+ memcpy(&mnt_root_token, &oi.token, sizeof(mnt_root_token));
/* Mount a file over a group in main group */
mnt_idx = 2;
diff --git a/test/mdset.c b/test/mdset.c
index b6a7fe0..6e736df 100644
--- a/test/mdset.c
+++ b/test/mdset.c
@@ -372,8 +372,8 @@ test_mdset(size_t niter, unsigned flags, hid_t fapl_id)
} /* end for */
/* Initialize read buffer and expected read buffer */
- (void)HDmemset(rbuf, 0, buf_size);
- (void)HDmemset(erbuf, 0, buf_size);
+ (void)memset(rbuf, 0, buf_size);
+ (void)memset(erbuf, 0, buf_size);
/* Initialize write buffer */
for (j = 0; j < max_dsets; j++)
@@ -382,7 +382,7 @@ test_mdset(size_t niter, unsigned flags, hid_t fapl_id)
wbufi[j][k][l] = (unsigned)((j * MAX_DSET_X * MAX_DSET_Y) + (k * MAX_DSET_Y) + l);
/* Initialize expected file buffer */
- (void)HDmemset(efbuf, 0, buf_size);
+ (void)memset(efbuf, 0, buf_size);
/* Perform read/write operations */
for (j = 0; j < OPS_PER_FILE; j++) {
diff --git a/test/mf.c b/test/mf.c
index 70b2e0e..c224119 100644
--- a/test/mf.c
+++ b/test/mf.c
@@ -1104,7 +1104,7 @@ test_mf_fs_start(hid_t fapl)
if (f->shared->fs_man[H5FD_MEM_SUPER]->client != H5FS_CLIENT_FILE_ID)
TEST_ERROR;
- HDmemset(&state, 0, sizeof(H5FS_stat_t));
+ memset(&state, 0, sizeof(H5FS_stat_t));
if (check_stats(f, f->shared->fs_man[H5FD_MEM_SUPER], &state))
TEST_ERROR;
@@ -1225,7 +1225,7 @@ test_mf_fs_alloc_free(hid_t fapl)
if (H5MF__add_sect(f, H5FD_MEM_SUPER, f->shared->fs_man[H5FD_MEM_SUPER], sect_node))
FAIL_STACK_ERROR;
- HDmemset(&state, 0, sizeof(H5FS_stat_t));
+ memset(&state, 0, sizeof(H5FS_stat_t));
state.tot_space += TBLOCK_SIZE30;
state.tot_sect_count += 1;
state.serial_sect_count += 1;
@@ -1303,7 +1303,7 @@ test_mf_fs_alloc_free(hid_t fapl)
if (H5MF__add_sect(f, H5FD_MEM_SUPER, f->shared->fs_man[H5FD_MEM_SUPER], sect_node))
FAIL_STACK_ERROR;
- HDmemset(&state, 0, sizeof(H5FS_stat_t));
+ memset(&state, 0, sizeof(H5FS_stat_t));
state.tot_space += TBLOCK_SIZE30;
state.tot_sect_count += 1;
state.serial_sect_count += 1;
@@ -1379,7 +1379,7 @@ test_mf_fs_alloc_free(hid_t fapl)
if (H5MF__add_sect(f, H5FD_MEM_SUPER, f->shared->fs_man[H5FD_MEM_SUPER], sect_node))
FAIL_STACK_ERROR;
- HDmemset(&state, 0, sizeof(H5FS_stat_t));
+ memset(&state, 0, sizeof(H5FS_stat_t));
state.tot_space += TBLOCK_SIZE30;
state.tot_sect_count += 1;
state.serial_sect_count += 1;
@@ -1411,7 +1411,7 @@ test_mf_fs_alloc_free(hid_t fapl)
if (tmp != TBLOCK_ADDR70)
TEST_ERROR;
- HDmemset(&state, 0, sizeof(H5FS_stat_t));
+ memset(&state, 0, sizeof(H5FS_stat_t));
if (check_stats(f, f->shared->fs_man[H5FD_MEM_SUPER], &state))
TEST_ERROR;
@@ -1555,7 +1555,7 @@ test_mf_fs_extend(hid_t fapl)
if (H5MF__add_sect(f, H5FD_MEM_SUPER, f->shared->fs_man[H5FD_MEM_SUPER], sect_node1))
FAIL_STACK_ERROR;
- HDmemset(&state, 0, sizeof(H5FS_stat_t));
+ memset(&state, 0, sizeof(H5FS_stat_t));
state.tot_space += TBLOCK_SIZE30;
state.tot_sect_count += 1;
state.serial_sect_count += 1;
@@ -1665,7 +1665,7 @@ test_mf_fs_extend(hid_t fapl)
if (H5MF__add_sect(f, H5FD_MEM_SUPER, f->shared->fs_man[H5FD_MEM_SUPER], sect_node1))
FAIL_STACK_ERROR;
- HDmemset(&state, 0, sizeof(H5FS_stat_t));
+ memset(&state, 0, sizeof(H5FS_stat_t));
state.tot_space += TBLOCK_SIZE30;
state.tot_sect_count += 1;
state.serial_sect_count += 1;
@@ -1770,7 +1770,7 @@ test_mf_fs_extend(hid_t fapl)
if (H5MF__add_sect(f, H5FD_MEM_SUPER, f->shared->fs_man[H5FD_MEM_SUPER], sect_node1))
FAIL_STACK_ERROR;
- HDmemset(&state, 0, sizeof(H5FS_stat_t));
+ memset(&state, 0, sizeof(H5FS_stat_t));
state.tot_space += TBLOCK_SIZE30;
state.tot_sect_count += 1;
state.serial_sect_count += 1;
@@ -1876,7 +1876,7 @@ test_mf_fs_extend(hid_t fapl)
if (H5MF__add_sect(f, H5FD_MEM_SUPER, f->shared->fs_man[H5FD_MEM_SUPER], sect_node1))
FAIL_STACK_ERROR;
- HDmemset(&state, 0, sizeof(H5FS_stat_t));
+ memset(&state, 0, sizeof(H5FS_stat_t));
state.tot_space += (TBLOCK_SIZE30 - 10);
state.tot_sect_count += 1;
state.serial_sect_count += 1;
@@ -3028,7 +3028,7 @@ test_mf_aggr_alloc6(const char *env_h5_drvr, hid_t fapl)
TEST_ERROR;
/* Verify that meta_aggr's unused space of 1968 is freed to free-space */
- HDmemset(&state, 0, sizeof(H5FS_stat_t));
+ memset(&state, 0, sizeof(H5FS_stat_t));
state.tot_space += (TBLOCK_SIZE2048 - (TBLOCK_SIZE30 + TBLOCK_SIZE50));
state.tot_sect_count += 1;
state.serial_sect_count += 1;
@@ -3218,7 +3218,7 @@ test_mf_aggr_alloc7(const char *env_h5_drvr, hid_t fapl)
TEST_ERROR;
/* Verify that meta_aggr's unused space of 1968 is freed to free-space */
- HDmemset(&state, 0, sizeof(H5FS_stat_t));
+ memset(&state, 0, sizeof(H5FS_stat_t));
state.tot_space += (TBLOCK_SIZE2048 - (TBLOCK_SIZE30 + TBLOCK_SIZE50));
state.tot_sect_count += 1;
state.serial_sect_count += 1;
@@ -3913,7 +3913,7 @@ test_mf_align_eoa(const char *env_h5_drvr, hid_t fapl, hid_t new_fapl)
if (ma_addr || ma_size)
TEST_ERROR;
- HDmemset(&state, 0, sizeof(H5FS_stat_t));
+ memset(&state, 0, sizeof(H5FS_stat_t));
if (mis_align) {
state.tot_space += mis_align;
state.tot_sect_count += 1;
@@ -4186,7 +4186,7 @@ test_mf_align_fs(const char *env_h5_drvr, hid_t fapl, hid_t new_fapl)
if (H5MF__add_sect(f, H5FD_MEM_SUPER, f->shared->fs_man[H5FD_MEM_SUPER], sect_node))
FAIL_STACK_ERROR;
- HDmemset(&state, 0, sizeof(H5FS_stat_t));
+ memset(&state, 0, sizeof(H5FS_stat_t));
state.tot_space += TBLOCK_SIZE50;
state.tot_sect_count += 1;
state.serial_sect_count += 1;
@@ -4250,7 +4250,7 @@ test_mf_align_fs(const char *env_h5_drvr, hid_t fapl, hid_t new_fapl)
if (H5MF__add_sect(f, H5FD_MEM_SUPER, f->shared->fs_man[H5FD_MEM_SUPER], sect_node))
FAIL_STACK_ERROR;
- HDmemset(&state, 0, sizeof(H5FS_stat_t));
+ memset(&state, 0, sizeof(H5FS_stat_t));
state.tot_space += TBLOCK_SIZE8000;
state.tot_sect_count += 1;
state.serial_sect_count += 1;
@@ -4337,7 +4337,7 @@ test_mf_align_fs(const char *env_h5_drvr, hid_t fapl, hid_t new_fapl)
if (H5MF__add_sect(f, H5FD_MEM_SUPER, f->shared->fs_man[H5FD_MEM_SUPER], sect_node))
FAIL_STACK_ERROR;
- HDmemset(&state, 0, sizeof(H5FS_stat_t));
+ memset(&state, 0, sizeof(H5FS_stat_t));
state.tot_space += TBLOCK_SIZE700;
state.tot_sect_count += 1;
state.serial_sect_count += 1;
@@ -4557,7 +4557,7 @@ test_mf_align_alloc1(const char *env_h5_drvr, hid_t fapl, hid_t new_fapl)
TEST_ERROR;
/* fragment for alignment of block 30 is freed to free-space */
- HDmemset(&state, 0, sizeof(H5FS_stat_t));
+ memset(&state, 0, sizeof(H5FS_stat_t));
if (mis_align) {
state.tot_space += mis_align;
state.tot_sect_count += 1;
@@ -4820,7 +4820,7 @@ test_mf_align_alloc2(const char *env_h5_drvr, hid_t fapl, hid_t new_fapl)
TEST_ERROR;
/* fragment for alignment of block 30 is freed to free-space */
- HDmemset(&state, 0, sizeof(H5FS_stat_t) * H5FD_MEM_NTYPES);
+ memset(&state, 0, sizeof(H5FS_stat_t) * H5FD_MEM_NTYPES);
if (mis_align) {
state[type].tot_space += mis_align;
state[type].tot_sect_count += 1;
@@ -5166,7 +5166,7 @@ test_mf_align_alloc3(const char *env_h5_drvr, hid_t fapl, hid_t new_fapl)
TEST_ERROR;
/* fragment for alignment of block 30 is freed to free-space */
- HDmemset(&state, 0, sizeof(H5FS_stat_t) * H5FD_MEM_NTYPES);
+ memset(&state, 0, sizeof(H5FS_stat_t) * H5FD_MEM_NTYPES);
if (mis_align) {
state[type].tot_space += mis_align;
state[type].tot_sect_count += 1;
@@ -5480,7 +5480,7 @@ test_mf_align_alloc4(const char *env_h5_drvr, hid_t fapl, hid_t new_fapl)
TEST_ERROR;
/* fragment for alignment of block 30 is freed to free-space */
- HDmemset(&state, 0, sizeof(H5FS_stat_t));
+ memset(&state, 0, sizeof(H5FS_stat_t));
if (mis_align) {
state.tot_space += mis_align;
state.tot_sect_count += 1;
@@ -5704,7 +5704,7 @@ test_mf_align_alloc5(const char *env_h5_drvr, hid_t fapl, hid_t new_fapl)
TEST_ERROR;
/* fragment for alignment of block 30 is freed to free-space */
- HDmemset(&state, 0, sizeof(H5FS_stat_t) * H5FD_MEM_NTYPES);
+ memset(&state, 0, sizeof(H5FS_stat_t) * H5FD_MEM_NTYPES);
if (mis_align) {
state[type].tot_space += mis_align;
state[type].tot_sect_count += 1;
@@ -5970,7 +5970,7 @@ test_mf_align_alloc6(const char *env_h5_drvr, hid_t fapl, hid_t new_fapl)
TEST_ERROR;
/* fragment for alignment of block 30 in meta_aggr is freed to free-space */
- HDmemset(&state, 0, sizeof(H5FS_stat_t) * H5FD_MEM_NTYPES);
+ memset(&state, 0, sizeof(H5FS_stat_t) * H5FD_MEM_NTYPES);
if (mis_align) {
state[type].tot_space += mis_align;
state[type].tot_sect_count += 1;
@@ -6182,7 +6182,7 @@ test_mf_bug1(const char *env_h5_drvr, hid_t fapl)
H5FD_mem_t mt;
/* Get current multi settings */
- HDmemset(memb_name, 0, sizeof memb_name);
+ memset(memb_name, 0, sizeof memb_name);
if (H5Pget_fapl_multi(copied_fapl, memb_map, memb_fapl_arr, memb_name, memb_addr, &relax) < 0)
TEST_ERROR;
@@ -6570,11 +6570,11 @@ error:
#define MULTI_SETUP(memb_map, memb_fapl, memb_name, memb_addr, sv) \
{ \
H5FD_mem_t mt; \
- HDmemset(memb_map, 0, sizeof memb_map); \
- HDmemset(memb_fapl, 0, sizeof memb_fapl); \
- HDmemset(memb_name, 0, sizeof memb_name); \
- HDmemset(memb_addr, 0, sizeof memb_addr); \
- HDmemset(sv, 0, sizeof sv); \
+ memset(memb_map, 0, sizeof memb_map); \
+ memset(memb_fapl, 0, sizeof memb_fapl); \
+ memset(memb_name, 0, sizeof memb_name); \
+ memset(memb_addr, 0, sizeof memb_addr); \
+ memset(sv, 0, sizeof sv); \
for (mt = H5FD_MEM_DEFAULT; mt < H5FD_MEM_NTYPES; mt++) { \
memb_map[mt] = H5FD_MEM_SUPER; \
memb_fapl[mt] = H5P_DEFAULT; \
@@ -7492,7 +7492,7 @@ test_mf_strat_thres_gone(const char *env_h5_drvr, hid_t fapl, hbool_t new_format
/* Set the filename to use for this test (dependent on fapl) */
h5_fixname(FILENAME[0], fapl, filename, sizeof(filename));
- HDmemset(&fs_state_zero, 0, sizeof(H5FS_stat_t));
+ memset(&fs_state_zero, 0, sizeof(H5FS_stat_t));
/* Copy the file access property list */
if ((fapl2 = H5Pcopy(fapl)) < 0)
@@ -7512,7 +7512,7 @@ test_mf_strat_thres_gone(const char *env_h5_drvr, hid_t fapl, hbool_t new_format
continue;
/* Clear out free-space statistics */
- HDmemset(&fs_state, 0, sizeof(H5FS_stat_t));
+ memset(&fs_state, 0, sizeof(H5FS_stat_t));
/* Create file-creation template */
if ((fcpl = H5Pcreate(H5P_FILE_CREATE)) < 0)
@@ -7757,7 +7757,7 @@ set_multi_split(hid_t fapl, hsize_t pagesize, hbool_t is_multi_or_split)
assert(is_multi_or_split);
- HDmemset(memb_name, 0, sizeof memb_name);
+ memset(memb_name, 0, sizeof memb_name);
/* Get current split settings */
if (H5Pget_fapl_multi(fapl, memb_map, memb_fapl_arr, memb_name, memb_addr, &relax) < 0)
@@ -8882,7 +8882,7 @@ test_page_alignment(const char *env_h5_drvr, hid_t fapl)
if (H5Pset_alignment(memb_fapl, 0, (hsize_t)TEST_ALIGN16) < 0)
TEST_ERROR;
- HDmemset(memb_name, 0, sizeof memb_name);
+ memset(memb_name, 0, sizeof memb_name);
if (split) {
/* Set split driver with new FAPLs */
diff --git a/test/mirror_vfd.c b/test/mirror_vfd.c
index e738364..e0068c0 100644
--- a/test/mirror_vfd.c
+++ b/test/mirror_vfd.c
@@ -303,13 +303,13 @@ test_encdec_uint8_t(void)
TESTING("Mirror encode/decode of uint8_t data");
/* Start of buffer uint8_t */
- HDmemset(buf, 0, 8);
- HDmemset(expected, 0, 8);
+ memset(buf, 0, 8);
+ memset(expected, 0, 8);
expected[0] = 200;
out = 0;
if (H5FD__mirror_xmit_encode_uint8(buf, v) != 1)
TEST_ERROR;
- if (HDmemcmp(buf, expected, 8) != 0) {
+ if (memcmp(buf, expected, 8) != 0) {
PRINT_BUFFER_DIFF(buf, expected, 8);
TEST_ERROR;
}
@@ -319,13 +319,13 @@ test_encdec_uint8_t(void)
TEST_ERROR;
/* Middle of buffer uint8_t */
- HDmemset(buf, 0, 8);
- HDmemset(expected, 0, 8);
+ memset(buf, 0, 8);
+ memset(expected, 0, 8);
expected[3] = v;
out = 0;
if (H5FD__mirror_xmit_encode_uint8((buf + 3), v) != 1)
TEST_ERROR;
- if (HDmemcmp(buf, expected, 8) != 0) {
+ if (memcmp(buf, expected, 8) != 0) {
PRINT_BUFFER_DIFF(buf, expected, 8);
TEST_ERROR;
}
@@ -335,13 +335,13 @@ test_encdec_uint8_t(void)
TEST_ERROR;
/* End of buffer uint8_t */
- HDmemset(buf, 0, 8);
- HDmemset(expected, 0, 8);
+ memset(buf, 0, 8);
+ memset(expected, 0, 8);
expected[7] = v;
out = 0;
if (H5FD__mirror_xmit_encode_uint8((buf + 7), v) != 1)
TEST_ERROR;
- if (HDmemcmp(buf, expected, 8) != 0) {
+ if (memcmp(buf, expected, 8) != 0) {
PRINT_BUFFER_DIFF(buf, expected, 8);
TEST_ERROR;
}
@@ -369,14 +369,14 @@ test_encdec_uint16_t(void)
TESTING("Mirror encode/decode of uint16_t data");
/* Start of buffer uint16_t */
- HDmemset(buf, 0, 8);
- HDmemset(expected, 0, 8);
+ memset(buf, 0, 8);
+ memset(expected, 0, 8);
expected[0] = 0x8F;
expected[1] = 0x02;
out = 0;
if (H5FD__mirror_xmit_encode_uint16(buf, v) != 2)
TEST_ERROR;
- if (HDmemcmp(buf, expected, 8) != 0) {
+ if (memcmp(buf, expected, 8) != 0) {
PRINT_BUFFER_DIFF(buf, expected, 8);
TEST_ERROR;
}
@@ -386,14 +386,14 @@ test_encdec_uint16_t(void)
TEST_ERROR;
/* Middle of buffer uint16_t */
- HDmemset(buf, 0, 8);
- HDmemset(expected, 0, 8);
+ memset(buf, 0, 8);
+ memset(expected, 0, 8);
expected[3] = 0x8F;
expected[4] = 0x02;
out = 0;
if (H5FD__mirror_xmit_encode_uint16((buf + 3), v) != 2)
TEST_ERROR;
- if (HDmemcmp(buf, expected, 8) != 0) {
+ if (memcmp(buf, expected, 8) != 0) {
PRINT_BUFFER_DIFF(buf, expected, 8);
TEST_ERROR;
}
@@ -409,14 +409,14 @@ test_encdec_uint16_t(void)
TEST_ERROR;
/* End of buffer uint16_t */
- HDmemset(buf, 0, 8);
- HDmemset(expected, 0, 8);
+ memset(buf, 0, 8);
+ memset(expected, 0, 8);
expected[6] = 0x8F;
expected[7] = 0x02;
out = 0;
if (H5FD__mirror_xmit_encode_uint16((buf + 6), v) != 2)
TEST_ERROR;
- if (HDmemcmp(buf, expected, 8) != 0) {
+ if (memcmp(buf, expected, 8) != 0) {
PRINT_BUFFER_DIFF(buf, expected, 8);
TEST_ERROR;
}
@@ -444,8 +444,8 @@ test_encdec_uint32_t(void)
TESTING("Mirror encode/decode of uint32_t data");
/* Start of buffer uint32_t */
- HDmemset(buf, 0, 8);
- HDmemset(expected, 0, 8);
+ memset(buf, 0, 8);
+ memset(expected, 0, 8);
expected[0] = 0x8F;
expected[1] = 0x02;
expected[2] = 0x00;
@@ -453,7 +453,7 @@ test_encdec_uint32_t(void)
out = 0;
if (H5FD__mirror_xmit_encode_uint32(buf, v) != 4)
TEST_ERROR;
- if (HDmemcmp(buf, expected, 8) != 0) {
+ if (memcmp(buf, expected, 8) != 0) {
PRINT_BUFFER_DIFF(buf, expected, 8);
TEST_ERROR;
}
@@ -463,8 +463,8 @@ test_encdec_uint32_t(void)
TEST_ERROR;
/* Middle of buffer uint32_t */
- HDmemset(buf, 0, 8);
- HDmemset(expected, 0, 8);
+ memset(buf, 0, 8);
+ memset(expected, 0, 8);
expected[3] = 0x8F;
expected[4] = 0x02;
expected[5] = 0x00;
@@ -472,7 +472,7 @@ test_encdec_uint32_t(void)
out = 0;
if (H5FD__mirror_xmit_encode_uint32((buf + 3), v) != 4)
TEST_ERROR;
- if (HDmemcmp(buf, expected, 8) != 0) {
+ if (memcmp(buf, expected, 8) != 0) {
PRINT_BUFFER_DIFF(buf, expected, 8);
TEST_ERROR;
}
@@ -487,8 +487,8 @@ test_encdec_uint32_t(void)
TEST_ERROR;
/* End of buffer uint32_t */
- HDmemset(buf, 0, 8);
- HDmemset(expected, 0, 8);
+ memset(buf, 0, 8);
+ memset(expected, 0, 8);
expected[4] = 0x8F;
expected[5] = 0x02;
expected[6] = 0x00;
@@ -496,7 +496,7 @@ test_encdec_uint32_t(void)
out = 0;
if (H5FD__mirror_xmit_encode_uint32((buf + 4), v) != 4)
TEST_ERROR;
- if (HDmemcmp(buf, expected, 8) != 0) {
+ if (memcmp(buf, expected, 8) != 0) {
PRINT_BUFFER_DIFF(buf, expected, 8);
TEST_ERROR;
}
@@ -524,8 +524,8 @@ test_encdec_uint64_t(void)
TESTING("Mirror encode/decode of uint64_t data");
/* Start of buffer uint64_t */
- HDmemset(buf, 0, 16);
- HDmemset(expected, 0, 16);
+ memset(buf, 0, 16);
+ memset(expected, 0, 16);
expected[0] = 0x90;
expected[1] = 0xDC;
expected[2] = 0xBE;
@@ -537,7 +537,7 @@ test_encdec_uint64_t(void)
out = 0;
if (H5FD__mirror_xmit_encode_uint64(buf, v) != 8)
TEST_ERROR;
- if (HDmemcmp(buf, expected, 16) != 0) {
+ if (memcmp(buf, expected, 16) != 0) {
PRINT_BUFFER_DIFF(buf, expected, 16);
TEST_ERROR;
}
@@ -547,8 +547,8 @@ test_encdec_uint64_t(void)
TEST_ERROR;
/* Middle of buffer uint64_t */
- HDmemset(buf, 0, 16);
- HDmemset(expected, 0, 16);
+ memset(buf, 0, 16);
+ memset(expected, 0, 16);
expected[3] = 0x90;
expected[4] = 0xDC;
expected[5] = 0xBE;
@@ -560,7 +560,7 @@ test_encdec_uint64_t(void)
out = 0;
if (H5FD__mirror_xmit_encode_uint64((buf + 3), v) != 8)
TEST_ERROR;
- if (HDmemcmp(buf, expected, 16) != 0) {
+ if (memcmp(buf, expected, 16) != 0) {
PRINT_BUFFER_DIFF(buf, expected, 16);
TEST_ERROR;
}
@@ -575,8 +575,8 @@ test_encdec_uint64_t(void)
TEST_ERROR;
/* End of buffer uint64_t */
- HDmemset(buf, 0, 16);
- HDmemset(expected, 0, 16);
+ memset(buf, 0, 16);
+ memset(expected, 0, 16);
expected[8] = 0x90;
expected[9] = 0xDC;
expected[10] = 0xBE;
@@ -588,7 +588,7 @@ test_encdec_uint64_t(void)
out = 0;
if (H5FD__mirror_xmit_encode_uint64((buf + 8), v) != 8)
TEST_ERROR;
- if (HDmemcmp(buf, expected, 16) != 0) {
+ if (memcmp(buf, expected, 16) != 0) {
PRINT_BUFFER_DIFF(buf, expected, 16);
TEST_ERROR;
}
@@ -628,7 +628,7 @@ test_encdec_header(H5FD_mirror_xmit_t xmit_mock)
FAIL_PUTS_ERROR("Header size definition does not match test\n");
/* Populate the expected buffer; expect end padding of 0xFF */
- HDmemset(expected, 0xFF, H5FD_MIRROR_XMIT_HEADER_SIZE + 8);
+ memset(expected, 0xFF, H5FD_MIRROR_XMIT_HEADER_SIZE + 8);
for (i = 0; i < H5FD_MIRROR_XMIT_HEADER_SIZE; i++) {
expected[i + 2] = (unsigned char)i;
}
@@ -636,10 +636,10 @@ test_encdec_header(H5FD_mirror_xmit_t xmit_mock)
/* Encode, and compare buffer contents
* Initial buffer is filled with 0xFF to match expected padding
*/
- HDmemset(buf, 0xFF, H5FD_MIRROR_XMIT_HEADER_SIZE + 8);
+ memset(buf, 0xFF, H5FD_MIRROR_XMIT_HEADER_SIZE + 8);
if (H5FD_mirror_xmit_encode_header((buf + 2), &xmit_mock) != H5FD_MIRROR_XMIT_HEADER_SIZE)
TEST_ERROR;
- if (HDmemcmp(buf, expected, H5FD_MIRROR_XMIT_HEADER_SIZE + 8) != 0) {
+ if (memcmp(buf, expected, H5FD_MIRROR_XMIT_HEADER_SIZE + 8) != 0) {
PRINT_BUFFER_DIFF(buf, expected, H5FD_MIRROR_XMIT_HEADER_SIZE + 8);
TEST_ERROR;
}
@@ -704,7 +704,7 @@ test_encdec_set_eoa(H5FD_mirror_xmit_t xmit_mock)
FAIL_PUTS_ERROR("shared header structure is not in expected state");
/* Populate the expected buffer; expect end padding of 0xFF */
- HDmemset(expected, 0xFF, H5FD_MIRROR_XMIT_EOA_SIZE + 8);
+ memset(expected, 0xFF, H5FD_MIRROR_XMIT_EOA_SIZE + 8);
for (i = 0; i < H5FD_MIRROR_XMIT_EOA_SIZE; i++)
expected[i + 2] = (unsigned char)i;
@@ -716,10 +716,10 @@ test_encdec_set_eoa(H5FD_mirror_xmit_t xmit_mock)
/* Encode, and compare buffer contents
* Initial buffer is filled with 0xFF to match expected padding
*/
- HDmemset(buf, 0xFF, H5FD_MIRROR_XMIT_EOA_SIZE + 8);
+ memset(buf, 0xFF, H5FD_MIRROR_XMIT_EOA_SIZE + 8);
if (H5FD_mirror_xmit_encode_set_eoa((buf + 2), &xmit_in) != H5FD_MIRROR_XMIT_EOA_SIZE)
TEST_ERROR;
- if (HDmemcmp(buf, expected, H5FD_MIRROR_XMIT_EOA_SIZE + 8) != 0) {
+ if (memcmp(buf, expected, H5FD_MIRROR_XMIT_EOA_SIZE + 8) != 0) {
PRINT_BUFFER_DIFF(buf, expected, H5FD_MIRROR_XMIT_EOA_SIZE + 8);
TEST_ERROR;
}
@@ -792,7 +792,7 @@ test_encdec_lock(H5FD_mirror_xmit_t xmit_mock)
FAIL_PUTS_ERROR("shared header structure is not in expected state");
/* Populate the expected buffer; expect end padding of 0xFF */
- HDmemset(expected, 0xFF, H5FD_MIRROR_XMIT_LOCK_SIZE + 8);
+ memset(expected, 0xFF, H5FD_MIRROR_XMIT_LOCK_SIZE + 8);
for (i = 0; i < H5FD_MIRROR_XMIT_LOCK_SIZE; i++)
expected[i + 2] = (unsigned char)i;
@@ -803,10 +803,10 @@ test_encdec_lock(H5FD_mirror_xmit_t xmit_mock)
/* Encode, and compare buffer contents
* Initial buffer is filled with 0xFF to match expected padding
*/
- HDmemset(buf, 0xFF, H5FD_MIRROR_XMIT_LOCK_SIZE + 8);
+ memset(buf, 0xFF, H5FD_MIRROR_XMIT_LOCK_SIZE + 8);
if (H5FD_mirror_xmit_encode_lock((buf + 2), &xmit_in) != H5FD_MIRROR_XMIT_LOCK_SIZE)
TEST_ERROR;
- if (HDmemcmp(buf, expected, H5FD_MIRROR_XMIT_LOCK_SIZE + 8) != 0) {
+ if (memcmp(buf, expected, H5FD_MIRROR_XMIT_LOCK_SIZE + 8) != 0) {
PRINT_BUFFER_DIFF(buf, expected, H5FD_MIRROR_XMIT_LOCK_SIZE + 8);
TEST_ERROR;
}
@@ -887,7 +887,7 @@ test_encdec_open(H5FD_mirror_xmit_t xmit_mock)
FAIL_PUTS_ERROR("Unable to allocate memory for xmit_out");
/* Populate the expected buffer; expect end padding of 0xFF */
- HDmemset(expected, 0xFF, H5FD_MIRROR_XMIT_OPEN_SIZE + 8);
+ memset(expected, 0xFF, H5FD_MIRROR_XMIT_OPEN_SIZE + 8);
for (size_t i = 0; i < H5FD_MIRROR_XMIT_OPEN_SIZE; i++) {
/* 0x100 is "zero" in a byte, so encode will treat it as a NULL-
* terminator in the filepath string. Expect all zeroes following.
@@ -909,10 +909,10 @@ test_encdec_open(H5FD_mirror_xmit_t xmit_mock)
/* Encode, and compare buffer contents
* Initial buffer is filled with 0xFF to match expected padding
*/
- HDmemset(buf, 0xFF, H5FD_MIRROR_XMIT_OPEN_SIZE + 8);
+ memset(buf, 0xFF, H5FD_MIRROR_XMIT_OPEN_SIZE + 8);
if (H5FD_mirror_xmit_encode_open((buf + 2), xmit_in) != H5FD_MIRROR_XMIT_OPEN_SIZE)
TEST_ERROR;
- if (HDmemcmp(buf, expected, H5FD_MIRROR_XMIT_OPEN_SIZE + 8) != 0) {
+ if (memcmp(buf, expected, H5FD_MIRROR_XMIT_OPEN_SIZE + 8) != 0) {
PRINT_BUFFER_DIFF(buf, expected, H5FD_MIRROR_XMIT_OPEN_SIZE + 8);
TEST_ERROR;
}
@@ -1013,7 +1013,7 @@ test_encdec_reply(H5FD_mirror_xmit_t xmit_mock)
FAIL_PUTS_ERROR("shared header structure is not in expected state");
/* Populate the expected buffer; expect end padding of 0xFF */
- HDmemset(expected, 0xFF, H5FD_MIRROR_XMIT_REPLY_SIZE + 8);
+ memset(expected, 0xFF, H5FD_MIRROR_XMIT_REPLY_SIZE + 8);
for (i = 0; i < H5FD_MIRROR_XMIT_REPLY_SIZE; i++) {
/* 0x100 is "zero" in a byte, so encode will treat it as a NULL-
* terminator in the filepath string. Expect all zeroes following.
@@ -1033,10 +1033,10 @@ test_encdec_reply(H5FD_mirror_xmit_t xmit_mock)
/* Encode, and compare buffer contents
* Initial buffer is filled with 0xFF to match expected padding
*/
- HDmemset(buf, 0xFF, H5FD_MIRROR_XMIT_REPLY_SIZE + 8);
+ memset(buf, 0xFF, H5FD_MIRROR_XMIT_REPLY_SIZE + 8);
if (H5FD_mirror_xmit_encode_reply((buf + 2), &xmit_in) != H5FD_MIRROR_XMIT_REPLY_SIZE)
TEST_ERROR;
- if (HDmemcmp(buf, expected, H5FD_MIRROR_XMIT_REPLY_SIZE + 8) != 0) {
+ if (memcmp(buf, expected, H5FD_MIRROR_XMIT_REPLY_SIZE + 8) != 0) {
PRINT_BUFFER_DIFF(buf, expected, H5FD_MIRROR_XMIT_REPLY_SIZE + 8);
TEST_ERROR;
}
@@ -1116,7 +1116,7 @@ test_encdec_write(H5FD_mirror_xmit_t xmit_mock)
FAIL_PUTS_ERROR("shared header structure is not in expected state");
/* Populate the expected buffer; expect end padding of 0xFF */
- HDmemset(expected, 0xFF, H5FD_MIRROR_XMIT_WRITE_SIZE + 8);
+ memset(expected, 0xFF, H5FD_MIRROR_XMIT_WRITE_SIZE + 8);
for (i = 0; i < H5FD_MIRROR_XMIT_WRITE_SIZE; i++)
expected[i + 2] = (unsigned char)i;
@@ -1129,10 +1129,10 @@ test_encdec_write(H5FD_mirror_xmit_t xmit_mock)
/* Encode, and compare buffer contents
* Initial buffer is filled with 0xFF to match expected padding
*/
- HDmemset(buf, 0xFF, H5FD_MIRROR_XMIT_WRITE_SIZE + 8);
+ memset(buf, 0xFF, H5FD_MIRROR_XMIT_WRITE_SIZE + 8);
if (H5FD_mirror_xmit_encode_write((buf + 2), &xmit_in) != H5FD_MIRROR_XMIT_WRITE_SIZE)
TEST_ERROR;
- if (HDmemcmp(buf, expected, H5FD_MIRROR_XMIT_WRITE_SIZE + 8) != 0) {
+ if (memcmp(buf, expected, H5FD_MIRROR_XMIT_WRITE_SIZE + 8) != 0) {
PRINT_BUFFER_DIFF(buf, expected, H5FD_MIRROR_XMIT_WRITE_SIZE + 8);
TEST_ERROR;
}
@@ -2341,7 +2341,7 @@ confirm_server(struct mt_opts *opts)
target_addr.sin_family = AF_INET;
target_addr.sin_port = htons((uint16_t)opts->portno);
target_addr.sin_addr.s_addr = inet_addr(opts->ip);
- HDmemset(target_addr.sin_zero, '\0', sizeof(target_addr.sin_zero));
+ memset(target_addr.sin_zero, '\0', sizeof(target_addr.sin_zero));
while (1) {
if (connect(live_socket, (struct sockaddr *)&target_addr, (socklen_t)sizeof(target_addr)) < 0) {
diff --git a/test/ntypes.c b/test/ntypes.c
index 0812c61..99ac151 100644
--- a/test/ntypes.c
+++ b/test/ntypes.c
@@ -133,7 +133,7 @@ test_atomic_dtype(hid_t file)
TEST_ERROR;
/* Copy data from temporary buffer to destination buffer */
- HDmemcpy(icheck2, tmp, (size_t)(DIM0 * DIM1 * H5Tget_size(native_type)));
+ memcpy(icheck2, tmp, (size_t)(DIM0 * DIM1 * H5Tget_size(native_type)));
free(tmp);
tmp = NULL;
@@ -537,7 +537,7 @@ test_compound_dtype2(hid_t file)
if (H5Dread(dataset, native_type, H5S_ALL, H5S_ALL, H5P_DEFAULT, tmp) < 0)
TEST_ERROR;
- HDmemcpy(check, tmp, DIM0 * DIM1 * H5Tget_size(native_type));
+ memcpy(check, tmp, DIM0 * DIM1 * H5Tget_size(native_type));
free(tmp);
tmp = NULL;
@@ -755,7 +755,7 @@ test_compound_dtype(hid_t file)
if (H5Dread(dataset, native_type, H5S_ALL, H5S_ALL, H5P_DEFAULT, tmp) < 0)
TEST_ERROR;
- HDmemcpy(check, tmp, DIM0 * DIM1 * H5Tget_size(native_type));
+ memcpy(check, tmp, DIM0 * DIM1 * H5Tget_size(native_type));
free(tmp);
tmp = NULL;
@@ -982,7 +982,7 @@ test_compound_dtype3(hid_t file)
if (H5Dread(dataset, native_type, H5S_ALL, H5S_ALL, H5P_DEFAULT, tmp) < 0)
TEST_ERROR;
- HDmemcpy(check, tmp, DIM0 * DIM1 * H5Tget_size(native_type));
+ memcpy(check, tmp, DIM0 * DIM1 * H5Tget_size(native_type));
free(tmp);
tmp = NULL;
@@ -1207,7 +1207,7 @@ test_compound_opaque(hid_t file)
if (H5Dread(dataset, native_type, H5S_ALL, H5S_ALL, H5P_DEFAULT, tmp) < 0)
TEST_ERROR;
- HDmemcpy(check, tmp, DIM0 * DIM1 * H5Tget_size(native_type));
+ memcpy(check, tmp, DIM0 * DIM1 * H5Tget_size(native_type));
free(tmp);
tmp = NULL;
@@ -1382,7 +1382,7 @@ test_enum_dtype(hid_t file)
if (H5Dread(dataset, native_type, H5S_ALL, H5S_ALL, H5P_DEFAULT, tmp) < 0)
TEST_ERROR;
- HDmemcpy(scheck2, tmp, DIM0 * DIM1 * H5Tget_size(native_type));
+ memcpy(scheck2, tmp, DIM0 * DIM1 * H5Tget_size(native_type));
if (H5Tconvert(native_type, tid_m, (DIM0 * DIM1), scheck2, NULL, H5P_DEFAULT) < 0)
TEST_ERROR;
@@ -1550,7 +1550,7 @@ test_array_dtype(hid_t file)
if (H5Dread(dataset, native_type, H5S_ALL, H5S_ALL, H5P_DEFAULT, tmp) < 0)
TEST_ERROR;
- HDmemcpy(check, tmp, DIM0 * DIM1 * H5Tget_size(native_type));
+ memcpy(check, tmp, DIM0 * DIM1 * H5Tget_size(native_type));
free(tmp);
tmp = NULL;
@@ -1704,7 +1704,7 @@ test_array_dtype2(hid_t file)
if (H5Dread(dataset, native_type, H5S_ALL, H5S_ALL, H5P_DEFAULT, tmp) < 0)
TEST_ERROR;
- HDmemcpy(icheck3, tmp, DIM0 * DIM1 * H5Tget_size(native_type));
+ memcpy(icheck3, tmp, DIM0 * DIM1 * H5Tget_size(native_type));
free(tmp);
tmp = NULL;
@@ -1886,7 +1886,7 @@ test_vl_dtype(hid_t file)
* platforms like Cray */
if (NULL == (tmp = (void **)malloc(t2->len * sizeof(unsigned int))))
TEST_ERROR;
- HDmemcpy(tmp, t2->p, t2->len * H5Tget_size(nat_super_type));
+ memcpy(tmp, t2->p, t2->len * H5Tget_size(nat_super_type));
if (H5Tconvert(nat_super_type, H5T_NATIVE_UINT, t2->len, tmp, NULL, H5P_DEFAULT) < 0)
TEST_ERROR;
@@ -2940,7 +2940,7 @@ test_ninteger(void)
/* get rank */
if ((rank = H5Sget_simple_extent_ndims(sid1)) < 0)
FAIL_STACK_ERROR;
- HDmemset(dims, 0, sizeof dims);
+ memset(dims, 0, sizeof dims);
/* get dimension */
if (H5Sget_simple_extent_dims(sid1, dims, NULL) < 0)
diff --git a/test/objcopy.c b/test/objcopy.c
index 792a782..ab40284 100644
--- a/test/objcopy.c
+++ b/test/objcopy.c
@@ -1063,7 +1063,7 @@ compare_data(hid_t parent1, hid_t parent2, hid_t pid, hid_t tid, size_t nelmts,
/* Iterate over all elements, calling memcmp() for each */
for (elmt = 0; elmt < nelmts; elmt++) {
- if (HDmemcmp(memb1, memb2, memb_size) != 0)
+ if (memcmp(memb1, memb2, memb_size) != 0)
TEST_ERROR;
/* Update member pointers */
@@ -1285,7 +1285,7 @@ compare_data(hid_t parent1, hid_t parent2, hid_t pid, hid_t tid, size_t nelmts,
else
TEST_ERROR;
} /* end else */
- else if (HDmemcmp(buf1, buf2, (elmt_size * nelmts)) != 0)
+ else if (memcmp(buf1, buf2, (elmt_size * nelmts)) != 0)
TEST_ERROR;
/* Data should be the same. :-) */
@@ -1670,7 +1670,7 @@ compare_groups(hid_t gid, hid_t gid2, hid_t pid, int depth, unsigned copy_flags)
TEST_ERROR;
/* Compare link data */
- if (HDmemcmp(linkval, linkval2, linfo.u.val_size) != 0)
+ if (memcmp(linkval, linkval2, linfo.u.val_size) != 0)
TEST_ERROR;
} /* end else-if */
else {
@@ -2867,7 +2867,7 @@ test_copy_dataset_compound(hid_t fcpl_src, hid_t fcpl_dst, hid_t src_fapl, hid_t
TESTING("H5Ocopy(): compound dataset");
- HDmemset(buf, 0, sizeof(buf));
+ memset(buf, 0, sizeof(buf));
for (i = 0; i < DIM_SIZE_1; i++) {
buf[i].a = i;
buf[i].d = 1.0 / (double)(i + 1);
@@ -6918,7 +6918,7 @@ compare_attribute_compound_vlstr(hid_t loc, hid_t loc2)
FAIL_STACK_ERROR;
if (HDstrlen(rbuf.v) != HDstrlen(rbuf2.v))
FAIL_STACK_ERROR;
- if (HDmemcmp(rbuf.v, rbuf2.v, HDstrlen(rbuf.v)) != 0)
+ if (memcmp(rbuf.v, rbuf2.v, HDstrlen(rbuf.v)) != 0)
FAIL_STACK_ERROR;
/* Reclaim vlen buffer */
@@ -11436,7 +11436,7 @@ test_copy_null_ref(hid_t fcpl_src, hid_t fcpl_dst, hid_t src_fapl, hid_t dst_fap
TESTING("H5Ocopy(): NULL references");
/* Initialize "zeros" array */
- HDmemset(zeros, 0, sizeof(zeros));
+ memset(zeros, 0, sizeof(zeros));
/* Initialize the filenames */
h5_fixname(FILENAME[0], src_fapl, src_filename, sizeof src_filename);
@@ -11512,9 +11512,9 @@ test_copy_null_ref(hid_t fcpl_src, hid_t fcpl_dst, hid_t src_fapl, hid_t dst_fap
TEST_ERROR;
/* Verify that the references contain only "0" bytes */
- if (HDmemcmp(obj_buf, zeros, sizeof(obj_buf)) != 0)
+ if (memcmp(obj_buf, zeros, sizeof(obj_buf)) != 0)
TEST_ERROR;
- if (HDmemcmp(reg_buf, zeros, sizeof(reg_buf)) != 0)
+ if (memcmp(reg_buf, zeros, sizeof(reg_buf)) != 0)
TEST_ERROR;
/* Close datasets */
@@ -11557,9 +11557,9 @@ test_copy_null_ref(hid_t fcpl_src, hid_t fcpl_dst, hid_t src_fapl, hid_t dst_fap
TEST_ERROR;
/* Verify that the references contain only "0" bytes */
- if (HDmemcmp(obj_buf, zeros, sizeof(obj_buf)) != 0)
+ if (memcmp(obj_buf, zeros, sizeof(obj_buf)) != 0)
TEST_ERROR;
- if (HDmemcmp(reg_buf, zeros, sizeof(reg_buf)) != 0)
+ if (memcmp(reg_buf, zeros, sizeof(reg_buf)) != 0)
TEST_ERROR;
/* Close */
@@ -11631,7 +11631,7 @@ test_copy_null_ref_open(hid_t fcpl_src, hid_t fcpl_dst, hid_t src_fapl, hid_t ds
TESTING("H5Ocopy(): NULL references for opened datasets");
/* Initialize "zeros" array */
- HDmemset(zeros, 0, sizeof(zeros));
+ memset(zeros, 0, sizeof(zeros));
/* Initialize the filenames */
h5_fixname(FILENAME[0], src_fapl, src_filename, sizeof src_filename);
@@ -11716,9 +11716,9 @@ test_copy_null_ref_open(hid_t fcpl_src, hid_t fcpl_dst, hid_t src_fapl, hid_t ds
TEST_ERROR;
/* Verify that the references contain only "0" bytes */
- if (HDmemcmp(obj_buf, zeros, sizeof(obj_buf)) != 0)
+ if (memcmp(obj_buf, zeros, sizeof(obj_buf)) != 0)
TEST_ERROR;
- if (HDmemcmp(reg_buf, zeros, sizeof(reg_buf)) != 0)
+ if (memcmp(reg_buf, zeros, sizeof(reg_buf)) != 0)
TEST_ERROR;
/* Create destination file */
@@ -11761,9 +11761,9 @@ test_copy_null_ref_open(hid_t fcpl_src, hid_t fcpl_dst, hid_t src_fapl, hid_t ds
TEST_ERROR;
/* Verify that the references contain only "0" bytes */
- if (HDmemcmp(obj_buf, zeros, sizeof(obj_buf)) != 0)
+ if (memcmp(obj_buf, zeros, sizeof(obj_buf)) != 0)
TEST_ERROR;
- if (HDmemcmp(reg_buf, zeros, sizeof(reg_buf)) != 0)
+ if (memcmp(reg_buf, zeros, sizeof(reg_buf)) != 0)
TEST_ERROR;
/* Close */
@@ -12106,7 +12106,7 @@ test_copy_committed_datatype_merge(hid_t fcpl_src, hid_t fcpl_dst, hid_t src_fap
TEST_ERROR;
if (H5Oget_info3(tid, &oinfo, H5O_INFO_BASIC) < 0)
TEST_ERROR;
- HDmemcpy(&exp_token, &oinfo.token, sizeof(exp_token));
+ memcpy(&exp_token, &oinfo.token, sizeof(exp_token));
if (H5Tclose(tid) < 0)
TEST_ERROR;
@@ -12194,7 +12194,7 @@ test_copy_committed_datatype_merge(hid_t fcpl_src, hid_t fcpl_dst, hid_t src_fap
TEST_ERROR;
if (H5Oget_info3(tid, &oinfo, H5O_INFO_BASIC) < 0)
TEST_ERROR;
- HDmemcpy(&exp_token, &oinfo.token, sizeof(exp_token));
+ memcpy(&exp_token, &oinfo.token, sizeof(exp_token));
if (H5Tclose(tid) < 0)
TEST_ERROR;
if (H5Dclose(did) < 0)
@@ -12419,7 +12419,7 @@ test_copy_committed_datatype_merge_same_file(hid_t fcpl, hid_t fapl, hbool_t reo
TEST_ERROR;
if (H5Oget_info3(tid, &oinfo, H5O_INFO_BASIC) < 0)
TEST_ERROR;
- HDmemcpy(&exp_token, &oinfo.token, sizeof(exp_token));
+ memcpy(&exp_token, &oinfo.token, sizeof(exp_token));
if (H5Tclose(tid) < 0)
TEST_ERROR;
@@ -12477,7 +12477,7 @@ test_copy_committed_datatype_merge_same_file(hid_t fcpl, hid_t fapl, hbool_t reo
TEST_ERROR;
if (!token_cmp)
TEST_ERROR;
- HDmemcpy(&exp_token, &oinfo.token, sizeof(exp_token));
+ memcpy(&exp_token, &oinfo.token, sizeof(exp_token));
if (H5Tclose(tid) < 0)
TEST_ERROR;
@@ -12560,7 +12560,7 @@ test_copy_committed_datatype_merge_same_file(hid_t fcpl, hid_t fapl, hbool_t reo
TEST_ERROR;
if (H5Oget_info3(tid, &oinfo, H5O_INFO_BASIC) < 0)
TEST_ERROR;
- HDmemcpy(&exp_token, &oinfo.token, sizeof(exp_token));
+ memcpy(&exp_token, &oinfo.token, sizeof(exp_token));
if (H5Tclose(tid) < 0)
TEST_ERROR;
if (H5Dclose(did) < 0)
@@ -12594,7 +12594,7 @@ test_copy_committed_datatype_merge_same_file(hid_t fcpl, hid_t fapl, hbool_t reo
TEST_ERROR;
if (!token_cmp)
TEST_ERROR;
- HDmemcpy(&exp_token, &oinfo.token, sizeof(exp_token));
+ memcpy(&exp_token, &oinfo.token, sizeof(exp_token));
if (H5Tclose(tid) < 0)
TEST_ERROR;
if (H5Dclose(did) < 0)
@@ -12806,7 +12806,7 @@ test_copy_committed_dt_merge_sugg(hid_t fcpl_src, hid_t fcpl_dst, hid_t src_fapl
TEST_ERROR;
if (H5Oget_info3(tid, &oinfo, H5O_INFO_BASIC) < 0)
TEST_ERROR;
- HDmemcpy(&exp_token, &oinfo.token, sizeof(exp_token));
+ memcpy(&exp_token, &oinfo.token, sizeof(exp_token));
if (H5Tclose(tid) < 0)
TEST_ERROR;
@@ -12861,7 +12861,7 @@ test_copy_committed_dt_merge_sugg(hid_t fcpl_src, hid_t fcpl_dst, hid_t src_fapl
TEST_ERROR;
if (H5Oget_info3(tid, &oinfo, H5O_INFO_BASIC) < 0)
TEST_ERROR;
- HDmemcpy(&exp_token, &oinfo.token, sizeof(exp_token));
+ memcpy(&exp_token, &oinfo.token, sizeof(exp_token));
if (H5Tclose(tid) < 0)
TEST_ERROR;
@@ -12886,7 +12886,7 @@ test_copy_committed_dt_merge_sugg(hid_t fcpl_src, hid_t fcpl_dst, hid_t src_fapl
TEST_ERROR;
if (H5Oget_info3(tid, &oinfo, H5O_INFO_BASIC) < 0)
TEST_ERROR;
- HDmemcpy(&exp_token, &oinfo.token, sizeof(exp_token));
+ memcpy(&exp_token, &oinfo.token, sizeof(exp_token));
if (H5Tclose(tid) < 0)
TEST_ERROR;
@@ -13109,7 +13109,7 @@ test_copy_committed_dt_merge_attr(hid_t fcpl_src, hid_t fcpl_dst, hid_t src_fapl
TEST_ERROR;
if (H5Oget_info3(tid, &oinfo, H5O_INFO_BASIC) < 0)
TEST_ERROR;
- HDmemcpy(&exp_token, &oinfo.token, sizeof(exp_token));
+ memcpy(&exp_token, &oinfo.token, sizeof(exp_token));
if (H5Tclose(tid) < 0)
TEST_ERROR;
if (H5Aclose(aid) < 0)
@@ -13423,7 +13423,7 @@ test_copy_cdt_hier_merge(hid_t fcpl_src, hid_t fcpl_dst, hid_t src_fapl, hid_t d
TEST_ERROR;
if (H5Oget_info3(tid, &oinfo, H5O_INFO_BASIC) < 0)
TEST_ERROR;
- HDmemcpy(&exp_token_int, &oinfo.token, sizeof(exp_token_int));
+ memcpy(&exp_token_int, &oinfo.token, sizeof(exp_token_int));
if (H5Tclose(tid) < 0)
TEST_ERROR;
@@ -13432,7 +13432,7 @@ test_copy_cdt_hier_merge(hid_t fcpl_src, hid_t fcpl_dst, hid_t src_fapl, hid_t d
TEST_ERROR;
if (H5Oget_info3(tid, &oinfo, H5O_INFO_BASIC) < 0)
TEST_ERROR;
- HDmemcpy(&exp_token_short, &oinfo.token, sizeof(exp_token_short));
+ memcpy(&exp_token_short, &oinfo.token, sizeof(exp_token_short));
if (H5Tclose(tid) < 0)
TEST_ERROR;
@@ -13879,7 +13879,7 @@ test_copy_cdt_merge_cdt(hid_t fcpl_src, hid_t fcpl_dst, hid_t src_fapl, hid_t ds
TEST_ERROR;
if (H5Oget_info3(tid, &oinfo, H5O_INFO_BASIC) < 0)
TEST_ERROR;
- HDmemcpy(&exp_token, &oinfo.token, sizeof(exp_token));
+ memcpy(&exp_token, &oinfo.token, sizeof(exp_token));
if (H5Tclose(tid) < 0)
TEST_ERROR;
@@ -13900,7 +13900,7 @@ test_copy_cdt_merge_cdt(hid_t fcpl_src, hid_t fcpl_dst, hid_t src_fapl, hid_t ds
TEST_ERROR;
if (H5Oget_info3(tid, &oinfo, H5O_INFO_BASIC) < 0)
TEST_ERROR;
- HDmemcpy(&exp_token, &oinfo.token, sizeof(exp_token));
+ memcpy(&exp_token, &oinfo.token, sizeof(exp_token));
if (H5Tclose(tid) < 0)
TEST_ERROR;
@@ -13921,7 +13921,7 @@ test_copy_cdt_merge_cdt(hid_t fcpl_src, hid_t fcpl_dst, hid_t src_fapl, hid_t ds
TEST_ERROR;
if (H5Oget_info3(tid, &oinfo, H5O_INFO_BASIC) < 0)
TEST_ERROR;
- HDmemcpy(&exp_token, &oinfo.token, sizeof(exp_token));
+ memcpy(&exp_token, &oinfo.token, sizeof(exp_token));
if (H5Tclose(tid) < 0)
TEST_ERROR;
@@ -13942,7 +13942,7 @@ test_copy_cdt_merge_cdt(hid_t fcpl_src, hid_t fcpl_dst, hid_t src_fapl, hid_t ds
TEST_ERROR;
if (H5Oget_info3(tid, &oinfo, H5O_INFO_BASIC) < 0)
TEST_ERROR;
- HDmemcpy(&exp_token, &oinfo.token, sizeof(exp_token));
+ memcpy(&exp_token, &oinfo.token, sizeof(exp_token));
if (H5Tclose(tid) < 0)
TEST_ERROR;
@@ -14112,7 +14112,7 @@ test_copy_cdt_merge_suggs(hid_t fcpl_src, hid_t fcpl_dst, hid_t src_fapl, hid_t
TEST_ERROR;
if (H5Oget_info3(tid, &oinfo, H5O_INFO_BASIC) < 0)
TEST_ERROR;
- HDmemcpy(&exp_token, &oinfo.token, sizeof(exp_token));
+ memcpy(&exp_token, &oinfo.token, sizeof(exp_token));
if (H5Tclose(tid) < 0)
TEST_ERROR;
@@ -14160,7 +14160,7 @@ test_copy_cdt_merge_suggs(hid_t fcpl_src, hid_t fcpl_dst, hid_t src_fapl, hid_t
TEST_ERROR;
if (H5Oget_info3(tid, &oinfo, H5O_INFO_BASIC) < 0)
TEST_ERROR;
- HDmemcpy(&exp_token, &oinfo.token, sizeof(exp_token));
+ memcpy(&exp_token, &oinfo.token, sizeof(exp_token));
if (H5Tclose(tid) < 0)
TEST_ERROR;
@@ -14215,7 +14215,7 @@ test_copy_cdt_merge_suggs(hid_t fcpl_src, hid_t fcpl_dst, hid_t src_fapl, hid_t
TEST_ERROR;
if (H5Oget_info3(tid, &oinfo, H5O_INFO_BASIC) < 0)
TEST_ERROR;
- HDmemcpy(&exp_token, &oinfo.token, sizeof(exp_token));
+ memcpy(&exp_token, &oinfo.token, sizeof(exp_token));
if (H5Tclose(tid) < 0)
TEST_ERROR;
@@ -14265,7 +14265,7 @@ test_copy_cdt_merge_suggs(hid_t fcpl_src, hid_t fcpl_dst, hid_t src_fapl, hid_t
TEST_ERROR;
if (H5Oget_info3(tid, &oinfo, H5O_INFO_BASIC) < 0)
TEST_ERROR;
- HDmemcpy(&exp_token, &oinfo.token, sizeof(exp_token));
+ memcpy(&exp_token, &oinfo.token, sizeof(exp_token));
if (H5Tclose(tid) < 0)
TEST_ERROR;
@@ -14456,7 +14456,7 @@ test_copy_cdt_merge_dset_suggs(hid_t fcpl_src, hid_t fcpl_dst, hid_t src_fapl, h
TEST_ERROR;
if (H5Oget_info3(tid, &oinfo, H5O_INFO_BASIC) < 0)
TEST_ERROR;
- HDmemcpy(&exp_token, &oinfo.token, sizeof(exp_token));
+ memcpy(&exp_token, &oinfo.token, sizeof(exp_token));
if (H5Tclose(tid) < 0)
TEST_ERROR;
@@ -14510,7 +14510,7 @@ test_copy_cdt_merge_dset_suggs(hid_t fcpl_src, hid_t fcpl_dst, hid_t src_fapl, h
TEST_ERROR;
if (H5Oget_info3(tid, &oinfo, H5O_INFO_BASIC) < 0)
TEST_ERROR;
- HDmemcpy(&exp_token, &oinfo.token, sizeof(exp_token));
+ memcpy(&exp_token, &oinfo.token, sizeof(exp_token));
if (H5Tclose(tid) < 0)
TEST_ERROR;
if (H5Dclose(did) < 0)
@@ -14573,7 +14573,7 @@ test_copy_cdt_merge_dset_suggs(hid_t fcpl_src, hid_t fcpl_dst, hid_t src_fapl, h
TEST_ERROR;
if (H5Oget_info3(tid, &oinfo, H5O_INFO_BASIC) < 0)
TEST_ERROR;
- HDmemcpy(&exp_token, &oinfo.token, sizeof(exp_token));
+ memcpy(&exp_token, &oinfo.token, sizeof(exp_token));
if (H5Tclose(tid) < 0)
TEST_ERROR;
if (H5Dclose(did) < 0)
@@ -14631,7 +14631,7 @@ test_copy_cdt_merge_dset_suggs(hid_t fcpl_src, hid_t fcpl_dst, hid_t src_fapl, h
TEST_ERROR;
if (H5Oget_info3(tid, &oinfo, H5O_INFO_BASIC) < 0)
TEST_ERROR;
- HDmemcpy(&exp_token, &oinfo.token, sizeof(exp_token));
+ memcpy(&exp_token, &oinfo.token, sizeof(exp_token));
if (H5Tclose(tid) < 0)
TEST_ERROR;
if (H5Dclose(did) < 0)
@@ -15489,7 +15489,7 @@ test_copy_set_mcdt_search_cb(hid_t fcpl_src, hid_t fcpl_dst, hid_t src_fapl, hid
TEST_ERROR;
if (H5Oget_info3(tid, &oinfo, H5O_INFO_BASIC) < 0)
TEST_ERROR;
- HDmemcpy(&exp_token, &oinfo.token, sizeof(exp_token));
+ memcpy(&exp_token, &oinfo.token, sizeof(exp_token));
if (H5Tclose(tid) < 0)
TEST_ERROR;
@@ -15556,7 +15556,7 @@ test_copy_set_mcdt_search_cb(hid_t fcpl_src, hid_t fcpl_dst, hid_t src_fapl, hid
TEST_ERROR;
if (H5Oget_info3(tid, &oinfo, H5O_INFO_BASIC) < 0)
TEST_ERROR;
- HDmemcpy(&exp_token, &oinfo.token, sizeof(exp_token));
+ memcpy(&exp_token, &oinfo.token, sizeof(exp_token));
if (H5Tclose(tid) < 0)
TEST_ERROR;
@@ -15611,7 +15611,7 @@ test_copy_set_mcdt_search_cb(hid_t fcpl_src, hid_t fcpl_dst, hid_t src_fapl, hid
TEST_ERROR;
if (H5Oget_info3(tid, &oinfo, H5O_INFO_BASIC) < 0)
TEST_ERROR;
- HDmemcpy(&exp_token, &oinfo.token, sizeof(exp_token));
+ memcpy(&exp_token, &oinfo.token, sizeof(exp_token));
if (H5Tclose(tid) < 0)
TEST_ERROR;
@@ -15636,7 +15636,7 @@ test_copy_set_mcdt_search_cb(hid_t fcpl_src, hid_t fcpl_dst, hid_t src_fapl, hid
TEST_ERROR;
if (H5Oget_info3(tid, &oinfo, H5O_INFO_BASIC) < 0)
TEST_ERROR;
- HDmemcpy(&exp_token, &oinfo.token, sizeof(exp_token));
+ memcpy(&exp_token, &oinfo.token, sizeof(exp_token));
if (H5Tclose(tid) < 0)
TEST_ERROR;
@@ -15700,7 +15700,7 @@ test_copy_set_mcdt_search_cb(hid_t fcpl_src, hid_t fcpl_dst, hid_t src_fapl, hid
TEST_ERROR;
if (H5Oget_info3(tid, &oinfo, H5O_INFO_BASIC) < 0)
TEST_ERROR;
- HDmemcpy(&exp_token, &oinfo.token, sizeof(exp_token));
+ memcpy(&exp_token, &oinfo.token, sizeof(exp_token));
if (H5Tclose(tid) < 0)
TEST_ERROR;
@@ -15725,7 +15725,7 @@ test_copy_set_mcdt_search_cb(hid_t fcpl_src, hid_t fcpl_dst, hid_t src_fapl, hid
TEST_ERROR;
if (H5Oget_info3(tid, &oinfo, H5O_INFO_BASIC) < 0)
TEST_ERROR;
- HDmemcpy(&exp_token, &oinfo.token, sizeof(exp_token));
+ memcpy(&exp_token, &oinfo.token, sizeof(exp_token));
if (H5Tclose(tid) < 0)
TEST_ERROR;
diff --git a/test/objcopy_ref.c b/test/objcopy_ref.c
index 8773a98..7a81aea 100644
--- a/test/objcopy_ref.c
+++ b/test/objcopy_ref.c
@@ -856,7 +856,7 @@ compare_data(hid_t parent1, hid_t parent2, hid_t pid, hid_t tid, size_t nelmts,
/* Iterate over all elements, calling memcmp() for each */
for (elmt = 0; elmt < nelmts; elmt++) {
- if (HDmemcmp(memb1, memb2, memb_size) != 0)
+ if (memcmp(memb1, memb2, memb_size) != 0)
TEST_ERROR;
/* Update member pointers */
@@ -1006,7 +1006,7 @@ compare_data(hid_t parent1, hid_t parent2, hid_t pid, hid_t tid, size_t nelmts,
else
TEST_ERROR;
} /* end else */
- else if (HDmemcmp(buf1, buf2, (elmt_size * nelmts)) != 0)
+ else if (memcmp(buf1, buf2, (elmt_size * nelmts)) != 0)
TEST_ERROR;
/* Data should be the same. :-) */
@@ -1391,7 +1391,7 @@ compare_groups(hid_t gid, hid_t gid2, hid_t pid, int depth, unsigned copy_flags)
TEST_ERROR;
/* Compare link data */
- if (HDmemcmp(linkval, linkval2, linfo.u.val_size) != 0)
+ if (memcmp(linkval, linkval2, linfo.u.val_size) != 0)
TEST_ERROR;
} /* end else-if */
else {
diff --git a/test/ohdr.c b/test/ohdr.c
index ca19eaa..95a4dc3 100644
--- a/test/ohdr.c
+++ b/test/ohdr.c
@@ -79,8 +79,8 @@ test_cont(char *filename, hid_t fapl)
TESTING("object header continuation block");
- HDmemset(&oh_locA, 0, sizeof(oh_locA));
- HDmemset(&oh_locB, 0, sizeof(oh_locB));
+ memset(&oh_locA, 0, sizeof(oh_locA));
+ memset(&oh_locB, 0, sizeof(oh_locB));
/* Create the file to operate on */
if ((file = H5Fcreate(filename, H5F_ACC_TRUNC, H5P_DEFAULT, fapl)) < 0)
@@ -227,7 +227,7 @@ test_ohdr_cache(char *filename, hid_t fapl)
FAIL_STACK_ERROR;
/* Create an object header */
- HDmemset(&oh_loc, 0, sizeof(oh_loc));
+ memset(&oh_loc, 0, sizeof(oh_loc));
if (H5O_create(f, (size_t)2048, (size_t)1, H5P_GROUP_CREATE_DEFAULT, &oh_loc /*out*/) < 0)
FAIL_STACK_ERROR;
@@ -979,7 +979,7 @@ test_minimized_dset_ohdr_attribute_addition(hid_t fapl_id)
TEST_ERROR;
/* modify the string attribute */
- HDmemset(in_buf, 0, buf_size);
+ memset(in_buf, 0, buf_size);
HDstrcpy(in_buf, ATTR_LONG);
if (H5Awrite(aid, H5T_NATIVE_CHAR, in_buf) < 0)
TEST_ERROR;
@@ -1899,7 +1899,7 @@ main(void)
* (using default group creation property list only because it's convenient)
*/
TESTING("object header creation");
- HDmemset(&oh_loc, 0, sizeof(oh_loc));
+ memset(&oh_loc, 0, sizeof(oh_loc));
if (H5O_create(f, (size_t)64, (size_t)0, H5P_GROUP_CREATE_DEFAULT, &oh_loc /*out*/) < 0)
FAIL_STACK_ERROR;
PASSED();
diff --git a/test/onion.c b/test/onion.c
index 07dc2f7..50a4aa7 100644
--- a/test/onion.c
+++ b/test/onion.c
@@ -1335,7 +1335,7 @@ test_revision_record_encode_decode(void)
TESTING("encode/decode revision record");
- HDmemcpy(record.time_of_creation, "19411207T190643Z", 16);
+ memcpy(record.time_of_creation, "19411207T190643Z", 16);
record.archival_index.list = calloc(record.archival_index.n_entries, sizeof(H5FD_onion_index_entry_t));
if (NULL == record.archival_index.list)
TEST_ERROR;
@@ -1602,8 +1602,8 @@ verify_history_as_expected_onion(H5FD_t *raw_file, struct expected_history *filt
uint32_t buf_checksum = 0;
/* memset to avoid bad frees on errors */
- HDmemset(&rev_out, 0, sizeof(H5FD_onion_revision_record_t));
- HDmemset(&history_out, 0, sizeof(H5FD_onion_history_t));
+ memset(&rev_out, 0, sizeof(H5FD_onion_revision_record_t));
+ memset(&history_out, 0, sizeof(H5FD_onion_history_t));
hdr_out.version = H5FD_ONION_HEADER_VERSION_CURR;
@@ -2036,7 +2036,7 @@ test_create_oniontarget(hbool_t truncate_canonical, hbool_t with_initial_data)
TEST_ERROR;
if (H5FDread(vfile_rw, H5FD_MEM_DRAW, H5P_DEFAULT, 0, 4, buf) < 0)
TEST_ERROR;
- if (HDmemcmp(a_list_s, buf, 4) != 0)
+ if (memcmp(a_list_s, buf, 4) != 0)
TEST_ERROR;
free(buf);
buf = NULL;
@@ -2056,7 +2056,7 @@ test_create_oniontarget(hbool_t truncate_canonical, hbool_t with_initial_data)
TEST_ERROR;
if (H5FDread(vfile_rw, H5FD_MEM_DRAW, H5P_DEFAULT, 0, buf_size, buf) < 0)
TEST_ERROR;
- if (HDmemcmp(a_list_s + half_size, buf, buf_size) != 0)
+ if (memcmp(a_list_s + half_size, buf, buf_size) != 0)
TEST_ERROR;
free(buf);
buf = NULL;
@@ -2072,7 +2072,7 @@ test_create_oniontarget(hbool_t truncate_canonical, hbool_t with_initial_data)
TEST_ERROR;
if (H5FDread(vfile_rw, H5FD_MEM_DRAW, H5P_DEFAULT, 0, a_list_size_s, buf) < 0)
TEST_ERROR;
- if (HDmemcmp(a_list_s, buf, a_list_size_s) != 0)
+ if (memcmp(a_list_s, buf, a_list_size_s) != 0)
TEST_ERROR;
free(buf);
buf = NULL;
@@ -2139,7 +2139,7 @@ test_create_oniontarget(hbool_t truncate_canonical, hbool_t with_initial_data)
TEST_ERROR;
if (H5FDread(vfile_ro, H5FD_MEM_DRAW, H5P_DEFAULT, 0, a_list_size_s, buf) < 0)
TEST_ERROR;
- if (HDmemcmp(a_list_s, buf, a_list_size_s) != 0)
+ if (memcmp(a_list_s, buf, a_list_size_s) != 0)
TEST_ERROR;
free(buf);
buf = NULL;
@@ -2366,7 +2366,7 @@ test_several_revisions_with_logical_gaps(void)
if (0 != buf[i])
TEST_ERROR;
}
- if (HDmemcmp(buf + a_off, a_list_s, a_list_size_s) != 0)
+ if (memcmp(buf + a_off, a_list_s, a_list_size_s) != 0)
TEST_ERROR;
free(buf);
buf = NULL;
@@ -2380,7 +2380,7 @@ test_several_revisions_with_logical_gaps(void)
if (0 != buf[i])
TEST_ERROR;
}
- if (HDmemcmp(buf + size, a_list_s, ONION_TEST_PAGE_SIZE_5 - size) != 0)
+ if (memcmp(buf + size, a_list_s, ONION_TEST_PAGE_SIZE_5 - size) != 0)
TEST_ERROR;
free(buf);
buf = NULL;
@@ -2414,13 +2414,13 @@ test_several_revisions_with_logical_gaps(void)
if (0 != buf[i])
TEST_ERROR;
}
- if (HDmemcmp(buf + a_off, a_list_s, a_list_size_s) != 0)
+ if (memcmp(buf + a_off, a_list_s, a_list_size_s) != 0)
TEST_ERROR;
for (i = a_off + a_list_size_s; i < b_off; i++) {
if (0 != buf[i])
TEST_ERROR;
}
- if (HDmemcmp(buf + b_off, b_list_s, b_list_size_s) != 0)
+ if (memcmp(buf + b_off, b_list_s, b_list_size_s) != 0)
TEST_ERROR;
free(buf);
buf = NULL;
@@ -2451,15 +2451,15 @@ test_several_revisions_with_logical_gaps(void)
TEST_ERROR;
if (H5FDread(file, H5FD_MEM_DRAW, H5P_DEFAULT, 0, size, buf) < 0)
TEST_ERROR;
- if (HDmemcmp(buf, a_list_s, a_list_size_s) != 0)
+ if (memcmp(buf, a_list_s, a_list_size_s) != 0)
TEST_ERROR;
- if (HDmemcmp(buf + a_list_size_s, a_list_s + a_list_size_s - a_off, a_off) != 0)
+ if (memcmp(buf + a_list_size_s, a_list_s + a_list_size_s - a_off, a_off) != 0)
TEST_ERROR;
for (i = a_off + a_list_size_s; i < b_off; i++) {
if (0 != buf[i])
TEST_ERROR;
}
- if (HDmemcmp(buf + b_off, b_list_s, b_list_size_s) != 0)
+ if (memcmp(buf + b_off, b_list_s, b_list_size_s) != 0)
TEST_ERROR;
free(buf);
buf = NULL;
@@ -2587,7 +2587,7 @@ do_onion_open_and_writes(const char *filename, H5FD_onion_fapl_info_t *onion_inf
onion_info_p->revision_num = about[i].revision_num;
if (about[i].comment != NULL) {
j = MIN(HDstrlen(about[i].comment), H5FD_ONION_FAPL_INFO_COMMENT_MAX_LEN);
- HDmemcpy(onion_info_p->comment, about[i].comment, j);
+ memcpy(onion_info_p->comment, about[i].comment, j);
}
onion_info_p->comment[j] = '\0';
fapl_id = H5Pcreate(H5P_FILE_ACCESS);
@@ -2613,7 +2613,7 @@ do_onion_open_and_writes(const char *filename, H5FD_onion_fapl_info_t *onion_inf
TEST_ERROR;
if (H5FDread(file, H5FD_MEM_DRAW, H5P_DEFAULT, wi->offset, wi->size, buf_vfy) < 0)
TEST_ERROR;
- if (HDmemcmp(buf_vfy, wi->buf, wi->size) != 0) {
+ if (memcmp(buf_vfy, wi->buf, wi->size) != 0) {
const unsigned char *_buf = wi->buf;
size_t z = 0;
HDputs("i exp act");
@@ -2744,7 +2744,7 @@ test_page_aligned_history_create(void)
TEST_ERROR;
if (H5FDread(file, H5FD_MEM_DRAW, H5P_DEFAULT, 0, b_list_size_s, buf) < 0)
TEST_ERROR;
- if (HDmemcmp(a_list_s, buf + a_off, a_list_size_s) != 0) {
+ if (memcmp(a_list_s, buf + a_off, a_list_size_s) != 0) {
size_t k;
printf("aoff: %" PRIu64 "\n", a_off);
HDputs("i exp act");
@@ -2754,7 +2754,7 @@ test_page_aligned_history_create(void)
fflush(stdout);
TEST_ERROR;
}
- if (HDmemcmp(b_list_s, buf, a_off) != 0) {
+ if (memcmp(b_list_s, buf, a_off) != 0) {
size_t k;
printf("aoff: %" PRIu64 "\n", a_off);
HDputs("i exp act");
diff --git a/test/page_buffer.c b/test/page_buffer.c
index 1fc8469..6eed35f 100644
--- a/test/page_buffer.c
+++ b/test/page_buffer.c
@@ -147,7 +147,7 @@ create_file(char *filename, hid_t fcpl, hid_t fapl)
if (H5Dclose(dset_id) < 0)
FAIL_STACK_ERROR;
- HDmemset(data, 0, (size_t)num_elements * sizeof(int));
+ memset(data, 0, (size_t)num_elements * sizeof(int));
if ((dset_id = H5Dopen2(grp_id, dset_name, H5P_DEFAULT)) < 0)
FAIL_STACK_ERROR;
if (H5Dread(dset_id, H5T_NATIVE_INT, H5S_ALL, H5S_ALL, H5P_DEFAULT, data) < 0)
@@ -318,7 +318,7 @@ set_multi_split(const char *env_h5_drvr, hid_t fapl, hsize_t pagesize)
if (split || multi) {
- HDmemset(memb_name, 0, sizeof memb_name);
+ memset(memb_name, 0, sizeof memb_name);
/* Get current split settings */
if (H5Pget_fapl_multi(fapl, memb_map, memb_fapl_arr, memb_name, memb_addr, &relax) < 0)
diff --git a/test/s3comms.c b/test/s3comms.c
index 87b6c7b..07dcce9 100644
--- a/test/s3comms.c
+++ b/test/s3comms.c
@@ -2340,7 +2340,7 @@ test_trim(void)
assert(str == NULL);
str = (char *)malloc(sizeof(char *) * 11);
assert(str != NULL);
- HDmemcpy(str, "some text ", 11); /* string with null terminator */
+ memcpy(str, "some text ", 11); /* string with null terminator */
JSVERIFY(FAIL, H5FD_s3comms_trim(NULL, str, 10, &dest_len), "destination for trim cannot be NULL");
free(str);
str = NULL;
diff --git a/test/select_io_dset.c b/test/select_io_dset.c
index 361b1d5..2746bcc 100644
--- a/test/select_io_dset.c
+++ b/test/select_io_dset.c
@@ -176,7 +176,7 @@ test_no_type_conv(hid_t fid, unsigned chunked, unsigned dtrans, unsigned mwbuf)
/* Copy wbuf if the library will be modifying it */
if (mwbuf)
- HDmemcpy(wbuf_bak, wbuf, sizeof(wbuf));
+ memcpy(wbuf_bak, wbuf, sizeof(wbuf));
/* Write data to the dataset with/without data transform */
if (H5Dwrite(did, H5T_NATIVE_INT, H5S_ALL, H5S_ALL, dxpl, wbuf) < 0)
@@ -184,7 +184,7 @@ test_no_type_conv(hid_t fid, unsigned chunked, unsigned dtrans, unsigned mwbuf)
/* Restore wbuf from backup if the library modified it */
if (mwbuf)
- HDmemcpy(wbuf, wbuf_bak, sizeof(wbuf));
+ memcpy(wbuf, wbuf_bak, sizeof(wbuf));
/* Read data from the dataset without data transform set in dxpl */
if (H5Dread(did, H5T_NATIVE_INT, H5S_ALL, H5S_ALL, ntrans_dxpl, rbuf) < 0)
@@ -316,7 +316,7 @@ test_no_size_change_no_bkg(hid_t fid, unsigned chunked, unsigned mwbuf)
/* Copy wbuf if the library will be modifying it */
if (mwbuf)
- HDmemcpy(wbuf_bak, wbuf, (size_t)(4 * DSET_SELECT_DIM));
+ memcpy(wbuf_bak, wbuf, (size_t)(4 * DSET_SELECT_DIM));
/* Write the data to the dataset with little endian */
if (H5Dwrite(did, H5T_STD_I32LE, H5S_ALL, H5S_ALL, dxpl, wbuf) < 0)
@@ -324,7 +324,7 @@ test_no_size_change_no_bkg(hid_t fid, unsigned chunked, unsigned mwbuf)
/* Restore wbuf from backup if the library modified it */
if (mwbuf)
- HDmemcpy(wbuf, wbuf_bak, (size_t)(4 * DSET_SELECT_DIM));
+ memcpy(wbuf, wbuf_bak, (size_t)(4 * DSET_SELECT_DIM));
/* Read the data from the dataset with little endian */
if (H5Dread(did, H5T_STD_I32LE, H5S_ALL, H5S_ALL, dxpl, rbuf) < 0)
@@ -466,7 +466,7 @@ test_larger_mem_type_no_bkg(hid_t fid, unsigned chunked, unsigned dtrans, unsign
/* Copy wbuf if the library will be modifying it */
if (mwbuf)
- HDmemcpy(wbuf_bak, wbuf, sizeof(wbuf));
+ memcpy(wbuf_bak, wbuf, sizeof(wbuf));
/* Write data to the dataset with/without data transform set in dxpl */
if (H5Dwrite(did, H5T_NATIVE_LONG, H5S_ALL, H5S_ALL, dxpl, wbuf) < 0)
@@ -474,7 +474,7 @@ test_larger_mem_type_no_bkg(hid_t fid, unsigned chunked, unsigned dtrans, unsign
/* Restore wbuf from backup if the library modified it */
if (mwbuf)
- HDmemcpy(wbuf, wbuf_bak, sizeof(wbuf));
+ memcpy(wbuf, wbuf_bak, sizeof(wbuf));
/* Read the data from the dataset without data transform in dxpl */
if (H5Dread(did, H5T_NATIVE_LLONG, H5S_ALL, H5S_ALL, ntrans_dxpl, rbuf) < 0)
@@ -609,7 +609,7 @@ test_smaller_mem_type_no_bkg(hid_t fid, unsigned chunked, unsigned dtrans, unsig
/* Copy wbuf if the library will be modifying it */
if (mwbuf)
- HDmemcpy(wbuf_bak, wbuf, sizeof(wbuf));
+ memcpy(wbuf_bak, wbuf, sizeof(wbuf));
/* Write data to the dataset with/without data transform in dxpl */
if (H5Dwrite(did, H5T_NATIVE_SHORT, H5S_ALL, H5S_ALL, dxpl, wbuf) < 0)
@@ -617,7 +617,7 @@ test_smaller_mem_type_no_bkg(hid_t fid, unsigned chunked, unsigned dtrans, unsig
/* Restore wbuf from backup if the library modified it */
if (mwbuf)
- HDmemcpy(wbuf, wbuf_bak, sizeof(wbuf));
+ memcpy(wbuf, wbuf_bak, sizeof(wbuf));
/* Read data from the dataset without data transform in dxpl */
if (H5Dread(did, H5T_NATIVE_SHORT, H5S_ALL, H5S_ALL, ntrans_dxpl, rbuf) < 0)
@@ -791,7 +791,7 @@ test_cmpd_with_bkg(hid_t fid, unsigned chunked, unsigned mwbuf)
/* Copy wbuf if the library will be modifying it */
if (mwbuf)
- HDmemcpy(s1_wbuf_bak, s1_wbuf, sizeof(s1_t) * DSET_SELECT_DIM);
+ memcpy(s1_wbuf_bak, s1_wbuf, sizeof(s1_t) * DSET_SELECT_DIM);
/* Write all the data to the dataset */
if (H5Dwrite(did, s1_tid, H5S_ALL, H5S_ALL, dxpl, s1_wbuf) < 0)
@@ -799,7 +799,7 @@ test_cmpd_with_bkg(hid_t fid, unsigned chunked, unsigned mwbuf)
/* Restore wbuf from backup if the library modified it */
if (mwbuf)
- HDmemcpy(s1_wbuf, s1_wbuf_bak, sizeof(s1_t) * DSET_SELECT_DIM);
+ memcpy(s1_wbuf, s1_wbuf_bak, sizeof(s1_t) * DSET_SELECT_DIM);
/* Read all the data from the dataset */
if (H5Dread(did, s1_tid, H5S_ALL, H5S_ALL, dxpl, s1_rbuf) < 0)
@@ -837,7 +837,7 @@ test_cmpd_with_bkg(hid_t fid, unsigned chunked, unsigned mwbuf)
/* Copy wbuf if the library will be modifying it */
if (mwbuf)
- HDmemcpy(s1_wbuf_bak, s1_wbuf, sizeof(s1_t) * DSET_SELECT_DIM);
+ memcpy(s1_wbuf_bak, s1_wbuf, sizeof(s1_t) * DSET_SELECT_DIM);
/* Write s1_wbuf to the dataset with only subset members in ss_tid */
if (H5Dwrite(did, ss_ac_tid, H5S_ALL, H5S_ALL, dxpl, s1_wbuf) < 0)
@@ -845,7 +845,7 @@ test_cmpd_with_bkg(hid_t fid, unsigned chunked, unsigned mwbuf)
/* Restore wbuf from backup if the library modified it */
if (mwbuf)
- HDmemcpy(s1_wbuf, s1_wbuf_bak, sizeof(s1_t) * DSET_SELECT_DIM);
+ memcpy(s1_wbuf, s1_wbuf_bak, sizeof(s1_t) * DSET_SELECT_DIM);
/* Read the whole compound back */
if (H5Dread(did, ss_ac_tid, H5S_ALL, H5S_ALL, dxpl, s1_rbuf) < 0)
@@ -923,14 +923,14 @@ test_cmpd_with_bkg(hid_t fid, unsigned chunked, unsigned mwbuf)
/* Copy wbuf if the library will be modifying it */
if (mwbuf)
- HDmemcpy(s2_wbuf_bak, s2_wbuf, sizeof(s2_t) * DSET_SELECT_DIM);
+ memcpy(s2_wbuf_bak, s2_wbuf, sizeof(s2_t) * DSET_SELECT_DIM);
if (H5Dwrite(did, s2_tid, H5S_ALL, H5S_ALL, dxpl, s2_wbuf) < 0)
FAIL_STACK_ERROR;
/* Restore wbuf from backup if the library modified it */
if (mwbuf)
- HDmemcpy(s2_wbuf, s2_wbuf_bak, sizeof(s2_t) * DSET_SELECT_DIM);
+ memcpy(s2_wbuf, s2_wbuf_bak, sizeof(s2_t) * DSET_SELECT_DIM);
/* Read it back */
if (H5Dread(did, s2_tid, H5S_ALL, H5S_ALL, dxpl, s2_rbuf) < 0) {
@@ -1159,7 +1159,7 @@ test_multi_dsets_no_bkg(hid_t fid, unsigned chunked, unsigned dtrans, unsigned m
/* Copy wbuf if the library will be modifying it */
if (mwbuf)
- HDmemcpy(total_wbuf_bak, total_wbuf, ndsets * DSET_SELECT_DIM * sizeof(int));
+ memcpy(total_wbuf_bak, total_wbuf, ndsets * DSET_SELECT_DIM * sizeof(int));
/* Write data to the dataset with/without data transform */
if (H5Dwrite_multi(ndsets, dset_dids, mem_tids, mem_sids, file_sids, dxpl, wbufs) < 0)
@@ -1167,7 +1167,7 @@ test_multi_dsets_no_bkg(hid_t fid, unsigned chunked, unsigned dtrans, unsigned m
/* Restore wbuf from backup if the library modified it */
if (mwbuf)
- HDmemcpy(total_wbuf, total_wbuf_bak, ndsets * DSET_SELECT_DIM * sizeof(int));
+ memcpy(total_wbuf, total_wbuf_bak, ndsets * DSET_SELECT_DIM * sizeof(int));
/* Read data from the dataset (if dtrans, without data transform set in dxpl) */
if (H5Dread_multi(ndsets, dset_dids, mem_tids, mem_sids, file_sids, ntrans_dxpl, rbufs) < 0)
@@ -1224,7 +1224,7 @@ test_multi_dsets_no_bkg(hid_t fid, unsigned chunked, unsigned dtrans, unsigned m
/* Copy wbuf if the library will be modifying it */
if (mwbuf)
- HDmemcpy(total_lwbuf_bak, total_lwbuf, ndsets * DSET_SELECT_DIM * sizeof(long));
+ memcpy(total_lwbuf_bak, total_lwbuf, ndsets * DSET_SELECT_DIM * sizeof(long));
/* Write data to the dataset with/without data transform */
if (H5Dwrite_multi(ndsets, dset_dids, mem_tids, mem_sids, file_sids, dxpl, wbufs) < 0)
@@ -1232,7 +1232,7 @@ test_multi_dsets_no_bkg(hid_t fid, unsigned chunked, unsigned dtrans, unsigned m
/* Restore wbuf from backup if the library modified it */
if (mwbuf)
- HDmemcpy(total_lwbuf, total_lwbuf_bak, ndsets * DSET_SELECT_DIM * sizeof(long));
+ memcpy(total_lwbuf, total_lwbuf_bak, ndsets * DSET_SELECT_DIM * sizeof(long));
/* Read data from the dataset (if dtrans, with data transform again in dxpl) */
if (H5Dread_multi(ndsets, dset_dids, mem_tids, mem_sids, file_sids, dxpl, rbufs) < 0)
@@ -1484,14 +1484,14 @@ test_multi_dsets_cmpd_with_bkg(hid_t fid, unsigned chunked, unsigned mwbuf)
/* Copy wbuf if the library will be modifying it */
if (mwbuf)
- HDmemcpy(total_wbuf_bak, total_wbuf, buf_size);
+ memcpy(total_wbuf_bak, total_wbuf, buf_size);
if (H5Dwrite_multi(ndsets, dset_dids, mem_tids, mem_sids, file_sids, dxpl, wbufs) < 0)
TEST_ERROR;
/* Restore wbuf from backup if the library modified it */
if (mwbuf)
- HDmemcpy(total_wbuf, total_wbuf_bak, buf_size);
+ memcpy(total_wbuf, total_wbuf_bak, buf_size);
if (H5Dread_multi(ndsets, dset_dids, mem_tids, mem_sids, file_sids, dxpl, rbufs) < 0)
TEST_ERROR;
@@ -1543,14 +1543,14 @@ test_multi_dsets_cmpd_with_bkg(hid_t fid, unsigned chunked, unsigned mwbuf)
/* Copy wbuf if the library will be modifying it */
if (mwbuf)
- HDmemcpy(total_wbuf_bak, total_wbuf, buf_size);
+ memcpy(total_wbuf_bak, total_wbuf, buf_size);
if (H5Dwrite_multi(ndsets, dset_dids, mem_tids, mem_sids, file_sids, dxpl, wbufs) < 0)
TEST_ERROR;
/* Restore wbuf from backup if the library modified it */
if (mwbuf)
- HDmemcpy(total_wbuf, total_wbuf_bak, buf_size);
+ memcpy(total_wbuf, total_wbuf_bak, buf_size);
if (H5Dread_multi(ndsets, dset_dids, mem_tids, mem_sids, file_sids, dxpl, rbufs) < 0)
TEST_ERROR;
@@ -1701,14 +1701,14 @@ test_multi_dsets_cmpd_with_bkg(hid_t fid, unsigned chunked, unsigned mwbuf)
/* Copy wbuf if the library will be modifying it */
if (mwbuf)
- HDmemcpy(s2_total_wbuf_bak, s2_total_wbuf, s2_buf_size);
+ memcpy(s2_total_wbuf_bak, s2_total_wbuf, s2_buf_size);
if (H5Dwrite_multi(ndsets, dset_dids, mem_tids, mem_sids, file_sids, dxpl, wbufs) < 0)
TEST_ERROR;
/* Restore wbuf from backup if the library modified it */
if (mwbuf)
- HDmemcpy(s2_total_wbuf, s2_total_wbuf_bak, s2_buf_size);
+ memcpy(s2_total_wbuf, s2_total_wbuf_bak, s2_buf_size);
if (H5Dread_multi(ndsets, dset_dids, mem_tids, mem_sids, file_sids, dxpl, rbufs) < 0)
TEST_ERROR;
@@ -1911,7 +1911,7 @@ test_multi_dsets_size_change_no_bkg(hid_t fid, unsigned chunked, unsigned mwbuf)
/* Copy wbuf if the library will be modifying it */
if (mwbuf)
- HDmemcpy(total_wbuf_bak, total_wbuf, buf_size);
+ memcpy(total_wbuf_bak, total_wbuf, buf_size);
/* Write data to the dataset */
if (H5Dwrite_multi(ndsets, dset_dids, mem_tids, mem_sids, file_sids, dxpl, wbufs) < 0)
@@ -1919,7 +1919,7 @@ test_multi_dsets_size_change_no_bkg(hid_t fid, unsigned chunked, unsigned mwbuf)
/* Restore wbuf from backup if the library modified it */
if (mwbuf)
- HDmemcpy(total_wbuf, total_wbuf_bak, buf_size);
+ memcpy(total_wbuf, total_wbuf_bak, buf_size);
/* Read data from the dataset */
if (H5Dread_multi(ndsets, dset_dids, mem_tids, mem_sids, file_sids, dxpl, rbufs) < 0)
@@ -1982,7 +1982,7 @@ test_multi_dsets_size_change_no_bkg(hid_t fid, unsigned chunked, unsigned mwbuf)
/* Copy wbuf if the library will be modifying it */
if (mwbuf)
- HDmemcpy(total_lwbuf_bak, total_lwbuf, buf_size);
+ memcpy(total_lwbuf_bak, total_lwbuf, buf_size);
/* Write data to the dataset */
if (H5Dwrite_multi(ndsets, dset_dids, mem_tids, mem_sids, file_sids, dxpl, wbufs) < 0)
@@ -1990,7 +1990,7 @@ test_multi_dsets_size_change_no_bkg(hid_t fid, unsigned chunked, unsigned mwbuf)
/* Restore wbuf from backup if the library modified it */
if (mwbuf)
- HDmemcpy(total_lwbuf, total_lwbuf_bak, buf_size);
+ memcpy(total_lwbuf, total_lwbuf_bak, buf_size);
/* Read data from the dataset */
if (H5Dread_multi(ndsets, dset_dids, mem_tids, mem_sids, file_sids, dxpl, rbufs) < 0)
@@ -2051,7 +2051,7 @@ test_multi_dsets_size_change_no_bkg(hid_t fid, unsigned chunked, unsigned mwbuf)
/* Copy wbuf if the library will be modifying it */
if (mwbuf)
- HDmemcpy(total_swbuf_bak, total_swbuf, buf_size);
+ memcpy(total_swbuf_bak, total_swbuf, buf_size);
/* Write data to the dataset */
if (H5Dwrite_multi(ndsets, dset_dids, mem_tids, mem_sids, file_sids, dxpl, wbufs) < 0)
@@ -2059,7 +2059,7 @@ test_multi_dsets_size_change_no_bkg(hid_t fid, unsigned chunked, unsigned mwbuf)
/* Restore wbuf from backup if the library modified it */
if (mwbuf)
- HDmemcpy(total_swbuf, total_swbuf_bak, buf_size);
+ memcpy(total_swbuf, total_swbuf_bak, buf_size);
/* Read data from the dataset */
if (H5Dread_multi(ndsets, dset_dids, mem_tids, mem_sids, file_sids, dxpl, rbufs) < 0)
@@ -2515,12 +2515,11 @@ test_multi_dsets_all(int niter, hid_t fid, unsigned chunked, unsigned mwbuf)
/* Copy wbufs if the library will be modifying them */
if (mwbuf) {
- HDmemcpy(total_wbuf1_bak, total_wbuf1, ndsets * DSET_SELECT_DIM * sizeof(int));
- HDmemcpy(ul_total_wbuf2_bak, ul_total_wbuf2,
- ndsets * DSET_SELECT_DIM * sizeof(unsigned long));
- HDmemcpy(l_total_wbuf2_bak, l_total_wbuf2, ndsets * DSET_SELECT_DIM * sizeof(long));
- HDmemcpy(s1_total_wbuf3_bak, s1_total_wbuf3, ndsets * DSET_SELECT_DIM * sizeof(s1_t));
- HDmemcpy(s4_total_wbuf3_bak, s4_total_wbuf3, ndsets * DSET_SELECT_DIM * sizeof(s4_t));
+ memcpy(total_wbuf1_bak, total_wbuf1, ndsets * DSET_SELECT_DIM * sizeof(int));
+ memcpy(ul_total_wbuf2_bak, ul_total_wbuf2, ndsets * DSET_SELECT_DIM * sizeof(unsigned long));
+ memcpy(l_total_wbuf2_bak, l_total_wbuf2, ndsets * DSET_SELECT_DIM * sizeof(long));
+ memcpy(s1_total_wbuf3_bak, s1_total_wbuf3, ndsets * DSET_SELECT_DIM * sizeof(s1_t));
+ memcpy(s4_total_wbuf3_bak, s4_total_wbuf3, ndsets * DSET_SELECT_DIM * sizeof(s4_t));
}
if (H5Dwrite_multi(ndsets, dset_dids, mem_tids, mem_sids, file_sids, dxpl, wbufs) < 0)
@@ -2528,12 +2527,11 @@ test_multi_dsets_all(int niter, hid_t fid, unsigned chunked, unsigned mwbuf)
/* Restore wbufs from backup if the library modified them */
if (mwbuf) {
- HDmemcpy(total_wbuf1, total_wbuf1_bak, ndsets * DSET_SELECT_DIM * sizeof(int));
- HDmemcpy(ul_total_wbuf2, ul_total_wbuf2_bak,
- ndsets * DSET_SELECT_DIM * sizeof(unsigned long));
- HDmemcpy(l_total_wbuf2, l_total_wbuf2_bak, ndsets * DSET_SELECT_DIM * sizeof(long));
- HDmemcpy(s1_total_wbuf3, s1_total_wbuf3_bak, ndsets * DSET_SELECT_DIM * sizeof(s1_t));
- HDmemcpy(s4_total_wbuf3, s4_total_wbuf3_bak, ndsets * DSET_SELECT_DIM * sizeof(s4_t));
+ memcpy(total_wbuf1, total_wbuf1_bak, ndsets * DSET_SELECT_DIM * sizeof(int));
+ memcpy(ul_total_wbuf2, ul_total_wbuf2_bak, ndsets * DSET_SELECT_DIM * sizeof(unsigned long));
+ memcpy(l_total_wbuf2, l_total_wbuf2_bak, ndsets * DSET_SELECT_DIM * sizeof(long));
+ memcpy(s1_total_wbuf3, s1_total_wbuf3_bak, ndsets * DSET_SELECT_DIM * sizeof(s1_t));
+ memcpy(s4_total_wbuf3, s4_total_wbuf3_bak, ndsets * DSET_SELECT_DIM * sizeof(s4_t));
}
if (H5Dread_multi(ndsets, dset_dids, r_mem_tids, mem_sids, file_sids, dxpl, rbufs) < 0)
diff --git a/test/stab.c b/test/stab.c
index cb7f7e3..acfe090 100644
--- a/test/stab.c
+++ b/test/stab.c
@@ -650,7 +650,7 @@ long_compact(hid_t fcpl, hid_t fapl2)
/* Construct very long object name template */
if (NULL == (objname = (char *)malloc((size_t)(LONG_COMPACT_LENGTH + 1))))
TEST_ERROR;
- HDmemset(objname, 'a', (size_t)LONG_COMPACT_LENGTH);
+ memset(objname, 'a', (size_t)LONG_COMPACT_LENGTH);
objname[LONG_COMPACT_LENGTH] = '\0';
/* Re-open file */
diff --git a/test/swmr.c b/test/swmr.c
index a7ccaac..0354744 100644
--- a/test/swmr.c
+++ b/test/swmr.c
@@ -3048,8 +3048,8 @@ test_start_swmr_write_stress_ohdr(hid_t in_fapl)
TESTING("H5Fstart_swmr_write()--stress object header messages");
/* Initialize buffers */
- HDmemset(fill, 0, sizeof(fill));
- HDmemset(attr_data, 0, sizeof(attr_data));
+ memset(fill, 0, sizeof(fill));
+ memset(attr_data, 0, sizeof(attr_data));
if ((fapl = H5Pcopy(in_fapl)) < 0)
FAIL_STACK_ERROR;
@@ -3992,7 +3992,7 @@ test_append_flush_generic(void)
TEST_ERROR;
/* Verify expected values: with boundary rank < set boundary rank */
- HDmemset(ret_boundary, 0, sizeof(ret_boundary));
+ memset(ret_boundary, 0, sizeof(ret_boundary));
if (H5Pget_append_flush(dapl, 1, ret_boundary, NULL, NULL) < 0)
TEST_ERROR;
if (ret_boundary[0] != 1 || ret_boundary[1] != 0 || boundary[2] != 0)
@@ -4123,7 +4123,7 @@ test_append_flush_dataset_chunked(hid_t in_fapl)
FAIL_STACK_ERROR;
/* Set boundary dimension rank > the rank of dataset to be created */
- HDmemset(boundary, 0, sizeof(boundary));
+ memset(boundary, 0, sizeof(boundary));
if (H5Pset_append_flush(dapl, 3, boundary, NULL, NULL) < 0)
FAIL_STACK_ERROR;
@@ -4185,7 +4185,7 @@ test_append_flush_dataset_chunked(hid_t in_fapl)
if ((ddapl = H5Dget_access_plist(did2)) < 0)
FAIL_STACK_ERROR;
- HDmemset(ret_boundary, 0, sizeof(ret_boundary));
+ memset(ret_boundary, 0, sizeof(ret_boundary));
ret_cb = NULL;
ret_count = NULL;
/* Retrieve the append flush property values */
@@ -4198,7 +4198,7 @@ test_append_flush_dataset_chunked(hid_t in_fapl)
if (ret_boundary[0] != 0 || ret_boundary[1] != 1 || ret_boundary[2] != 0)
TEST_ERROR;
- HDmemset(ret_boundary, 0, sizeof(ret_boundary));
+ memset(ret_boundary, 0, sizeof(ret_boundary));
/* Retrieve the append flush property values */
if (H5Pget_append_flush(ddapl, 1, ret_boundary, NULL, NULL) < 0)
TEST_ERROR;
@@ -4396,7 +4396,7 @@ test_append_flush_dataset_fixed(hid_t in_fapl)
* zero boundary, null callback function, null user data
*/
- HDmemset(boundary, 0, sizeof(boundary));
+ memset(boundary, 0, sizeof(boundary));
if (H5Pset_append_flush(dapl, 1, boundary, append_cb, &count) < 0)
FAIL_STACK_ERROR;
if ((did2 = H5Dopen2(fid, "dataset2", dapl)) < 0)
diff --git a/test/swmr_addrem_writer.c b/test/swmr_addrem_writer.c
index 7b6e78c..8fd907a 100644
--- a/test/swmr_addrem_writer.c
+++ b/test/swmr_addrem_writer.c
@@ -151,7 +151,7 @@ addrem_records(hid_t fid, unsigned verbose, unsigned long nops, unsigned long fl
assert(fid > 0);
/* Reset the buffer */
- HDmemset(&buf, 0, sizeof(buf));
+ memset(&buf, 0, sizeof(buf));
/* Create a dataspace for the record to add */
if ((mem_sid = H5Screate_simple(2, count, NULL)) < 0)
diff --git a/test/swmr_generator.c b/test/swmr_generator.c
index e24ccab..75e392d 100644
--- a/test/swmr_generator.c
+++ b/test/swmr_generator.c
@@ -169,7 +169,7 @@ gen_skeleton(const char *filename, hbool_t verbose, hbool_t swmr_write, int comp
/* Currently fill values do not work because they can bump the dataspace
* message to the second object header chunk. We should enable the fillval
* here when this is fixed. -NAF 8/11/11 */
- HDmemset(&fillval, 0, sizeof(fillval));
+ memset(&fillval, 0, sizeof(fillval));
fillval.rec_id = (uint64_t)ULLONG_MAX;
if (H5Pset_fill_value(dcpl, tid, &fillval) < 0)
return -1;
diff --git a/test/swmr_reader.c b/test/swmr_reader.c
index e14ec7d..08c6307 100644
--- a/test/swmr_reader.c
+++ b/test/swmr_reader.c
@@ -210,7 +210,7 @@ read_records(const char *filename, hbool_t verbose, FILE *verbose_file, unsigned
/* Reset the record */
/* (record's 'info' field might need to change for each record read, also) */
- HDmemset(&record, 0, sizeof(record));
+ memset(&record, 0, sizeof(record));
/* Emit informational message */
if (verbose)
@@ -305,7 +305,7 @@ read_records(const char *filename, hbool_t verbose, FILE *verbose_file, unsigned
/* Check common dataset */
if (check_dataset(fid, verbose, verbose_file, sym_com[v]->name, &record, mem_sid) < 0)
return -1;
- HDmemset(&record, 0, sizeof(record));
+ memset(&record, 0, sizeof(record));
} /* end for */
} /* end if */
@@ -320,7 +320,7 @@ read_records(const char *filename, hbool_t verbose, FILE *verbose_file, unsigned
/* Check random dataset */
if (check_dataset(fid, verbose, verbose_file, sym_rand[v]->name, &record, mem_sid) < 0)
return -1;
- HDmemset(&record, 0, sizeof(record));
+ memset(&record, 0, sizeof(record));
} /* end for */
} /* end if */
diff --git a/test/swmr_remove_reader.c b/test/swmr_remove_reader.c
index 321a2fc..9a39356 100644
--- a/test/swmr_remove_reader.c
+++ b/test/swmr_remove_reader.c
@@ -205,7 +205,7 @@ read_records(const char *filename, unsigned verbose, unsigned long nseconds, uns
/* Reset the record */
/* (record's 'info' field might need to change for each record written, also) */
- HDmemset(&record, 0, sizeof(record));
+ memset(&record, 0, sizeof(record));
/* Emit informational message */
if (verbose)
@@ -291,7 +291,7 @@ read_records(const char *filename, unsigned verbose, unsigned long nseconds, uns
/* Check common dataset */
if (check_dataset(fid, verbose, sym_com[v]->name, &record, mem_sid) < 0)
return -1;
- HDmemset(&record, 0, sizeof(record));
+ memset(&record, 0, sizeof(record));
} /* end for */
} /* end if */
@@ -306,7 +306,7 @@ read_records(const char *filename, unsigned verbose, unsigned long nseconds, uns
/* Check random dataset */
if (check_dataset(fid, verbose, sym_rand[v]->name, &record, mem_sid) < 0)
return -1;
- HDmemset(&record, 0, sizeof(record));
+ memset(&record, 0, sizeof(record));
} /* end for */
} /* end if */
diff --git a/test/swmr_sparse_reader.c b/test/swmr_sparse_reader.c
index ae422b6..5a2f464 100644
--- a/test/swmr_sparse_reader.c
+++ b/test/swmr_sparse_reader.c
@@ -209,7 +209,7 @@ read_records(const char *filename, unsigned verbose, unsigned long nrecords, uns
/* Reset the record */
/* (record's 'info' field might need to change for each record written, also) */
- HDmemset(&record, 0, sizeof(record));
+ memset(&record, 0, sizeof(record));
/* Create a dataspace for the record to read */
if ((mem_sid = H5Screate(H5S_SCALAR)) < 0)
@@ -284,7 +284,7 @@ read_records(const char *filename, unsigned verbose, unsigned long nrecords, uns
/* Check dataset */
if (check_dataset(fid, verbose, symbol, &record, mem_sid) < 0)
return -1;
- HDmemset(&record, 0, sizeof(record));
+ memset(&record, 0, sizeof(record));
/* Check for reopen */
iter_to_reopen--;
diff --git a/test/swmr_sparse_writer.c b/test/swmr_sparse_writer.c
index c536d3c..edef5c6 100644
--- a/test/swmr_sparse_writer.c
+++ b/test/swmr_sparse_writer.c
@@ -157,7 +157,7 @@ add_records(hid_t fid, unsigned verbose, unsigned long nrecords, unsigned long f
/* Reset the record */
/* (record's 'info' field might need to change for each record written, also) */
- HDmemset(&record, 0, sizeof(record));
+ memset(&record, 0, sizeof(record));
/* Create a dataspace for the record to add */
if ((mem_sid = H5Screate(H5S_SCALAR)) < 0)
diff --git a/test/swmr_start_write.c b/test/swmr_start_write.c
index fa5e99b..2bea7d4 100644
--- a/test/swmr_start_write.c
+++ b/test/swmr_start_write.c
@@ -223,7 +223,7 @@ add_records(hid_t fid, hbool_t verbose, FILE *verbose_file, unsigned long nrecor
/* Reset the record */
/* (record's 'info' field might need to change for each record written, also) */
- HDmemset(&record, 0, sizeof(record));
+ memset(&record, 0, sizeof(record));
/* Create a dataspace for the record to add */
if ((mem_sid = H5Screate(H5S_SCALAR)) < 0)
diff --git a/test/swmr_writer.c b/test/swmr_writer.c
index 81d4351..8397c43 100644
--- a/test/swmr_writer.c
+++ b/test/swmr_writer.c
@@ -159,7 +159,7 @@ add_records(hid_t fid, hbool_t verbose, FILE *verbose_file, unsigned long nrecor
/* Reset the record */
/* (record's 'info' field might need to change for each record written, also) */
- HDmemset(&record, 0, sizeof(record));
+ memset(&record, 0, sizeof(record));
/* Create a dataspace for the record to add */
if ((mem_sid = H5Screate(H5S_SCALAR)) < 0)
diff --git a/test/tarray.c b/test/tarray.c
index fede075..5978d9f 100644
--- a/test/tarray.c
+++ b/test/tarray.c
@@ -1634,7 +1634,7 @@ test_array_bkg(void)
/* ------------------- */
dtsinfo = (CmpDTSinfo *)malloc(sizeof(CmpDTSinfo));
CHECK_PTR(dtsinfo, "malloc");
- HDmemset(dtsinfo, 0, sizeof(CmpDTSinfo));
+ memset(dtsinfo, 0, sizeof(CmpDTSinfo));
for (i = 0; i < LENGTH; i++) {
for (j = 0; j < ALEN; j++) {
cf[i].a[j] = 100 * (i + 1) + j;
@@ -1849,7 +1849,7 @@ test_array_bkg(void)
/* Reset the data to read in */
/* ------------------------- */
- HDmemset(cfr, 0, sizeof(CmpField) * LENGTH);
+ memset(cfr, 0, sizeof(CmpField) * LENGTH);
status = H5Dread(dataset, type, H5S_ALL, H5S_ALL, H5P_DEFAULT, cfr);
CHECK(status, FAIL, "H5Dread");
diff --git a/test/tattr.c b/test/tattr.c
index 2523b44..45f9865 100644
--- a/test/tattr.c
+++ b/test/tattr.c
@@ -918,7 +918,7 @@ test_attr_compound_read(hid_t fapl)
/* Verify values read in */
for (i = 0; i < ATTR4_DIM1; i++)
for (j = 0; j < ATTR4_DIM2; j++)
- if (HDmemcmp(&attr_data4[i][j], &read_data4[i][j], sizeof(struct attr4_struct)) != 0) {
+ if (memcmp(&attr_data4[i][j], &read_data4[i][j], sizeof(struct attr4_struct)) != 0) {
printf("%d: attribute data different: attr_data4[%d][%d].i=%d, read_data4[%d][%d].i=%d\n",
__LINE__, i, j, attr_data4[i][j].i, i, j, read_data4[i][j].i);
printf("%d: attribute data different: attr_data4[%d][%d].d=%f, read_data4[%d][%d].d=%f\n",
@@ -5682,19 +5682,19 @@ attr_info_by_idx_check(hid_t obj_id, const char *attrname, hsize_t n, hbool_t us
old_nerrs = GetTestNumErrs();
/* Verify the information for first attribute, in increasing creation order */
- HDmemset(&ainfo, 0, sizeof(ainfo));
+ memset(&ainfo, 0, sizeof(ainfo));
ret = H5Aget_info_by_idx(obj_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_INC, (hsize_t)0, &ainfo, H5P_DEFAULT);
CHECK(ret, FAIL, "H5Aget_info_by_idx");
VERIFY(ainfo.corder, 0, "H5Aget_info_by_idx");
/* Verify the information for new attribute, in increasing creation order */
- HDmemset(&ainfo, 0, sizeof(ainfo));
+ memset(&ainfo, 0, sizeof(ainfo));
ret = H5Aget_info_by_idx(obj_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_INC, n, &ainfo, H5P_DEFAULT);
CHECK(ret, FAIL, "H5Aget_info_by_idx");
VERIFY(ainfo.corder, n, "H5Aget_info_by_idx");
/* Verify the name for new link, in increasing creation order */
- HDmemset(tmpname, 0, (size_t)NAME_BUF_SIZE);
+ memset(tmpname, 0, (size_t)NAME_BUF_SIZE);
ret = (herr_t)H5Aget_name_by_idx(obj_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_INC, n, tmpname,
(size_t)NAME_BUF_SIZE, H5P_DEFAULT);
CHECK(ret, FAIL, "H5Aget_name_by_idx");
@@ -5707,20 +5707,20 @@ attr_info_by_idx_check(hid_t obj_id, const char *attrname, hsize_t n, hbool_t us
*/
if (use_index) {
/* Verify the information for first attribute, in native creation order */
- HDmemset(&ainfo, 0, sizeof(ainfo));
+ memset(&ainfo, 0, sizeof(ainfo));
ret = H5Aget_info_by_idx(obj_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_NATIVE, (hsize_t)0, &ainfo,
H5P_DEFAULT);
CHECK(ret, FAIL, "H5Aget_info_by_idx");
VERIFY(ainfo.corder, 0, "H5Aget_info_by_idx");
/* Verify the information for new attribute, in native creation order */
- HDmemset(&ainfo, 0, sizeof(ainfo));
+ memset(&ainfo, 0, sizeof(ainfo));
ret = H5Aget_info_by_idx(obj_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_NATIVE, n, &ainfo, H5P_DEFAULT);
CHECK(ret, FAIL, "H5Aget_info_by_idx");
VERIFY(ainfo.corder, n, "H5Aget_info_by_idx");
/* Verify the name for new link, in increasing native order */
- HDmemset(tmpname, 0, (size_t)NAME_BUF_SIZE);
+ memset(tmpname, 0, (size_t)NAME_BUF_SIZE);
ret = (herr_t)H5Aget_name_by_idx(obj_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_NATIVE, n, tmpname,
(size_t)NAME_BUF_SIZE, H5P_DEFAULT);
CHECK(ret, FAIL, "H5Aget_name_by_idx");
@@ -5729,19 +5729,19 @@ attr_info_by_idx_check(hid_t obj_id, const char *attrname, hsize_t n, hbool_t us
} /* end if */
/* Verify the information for first attribute, in decreasing creation order */
- HDmemset(&ainfo, 0, sizeof(ainfo));
+ memset(&ainfo, 0, sizeof(ainfo));
ret = H5Aget_info_by_idx(obj_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_DEC, n, &ainfo, H5P_DEFAULT);
CHECK(ret, FAIL, "H5Aget_info_by_idx");
VERIFY(ainfo.corder, 0, "H5Aget_info_by_idx");
/* Verify the information for new attribute, in increasing creation order */
- HDmemset(&ainfo, 0, sizeof(ainfo));
+ memset(&ainfo, 0, sizeof(ainfo));
ret = H5Aget_info_by_idx(obj_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_DEC, (hsize_t)0, &ainfo, H5P_DEFAULT);
CHECK(ret, FAIL, "H5Aget_info_by_idx");
VERIFY(ainfo.corder, n, "H5Aget_info_by_idx");
/* Verify the name for new link, in increasing creation order */
- HDmemset(tmpname, 0, (size_t)NAME_BUF_SIZE);
+ memset(tmpname, 0, (size_t)NAME_BUF_SIZE);
ret = (herr_t)H5Aget_name_by_idx(obj_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_DEC, (hsize_t)0, tmpname,
(size_t)NAME_BUF_SIZE, H5P_DEFAULT);
CHECK(ret, FAIL, "H5Aget_name_by_idx");
@@ -5749,19 +5749,19 @@ attr_info_by_idx_check(hid_t obj_id, const char *attrname, hsize_t n, hbool_t us
TestErrPrintf("Line %d: attribute name size wrong!\n", __LINE__);
/* Verify the information for first attribute, in increasing name order */
- HDmemset(&ainfo, 0, sizeof(ainfo));
+ memset(&ainfo, 0, sizeof(ainfo));
ret = H5Aget_info_by_idx(obj_id, ".", H5_INDEX_NAME, H5_ITER_INC, (hsize_t)0, &ainfo, H5P_DEFAULT);
CHECK(ret, FAIL, "H5Aget_info_by_idx");
VERIFY(ainfo.corder, 0, "H5Aget_info_by_idx");
/* Verify the information for new attribute, in increasing name order */
- HDmemset(&ainfo, 0, sizeof(ainfo));
+ memset(&ainfo, 0, sizeof(ainfo));
ret = H5Aget_info_by_idx(obj_id, ".", H5_INDEX_NAME, H5_ITER_INC, n, &ainfo, H5P_DEFAULT);
CHECK(ret, FAIL, "H5Aget_info_by_idx");
VERIFY(ainfo.corder, n, "H5Aget_info_by_idx");
/* Verify the name for new link, in increasing name order */
- HDmemset(tmpname, 0, (size_t)NAME_BUF_SIZE);
+ memset(tmpname, 0, (size_t)NAME_BUF_SIZE);
ret = (herr_t)H5Aget_name_by_idx(obj_id, ".", H5_INDEX_NAME, H5_ITER_INC, n, tmpname,
(size_t)NAME_BUF_SIZE, H5P_DEFAULT);
CHECK(ret, FAIL, "H5Aget_name_by_idx");
@@ -5773,19 +5773,19 @@ attr_info_by_idx_check(hid_t obj_id, const char *attrname, hsize_t n, hbool_t us
*/
/* Verify the information for first attribute, in decreasing name order */
- HDmemset(&ainfo, 0, sizeof(ainfo));
+ memset(&ainfo, 0, sizeof(ainfo));
ret = H5Aget_info_by_idx(obj_id, ".", H5_INDEX_NAME, H5_ITER_DEC, n, &ainfo, H5P_DEFAULT);
CHECK(ret, FAIL, "H5Aget_info_by_idx");
VERIFY(ainfo.corder, 0, "H5Aget_info_by_idx");
/* Verify the information for new attribute, in increasing name order */
- HDmemset(&ainfo, 0, sizeof(ainfo));
+ memset(&ainfo, 0, sizeof(ainfo));
ret = H5Aget_info_by_idx(obj_id, ".", H5_INDEX_NAME, H5_ITER_DEC, (hsize_t)0, &ainfo, H5P_DEFAULT);
CHECK(ret, FAIL, "H5Aget_info_by_idx");
VERIFY(ainfo.corder, n, "H5Aget_info_by_idx");
/* Verify the name for new link, in increasing name order */
- HDmemset(tmpname, 0, (size_t)NAME_BUF_SIZE);
+ memset(tmpname, 0, (size_t)NAME_BUF_SIZE);
ret = (herr_t)H5Aget_name_by_idx(obj_id, ".", H5_INDEX_NAME, H5_ITER_DEC, (hsize_t)0, tmpname,
(size_t)NAME_BUF_SIZE, H5P_DEFAULT);
CHECK(ret, FAIL, "H5Aget_name_by_idx");
@@ -6494,7 +6494,7 @@ test_attr_delete_by_idx(hbool_t new_format, hid_t fcpl, hid_t fapl)
CHECK(ret, FAIL, "H5Adelete_by_idx");
/* Verify the attribute information for first attribute in appropriate order */
- HDmemset(&ainfo, 0, sizeof(ainfo));
+ memset(&ainfo, 0, sizeof(ainfo));
ret = H5Aget_info_by_idx(my_dataset, ".", idx_type, order, (hsize_t)0, &ainfo,
H5P_DEFAULT);
if (new_format) {
@@ -6507,7 +6507,7 @@ test_attr_delete_by_idx(hbool_t new_format, hid_t fcpl, hid_t fapl)
} /* end if */
/* Verify the name for first attribute in appropriate order */
- HDmemset(tmpname, 0, (size_t)NAME_BUF_SIZE);
+ memset(tmpname, 0, (size_t)NAME_BUF_SIZE);
ret = (herr_t)H5Aget_name_by_idx(my_dataset, ".", idx_type, order, (hsize_t)0,
tmpname, (size_t)NAME_BUF_SIZE, H5P_DEFAULT);
if (order == H5_ITER_INC)
@@ -6626,7 +6626,7 @@ test_attr_delete_by_idx(hbool_t new_format, hid_t fcpl, hid_t fapl)
CHECK(ret, FAIL, "H5Adelete_by_idx");
/* Verify the attribute information for first attribute in appropriate order */
- HDmemset(&ainfo, 0, sizeof(ainfo));
+ memset(&ainfo, 0, sizeof(ainfo));
ret = H5Aget_info_by_idx(my_dataset, ".", idx_type, order, (hsize_t)0, &ainfo,
H5P_DEFAULT);
if (new_format) {
@@ -6639,7 +6639,7 @@ test_attr_delete_by_idx(hbool_t new_format, hid_t fcpl, hid_t fapl)
} /* end if */
/* Verify the name for first attribute in appropriate order */
- HDmemset(tmpname, 0, (size_t)NAME_BUF_SIZE);
+ memset(tmpname, 0, (size_t)NAME_BUF_SIZE);
ret = (herr_t)H5Aget_name_by_idx(my_dataset, ".", idx_type, order, (hsize_t)0,
tmpname, (size_t)NAME_BUF_SIZE, H5P_DEFAULT);
if (order == H5_ITER_INC)
@@ -6743,7 +6743,7 @@ test_attr_delete_by_idx(hbool_t new_format, hid_t fcpl, hid_t fapl)
CHECK(ret, FAIL, "H5Adelete_by_idx");
/* Verify the attribute information for first attribute in appropriate order */
- HDmemset(&ainfo, 0, sizeof(ainfo));
+ memset(&ainfo, 0, sizeof(ainfo));
ret = H5Aget_info_by_idx(my_dataset, ".", idx_type, order, (hsize_t)u, &ainfo,
H5P_DEFAULT);
if (new_format) {
@@ -6757,7 +6757,7 @@ test_attr_delete_by_idx(hbool_t new_format, hid_t fcpl, hid_t fapl)
} /* end if */
/* Verify the name for first attribute in appropriate order */
- HDmemset(tmpname, 0, (size_t)NAME_BUF_SIZE);
+ memset(tmpname, 0, (size_t)NAME_BUF_SIZE);
ret = (herr_t)H5Aget_name_by_idx(my_dataset, ".", idx_type, order, (hsize_t)u,
tmpname, (size_t)NAME_BUF_SIZE, H5P_DEFAULT);
if (order == H5_ITER_INC)
@@ -6796,7 +6796,7 @@ test_attr_delete_by_idx(hbool_t new_format, hid_t fcpl, hid_t fapl)
CHECK(ret, FAIL, "H5Adelete_by_idx");
/* Verify the attribute information for first attribute in appropriate order */
- HDmemset(&ainfo, 0, sizeof(ainfo));
+ memset(&ainfo, 0, sizeof(ainfo));
ret = H5Aget_info_by_idx(my_dataset, ".", idx_type, order, (hsize_t)0, &ainfo,
H5P_DEFAULT);
if (new_format) {
@@ -6810,7 +6810,7 @@ test_attr_delete_by_idx(hbool_t new_format, hid_t fcpl, hid_t fapl)
} /* end if */
/* Verify the name for first attribute in appropriate order */
- HDmemset(tmpname, 0, (size_t)NAME_BUF_SIZE);
+ memset(tmpname, 0, (size_t)NAME_BUF_SIZE);
ret = (herr_t)H5Aget_name_by_idx(my_dataset, ".", idx_type, order, (hsize_t)0,
tmpname, (size_t)NAME_BUF_SIZE, H5P_DEFAULT);
if (order == H5_ITER_INC)
@@ -6990,7 +6990,7 @@ attr_iterate_check(hid_t fid, const char *dsetname, hid_t obj_id, H5_index_t idx
iter_info->stop = -1;
iter_info->ncalled = 0;
iter_info->curr = order != H5_ITER_DEC ? 0 : (max_attrs - 1);
- HDmemset(iter_info->visited, 0, sizeof(hbool_t) * iter_info->max_visit);
+ memset(iter_info->visited, 0, sizeof(hbool_t) * iter_info->max_visit);
ret = H5Aiterate2(obj_id, idx_type, order, &skip, attr_iterate2_cb, iter_info);
CHECK(ret, FAIL, "H5Aiterate2");
@@ -7005,7 +7005,7 @@ attr_iterate_check(hid_t fid, const char *dsetname, hid_t obj_id, H5_index_t idx
iter_info->stop = -1;
iter_info->ncalled = 0;
iter_info->curr = order != H5_ITER_DEC ? 0 : (max_attrs - 1);
- HDmemset(iter_info->visited, 0, sizeof(hbool_t) * iter_info->max_visit);
+ memset(iter_info->visited, 0, sizeof(hbool_t) * iter_info->max_visit);
ret = H5Aiterate_by_name(fid, dsetname, idx_type, order, &skip, attr_iterate2_cb, iter_info, H5P_DEFAULT);
CHECK(ret, FAIL, "H5Aiterate_by_name");
@@ -7020,7 +7020,7 @@ attr_iterate_check(hid_t fid, const char *dsetname, hid_t obj_id, H5_index_t idx
iter_info->stop = -1;
iter_info->ncalled = 0;
iter_info->curr = order != H5_ITER_DEC ? 0 : (max_attrs - 1);
- HDmemset(iter_info->visited, 0, sizeof(hbool_t) * iter_info->max_visit);
+ memset(iter_info->visited, 0, sizeof(hbool_t) * iter_info->max_visit);
ret = H5Aiterate_by_name(obj_id, ".", idx_type, order, &skip, attr_iterate2_cb, iter_info, H5P_DEFAULT);
CHECK(ret, FAIL, "H5Aiterate_by_name");
@@ -7036,7 +7036,7 @@ attr_iterate_check(hid_t fid, const char *dsetname, hid_t obj_id, H5_index_t idx
iter_info->stop = -1;
iter_info->ncalled = 0;
iter_info->curr = order != H5_ITER_DEC ? 0 : (max_attrs - 1);
- HDmemset(iter_info->visited, 0, sizeof(hbool_t) * iter_info->max_visit);
+ memset(iter_info->visited, 0, sizeof(hbool_t) * iter_info->max_visit);
ret = H5Aiterate1(obj_id, &oskip, attr_iterate1_cb, iter_info);
CHECK(ret, FAIL, "H5Aiterate1");
@@ -7052,7 +7052,7 @@ attr_iterate_check(hid_t fid, const char *dsetname, hid_t obj_id, H5_index_t idx
iter_info->stop = -1;
iter_info->ncalled = 0;
iter_info->curr = order != H5_ITER_DEC ? skip : ((max_attrs - 1) - skip);
- HDmemset(iter_info->visited, 0, sizeof(hbool_t) * iter_info->max_visit);
+ memset(iter_info->visited, 0, sizeof(hbool_t) * iter_info->max_visit);
ret = H5Aiterate2(obj_id, idx_type, order, &skip, attr_iterate2_cb, iter_info);
CHECK(ret, FAIL, "H5Aiterate2");
@@ -7083,7 +7083,7 @@ attr_iterate_check(hid_t fid, const char *dsetname, hid_t obj_id, H5_index_t idx
iter_info->stop = -1;
iter_info->ncalled = 0;
iter_info->curr = order != H5_ITER_DEC ? skip : ((max_attrs - 1) - skip);
- HDmemset(iter_info->visited, 0, sizeof(hbool_t) * iter_info->max_visit);
+ memset(iter_info->visited, 0, sizeof(hbool_t) * iter_info->max_visit);
ret = H5Aiterate_by_name(fid, dsetname, idx_type, order, &skip, attr_iterate2_cb, iter_info, H5P_DEFAULT);
CHECK(ret, FAIL, "H5Aiterate_by_name");
@@ -7114,7 +7114,7 @@ attr_iterate_check(hid_t fid, const char *dsetname, hid_t obj_id, H5_index_t idx
iter_info->stop = -1;
iter_info->ncalled = 0;
iter_info->curr = order != H5_ITER_DEC ? skip : ((max_attrs - 1) - skip);
- HDmemset(iter_info->visited, 0, sizeof(hbool_t) * iter_info->max_visit);
+ memset(iter_info->visited, 0, sizeof(hbool_t) * iter_info->max_visit);
ret = H5Aiterate_by_name(obj_id, ".", idx_type, order, &skip, attr_iterate2_cb, iter_info, H5P_DEFAULT);
CHECK(ret, FAIL, "H5Aiterate_by_name");
@@ -7146,7 +7146,7 @@ attr_iterate_check(hid_t fid, const char *dsetname, hid_t obj_id, H5_index_t idx
iter_info->stop = -1;
iter_info->ncalled = 0;
iter_info->curr = order != H5_ITER_DEC ? (unsigned)oskip : ((max_attrs - 1) - oskip);
- HDmemset(iter_info->visited, 0, sizeof(hbool_t) * iter_info->max_visit);
+ memset(iter_info->visited, 0, sizeof(hbool_t) * iter_info->max_visit);
ret = H5Aiterate1(obj_id, &oskip, attr_iterate1_cb, iter_info);
CHECK(ret, FAIL, "H5Aiterate1");
@@ -7178,7 +7178,7 @@ attr_iterate_check(hid_t fid, const char *dsetname, hid_t obj_id, H5_index_t idx
iter_info->stop = 3;
iter_info->ncalled = 0;
iter_info->curr = order != H5_ITER_DEC ? 0 : (max_attrs - 1);
- HDmemset(iter_info->visited, 0, sizeof(hbool_t) * iter_info->max_visit);
+ memset(iter_info->visited, 0, sizeof(hbool_t) * iter_info->max_visit);
ret = H5Aiterate2(obj_id, idx_type, order, &skip, attr_iterate2_cb, iter_info);
CHECK(ret, FAIL, "H5Aiterate2");
VERIFY(ret, CORDER_ITER_STOP, "H5Aiterate2");
@@ -7190,7 +7190,7 @@ attr_iterate_check(hid_t fid, const char *dsetname, hid_t obj_id, H5_index_t idx
iter_info->stop = 3;
iter_info->ncalled = 0;
iter_info->curr = order != H5_ITER_DEC ? 0 : (max_attrs - 1);
- HDmemset(iter_info->visited, 0, sizeof(hbool_t) * iter_info->max_visit);
+ memset(iter_info->visited, 0, sizeof(hbool_t) * iter_info->max_visit);
ret = H5Aiterate_by_name(fid, dsetname, idx_type, order, &skip, attr_iterate2_cb, iter_info, H5P_DEFAULT);
CHECK(ret, FAIL, "H5Aiterate_by_name");
VERIFY(ret, CORDER_ITER_STOP, "H5Aiterate_by_name");
@@ -7202,7 +7202,7 @@ attr_iterate_check(hid_t fid, const char *dsetname, hid_t obj_id, H5_index_t idx
iter_info->stop = 3;
iter_info->ncalled = 0;
iter_info->curr = order != H5_ITER_DEC ? 0 : (max_attrs - 1);
- HDmemset(iter_info->visited, 0, sizeof(hbool_t) * iter_info->max_visit);
+ memset(iter_info->visited, 0, sizeof(hbool_t) * iter_info->max_visit);
ret = H5Aiterate_by_name(obj_id, ".", idx_type, order, &skip, attr_iterate2_cb, iter_info, H5P_DEFAULT);
CHECK(ret, FAIL, "H5Aiterate_by_name");
VERIFY(ret, CORDER_ITER_STOP, "H5Aiterate_by_name");
@@ -7215,7 +7215,7 @@ attr_iterate_check(hid_t fid, const char *dsetname, hid_t obj_id, H5_index_t idx
iter_info->stop = 3;
iter_info->ncalled = 0;
iter_info->curr = order != H5_ITER_DEC ? 0 : (max_attrs - 1);
- HDmemset(iter_info->visited, 0, sizeof(hbool_t) * iter_info->max_visit);
+ memset(iter_info->visited, 0, sizeof(hbool_t) * iter_info->max_visit);
ret = H5Aiterate1(obj_id, &oskip, attr_iterate1_cb, iter_info);
CHECK(ret, FAIL, "H5Aiterate1");
VERIFY(ret, CORDER_ITER_STOP, "H5Aiterate1");
@@ -8596,7 +8596,7 @@ test_attr_shared_write(hid_t fcpl, hid_t fapl)
/* Allocate & initialize "big" attribute data */
big_value = (unsigned *)malloc((size_t)(SPACE1_DIM1 * SPACE1_DIM2 * SPACE1_DIM3) * sizeof(unsigned));
CHECK_PTR(big_value, "malloc");
- HDmemset(big_value, 1, sizeof(unsigned) * (size_t)(SPACE1_DIM1 * SPACE1_DIM2 * SPACE1_DIM3));
+ memset(big_value, 1, sizeof(unsigned) * (size_t)(SPACE1_DIM1 * SPACE1_DIM2 * SPACE1_DIM3));
/* Create dataspace for dataset */
sid = H5Screate(H5S_SCALAR);
@@ -8933,7 +8933,7 @@ test_attr_shared_rename(hid_t fcpl, hid_t fapl)
/* Allocate & initialize "big" attribute data */
big_value = (unsigned *)malloc((size_t)(SPACE1_DIM1 * SPACE1_DIM2 * SPACE1_DIM3) * sizeof(unsigned));
CHECK_PTR(big_value, "malloc");
- HDmemset(big_value, 1, sizeof(unsigned) * (size_t)(SPACE1_DIM1 * SPACE1_DIM2 * SPACE1_DIM3));
+ memset(big_value, 1, sizeof(unsigned) * (size_t)(SPACE1_DIM1 * SPACE1_DIM2 * SPACE1_DIM3));
/* Create dataspace for dataset */
sid = H5Screate(H5S_SCALAR);
@@ -9380,7 +9380,7 @@ test_attr_shared_delete(hid_t fcpl, hid_t fapl)
/* Allocate & initialize "big" attribute data */
big_value = (unsigned *)malloc((size_t)(SPACE1_DIM1 * SPACE1_DIM2 * SPACE1_DIM3) * sizeof(unsigned));
CHECK_PTR(big_value, "malloc");
- HDmemset(big_value, 1, sizeof(unsigned) * (size_t)(SPACE1_DIM1 * SPACE1_DIM2 * SPACE1_DIM3));
+ memset(big_value, 1, sizeof(unsigned) * (size_t)(SPACE1_DIM1 * SPACE1_DIM2 * SPACE1_DIM3));
/* Create dataspace for dataset */
sid = H5Screate(H5S_SCALAR);
@@ -9752,7 +9752,7 @@ test_attr_shared_unlink(hid_t fcpl, hid_t fapl)
/* Allocate & initialize "big" attribute data */
big_value = (unsigned *)malloc((size_t)(SPACE1_DIM1 * SPACE1_DIM2 * SPACE1_DIM3) * sizeof(unsigned));
CHECK_PTR(big_value, "malloc");
- HDmemset(big_value, 1, sizeof(unsigned) * (size_t)(SPACE1_DIM1 * SPACE1_DIM2 * SPACE1_DIM3));
+ memset(big_value, 1, sizeof(unsigned) * (size_t)(SPACE1_DIM1 * SPACE1_DIM2 * SPACE1_DIM3));
/* Create dataspace for dataset */
sid = H5Screate(H5S_SCALAR);
diff --git a/test/tchecksum.c b/test/tchecksum.c
index 450be3f..62db33c 100644
--- a/test/tchecksum.c
+++ b/test/tchecksum.c
@@ -55,7 +55,7 @@ test_chksum_size_one(void)
VERIFY(chksum, 0xa209c931, "H5_checksum_lookup3");
/* Buffer w/zero(s) for data */
- HDmemset(buf, 0, sizeof(buf));
+ memset(buf, 0, sizeof(buf));
chksum = H5_checksum_fletcher32(buf, sizeof(buf));
VERIFY(chksum, 0, "H5_checksum_fletcher32");
@@ -88,7 +88,7 @@ test_chksum_size_two(void)
VERIFY(chksum, 0x8ba7a6c9, "H5_checksum_lookup3");
/* Buffer w/zero(s) for data */
- HDmemset(buf, 0, sizeof(buf));
+ memset(buf, 0, sizeof(buf));
chksum = H5_checksum_fletcher32(buf, sizeof(buf));
VERIFY(chksum, 0, "H5_checksum_fletcher32");
@@ -121,7 +121,7 @@ test_chksum_size_three(void)
VERIFY(chksum, 0xcebdf4f0, "H5_checksum_lookup3");
/* Buffer w/zero(s) for data */
- HDmemset(buf, 0, sizeof(buf));
+ memset(buf, 0, sizeof(buf));
chksum = H5_checksum_fletcher32(buf, sizeof(buf));
VERIFY(chksum, 0, "H5_checksum_fletcher32");
@@ -154,7 +154,7 @@ test_chksum_size_four(void)
VERIFY(chksum, 0x2c88bb51, "H5_checksum_lookup3");
/* Buffer w/zero(s) for data */
- HDmemset(buf, 0, sizeof(buf));
+ memset(buf, 0, sizeof(buf));
chksum = H5_checksum_fletcher32(buf, sizeof(buf));
VERIFY(chksum, 0, "H5_checksum_fletcher32");
@@ -196,7 +196,7 @@ test_chksum_large(void)
VERIFY(chksum, 0x1bd2ee7b, "H5_checksum_lookup3");
/* Buffer w/zero(s) for data */
- HDmemset(large_buf, 0, (size_t)BUF_LEN);
+ memset(large_buf, 0, (size_t)BUF_LEN);
chksum = H5_checksum_fletcher32(large_buf, (size_t)BUF_LEN);
VERIFY(chksum, 0, "H5_checksum_fletcher32");
diff --git a/test/tcoords.c b/test/tcoords.c
index 6b3193f..a06b103 100644
--- a/test/tcoords.c
+++ b/test/tcoords.c
@@ -86,7 +86,7 @@ test_singleEnd_selElements(hid_t file, hbool_t is_chunked)
}
/* Construct dataset's name */
- HDmemset(dset_name, 0, (size_t)NAME_LEN);
+ memset(dset_name, 0, (size_t)NAME_LEN);
HDstrcat(dset_name, SINGLE_END_DSET);
if (is_chunked)
HDstrcat(dset_name, "_chunked");
@@ -258,7 +258,7 @@ test_singleEnd_selHyperslab(hid_t file, hbool_t is_chunked)
hsize_t mem3_block[4] = {1, 3, 6, 1};
/* Construct dataset's name */
- HDmemset(dset_name, 0, NAME_LEN);
+ memset(dset_name, 0, NAME_LEN);
HDstrcat(dset_name, SINGLE_END_DSET);
if (is_chunked)
HDstrcat(dset_name, "_chunked");
@@ -461,7 +461,7 @@ test_multiple_ends(hid_t file, hbool_t is_chunked)
}
/* Construct dataset's name */
- HDmemset(dset_name, 0, NAME_LEN);
+ memset(dset_name, 0, NAME_LEN);
HDstrcat(dset_name, MULTI_ENDS_SEL_HYPER_DSET);
if (is_chunked)
HDstrcat(dset_name, "_chunked");
diff --git a/test/tfile.c b/test/tfile.c
index 5cd0e7d..a68ec03 100644
--- a/test/tfile.c
+++ b/test/tfile.c
@@ -2795,7 +2795,7 @@ test_file_double_file_dataset_open(hbool_t new_format)
CHECK(tid1, FAIL, "H5Tcopy");
/* Second file's dataset read */
- HDmemset(buffer, 0, sizeof(char *) * 5);
+ memset(buffer, 0, sizeof(char *) * 5);
ret = H5Dread(did2, tid2, H5S_ALL, H5S_ALL, H5P_DEFAULT, buffer);
CHECK(ret, FAIL, "H5Dread");
ret = H5Treclaim(tid2, sid1, H5P_DEFAULT, buffer);
@@ -2810,7 +2810,7 @@ test_file_double_file_dataset_open(hbool_t new_format)
CHECK(ret, FAIL, "H5Fclose");
/* First file's dataset read */
- HDmemset(buffer, 0, sizeof(char *) * 5);
+ memset(buffer, 0, sizeof(char *) * 5);
ret = H5Dread(did1, tid1, H5S_ALL, H5S_ALL, H5P_DEFAULT, buffer);
CHECK(ret, FAIL, "H5Dread");
ret = H5Treclaim(tid2, sid1, H5P_DEFAULT, buffer);
@@ -4395,7 +4395,7 @@ set_multi_split(hid_t fapl, hsize_t pagesize, hbool_t split)
assert(split);
- HDmemset(memb_name, 0, sizeof memb_name);
+ memset(memb_name, 0, sizeof memb_name);
/* Get current split settings */
if (H5Pget_fapl_multi(fapl, memb_map, memb_fapl_arr, memb_name, memb_addr, &relax) < 0)
@@ -4743,7 +4743,7 @@ test_sects_freespace(const char *env_h5_drvr, hbool_t new_format)
VERIFY(nsects, FAIL, "H5Fget_free_sections");
/* Retrieve and verify free space info for all the sections */
- HDmemset(all_sect_info, 0, sizeof(all_sect_info));
+ memset(all_sect_info, 0, sizeof(all_sect_info));
nsects = H5Fget_free_sections(file, H5FD_MEM_DEFAULT, (size_t)nall, all_sect_info);
VERIFY(nsects, nall, "H5Fget_free_sections");
@@ -4756,7 +4756,7 @@ test_sects_freespace(const char *env_h5_drvr, hbool_t new_format)
last_size = all_sect_info[nall - 1].size;
/* Retrieve and verify free space info for -1 sections */
- HDmemset(sect_info, 0, sizeof(sect_info));
+ memset(sect_info, 0, sizeof(sect_info));
nsects = H5Fget_free_sections(file, H5FD_MEM_DEFAULT, (size_t)(nall - 1), sect_info);
VERIFY(nsects, nall, "H5Fget_free_sections");
@@ -4770,7 +4770,7 @@ test_sects_freespace(const char *env_h5_drvr, hbool_t new_format)
VERIFY(((hsize_t)free_space - last_size), total, "H5Fget_free_sections");
/* Retrieve and verify free-space info for +1 sections */
- HDmemset(sect_info, 0, sizeof(sect_info));
+ memset(sect_info, 0, sizeof(sect_info));
nsects = H5Fget_free_sections(file, H5FD_MEM_DEFAULT, (size_t)(nall + 1), sect_info);
VERIFY(nsects, nall, "H5Fget_free_sections");
@@ -4785,7 +4785,7 @@ test_sects_freespace(const char *env_h5_drvr, hbool_t new_format)
VERIFY(sect_info[nall].size, 0, "H5Fget_free_sections");
VERIFY(free_space, total, "H5Fget_free_sections");
- HDmemset(meta_sect_info, 0, sizeof(meta_sect_info));
+ memset(meta_sect_info, 0, sizeof(meta_sect_info));
if (multi_vfd) {
hssize_t ntmp;
@@ -4818,7 +4818,7 @@ test_sects_freespace(const char *env_h5_drvr, hbool_t new_format)
CHECK(nraw, FAIL, "H5Fget_free_sections");
/* Retrieve and verify free-space sections for raw data */
- HDmemset(raw_sect_info, 0, sizeof(raw_sect_info));
+ memset(raw_sect_info, 0, sizeof(raw_sect_info));
nsects = H5Fget_free_sections(file, H5FD_MEM_DRAW, (size_t)nraw, raw_sect_info);
VERIFY(nsects, nraw, "H5Fget_free_sections");
diff --git a/test/tgenprop.c b/test/tgenprop.c
index c319f87..c542603 100644
--- a/test/tgenprop.c
+++ b/test/tgenprop.c
@@ -802,7 +802,7 @@ test_genprop_basic_list_prop(void)
/* Check values of temporary properties (set with regular values) */
ret = H5Pget(lid1, PROP3_NAME, &prop3_value);
CHECK_I(ret, "H5Pget");
- if (HDmemcmp(&prop3_value, PROP3_DEF_VALUE, PROP3_SIZE) != 0)
+ if (memcmp(&prop3_value, PROP3_DEF_VALUE, PROP3_SIZE) != 0)
TestErrPrintf("Property #3 doesn't match!, line=%d\n", __LINE__);
ret = H5Pget(lid1, PROP4_NAME, &prop4_value);
CHECK_I(ret, "H5Pget");
@@ -1028,7 +1028,7 @@ test_genprop_prop_crt_cb1(const char *name, size_t size, void *def_value)
prop1_cb_info.crt_count++;
prop1_cb_info.crt_name = HDstrdup(name);
prop1_cb_info.crt_value = malloc(size);
- HDmemcpy(prop1_cb_info.crt_value, def_value, size);
+ memcpy(prop1_cb_info.crt_value, def_value, size);
return (SUCCEED);
}
@@ -1048,7 +1048,7 @@ test_genprop_prop_set_cb1(hid_t plist_id, const char *name, size_t size, void *v
prop1_cb_info.set_name = HDstrdup(name);
if (prop1_cb_info.set_value == NULL)
prop1_cb_info.set_value = malloc(size);
- HDmemcpy(prop1_cb_info.set_value, value, size);
+ memcpy(prop1_cb_info.set_value, value, size);
return (SUCCEED);
}
@@ -1068,7 +1068,7 @@ test_genprop_prop_get_cb1(hid_t plist_id, const char *name, size_t size, void *v
prop1_cb_info.get_name = HDstrdup(name);
if (prop1_cb_info.get_value == NULL)
prop1_cb_info.get_value = malloc(size);
- HDmemcpy(prop1_cb_info.get_value, value, size);
+ memcpy(prop1_cb_info.get_value, value, size);
return (SUCCEED);
}
@@ -1087,7 +1087,7 @@ test_genprop_prop_cop_cb1(const char *name, size_t size, void *value)
prop1_cb_info.cop_name = HDstrdup(name);
if (prop1_cb_info.cop_value == NULL)
prop1_cb_info.cop_value = malloc(size);
- HDmemcpy(prop1_cb_info.cop_value, value, size);
+ memcpy(prop1_cb_info.cop_value, value, size);
return (SUCCEED);
}
@@ -1103,7 +1103,7 @@ test_genprop_prop_cmp_cb1(const void *value1, const void *value2, size_t size)
/* Set the information from the comparison call */
prop1_cb_info.cmp_count++;
- return (HDmemcmp(value1, value2, size));
+ return (memcmp(value1, value2, size));
}
/****************************************************************
@@ -1117,7 +1117,7 @@ test_genprop_prop_cmp_cb3(const void *value1, const void *value2, size_t size)
/* Set the information from the comparison call */
prop3_cb_info.cmp_count++;
- return (HDmemcmp(value1, value2, size));
+ return (memcmp(value1, value2, size));
}
/****************************************************************
@@ -1134,7 +1134,7 @@ test_genprop_prop_cls_cb1(const char *name, size_t size, void *value)
prop1_cb_info.cls_name = HDstrdup(name);
if (prop1_cb_info.cls_value == NULL)
prop1_cb_info.cls_value = malloc(size);
- HDmemcpy(prop1_cb_info.cls_value, value, size);
+ memcpy(prop1_cb_info.cls_value, value, size);
return (SUCCEED);
}
@@ -1152,7 +1152,7 @@ test_genprop_prop_del_cb2(hid_t plist_id, const char *name, size_t size, void *v
prop2_cb_info.del_plist_id = plist_id;
prop2_cb_info.del_name = HDstrdup(name);
prop2_cb_info.del_value = malloc(size);
- HDmemcpy(prop2_cb_info.del_value, value, size);
+ memcpy(prop2_cb_info.del_value, value, size);
return (SUCCEED);
}
@@ -1221,9 +1221,9 @@ test_genprop_list_callback(void)
cop_cb_struct.id = (-1);
/* Initialize callback information for properties tracked */
- HDmemset(&prop1_cb_info, 0, sizeof(prop_cb_info));
- HDmemset(&prop2_cb_info, 0, sizeof(prop_cb_info));
- HDmemset(&prop3_cb_info, 0, sizeof(prop_cb_info));
+ memset(&prop1_cb_info, 0, sizeof(prop_cb_info));
+ memset(&prop2_cb_info, 0, sizeof(prop_cb_info));
+ memset(&prop3_cb_info, 0, sizeof(prop_cb_info));
/* Create a property list from the class */
lid1 = H5Pcreate(cid1);
@@ -1240,7 +1240,7 @@ test_genprop_list_callback(void)
VERIFY(prop1_cb_info.crt_count, 1, "H5Pcreate");
if (HDstrcmp(prop1_cb_info.crt_name, PROP1_NAME) != 0)
TestErrPrintf("Property #1 name doesn't match!, line=%d\n", __LINE__);
- if (HDmemcmp(prop1_cb_info.crt_value, PROP1_DEF_VALUE, PROP1_SIZE) != 0)
+ if (memcmp(prop1_cb_info.crt_value, PROP1_DEF_VALUE, PROP1_SIZE) != 0)
TestErrPrintf("Property #1 value doesn't match!, line=%d\n", __LINE__);
/* Check values of permanent properties (set with default values) */
@@ -1259,7 +1259,7 @@ test_genprop_list_callback(void)
/* Check values of temporary properties (set with regular values) */
ret = H5Pget(lid1, PROP3_NAME, &prop3_value);
CHECK_I(ret, "H5Pget");
- if (HDmemcmp(&prop3_value, PROP3_DEF_VALUE, PROP3_SIZE) != 0)
+ if (memcmp(&prop3_value, PROP3_DEF_VALUE, PROP3_SIZE) != 0)
TestErrPrintf("Property #3 doesn't match!, line=%d\n", __LINE__);
/* The compare callback should not have been called, as there is no get
* callback for this property */
@@ -1276,7 +1276,7 @@ test_genprop_list_callback(void)
VERIFY(prop1_cb_info.get_plist_id, lid1, "H5Pget");
if (HDstrcmp(prop1_cb_info.get_name, PROP1_NAME) != 0)
TestErrPrintf("Property #1 name doesn't match!, line=%d\n", __LINE__);
- if (HDmemcmp(prop1_cb_info.get_value, PROP1_DEF_VALUE, PROP1_SIZE) != 0)
+ if (memcmp(prop1_cb_info.get_value, PROP1_DEF_VALUE, PROP1_SIZE) != 0)
TestErrPrintf("Property #1 value doesn't match!, line=%d\n", __LINE__);
/* Set value of property #1 to different value */
@@ -1288,7 +1288,7 @@ test_genprop_list_callback(void)
VERIFY(prop1_cb_info.set_plist_id, lid1, "H5Pset");
if (HDstrcmp(prop1_cb_info.set_name, PROP1_NAME) != 0)
TestErrPrintf("Property #1 name doesn't match!, line=%d\n", __LINE__);
- if (HDmemcmp(prop1_cb_info.set_value, &prop1_new_value, PROP1_SIZE) != 0)
+ if (memcmp(prop1_cb_info.set_value, &prop1_new_value, PROP1_SIZE) != 0)
TestErrPrintf("Property #1 value doesn't match!, line=%d\n", __LINE__);
/* The compare callback should not have been called */
@@ -1311,7 +1311,7 @@ test_genprop_list_callback(void)
VERIFY(prop1_cb_info.get_plist_id, lid1, "H5Pget");
if (HDstrcmp(prop1_cb_info.get_name, PROP1_NAME) != 0)
TestErrPrintf("Property #1 name doesn't match!, line=%d\n", __LINE__);
- if (HDmemcmp(prop1_cb_info.get_value, &prop1_new_value, PROP1_SIZE) != 0)
+ if (memcmp(prop1_cb_info.get_value, &prop1_new_value, PROP1_SIZE) != 0)
TestErrPrintf("Property #1 value doesn't match!, line=%d\n", __LINE__);
/* Delete property #2 */
@@ -1323,7 +1323,7 @@ test_genprop_list_callback(void)
VERIFY(prop2_cb_info.del_plist_id, lid1, "H5Premove");
if (HDstrcmp(prop2_cb_info.del_name, PROP2_NAME) != 0)
TestErrPrintf("Property #2 name doesn't match!, line=%d\n", __LINE__);
- if (HDmemcmp(prop2_cb_info.del_value, PROP2_DEF_VALUE, PROP2_SIZE) != 0)
+ if (memcmp(prop2_cb_info.del_value, PROP2_DEF_VALUE, PROP2_SIZE) != 0)
TestErrPrintf("Property #2 value doesn't match!, line=%d\n", __LINE__);
/* Copy first list */
@@ -1334,7 +1334,7 @@ test_genprop_list_callback(void)
VERIFY(prop1_cb_info.cop_count, 1, "H5Pcopy");
if (HDstrcmp(prop1_cb_info.cop_name, PROP1_NAME) != 0)
TestErrPrintf("Property #1 name doesn't match!, line=%d\n", __LINE__);
- if (HDmemcmp(prop1_cb_info.cop_value, &prop1_new_value, PROP1_SIZE) != 0)
+ if (memcmp(prop1_cb_info.cop_value, &prop1_new_value, PROP1_SIZE) != 0)
TestErrPrintf("Property #1 value doesn't match!, line=%d\n", __LINE__);
/* Verify that the class creation callback occurred */
@@ -1357,7 +1357,7 @@ test_genprop_list_callback(void)
VERIFY(prop1_cb_info.cls_count, 1, "H5Pclose");
if (HDstrcmp(prop1_cb_info.cls_name, PROP1_NAME) != 0)
TestErrPrintf("Property #1 name doesn't match!, line=%d\n", __LINE__);
- if (HDmemcmp(prop1_cb_info.cls_value, &prop1_new_value, PROP1_SIZE) != 0)
+ if (memcmp(prop1_cb_info.cls_value, &prop1_new_value, PROP1_SIZE) != 0)
TestErrPrintf("Property #1 value doesn't match!, line=%d\n", __LINE__);
/* Close second list */
diff --git a/test/th5o.c b/test/th5o.c
index 1b7bd9c..9031b28 100644
--- a/test/th5o.c
+++ b/test/th5o.c
@@ -1456,8 +1456,8 @@ test_h5o_getinfo_same_file(void)
CHECK(gid2, FAIL, "H5Gcreate2");
/* Reset object info */
- HDmemset(&oinfo1, 0, sizeof(oinfo1));
- HDmemset(&oinfo2, 0, sizeof(oinfo2));
+ memset(&oinfo1, 0, sizeof(oinfo1));
+ memset(&oinfo2, 0, sizeof(oinfo2));
/* Query the object info for each object, through group IDs */
ret = H5Oget_info3(gid1, &oinfo1, H5O_INFO_BASIC);
@@ -1468,8 +1468,8 @@ test_h5o_getinfo_same_file(void)
VERIFY(oinfo1.fileno, oinfo2.fileno, "file number from H5Oget_info3");
/* Reset object info */
- HDmemset(&oinfo1, 0, sizeof(oinfo1));
- HDmemset(&oinfo2, 0, sizeof(oinfo2));
+ memset(&oinfo1, 0, sizeof(oinfo1));
+ memset(&oinfo2, 0, sizeof(oinfo2));
/* Query the object info for each object, by name */
ret = H5Oget_info_by_name3(fid1, "group1", &oinfo1, H5O_INFO_BASIC, H5P_DEFAULT);
@@ -1500,8 +1500,8 @@ test_h5o_getinfo_same_file(void)
CHECK(gid2, FAIL, "H5Gopen2");
/* Reset object info */
- HDmemset(&oinfo1, 0, sizeof(oinfo1));
- HDmemset(&oinfo2, 0, sizeof(oinfo2));
+ memset(&oinfo1, 0, sizeof(oinfo1));
+ memset(&oinfo2, 0, sizeof(oinfo2));
/* Query the object info for each object, through group IDs */
ret = H5Oget_info3(gid1, &oinfo1, H5O_INFO_BASIC);
@@ -1512,8 +1512,8 @@ test_h5o_getinfo_same_file(void)
VERIFY(oinfo1.fileno, oinfo2.fileno, "file number from H5Oget_info3");
/* Reset object info */
- HDmemset(&oinfo1, 0, sizeof(oinfo1));
- HDmemset(&oinfo2, 0, sizeof(oinfo2));
+ memset(&oinfo1, 0, sizeof(oinfo1));
+ memset(&oinfo2, 0, sizeof(oinfo2));
/* Query the object info for each object, by name */
ret = H5Oget_info_by_name3(fid1, "group1", &oinfo1, H5O_INFO_BASIC, H5P_DEFAULT);
@@ -1775,8 +1775,8 @@ test_h5o_getinfo_visit(void)
CHECK(gid2, FAIL, "H5Gcreate2");
/* Reset object info */
- HDmemset(&oinfo1, 0, sizeof(oinfo1));
- HDmemset(&oinfo2, 0, sizeof(oinfo2));
+ memset(&oinfo1, 0, sizeof(oinfo1));
+ memset(&oinfo2, 0, sizeof(oinfo2));
/* Query the object info for "group1" via H5Oget_info1 and H5Oget_info2 */
ret = H5Oget_info1(gid1, &oinfo1);
@@ -1789,8 +1789,8 @@ test_h5o_getinfo_visit(void)
VERIFY(oinfo1.num_attrs, oinfo2.num_attrs, "obj info from H5Oget_info1/2");
/* Reset object info */
- HDmemset(&oinfo1, 0, sizeof(oinfo1));
- HDmemset(&oinfo2, 0, sizeof(oinfo2));
+ memset(&oinfo1, 0, sizeof(oinfo1));
+ memset(&oinfo2, 0, sizeof(oinfo2));
/* Query the object info for "group2" via H5Oget_info1 and H5Oget_info2 */
ret = H5Oget_info_by_name1(fid, "group2", &oinfo1, H5P_DEFAULT);
diff --git a/test/th5s.c b/test/th5s.c
index bd193cb..87e0de9 100644
--- a/test/th5s.c
+++ b/test/th5s.c
@@ -144,7 +144,7 @@ test_h5s_basic(void)
rank = H5Sget_simple_extent_dims(sid1, tdims, NULL);
CHECK(rank, FAIL, "H5Sget_simple_extent_dims");
- VERIFY(HDmemcmp(tdims, dims1, SPACE1_RANK * sizeof(hsize_t)), 0, "H5Sget_simple_extent_dims");
+ VERIFY(memcmp(tdims, dims1, SPACE1_RANK * sizeof(hsize_t)), 0, "H5Sget_simple_extent_dims");
sid2 = H5Screate_simple(SPACE2_RANK, dims2, max2);
CHECK(sid2, FAIL, "H5Screate_simple");
@@ -159,16 +159,16 @@ test_h5s_basic(void)
rank = H5Sget_simple_extent_dims(sid2, tdims, tmax);
CHECK(rank, FAIL, "H5Sget_simple_extent_dims");
- VERIFY(HDmemcmp(tdims, dims2, SPACE2_RANK * sizeof(hsize_t)), 0, "H5Sget_simple_extent_dims");
- VERIFY(HDmemcmp(tmax, max2, SPACE2_RANK * sizeof(hsize_t)), 0, "H5Sget_simple_extent_dims");
+ VERIFY(memcmp(tdims, dims2, SPACE2_RANK * sizeof(hsize_t)), 0, "H5Sget_simple_extent_dims");
+ VERIFY(memcmp(tmax, max2, SPACE2_RANK * sizeof(hsize_t)), 0, "H5Sget_simple_extent_dims");
/* Change max dims to be equal to the dimensions */
ret = H5Sset_extent_simple(sid1, SPACE1_RANK, dims1, NULL);
CHECK(ret, FAIL, "H5Sset_extent_simple");
rank = H5Sget_simple_extent_dims(sid1, tdims, tmax);
CHECK(rank, FAIL, "H5Sget_simple_extent_dims");
- VERIFY(HDmemcmp(tdims, dims1, SPACE1_RANK * sizeof(hsize_t)), 0, "H5Sget_simple_extent_dims");
- VERIFY(HDmemcmp(tmax, dims1, SPACE1_RANK * sizeof(hsize_t)), 0, "H5Sget_simple_extent_dims");
+ VERIFY(memcmp(tdims, dims1, SPACE1_RANK * sizeof(hsize_t)), 0, "H5Sget_simple_extent_dims");
+ VERIFY(memcmp(tmax, dims1, SPACE1_RANK * sizeof(hsize_t)), 0, "H5Sget_simple_extent_dims");
ret = H5Sclose(sid1);
CHECK(ret, FAIL, "H5Sclose");
@@ -1025,7 +1025,7 @@ test_h5s_zero_dim(void)
rank = H5Sget_simple_extent_dims(sid_chunk, tdims, NULL);
CHECK(rank, FAIL, "H5Sget_simple_extent_dims");
- VERIFY(HDmemcmp(tdims, dims1, SPACE1_RANK * sizeof(hsize_t)), 0, "H5Sget_simple_extent_dims");
+ VERIFY(memcmp(tdims, dims1, SPACE1_RANK * sizeof(hsize_t)), 0, "H5Sget_simple_extent_dims");
/* Set it to chunked dataset */
plist_id = H5Pcreate(H5P_DATASET_CREATE);
@@ -1289,7 +1289,7 @@ test_h5s_encode(H5F_libver_t low, H5F_libver_t high)
/* Retrieve and verify the dataspace dimensions */
rank = H5Sget_simple_extent_dims(decoded_sid1, tdims, NULL);
CHECK(rank, FAIL, "H5Sget_simple_extent_dims");
- VERIFY(HDmemcmp(tdims, dims1, SPACE1_RANK * sizeof(hsize_t)), 0, "H5Sget_simple_extent_dims");
+ VERIFY(memcmp(tdims, dims1, SPACE1_RANK * sizeof(hsize_t)), 0, "H5Sget_simple_extent_dims");
/* Verify the type of dataspace selection */
sel_type = H5Sget_select_type(decoded_sid1);
@@ -1481,7 +1481,7 @@ test_h5s_encode1(void)
/* Retrieve and verify the dataspace dimensions */
rank = H5Sget_simple_extent_dims(decoded_sid1, tdims, NULL);
CHECK(rank, FAIL, "H5Sget_simple_extent_dims");
- VERIFY(HDmemcmp(tdims, dims1, SPACE1_RANK * sizeof(hsize_t)), 0, "H5Sget_simple_extent_dims");
+ VERIFY(memcmp(tdims, dims1, SPACE1_RANK * sizeof(hsize_t)), 0, "H5Sget_simple_extent_dims");
/* Verify the type of dataspace selection */
sel_type = H5Sget_select_type(decoded_sid1);
@@ -2460,7 +2460,7 @@ test_h5s_compound_scalar_read(void)
ret = H5Dread(dataset, type, H5S_ALL, H5S_ALL, H5P_DEFAULT, &rdata);
CHECK(ret, FAIL, "H5Dread");
- if (HDmemcmp(&space4_data, &rdata, sizeof(struct space4_struct)) != 0) {
+ if (memcmp(&space4_data, &rdata, sizeof(struct space4_struct)) != 0) {
printf("scalar data different: space4_data.c1=%c, read_data4.c1=%c\n", space4_data.c1, rdata.c1);
printf("scalar data different: space4_data.u=%u, read_data4.u=%u\n", space4_data.u, rdata.u);
printf("scalar data different: space4_data.f=%f, read_data4.f=%f\n", (double)space4_data.f,
@@ -2565,8 +2565,8 @@ test_h5s_chunk(void)
CHECK(status, FAIL, "H5Fclose");
/* Reset/initialize the data arrays to read in */
- HDmemset(chunk_data_dbl_data, 0, sizeof(double) * CHUNK_DATA_NX * CHUNK_DATA_NY);
- HDmemset(chunk_data_flt_data, 0, sizeof(float) * CHUNK_DATA_NX * CHUNK_DATA_NY);
+ memset(chunk_data_dbl_data, 0, sizeof(double) * CHUNK_DATA_NX * CHUNK_DATA_NY);
+ memset(chunk_data_flt_data, 0, sizeof(float) * CHUNK_DATA_NX * CHUNK_DATA_NY);
fileID = H5Fopen(DATAFILE, H5F_ACC_RDONLY, H5P_DEFAULT);
CHECK(fileID, FAIL, "H5Fopen");
diff --git a/test/thread_id.c b/test/thread_id.c
index 7d4b7fe..d42a483 100644
--- a/test/thread_id.c
+++ b/test/thread_id.c
@@ -73,7 +73,7 @@ pthread_barrier_init(pthread_barrier_t *barrier, const pthread_barrierattr_t *at
if (attr != NULL)
return EINVAL;
- HDmemset(barrier, 0, sizeof(*barrier));
+ memset(barrier, 0, sizeof(*barrier));
barrier->count = count;
diff --git a/test/tid.c b/test/tid.c
index dd6d051..0cb16ab 100644
--- a/test/tid.c
+++ b/test/tid.c
@@ -723,7 +723,7 @@ test_remove_clear_type(void)
* Build object list *
*********************/
- HDmemset(obj_list.objects, 0, list_size);
+ memset(obj_list.objects, 0, list_size);
/* The number of objects used is a random number between the min and max */
obj_list.count = obj_list.remaining =
diff --git a/test/tmeta.c b/test/tmeta.c
index 07f6a10..68f77c8 100644
--- a/test/tmeta.c
+++ b/test/tmeta.c
@@ -76,7 +76,7 @@ test_metadata(void)
UINT32ENCODE(p, eu32); /* Encode the uint32 value */
/* Check if we got what we asked for */
- if (HDmemcmp(encode_buffer, compar_buffer, sizeof(compar_buffer)) != 0) {
+ if (memcmp(encode_buffer, compar_buffer, sizeof(compar_buffer)) != 0) {
unsigned u; /* local counting variable */
for (u = 0; u < sizeof(compar_buffer); u++) {
diff --git a/test/tmisc.c b/test/tmisc.c
index eb0d115..3033613 100644
--- a/test/tmisc.c
+++ b/test/tmisc.c
@@ -2338,7 +2338,7 @@ misc13_insert_user_block(const char *old_name, const char *new_name, const char
CHECK_PTR(user_block, "calloc");
/* Copy in the user block data */
- HDmemcpy(user_block, str, HDstrlen(str));
+ memcpy(user_block, str, HDstrlen(str));
/* Open the new file */
new_fp = fopen(new_name, "wb");
@@ -2833,10 +2833,10 @@ test_misc16(void)
/* Initialize the data */
/* (Note that these are supposed to stress the code, so are a little weird) */
- HDmemcpy(wdata[0], "1234567", MISC16_STR_SIZE);
- HDmemcpy(wdata[1], "1234567\0", MISC16_STR_SIZE);
- HDmemcpy(wdata[2], "12345678", MISC16_STR_SIZE);
- HDmemcpy(wdata[3], "\0\0\0\0\0\0\0\0", MISC16_STR_SIZE);
+ memcpy(wdata[0], "1234567", MISC16_STR_SIZE);
+ memcpy(wdata[1], "1234567\0", MISC16_STR_SIZE);
+ memcpy(wdata[2], "12345678", MISC16_STR_SIZE);
+ memcpy(wdata[3], "\0\0\0\0\0\0\0\0", MISC16_STR_SIZE);
/* Create the file */
file = H5Fcreate(MISC16_FILE, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
@@ -2921,10 +2921,10 @@ test_misc17(void)
/* Initialize the data */
/* (Note that these are supposed to stress the code, so are a little weird) */
- HDmemcpy(wdata[0], "1234567", MISC17_SPACE_DIM2);
- HDmemcpy(wdata[1], "1234567\0", MISC17_SPACE_DIM2);
- HDmemcpy(wdata[2], "12345678", MISC17_SPACE_DIM2);
- HDmemcpy(wdata[3], "\0\0\0\0\0\0\0\0", MISC17_SPACE_DIM2);
+ memcpy(wdata[0], "1234567", MISC17_SPACE_DIM2);
+ memcpy(wdata[1], "1234567\0", MISC17_SPACE_DIM2);
+ memcpy(wdata[2], "12345678", MISC17_SPACE_DIM2);
+ memcpy(wdata[3], "\0\0\0\0\0\0\0\0", MISC17_SPACE_DIM2);
/* Create the file */
file = H5Fcreate(MISC17_FILE, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
diff --git a/test/trefer.c b/test/trefer.c
index 72cbfe0..0aff270 100644
--- a/test/trefer.c
+++ b/test/trefer.c
@@ -1045,7 +1045,7 @@ test_reference_cmpnd_obj(void)
CHECK(dataset, H5I_INVALID_HID, "H5Dcreate2");
/* Reset buffer for writing */
- HDmemset(&cmpnd_wbuf, 0, sizeof(cmpnd_wbuf));
+ memset(&cmpnd_wbuf, 0, sizeof(cmpnd_wbuf));
/* Create reference to dataset */
ret = H5Rcreate_object(fid1, "/Group1/Dataset1", H5P_DEFAULT, &cmpnd_wbuf.ref0);
diff --git a/test/trefer_deprec.c b/test/trefer_deprec.c
index f6a7beb..f39e93c 100644
--- a/test/trefer_deprec.c
+++ b/test/trefer_deprec.c
@@ -1317,7 +1317,7 @@ test_reference_obj_deleted(void)
VERIFY(dset2, FAIL, "H5Rdereference2");
/* Read selection from disk */
- HDmemset(&oref, 0, sizeof(hobj_ref_t));
+ memset(&oref, 0, sizeof(hobj_ref_t));
ret = H5Dread(dataset, H5T_STD_REF_OBJ, H5S_ALL, H5S_ALL, H5P_DEFAULT, &oref);
CHECK(ret, FAIL, "H5Dread");
@@ -1326,7 +1326,7 @@ test_reference_obj_deleted(void)
VERIFY(dset2, FAIL, "H5Rdereference2");
/* Open nonsense reference */
- HDmemset(&oref, 0, sizeof(hobj_ref_t));
+ memset(&oref, 0, sizeof(hobj_ref_t));
dset2 = H5Rdereference2(dataset, H5P_DEFAULT, H5R_OBJECT, &oref);
VERIFY(dset2, FAIL, "H5Rdereference2");
diff --git a/test/trefstr.c b/test/trefstr.c
index c9d585d..1895fb6 100644
--- a/test/trefstr.c
+++ b/test/trefstr.c
@@ -371,7 +371,7 @@ test_refstr_acat(void)
/* Append a large string to ref-counted string */
large_str = malloc(1024);
CHECK_PTR(large_str, "malloc");
- HDmemset(large_str, 'a', 1024);
+ memset(large_str, 'a', 1024);
large_str[1023] = '\0';
ret = H5RS_acat(rs, large_str);
CHECK(ret, FAIL, "H5RS_acat");
@@ -383,7 +383,7 @@ test_refstr_acat(void)
large_str2 = malloc(1024 + 6);
CHECK_PTR(large_str2, "malloc");
HDstrcpy(large_str2, "foobar");
- HDmemset(&large_str2[6], 'a', 1024);
+ memset(&large_str2[6], 'a', 1024);
large_str2[1029] = '\0';
cmp = HDstrcmp(s, large_str2);
VERIFY(cmp, 0, "HDstrcmp");
diff --git a/test/tselect.c b/test/tselect.c
index e75c8d2..879f4f7 100644
--- a/test/tselect.c
+++ b/test/tselect.c
@@ -648,7 +648,7 @@ test_select_point(hid_t xfer_plist)
/* Save points for later iteration */
/* (these are in the second half of the buffer, because we are prepending */
/* the next list of points to the beginning of the point selection list) */
- HDmemcpy(((char *)pi.coord) + sizeof(coord2), coord2, sizeof(coord2));
+ memcpy(((char *)pi.coord) + sizeof(coord2), coord2, sizeof(coord2));
ret = (int)H5Sget_select_npoints(sid2);
VERIFY(ret, 10, "H5Sget_select_npoints");
@@ -688,7 +688,7 @@ test_select_point(hid_t xfer_plist)
VERIFY(ret, 20, "H5Sget_select_npoints");
/* Save points for later iteration */
- HDmemcpy(pi.coord, coord2, sizeof(coord2));
+ memcpy(pi.coord, coord2, sizeof(coord2));
/* Create a dataset */
dataset = H5Dcreate2(fid1, SPACE1_NAME, H5T_NATIVE_UCHAR, sid1, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT);
@@ -1536,7 +1536,7 @@ test_select_hyper_contig(hid_t dset_type, hid_t xfer_plist)
CHECK(ret, FAIL, "H5Dread");
/* Compare data read with data written out */
- if (HDmemcmp(rbuf, wbuf, sizeof(uint16_t) * 30 * 12) != 0)
+ if (memcmp(rbuf, wbuf, sizeof(uint16_t) * 30 * 12) != 0)
TestErrPrintf("hyperslab values don't match! Line=%d\n", __LINE__);
/* Close memory dataspace */
@@ -1679,7 +1679,7 @@ test_select_hyper_contig2(hid_t dset_type, hid_t xfer_plist)
CHECK(ret, FAIL, "H5Dread");
/* Compare data read with data written out */
- if (HDmemcmp(rbuf, wbuf, sizeof(uint16_t) * 2 * SPACE8_DIM3 * SPACE8_DIM2 * SPACE8_DIM1) != 0)
+ if (memcmp(rbuf, wbuf, sizeof(uint16_t) * 2 * SPACE8_DIM3 * SPACE8_DIM2 * SPACE8_DIM1) != 0)
TestErrPrintf("Error: hyperslab values don't match!\n");
/* Close memory dataspace */
@@ -2195,7 +2195,7 @@ test_select_hyper_contig_dr__run_test(int test_num, const uint16_t *cube_buf, co
*/
/* zero out the in-memory large cube */
- HDmemset(large_cube_buf_1, 0, large_cube_size * sizeof(uint16_t));
+ memset(large_cube_buf_1, 0, large_cube_size * sizeof(uint16_t));
u = 0;
do {
@@ -2264,7 +2264,7 @@ test_select_hyper_contig_dr__run_test(int test_num, const uint16_t *cube_buf, co
TestErrPrintf("large cube read from small cube has bad data! Line=%u\n", __LINE__);
/* Zero out the buffer for the next pass */
- HDmemset(large_cube_buf_1 + start_index, 0, small_cube_size * sizeof(uint16_t));
+ memset(large_cube_buf_1 + start_index, 0, small_cube_size * sizeof(uint16_t));
x++;
} while ((large_rank >= 2) && (small_rank <= 1) && (x < edge_size));
@@ -3166,7 +3166,7 @@ test_select_hyper_checker_board_dr__run_test(int test_num, const uint16_t *cube_
VERIFY(check, TRUE, "H5Sselect_shape_same");
/* zero the buffer that we will be using for reading */
- HDmemset(small_cube_buf_1, 0, sizeof(*small_cube_buf_1) * small_cube_size);
+ memset(small_cube_buf_1, 0, sizeof(*small_cube_buf_1) * small_cube_size);
/* Read selection from disk */
ret = H5Dread(large_cube_dataset, H5T_NATIVE_UINT16, mem_small_cube_sid,
@@ -3246,7 +3246,7 @@ test_select_hyper_checker_board_dr__run_test(int test_num, const uint16_t *cube_
VERIFY(check, TRUE, "H5Sselect_shape_same");
/* zero out the in memory large cube */
- HDmemset(large_cube_buf_1, 0, sizeof(*large_cube_buf_1) * large_cube_size);
+ memset(large_cube_buf_1, 0, sizeof(*large_cube_buf_1) * large_cube_size);
/* Read selection from disk */
ret = H5Dread(small_cube_dataset, H5T_NATIVE_UINT16, mem_large_cube_sid,
@@ -3373,7 +3373,7 @@ test_select_hyper_checker_board_dr__run_test(int test_num, const uint16_t *cube_
CHECK(ret, FAIL, "H5Dwrite");
/* zero the buffer that we will be using for reading */
- HDmemset(small_cube_buf_1, 0, sizeof(*small_cube_buf_1) * small_cube_size);
+ memset(small_cube_buf_1, 0, sizeof(*small_cube_buf_1) * small_cube_size);
/* read the on disk small cube into memory */
ret = H5Dread(small_cube_dataset, H5T_NATIVE_UINT16, full_small_cube_sid,
@@ -3469,7 +3469,7 @@ test_select_hyper_checker_board_dr__run_test(int test_num, const uint16_t *cube_
CHECK(ret, FAIL, "H5Dwrite");
/* zero out the in memory large cube */
- HDmemset(large_cube_buf_1, 0, sizeof(*large_cube_buf_1) * large_cube_size);
+ memset(large_cube_buf_1, 0, sizeof(*large_cube_buf_1) * large_cube_size);
/* read the on disk large cube into memory */
ret = H5Dread(large_cube_dataset, H5T_NATIVE_UINT16, full_large_cube_sid,
@@ -3786,7 +3786,7 @@ test_select_hyper_copy(void)
CHECK(ret, FAIL, "H5Dread");
/* Compare data read with data written out */
- if (HDmemcmp(rbuf, rbuf2, sizeof(uint16_t) * SPACE3_DIM1 * SPACE3_DIM2) != 0)
+ if (memcmp(rbuf, rbuf2, sizeof(uint16_t) * SPACE3_DIM1 * SPACE3_DIM2) != 0)
TestErrPrintf("hyperslab values don't match! Line=%d\n", __LINE__);
/* Close memory dataspace */
@@ -3999,7 +3999,7 @@ test_select_point_copy(void)
CHECK(ret, FAIL, "H5Dread");
/* Compare data read with data written out */
- if (HDmemcmp(rbuf, rbuf2, sizeof(uint16_t) * SPACE3_DIM1 * SPACE3_DIM2) != 0)
+ if (memcmp(rbuf, rbuf2, sizeof(uint16_t) * SPACE3_DIM1 * SPACE3_DIM2) != 0)
TestErrPrintf("point values don't match!\n");
/* Close memory dataspace */
@@ -5260,7 +5260,7 @@ test_select_hyper_union_stagger(void)
CHECK(error, FAIL, "H5Fclose");
/* Initialize input buffer */
- HDmemset(data_out, 0, 7 * 7 * sizeof(int));
+ memset(data_out, 0, 7 * 7 * sizeof(int));
/* Open file */
file_id = H5Fopen(FILENAME, H5F_ACC_RDONLY, H5P_DEFAULT);
@@ -6390,7 +6390,7 @@ test_select_hyper_union_random_5d(hid_t read_plist)
} /* end if */
/* Set the read buffer back to all zeroes */
- HDmemset(rbuf, 0, (size_t)SPACE6_DIM1);
+ memset(rbuf, 0, (size_t)SPACE6_DIM1);
} /* end for */
/* Close memory dataspace */
@@ -7122,7 +7122,7 @@ test_select_combine(void)
VERIFY(nblocks, 1, "H5Sget_select_hyper_nblocks");
/* Retrieve the block defined */
- HDmemset(blocks, -1, sizeof(blocks)); /* Reset block list */
+ memset(blocks, -1, sizeof(blocks)); /* Reset block list */
error = H5Sget_select_hyper_blocklist(space1, (hsize_t)0, (hsize_t)nblocks, (hsize_t *)blocks);
CHECK(error, FAIL, "H5Sget_select_hyper_blocklist");
@@ -7157,7 +7157,7 @@ test_select_combine(void)
VERIFY(nblocks, 2, "H5Sget_select_hyper_nblocks");
/* Retrieve the block defined */
- HDmemset(blocks, -1, sizeof(blocks)); /* Reset block list */
+ memset(blocks, -1, sizeof(blocks)); /* Reset block list */
error = H5Sget_select_hyper_blocklist(space1, (hsize_t)0, (hsize_t)nblocks, (hsize_t *)blocks);
CHECK(error, FAIL, "H5Sget_select_hyper_blocklist");
@@ -7196,7 +7196,7 @@ test_select_combine(void)
VERIFY(nblocks, 2, "H5Sget_select_hyper_nblocks");
/* Retrieve the block defined */
- HDmemset(blocks, -1, sizeof(blocks)); /* Reset block list */
+ memset(blocks, -1, sizeof(blocks)); /* Reset block list */
error = H5Sget_select_hyper_blocklist(space1, (hsize_t)0, (hsize_t)nblocks, (hsize_t *)blocks);
CHECK(error, FAIL, "H5Sget_select_hyper_blocklist");
@@ -7255,7 +7255,7 @@ test_select_combine(void)
VERIFY(nblocks, 1, "H5Sget_select_hyper_nblocks");
/* Retrieve the block defined */
- HDmemset(blocks, -1, sizeof(blocks)); /* Reset block list */
+ memset(blocks, -1, sizeof(blocks)); /* Reset block list */
error = H5Sget_select_hyper_blocklist(space1, (hsize_t)0, (hsize_t)nblocks, (hsize_t *)blocks);
CHECK(error, FAIL, "H5Sget_select_hyper_blocklist");
@@ -7310,7 +7310,7 @@ test_select_combine(void)
VERIFY(nblocks, 1, "H5Sget_select_hyper_nblocks");
/* Retrieve the block defined */
- HDmemset(blocks, -1, sizeof(blocks)); /* Reset block list */
+ memset(blocks, -1, sizeof(blocks)); /* Reset block list */
error = H5Sget_select_hyper_blocklist(space1, (hsize_t)0, (hsize_t)nblocks, (hsize_t *)blocks);
CHECK(error, FAIL, "H5Sget_select_hyper_blocklist");
@@ -7365,7 +7365,7 @@ test_select_combine(void)
VERIFY(nblocks, 1, "H5Sget_select_hyper_nblocks");
/* Retrieve the block defined */
- HDmemset(blocks, -1, sizeof(blocks)); /* Reset block list */
+ memset(blocks, -1, sizeof(blocks)); /* Reset block list */
error = H5Sget_select_hyper_blocklist(space1, (hsize_t)0, (hsize_t)nblocks, (hsize_t *)blocks);
CHECK(error, FAIL, "H5Sget_select_hyper_blocklist");
@@ -7550,14 +7550,14 @@ test_select_fill_point(hssize_t *offset)
CHECK(ret, FAIL, "H5Sselect_elements");
if (offset != NULL) {
- HDmemcpy(real_offset, offset, SPACE7_RANK * sizeof(hssize_t));
+ memcpy(real_offset, offset, SPACE7_RANK * sizeof(hssize_t));
/* Set offset, if provided */
ret = H5Soffset_simple(sid1, real_offset);
CHECK(ret, FAIL, "H5Soffset_simple");
} /* end if */
else
- HDmemset(real_offset, 0, SPACE7_RANK * sizeof(hssize_t));
+ memset(real_offset, 0, SPACE7_RANK * sizeof(hssize_t));
/* Set fill value */
fill_value = SPACE7_FILL;
@@ -7654,14 +7654,14 @@ test_select_fill_hyper_simple(hssize_t *offset)
CHECK(ret, FAIL, "H5Sselect_hyperslab");
if (offset != NULL) {
- HDmemcpy(real_offset, offset, SPACE7_RANK * sizeof(hssize_t));
+ memcpy(real_offset, offset, SPACE7_RANK * sizeof(hssize_t));
/* Set offset, if provided */
ret = H5Soffset_simple(sid1, real_offset);
CHECK(ret, FAIL, "H5Soffset_simple");
} /* end if */
else
- HDmemset(real_offset, 0, SPACE7_RANK * sizeof(hssize_t));
+ memset(real_offset, 0, SPACE7_RANK * sizeof(hssize_t));
/* Set fill value */
fill_value = SPACE7_FILL;
@@ -7769,14 +7769,14 @@ test_select_fill_hyper_regular(hssize_t *offset)
CHECK(ret, FAIL, "H5Sselect_hyperslab");
if (offset != NULL) {
- HDmemcpy(real_offset, offset, SPACE7_RANK * sizeof(hssize_t));
+ memcpy(real_offset, offset, SPACE7_RANK * sizeof(hssize_t));
/* Set offset, if provided */
ret = H5Soffset_simple(sid1, real_offset);
CHECK(ret, FAIL, "H5Soffset_simple");
} /* end if */
else
- HDmemset(real_offset, 0, SPACE7_RANK * sizeof(hssize_t));
+ memset(real_offset, 0, SPACE7_RANK * sizeof(hssize_t));
/* Set fill value */
fill_value = SPACE7_FILL;
@@ -7893,14 +7893,14 @@ test_select_fill_hyper_irregular(hssize_t *offset)
CHECK(ret, FAIL, "H5Sselect_hyperslab");
if (offset != NULL) {
- HDmemcpy(real_offset, offset, SPACE7_RANK * sizeof(hssize_t));
+ memcpy(real_offset, offset, SPACE7_RANK * sizeof(hssize_t));
/* Set offset, if provided */
ret = H5Soffset_simple(sid1, real_offset);
CHECK(ret, FAIL, "H5Soffset_simple");
} /* end if */
else
- HDmemset(real_offset, 0, SPACE7_RANK * sizeof(hssize_t));
+ memset(real_offset, 0, SPACE7_RANK * sizeof(hssize_t));
/* Set fill value */
fill_value = SPACE7_FILL;
@@ -14301,7 +14301,7 @@ test_hyper_unlim_check(hid_t sid, hsize_t *dims, hssize_t endpoints, hssize_t en
CHECK(lim_sid, FAIL, "H5Scopy");
/* "And" lim_sid with dims to create limited selection */
- HDmemset(start, 0, sizeof(start));
+ memset(start, 0, sizeof(start));
ret = H5Sselect_hyperslab(lim_sid, H5S_SELECT_AND, start, NULL, dims, NULL);
CHECK(ret, FAIL, "H5Sselect_hyperslab");
@@ -14328,18 +14328,18 @@ test_hyper_unlim_check(hid_t sid, hsize_t *dims, hssize_t endpoints, hssize_t en
/* Verify blocklist */
if (nblocks == (hssize_t)1) {
- if (HDmemcmp(blocklist, eblock1, 6 * sizeof(eblock1[0])) != 0)
+ if (memcmp(blocklist, eblock1, 6 * sizeof(eblock1[0])) != 0)
ERROR("H5Sget_select_hyper_blocklist");
} /* end if */
else {
assert(nblocks == (hssize_t)2);
- if (HDmemcmp(blocklist, eblock1, 6 * sizeof(eblock1[0])) != 0) {
- if (HDmemcmp(blocklist, eblock2, 6 * sizeof(eblock2[0])) != 0)
+ if (memcmp(blocklist, eblock1, 6 * sizeof(eblock1[0])) != 0) {
+ if (memcmp(blocklist, eblock2, 6 * sizeof(eblock2[0])) != 0)
ERROR("H5Sget_select_hyper_blocklist");
- if (HDmemcmp(&blocklist[6], eblock1, 6 * sizeof(eblock1[0])) != 0)
+ if (memcmp(&blocklist[6], eblock1, 6 * sizeof(eblock1[0])) != 0)
ERROR("H5Sget_select_hyper_blocklist");
} /* end if */
- else if (HDmemcmp(&blocklist[6], eblock2, 6 * sizeof(eblock2[0])) != 0)
+ else if (memcmp(&blocklist[6], eblock2, 6 * sizeof(eblock2[0])) != 0)
ERROR("H5Sget_select_hyper_blocklist");
} /* end else */
} /* end if */
@@ -15108,7 +15108,7 @@ test_irreg_io(void)
CHECK(ret, FAIL, "H5Sselect_hyperslab");
/* Reset the buffer */
- HDmemset(rbuf, 0, sizeof(rbuf));
+ memset(rbuf, 0, sizeof(rbuf));
/* Read selection from disk */
ret = H5Dread(did, H5T_NATIVE_UCHAR, mem_sid, sid, H5P_DEFAULT, rbuf);
diff --git a/test/tskiplist.c b/test/tskiplist.c
index 4541001..e94e3c0 100644
--- a/test/tskiplist.c
+++ b/test/tskiplist.c
@@ -92,13 +92,13 @@ test_skiplist_init(void)
} /* end for */
/* Copy random values to sorted array */
- HDmemcpy(sort_rand_num, rand_num, sizeof(int) * NUM_ELEMS);
+ memcpy(sort_rand_num, rand_num, sizeof(int) * NUM_ELEMS);
/* Sort random numbers */
qsort(sort_rand_num, (size_t)NUM_ELEMS, sizeof(int), tst_sort);
/* Copy random values to reverse sorted array */
- HDmemcpy(rev_sort_rand_num, rand_num, sizeof(int) * NUM_ELEMS);
+ memcpy(rev_sort_rand_num, rand_num, sizeof(int) * NUM_ELEMS);
/* Sort random numbers */
qsort(rev_sort_rand_num, (size_t)NUM_ELEMS, sizeof(int), tst_rev_sort);
diff --git a/test/tsohm.c b/test/tsohm.c
index 76a82f5..31dacd5 100644
--- a/test/tsohm.c
+++ b/test/tsohm.c
@@ -597,7 +597,7 @@ size1_helper(hid_t file, const char *filename, hid_t fapl_id, hbool_t test_file_
*/
#define TSOHM_S1H_VERIFY_DATA(dset_id, dtype_id) \
{ \
- HDmemset(&rdata, 0, sizeof(rdata)); \
+ memset(&rdata, 0, sizeof(rdata)); \
if (0 > H5Dread((dset_id), (dtype_id), H5S_ALL, H5S_ALL, H5P_DEFAULT, &rdata)) { \
H5_FAILED(); \
AT(); \
@@ -619,7 +619,7 @@ size1_helper(hid_t file, const char *filename, hid_t fapl_id, hbool_t test_file_
test_file_closing = FALSE;
/* Initialize wdata */
- HDmemset(&wdata, 0, sizeof(wdata));
+ memset(&wdata, 0, sizeof(wdata));
wdata.i1 = 11;
HDstrcpy(wdata.str, "string");
wdata.i2 = 22;
@@ -632,7 +632,7 @@ size1_helper(hid_t file, const char *filename, hid_t fapl_id, hbool_t test_file_
wdata.f1 = 0.0F;
/* Initialize rdata */
- HDmemset(&rdata, 0, sizeof(rdata));
+ memset(&rdata, 0, sizeof(rdata));
dtype1_id = make_dtype_1();
if (dtype1_id < 0)
@@ -1145,7 +1145,7 @@ sohm_attr_helper(hid_t fcpl_id)
/* Verify */
attr_read_id = (op_index == 2) ? attr_id2 : attr_id;
- HDmemset(rdata, 0, sizeof(rdata));
+ memset(rdata, 0, sizeof(rdata));
ret = H5Aread(attr_read_id, H5T_NATIVE_INT, rdata);
CHECK_I(ret, "H5Aread");
for (x = 0; x < (size_t)dims; ++x)
@@ -1392,12 +1392,12 @@ size2_verify_plist1(hid_t plist)
/* Check fill value */
dtype1_id = make_dtype_1();
CHECK_I(dtype1_id, "make_dtype_1");
- HDmemset(&fill1_correct, '1', sizeof(fill1_correct));
+ memset(&fill1_correct, '1', sizeof(fill1_correct));
ret = H5Pget_fill_value(plist, dtype1_id, &fill1);
CHECK_I(ret, "H5Pget_fill_value");
- ret = HDmemcmp(&fill1, &fill1_correct, sizeof(fill1_correct));
+ ret = memcmp(&fill1, &fill1_correct, sizeof(fill1_correct));
VERIFY(ret, 0, "memcmp");
ret = H5Tclose(dtype1_id);
@@ -1460,12 +1460,12 @@ size2_verify_plist2(hid_t plist)
/* Check fill value */
dtype2_id = make_dtype_2();
CHECK_I(dtype2_id, "make_dtype_2");
- HDmemset(&fill2_correct, '2', (size_t)DTYPE2_SIZE);
+ memset(&fill2_correct, '2', (size_t)DTYPE2_SIZE);
ret = H5Pget_fill_value(plist, dtype2_id, &fill2);
CHECK_I(ret, "H5Pget_fill_value");
- ret = HDmemcmp(&fill2, &fill2_correct, (size_t)DTYPE2_SIZE);
+ ret = memcmp(&fill2, &fill2_correct, (size_t)DTYPE2_SIZE);
VERIFY(ret, 0, "memcmp");
ret = H5Tclose(dtype2_id);
@@ -1585,8 +1585,8 @@ size2_helper(hid_t fcpl_id, int test_file_closing, size2_helper_struct *ret_size
/* fill1 and fill2 are fill values for the two datatypes.
* We'll set them in the DCPL.
*/
- HDmemset(&fill1, '1', sizeof(dtype1_struct));
- HDmemset(&fill2, '2', (size_t)DTYPE2_SIZE);
+ memset(&fill1, '1', sizeof(dtype1_struct));
+ memset(&fill2, '2', (size_t)DTYPE2_SIZE);
dcpl1_id = H5Pcreate(H5P_DATASET_CREATE);
CHECK_I(dcpl1_id, "H5Pcreate");
@@ -1629,8 +1629,8 @@ size2_helper(hid_t fcpl_id, int test_file_closing, size2_helper_struct *ret_size
size2_verify_plist2(dcpl2_id);
/* Set up attribute data */
- HDmemset(attr_string1, 0, (size_t)NAME_BUF_SIZE);
- HDmemset(attr_string2, 0, (size_t)NAME_BUF_SIZE);
+ memset(attr_string1, 0, (size_t)NAME_BUF_SIZE);
+ memset(attr_string2, 0, (size_t)NAME_BUF_SIZE);
HDstrcpy(attr_string1, LONG_STRING);
HDstrcpy(attr_string2, LONG_STRING);
attr_string2[1] = '1'; /* The second string starts "01 index..." */
@@ -2036,8 +2036,8 @@ size2_verify(void)
group2_id = H5Gopen2(file_id, "interleaved group", H5P_DEFAULT);
CHECK_I(group2_id, "H5Gopen2");
- HDmemset(attr_string, 0, (size_t)NAME_BUF_SIZE);
- HDmemset(attr_correct_string, 0, (size_t)NAME_BUF_SIZE);
+ memset(attr_string, 0, (size_t)NAME_BUF_SIZE);
+ memset(attr_correct_string, 0, (size_t)NAME_BUF_SIZE);
HDstrcpy(attr_correct_string, LONG_STRING);
HDstrcpy(attr_name, "00 index");
diff --git a/test/ttsafe_dcreate.c b/test/ttsafe_dcreate.c
index 7d194bf..42c3f6c 100644
--- a/test/ttsafe_dcreate.c
+++ b/test/ttsafe_dcreate.c
@@ -136,7 +136,7 @@ tts_dcreate_creator(void *_thread_data)
hsize_t dimsf[1]; /* dataset dimensions */
struct thread_info thread_data;
- HDmemcpy(&thread_data, _thread_data, sizeof(struct thread_info));
+ memcpy(&thread_data, _thread_data, sizeof(struct thread_info));
/* define dataspace for dataset */
dimsf[0] = 1;
diff --git a/test/tunicode.c b/test/tunicode.c
index 114c79c..29a3cda 100644
--- a/test/tunicode.c
+++ b/test/tunicode.c
@@ -180,7 +180,7 @@ test_strpad(hid_t H5_ATTR_UNUSED fid, const char *string)
cmpbuf[2 * small_len - 1] = '\0';
HDstrcpy(&cmpbuf[2 * small_len], new_string);
- VERIFY(HDmemcmp(buf, cmpbuf, 2 * big_len), 0, "HDmemcmp");
+ VERIFY(memcmp(buf, cmpbuf, 2 * big_len), 0, "memcmp");
/* Now convert from smaller datatype to bigger datatype. This should
* leave our buffer looking like: "abc\0\0\0\0\0abc\0\0\0\0\0" */
@@ -188,12 +188,12 @@ test_strpad(hid_t H5_ATTR_UNUSED fid, const char *string)
CHECK(ret, FAIL, "H5Tconvert");
/* First fill the buffer with NULLs */
- HDmemset(cmpbuf, '\0', (size_t)LONG_BUF_SIZE);
+ memset(cmpbuf, '\0', (size_t)LONG_BUF_SIZE);
/* Copy in the characters */
HDstrncpy(cmpbuf, new_string, small_len - 1);
HDstrncpy(&cmpbuf[big_len], new_string, small_len - 1);
- VERIFY(HDmemcmp(buf, cmpbuf, 2 * big_len), 0, "HDmemcmp");
+ VERIFY(memcmp(buf, cmpbuf, 2 * big_len), 0, "memcmp");
ret = H5Tclose(src_type);
CHECK(ret, FAIL, "H5Tclose");
@@ -240,7 +240,7 @@ test_strpad(hid_t H5_ATTR_UNUSED fid, const char *string)
HDstrncpy(&cmpbuf[small_len], new_string, small_len);
HDstrncpy(&cmpbuf[2 * small_len], new_string, big_len);
- VERIFY(HDmemcmp(buf, cmpbuf, 2 * big_len), 0, "HDmemcmp");
+ VERIFY(memcmp(buf, cmpbuf, 2 * big_len), 0, "memcmp");
/* Now convert from smaller datatype to bigger datatype. This should
* leave our buffer looking like: "abcd\0\0\0\0abcd\0\0\0\0" */
@@ -248,12 +248,12 @@ test_strpad(hid_t H5_ATTR_UNUSED fid, const char *string)
CHECK(ret, FAIL, "H5Tconvert");
/* First fill the buffer with NULLs */
- HDmemset(cmpbuf, '\0', (size_t)LONG_BUF_SIZE);
+ memset(cmpbuf, '\0', (size_t)LONG_BUF_SIZE);
/* Copy in the characters */
HDstrncpy(cmpbuf, new_string, small_len);
HDstrncpy(&cmpbuf[big_len], new_string, small_len);
- VERIFY(HDmemcmp(buf, cmpbuf, 2 * big_len), 0, "HDmemcmp");
+ VERIFY(memcmp(buf, cmpbuf, 2 * big_len), 0, "memcmp");
ret = H5Tclose(src_type);
CHECK(ret, FAIL, "H5Tclose");
@@ -285,7 +285,7 @@ test_strpad(hid_t H5_ATTR_UNUSED fid, const char *string)
HDstrncpy(&cmpbuf[small_len], new_string, small_len);
HDstrncpy(&cmpbuf[2 * small_len], new_string, big_len);
- VERIFY(HDmemcmp(buf, cmpbuf, 2 * big_len), 0, "HDmemcmp");
+ VERIFY(memcmp(buf, cmpbuf, 2 * big_len), 0, "memcmp");
/* Now convert from smaller datatype to bigger datatype. This should
* leave our buffer looking like: "abcd abcd " */
@@ -293,12 +293,12 @@ test_strpad(hid_t H5_ATTR_UNUSED fid, const char *string)
CHECK(ret, FAIL, "H5Tconvert");
/* First fill the buffer with spaces */
- HDmemset(cmpbuf, ' ', (size_t)LONG_BUF_SIZE);
+ memset(cmpbuf, ' ', (size_t)LONG_BUF_SIZE);
/* Copy in the characters */
HDstrncpy(cmpbuf, new_string, small_len);
HDstrncpy(&cmpbuf[big_len], new_string, small_len);
- VERIFY(HDmemcmp(buf, cmpbuf, 2 * big_len), 0, "HDmemcmp");
+ VERIFY(memcmp(buf, cmpbuf, 2 * big_len), 0, "memcmp");
ret = H5Tclose(src_type);
CHECK(ret, FAIL, "H5Tclose");
@@ -585,7 +585,7 @@ test_compound(hid_t fid, const char *string)
herr_t ret;
/* Initialize compound data */
- HDmemset(&s1, 0, sizeof(s1_t)); /* To make purify happy */
+ memset(&s1, 0, sizeof(s1_t)); /* To make purify happy */
s1.a = COMP_INT_VAL;
s1.c = COMP_DOUBLE_VAL;
s1.b = COMP_FLOAT_VAL;
@@ -810,7 +810,7 @@ test_unicode(void)
/* Create a random string with length NUM_CHARS */
HDsrandom((unsigned)HDtime(NULL));
- HDmemset(test_string, 0, sizeof(test_string));
+ memset(test_string, 0, sizeof(test_string));
for (x = 0; x < NUM_CHARS; x++) {
/* We need to avoid unprintable characters (codes 0-31) and the
* . and / characters, since they aren't allowed in path names.
diff --git a/test/tvlstr.c b/test/tvlstr.c
index 2a8a28a..90d05d5 100644
--- a/test/tvlstr.c
+++ b/test/tvlstr.c
@@ -163,7 +163,7 @@ test_vlstrings_basic(void)
CHECK(dataset, FAIL, "H5Dcreate2");
wdata2 = (char *)calloc((size_t)65534, sizeof(char));
- HDmemset(wdata2, 'A', (size_t)65533);
+ memset(wdata2, 'A', (size_t)65533);
ret = H5Dwrite(dataset2, tid1, H5S_ALL, H5S_ALL, H5P_DEFAULT, &wdata2);
CHECK(ret, FAIL, "H5Dwrite");
@@ -626,7 +626,7 @@ test_write_vl_string_attribute(void)
CHECK(att, FAIL, "H5Acreate2");
string_att_write = (char *)calloc((size_t)8192, sizeof(char));
- HDmemset(string_att_write, 'A', (size_t)8191);
+ memset(string_att_write, 'A', (size_t)8191);
ret = H5Awrite(att, type, &string_att_write);
CHECK(ret, FAIL, "H5Awrite");
diff --git a/test/tvltypes.c b/test/tvltypes.c
index 7bf06e0..2bc747c 100644
--- a/test/tvltypes.c
+++ b/test/tvltypes.c
@@ -1630,7 +1630,7 @@ test_vltypes_compound_vlen_atomic(void)
CHECK(dcpl_pid, FAIL, "H5Pcreate");
/* Set the fill value for the second dataset */
- HDmemset(&fill, 0, sizeof(s1));
+ memset(&fill, 0, sizeof(s1));
ret = H5Pset_fill_value(dcpl_pid, tid2, &fill);
CHECK(ret, FAIL, "H5Pset_fill_value");
@@ -2832,7 +2832,7 @@ test_vltypes_fill_value(void)
CHECK(ret, FAIL, "H5Treclaim");
/* Clear the read buffer */
- HDmemset(rbuf, 0, dset_elmts * sizeof(dtype1_struct));
+ memset(rbuf, 0, dset_elmts * sizeof(dtype1_struct));
/* Read in non-contiguous selection from 'empty' dataset of fill value */
ret = H5Dread(dset_id, dtype1_id, dset_select_dspace_id, dset_select_dspace_id, xfer_pid, rbuf);
@@ -2890,7 +2890,7 @@ test_vltypes_fill_value(void)
CHECK(ret, FAIL, "H5Treclaim");
/* Clear the read buffer */
- HDmemset(rbuf, 0, dset_elmts * sizeof(dtype1_struct));
+ memset(rbuf, 0, dset_elmts * sizeof(dtype1_struct));
/* Read in non-contiguous selection from 'empty' dataset of fill value */
ret = H5Dread(dset_id, dtype1_id, dset_select_dspace_id, dset_select_dspace_id, xfer_pid, rbuf);
@@ -3045,7 +3045,7 @@ test_vltypes_fill_value(void)
CHECK(ret, FAIL, "H5Treclaim");
/* Clear the read buffer */
- HDmemset(rbuf, 0, dset_elmts * sizeof(dtype1_struct));
+ memset(rbuf, 0, dset_elmts * sizeof(dtype1_struct));
/* Read in non-contiguous selection from dataset */
ret = H5Dread(dset_id, dtype1_id, dset_select_dspace_id, dset_select_dspace_id, xfer_pid, rbuf);
@@ -3133,7 +3133,7 @@ test_vltypes_fill_value(void)
CHECK(ret, FAIL, "H5Treclaim");
/* Clear the read buffer */
- HDmemset(rbuf, 0, dset_elmts * sizeof(dtype1_struct));
+ memset(rbuf, 0, dset_elmts * sizeof(dtype1_struct));
/* Read in non-contiguous selection from dataset */
ret = H5Dread(dset_id, dtype1_id, dset_select_dspace_id, dset_select_dspace_id, xfer_pid, rbuf);
diff --git a/test/twriteorder.c b/test/twriteorder.c
index ceb3e6c..c542161 100644
--- a/test/twriteorder.c
+++ b/test/twriteorder.c
@@ -266,10 +266,10 @@ write_wo_file(void)
blkaddr = i * part_size_g + i;
/* store old block address in byte 0-3 */
- HDmemcpy(&buffer[0], &blkaddr_old, sizeof(blkaddr_old));
+ memcpy(&buffer[0], &blkaddr_old, sizeof(blkaddr_old));
/* fill the rest with the lowest byte of i */
- HDmemset(&buffer[4], i & 0xff, (size_t)(BLOCKSIZE_DFT - 4));
+ memset(&buffer[4], i & 0xff, (size_t)(BLOCKSIZE_DFT - 4));
/* write the block */
HDlseek(write_fd_g, (HDoff_t)blkaddr, SEEK_SET);
@@ -326,7 +326,7 @@ read_wo_file(void)
}
/* retrieve the block address in byte 0-3 */
- HDmemcpy(&blkaddr, &buffer[0], sizeof(blkaddr));
+ memcpy(&blkaddr, &buffer[0], sizeof(blkaddr));
}
return 0;
diff --git a/test/use_append_chunk.c b/test/use_append_chunk.c
index b173707..4f64a66 100644
--- a/test/use_append_chunk.c
+++ b/test/use_append_chunk.c
@@ -76,7 +76,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 = TRUE; /* use swmr open */
opts->iterations = 1;
diff --git a/test/use_append_chunk_mirror.c b/test/use_append_chunk_mirror.c
index ce44c3c..0620c68 100644
--- a/test/use_append_chunk_mirror.c
+++ b/test/use_append_chunk_mirror.c
@@ -116,7 +116,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 = TRUE;
opts->iterations = 1;
diff --git a/test/use_append_mchunks.c b/test/use_append_mchunks.c
index c6fa39d..15f2f2a 100644
--- a/test/use_append_mchunks.c
+++ b/test/use_append_mchunks.c
@@ -68,7 +68,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;
diff --git a/test/vds.c b/test/vds.c
index 727cdce..48cd522 100644
--- a/test/vds.c
+++ b/test/vds.c
@@ -1331,7 +1331,7 @@ test_vds_prefix_first(unsigned config, hid_t vds_fapl, hid_t src_fapl)
}
/* Read data through virtual dataset */
- HDmemset(rbuf[0], 0, sizeof(rbuf));
+ memset(rbuf[0], 0, sizeof(rbuf));
if (H5Dread(vdset, H5T_NATIVE_INT, H5S_ALL, H5S_ALL, H5P_DEFAULT, rbuf[0]) < 0)
TEST_ERROR_SUPPRESSED;
@@ -1369,7 +1369,7 @@ test_vds_prefix_first(unsigned config, hid_t vds_fapl, hid_t src_fapl)
}
/* Read data directly from source dataset */
- HDmemset(rbuf[0], 0, sizeof(rbuf));
+ memset(rbuf[0], 0, sizeof(rbuf));
if (H5Dread(srcdset[0], H5T_NATIVE_INT, H5S_ALL, H5S_ALL, H5P_DEFAULT, rbuf[0]) < 0)
TEST_ERROR_SUPPRESSED;
@@ -1602,7 +1602,7 @@ test_basic_io(unsigned config, hid_t vds_fapl, hid_t src_fapl)
}
/* Read data through virtual dataset */
- HDmemset(rbuf[0], 0, sizeof(rbuf));
+ memset(rbuf[0], 0, sizeof(rbuf));
if (H5Dread(vdset, H5T_NATIVE_INT, H5S_ALL, H5S_ALL, H5P_DEFAULT, rbuf[0]) < 0)
TEST_ERROR_SUPPRESSED;
@@ -1631,7 +1631,7 @@ test_basic_io(unsigned config, hid_t vds_fapl, hid_t src_fapl)
}
/* Read data directly from source dataset */
- HDmemset(rbuf[0], 0, sizeof(rbuf));
+ memset(rbuf[0], 0, sizeof(rbuf));
if (H5Dread(srcdset[0], H5T_NATIVE_INT, H5S_ALL, H5S_ALL, H5P_DEFAULT, rbuf[0]) < 0)
TEST_ERROR_SUPPRESSED;
@@ -1774,7 +1774,7 @@ test_basic_io(unsigned config, hid_t vds_fapl, hid_t src_fapl)
}
/* Read data through virtual dataset */
- HDmemset(rbuf[0], 0, sizeof(rbuf));
+ memset(rbuf[0], 0, sizeof(rbuf));
if (H5Dread(vdset, H5T_NATIVE_INT, H5S_ALL, H5S_ALL, H5P_DEFAULT, rbuf[0]) < 0)
TEST_ERROR_SUPPRESSED;
@@ -1805,7 +1805,7 @@ test_basic_io(unsigned config, hid_t vds_fapl, hid_t src_fapl)
}
/* Read data directly from source datasets */
- HDmemset(rbuf[0], 0, sizeof(rbuf));
+ memset(rbuf[0], 0, sizeof(rbuf));
if (H5Dread(srcdset[0], H5T_NATIVE_INT, vspace[0], H5S_ALL, H5P_DEFAULT, rbuf[0]) < 0)
TEST_ERROR_SUPPRESSED;
if (H5Dread(srcdset[1], H5T_NATIVE_INT, vspace[1], H5S_ALL, H5P_DEFAULT, rbuf[0]) < 0)
@@ -1868,7 +1868,7 @@ test_basic_io(unsigned config, hid_t vds_fapl, hid_t src_fapl)
TEST_ERROR_SUPPRESSED;
/* Read data through copied virtual dataset */
- HDmemset(rbuf[0], 0, sizeof(rbuf));
+ memset(rbuf[0], 0, sizeof(rbuf));
if (H5Dread(vdset, H5T_NATIVE_INT, H5S_ALL, H5S_ALL, H5P_DEFAULT, rbuf[0]) < 0)
TEST_ERROR_SUPPRESSED;
@@ -1946,7 +1946,7 @@ test_basic_io(unsigned config, hid_t vds_fapl, hid_t src_fapl)
TEST_ERROR_SUPPRESSED;
/* Read data through copied virtual dataset */
- HDmemset(rbuf[0], 0, sizeof(rbuf));
+ memset(rbuf[0], 0, sizeof(rbuf));
if (H5Dread(vdset, H5T_NATIVE_INT, H5S_ALL, H5S_ALL, H5P_DEFAULT, rbuf[0]) < 0)
TEST_ERROR_SUPPRESSED;
@@ -2116,7 +2116,7 @@ test_basic_io(unsigned config, hid_t vds_fapl, hid_t src_fapl)
}
/* Read data through virtual dataset */
- HDmemset(rbuf[0], 0, sizeof(rbuf));
+ memset(rbuf[0], 0, sizeof(rbuf));
if (H5Dread(vdset, H5T_NATIVE_INT, H5S_ALL, H5S_ALL, H5P_DEFAULT, rbuf[0]) < 0)
TEST_ERROR_SUPPRESSED;
@@ -2147,7 +2147,7 @@ test_basic_io(unsigned config, hid_t vds_fapl, hid_t src_fapl)
}
/* Read data directly from source datasets */
- HDmemset(rbuf[0], 0, sizeof(rbuf));
+ memset(rbuf[0], 0, sizeof(rbuf));
offset[1] = -3;
if (H5Soffset_simple(vspace[0], offset) < 0)
TEST_ERROR_SUPPRESSED;
@@ -2301,7 +2301,7 @@ test_basic_io(unsigned config, hid_t vds_fapl, hid_t src_fapl)
}
/* Read first source dataset through virtual dataset */
- HDmemset(rbuf[0], 0, sizeof(rbuf));
+ memset(rbuf[0], 0, sizeof(rbuf));
if (H5Dread(vdset, H5T_NATIVE_INT, vspace[0], vspace[0], H5P_DEFAULT, rbuf[0]) < 0)
TEST_ERROR_SUPPRESSED;
@@ -2312,7 +2312,7 @@ test_basic_io(unsigned config, hid_t vds_fapl, hid_t src_fapl)
TEST_ERROR_SUPPRESSED;
/* Read second source dataset through virtual dataset */
- HDmemset(rbuf[0], 0, sizeof(rbuf));
+ memset(rbuf[0], 0, sizeof(rbuf));
if (H5Dread(vdset, H5T_NATIVE_INT, vspace[1], vspace[1], H5P_DEFAULT, rbuf[0]) < 0)
TEST_ERROR_SUPPRESSED;
@@ -2352,7 +2352,7 @@ test_basic_io(unsigned config, hid_t vds_fapl, hid_t src_fapl)
}
/* Read data directly from source datasets */
- HDmemset(rbuf[0], 0, sizeof(rbuf));
+ memset(rbuf[0], 0, sizeof(rbuf));
if (H5Dread(srcdset[0], H5T_NATIVE_INT, vspace[0], H5S_ALL, H5P_DEFAULT, rbuf[0]) < 0)
TEST_ERROR_SUPPRESSED;
if (H5Dread(srcdset[1], H5T_NATIVE_INT, vspace[1], H5S_ALL, H5P_DEFAULT, rbuf[0]) < 0)
@@ -2535,7 +2535,7 @@ test_basic_io(unsigned config, hid_t vds_fapl, hid_t src_fapl)
/* Read data through virtual dataset by hyperslab */
/* Reset rbuf */
- HDmemset(rbuf[0], 0, sizeof(rbuf));
+ memset(rbuf[0], 0, sizeof(rbuf));
/* Read first slice */
if (H5Dread(vdset, H5T_NATIVE_INT, vspace[0], srcspace[0], H5P_DEFAULT, rbuf[0]) < 0)
@@ -2615,7 +2615,7 @@ test_basic_io(unsigned config, hid_t vds_fapl, hid_t src_fapl)
/* Read data directly from source datasets */
/* Reset rbuf */
- HDmemset(rbuf[0], 0, sizeof(rbuf));
+ memset(rbuf[0], 0, sizeof(rbuf));
/* Read first dataset */
if (H5Dread(srcdset[0], H5T_NATIVE_INT, srcspace[0], srcspace[0], H5P_DEFAULT, rbuf[0]) < 0)
@@ -2840,7 +2840,7 @@ test_basic_io(unsigned config, hid_t vds_fapl, hid_t src_fapl)
/* Read data through virtual dataset by hyperslab */
/* Reset rbuf */
- HDmemset(rbuf[0], 0, sizeof(rbuf));
+ memset(rbuf[0], 0, sizeof(rbuf));
/* Read first stripe pattern */
if (H5Dread(vdset, H5T_NATIVE_INT, memspace, srcspace[0], H5P_DEFAULT, rbuf[0]) < 0)
@@ -2911,7 +2911,7 @@ test_basic_io(unsigned config, hid_t vds_fapl, hid_t src_fapl)
/* Read data directly from source datasets */
/* Reset rbuf */
- HDmemset(rbuf[0], 0, sizeof(rbuf));
+ memset(rbuf[0], 0, sizeof(rbuf));
/* Read first dataset */
if (H5Dread(srcdset[0], H5T_NATIVE_INT, memspace, srcspace[0], H5P_DEFAULT, rbuf[0]) < 0)
@@ -3166,7 +3166,7 @@ test_basic_io(unsigned config, hid_t vds_fapl, hid_t src_fapl)
/* Read data through virtual dataset */
/* Reset rbuf */
- HDmemset(rbuf[0], 0, sizeof(rbuf));
+ memset(rbuf[0], 0, sizeof(rbuf));
/* Select hyperslab in memory space */
start[0] = 0;
@@ -3178,7 +3178,7 @@ test_basic_io(unsigned config, hid_t vds_fapl, hid_t src_fapl)
/* Read data through virtual dataset by hyperslab */
/* Reset rbuf */
- HDmemset(rbuf[0], 0, sizeof(rbuf));
+ memset(rbuf[0], 0, sizeof(rbuf));
/* Select stripe */
start[0] = 0;
@@ -3197,7 +3197,7 @@ test_basic_io(unsigned config, hid_t vds_fapl, hid_t src_fapl)
TEST_ERROR_SUPPRESSED;
/* Update erbuf */
- HDmemset(erbuf, 0, sizeof(erbuf));
+ memset(erbuf, 0, sizeof(erbuf));
for (i = 0; i < 9; i++)
for (j = 0; j < 3; j++)
erbuf[i][j] = fill;
@@ -3219,7 +3219,7 @@ test_basic_io(unsigned config, hid_t vds_fapl, hid_t src_fapl)
TEST_ERROR_SUPPRESSED;
/* Reset rbuf */
- HDmemset(rbuf[0], 0, sizeof(rbuf));
+ memset(rbuf[0], 0, sizeof(rbuf));
/* Select stripe */
start[0] = 0;
@@ -3273,7 +3273,7 @@ test_basic_io(unsigned config, hid_t vds_fapl, hid_t src_fapl)
TEST_ERROR_SUPPRESSED;
/* Reset rbuf */
- HDmemset(rbuf[0], 0, sizeof(rbuf));
+ memset(rbuf[0], 0, sizeof(rbuf));
/* Select stripe */
start[0] = 0;
@@ -3398,7 +3398,7 @@ test_basic_io(unsigned config, hid_t vds_fapl, hid_t src_fapl)
TEST_ERROR_SUPPRESSED;
/* Update erbuf */
- HDmemset(erbuf, 0, sizeof(erbuf));
+ memset(erbuf, 0, sizeof(erbuf));
erbuf[0][0] = buf[0][0];
erbuf[0][1] = buf[0][1];
erbuf[0][8] = buf[0][2];
@@ -3549,7 +3549,7 @@ test_basic_io(unsigned config, hid_t vds_fapl, hid_t src_fapl)
TEST_ERROR_SUPPRESSED;
/* Reset rbuf */
- HDmemset(rbuf[0], 0, sizeof(rbuf));
+ memset(rbuf[0], 0, sizeof(rbuf));
/* Read dataset */
if (H5Dread(srcdset[0], H5T_NATIVE_INT, memspace, H5S_ALL, H5P_DEFAULT, rbuf[0]) < 0)
@@ -3682,7 +3682,7 @@ test_basic_io(unsigned config, hid_t vds_fapl, hid_t src_fapl)
TEST_ERROR_SUPPRESSED;
/* Reset erbuf */
- HDmemset(erbuf[0], 0, sizeof(rbuf));
+ memset(erbuf[0], 0, sizeof(rbuf));
/* Populate write buffer */
for (i = 0; i < (int)(sizeof(buf) / sizeof(buf[0])); i++)
@@ -3782,7 +3782,7 @@ test_basic_io(unsigned config, hid_t vds_fapl, hid_t src_fapl)
TEST_ERROR_SUPPRESSED;
/* Read data through virtual dataset */
- HDmemset(rbuf[0], 0, sizeof(rbuf));
+ memset(rbuf[0], 0, sizeof(rbuf));
if (H5Dread(vdset, H5T_NATIVE_INT, memspace, vspace[0], H5P_DEFAULT, rbuf[0]) < 0)
TEST_ERROR_SUPPRESSED;
@@ -3915,7 +3915,7 @@ test_basic_io(unsigned config, hid_t vds_fapl, hid_t src_fapl)
TEST_ERROR_SUPPRESSED;
/* Reset erbuf */
- HDmemset(erbuf[0], 0, sizeof(rbuf));
+ memset(erbuf[0], 0, sizeof(rbuf));
/* Populate write buffer */
for (i = 0; i < (int)(sizeof(buf) / sizeof(buf[0])); i++)
@@ -4039,7 +4039,7 @@ test_basic_io(unsigned config, hid_t vds_fapl, hid_t src_fapl)
TEST_ERROR_SUPPRESSED;
/* Read data through virtual dataset */
- HDmemset(rbuf[0], 0, sizeof(rbuf));
+ memset(rbuf[0], 0, sizeof(rbuf));
if (H5Dread(vdset, H5T_NATIVE_INT, memspace, H5S_ALL, H5P_DEFAULT, rbuf[0]) < 0)
TEST_ERROR_SUPPRESSED;
@@ -4176,7 +4176,7 @@ test_basic_io(unsigned config, hid_t vds_fapl, hid_t src_fapl)
TEST_ERROR_SUPPRESSED;
/* Initialize erbuf */
- HDmemset(erbuf[0], 0, sizeof(rbuf));
+ memset(erbuf[0], 0, sizeof(rbuf));
for (i = 0; i < 10; i++)
for (j = 0; j < 24; j += 6) {
erbuf[i][j] = -1;
@@ -4291,7 +4291,7 @@ test_basic_io(unsigned config, hid_t vds_fapl, hid_t src_fapl)
TEST_ERROR_SUPPRESSED;
/* Read data through virtual dataset */
- HDmemset(rbuf[0], 0, sizeof(rbuf));
+ memset(rbuf[0], 0, sizeof(rbuf));
if (H5Dread(vdset, H5T_NATIVE_INT, memspace, vspace[0], H5P_DEFAULT, rbuf[0]) < 0)
TEST_ERROR_SUPPRESSED;
@@ -4611,7 +4611,7 @@ test_unlim(unsigned config, hid_t vds_fapl, hid_t src_fapl)
/* Read data through virtual dataset */
/* Reset rbuf */
- HDmemset(rbuf[0], 0, sizeof(rbuf));
+ memset(rbuf[0], 0, sizeof(rbuf));
/* Select hyperslab in memory space */
start[0] = 0;
@@ -4687,7 +4687,7 @@ test_unlim(unsigned config, hid_t vds_fapl, hid_t src_fapl)
/* Read data through virtual dataset */
/* Reset rbuf */
- HDmemset(rbuf[0], 0, sizeof(rbuf));
+ memset(rbuf[0], 0, sizeof(rbuf));
/* Read data */
if (H5Dread(vdset, H5T_NATIVE_INT, memspace, H5S_ALL, H5P_DEFAULT, rbuf[0]) < 0)
@@ -4793,7 +4793,7 @@ test_unlim(unsigned config, hid_t vds_fapl, hid_t src_fapl)
/* Read data through virtual dataset */
/* Reset rbuf */
- HDmemset(rbuf[0], 0, sizeof(rbuf));
+ memset(rbuf[0], 0, sizeof(rbuf));
/* Select hyperslab in memory space */
start[1] = 0;
@@ -4863,7 +4863,7 @@ test_unlim(unsigned config, hid_t vds_fapl, hid_t src_fapl)
/* Read data through virtual dataset */
/* Reset rbuf */
- HDmemset(rbuf[0], 0, sizeof(rbuf));
+ memset(rbuf[0], 0, sizeof(rbuf));
/* Select hyperslab in memory space */
start[1] = 0;
@@ -4977,7 +4977,7 @@ test_unlim(unsigned config, hid_t vds_fapl, hid_t src_fapl)
/* Read data through virtual dataset */
/* Reset rbuf */
- HDmemset(rbuf[0], 0, sizeof(rbuf));
+ memset(rbuf[0], 0, sizeof(rbuf));
/* Select hyperslab in memory space */
start[1] = 0;
@@ -4995,7 +4995,7 @@ test_unlim(unsigned config, hid_t vds_fapl, hid_t src_fapl)
TEST_ERROR_SUPPRESSED;
/* Now just read middle 2 rows */
- HDmemset(rbuf[0], 0, sizeof(rbuf));
+ memset(rbuf[0], 0, sizeof(rbuf));
start[0] = 4;
count[0] = 2;
count[1] = 20;
@@ -5031,7 +5031,7 @@ test_unlim(unsigned config, hid_t vds_fapl, hid_t src_fapl)
/* Read data through virtual dataset */
/* Reset rbuf */
- HDmemset(rbuf[0], 0, sizeof(rbuf));
+ memset(rbuf[0], 0, sizeof(rbuf));
/* Select hyperslab in memory space */
start[0] = 0;
@@ -5057,7 +5057,7 @@ test_unlim(unsigned config, hid_t vds_fapl, hid_t src_fapl)
/* Read data through virtual dataset */
/* Reset rbuf */
- HDmemset(rbuf[0], 0, sizeof(rbuf));
+ memset(rbuf[0], 0, sizeof(rbuf));
/* Select hyperslab in memory space */
start[0] = 0;
@@ -5087,7 +5087,7 @@ test_unlim(unsigned config, hid_t vds_fapl, hid_t src_fapl)
/* Read data through virtual dataset */
/* Reset rbuf */
- HDmemset(rbuf[0], 0, sizeof(rbuf));
+ memset(rbuf[0], 0, sizeof(rbuf));
/* Select hyperslab in memory space */
start[0] = 0;
@@ -5153,7 +5153,7 @@ test_unlim(unsigned config, hid_t vds_fapl, hid_t src_fapl)
/* Read data through virtual dataset */
/* Reset rbuf */
- HDmemset(rbuf[0], 0, sizeof(rbuf));
+ memset(rbuf[0], 0, sizeof(rbuf));
/* Select hyperslab in memory space */
start[0] = 0;
@@ -5192,7 +5192,7 @@ test_unlim(unsigned config, hid_t vds_fapl, hid_t src_fapl)
/* Read data through virtual dataset */
/* Reset rbuf */
- HDmemset(rbuf[0], 0, sizeof(rbuf));
+ memset(rbuf[0], 0, sizeof(rbuf));
/* Select hyperslab in memory space */
start[1] = 0;
@@ -5222,7 +5222,7 @@ test_unlim(unsigned config, hid_t vds_fapl, hid_t src_fapl)
/* Read data through virtual dataset */
/* Reset rbuf */
- HDmemset(rbuf[0], 0, sizeof(rbuf));
+ memset(rbuf[0], 0, sizeof(rbuf));
/* Select hyperslab in memory space */
start[0] = 0;
@@ -5252,7 +5252,7 @@ test_unlim(unsigned config, hid_t vds_fapl, hid_t src_fapl)
/* Read data through virtual dataset */
/* Reset rbuf */
- HDmemset(rbuf[0], 0, sizeof(rbuf));
+ memset(rbuf[0], 0, sizeof(rbuf));
/* Select hyperslab in memory space */
start[0] = 0;
@@ -5479,7 +5479,7 @@ test_unlim(unsigned config, hid_t vds_fapl, hid_t src_fapl)
/* Read data through virtual dataset */
/* Reset rbuf */
- HDmemset(rbuf[0], 0, sizeof(rbuf));
+ memset(rbuf[0], 0, sizeof(rbuf));
/* Select hyperslab in memory space */
if (H5Sselect_hyperslab(memspace, H5S_SELECT_SET, start, NULL, dims, NULL) < 0)
@@ -5542,7 +5542,7 @@ test_unlim(unsigned config, hid_t vds_fapl, hid_t src_fapl)
/* Read data through virtual dataset */
/* Reset rbuf */
- HDmemset(rbuf[0], 0, sizeof(rbuf));
+ memset(rbuf[0], 0, sizeof(rbuf));
/* Read data */
if (H5Dread(vdset, H5T_NATIVE_INT, memspace, H5S_ALL, H5P_DEFAULT, rbuf[0]) < 0)
@@ -5653,7 +5653,7 @@ test_unlim(unsigned config, hid_t vds_fapl, hid_t src_fapl)
/* Read data through virtual dataset */
/* Reset rbuf */
- HDmemset(rbuf[0], 0, sizeof(rbuf));
+ memset(rbuf[0], 0, sizeof(rbuf));
/* Select hyperslab in memory space */
if (H5Sselect_hyperslab(memspace, H5S_SELECT_SET, start, NULL, dims, NULL) < 0)
@@ -5721,7 +5721,7 @@ test_unlim(unsigned config, hid_t vds_fapl, hid_t src_fapl)
/* Read data through virtual dataset */
/* Reset rbuf */
- HDmemset(rbuf[0], 0, sizeof(rbuf));
+ memset(rbuf[0], 0, sizeof(rbuf));
/* Select hyperslab in memory space */
if (H5Sselect_hyperslab(memspace, H5S_SELECT_SET, start, NULL, dims, NULL) < 0)
@@ -5834,7 +5834,7 @@ test_unlim(unsigned config, hid_t vds_fapl, hid_t src_fapl)
/* Read data through virtual dataset */
/* Reset rbuf */
- HDmemset(rbuf[0], 0, sizeof(rbuf));
+ memset(rbuf[0], 0, sizeof(rbuf));
/* Select hyperslab in memory space */
if (H5Sselect_hyperslab(memspace, H5S_SELECT_SET, start, NULL, dims, NULL) < 0)
@@ -5851,7 +5851,7 @@ test_unlim(unsigned config, hid_t vds_fapl, hid_t src_fapl)
TEST_ERROR_SUPPRESSED;
/* Now just read middle 2 rows */
- HDmemset(rbuf[0], 0, sizeof(rbuf));
+ memset(rbuf[0], 0, sizeof(rbuf));
start[0] = 4;
count[0] = 2;
count[1] = 20;
@@ -5920,7 +5920,7 @@ test_unlim(unsigned config, hid_t vds_fapl, hid_t src_fapl)
/* Read data through virtual dataset */
/* Reset rbuf */
- HDmemset(rbuf[0], 0, sizeof(rbuf));
+ memset(rbuf[0], 0, sizeof(rbuf));
/* Select hyperslab in memory space */
if (H5Sselect_hyperslab(memspace, H5S_SELECT_SET, start, NULL, dims, NULL) < 0)
@@ -6200,7 +6200,7 @@ test_unlim(unsigned config, hid_t vds_fapl, hid_t src_fapl)
/* Read data through virtual dataset */
/* Reset rbuf */
- HDmemset(rbuf[0], 0, sizeof(rbuf));
+ memset(rbuf[0], 0, sizeof(rbuf));
/* Select hyperslab in memory space */
if (H5Sselect_hyperslab(memspace, H5S_SELECT_SET, start, NULL, dims, NULL) < 0)
@@ -6263,7 +6263,7 @@ test_unlim(unsigned config, hid_t vds_fapl, hid_t src_fapl)
/* Read data through virtual dataset */
/* Reset rbuf */
- HDmemset(rbuf[0], 0, sizeof(rbuf));
+ memset(rbuf[0], 0, sizeof(rbuf));
/* Read data */
if (H5Dread(vdset, H5T_NATIVE_INT, memspace, H5S_ALL, H5P_DEFAULT, rbuf[0]) < 0)
@@ -6368,7 +6368,7 @@ test_unlim(unsigned config, hid_t vds_fapl, hid_t src_fapl)
/* Read data through virtual dataset */
/* Reset rbuf */
- HDmemset(rbuf[0], 0, sizeof(rbuf));
+ memset(rbuf[0], 0, sizeof(rbuf));
/* Select hyperslab in memory space */
if (H5Sselect_hyperslab(memspace, H5S_SELECT_SET, start, NULL, dims, NULL) < 0)
@@ -6439,7 +6439,7 @@ test_unlim(unsigned config, hid_t vds_fapl, hid_t src_fapl)
/* Read data through virtual dataset */
/* Reset rbuf */
- HDmemset(rbuf[0], 0, sizeof(rbuf));
+ memset(rbuf[0], 0, sizeof(rbuf));
/* Select hyperslab in memory space */
if (H5Sselect_hyperslab(memspace, H5S_SELECT_SET, start, NULL, dims, NULL) < 0)
@@ -6555,7 +6555,7 @@ test_unlim(unsigned config, hid_t vds_fapl, hid_t src_fapl)
/* Read data through virtual dataset */
/* Reset rbuf */
- HDmemset(rbuf[0], 0, sizeof(rbuf));
+ memset(rbuf[0], 0, sizeof(rbuf));
/* Select hyperslab in memory space */
if (H5Sselect_hyperslab(memspace, H5S_SELECT_SET, start, NULL, dims, NULL) < 0)
@@ -6618,7 +6618,7 @@ test_unlim(unsigned config, hid_t vds_fapl, hid_t src_fapl)
/* Read data through virtual dataset */
/* Reset rbuf */
- HDmemset(rbuf[0], 0, sizeof(rbuf));
+ memset(rbuf[0], 0, sizeof(rbuf));
/* Select hyperslab in memory space */
if (H5Sselect_hyperslab(memspace, H5S_SELECT_SET, start, NULL, dims, NULL) < 0)
@@ -6732,7 +6732,7 @@ test_unlim(unsigned config, hid_t vds_fapl, hid_t src_fapl)
/* Read data through virtual dataset */
/* Reset rbuf */
- HDmemset(rbuf[0], 0, sizeof(rbuf));
+ memset(rbuf[0], 0, sizeof(rbuf));
/* Select hyperslab in memory space */
if (H5Sselect_hyperslab(memspace, H5S_SELECT_SET, start, NULL, dims, NULL) < 0)
@@ -6791,7 +6791,7 @@ test_unlim(unsigned config, hid_t vds_fapl, hid_t src_fapl)
/* Read data through virtual dataset */
/* Reset rbuf */
- HDmemset(rbuf[0], 0, sizeof(rbuf));
+ memset(rbuf[0], 0, sizeof(rbuf));
/* Select hyperslab in memory space */
if (H5Sselect_hyperslab(memspace, H5S_SELECT_SET, start, NULL, dims, NULL) < 0)
@@ -6813,7 +6813,7 @@ test_unlim(unsigned config, hid_t vds_fapl, hid_t src_fapl)
}
/* Now just read middle 2 rows */
- HDmemset(rbuf[0], 0, sizeof(rbuf));
+ memset(rbuf[0], 0, sizeof(rbuf));
start[0] = 4;
count[0] = 2;
count[1] = 19;
@@ -7048,7 +7048,7 @@ test_unlim(unsigned config, hid_t vds_fapl, hid_t src_fapl)
/* Read data through virtual dataset */
/* Reset rbuf */
- HDmemset(rbuf[0], 0, sizeof(rbuf));
+ memset(rbuf[0], 0, sizeof(rbuf));
/* Select hyperslab in memory space */
start[0] = 0;
@@ -7113,7 +7113,7 @@ test_unlim(unsigned config, hid_t vds_fapl, hid_t src_fapl)
/* Read data through virtual dataset */
/* Reset rbuf */
- HDmemset(rbuf[0], 0, sizeof(rbuf));
+ memset(rbuf[0], 0, sizeof(rbuf));
/* Read data */
if (H5Dread(vdset, H5T_NATIVE_INT, memspace, H5S_ALL, H5P_DEFAULT, rbuf[0]) < 0)
@@ -7218,7 +7218,7 @@ test_unlim(unsigned config, hid_t vds_fapl, hid_t src_fapl)
/* Read data through virtual dataset */
/* Reset rbuf */
- HDmemset(rbuf[0], 0, sizeof(rbuf));
+ memset(rbuf[0], 0, sizeof(rbuf));
/* Select hyperslab in memory space */
start[0] = 0;
@@ -7283,7 +7283,7 @@ test_unlim(unsigned config, hid_t vds_fapl, hid_t src_fapl)
/* Read data through virtual dataset */
/* Reset rbuf */
- HDmemset(rbuf[0], 0, sizeof(rbuf));
+ memset(rbuf[0], 0, sizeof(rbuf));
/* Select hyperslab in memory space */
start[0] = 0;
@@ -7675,7 +7675,7 @@ test_printf(unsigned config, hid_t vds_fapl, hid_t src_fapl)
/* Read data through virtual dataset */
/* Reset rbuf */
- HDmemset(rbuf[0], 0, sizeof(rbuf));
+ memset(rbuf[0], 0, sizeof(rbuf));
/* Select hyperslab in memory space */
if (H5Sselect_hyperslab(memspace, H5S_SELECT_SET, start, NULL, dims, NULL) < 0)
@@ -7771,7 +7771,7 @@ test_printf(unsigned config, hid_t vds_fapl, hid_t src_fapl)
/* Read data through virtual dataset */
/* Reset rbuf */
- HDmemset(rbuf[0], 0, sizeof(rbuf));
+ memset(rbuf[0], 0, sizeof(rbuf));
/* Select hyperslab in memory space */
if (H5Sselect_hyperslab(memspace, H5S_SELECT_SET, start, NULL, dims, NULL) < 0)
@@ -7797,7 +7797,7 @@ test_printf(unsigned config, hid_t vds_fapl, hid_t src_fapl)
for (start[1] = (hsize_t)0; start[1] < (hsize_t)5; start[1]++)
for (count[1] = (hsize_t)1; count[1] < (hsize_t)11; count[1]++) {
/* Reset rbuf */
- HDmemset(rbuf[0], 0, sizeof(rbuf));
+ memset(rbuf[0], 0, sizeof(rbuf));
/* Select hyperslab in memory space */
if (H5Sselect_hyperslab(memspace, H5S_SELECT_SET, start, NULL, count, NULL) < 0)
@@ -8183,7 +8183,7 @@ test_printf(unsigned config, hid_t vds_fapl, hid_t src_fapl)
/* Read data through virtual dataset */
/* Reset rbuf */
- HDmemset(rbuf[0], 0, sizeof(rbuf));
+ memset(rbuf[0], 0, sizeof(rbuf));
/* Select hyperslab in memory space */
if (H5Sselect_hyperslab(memspace, H5S_SELECT_SET, start, NULL, dims, NULL) < 0)
@@ -8258,7 +8258,7 @@ test_printf(unsigned config, hid_t vds_fapl, hid_t src_fapl)
/* Read data through virtual dataset */
/* Reset rbuf */
- HDmemset(rbuf[0], 0, sizeof(rbuf));
+ memset(rbuf[0], 0, sizeof(rbuf));
/* Select hyperslab in memory space */
if (H5Sselect_hyperslab(memspace, H5S_SELECT_SET, start, NULL, dims, NULL) < 0)
@@ -8327,7 +8327,7 @@ test_printf(unsigned config, hid_t vds_fapl, hid_t src_fapl)
/* Read data through virtual dataset */
/* Reset rbuf */
- HDmemset(rbuf[0], 0, sizeof(rbuf));
+ memset(rbuf[0], 0, sizeof(rbuf));
/* Select hyperslab in memory space */
if (H5Sselect_hyperslab(memspace, H5S_SELECT_SET, start, NULL, dims, NULL) < 0)
@@ -8396,7 +8396,7 @@ test_printf(unsigned config, hid_t vds_fapl, hid_t src_fapl)
/* Read data through virtual dataset */
/* Reset rbuf */
- HDmemset(rbuf[0], 0, sizeof(rbuf));
+ memset(rbuf[0], 0, sizeof(rbuf));
/* Select hyperslab in memory space */
if (H5Sselect_hyperslab(memspace, H5S_SELECT_SET, start, NULL, dims, NULL) < 0)
@@ -8465,7 +8465,7 @@ test_printf(unsigned config, hid_t vds_fapl, hid_t src_fapl)
/* Read data through virtual dataset */
/* Reset rbuf */
- HDmemset(rbuf[0], 0, sizeof(rbuf));
+ memset(rbuf[0], 0, sizeof(rbuf));
/* Select hyperslab in memory space */
if (H5Sselect_hyperslab(memspace, H5S_SELECT_SET, start, NULL, dims, NULL) < 0)
@@ -8528,7 +8528,7 @@ test_printf(unsigned config, hid_t vds_fapl, hid_t src_fapl)
/* Read data through virtual dataset */
/* Reset rbuf */
- HDmemset(rbuf[0], 0, sizeof(rbuf));
+ memset(rbuf[0], 0, sizeof(rbuf));
/* Select hyperslab in memory space */
if (H5Sselect_hyperslab(memspace, H5S_SELECT_SET, start, NULL, dims, NULL) < 0)
@@ -8751,7 +8751,7 @@ test_printf(unsigned config, hid_t vds_fapl, hid_t src_fapl)
/* Read data through virtual dataset */
/* Reset rbuf */
- HDmemset(rbuf[0], 0, sizeof(rbuf));
+ memset(rbuf[0], 0, sizeof(rbuf));
/* Select hyperslab in memory space */
if (H5Sselect_hyperslab(memspace, H5S_SELECT_SET, start, NULL, dims, NULL) < 0)
@@ -8848,7 +8848,7 @@ test_printf(unsigned config, hid_t vds_fapl, hid_t src_fapl)
/* Read data through virtual dataset */
/* Reset rbuf */
- HDmemset(rbuf[0], 0, sizeof(rbuf));
+ memset(rbuf[0], 0, sizeof(rbuf));
/* Select hyperslab in memory space */
if (H5Sselect_hyperslab(memspace, H5S_SELECT_SET, start, NULL, dims, NULL) < 0)
@@ -9061,7 +9061,7 @@ test_printf(unsigned config, hid_t vds_fapl, hid_t src_fapl)
/* Read data through virtual dataset */
/* Reset rbuf */
- HDmemset(rbuf[0], 0, sizeof(rbuf));
+ memset(rbuf[0], 0, sizeof(rbuf));
/* Select hyperslab in memory space */
if (H5Sselect_hyperslab(memspace, H5S_SELECT_SET, start, NULL, dims, NULL) < 0)
@@ -9158,7 +9158,7 @@ test_printf(unsigned config, hid_t vds_fapl, hid_t src_fapl)
/* Read data through virtual dataset */
/* Reset rbuf */
- HDmemset(rbuf[0], 0, sizeof(rbuf));
+ memset(rbuf[0], 0, sizeof(rbuf));
/* Select hyperslab in memory space */
if (H5Sselect_hyperslab(memspace, H5S_SELECT_SET, start, NULL, dims, NULL) < 0)
@@ -9427,7 +9427,7 @@ test_printf(unsigned config, hid_t vds_fapl, hid_t src_fapl)
/* Read data through virtual dataset */
/* Reset rbuf */
- HDmemset(rbuf[0], 0, sizeof(rbuf));
+ memset(rbuf[0], 0, sizeof(rbuf));
/* Select hyperslab in memory space */
if (H5Sselect_hyperslab(memspace, H5S_SELECT_SET, start, NULL, dims, NULL) < 0)
@@ -9526,7 +9526,7 @@ test_printf(unsigned config, hid_t vds_fapl, hid_t src_fapl)
/* Read data through virtual dataset */
/* Reset rbuf */
- HDmemset(rbuf[0], 0, sizeof(rbuf));
+ memset(rbuf[0], 0, sizeof(rbuf));
/* Select hyperslab in memory space */
if (H5Sselect_hyperslab(memspace, H5S_SELECT_SET, start, NULL, dims, NULL) < 0)
@@ -9590,7 +9590,7 @@ test_printf(unsigned config, hid_t vds_fapl, hid_t src_fapl)
/* Read data through virtual dataset */
/* Reset rbuf */
- HDmemset(rbuf[0], 0, sizeof(rbuf));
+ memset(rbuf[0], 0, sizeof(rbuf));
/* Select hyperslab in memory space */
if (H5Sselect_hyperslab(memspace, H5S_SELECT_SET, start, NULL, dims, NULL) < 0)
@@ -9689,7 +9689,7 @@ test_printf(unsigned config, hid_t vds_fapl, hid_t src_fapl)
/* Read data through virtual dataset */
/* Reset rbuf */
- HDmemset(rbuf[0], 0, sizeof(rbuf));
+ memset(rbuf[0], 0, sizeof(rbuf));
/* Select hyperslab in memory space */
if (H5Sselect_hyperslab(memspace, H5S_SELECT_SET, start, NULL, dims, NULL) < 0)
@@ -9753,7 +9753,7 @@ test_printf(unsigned config, hid_t vds_fapl, hid_t src_fapl)
/* Read data through virtual dataset */
/* Reset rbuf */
- HDmemset(rbuf[0], 0, sizeof(rbuf));
+ memset(rbuf[0], 0, sizeof(rbuf));
/* Select hyperslab in memory space */
if (H5Sselect_hyperslab(memspace, H5S_SELECT_SET, start, NULL, dims, NULL) < 0)
@@ -9817,7 +9817,7 @@ test_printf(unsigned config, hid_t vds_fapl, hid_t src_fapl)
/* Read data through virtual dataset */
/* Reset rbuf */
- HDmemset(rbuf[0], 0, sizeof(rbuf));
+ memset(rbuf[0], 0, sizeof(rbuf));
/* Select hyperslab in memory space */
if (H5Sselect_hyperslab(memspace, H5S_SELECT_SET, start, NULL, dims, NULL) < 0)
@@ -10108,7 +10108,7 @@ test_printf(unsigned config, hid_t vds_fapl, hid_t src_fapl)
/* Read data through virtual dataset */
/* Reset rbuf */
- HDmemset(rbuf[0], 0, sizeof(rbuf));
+ memset(rbuf[0], 0, sizeof(rbuf));
/* Select hyperslab in memory space */
if (H5Sselect_hyperslab(memspace, H5S_SELECT_SET, start, NULL, dims, NULL) < 0)
@@ -10172,7 +10172,7 @@ test_printf(unsigned config, hid_t vds_fapl, hid_t src_fapl)
/* Read data through virtual dataset */
/* Reset rbuf */
- HDmemset(rbuf[0], 0, sizeof(rbuf));
+ memset(rbuf[0], 0, sizeof(rbuf));
/* Select hyperslab in memory space */
if (H5Sselect_hyperslab(memspace, H5S_SELECT_SET, start, NULL, dims, NULL) < 0)
@@ -10275,7 +10275,7 @@ test_printf(unsigned config, hid_t vds_fapl, hid_t src_fapl)
/* Read data through virtual dataset */
/* Reset rbuf */
- HDmemset(rbuf[0], 0, sizeof(rbuf));
+ memset(rbuf[0], 0, sizeof(rbuf));
/* Select hyperslab in memory space */
if (H5Sselect_hyperslab(memspace, H5S_SELECT_SET, start, NULL, dims, NULL) < 0)
@@ -10338,7 +10338,7 @@ test_printf(unsigned config, hid_t vds_fapl, hid_t src_fapl)
/* Read data through virtual dataset */
/* Reset rbuf */
- HDmemset(rbuf[0], 0, sizeof(rbuf));
+ memset(rbuf[0], 0, sizeof(rbuf));
/* Select hyperslab in memory space */
if (H5Sselect_hyperslab(memspace, H5S_SELECT_SET, start, NULL, dims, NULL) < 0)
@@ -10438,7 +10438,7 @@ test_printf(unsigned config, hid_t vds_fapl, hid_t src_fapl)
/* Read data through virtual dataset */
/* Reset rbuf */
- HDmemset(rbuf[0], 0, sizeof(rbuf));
+ memset(rbuf[0], 0, sizeof(rbuf));
/* Select hyperslab in memory space */
if (H5Sselect_hyperslab(memspace, H5S_SELECT_SET, start, NULL, dims, NULL) < 0)
@@ -10475,7 +10475,7 @@ test_printf(unsigned config, hid_t vds_fapl, hid_t src_fapl)
/* Read data through virtual dataset */
/* Reset rbuf */
- HDmemset(rbuf[0], 0, sizeof(rbuf));
+ memset(rbuf[0], 0, sizeof(rbuf));
/* Select hyperslab in memory space */
if (H5Sselect_hyperslab(memspace, H5S_SELECT_SET, start, NULL, dims, NULL) < 0)
@@ -10504,7 +10504,7 @@ test_printf(unsigned config, hid_t vds_fapl, hid_t src_fapl)
/* Read data through virtual dataset */
/* Reset rbuf */
- HDmemset(rbuf[0], 0, sizeof(rbuf));
+ memset(rbuf[0], 0, sizeof(rbuf));
/* Select hyperslab in memory space */
if (H5Sselect_hyperslab(memspace, H5S_SELECT_SET, start, NULL, dims, NULL) < 0)
@@ -10532,7 +10532,7 @@ test_printf(unsigned config, hid_t vds_fapl, hid_t src_fapl)
/* Read data through virtual dataset */
/* Reset rbuf */
- HDmemset(rbuf[0], 0, sizeof(rbuf));
+ memset(rbuf[0], 0, sizeof(rbuf));
/* Select hyperslab in memory space */
if (H5Sselect_hyperslab(memspace, H5S_SELECT_SET, start, NULL, dims, NULL) < 0)
@@ -10596,7 +10596,7 @@ test_printf(unsigned config, hid_t vds_fapl, hid_t src_fapl)
/* Read data through virtual dataset */
/* Reset rbuf */
- HDmemset(rbuf[0], 0, sizeof(rbuf));
+ memset(rbuf[0], 0, sizeof(rbuf));
/* Select hyperslab in memory space */
if (H5Sselect_hyperslab(memspace, H5S_SELECT_SET, start, NULL, dims, NULL) < 0)
@@ -10633,7 +10633,7 @@ test_printf(unsigned config, hid_t vds_fapl, hid_t src_fapl)
/* Read data through virtual dataset */
/* Reset rbuf */
- HDmemset(rbuf[0], 0, sizeof(rbuf));
+ memset(rbuf[0], 0, sizeof(rbuf));
/* Select hyperslab in memory space */
if (H5Sselect_hyperslab(memspace, H5S_SELECT_SET, start, NULL, dims, NULL) < 0)
@@ -10662,7 +10662,7 @@ test_printf(unsigned config, hid_t vds_fapl, hid_t src_fapl)
/* Read data through virtual dataset */
/* Reset rbuf */
- HDmemset(rbuf[0], 0, sizeof(rbuf));
+ memset(rbuf[0], 0, sizeof(rbuf));
/* Select hyperslab in memory space */
if (H5Sselect_hyperslab(memspace, H5S_SELECT_SET, start, NULL, dims, NULL) < 0)
@@ -10690,7 +10690,7 @@ test_printf(unsigned config, hid_t vds_fapl, hid_t src_fapl)
/* Read data through virtual dataset */
/* Reset rbuf */
- HDmemset(rbuf[0], 0, sizeof(rbuf));
+ memset(rbuf[0], 0, sizeof(rbuf));
/* Select hyperslab in memory space */
if (H5Sselect_hyperslab(memspace, H5S_SELECT_SET, start, NULL, dims, NULL) < 0)
@@ -10929,7 +10929,7 @@ test_printf(unsigned config, hid_t vds_fapl, hid_t src_fapl)
/* Read data through virtual dataset */
/* Reset rbuf */
- HDmemset(rbuf[0], 0, sizeof(rbuf));
+ memset(rbuf[0], 0, sizeof(rbuf));
/* Select hyperslab in memory space */
if (H5Sselect_hyperslab(memspace, H5S_SELECT_SET, start, NULL, dims, NULL) < 0)
@@ -10992,7 +10992,7 @@ test_printf(unsigned config, hid_t vds_fapl, hid_t src_fapl)
/* Read data through virtual dataset */
/* Reset rbuf */
- HDmemset(rbuf[0], 0, sizeof(rbuf));
+ memset(rbuf[0], 0, sizeof(rbuf));
/* Select hyperslab in memory space */
if (H5Sselect_hyperslab(memspace, H5S_SELECT_SET, start, NULL, dims, NULL) < 0)
@@ -11383,7 +11383,7 @@ test_all(unsigned config, hid_t vds_fapl, hid_t src_fapl)
/* Read data through virtual dataset */
/* Reset rbuf */
- HDmemset(rbuf[0], 0, sizeof(rbuf));
+ memset(rbuf[0], 0, sizeof(rbuf));
/* Select hyperslab in memory space */
start[0] = 0;
@@ -11491,7 +11491,7 @@ test_all(unsigned config, hid_t vds_fapl, hid_t src_fapl)
/* Read data through virtual dataset */
/* Reset rbuf */
- HDmemset(rbuf[0], 0, sizeof(rbuf));
+ memset(rbuf[0], 0, sizeof(rbuf));
/* Select hyperslab in memory space */
start[0] = 0;
@@ -11596,7 +11596,7 @@ test_all(unsigned config, hid_t vds_fapl, hid_t src_fapl)
/* Read data through virtual dataset */
/* Reset rbuf */
- HDmemset(rbuf[0], 0, sizeof(rbuf));
+ memset(rbuf[0], 0, sizeof(rbuf));
/* Select hyperslab in memory space */
start[0] = 0;
@@ -11713,7 +11713,7 @@ test_all(unsigned config, hid_t vds_fapl, hid_t src_fapl)
/* Read data through virtual dataset */
/* Reset rbuf */
- HDmemset(rbuf[0], 0, sizeof(rbuf));
+ memset(rbuf[0], 0, sizeof(rbuf));
/* Select hyperslab in memory space */
start[0] = 0;
@@ -11818,7 +11818,7 @@ test_all(unsigned config, hid_t vds_fapl, hid_t src_fapl)
/* Read data through virtual dataset */
/* Reset rbuf */
- HDmemset(rbuf[0], 0, sizeof(rbuf));
+ memset(rbuf[0], 0, sizeof(rbuf));
/* Select hyperslab in memory space */
start[0] = 0;
@@ -11936,7 +11936,7 @@ test_all(unsigned config, hid_t vds_fapl, hid_t src_fapl)
/* Read data through virtual dataset */
/* Reset rbuf */
- HDmemset(rbuf[0], 0, sizeof(rbuf));
+ memset(rbuf[0], 0, sizeof(rbuf));
/* Select hyperslab in memory space */
start[0] = 0;
@@ -12041,7 +12041,7 @@ test_all(unsigned config, hid_t vds_fapl, hid_t src_fapl)
/* Read data through virtual dataset */
/* Reset rbuf */
- HDmemset(rbuf[0], 0, sizeof(rbuf));
+ memset(rbuf[0], 0, sizeof(rbuf));
/* Select hyperslab in memory space */
start[0] = 0;
diff --git a/test/vds_env.c b/test/vds_env.c
index 41bcb42..256455e 100644
--- a/test/vds_env.c
+++ b/test/vds_env.c
@@ -196,7 +196,7 @@ test_vds_prefix_second(unsigned config, hid_t fapl)
}
/* Read data through virtual dataset */
- HDmemset(rbuf[0], 0, sizeof(rbuf));
+ memset(rbuf[0], 0, sizeof(rbuf));
if (H5Dread(vdset, H5T_NATIVE_INT, H5S_ALL, H5S_ALL, H5P_DEFAULT, rbuf[0]) < 0)
TEST_ERROR;
@@ -234,7 +234,7 @@ test_vds_prefix_second(unsigned config, hid_t fapl)
}
/* Read data directly from source dataset */
- HDmemset(rbuf[0], 0, sizeof(rbuf));
+ memset(rbuf[0], 0, sizeof(rbuf));
if (H5Dread(srcdset[0], H5T_NATIVE_INT, H5S_ALL, H5S_ALL, H5P_DEFAULT, rbuf[0]) < 0)
TEST_ERROR;
diff --git a/test/vfd.c b/test/vfd.c
index 644d7cd..06a6ed4 100644
--- a/test/vfd.c
+++ b/test/vfd.c
@@ -489,7 +489,7 @@ test_core(void)
for (i = 0; i < CORE_DSET_DIM1; i++)
for (j = 0; j < CORE_DSET_DIM2; j++)
*pw++ = val++;
- HDmemset(data_r, 0, DSET1_DIM1 * DSET1_DIM2 * sizeof(int));
+ memset(data_r, 0, DSET1_DIM1 * DSET1_DIM2 * sizeof(int));
/* Create the dataspace */
dims[0] = CORE_DSET_DIM1;
@@ -580,7 +580,7 @@ test_core(void)
TEST_ERROR;
/* Read the data back from the dataset */
- HDmemset(data_r, 0, DSET1_DIM1 * DSET1_DIM2 * sizeof(int));
+ memset(data_r, 0, DSET1_DIM1 * DSET1_DIM2 * sizeof(int));
if (H5Dread(did, H5T_NATIVE_INT, H5S_ALL, H5S_ALL, H5P_DEFAULT, data_r) < 0)
TEST_ERROR;
@@ -1495,11 +1495,11 @@ test_multi(void)
if ((fapl = H5Pcreate(H5P_FILE_ACCESS)) < 0)
TEST_ERROR;
- HDmemset(memb_map, 0, sizeof(memb_map));
- HDmemset(memb_fapl, 0, sizeof(memb_fapl));
- HDmemset(memb_name, 0, sizeof(memb_name));
- HDmemset(memb_addr, 0, sizeof(memb_addr));
- HDmemset(sv, 0, sizeof(sv));
+ memset(memb_map, 0, sizeof(memb_map));
+ memset(memb_fapl, 0, sizeof(memb_fapl));
+ memset(memb_name, 0, sizeof(memb_name));
+ memset(memb_addr, 0, sizeof(memb_addr));
+ memset(sv, 0, sizeof(sv));
for (mt = H5FD_MEM_DEFAULT; mt < H5FD_MEM_NTYPES; mt++) {
memb_fapl[mt] = H5P_DEFAULT;
@@ -1744,11 +1744,11 @@ test_multi_compat(void)
if ((fapl = H5Pcreate(H5P_FILE_ACCESS)) < 0)
TEST_ERROR;
- HDmemset(memb_map, 0, sizeof memb_map);
- HDmemset(memb_fapl, 0, sizeof memb_fapl);
- HDmemset(memb_name, 0, sizeof memb_name);
- HDmemset(memb_addr, 0, sizeof memb_addr);
- HDmemset(sv, 0, sizeof sv);
+ memset(memb_map, 0, sizeof memb_map);
+ memset(memb_fapl, 0, sizeof memb_fapl);
+ memset(memb_name, 0, sizeof memb_name);
+ memset(memb_addr, 0, sizeof memb_addr);
+ memset(sv, 0, sizeof sv);
for (mt = H5FD_MEM_DEFAULT; mt < H5FD_MEM_NTYPES; mt++)
memb_map[mt] = H5FD_MEM_SUPER;
@@ -2951,7 +2951,7 @@ splitter_compare_expected_data(hid_t file_id, const struct splitter_dataset_def
if (sizeof((void *)buf) != sizeof(data->buf)) {
SPLITTER_TEST_FAULT("invariant size of expected data does not match that received!\n");
}
- HDmemcpy(expected, data->buf, sizeof(expected));
+ memcpy(expected, data->buf, sizeof(expected));
dset_id = H5Dopen2(file_id, data->dset_name, H5P_DEFAULT);
if (dset_id < 0) {
diff --git a/test/vfd_plugin.c b/test/vfd_plugin.c
index fab3c96..28aa769 100644
--- a/test/vfd_plugin.c
+++ b/test/vfd_plugin.c
@@ -291,7 +291,7 @@ test_get_config_str(void)
TEST_ERROR;
/* Try to retrieve length of default configuration string - should be 0 */
- HDmemset(config_str_buf, 0, 128);
+ memset(config_str_buf, 0, 128);
if ((config_str_len = H5Pget_driver_config_str(fapl_id, config_str_buf, 128)) < 0)
TEST_ERROR;
@@ -349,7 +349,7 @@ test_env_var(void)
TESTING("Loading of VFD plugin with HDF5_DRIVER environment variable");
/* Try to retrieve length of default configuration string - should be 0 */
- HDmemset(config_str_buf, 0, 128);
+ memset(config_str_buf, 0, 128);
if ((config_str_len = H5Pget_driver_config_str(H5P_FILE_ACCESS_DEFAULT, config_str_buf, 128)) < 0)
TEST_ERROR;
@@ -379,7 +379,7 @@ test_env_var(void)
TEST_ERROR;
/* Check driver configuration string */
- HDmemset(config_str_buf, 0, 128);
+ memset(config_str_buf, 0, 128);
if ((config_str_len = H5Pget_driver_config_str(H5P_FILE_ACCESS_DEFAULT, config_str_buf, 128)) < 0)
TEST_ERROR;
if (HDstrlen(config_str) != config_str_len)
diff --git a/test/vol.c b/test/vol.c
index 79223e7..d571e50 100644
--- a/test/vol.c
+++ b/test/vol.c
@@ -717,7 +717,7 @@ test_vol_registration(void)
/* Test registering a VOL connector with an incompatible version # */
if (NULL == (bad_fake_vol_class = malloc(sizeof(H5VL_class_t))))
TEST_ERROR;
- HDmemcpy(bad_fake_vol_class, &fake_vol_g, sizeof(H5VL_class_t));
+ memcpy(bad_fake_vol_class, &fake_vol_g, sizeof(H5VL_class_t));
bad_fake_vol_class->version = H5VL_VERSION + 1;
H5E_BEGIN_TRY
{