Getting the Access Mode Associated with an Opened File
Function Syntax
MPI_File_get_amode(MPI_File fh, int *amode)
PMPI_File_get_amode(MPI_File fh, int *amode)
Parameters
Parameter |
Description |
Value Range |
Input/Output |
|---|---|---|---|
fh |
File (handle) |
Non-empty |
Input |
*amode |
Destination address for storing the access mode |
Non-empty |
Output |
Return Value
- Success: MPI_SUCCESS
- Failure: An error code is returned.
Error Code
Error Code |
Description |
|---|---|
MPI_ERR_FILE |
Invalid file handle |
Parent topic: Information Setting and Access