This source file includes following definitions.
- ADIOI_NTFS_Flush
   1 
   2 
   3 
   4 
   5 
   6 
   7 
   8 #include "ad_ntfs.h"
   9 
  10 void ADIOI_NTFS_Flush(ADIO_File fd, int *error_code)
  11 {
  12     int err;
  13     static char myname[] = "ADIOI_NTFS_Flush";
  14 
  15     err = (fd->access_mode & ADIO_RDONLY) ? TRUE :
  16         FlushFileBuffers(fd->fd_sys);
  17 
  18     
  19     if (err == FALSE)
  20     {
  21     char errMsg[ADIOI_NTFS_ERR_MSG_MAX];
  22         err = GetLastError();
  23     ADIOI_NTFS_Strerror(err, errMsg, ADIOI_NTFS_ERR_MSG_MAX);
  24         *error_code = MPIO_Err_create_code(MPI_SUCCESS, MPIR_ERR_RECOVERABLE,
  25                                            myname, __LINE__, MPI_ERR_IO,
  26                                            "**io",
  27                                            "**io %s", errMsg);
  28         return;
  29     }
  30     
  31     *error_code = MPI_SUCCESS;
  32 }