Lines Matching refs:bytes_read
306 register long bytes_read;
311 while ((bytes_read = ReadFromServer(dpy->fd, data, (int)size))
314 if (bytes_read > 0) {
315 size -= bytes_read;
316 data += bytes_read;
327 else if (bytes_read == 0) {
333 else /* bytes_read is less than 0; presumably -1 */ {
452 register long bytes_read;
470 while ((bytes_read = ReadvFromServer (dpy->fd, iov, 2)) != size) {
472 if (bytes_read > 0) {
473 size -= bytes_read;
474 if (iov[0].iov_len < bytes_read) {
475 iov[1].iov_len += iov[0].iov_len - bytes_read;
477 (char *)iov[1].iov_base + bytes_read - iov[0].iov_len;
481 iov[0].iov_len -= bytes_read;
482 iov[0].iov_base = (char *)iov[0].iov_base + bytes_read;
494 else if (bytes_read == 0) {
500 else /* bytes_read is less than 0; presumably -1 */ {
776 register long bytes_read = (n > SCRATCHSIZE) ? SCRATCHSIZE : n;
777 N_XRead (dpy, buf, bytes_read);
778 n -= bytes_read;