root/ompi/mca/io/romio321/romio/adio/ad_ntfs/ad_ntfs_close.c

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

DEFINITIONS

This source file includes following definitions.
  1. ADIOI_NTFS_Close

   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_ntfs.h"
   9 
  10 void ADIOI_NTFS_Close(ADIO_File fd, int *error_code)
  11 {
  12     int err;
  13     static char myname[] = "ADIOI_NTFS_Close";
  14 
  15     err = CloseHandle(fd->fd_sys);
  16     /* --BEGIN ERROR HANDLING-- */
  17     if (err == FALSE)
  18     {
  19     char errMsg[ADIOI_NTFS_ERR_MSG_MAX];
  20         err = GetLastError();
  21     ADIOI_NTFS_Strerror(err, errMsg, ADIOI_NTFS_ERR_MSG_MAX);
  22         *error_code = MPIO_Err_create_code(MPI_SUCCESS, MPIR_ERR_RECOVERABLE,
  23                                            myname, __LINE__, MPI_ERR_IO,
  24                                            "**io",
  25                                            "**io %s", errMsg);
  26         return;
  27     }
  28     /* --END ERROR HANDLING-- */
  29     *error_code = MPI_SUCCESS;
  30 }

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