Lines Matching refs:mapped
1485 size_t mapped;
1487 p = php_stream_mmap_range(stream, php_stream_tell(stream), PHP_STREAM_MMAP_ALL, PHP_STREAM_MAP_MODE_SHARED_READONLY, &mapped);
1492 if (0 < (b = PHPWRITE(p + bcount, MIN(mapped - bcount, INT_MAX)))) {
1495 } while (b > 0 && mapped > bcount);
1497 php_stream_mmap_unmap_ex(stream, mapped);
1709 size_t chunk_size, must_read, mapped;
1724 p = php_stream_mmap_range(src, php_stream_tell(src), chunk_size, PHP_STREAM_MAP_MODE_SHARED_READONLY, &mapped);
1729 if (php_stream_seek(src, mapped, SEEK_CUR) != 0) {
1734 didwrite = php_stream_write(dest, p, mapped);
1748 if (mapped == 0 || mapped != didwrite) {
1751 if (mapped < chunk_size) {
1756 must_read -= mapped;