root/ompi/mca/fs/pvfs2/fs_pvfs2_file_close.c

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

DEFINITIONS

This source file includes following definitions.
  1. mca_fs_pvfs2_file_close

   1 /*
   2  * Copyright (c) 2004-2005 The Trustees of Indiana University and Indiana
   3  *                         University Research and Technology
   4  *                         Corporation.  All rights reserved.
   5  * Copyright (c) 2004-2017 The University of Tennessee and The University
   6  *                         of Tennessee Research Foundation.  All rights
   7  *                         reserved.
   8  * Copyright (c) 2004-2005 High Performance Computing Center Stuttgart,
   9  *                         University of Stuttgart.  All rights reserved.
  10  * Copyright (c) 2004-2005 The Regents of the University of California.
  11  *                         All rights reserved.
  12  * Copyright (c) 2008-2011 University of Houston. All rights reserved.
  13  * Copyright (c) 2018      Research Organization for Information Science
  14  *                         and Technology (RIST). All rights reserved.
  15  * $COPYRIGHT$
  16  *
  17  * Additional copyrights may follow
  18  *
  19  * $HEADER$
  20  */
  21 
  22 /* This code is based on the PVFS2 ADIO module in ROMIO
  23  *   Copyright (C) 1997 University of Chicago.
  24  *   See COPYRIGHT notice in top-level directory.
  25  */
  26 
  27 #include "ompi_config.h"
  28 #include "fs_pvfs2.h"
  29 
  30 #include <fcntl.h>
  31 #include <unistd.h>
  32 #include "mpi.h"
  33 #include "ompi/constants.h"
  34 #include "ompi/mca/fs/fs.h"
  35 
  36 /*
  37  *      file_close_pvfs2
  38  *
  39  *      Function:       - closes a new file
  40  *      Accepts:        - file handle
  41  *      Returns:        - Success if file closed
  42  */
  43 int
  44 mca_fs_pvfs2_file_close (ompio_file_t *fh)
  45 {
  46     if (NULL != fh->f_fs_ptr) {
  47         free (fh->f_fs_ptr);
  48         fh->f_fs_ptr = NULL;
  49     }
  50     /*
  51     fh->f_comm->c_coll->coll_barrier (fh->f_comm,
  52                                      fh->f_comm->c_coll->coll_barrier_module);
  53     close (fh->fd);
  54     */
  55     return OMPI_SUCCESS;
  56 }

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