"Fossies" - the Fresh Open Source Software Archive

Member "openmpi-3.1.6/ompi/mca/io/romio314/romio/adio/common/ad_done.c" (18 Mar 2020, 1109 Bytes) of package /linux/misc/openmpi-3.1.6.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_done.c" see the Fossies "Dox" file reference documentation.

    1 /* -*- Mode: C; c-basic-offset:4 ; indent-tabs-mode:nil ; -*- */
    2 /*
    3  *
    4  *   Copyright (C) 2004 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 #ifdef HAVE_SIGNAL_H
   14 #include <signal.h>
   15 #endif
   16 #ifdef HAVE_SYS_TYPES_H
   17 #include <sys/types.h>
   18 #endif
   19 #ifdef HAVE_AIO_H
   20 #include <aio.h>
   21 #endif
   22 #ifdef HAVE_SYS_AIO_H
   23 #include <sys/aio.h>
   24 #endif
   25 
   26 /* Workaround for incomplete set of definitions if __REDIRECT is not
   27    defined and large file support is used in aio.h */
   28 #if !defined(__REDIRECT) && defined(__USE_FILE_OFFSET64)
   29 #define aiocb aiocb64
   30 #endif
   31 
   32 /* ADIOI_GEN_IODone
   33  *
   34  * This code handles two distinct cases.  If ROMIO_HAVE_WORKING_AIO is not
   35  * defined, then I/O was done as a blocking call earlier.  In that case
   36  * we have nothing much to do other than set the bytes transferred and
   37  * free the request.
   38  *
   39  * If ROMIO_HAVE_WORKING_AIO is defined, then we may need to wait for I/O
   40  * to complete.
   41  */
   42 int ADIOI_GEN_IODone(ADIO_Request *request, ADIO_Status *status,
   43              int *error_code)
   44 {
   45     return 0;
   46 
   47 }