version 1.9, 2015/08/14 13:51:55 |
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.8 2015/08/06 10:01:52 fujimoto 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 |
|
|
#endif |
#endif |
|
|
#if defined(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 *); |