Determines the read/write or read-only status of a file
herr_t H5Fget_intent( hid_t file_id, unsigned *intent )
|IN: File identifier for a currently-open HDF5 file|
|OUT: Intended access mode flag as originally passed with H5F_OPEN|
Given the identifier of an open file,
file_id, H5F_GET_INTENT retrieves the “intended access mode” flag passed with H5F_OPEN when the file was opened.
The value of the flag is returned in
intent. Valid values are as follows:
|File was opened with read/write access.|
|File was opened with read-only access.|
|File was opened with read/write access for a single-writer/multiple-reader (SWMR) scenario. Note that the writer process must also open the file with the |
|File was opened with read-only access for a single-writer/multiple-reader (SWMR) scenario. Note that the reader process must also open the file with the |
The function will not return an error if
NULL; it will simply do nothing.
Returns a non-negative value if successful; otherwise returns a negative value.
|1.8.0||C function introduced in this release.|
|1.10.0||C function enhanced to work with SWMR functionality.|
--- Last Modified: December 20, 2018 | 01:51 PM