Lines Matching refs:count
25 extern "C" ssize_t _kern_readv(int fd, off_t pos, const struct iovec *vecs, size_t count);
26 extern "C" ssize_t _kern_writev(int fd, off_t pos, const struct iovec *vecs, size_t count);
34 prepare_iovecs(const struct fssh_iovec *vecs, int count,
37 if (count < 0 || count > kMaxIOVecs) {
42 for (int i = 0; i < count; i++) {
52 fssh_readv(int fd, const struct fssh_iovec *vector, int count)
55 if (!prepare_iovecs(vector, count, systemVecs))
64 return readv(fd, systemVecs, count);
66 return _kern_readv(fd, lseek(fd, 0, SEEK_CUR), systemVecs, count);
72 fssh_readv_pos(int fd, fssh_off_t pos, const struct fssh_iovec *vec, int count)
75 if (!prepare_iovecs(vec, count, systemVecs))
83 return readv_pos(fd, pos, systemVecs, count);
85 return _kern_readv(fd, pos, systemVecs, count);
91 fssh_writev(int fd, const struct fssh_iovec *vector, int count)
94 if (!prepare_iovecs(vector, count, systemVecs))
103 return writev(fd, systemVecs, count);
105 return _kern_writev(fd, lseek(fd, 0, SEEK_CUR), systemVecs, count);
111 fssh_writev_pos(int fd, fssh_off_t pos, const struct fssh_iovec *vec, int count)
114 if (!prepare_iovecs(vec, count, systemVecs))
122 return writev_pos(fd, pos, systemVecs, count);
124 return _kern_writev(fd, pos, systemVecs, count);