version 1.9, 2001/10/09 01:36:20 |
version 1.10, 2003/02/14 22:29:15 |
|
|
* 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.8 2000/08/29 04:03:05 noro Exp $ |
* $OpenXM: OpenXM_contrib2/asir2000/io/io.c,v 1.9 2001/10/09 01:36:20 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 |