root/ompi/mca/io/romio321/romio/adio/ad_sfs/ad_sfs_flush.c

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

DEFINITIONS

This source file includes following definitions.
  1. ADIOI_SFS_Flush

   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 "ad_sfs.h"
   9 
  10 void ADIOI_SFS_Flush(ADIO_File fd, int *error_code)
  11 {
  12 #ifndef PRINT_ERR_MSG
  13     static char myname[] = "ADIOI_SFS_FLUSH";
  14 #endif
  15 
  16      /* there is no fsync on SX-4 */
  17 #ifdef MPICH
  18     *error_code = MPIR_Err_create_code(MPI_SUCCESS, MPIR_ERR_RECOVERABLE, myname, __LINE__, MPI_ERR_IO, "**io",
  19         "**io %s", strerror(errno));
  20 #elif defined(PRINT_ERR_MSG)
  21      *error_code = MPI_ERR_UNKNOWN; 
  22 #else /* MPICH-1 */
  23      *error_code = MPIR_Err_setmsg(MPI_ERR_UNSUPPORTED_OPERATION, 1,
  24                               myname, (char *) 0, (char *) 0);
  25      ADIOI_Error(fd, *error_code, myname);          
  26 #endif
  27 }

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