Lines Matching refs:didread
708 ssize_t toread = 0, didread = 0; in _php_stream_read() local
727 didread += toread; in _php_stream_read()
741 if (didread == 0) { in _php_stream_read()
748 if (didread == 0) { in _php_stream_read()
765 didread += toread; in _php_stream_read()
782 if (didread > 0) { in _php_stream_read()
783 stream->position += didread; in _php_stream_read()
787 return didread; in _php_stream_read()
1413 ssize_t didread; in _php_stream_seek() local
1415 if ((didread = php_stream_read(stream, tmp, MIN(offset, sizeof(tmp)))) <= 0) { in _php_stream_seek()
1418 offset -= didread; in _php_stream_seek()
1767 ssize_t didread; in _php_stream_copy_to_stream_ex() local
1774 didread = php_stream_read(src, buf, readchunk); in _php_stream_copy_to_stream_ex()
1775 if (didread <= 0) { in _php_stream_copy_to_stream_ex()
1777 return didread < 0 ? FAILURE : SUCCESS; in _php_stream_copy_to_stream_ex()
1780 towrite = didread; in _php_stream_copy_to_stream_ex()
1782 haveread += didread; in _php_stream_copy_to_stream_ex()
1787 *len = haveread - (didread - towrite); in _php_stream_copy_to_stream_ex()