summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/Attributes.txt2
-rw-r--r--examples/h5_extlink.c16
-rw-r--r--examples/h5_group.c2
-rw-r--r--examples/h5_interm_group.c2
-rw-r--r--examples/h5_mount.c2
-rw-r--r--examples/h5_reference.c2
6 files changed, 13 insertions, 13 deletions
diff --git a/examples/Attributes.txt b/examples/Attributes.txt
index 8d090fc..4af986b 100644
--- a/examples/Attributes.txt
+++ b/examples/Attributes.txt
@@ -39,7 +39,7 @@ H5Acreate example: Show how to create an attribute for a dataset and a group
H5Dclose(dataset);
/* Create a group */
- group=H5Gcreate(file,"/Group One",0);
+ group=H5Gcreate2(file, "/Group One", H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT);
/* Create an attribute for the dataset */
attr=H5Acreate(group,"Attr1",H5T_INT32,H5S_SCALAR,H5P_DEFAULT);
diff --git a/examples/h5_extlink.c b/examples/h5_extlink.c
index 113d269..ecd8b52 100644
--- a/examples/h5_extlink.c
+++ b/examples/h5_extlink.c
@@ -61,7 +61,7 @@ static void extlink_example(void)
targ_file_id = H5Fcreate(TARGET_FILE, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
/* Create a group in the target file for the external link to point to. */
- group_id = H5Gcreate(targ_file_id, "target_group", (size_t) 0);
+ group_id = H5Gcreate2(targ_file_id, "target_group", H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT);
/* Close the group and the target file */
H5Gclose(group_id);
@@ -76,7 +76,7 @@ static void extlink_example(void)
* target group (even though the target file is closed!). The external
* link works just like a soft link.
*/
- group_id = H5Gcreate(source_file_id, "ext_link/new_group", (size_t) 0);
+ group_id = H5Gcreate2(source_file_id, "ext_link/new_group", H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT);
/* The group is inside the target file and we can access it normally.
* Here, group_id and group2_id point to the same group inside the
@@ -155,7 +155,7 @@ static void extlink_prefix_example(void)
/* Now we can use the open group ID to create a new group inside the
* "red" file.
*/
- group2_id = H5Gcreate(group_id, "pink", (size_t) 0);
+ group2_id = H5Gcreate2(group_id, "pink", H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT);
/* Close both groups. */
H5Gclose(group2_id);
@@ -166,7 +166,7 @@ static void extlink_prefix_example(void)
*/
H5Pset_elink_prefix(gapl_id, "blue/");
group_id = H5Gopen2(source_file_id, "ext_link", gapl_id);
- group2_id = H5Gcreate(group_id, "sky blue", (size_t) 0);
+ group2_id = H5Gcreate2(group_id, "sky blue", H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT);
/* Close both groups. */
H5Gclose(group2_id);
@@ -243,7 +243,7 @@ static void soft_link_example(void)
* point to.
*/
file_id = H5Fcreate(SOFT_LINK_FILE, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
- group_id = H5Gcreate(file_id, TARGET_GROUP, (size_t) 0);
+ group_id = H5Gcreate2(file_id, TARGET_GROUP, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT);
H5Gclose(group_id);
/* This is how we create a normal soft link to the group.
@@ -346,7 +346,7 @@ static void hard_link_example(void)
* point to.
*/
file_id = H5Fcreate(HARD_LINK_FILE, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
- group_id = H5Gcreate(file_id, TARGET_GROUP, (size_t) 0);
+ group_id = H5Gcreate2(file_id, TARGET_GROUP, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT);
H5Gclose(group_id);
/* This is how we create a normal hard link to the group. This
@@ -565,9 +565,9 @@ static void plist_link_example(void)
* point to.
*/
file_id = H5Fcreate(HARD_LINK_FILE, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
- group_id = H5Gcreate(file_id, "group_1", (size_t) 0);
+ group_id = H5Gcreate2(file_id, "group_1", H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT);
H5Gclose(group_id);
- group_id = H5Gcreate(file_id, "group_1/group_2", (size_t) 0);
+ group_id = H5Gcreate2(file_id, "group_1/group_2", H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT);
H5Gclose(group_id);
/* Register "plist links" and create one. It has no udata at all. */
diff --git a/examples/h5_group.c b/examples/h5_group.c
index 82d177b..80cfd04 100644
--- a/examples/h5_group.c
+++ b/examples/h5_group.c
@@ -55,7 +55,7 @@ main(void)
/*
* Create a group in the file.
*/
- grp = H5Gcreate(file, "/Data", 0);
+ grp = H5Gcreate2(file, "/Data", H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT);
/*
* Create dataset "Compressed Data" in the group using absolute
diff --git a/examples/h5_interm_group.c b/examples/h5_interm_group.c
index 7889abf..caa0a88 100644
--- a/examples/h5_interm_group.c
+++ b/examples/h5_interm_group.c
@@ -48,7 +48,7 @@ main(void)
/*
* Create a group in the file.
*/
- g1_id = H5Gcreate(file, "/G1", 0);
+ g1_id = H5Gcreate2(file, "/G1", H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT);
H5Gclose(g1_id);
H5Fclose(file);
diff --git a/examples/h5_mount.c b/examples/h5_mount.c
index f863aea..04c6184 100644
--- a/examples/h5_mount.c
+++ b/examples/h5_mount.c
@@ -54,7 +54,7 @@ int main(void)
* Create first file and a group in it.
*/
fid1 = H5Fcreate(FILE1, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
- gid = H5Gcreate(fid1, "/G", 0);
+ gid = H5Gcreate2(fid1, "/G", H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT);
/*
* Close group and file
diff --git a/examples/h5_reference.c b/examples/h5_reference.c
index a84a6cb..5cd6cb1 100644
--- a/examples/h5_reference.c
+++ b/examples/h5_reference.c
@@ -52,7 +52,7 @@ main(void) {
/*
* Create group "A" in the file.
*/
- gid_a = H5Gcreate(fid, "A", 0);
+ gid_a = H5Gcreate2(fid, "A", H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT);
/*
* Create dataset "B" in the file.