Searched refs:mapped (Results 1 - 4 of 4) sorted by relevance

/PHP_5_5/main/streams/
H A Dmmap.c32 range.mapped = NULL;
44 return range.mapped;
H A Dphp_stream_mmap.h33 /* Request a range and offset to be mapped;
34 * while mapped, you MUST NOT use any read/write functions
37 /* Unmap the last range that was mapped for the stream */
50 * If length is 0, the whole file is mapped */
56 /* returned mapped address */
57 char *mapped; member in struct:__anon311
65 /* Returns 1 if the stream in its current state can be memory mapped,
73 /* un-maps the last mapped range */
H A Dplain_wrapper.c670 range->mapped = (char*)mmap(NULL, range->length, prot, flags, fd, range->offset);
671 if (range->mapped == (char*)MAP_FAILED) {
672 range->mapped = NULL;
676 data->last_mapped_addr = range->mapped;
758 range->mapped = data->last_mapped_addr + delta;
H A Dstreams.c1398 size_t mapped; local
1400 p = php_stream_mmap_range(stream, php_stream_tell(stream), PHP_STREAM_MMAP_ALL, PHP_STREAM_MAP_MODE_SHARED_READONLY, &mapped);
1405 if (0 < (b = PHPWRITE(p, MIN(mapped - bcount, INT_MAX)))) {
1408 } while (b > 0 && mapped > bcount);
1410 php_stream_mmap_unmap_ex(stream, mapped);
1531 size_t mapped; local
1533 p = php_stream_mmap_range(src, php_stream_tell(src), maxlen, PHP_STREAM_MAP_MODE_SHARED_READONLY, &mapped);
1536 didwrite = php_stream_write(dest, p, mapped);
1538 php_stream_mmap_unmap_ex(src, mapped);
1545 if (mapped >
[all...]

Completed in 9 milliseconds