Lines Matching refs:iov
42 static char *pread_buf_and_check(int fd, const struct iovec *iov, int iovcnt, ssize_t *totalbytesread, off_t *offset)
48 if ((iov == NULL) || (iovcnt > IOV_MAX)) {
54 if (SSIZE_MAX - buflen < iov[i].iov_len) {
58 buflen += iov[i].iov_len;
91 ssize_t vfs_readv(int fd, const struct iovec *iov, int iovcnt, off_t *offset)
101 buf = pread_buf_and_check(fd, iov, iovcnt, &totalbytesread, offset);
109 bytestoread = iov[i].iov_len;
115 ret = LOS_CopyFromKernel(iov[i].iov_base, bytesleft, curbuf, bytesleft);
120 ret = LOS_CopyFromKernel(iov[i].iov_base, bytestoread, curbuf, bytestoread);
135 if ((i == 0) && (ret == iov[i].iov_len)) {
144 ssize_t readv(int fd, const struct iovec *iov, int iovcnt)
146 return vfs_readv(fd, iov, iovcnt, NULL);