00001
00002
00003
00004
00005
00006
00007 #ifndef AD_UNIX_INCLUDE
00008 #define AD_UNIX_INCLUDE
00009
00010 #include <unistd.h>
00011 #include <sys/types.h>
00012 #include <fcntl.h>
00013 #include "adio.h"
00014
00015 #ifdef HAVE_SIGNAL_H
00016 #include <signal.h>
00017 #endif
00018 #ifdef HAVE_SYS_TYPES_H
00019 #include <sys/types.h>
00020 #endif
00021 #ifdef HAVE_AIO_H
00022 #include <aio.h>
00023 #endif
00024 #ifdef HAVE_SYS_AIO_H
00025 #include <sys/aio.h>
00026 #endif
00027
00028
00029
00030 #if !defined(__REDIRECT) && defined(__USE_FILE_OFFSET64)
00031 #define aiocb aiocb64
00032 #endif
00033
00034 int ADIOI_UFS_aio(ADIO_File fd, void *buf, int len, ADIO_Offset offset,
00035 int wr, void *handle);
00036
00037 void ADIOI_UFS_Open(ADIO_File fd, int *error_code);
00038 void ADIOI_UFS_IwriteContig(ADIO_File fd, void *buf, int count,
00039 MPI_Datatype datatype, int file_ptr_type,
00040 ADIO_Offset offset, ADIO_Request *request, int
00041 *error_code);
00042 void ADIOI_UFS_IreadContig(ADIO_File fd, void *buf, int count,
00043 MPI_Datatype datatype, int file_ptr_type,
00044 ADIO_Offset offset, ADIO_Request *request, int
00045 *error_code);
00046 int ADIOI_UFS_ReadDone(ADIO_Request *request, ADIO_Status *status, int
00047 *error_code);
00048 int ADIOI_UFS_WriteDone(ADIO_Request *request, ADIO_Status *status, int
00049 *error_code);
00050 void ADIOI_UFS_ReadComplete(ADIO_Request *request, ADIO_Status *status, int
00051 *error_code);
00052 void ADIOI_UFS_WriteComplete(ADIO_Request *request, ADIO_Status *status,
00053 int *error_code);
00054 void ADIOI_UFS_Fcntl(ADIO_File fd, int flag, ADIO_Fcntl_t *fcntl_struct, int
00055 *error_code);
00056
00057 #endif