1
1
openmpi/ompi/mca/fs/ime/fs_ime_file_close.c
Sylvain Didelot 01ae0c22b8 fs/ime: fix compilation errors due to missing header inclusion
OpenMPI doesn't compile anymore with IME because the header
file "ompi/mca/fs/base/base.h" needs to be include in every
file where mca_fs_base_get_mpi_err() is used.

Signed-off-by: Sylvain Didelot <sdidelot@ddn.com>
2020-01-22 17:56:55 +01:00

43 строки
814 B
C

/*
* Copyright (c) 2018 DataDirect Networks. All rights reserved.
* $COPYRIGHT$
*
* Additional copyrights may follow
*
* $HEADER$
*/
#include "ime_native.h"
#include "ompi_config.h"
#include "fs_ime.h"
#include "mpi.h"
#include "ompi/constants.h"
#include "ompi/mca/fs/base/base.h"
#include "ompi/mca/fs/fs.h"
/*
* file_close_ime
*
* Function: - closes a new file
* Accepts: - file handle
* Returns: - Success if file closed
*/
int mca_fs_ime_file_close (ompio_file_t *fh)
{
int ret;
fh->f_comm->c_coll->coll_barrier (fh->f_comm,
fh->f_comm->c_coll->coll_barrier_module);
/* reset errno */
errno = 0;
ret = ime_native_close(fh->fd);
if (ret != 0) {
return mca_fs_ime_get_mpi_err(errno);
}
return OMPI_SUCCESS;
}