summaryrefslogtreecommitdiffstats
path: root/test/API
diff options
context:
space:
mode:
Diffstat (limited to 'test/API')
-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
20 files changed, 289 insertions, 289 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);