[BACK]Return to wsio.h CVS log [TXT][DIR] Up to [local] / OpenXM_contrib2 / asir2000 / include

Annotation of OpenXM_contrib2/asir2000/include/wsio.h, Revision 1.1.1.1

1.1       noro        1: /* $OpenXM: OpenXM/src/asir99/include/wsio.h,v 1.1.1.1 1999/11/10 08:12:30 noro Exp $ */
                      2: #ifndef WSIO_H
                      3: #define WSIO_H
                      4: #if defined(VISUAL)
                      5: #include <winsock.h>
                      6: #elif MPI
                      7: #include <sys/types.h>
                      8: #include <mpi.h>
                      9: #endif
                     10:
                     11: #if MPI
                     12: #define WSIO_STRING_LENGTH     (1048576)  /* Default size of buffer */
                     13: #else
                     14: #define WSIO_STRING_LENGTH     (16384)  /* Default size of buffer */
                     15: #endif
                     16:
                     17: #define        WSIO_BUFSIZ     WSIO_STRING_LENGTH
                     18:
                     19: typedef struct
                     20:        {
                     21:        FILE    fp;
                     22:        int             fildes;
                     23:        int             p;
                     24:        int             read_flag;
                     25:        int             buf_size;
                     26:        char*           buf;
                     27:        int             max_buf_size;
                     28:        int             eof;
                     29:        int             error;
                     30:        }STREAM;
                     31:
                     32: STREAM *WSIO_open(int,char *);
                     33: int cread (char *, unsigned int, int, STREAM *);
                     34: int cwrite (char *, unsigned int, int, STREAM *);
                     35: int cflush(STREAM *);
                     36:
                     37: #endif

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>