Lines Matching refs:fd
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);
52 fssh_readv(int fd, const struct fssh_iovec *vector, int count)
60 if (FSShell::restricted_file_restrict_io(fd, pos, length) < 0)
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)
79 if (FSShell::restricted_file_restrict_io(fd, pos, length) < 0)
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)
99 if (FSShell::restricted_file_restrict_io(fd, pos, length) < 0)
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)
118 if (FSShell::restricted_file_restrict_io(fd, pos, length) < 0)
122 return writev_pos(fd, pos, systemVecs, count);
124 return _kern_writev(fd, pos, systemVecs, count);