00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011 #ifndef AD_PFS_INCLUDE
00012 #define AD_PFS_INCLUDE
00013
00014 #include <unistd.h>
00015 #include <sys/types.h>
00016 #include <fcntl.h>
00017 #include <nx.h>
00018 #include <sys/uio.h>
00019 #include "adio.h"
00020
00021 #ifdef tflops
00022 #define lseek eseek
00023 #define _gopen(n,m,i,p) open(n,m,p)
00024 #endif
00025
00026
00027 #ifndef M_ASYNC
00028 #define M_UNIX 0
00029 #define M_ASYNC 5
00030 #endif
00031
00032 void ADIOI_PFS_Open(ADIO_File fd, int *error_code);
00033 void ADIOI_PFS_ReadContig(ADIO_File fd, void *buf, int count,
00034 MPI_Datatype datatype, int file_ptr_type,
00035 ADIO_Offset offset, ADIO_Status *status, int
00036 *error_code);
00037 void ADIOI_PFS_WriteContig(ADIO_File fd, void *buf, int count,
00038 MPI_Datatype datatype, int file_ptr_type,
00039 ADIO_Offset offset, ADIO_Status *status, int
00040 *error_code);
00041 void ADIOI_PFS_IwriteContig(ADIO_File fd, void *buf, int count,
00042 MPI_Datatype datatype, int file_ptr_type,
00043 ADIO_Offset offset, ADIO_Request *request, int
00044 *error_code);
00045 void ADIOI_PFS_IreadContig(ADIO_File fd, void *buf, int count,
00046 MPI_Datatype datatype, int file_ptr_type,
00047 ADIO_Offset offset, ADIO_Request *request, int
00048 *error_code);
00049 int ADIOI_PFS_ReadDone(ADIO_Request *request, ADIO_Status *status, int
00050 *error_code);
00051 int ADIOI_PFS_WriteDone(ADIO_Request *request, ADIO_Status *status, int
00052 *error_code);
00053 void ADIOI_PFS_ReadComplete(ADIO_Request *request, ADIO_Status *status, int
00054 *error_code);
00055 void ADIOI_PFS_WriteComplete(ADIO_Request *request, ADIO_Status *status,
00056 int *error_code);
00057 void ADIOI_PFS_Fcntl(ADIO_File fd, int flag, ADIO_Fcntl_t *fcntl_struct, int
00058 *error_code);
00059 void ADIOI_PFS_Flush(ADIO_File fd, int *error_code);
00060 void ADIOI_PFS_SetInfo(ADIO_File fd, MPI_Info users_info, int *error_code);
00061
00062 #endif