version 1.3, 2000/08/22 05:04:15 |
version 1.10, 2018/03/29 01:32:53 |
|
|
* DEVELOPER SHALL HAVE NO LIABILITY IN CONNECTION WITH THE USE, |
* DEVELOPER SHALL HAVE NO LIABILITY IN CONNECTION WITH THE USE, |
* PERFORMANCE OR NON-PERFORMANCE OF THE SOFTWARE. |
* PERFORMANCE OR NON-PERFORMANCE OF THE SOFTWARE. |
* |
* |
* $OpenXM: OpenXM_contrib2/asir2000/include/wsio.h,v 1.2 2000/08/21 08:31:36 noro Exp $ |
* $OpenXM: OpenXM_contrib2/asir2000/include/wsio.h,v 1.9 2015/08/14 13:51:55 fujimoto Exp $ |
*/ |
*/ |
#ifndef WSIO_H |
#ifndef WSIO_H |
#define WSIO_H |
#define WSIO_H |
#if defined(VISUAL) |
#if defined(VISUAL) || defined(__MINGW32__) |
#include <winsock.h> |
#include <winsock2.h> |
#elif MPI |
#elif defined(MPI) |
#include <sys/types.h> |
#include <sys/types.h> |
#include <mpi.h> |
#include <mpi.h> |
#endif |
#endif |
|
|
#if MPI |
#if defined(MPI) |
#define WSIO_STRING_LENGTH (1048576) /* Default size of buffer */ |
#define WSIO_STRING_LENGTH (1048576) /* Default size of buffer */ |
#else |
#else |
#define WSIO_STRING_LENGTH (16384) /* Default size of buffer */ |
#define WSIO_STRING_LENGTH (16384) /* Default size of buffer */ |
#endif |
#endif |
|
|
#define WSIO_BUFSIZ WSIO_STRING_LENGTH |
#define WSIO_BUFSIZ WSIO_STRING_LENGTH |
|
|
typedef struct |
typedef struct |
{ |
{ |
FILE fp; |
FILE fp; |
int fildes; |
int fildes; |
int p; |
int p; |
int read_flag; |
int read_flag; |
int buf_size; |
int buf_size; |
char* buf; |
char* buf; |
int max_buf_size; |
int max_buf_size; |
int eof; |
int eof; |
int error; |
int error; |
}STREAM; |
}STREAM; |
|
|
STREAM *WSIO_open(int,char *); |
STREAM *WSIO_open(int,char *); |
int cread (char *, unsigned int, int, STREAM *); |
int cread (char *, unsigned int, int, STREAM *); |