root/ompi/mca/io/romio321/romio/adio/ad_ufs/ad_ufs.h

/* [<][>][^][v][top][bottom][index][help] */

INCLUDED FROM


   1 /* -*- Mode: C; c-basic-offset:4 ; indent-tabs-mode:nil ; -*- */
   2 /* 
   3  *   Copyright (C) 1997 University of Chicago. 
   4  *   See COPYRIGHT notice in top-level directory.
   5  */
   6 
   7 #ifndef AD_UNIX_INCLUDE
   8 #define AD_UNIX_INCLUDE
   9 
  10 #include "adio.h"
  11 #include <unistd.h>
  12 #include <sys/types.h>
  13 #include <fcntl.h>
  14 
  15 #ifdef HAVE_SIGNAL_H
  16 #include <signal.h>
  17 #endif
  18 #ifdef HAVE_SYS_TYPES_H
  19 #include <sys/types.h>
  20 #endif
  21 
  22 #ifdef HAVE_AIO_LITE_H
  23 #include <aio-lite.h>
  24 #else
  25  #ifdef  HAVE_AIO_H
  26  #include <aio.h>
  27  #endif
  28  #ifdef HAVE_SYS_AIO_H
  29  #include <sys/aio.h>
  30  #endif
  31 #endif
  32 
  33 /* Workaround for incomplete set of definitions if __REDIRECT is not 
  34    defined and large file support is used in aio.h */
  35 #if !defined(__REDIRECT) && defined(__USE_FILE_OFFSET64)
  36 #define aiocb aiocb64
  37 #endif
  38 
  39 int ADIOI_UFS_aio(ADIO_File fd, void *buf, int len, ADIO_Offset offset,
  40                   int wr, void *handle);
  41 
  42 void ADIOI_UFS_Open(ADIO_File fd, int *error_code);
  43 void ADIOI_UFS_IwriteContig(ADIO_File fd, void *buf, int count, 
  44                       MPI_Datatype datatype, int file_ptr_type,
  45                       ADIO_Offset offset, ADIO_Request *request, int
  46                       *error_code);   
  47 void ADIOI_UFS_IreadContig(ADIO_File fd, void *buf, int count, 
  48                       MPI_Datatype datatype, int file_ptr_type,
  49                       ADIO_Offset offset, ADIO_Request *request, int
  50                       *error_code);   
  51 int ADIOI_UFS_ReadDone(ADIO_Request *request, ADIO_Status *status, int
  52                        *error_code);
  53 int ADIOI_UFS_WriteDone(ADIO_Request *request, ADIO_Status *status, int
  54                        *error_code);
  55 void ADIOI_UFS_ReadComplete(ADIO_Request *request, ADIO_Status *status, int
  56                        *error_code); 
  57 void ADIOI_UFS_WriteComplete(ADIO_Request *request, ADIO_Status *status,
  58                         int *error_code); 
  59 void ADIOI_UFS_Fcntl(ADIO_File fd, int flag, ADIO_Fcntl_t *fcntl_struct, int
  60                 *error_code); 
  61 
  62 #endif

/* [<][>][^][v][top][bottom][index][help] */