Lines Matching refs:php_stream

96 typedef struct _php_stream php_stream;  typedef
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);
132 php_stream *(*stream_opener)(php_stream_wrapper *wrapper, const char *filename, const char *mode,
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);
141 php_stream *(*dir_opener)(php_stream_wrapper *wrapper, const char *filename, const char *mode,
249 PHPAPI php_stream *_php_stream_alloc(const php_stream_ops *ops, void *abstract,
254 #define php_stream_get_resource_id(stream) ((php_stream *)(stream))->res->handle
263 if (((xstr) = (php_stream*)zend_fetch_resource2_ex((pzval), \
269 if (((xstr) = (php_stream*)zend_fetch_resource2((res), \
274 #define php_stream_from_res_no_verify(xstr, pzval) (xstr) = (php_stream*)zend_fetch_resource2((res)…
275 #define php_stream_from_zval_no_verify(xstr, pzval) (xstr) = (php_stream*)zend_fetch_resource2_ex((…
278 PHPAPI php_stream *php_stream_encloses(php_stream *enclosing, php_stream *enclosed);
280 PHPAPI int _php_stream_free_enclosed(php_stream *stream_enclosed, int close_options);
282 PHPAPI int php_stream_from_persistent_id(const char *persistent_id, php_stream **stream);
298 PHPAPI int _php_stream_free(php_stream *stream, int close_options);
303 PHPAPI int _php_stream_seek(php_stream *stream, zend_off_t offset, int whence);
307 PHPAPI zend_off_t _php_stream_tell(php_stream *stream);
310 PHPAPI ssize_t _php_stream_read(php_stream *stream, char *buf, size_t count);
313 PHPAPI zend_string *php_stream_read_to_str(php_stream *stream, size_t len);
315 PHPAPI ssize_t _php_stream_write(php_stream *stream, const char *buf, size_t count);
319 PHPAPI int _php_stream_fill_read_buffer(php_stream *stream, size_t size);
322 PHPAPI ssize_t _php_stream_printf(php_stream *stream, const char *fmt, ...) PHP_ATTRIBUTE_FORMAT(pr…
327 PHPAPI int _php_stream_eof(php_stream *stream);
330 PHPAPI int _php_stream_getc(php_stream *stream);
333 PHPAPI int _php_stream_putc(php_stream *stream, int c);
336 PHPAPI int _php_stream_flush(php_stream *stream, int closing);
339 PHPAPI char *_php_stream_get_line(php_stream *stream, char *buf, size_t maxlen, size_t *returned_le…
343 PHPAPI zend_string *php_stream_get_record(php_stream *stream, size_t maxlen, const char *delim, siz…
346 PHPAPI int _php_stream_puts(php_stream *stream, const char *buf);
349 PHPAPI int _php_stream_stat(php_stream *stream, php_stream_statbuf *ssb);
362 PHPAPI php_stream *_php_stream_opendir(const char *path, int options, php_stream_context *context S…
364 PHPAPI php_stream_dirent *_php_stream_readdir(php_stream *dirstream, php_stream_dirent *ent);
376 PHPAPI int _php_stream_set_option(php_stream *stream, int option, int value, void *ptrparam);
433 PHPAPI int _php_stream_truncate_set_size(php_stream *stream, size_t newsize);
457 PHPAPI size_t _php_stream_copy_to_stream(php_stream *src, php_stream *dest, size_t maxlen STREAMS_D…
459 PHPAPI int _php_stream_copy_to_stream_ex(php_stream *src, php_stream *dest, size_t maxlen, size_t *…
465 PHPAPI zend_string *_php_stream_copy_to_mem(php_stream *src, size_t maxlen, int persistent STREAMS_…
469 PHPAPI ssize_t _php_stream_passthru(php_stream * src STREAMS_DC);
495 PHPAPI int _php_stream_cast(php_stream *stream, int castas, void **ret, int show_err);
570 PHPAPI php_stream *_php_stream_open_wrapper_ex(const char *path, const char *mode, int options, zen…
572 PHPAPI const char *php_stream_locate_eol(php_stream *stream, zend_string *buf);
588 PHPAPI int _php_stream_make_seekable(php_stream *origstream, php_stream **newstream, int flags STRE…