Blame src/mpi/romio/mpi-io/file_f2c.c

Packit Service c5cf8c
/* -*- Mode: C; c-basic-offset:4 ; indent-tabs-mode:nil ; -*- */
Packit Service c5cf8c
/*
Packit Service c5cf8c
 *
Packit Service c5cf8c
 *   Copyright (C) 1997 University of Chicago.
Packit Service c5cf8c
 *   See COPYRIGHT notice in top-level directory.
Packit Service c5cf8c
 */
Packit Service c5cf8c
Packit Service c5cf8c
#include "mpioimpl.h"
Packit Service c5cf8c
Packit Service c5cf8c
#ifdef HAVE_WEAK_SYMBOLS
Packit Service c5cf8c
Packit Service c5cf8c
#if defined(HAVE_PRAGMA_WEAK)
Packit Service c5cf8c
#pragma weak MPI_File_f2c = PMPI_File_f2c
Packit Service c5cf8c
#elif defined(HAVE_PRAGMA_HP_SEC_DEF)
Packit Service c5cf8c
#pragma _HP_SECONDARY_DEF PMPI_File_f2c MPI_File_f2c
Packit Service c5cf8c
#elif defined(HAVE_PRAGMA_CRI_DUP)
Packit Service c5cf8c
#pragma _CRI duplicate MPI_File_f2c as PMPI_File_f2c
Packit Service c5cf8c
/* end of weak pragmas */
Packit Service c5cf8c
#elif defined(HAVE_WEAK_ATTRIBUTE)
Packit Service c5cf8c
MPI_File MPI_File_f2c(MPI_Fint fh) __attribute__ ((weak, alias("PMPI_File_f2c")));
Packit Service c5cf8c
#endif
Packit Service c5cf8c
Packit Service c5cf8c
/* Include mapping from MPI->PMPI */
Packit Service c5cf8c
#define MPIO_BUILD_PROFILING
Packit Service c5cf8c
#include "mpioprof.h"
Packit Service c5cf8c
#endif
Packit Service c5cf8c
#include "adio_extern.h"
Packit Service c5cf8c
Packit Service c5cf8c
/*@
Packit Service c5cf8c
    MPI_File_f2c - Translates a Fortran file handle to a C file handle
Packit Service c5cf8c
Packit Service c5cf8c
Input Parameters:
Packit Service c5cf8c
. fh - Fortran file handle (integer)
Packit Service c5cf8c
Packit Service c5cf8c
Return Value:
Packit Service c5cf8c
  C file handle (handle)
Packit Service c5cf8c
@*/
Packit Service c5cf8c
MPI_File MPI_File_f2c(MPI_Fint fh)
Packit Service c5cf8c
{
Packit Service c5cf8c
    return MPIO_File_f2c(fh);
Packit Service c5cf8c
}