[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.1.1 (vendor branch), Fri Dec 3 07:39:11 1999 UTC (24 years, 5 months ago) by noro
Branch: NORO
CVS Tags: RELEASE_20000124, RELEASE_1_1_2, ASIR2000
Changes since 1.1: +0 -0 lines

Imported asir2000 as OpenXM_contrib2/asir2000.

/* $OpenXM: OpenXM_contrib2/asir2000/include/wsio.h,v 1.1.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