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_Info_create = PMPI_Info_create
00014 #elif defined(HAVE_PRAGMA_HP_SEC_DEF)
00015 #pragma _HP_SECONDARY_DEF PMPI_Info_create MPI_Info_create
00016 #elif defined(HAVE_PRAGMA_CRI_DUP)
00017 #pragma _CRI duplicate MPI_Info_create as PMPI_Info_create
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 int MPI_Info_create(MPI_Info *info)
00035 {
00036     int error_code;
00037 
00038     MPIR_MPIOInit(&error_code);
00039     if (error_code != MPI_SUCCESS) goto fn_exit;
00040 
00041     *info = (MPI_Info) ADIOI_Malloc(sizeof(struct MPIR_Info));
00042     (*info)->cookie = MPIR_INFO_COOKIE;
00043     (*info)->key = 0;
00044     (*info)->value = 0;
00045     (*info)->next = 0;
00046     
00047 
00048 
00049 fn_exit:
00050     return MPI_SUCCESS;
00051 }