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
20 #ifdef HAVE_AIO_LITE_H
21 #include <aio-lite.h>
22 #else
23 #ifdef HAVE_AIO_H
24 #include <aio.h>
25 #endif
26 #ifdef HAVE_SYS_AIO_H
27 #include <sys/aio.h>
28 #endif
29 #endif
30
31 /* Workaround for incomplete set of definitions if __REDIRECT is not
32 defined and large file support is used in aio.h */
33 #if !defined(__REDIRECT) && defined(__USE_FILE_OFFSET64)
34 #define aiocb aiocb64
35 #endif
36
37 /* ADIOI_GEN_IODone
38 *
39 * This code handles two distinct cases. If ROMIO_HAVE_WORKING_AIO is not
40 * defined, then I/O was done as a blocking call earlier. In that case
41 * we have nothing much to do other than set the bytes transferred and
42 * free the request.
43 *
44 * If ROMIO_HAVE_WORKING_AIO is defined, then we may need to wait for I/O
45 * to complete.
46 */
47 int ADIOI_GEN_IODone(ADIO_Request *request, ADIO_Status *status,
48 int *error_code)
49 {
50 return 0;
51
52 }