AMPI #952: update ROMIO to MPICH2-1.4.1p1
[charm.git] / src / libs / ck-libs / ampi / romio / adio / ad_bgl / ad_bgl.h
blob89d247b0df14e14df63eab817df29c3e7366573d
1 /* ---------------------------------------------------------------- */
2 /* (C)Copyright IBM Corp. 2007, 2008 */
3 /* ---------------------------------------------------------------- */
4 /**
5 * \file ad_bgl.h
6 * \brief ???
7 */
9 /* -*- Mode: C; c-basic-offset:4 ; -*- */
10 /*
11 * Copyright (C) 1997 University of Chicago.
12 * See COPYRIGHT notice in top-level directory.
15 #ifndef AD_BGL_INCLUDE
16 #define AD_BGL_INCLUDE
18 #include <unistd.h>
19 #include <stdlib.h>
20 #include <sys/types.h>
21 #include <fcntl.h>
22 #include "adio.h"
24 #ifdef HAVE_SIGNAL_H
25 #include <signal.h>
26 #endif
27 #ifdef HAVE_AIO_H
28 #include <aio.h>
29 #endif
31 #if 0
32 int ADIOI_BGL_aio(ADIO_File fd, void *buf, int len, ADIO_Offset offset,
33 int wr, void *handle);
34 #endif
36 void ADIOI_BGL_Open(ADIO_File fd, int *error_code);
38 void ADIOI_BGL_Close(ADIO_File fd, int *error_code);
40 void ADIOI_BGL_ReadContig(ADIO_File fd, void *buf, int count,
41 MPI_Datatype datatype, int file_ptr_type,
42 ADIO_Offset offset, ADIO_Status *status, int
43 *error_code);
44 void ADIOI_BGL_WriteContig(ADIO_File fd, void *buf, int count,
45 MPI_Datatype datatype, int file_ptr_type,
46 ADIO_Offset offset, ADIO_Status *status, int
47 *error_code);
48 #if 0
49 void ADIOI_BGL_IwriteContig(ADIO_File fd, void *buf, int count,
50 MPI_Datatype datatype, int file_ptr_type,
51 ADIO_Offset offset, ADIO_Request *request, int
52 *error_code);
53 void ADIOI_BGL_IreadContig(ADIO_File fd, void *buf, int count,
54 MPI_Datatype datatype, int file_ptr_type,
55 ADIO_Offset offset, ADIO_Request *request, int
56 *error_code);
57 int ADIOI_BGL_ReadDone(ADIO_Request *request, ADIO_Status *status, int
58 *error_code);
59 int ADIOI_BGL_WriteDone(ADIO_Request *request, ADIO_Status *status, int
60 *error_code);
61 void ADIOI_BGL_ReadComplete(ADIO_Request *request, ADIO_Status *status, int
62 *error_code);
63 void ADIOI_BGL_WriteComplete(ADIO_Request *request, ADIO_Status *status,
64 int *error_code);
65 #endif
66 void ADIOI_BGL_Fcntl(ADIO_File fd, int flag, ADIO_Fcntl_t *fcntl_struct, int
67 *error_code);
68 void ADIOI_BGL_SetInfo(ADIO_File fd, MPI_Info users_info, int *error_code);
70 void ADIOI_BGL_WriteStrided(ADIO_File fd, void *buf, int count,
71 MPI_Datatype datatype, int file_ptr_type,
72 ADIO_Offset offset, ADIO_Status *status, int
73 *error_code);
74 void ADIOI_BGL_ReadStrided(ADIO_File fd, void *buf, int count,
75 MPI_Datatype datatype, int file_ptr_type,
76 ADIO_Offset offset, ADIO_Status *status, int
77 *error_code);
79 void ADIOI_BGL_ReadStridedColl(ADIO_File fd, void *buf, int count,
80 MPI_Datatype datatype, int file_ptr_type,
81 ADIO_Offset offset, ADIO_Status *status, int
82 *error_code);
84 void ADIOI_BGL_WriteStridedColl(ADIO_File fd, void *buf, int count,
85 MPI_Datatype datatype, int file_ptr_type,
86 ADIO_Offset offset, ADIO_Status *status, int
87 *error_code);
89 void ADIOI_BGL_Get_shared_fp(ADIO_File fd, int size, ADIO_Offset *shared_fp, int *error_code);
90 void ADIOI_BGL_Set_shared_fp(ADIO_File fd, ADIO_Offset offset, int *error_code);
92 void ADIOI_BGL_Flush(ADIO_File fd, int *error_code);
94 #include "ad_bgl_tuning.h"
97 #endif