00001
00002
00003
00004
00005
00006
00007
00008 #include "ad_sfs.h"
00009
00010 void ADIOI_SFS_Flush(ADIO_File fd, int *error_code)
00011 {
00012 #ifndef PRINT_ERR_MSG
00013 static char myname[] = "ADIOI_SFS_FLUSH";
00014 #endif
00015
00016
00017 #ifdef MPICH2
00018 *error_code = MPIR_Err_create_code(MPI_SUCCESS, MPIR_ERR_RECOVERABLE, myname, __LINE__, MPI_ERR_IO, "**io",
00019 "**io %s", strerror(errno));
00020 #elif defined(PRINT_ERR_MSG)
00021 *error_code = MPI_ERR_UNKNOWN;
00022 #else
00023 *error_code = MPIR_Err_setmsg(MPI_ERR_UNSUPPORTED_OPERATION, 1,
00024 myname, (char *) 0, (char *) 0);
00025 ADIOI_Error(fd, *error_code, myname);
00026 #endif
00027 }