/* $OpenXM: OpenXM_contrib2/asir2000/include/wsio.h,v 1.1 1999/12/03 07:39:11 noro Exp $ */ #ifndef WSIO_H #define WSIO_H #if defined(VISUAL) #include #elif MPI #include #include #endif #if MPI #define WSIO_STRING_LENGTH (1048576) /* Default size of buffer */ #else #define WSIO_STRING_LENGTH (16384) /* Default size of buffer */ #endif #define WSIO_BUFSIZ WSIO_STRING_LENGTH typedef struct { FILE fp; int fildes; int p; int read_flag; int buf_size; char* buf; int max_buf_size; int eof; int error; }STREAM; STREAM *WSIO_open(int,char *); int cread (char *, unsigned int, int, STREAM *); int cwrite (char *, unsigned int, int, STREAM *); int cflush(STREAM *); #endif