-/* --------------------------------
- * read from adouble file and write to socket. sendfile doesn't change
- * the file pointer position. */
-ssize_t ad_readfile(const struct adouble *ad, const int eid,
- const int sock, off_t off, const size_t len)
-{
- off_t cc;
- int fd;
-
- fd = ad_sendfile_init(ad, eid, &off, 0);
- cc = sys_sendfile(sock, fd, &off, len);
- return cc;
-}
-