Lines Matching defs:bytes_read
236 register long bytes_read;
246 while ((bytes_read = _FSTransRead(svr->trans_conn, data, (int) size))
249 if (bytes_read > 0) {
250 size -= bytes_read;
251 data += bytes_read;
257 else if (bytes_read == 0) {
261 } else { /* bytes_read is less than 0; presumably -1 */
281 register long bytes_read;
299 while ((bytes_read = readv(svr->trans_conn->fd, iov, 2)) != size) {
301 if (bytes_read > 0) {
302 size -= bytes_read;
303 if (iov[0].iov_len < bytes_read) {
304 int pad_bytes_read = bytes_read - iov[0].iov_len;
310 iov[0].iov_len -= bytes_read;
311 iov[0].iov_base = (char *)iov[0].iov_base + bytes_read;
318 else if (bytes_read == 0) {
322 } else { /* bytes_read is less than 0; presumably -1 */
608 register long bytes_read = (n > SCRATCHSIZE) ? SCRATCHSIZE : n;
610 _FSRead(svr, buf, bytes_read);
611 n -= bytes_read;