00001
00002
00003
00004
00005
00006
00007
00008 #include "mpioimpl.h"
00009 #include "adioi.h"
00010
00011 #ifdef HAVE_WEAK_SYMBOLS
00012
00013 #if defined(HAVE_PRAGMA_WEAK)
00014 #pragma weak MPI_File_get_position = PMPI_File_get_position
00015 #elif defined(HAVE_PRAGMA_HP_SEC_DEF)
00016 #pragma _HP_SECONDARY_DEF PMPI_File_get_position MPI_File_get_position
00017 #elif defined(HAVE_PRAGMA_CRI_DUP)
00018 #pragma _CRI duplicate MPI_File_get_position as PMPI_File_get_position
00019
00020 #endif
00021
00022
00023 #define MPIO_BUILD_PROFILING
00024 #include "mpioprof.h"
00025 #endif
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040 int MPI_File_get_position(MPI_File mpi_fh, MPI_Offset *offset)
00041 {
00042 int error_code;
00043 ADIO_File fh;
00044 static char myname[] = "MPI_FILE_GET_POSITION";
00045
00046 fh = MPIO_File_resolve(mpi_fh);
00047
00048
00049 MPIO_CHECK_FILE_HANDLE(fh, myname, error_code);
00050 MPIO_CHECK_NOT_SEQUENTIAL_MODE(fh, myname, error_code);
00051
00052
00053 ADIOI_Get_position(fh, offset);
00054
00055 fn_exit:
00056 return MPI_SUCCESS;
00057 }