255. Querying the Size of a File


Up: File Manipulation Next: Querying File Parameters Previous: Preallocating Space for a File

MPI_FILE_GET_SIZE(fh, size)
IN fhfile handle (handle)
OUT sizesize of the file in bytes (integer)

int MPI_File_get_size(MPI_File fh, MPI_Offset *size)
MPI_FILE_GET_SIZE(FH, SIZE, IERROR)
INTEGER FH, IERROR
INTEGER(KIND=MPI_OFFSET_KIND) SIZE
{ MPI::Offset MPI::File::Get_size() const (binding deprecated, see Section Deprecated since MPI-2.2 ) }

MPI_FILE_GET_SIZE returns, in size, the current size in bytes of the file associated with the file handle fh. As far as consistency semantics are concerned, MPI_FILE_GET_SIZE is a data access operation (see Section File Consistency , page File Consistency ).



Up: File Manipulation Next: Querying File Parameters Previous: Preallocating Space for a File


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

(Unofficial) MPI-2.2 of September 4, 2009
HTML Generated on September 10, 2009