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_IOComplete
33 *
34 * This code handles two distinct cases. If ROMIO_HAVE_WORKING_AIO is
35 * not defined, then I/O was performed by a blocking call already. In
36 * that case all we need to do is optionally set the bytes in the
37 * status structure and 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 void ADIOI_GEN_IOComplete(ADIO_Request *request, ADIO_Status *status,
43 int *error_code)
44 {
45 return;
46
47 }