diff options
author | Wez Furlong <wez@php.net> | 2002-03-21 01:11:52 +0000 |
---|---|---|
committer | Wez Furlong <wez@php.net> | 2002-03-21 01:11:52 +0000 |
commit | a662f012bba5a6fdc50533673f3fff47bf9af219 (patch) | |
tree | b35b92af8c3cd58d62e4b5d86995af6404380f8d /main/php_streams.h | |
parent | 4094513915c995c593c418d654714f0496da4e8f (diff) | |
download | php-git-a662f012bba5a6fdc50533673f3fff47bf9af219.tar.gz |
Convert the gzfile related functions into aliases for their equivalents
in ext/standard/file.c, so a gzopen()ed file pointer can be used in
fread, fseek etc.
Improved behaviour of zlib stream.
Moved passthru code into streams.c
# I'm not happy about BG(mmap_file)
Nuked gzgetss_state as no longer needed.
Diffstat (limited to 'main/php_streams.h')
-rwxr-xr-x | main/php_streams.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/main/php_streams.h b/main/php_streams.h index efce5adcef..33fd4ee625 100755 --- a/main/php_streams.h +++ b/main/php_streams.h @@ -193,6 +193,7 @@ PHPAPI int _php_stream_flush(php_stream *stream TSRMLS_DC); PHPAPI char *_php_stream_gets(php_stream *stream, char *buf, size_t maxlen TSRMLS_DC); #define php_stream_gets(stream, buf, maxlen) _php_stream_gets((stream), (buf), (maxlen) TSRMLS_CC) +/* CAREFUL! this is equivalent to puts NOT fputs! */ PHPAPI int _php_stream_puts(php_stream *stream, char *buf TSRMLS_DC); #define php_stream_puts(stream, buf) _php_stream_puts((stream), (buf) TSRMLS_CC) @@ -208,6 +209,10 @@ PHPAPI size_t _php_stream_copy_to_mem(php_stream *src, char **buf, size_t maxlen int persistent STREAMS_DC TSRMLS_DC); #define php_stream_copy_to_mem(src, buf, maxlen, persistent) _php_stream_copy_to_mem((src), (buf), (maxlen), (persistent) STREAMS_CC TSRMLS_CC) +/* output all data from a stream */ +PHPAPI size_t _php_stream_passthru(php_stream * src STREAMS_DC TSRMLS_DC); +#define php_stream_passthru(stream) _php_stream_passthru((stream) STREAMS_CC TSRMLS_CC) + /* maybe implement someday */ #define php_stream_error(stream) (0) |