Lines Matching refs:didread
680 ssize_t toread = 0, didread = 0; in _php_stream_read() local
699 didread += toread; in _php_stream_read()
712 if (didread == 0) { in _php_stream_read()
719 if (didread == 0) { in _php_stream_read()
736 didread += toread; in _php_stream_read()
752 if (didread > 0) { in _php_stream_read()
753 stream->position += didread; in _php_stream_read()
756 return didread; in _php_stream_read()
1354 ssize_t didread; in _php_stream_seek() local
1356 if ((didread = php_stream_read(stream, tmp, MIN(offset, sizeof(tmp)))) <= 0) { in _php_stream_seek()
1359 offset -= didread; in _php_stream_seek()
1599 ssize_t didread; in _php_stream_copy_to_stream_ex() local
1606 didread = php_stream_read(src, buf, readchunk); in _php_stream_copy_to_stream_ex()
1607 if (didread <= 0) { in _php_stream_copy_to_stream_ex()
1609 return didread < 0 ? FAILURE : SUCCESS; in _php_stream_copy_to_stream_ex()
1612 towrite = didread; in _php_stream_copy_to_stream_ex()
1614 haveread += didread; in _php_stream_copy_to_stream_ex()
1619 *len = haveread - (didread - towrite); in _php_stream_copy_to_stream_ex()