[Libsysio-commit] HEAD: libsysio/src ioctx.c
Brought to you by:
lward
From: Lee W. <lw...@us...> - 2004-04-27 15:15:00
|
Update of /cvsroot/libsysio/libsysio/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21082 Modified Files: ioctx.c Log Message: From Cray SPR 728619; writev(3) only writes the last vector in its iovector. The iovec enumerator function forgot to bump the offset for the next write call. This would lead to the same position being written over and over. Of course, only the final iovec entry length was the remaining data. Index: ioctx.c =================================================================== RCS file: /cvsroot/libsysio/libsysio/src/ioctx.c,v retrieving revision 1.12 retrieving revision 1.13 diff -u -w -b -B -p -r1.12 -r1.13 --- ioctx.c 11 Mar 2004 14:40:52 -0000 1.12 +++ ioctx.c 27 Apr 2004 15:14:50 -0000 1.13 @@ -495,6 +495,7 @@ _sysio_enumerate_iovec(const struct iove return acc; return cc; } + off += cc; limit -= cc; remain = iov->iov_len - cc; cc += acc; |