diff options
author | Arnaud Le Blanc <lbarnaud@php.net> | 2009-05-17 14:58:10 +0000 |
---|---|---|
committer | Arnaud Le Blanc <lbarnaud@php.net> | 2009-05-17 14:58:10 +0000 |
commit | c79528a26d6fed5e11b29dabb4694c52e659cceb (patch) | |
tree | 440a6093da48bf83f33a0f497668bd1c8be38fe9 /main/streams/php_stream_mmap.h | |
parent | 7c30401aec34d57ed24ca3cb61be6756043c4fc4 (diff) | |
download | php-git-c79528a26d6fed5e11b29dabb4694c52e659cceb.tar.gz |
MFH: Fixed bug #48309 (stream_copy_to_stream() and fpasstru() do not
update stream position of plain files)
Diffstat (limited to 'main/streams/php_stream_mmap.h')
-rw-r--r-- | main/streams/php_stream_mmap.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/main/streams/php_stream_mmap.h b/main/streams/php_stream_mmap.h index 30ea7889be..1e4ced33e1 100644 --- a/main/streams/php_stream_mmap.h +++ b/main/streams/php_stream_mmap.h @@ -58,6 +58,8 @@ typedef struct { } php_stream_mmap_range; +#define PHP_STREAM_MMAP_ALL 0 + #define php_stream_mmap_supported(stream) (_php_stream_set_option((stream), PHP_STREAM_OPTION_MMAP_API, PHP_STREAM_MMAP_SUPPORTED, NULL TSRMLS_CC) == 0 ? 1 : 0) /* Returns 1 if the stream in its current state can be memory mapped, @@ -71,6 +73,9 @@ PHPAPI char *_php_stream_mmap_range(php_stream *stream, size_t offset, size_t le /* un-maps the last mapped range */ PHPAPI int _php_stream_mmap_unmap(php_stream *stream TSRMLS_DC); #define php_stream_mmap_unmap(stream) _php_stream_mmap_unmap((stream) TSRMLS_CC) + +PHPAPI int _php_stream_mmap_unmap_ex(php_stream *stream, off_t readden TSRMLS_DC); +#define php_stream_mmap_unmap_ex(stream, readden) _php_stream_mmap_unmap_ex((stream), (readden) TSRMLS_CC) END_EXTERN_C() /* |