00001
00002
00003
00004
00005
00006
00007
00008 #ifndef AD_XFS_INCLUDE
00009 #define AD_XFS_INCLUDE
00010
00011 #define _XOPEN_SOURCE 500
00012 #include <unistd.h>
00013 #include <sys/types.h>
00014 #include <fcntl.h>
00015 #include "adio.h"
00016
00017 #if defined(MPISGI)
00018 #include "xfs/xfs_fs.h"
00019 #ifndef __USE_LARGEFILE64
00020 #define __USE_LARGEFILE64
00021 #endif
00022 typedef struct aiocb64 aiocb64_t;
00023 #endif
00024
00025 void ADIOI_XFS_Open(ADIO_File fd, int *error_code);
00026 void ADIOI_XFS_Close(ADIO_File fd, int *error_code);
00027 void ADIOI_XFS_ReadContig(ADIO_File fd, void *buf, int count,
00028 MPI_Datatype datatype, int file_ptr_type,
00029 ADIO_Offset offset, ADIO_Status *status, int
00030 *error_code);
00031 void ADIOI_XFS_WriteContig(ADIO_File fd, void *buf, int count,
00032 MPI_Datatype datatype, int file_ptr_type,
00033 ADIO_Offset offset, ADIO_Status *status, int
00034 *error_code);
00035 void ADIOI_XFS_Fcntl(ADIO_File fd, int flag, ADIO_Fcntl_t *fcntl_struct, int
00036 *error_code);
00037 void ADIOI_XFS_Resize(ADIO_File fd, ADIO_Offset size, int *error_code);
00038 void ADIOI_XFS_SetInfo(ADIO_File fd, MPI_Info users_info, int *error_code);
00039
00040 #endif