diff options
author | Wez Furlong <wez@php.net> | 2002-09-23 13:22:10 +0000 |
---|---|---|
committer | Wez Furlong <wez@php.net> | 2002-09-23 13:22:10 +0000 |
commit | 9e84b3d5b584e9d98ff8b009bc7220245bee6df1 (patch) | |
tree | 720eb8bd46d6f094c0b475a70232599b4d3e052e /main/php_streams.h | |
parent | 2f4ed252de9dd0e0dbfb04e7767d63e12692003c (diff) | |
download | php-git-9e84b3d5b584e9d98ff8b009bc7220245bee6df1.tar.gz |
Revise buffer/seek code a little.
Tidy up user streams even more.
Make test case quite aggressive.
Diffstat (limited to 'main/php_streams.h')
-rwxr-xr-x | main/php_streams.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/main/php_streams.h b/main/php_streams.h index 5cd12839f0..8044f05026 100755 --- a/main/php_streams.h +++ b/main/php_streams.h @@ -377,6 +377,10 @@ PHPAPI int _php_stream_set_option(php_stream *stream, int option, int value, voi #define PHP_STREAM_BUFFER_LINE 1 /* line buffered */ #define PHP_STREAM_BUFFER_FULL 2 /* fully buffered */ +#define PHP_STREAM_OPTION_RETURN_OK 0 /* option set OK */ +#define PHP_STREAM_OPTION_RETURN_ERR -1 /* problem setting option */ +#define PHP_STREAM_OPTION_RETURN_NOTIMPL -2 /* underlying stream does not implement; streams can handle it instead */ + /* copy up to maxlen bytes from src to dest. If maxlen is PHP_STREAM_COPY_ALL, copy until eof(src). * Uses mmap if the src is a plain file and at offset 0 */ #define PHP_STREAM_COPY_ALL -1 |