"Fossies" - the Fresh Open Source Software Archive

Member "openmpi-4.1.2/ompi/mca/io/romio321/romio/adio/common/ad_delete.c" (24 Nov 2021, 523 Bytes) of package /linux/misc/openmpi-4.1.2.tar.bz2:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "ad_delete.c" see the Fossies "Dox" file reference documentation and the last Fossies "Diffs" side-by-side code changes report: 4.1.1_vs_5.0.0rc2.

    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 "adio.h"
    9 
   10 #ifdef HAVE_UNISTD_H
   11 #include <unistd.h>
   12 #endif
   13 
   14 void ADIOI_GEN_Delete(const char *filename, int *error_code)
   15 {
   16     int err;
   17     static char myname[] = "ADIOI_GEN_DELETE";
   18 
   19     err = unlink(filename);
   20     if (err == -1) {
   21     *error_code = ADIOI_Err_create_code(myname, filename, errno);
   22     }
   23     else *error_code = MPI_SUCCESS;
   24 }