Lines Matching defs:totalbytesread
42 static char *pread_buf_and_check(int fd, const struct iovec *iov, int iovcnt, ssize_t *totalbytesread, off_t *offset)
49 *totalbytesread = VFS_ERROR;
62 *totalbytesread = 0;
73 *totalbytesread = VFS_ERROR;
77 *totalbytesread = (offset == NULL) ? read(fd, buf, buflen)
79 if ((*totalbytesread == VFS_ERROR) || (*totalbytesread == 0)) {
98 ssize_t totalbytesread = 0;
101 buf = pread_buf_and_check(fd, iov, iovcnt, &totalbytesread, offset);
103 return totalbytesread;
107 bytesleft = totalbytesread;
141 return totalbytesread - bytesleft;