Lines Matching refs:mapped
1417 size_t mapped;
1419 p = php_stream_mmap_range(stream, php_stream_tell(stream), PHP_STREAM_MMAP_ALL, PHP_STREAM_MAP_MODE_SHARED_READONLY, &mapped);
1424 if (0 < (b = PHPWRITE(p + bcount, MIN(mapped - bcount, INT_MAX)))) {
1427 } while (b > 0 && mapped > bcount);
1429 php_stream_mmap_unmap_ex(stream, mapped);
1556 size_t mapped;
1558 p = php_stream_mmap_range(src, php_stream_tell(src), chunk_size, PHP_STREAM_MAP_MODE_SHARED_READONLY, &mapped);
1563 if (php_stream_seek(src, mapped, SEEK_CUR) != 0) {
1568 didwrite = php_stream_write(dest, p, mapped);
1581 if (mapped == 0 || mapped != didwrite) {
1584 if (mapped < chunk_size) {
1588 maxlen -= mapped;