Blame src/mpi/romio/mpi-io/file_c2f.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_c2f = PMPI_File_c2f
Packit Service c5cf8c
#elif defined(HAVE_PRAGMA_HP_SEC_DEF)
Packit Service c5cf8c
#pragma _HP_SECONDARY_DEF PMPI_File_c2f MPI_File_c2f
Packit Service c5cf8c
#elif defined(HAVE_PRAGMA_CRI_DUP)
Packit Service c5cf8c
#pragma _CRI duplicate MPI_File_c2f as PMPI_File_c2f
Packit Service c5cf8c
/* end of weak pragmas */
Packit Service c5cf8c
#elif defined(HAVE_WEAK_ATTRIBUTE)
Packit Service c5cf8c
MPI_Fint MPI_File_c2f(MPI_File fh) __attribute__ ((weak, alias("PMPI_File_c2f")));
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_c2f - Translates a C file handle to a Fortran file handle
Packit Service c5cf8c
Packit Service c5cf8c
Input Parameters:
Packit Service c5cf8c
. fh - C file handle (handle)
Packit Service c5cf8c
Packit Service c5cf8c
Return Value:
Packit Service c5cf8c
  Fortran file handle (integer)
Packit Service c5cf8c
@*/
Packit Service c5cf8c
MPI_Fint MPI_File_c2f(MPI_File fh)
Packit Service c5cf8c
{
Packit Service c5cf8c
    return MPIO_File_c2f(fh);
Packit Service c5cf8c
}