/* $Revision: 1.1.1.1 $ ** */ #include #include #include /* ** "Fake" writev for sites without it. */ int writev(fd, vp, vpcount) int fd; struct iovec *vp; int vpcount; { int count; for (count = 0; --vpcount >= 0; count += vp->iov_len, vp++) if (xwrite(fd, vp->iov_base, vp->iov_len) < 0) return -1; return count; }