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

File: [local] / OpenXM_contrib2 / asir2000 / include / wsio.h (download)

Revision 1.1, Fri Dec 3 07:39:11 1999 UTC (24 years, 5 months ago) by noro
Branch: MAIN

Initial revision

/* $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 <winsock.h>
#elif MPI
#include <sys/types.h>
#include <mpi.h>
#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