Lines Matching refs:iov
41 print_iov(const struct iovec *iov) in print_iov() argument
44 unsigned char *buf = iov->iov_base; in print_iov()
47 for (i = 0; i < iov->iov_len; ++i) in print_iov()
49 printf("\", iov_len=%u}", (unsigned) iov->iov_len); in print_iov()
53 print_iovec(const struct iovec *iov, unsigned int cnt) in print_iovec() argument
60 print_iov(&iov[i]); in print_iovec()
70 TAIL_ALLOC_OBJECT_CONST_PTR(struct iovec, iov); in main()
71 iov->iov_base = buf; in main()
72 iov->iov_len = LEN; in main()
78 if (preadv(0, iov, 1, offset) != LEN) in main()
81 print_iovec(iov, 1); in main()
84 if (preadv(0, iov, 1, -1) != -1) in main()
87 "-1 EINVAL (%m)\n", iov->iov_base, iov->iov_len); in main()
93 if (preadv(0, iov, 0, -3) != -1) in main()