diff options
author | Quincey Koziol <koziol@koziol.gov> | 2019-04-14 03:58:16 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@koziol.gov> | 2019-04-14 03:58:16 (GMT) |
commit | d7e1464058515d07b838741f65a77977224814de (patch) | |
tree | c25d0985895862053d6b9d1eb1fce4fa94d471e3 /fortran/src/H5Ff.c | |
parent | 4918d443bb2f8406c3be9882a7945853c84760f6 (diff) | |
download | hdf5-d7e1464058515d07b838741f65a77977224814de.zip hdf5-d7e1464058515d07b838741f65a77977224814de.tar.gz hdf5-d7e1464058515d07b838741f65a77977224814de.tar.bz2 |
Add C++, Java, and FORTRAN wrappers and tests for H5Fget_fileno
Diffstat (limited to 'fortran/src/H5Ff.c')
-rw-r--r-- | fortran/src/H5Ff.c | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/fortran/src/H5Ff.c b/fortran/src/H5Ff.c index a4e786e..12fb7ed 100644 --- a/fortran/src/H5Ff.c +++ b/fortran/src/H5Ff.c @@ -632,6 +632,40 @@ done: return ret_value; } +/****if* H5Ff/h5fget_fileno_c + * NAME + * h5fget_fileno_c + * PURPOSE + * Call H5Fget_fileno to get file number + * INPUTS + * file_id - file identifier + * OUTPUTS + * fileno - file number for open file + * RETURNS + * 0 on success, -1 on failure + * AUTHOR + * Quincey Koziol + * Saturday, April 13, 2019 + * SOURCE +*/ +int_f +h5fget_fileno_c(hid_t_f *file_id, int_f *fileno) +/******/ +{ + unsigned long fileno_c; + herr_t ret_value=0; /* Return value */ + + /* + * Call H5Fget_filesize function + */ + if ((ret_value = H5Fget_fileno((hid_t)*file_id, &fileno_c)) < 0) + HGOTO_DONE(FAIL); + *fileno = (hsize_t_f)fileno_c; + +done: + return ret_value; +} + /****if* H5Ff/h5fget_file_image_c * NAME * h5fget_file_image_c |