root/ompi/mca/io/romio321/romio/mpi2-other/info/info_create.c

/* [<][>][^][v][top][bottom][index][help] */

DEFINITIONS

This source file includes following definitions.
  1. MPI_Info_create

   1 /* -*- Mode: C; c-basic-offset:4 ; indent-tabs-mode:nil ; -*- */
   2 /* 
   3  *
   4  *   Copyright (C) 1997 University of Chicago. 
   5  *   See COPYRIGHT notice in top-level directory.
   6  */
   7 
   8 #include "mpioimpl.h"
   9 
  10 #ifdef HAVE_WEAK_SYMBOLS
  11 
  12 #if defined(HAVE_PRAGMA_WEAK)
  13 #pragma weak MPI_Info_create = PMPI_Info_create
  14 #elif defined(HAVE_PRAGMA_HP_SEC_DEF)
  15 #pragma _HP_SECONDARY_DEF PMPI_Info_create MPI_Info_create
  16 #elif defined(HAVE_PRAGMA_CRI_DUP)
  17 #pragma _CRI duplicate MPI_Info_create as PMPI_Info_create
  18 /* end of weak pragmas */
  19 #endif
  20 
  21 /* Include mapping from MPI->PMPI */
  22 #define MPIO_BUILD_PROFILING
  23 #include "mpioprof.h"
  24 #endif
  25 
  26 /*@
  27     MPI_Info_create - Creates a new info object
  28 
  29 Output Parameters:
  30 . info - info object (handle)
  31 
  32 .N fortran
  33 @*/
  34 int MPI_Info_create(MPI_Info *info)
  35 {
  36     int error_code;
  37 
  38     MPIR_MPIOInit(&error_code);
  39     if (error_code != MPI_SUCCESS) goto fn_exit;
  40 
  41     *info = (MPI_Info) ADIOI_Malloc(sizeof(struct MPIR_Info));
  42     (*info)->cookie = MPIR_INFO_COOKIE;
  43     (*info)->key = 0;
  44     (*info)->value = 0;
  45     (*info)->next = 0;
  46     /* this is the first structure in this linked list. it is 
  47        always kept empty. new (key,value) pairs are added after it. */
  48 
  49 fn_exit:
  50     return MPI_SUCCESS;
  51 }

/* [<][>][^][v][top][bottom][index][help] */