Lines Matching refs:stream
38 php_stream *stream; member
42 struct php_zip_stream_data_t *self = (struct php_zip_stream_data_t *) stream->abstract;
46 static size_t php_zip_ops_read(php_stream *stream, char *buf, size_t count) in php_zip_ops_read() argument
57 stream->eof = 1; in php_zip_ops_read()
62 stream->eof = 1; in php_zip_ops_read()
71 stream->eof = 1; in php_zip_ops_read()
81 static size_t php_zip_ops_write(php_stream *stream, const char *buf, size_t count) in php_zip_ops_write() argument
83 if (!stream) { in php_zip_ops_write()
92 static int php_zip_ops_close(php_stream *stream, int close_handle) in php_zip_ops_close() argument
107 stream->abstract = NULL; in php_zip_ops_close()
113 static int php_zip_ops_flush(php_stream *stream) in php_zip_ops_flush() argument
115 if (!stream) { in php_zip_ops_flush()
123 static int php_zip_ops_stat(php_stream *stream, php_stream_statbuf *ssb) /* {{{ */ in php_zip_ops_stat() argument
126 const char *path = stream->orig_path; in php_zip_ops_stat()
127 size_t path_len = strlen(stream->orig_path); in php_zip_ops_stat()
216 php_stream *stream = NULL; in php_stream_zip_open() local
241 self->stream = NULL; in php_stream_zip_open()
243 stream = php_stream_alloc(&php_stream_zipio_ops, self, NULL, mode); in php_stream_zip_open()
244 stream->orig_path = estrdup(path); in php_stream_zip_open()
250 if (!stream) { in php_stream_zip_open()
253 return stream; in php_stream_zip_open()
278 php_stream *stream = NULL; in php_stream_zip_opener() local
319 self->stream = NULL; in php_stream_zip_opener()
321 stream = php_stream_alloc(&php_stream_zipio_ops, self, NULL, mode); in php_stream_zip_opener()
333 if (!stream) { in php_stream_zip_opener()
336 return stream; in php_stream_zip_opener()