15.2.7. Querying File Parameters

PreviousUpNext
Up: File Manipulation Next: File Info Previous: Querying the Size of a File

MPI_FILE_GET_GROUP(fh, group)
IN fhfile handle (handle)
OUT groupgroup that opened the file (handle)
C binding
int MPI_File_get_group(MPI_File fh, MPI_Group *group)
Fortran 2008 binding
MPI_File_get_group(fh, group, ierror)

TYPE(MPI_File), INTENT(IN) :: fh
TYPE(MPI_Group), INTENT(OUT) :: group
INTEGER, OPTIONAL, INTENT(OUT) :: ierror
Fortran binding
MPI_FILE_GET_GROUP(FH, GROUP, IERROR)

INTEGER FH, GROUP, IERROR

MPI_FILE_GET_GROUP returns a duplicate of the group of the communicator used to open the file associated with fh. The group is returned in group. The user is responsible for freeing group.

MPI_FILE_GET_AMODE(fh, amode)
IN fhfile handle (handle)
OUT amodefile access mode used to open the file (integer)
C binding
int MPI_File_get_amode(MPI_File fh, int *amode)
Fortran 2008 binding
MPI_File_get_amode(fh, amode, ierror)

TYPE(MPI_File), INTENT(IN) :: fh
INTEGER, INTENT(OUT) :: amode
INTEGER, OPTIONAL, INTENT(OUT) :: ierror
Fortran binding
MPI_FILE_GET_AMODE(FH, AMODE, IERROR)

INTEGER FH, AMODE, IERROR

MPI_FILE_GET_AMODE returns, in amode, the access mode of the file associated with fh.


Example In Fortran 77, decoding an amode bit vector will require a routine such as the following:

Image file

This routine could be called successively to decode amode, one bit at a time. For example, the following code fragment would check for MPI_MODE_RDONLY.

Image file


PreviousUpNext
Up: File Manipulation Next: File Info Previous: Querying the Size of a File


Return to MPI-4.1 Standard Index
Return to MPI Forum Home Page

(Unofficial) MPI-4.1 of November 2, 2023
HTML Generated on November 19, 2023