[Libsysio-commit] HEAD: libsysio/dev/stdfd stdfd.c
Brought to you by:
lward
From: Ruth K. <rk...@us...> - 2008-10-15 22:01:09
|
Update of /cvsroot/libsysio/libsysio/dev/stdfd In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv25646/dev/stdfd Modified Files: stdfd.c Log Message: Removing obsolete code related to cplant yod, lustre hack, and sockets driver. Index: stdfd.c =================================================================== RCS file: /cvsroot/libsysio/libsysio/dev/stdfd/stdfd.c,v retrieving revision 1.16 retrieving revision 1.17 diff -u -w -b -B -p -r1.16 -r1.17 --- stdfd.c 11 Jul 2008 18:23:56 -0000 1.16 +++ stdfd.c 15 Oct 2008 22:01:01 -0000 1.17 @@ -62,15 +62,6 @@ #include "stdfd.h" -#ifdef CPLANT_YOD -#include <sys/statfs.h> -#include "cplant-yod.h" -#define dowrite(f, b, n) write_yod(f, b, n) -#define doread(f, b, n) read_yod(f, b, n) -#else -#define dowrite(f, b, n) syscall(SYSIO_SYS_write, f, b, n) -#define doread(f, b, n) syscall(SYSIO_SYS_read, f, b, n) -#endif /* * Pre-opened standard file descriptors driver. @@ -164,7 +155,7 @@ stdfd_read_simple(void *buf, int fd = SYSIO_MINOR_DEV(ino->i_stbuf.st_rdev); int cc; - cc = doread(fd, buf, nbytes); + cc = syscall(SYSIO_SYS_read, fd, buf, nbytes); if (cc < 0) cc = -errno; return cc; @@ -186,7 +177,7 @@ stdfd_write_simple(const void *buf, int fd = SYSIO_MINOR_DEV(ino->i_stbuf.st_rdev); int cc; - cc = dowrite(fd, buf, nbytes); + cc = syscall(SYSIO_SYS_write, fd, buf, nbytes); if (cc < 0) cc = -errno; return cc; |