MPI_File_seek - Updates the individual file pointer
SYNOPSIS
C:
#include "mpi.h"
int MPI_File_seek(MPI_File fh, MPI_Offset offset, int whence)
Fortran:
INCLUDE "mpif.h" (or USE MPI)
INTEGER fh, whence, ierror
INTEGER(KIND=MPI_OFFSET_KIND) offset
CALL MPI_FILE_SEEK(fh, offset, whence, ierror)
DESCRIPTION
MPI_File_seek updates the individual file pointer
according to whence, which has the following possible
values:
* MPI_SEEK_SET: the pointer is set to offset.
* MPI_SEEK_CUR: the pointer is set to the current
pointer position plus offset.
* MPI_SEEK_END: the pointer is set to the end of file
plus offset.
The offset can be negative, which allows seeking
backwards. You must not seek to a negative position in the
view.
MPI_File_seek accepts the following arguments:
fh Specifies the file handle (handle)
offset Specifies the file offset (integer)
whence Specifies the update mode (state)
ierror Specifies the return code value for successful
completion, which is in MPI_SUCCESS.
MPI_SUCCESS is defined in the mpif.h file.
Notes for Fortran
All MPI objects (for example, MPI_Datatype, MPI_Comm,
MPI_File) are of type INTEGER.
MPI_File_open(3), MPI_IO(3)
Man(1) output converted with
man2html