Lines Matching refs:stream
118 size_t (*write)(php_stream *stream, const char *buf, size_t count TSRMLS_DC);
119 size_t (*read)(php_stream *stream, char *buf, size_t count TSRMLS_DC);
120 int (*close)(php_stream *stream, int close_handle TSRMLS_DC);
121 int (*flush)(php_stream *stream TSRMLS_DC);
126 int (*seek)(php_stream *stream, off_t offset, int whence, off_t *newoffset TSRMLS_DC);
127 int (*cast)(php_stream *stream, int castas, void **ret TSRMLS_DC);
128 int (*stat)(php_stream *stream, php_stream_statbuf *ssb TSRMLS_DC);
129 int (*set_option)(php_stream *stream, int option, int value, void *ptrparam TSRMLS_DC);
137 int (*stream_closer)(php_stream_wrapper *wrapper, php_stream *stream TSRMLS_DC);
139 …int (*stream_stat)(php_stream_wrapper *wrapper, php_stream *stream, php_stream_statbuf *ssb TSRMLS…
249 #define php_stream_get_resource_id(stream) (stream)->rsrc_id argument
252 # define php_stream_auto_cleanup(stream) { (stream)->__exposed++; } argument
256 # define php_stream_to_zval(stream, zval) { ZVAL_RESOURCE(zval, (stream)->rsrc_id); (stream)->__exp… argument
258 # define php_stream_auto_cleanup(stream) /* nothing */
259 # define php_stream_to_zval(stream, zval) { ZVAL_RESOURCE(zval, (stream)->rsrc_id); }
270 PHPAPI int php_stream_from_persistent_id(const char *persistent_id, php_stream **stream TSRMLS_DC);
285 PHPAPI int _php_stream_free(php_stream *stream, int close_options TSRMLS_DC);
286 #define php_stream_free(stream, close_options) _php_stream_free((stream), (close_options) TSRMLS_CC) argument
287 #define php_stream_close(stream) _php_stream_free((stream), PHP_STREAM_FREE_CLOSE TSRMLS_CC) argument
288 #define php_stream_pclose(stream) _php_stream_free((stream), PHP_STREAM_FREE_CLOSE_PERSISTENT TSRML… argument
290 PHPAPI int _php_stream_seek(php_stream *stream, off_t offset, int whence TSRMLS_DC);
291 #define php_stream_rewind(stream) _php_stream_seek((stream), 0L, SEEK_SET TSRMLS_CC) argument
292 #define php_stream_seek(stream, offset, whence) _php_stream_seek((stream), (offset), (whence) TSRML… argument
294 PHPAPI off_t _php_stream_tell(php_stream *stream TSRMLS_DC);
295 #define php_stream_tell(stream) _php_stream_tell((stream) TSRMLS_CC) argument
297 PHPAPI size_t _php_stream_read(php_stream *stream, char *buf, size_t count TSRMLS_DC);
298 #define php_stream_read(stream, buf, count) _php_stream_read((stream), (buf), (count) TSRMLS_CC) argument
300 PHPAPI size_t _php_stream_write(php_stream *stream, const char *buf, size_t count TSRMLS_DC);
301 #define php_stream_write_string(stream, str) _php_stream_write(stream, str, strlen(str) TSRMLS_CC) argument
302 #define php_stream_write(stream, buf, count) _php_stream_write(stream, (buf), (count) TSRMLS_CC) argument
304 PHPAPI void _php_stream_fill_read_buffer(php_stream *stream, size_t size TSRMLS_DC);
305 #define php_stream_fill_read_buffer(stream, size) _php_stream_fill_read_buffer((stream), (size) TSR… argument
308 PHPAPI size_t _php_stream_printf(php_stream *stream TSRMLS_DC, const char *fmt, ...) PHP_ATTRIBUTE_…
310 PHPAPI size_t _php_stream_printf(php_stream *stream TSRMLS_DC, const char *fmt, ...) PHP_ATTRIBUTE_…
316 PHPAPI int _php_stream_eof(php_stream *stream TSRMLS_DC);
317 #define php_stream_eof(stream) _php_stream_eof((stream) TSRMLS_CC) argument
319 PHPAPI int _php_stream_getc(php_stream *stream TSRMLS_DC);
320 #define php_stream_getc(stream) _php_stream_getc((stream) TSRMLS_CC) argument
322 PHPAPI int _php_stream_putc(php_stream *stream, int c TSRMLS_DC);
323 #define php_stream_putc(stream, c) _php_stream_putc((stream), (c) TSRMLS_CC) argument
325 PHPAPI int _php_stream_flush(php_stream *stream, int closing TSRMLS_DC);
326 #define php_stream_flush(stream) _php_stream_flush((stream), 0 TSRMLS_CC) argument
328 PHPAPI char *_php_stream_get_line(php_stream *stream, char *buf, size_t maxlen, size_t *returned_le…
329 #define php_stream_gets(stream, buf, maxlen) _php_stream_get_line((stream), (buf), (maxlen), NULL T… argument
331 #define php_stream_get_line(stream, buf, maxlen, retlen) _php_stream_get_line((stream), (buf), (max… argument
332 PHPAPI char *php_stream_get_record(php_stream *stream, size_t maxlen, size_t *returned_len, char *d…
335 PHPAPI int _php_stream_puts(php_stream *stream, char *buf TSRMLS_DC);
336 #define php_stream_puts(stream, buf) _php_stream_puts((stream), (buf) TSRMLS_CC) argument
338 PHPAPI int _php_stream_stat(php_stream *stream, php_stream_statbuf *ssb TSRMLS_DC);
339 #define php_stream_stat(stream, ssb) _php_stream_stat((stream), (ssb) TSRMLS_CC) argument
365 PHPAPI int _php_stream_set_option(php_stream *stream, int option, int value, void *ptrparam TSRMLS_…
366 #define php_stream_set_option(stream, option, value, ptrvalue) _php_stream_set_option((stream), (op… argument
368 #define php_stream_set_chunk_size(stream, size) _php_stream_set_option((stream), PHP_STREAM_OPTION_… argument
407 #define php_stream_supports_lock(stream) _php_stream_set_option((stream), PHP_STREAM_OPTION_LOCKING… argument
408 #define php_stream_lock(stream, mode) _php_stream_set_option((stream), PHP_STREAM_OPTION_LOCKING, … argument
419 #define php_stream_truncate_supported(stream) (_php_stream_set_option((stream), PHP_STREAM_OPTION_T… argument
422 PHPAPI int _php_stream_truncate_set_size(php_stream *stream, size_t newsize TSRMLS_DC);
423 #define php_stream_truncate_set_size(stream, size) _php_stream_truncate_set_size((stream), (size) T… argument
427 #define php_stream_populate_meta_data(stream, zv) (_php_stream_set_option((stream), PHP_STREAM_OPTI… argument
457 #define php_stream_passthru(stream) _php_stream_passthru((stream) STREAMS_CC TSRMLS_CC) argument
482 PHPAPI int _php_stream_cast(php_stream *stream, int castas, void **ret, int show_err TSRMLS_DC);
485 #define php_stream_can_cast(stream, as) _php_stream_cast((stream), (as), NULL, 0 TSRMLS_CC) argument
486 #define php_stream_cast(stream, as, ret, show_err) _php_stream_cast((stream), (as), (ret), (show_er… argument
490 #define php_stream_is(stream, anops) ((stream)->ops == anops) argument
493 #define php_stream_is_persistent(stream) (stream)->is_persistent argument
557 PHPAPI char *php_stream_locate_eol(php_stream *stream, char *buf, size_t buf_len TSRMLS_DC);
562 #define php_stream_get_from_zval(stream, zstream, mode, options, opened, context) \ argument
564 php_stream_from_zval((stream), (zstream)); \
565 } else (stream) = Z_TYPE_PP((zstream)) == IS_STRING ? \