Lines Matching refs:iov
453 struct iovec iov[2];
458 iov[0].iov_len = (int)size;
459 iov[0].iov_base = data;
466 iov[1].iov_len = padlength[size & 3];
467 iov[1].iov_base = pad;
468 size += iov[1].iov_len;
470 while ((bytes_read = ReadvFromServer (dpy->fd, iov, 2)) != size) {
474 if (iov[0].iov_len < bytes_read) {
475 iov[1].iov_len += iov[0].iov_len - bytes_read;
476 iov[1].iov_base =
477 (char *)iov[1].iov_base + bytes_read - iov[0].iov_len;
478 iov[0].iov_len = 0;
481 iov[0].iov_len -= bytes_read;
482 iov[0].iov_base = (char *)iov[0].iov_base + bytes_read;
515 struct iovec iov[3];
563 iov[i].iov_len = len; \
564 iov[i].iov_base = (pointer) + before; \
575 if ((len = WritevToServer(dpy->fd, iov, i)) >= 0) {
1717 int _XReadV (int fd, struct iovec *iov, int iovcnt)
1721 hdr.msg_iov = iov;
1731 int _XWriteV (int fd, struct iovec *iov, int iovcnt)
1735 hdr.msg_iov = iov;
1753 int _XReadV (int fd, struct iovec *iov, int iovcnt)
1759 for (i=0, total=0; i<iovcnt; i++, iov++) {
1760 len = iov->iov_len;
1761 base = iov->iov_base;