version 1.11, 2003/03/07 03:12:28 |
version 1.12, 2003/03/07 06:39:57 |
|
|
* OF THE SOFTWARE HAS BEEN DEVELOPED BY A THIRD PARTY, THE THIRD PARTY |
* OF THE SOFTWARE HAS BEEN DEVELOPED BY A THIRD PARTY, THE THIRD PARTY |
* 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/io/io.c,v 1.10 2003/02/14 22:29:15 ohara Exp $ |
* $OpenXM: OpenXM_contrib2/asir2000/io/io.c,v 1.11 2003/03/07 03:12:28 noro Exp $ |
*/ |
*/ |
#include <stdio.h> |
#include <stdio.h> |
#include "ca.h" |
#include "ca.h" |
#include "parse.h" |
#include "parse.h" |
#if defined(VISUAL) || MPI |
#if defined(VISUAL) || defined(MPI) |
#include "wsio.h" |
#include "wsio.h" |
#endif |
#endif |
|
|
Line 141 int gen_fread (char *ptr,int size,int nitems,FILE *str |
|
Line 141 int gen_fread (char *ptr,int size,int nitems,FILE *str |
|
if ( _fileno(stream) < 0 ) |
if ( _fileno(stream) < 0 ) |
n = cread(ptr,size,nitems,(STREAM *)stream); |
n = cread(ptr,size,nitems,(STREAM *)stream); |
else |
else |
#elif MPI |
#elif defined(MPI) |
if ( (char)fileno(stream) < 0 ) |
if ( (char)fileno(stream) < 0 ) |
n = cread(ptr,size,nitems,(STREAM *)stream); |
n = cread(ptr,size,nitems,(STREAM *)stream); |
else |
else |
Line 175 int gen_fwrite (char *ptr,int size,int nitems,FILE *st |
|
Line 175 int gen_fwrite (char *ptr,int size,int nitems,FILE *st |
|
if ( _fileno(stream) < 0 ) |
if ( _fileno(stream) < 0 ) |
return cwrite(ptr,size,nitems,(STREAM *)stream); |
return cwrite(ptr,size,nitems,(STREAM *)stream); |
else |
else |
#elif MPI |
#elif defined(MPI) |
if ( (char)fileno(stream) < 0 ) |
if ( (char)fileno(stream) < 0 ) |
return cwrite(ptr,size,nitems,(STREAM *)stream); |
return cwrite(ptr,size,nitems,(STREAM *)stream); |
else |
else |