| version 1.2, 2000/08/21 08:31:36 |
version 1.10, 2018/03/29 01:32:53 |
|
|
| * shall be made on your publication or presentation in any form of the |
* shall be made on your publication or presentation in any form of the |
| * results obtained by use of the SOFTWARE. |
* results obtained by use of the SOFTWARE. |
| * (4) In the event that you modify the SOFTWARE, you shall notify FLL by |
* (4) In the event that you modify the SOFTWARE, you shall notify FLL by |
| * e-mail at risa-admin@flab.fujitsu.co.jp of the detailed specification |
* e-mail at risa-admin@sec.flab.fujitsu.co.jp of the detailed specification |
| * for such modification or the source code of the modified part of the |
* for such modification or the source code of the modified part of the |
| * SOFTWARE. |
* SOFTWARE. |
| * |
* |
|
|
| * 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.1.1.1 1999/12/03 07:39:11 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 *); |