Lines Matching refs:iov
42 print_iov(const struct iovec *iov) in print_iov() argument
45 unsigned char *buf = iov->iov_base; in print_iov()
48 for (i = 0; i < iov->iov_len; ++i) { in print_iov()
53 i > LIM ? "..." : "", (unsigned) iov->iov_len); in print_iov()
57 print_iovec(const struct iovec *iov, unsigned int cnt, unsigned int size) in print_iovec() argument
60 printf("%p", iov); in print_iovec()
69 printf("... /* %p */", &iov[i]); in print_iovec()
76 print_iov(&iov[i]); in print_iovec()
93 struct iovec *iov = tail_alloc(sizeof(*iov) * LEN); in main() local
96 iov[i].iov_base = &buf[i]; in main()
97 iov[i].iov_len = LEN - i; in main()
104 written += iov[i].iov_len; in main()
105 if (pwritev(0, iov, i + 1, offset + i) != written) in main()
108 print_iovec(iov, i + 1, LEN); in main()
116 print_iovec(iov + i, n, LEN - i); in main()
117 rc = pwritev(0, iov + i, n, offset + LEN + i); in main()
122 iov->iov_base = iov + LEN * 2; in main()
123 rc = pwritev(0, iov, 1, -1); in main()
125 iov->iov_base, LEN, rc, errno2name()); in main()
127 iov += LEN; in main()
128 rc = pwritev(0, iov, 42, -2); in main()
130 iov, rc, errno2name()); in main()
136 rc = pwritev(0, iov, 0, -4); in main()