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