diff options
author | Wez Furlong <wez@php.net> | 2002-10-04 18:59:34 +0000 |
---|---|---|
committer | Wez Furlong <wez@php.net> | 2002-10-04 18:59:34 +0000 |
commit | 9c5883bdf658111c389813b6134633c354452a12 (patch) | |
tree | 09fa887ed108646a7d8f0f301d4bde55ebfb79a5 /main/php_streams.h | |
parent | 08645d53c0efa864694eee32fb5f042cc2696e6b (diff) | |
download | php-git-9c5883bdf658111c389813b6134633c354452a12.tar.gz |
replace dont_block with a flag.
Diffstat (limited to 'main/php_streams.h')
-rwxr-xr-x | main/php_streams.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/main/php_streams.h b/main/php_streams.h index 421dbf2535..3acd52624f 100755 --- a/main/php_streams.h +++ b/main/php_streams.h @@ -153,7 +153,6 @@ typedef struct _php_stream_ops { int (*cast)(php_stream *stream, int castas, void **ret TSRMLS_DC); int (*stat)(php_stream *stream, php_stream_statbuf *ssb TSRMLS_DC); int (*set_option)(php_stream *stream, int option, int value, void *ptrparam TSRMLS_DC); - int dont_block; } php_stream_ops; typedef struct _php_stream_wrapper_ops { @@ -225,6 +224,12 @@ struct _php_stream_filter { #define PHP_STREAM_FLAG_EOL_UNIX 0 /* also includes DOS */ #define PHP_STREAM_FLAG_DETECT_EOL 4 #define PHP_STREAM_FLAG_EOL_MAC 8 + +/* set this when the stream might represent "interactive" data. + * When set, the read buffer will avoid certain operations that + * might otherwise cause the read to block for much longer than + * is strictly required. */ +#define PHP_STREAM_FLAG_AVOID_BLOCKING 16 struct _php_stream { php_stream_ops *ops; |