Lines Matching refs:ops

87 fprintf(stderr, "forget_persistent: %s:%p\n", stream->ops->label, stream);  in forget_persistent_resource_id_numbers()
288 PHPAPI php_stream *_php_stream_alloc(php_stream_ops *ops, void *abstract, const char *persistent_id… in _php_stream_alloc() argument
300 fprintf(stderr, "stream_alloc: %s:%p persistent=%s\n", ops->label, ret, persistent_id); in _php_stream_alloc()
303 ret->ops = ops; in _php_stream_alloc()
405 …stream->ops->label, stream, stream->orig_path, stream->in_free, _php_stream_pretty_free_options(cl… in _php_stream_free()
456 stream->ops->label, stream, stream->orig_path, preserve_handle, release_cast, in _php_stream_free()
486 ret = stream->ops->close(stream, preserve_handle ? 0 : 1 TSRMLS_CC); in _php_stream_free()
530 …d) : Stream of type '%s' %p (path:%s) was not closed\n", __LINE__, stream->ops->label, stream, str… in _php_stream_free()
596 justread = stream->ops->read(stream, chunk_buf, stream->chunk_size TSRMLS_CC); in _php_stream_fill_read_buffer()
692 justread = stream->ops->read(stream, stream->readbuf + stream->writepos, in _php_stream_fill_read_buffer()
733 toread = stream->ops->read(stream, buf, size TSRMLS_CC); in _php_stream_read()
835 if (stream->ops->stat == NULL) { in _php_stream_stat()
839 return (stream->ops->stat)(stream, ssb TSRMLS_CC); in _php_stream_stat()
1121 …if (stream->ops->seek && (stream->flags & PHP_STREAM_FLAG_NO_SEEK) == 0 && stream->readpos != stre… in _php_stream_write_buffer()
1124 stream->ops->seek(stream, stream->position, SEEK_SET, &stream->position TSRMLS_CC); in _php_stream_write_buffer()
1133 justwrote = stream->ops->write(stream, buf, towrite TSRMLS_CC); in _php_stream_write_buffer()
1143 if (stream->ops->seek && (stream->flags & PHP_STREAM_FLAG_NO_SEEK) == 0) { in _php_stream_write_buffer()
1228 if (stream->ops->flush) { in _php_stream_flush()
1229 ret = stream->ops->flush(stream TSRMLS_CC); in _php_stream_flush()
1237 if (buf == NULL || count == 0 || stream->ops->write == NULL) { in _php_stream_write()
1304 if (stream->ops->seek && (stream->flags & PHP_STREAM_FLAG_NO_SEEK) == 0) { in _php_stream_seek()
1317 ret = stream->ops->seek(stream, offset, whence, &stream->position TSRMLS_CC); in _php_stream_seek()
1356 if (stream->ops->set_option) { in _php_stream_set_option()
1357 ret = stream->ops->set_option(stream, option, value, ptrparam TSRMLS_CC); in _php_stream_set_option()
2129 …if (stream && stream->ops->seek && (stream->flags & PHP_STREAM_FLAG_NO_SEEK) == 0 && strchr(mode, …
2133 if (0 == stream->ops->seek(stream, 0, SEEK_CUR, &newpos TSRMLS_CC)) {