[Libsysio-commit] RedStorm: libsysio/dev/stdfd stdfd.c
Brought to you by:
lward
From: Lee W. <lw...@us...> - 2003-10-10 18:06:40
|
Update of /cvsroot/libsysio/libsysio/dev/stdfd In directory sc8-pr-cvs1:/tmp/cvs-serv5485/dev/stdfd Modified Files: Tag: RedStorm stdfd.c Log Message: Integrate RedStorm_merge branch. This incorporates changes required for the Red Storm cnos. Some things didn't make it: a) The mount call change. We *really* want the original libsysio version. Special, libsysio only, flags are unavailable without it. Semantic differences are possible without it. b) The Red Storm specific startup and initial mounts source. These should be moved into the Cray-specific C library -- With startup.c? One thing enhanced; The native driver doio routine from RedStorm_merge err'd if an iovec was more than one entry long. This will break things in the future. Added code, in doio, to loop over iovecs, calling the low-level transfer function (pread) for each element. Notes: The typedef and defined failure value for ioid_t need to be placed in a more accessible place for the Cray. User-level source should *not* include sysio.h ever. The async IO call prototypes (those that begin with an `i') should be prototyped somewhere outside libsysio. Look at ASCI Red in order to promote backward compatibility? The mount prototype in the catamount `C' lib includes should be altered to reflect ours. Prototypes for _sysio_start() and _sysio_shutdown() should be available externally for startup.c. It, too, shouldn't include sysio.h. Index: stdfd.c =================================================================== RCS file: /cvsroot/libsysio/libsysio/dev/stdfd/stdfd.c,v retrieving revision 1.2.6.1 retrieving revision 1.2.6.2 diff -u -w -b -B -p -r1.2.6.1 -r1.2.6.2 --- stdfd.c 26 Sep 2003 21:28:33 -0000 1.2.6.1 +++ stdfd.c 10 Oct 2003 18:06:36 -0000 1.2.6.2 @@ -58,6 +58,10 @@ #include "stdfd.h" +#ifdef REDSTORM +#include <catamount/syscall.h> /* ! in sys include? */ +#endif + #ifdef CPLANT_YOD #include <sys/statfs.h> #include "cplant-yod.h" |