Lines Matching refs:stream

116 	ssize_t (*write)(php_stream *stream, const char *buf, size_t count);
117 ssize_t (*read)(php_stream *stream, char *buf, size_t count);
118 int (*close)(php_stream *stream, int close_handle);
119 int (*flush)(php_stream *stream);
124 int (*seek)(php_stream *stream, zend_off_t offset, int whence, zend_off_t *newoffset);
125 int (*cast)(php_stream *stream, int castas, void **ret);
126 int (*stat)(php_stream *stream, php_stream_statbuf *ssb);
127 int (*set_option)(php_stream *stream, int option, int value, void *ptrparam);
135 int (*stream_closer)(php_stream_wrapper *wrapper, php_stream *stream);
137 int (*stream_stat)(php_stream_wrapper *wrapper, php_stream *stream, php_stream_statbuf *ssb);
245 #define PHP_STREAM_CONTEXT(stream) \ argument
246 ((php_stream_context*) ((stream)->ctx ? ((stream)->ctx->ptr) : NULL))
260 #define php_stream_get_resource_id(stream) ((php_stream *)(stream))->res->handle argument
262 #define php_stream_auto_cleanup(stream) { (stream)->__exposed = 1; } argument
266 #define php_stream_to_zval(stream, zval) { ZVAL_RES(zval, (stream)->res); (stream)->__exposed = 1; } argument
288 PHPAPI int php_stream_from_persistent_id(const char *persistent_id, php_stream **stream);
304 PHPAPI int _php_stream_free(php_stream *stream, int close_options);
305 #define php_stream_free(stream, close_options) _php_stream_free((stream), (close_options)) argument
306 #define php_stream_close(stream) _php_stream_free((stream), PHP_STREAM_FREE_CLOSE) argument
307 #define php_stream_pclose(stream) _php_stream_free((stream), PHP_STREAM_FREE_CLOSE_PERSISTENT) argument
309 PHPAPI int _php_stream_seek(php_stream *stream, zend_off_t offset, int whence);
310 #define php_stream_rewind(stream) _php_stream_seek((stream), 0L, SEEK_SET) argument
311 #define php_stream_seek(stream, offset, whence) _php_stream_seek((stream), (offset), (whence)) argument
313 PHPAPI zend_off_t _php_stream_tell(php_stream *stream);
314 #define php_stream_tell(stream) _php_stream_tell((stream)) argument
316 PHPAPI ssize_t _php_stream_read(php_stream *stream, char *buf, size_t count);
317 #define php_stream_read(stream, buf, count) _php_stream_read((stream), (buf), (count)) argument
319 PHPAPI zend_string *php_stream_read_to_str(php_stream *stream, size_t len);
321 PHPAPI ssize_t _php_stream_write(php_stream *stream, const char *buf, size_t count);
322 #define php_stream_write_string(stream, str) _php_stream_write(stream, str, strlen(str)) argument
323 #define php_stream_write(stream, buf, count) _php_stream_write(stream, (buf), (count)) argument
325 PHPAPI zend_result _php_stream_fill_read_buffer(php_stream *stream, size_t size);
326 #define php_stream_fill_read_buffer(stream, size) _php_stream_fill_read_buffer((stream), (size)) argument
328 PHPAPI ssize_t _php_stream_printf(php_stream *stream, const char *fmt, ...) PHP_ATTRIBUTE_FORMAT(pr…
333 PHPAPI bool _php_stream_eof(php_stream *stream);
334 #define php_stream_eof(stream) _php_stream_eof((stream)) argument
336 PHPAPI int _php_stream_getc(php_stream *stream);
337 #define php_stream_getc(stream) _php_stream_getc((stream)) argument
339 PHPAPI int _php_stream_putc(php_stream *stream, int c);
340 #define php_stream_putc(stream, c) _php_stream_putc((stream), (c)) argument
342 PHPAPI int _php_stream_flush(php_stream *stream, int closing);
343 #define php_stream_flush(stream) _php_stream_flush((stream), 0) argument
345 PHPAPI int _php_stream_sync(php_stream *stream, bool data_only);
346 #define php_stream_sync(stream, d) _php_stream_sync((stream), (d)) argument
348 PHPAPI char *_php_stream_get_line(php_stream *stream, char *buf, size_t maxlen, size_t *returned_le…
349 #define php_stream_gets(stream, buf, maxlen) _php_stream_get_line((stream), (buf), (maxlen), NULL) argument
351 #define php_stream_get_line(stream, buf, maxlen, retlen) _php_stream_get_line((stream), (buf), (max… argument
352 PHPAPI zend_string *php_stream_get_record(php_stream *stream, size_t maxlen, const char *delim, siz…
355 PHPAPI bool _php_stream_puts(php_stream *stream, const char *buf);
356 #define php_stream_puts(stream, buf) _php_stream_puts((stream), (buf)) argument
358 PHPAPI int _php_stream_stat(php_stream *stream, php_stream_statbuf *ssb);
359 #define php_stream_stat(stream, ssb) _php_stream_stat((stream), (ssb)) argument
385 PHPAPI int _php_stream_set_option(php_stream *stream, int option, int value, void *ptrparam);
386 #define php_stream_set_option(stream, option, value, ptrvalue) _php_stream_set_option((stream), (op… argument
388 #define php_stream_set_chunk_size(stream, size) _php_stream_set_option((stream), PHP_STREAM_OPTION_… argument
427 #define php_stream_supports_lock(stream) (_php_stream_set_option((stream), PHP_STREAM_OPTION_LOCKIN… argument
428 #define php_stream_lock(stream, mode) _php_stream_set_option((stream), PHP_STREAM_OPTION_LOCKING, … argument
439 #define php_stream_truncate_supported(stream) (_php_stream_set_option((stream), PHP_STREAM_OPTION_T… argument
442 PHPAPI int _php_stream_truncate_set_size(php_stream *stream, size_t newsize);
443 #define php_stream_truncate_set_size(stream, size) _php_stream_truncate_set_size((stream), (size)) argument
447 #define php_stream_populate_meta_data(stream, zv) (_php_stream_set_option((stream), PHP_STREAM_OPTI… argument
462 #define php_stream_sync_supported(stream) (_php_stream_set_option((stream), PHP_STREAM_OPTION_SYNC_… argument
488 #define php_stream_passthru(stream) _php_stream_passthru((stream) STREAMS_CC) argument
513 PHPAPI int _php_stream_cast(php_stream *stream, int castas, void **ret, int show_err);
516 #define php_stream_can_cast(stream, as) _php_stream_cast((stream), (as), NULL, 0) argument
517 #define php_stream_cast(stream, as, ret, show_err) _php_stream_cast((stream), (as), (ret), (show_er… argument
521 #define php_stream_is(stream, anops) ((stream)->ops == anops) argument
524 #define php_stream_is_persistent(stream) (stream)->is_persistent argument
590 PHPAPI const char *php_stream_locate_eol(php_stream *stream, zend_string *buf);