00001
00002
00003
00004
00005
00006
00007
00008 #ifndef AD_TESTFS_INCLUDE
00009 #define AD_TESTFS_INCLUDE
00010
00011 #include <unistd.h>
00012 #include <sys/types.h>
00013 #include <sys/uio.h>
00014 #include <fcntl.h>
00015 #include "adio.h"
00016
00017 void ADIOI_TESTFS_Open(ADIO_File fd, int *error_code);
00018 void ADIOI_TESTFS_Close(ADIO_File fd, int *error_code);
00019 void ADIOI_TESTFS_ReadContig(ADIO_File fd, void *buf, int count,
00020 MPI_Datatype datatype, int file_ptr_type,
00021 ADIO_Offset offset, ADIO_Status *status, int
00022 *error_code);
00023 void ADIOI_TESTFS_WriteContig(ADIO_File fd, void *buf, int count,
00024 MPI_Datatype datatype, int file_ptr_type,
00025 ADIO_Offset offset, ADIO_Status *status, int
00026 *error_code);
00027 void ADIOI_TESTFS_IwriteContig(ADIO_File fd, void *buf, int count,
00028 MPI_Datatype datatype, int file_ptr_type,
00029 ADIO_Offset offset, ADIO_Request *request, int
00030 *error_code);
00031 void ADIOI_TESTFS_IreadContig(ADIO_File fd, void *buf, int count,
00032 MPI_Datatype datatype, int file_ptr_type,
00033 ADIO_Offset offset, ADIO_Request *request, int
00034 *error_code);
00035 int ADIOI_TESTFS_ReadDone(ADIO_Request *request, ADIO_Status *status, int
00036 *error_code);
00037 int ADIOI_TESTFS_WriteDone(ADIO_Request *request, ADIO_Status *status, int
00038 *error_code);
00039 void ADIOI_TESTFS_ReadComplete(ADIO_Request *request, ADIO_Status *status, int
00040 *error_code);
00041 void ADIOI_TESTFS_WriteComplete(ADIO_Request *request, ADIO_Status *status,
00042 int *error_code);
00043 void ADIOI_TESTFS_Fcntl(ADIO_File fd, int flag, ADIO_Fcntl_t *fcntl_struct,
00044 int *error_code);
00045 void ADIOI_TESTFS_WriteStrided(ADIO_File fd, void *buf, int count,
00046 MPI_Datatype datatype, int file_ptr_type,
00047 ADIO_Offset offset, ADIO_Status *status,
00048 int *error_code);
00049 void ADIOI_TESTFS_ReadStrided(ADIO_File fd, void *buf, int count,
00050 MPI_Datatype datatype, int file_ptr_type,
00051 ADIO_Offset offset, ADIO_Status *status, int
00052 *error_code);
00053 void ADIOI_TESTFS_WriteStridedColl(ADIO_File fd, void *buf, int count,
00054 MPI_Datatype datatype, int file_ptr_type,
00055 ADIO_Offset offset, ADIO_Status *status, int
00056 *error_code);
00057 void ADIOI_TESTFS_ReadStridedColl(ADIO_File fd, void *buf, int count,
00058 MPI_Datatype datatype, int file_ptr_type,
00059 ADIO_Offset offset, ADIO_Status *status, int
00060 *error_code);
00061 void ADIOI_TESTFS_IreadStrided(ADIO_File fd, void *buf, int count,
00062 MPI_Datatype datatype, int file_ptr_type,
00063 ADIO_Offset offset, ADIO_Request *request, int
00064 *error_code);
00065 void ADIOI_TESTFS_IwriteStrided(ADIO_File fd, void *buf, int count,
00066 MPI_Datatype datatype, int file_ptr_type,
00067 ADIO_Offset offset, ADIO_Request *request, int
00068 *error_code);
00069 void ADIOI_TESTFS_Flush(ADIO_File fd, int *error_code);
00070 void ADIOI_TESTFS_Resize(ADIO_File fd, ADIO_Offset size, int *error_code);
00071 ADIO_Offset ADIOI_TESTFS_SeekIndividual(ADIO_File fd, ADIO_Offset offset,
00072 int whence, int *error_code);
00073 void ADIOI_TESTFS_SetInfo(ADIO_File fd, MPI_Info users_info, int *error_code);
00074 void ADIOI_TESTFS_Get_shared_fp(ADIO_File fd, int size,
00075 ADIO_Offset *shared_fp,
00076 int *error_code);
00077 void ADIOI_TESTFS_Set_shared_fp(ADIO_File fd, ADIO_Offset offset,
00078 int *error_code);
00079 void ADIOI_TESTFS_Delete(char *filename, int *error_code);
00080
00081 #endif
00082
00083
00084
00085