From 9e84b3d5b584e9d98ff8b009bc7220245bee6df1 Mon Sep 17 00:00:00 2001 From: Wez Furlong Date: Mon, 23 Sep 2002 13:22:10 +0000 Subject: Revise buffer/seek code a little. Tidy up user streams even more. Make test case quite aggressive. --- main/php_streams.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'main/php_streams.h') 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 -- cgit v1.2.1