diff options
Diffstat (limited to 'test/genall5.c')
-rw-r--r-- | test/genall5.c | 124 |
1 files changed, 62 insertions, 62 deletions
diff --git a/test/genall5.c b/test/genall5.c index 31b5b87..cac4542 100644 --- a/test/genall5.c +++ b/test/genall5.c @@ -31,25 +31,25 @@ typedef enum phase {PHASE_CREATE, PHASE_VALIDATE, PHASE_DELETE, PHASE_VALIDATE_DELETION} phase_t; -static bool rm_ns_grp_0(hid_t, const char *); -static bool rm_ns_grp_c(hid_t, const char *, unsigned); -static bool rm_ns_grp_d(hid_t, const char *, unsigned); -static bool rm_os_grp_0(hid_t, const char *); -static bool rm_os_grp_n(hid_t, const char *, int, unsigned); -static bool rm_ds_ctg_i(hid_t, const char *, hbool_t); -static bool rm_ds_chk_i(hid_t, const char *, hbool_t); -static bool rm_ds_cpt_i(hid_t, const char *, hbool_t); -static bool rm_ds_ctg_v(hid_t, const char *, hbool_t); - -static bool missing_ns_grp_0(hid_t, const char *); -static bool missing_ns_grp_c(hid_t, const char *, unsigned); -static bool missing_ns_grp_d(hid_t, const char *, unsigned); -static bool missing_os_grp_0(hid_t, const char *); -static bool missing_os_grp_n(hid_t, const char *, int, unsigned); -static bool missing_ds_ctg_i(hid_t, const char *, hbool_t); -static bool missing_ds_chk_i(hid_t, const char *, hbool_t); -static bool missing_ds_cpt_i(hid_t, const char *, hbool_t); -static bool missing_ds_ctg_v(hid_t, const char *, hbool_t); +static hbool_t rm_ns_grp_0(hid_t, const char *); +static hbool_t rm_ns_grp_c(hid_t, const char *, unsigned); +static hbool_t rm_ns_grp_d(hid_t, const char *, unsigned); +static hbool_t rm_os_grp_0(hid_t, const char *); +static hbool_t rm_os_grp_n(hid_t, const char *, int, unsigned); +static hbool_t rm_ds_ctg_i(hid_t, const char *, hbool_t); +static hbool_t rm_ds_chk_i(hid_t, const char *, hbool_t); +static hbool_t rm_ds_cpt_i(hid_t, const char *, hbool_t); +static hbool_t rm_ds_ctg_v(hid_t, const char *, hbool_t); + +static hbool_t missing_ns_grp_0(hid_t, const char *); +static hbool_t missing_ns_grp_c(hid_t, const char *, unsigned); +static hbool_t missing_ns_grp_d(hid_t, const char *, unsigned); +static hbool_t missing_os_grp_0(hid_t, const char *); +static hbool_t missing_os_grp_n(hid_t, const char *, int, unsigned); +static hbool_t missing_ds_ctg_i(hid_t, const char *, hbool_t); +static hbool_t missing_ds_chk_i(hid_t, const char *, hbool_t); +static hbool_t missing_ds_cpt_i(hid_t, const char *, hbool_t); +static hbool_t missing_ds_ctg_v(hid_t, const char *, hbool_t); #define FN_ITEM_DEFN(__name, ...) \ typedef bool (*__name##fn_t)(__VA_ARGS__); \ @@ -68,7 +68,7 @@ FN_ITEM_DEFN(ds_ctg_v, hid_t, const char *, bool); #undef FN_ITEM_DEFN -static bool +static hbool_t file_has_no_path(hid_t fid, const char *path) { switch (H5Lexists(fid, path, H5P_DEFAULT)) { @@ -83,7 +83,7 @@ file_has_no_path(hid_t fid, const char *path) } } -static bool +static hbool_t remove_from_file_path(hid_t fid, const char *path) { if (H5Ldelete(fid, path, H5P_DEFAULT) < 0) { @@ -110,19 +110,19 @@ remove_from_file_path(hid_t fid, const char *path) *------------------------------------------------------------------------- */ -static bool +static hbool_t missing_ns_grp_0(hid_t fid, const char *group_name) { return file_has_no_path(fid, group_name); } -static bool +static hbool_t rm_ns_grp_0(hid_t fid, const char *group_name) { return remove_from_file_path(fid, group_name); } -bool +hbool_t ns_grp_0(hid_t fid, const char *group_name) { hid_t gid = -1; @@ -185,7 +185,7 @@ ns_grp_0(hid_t fid, const char *group_name) *------------------------------------------------------------------------- */ -bool +hbool_t vrfy_ns_grp_0(hid_t fid, const char *group_name) { hid_t gid = -1; @@ -275,20 +275,20 @@ vrfy_ns_grp_0(hid_t fid, const char *group_name) *------------------------------------------------------------------------- */ -static bool +static hbool_t missing_ns_grp_c(hid_t fid, const char *group_name, unsigned H5_ATTR_UNUSED nlinks) { return file_has_no_path(fid, group_name); } -static bool +static hbool_t rm_ns_grp_c(hid_t fid, const char *group_name, unsigned H5_ATTR_UNUSED nlinks) { return remove_from_file_path(fid, group_name); } -bool +hbool_t ns_grp_c(hid_t fid, const char *group_name, unsigned nlinks) { hid_t gid = -1; @@ -401,7 +401,7 @@ ns_grp_c(hid_t fid, const char *group_name, unsigned nlinks) *------------------------------------------------------------------------- */ -bool +hbool_t vrfy_ns_grp_c(hid_t fid, const char *group_name, unsigned nlinks) { hid_t gid = -1; @@ -623,20 +623,20 @@ vrfy_ns_grp_c(hid_t fid, const char *group_name, unsigned nlinks) *------------------------------------------------------------------------- */ -static bool +static hbool_t missing_ns_grp_d(hid_t fid, const char *group_name, unsigned H5_ATTR_UNUSED nlinks) { return file_has_no_path(fid, group_name); } -static bool +static hbool_t rm_ns_grp_d(hid_t fid, const char *group_name, unsigned H5_ATTR_UNUSED nlinks) { return remove_from_file_path(fid, group_name); } -bool +hbool_t ns_grp_d(hid_t fid, const char *group_name, unsigned nlinks) { hid_t gid = -1; @@ -748,7 +748,7 @@ ns_grp_d(hid_t fid, const char *group_name, unsigned nlinks) */ -bool +hbool_t vrfy_ns_grp_d(hid_t fid, const char *group_name, unsigned nlinks) { hid_t gid = -1; @@ -967,19 +967,19 @@ vrfy_ns_grp_d(hid_t fid, const char *group_name, unsigned nlinks) *------------------------------------------------------------------------- */ -static bool +static hbool_t missing_os_grp_0(hid_t fid, const char *group_name) { return file_has_no_path(fid, group_name); } -static bool +static hbool_t rm_os_grp_0(hid_t fid, const char *group_name) { return remove_from_file_path(fid, group_name); } -bool +hbool_t os_grp_0(hid_t fid, const char *group_name) { hid_t gid = -1; @@ -1053,7 +1053,7 @@ os_grp_0(hid_t fid, const char *group_name) *------------------------------------------------------------------------- */ -bool +hbool_t vrfy_os_grp_0(hid_t fid, const char *group_name) { hid_t gid = -1; @@ -1141,21 +1141,21 @@ vrfy_os_grp_0(hid_t fid, const char *group_name) *------------------------------------------------------------------------- */ -static bool +static hbool_t missing_os_grp_n(hid_t fid, const char *group_name, int H5_ATTR_UNUSED proc_num, unsigned H5_ATTR_UNUSED nlinks) { return file_has_no_path(fid, group_name); } -static bool +static hbool_t rm_os_grp_n(hid_t fid, const char *group_name, int H5_ATTR_UNUSED proc_num, unsigned H5_ATTR_UNUSED nlinks) { return remove_from_file_path(fid, group_name); } -bool +hbool_t os_grp_n(hid_t fid, const char *group_name, int proc_num, unsigned nlinks) { hid_t gid = -1; @@ -1253,7 +1253,7 @@ os_grp_n(hid_t fid, const char *group_name, int proc_num, unsigned nlinks) * *------------------------------------------------------------------------- */ -bool +hbool_t vrfy_os_grp_n(hid_t fid, const char *group_name, int proc_num, unsigned nlinks) { hid_t gid = -1; @@ -1431,20 +1431,20 @@ vrfy_os_grp_n(hid_t fid, const char *group_name, int proc_num, unsigned nlinks) * *------------------------------------------------------------------------- */ -static bool +static hbool_t missing_ds_ctg_i(hid_t fid, const char *dset_name, hbool_t H5_ATTR_UNUSED write_data) { return file_has_no_path(fid, dset_name); } -static bool +static hbool_t rm_ds_ctg_i(hid_t fid, const char *dset_name, hbool_t H5_ATTR_UNUSED write_data) { return remove_from_file_path(fid, dset_name); } -bool +hbool_t ds_ctg_i(hid_t fid, const char *dset_name, hbool_t write_data) { int *wdata = NULL; @@ -1525,7 +1525,7 @@ ds_ctg_i(hid_t fid, const char *dset_name, hbool_t write_data) * *------------------------------------------------------------------------- */ -bool +hbool_t vrfy_ds_ctg_i(hid_t fid, const char *dset_name, hbool_t write_data) { int *rdata = NULL; @@ -1693,20 +1693,20 @@ vrfy_ds_ctg_i(hid_t fid, const char *dset_name, hbool_t write_data) * *------------------------------------------------------------------------- */ -static bool +static hbool_t missing_ds_chk_i(hid_t fid, const char *dset_name, hbool_t H5_ATTR_UNUSED write_data) { return file_has_no_path(fid, dset_name); } -static bool +static hbool_t rm_ds_chk_i(hid_t fid, const char *dset_name, hbool_t H5_ATTR_UNUSED write_data) { return remove_from_file_path(fid, dset_name); } -bool +hbool_t ds_chk_i(hid_t fid, const char *dset_name, hbool_t write_data) { int *wdata = NULL; @@ -1808,7 +1808,7 @@ ds_chk_i(hid_t fid, const char *dset_name, hbool_t write_data) * *------------------------------------------------------------------------- */ -bool +hbool_t vrfy_ds_chk_i(hid_t fid, const char *dset_name, hbool_t write_data) { int *rdata = NULL; @@ -1983,20 +1983,20 @@ vrfy_ds_chk_i(hid_t fid, const char *dset_name, hbool_t write_data) * *------------------------------------------------------------------------- */ -static bool +static hbool_t missing_ds_cpt_i(hid_t fid, const char *dset_name, hbool_t H5_ATTR_UNUSED write_data) { return file_has_no_path(fid, dset_name); } -static bool +static hbool_t rm_ds_cpt_i(hid_t fid, const char *dset_name, hbool_t H5_ATTR_UNUSED write_data) { return remove_from_file_path(fid, dset_name); } -bool +hbool_t ds_cpt_i(hid_t fid, const char *dset_name, hbool_t write_data) { int *wdata = NULL; @@ -2099,7 +2099,7 @@ ds_cpt_i(hid_t fid, const char *dset_name, hbool_t write_data) * *------------------------------------------------------------------------- */ -bool +hbool_t vrfy_ds_cpt_i(hid_t fid, const char *dset_name, hbool_t write_data) { int *rdata = NULL; @@ -2262,20 +2262,20 @@ vrfy_ds_cpt_i(hid_t fid, const char *dset_name, hbool_t write_data) * *------------------------------------------------------------------------- */ -static bool +static hbool_t missing_ds_ctg_v(hid_t fid, const char *dset_name, hbool_t H5_ATTR_UNUSED write_data) { return file_has_no_path(fid, dset_name); } -static bool +static hbool_t rm_ds_ctg_v(hid_t fid, const char *dset_name, hbool_t H5_ATTR_UNUSED write_data) { return remove_from_file_path(fid, dset_name); } -bool +hbool_t ds_ctg_v(hid_t fid, const char *dset_name, hbool_t write_data) { hid_t dsid = -1; @@ -2400,7 +2400,7 @@ ds_ctg_v(hid_t fid, const char *dset_name, hbool_t write_data) * *------------------------------------------------------------------------- */ -bool +hbool_t vrfy_ds_ctg_v(hid_t fid, const char *dset_name, hbool_t write_data) { hid_t dsid = -1; @@ -2601,7 +2601,7 @@ vrfy_ds_ctg_v(hid_t fid, const char *dset_name, hbool_t write_data) * Return `true` if the selector was valid, `false` if it was not. */ -static bool +static hbool_t create_or_validate_selection(hid_t fid, const char *full_path, int selector, zoo_config_t config, phase_t phase, bool *okp) { @@ -2776,7 +2776,7 @@ out: *------------------------------------------------------------------------- */ -bool +hbool_t create_zoo(hid_t fid, const char *base_path, struct timespec *lastmsgtime, zoo_config_t config) { @@ -2804,7 +2804,7 @@ create_zoo(hid_t fid, const char *base_path, struct timespec *lastmsgtime, *------------------------------------------------------------------------- */ -bool +hbool_t validate_zoo(hid_t fid, const char *base_path, struct timespec *lastmsgtime, zoo_config_t config) { @@ -2813,7 +2813,7 @@ validate_zoo(hid_t fid, const char *base_path, struct timespec *lastmsgtime, return tend_zoo(fid, base_path, lastmsgtime, config, phase, NELMTS(phase)); } -bool +hbool_t delete_zoo(hid_t fid, const char *base_path, struct timespec *lastmsgtime, zoo_config_t config) { @@ -2822,7 +2822,7 @@ delete_zoo(hid_t fid, const char *base_path, struct timespec *lastmsgtime, return tend_zoo(fid, base_path, lastmsgtime, config, phase, NELMTS(phase)); } -bool +hbool_t validate_deleted_zoo(hid_t fid, const char *base_path, struct timespec *lastmsgtime, zoo_config_t config) { |