Lines Matching refs:ops

87 fprintf(stderr, "forget_persistent: %s:%p\n", stream->ops->label, stream);  in forget_persistent_resource_id_numbers()
279 PHPAPI php_stream *_php_stream_alloc(php_stream_ops *ops, void *abstract, const char *persistent_id… in _php_stream_alloc() argument
291 fprintf(stderr, "stream_alloc: %s:%p persistent=%s\n", ops->label, ret, persistent_id); in _php_stream_alloc()
294 ret->ops = ops; in _php_stream_alloc()
356 fprintf(stderr, "stream_free: %s:%p[%s] in_free=%d opts=%08x\n", stream->ops->label, stream, stream… in _php_stream_free()
386 stream->ops->label, stream, stream->orig_path, preserve_handle, release_cast, remove_rsrc); in _php_stream_free()
420 ret = stream->ops->close(stream, preserve_handle ? 0 : 1 TSRMLS_CC); in _php_stream_free()
464 …d) : Stream of type '%s' %p (path:%s) was not closed\n", __LINE__, stream->ops->label, stream, str… in _php_stream_free()
530 justread = stream->ops->read(stream, chunk_buf, stream->chunk_size TSRMLS_CC); in php_stream_fill_read_buffer()
626 justread = stream->ops->read(stream, stream->readbuf + stream->writepos, in php_stream_fill_read_buffer()
667 toread = stream->ops->read(stream, buf, size TSRMLS_CC); in _php_stream_read()
765 if (stream->ops->stat == NULL) { in _php_stream_stat()
769 return (stream->ops->stat)(stream, ssb TSRMLS_CC); in _php_stream_stat()
1051 …if (stream->ops->seek && (stream->flags & PHP_STREAM_FLAG_NO_SEEK) == 0 && stream->readpos != stre… in _php_stream_write_buffer()
1054 stream->ops->seek(stream, stream->position, SEEK_SET, &stream->position TSRMLS_CC); in _php_stream_write_buffer()
1063 justwrote = stream->ops->write(stream, buf, towrite TSRMLS_CC); in _php_stream_write_buffer()
1073 if (stream->ops->seek && (stream->flags & PHP_STREAM_FLAG_NO_SEEK) == 0) { in _php_stream_write_buffer()
1158 if (stream->ops->flush) { in _php_stream_flush()
1159 ret = stream->ops->flush(stream TSRMLS_CC); in _php_stream_flush()
1167 if (buf == NULL || count == 0 || stream->ops->write == NULL) { in _php_stream_write()
1234 if (stream->ops->seek && (stream->flags & PHP_STREAM_FLAG_NO_SEEK) == 0) { in _php_stream_seek()
1247 ret = stream->ops->seek(stream, offset, whence, &stream->position TSRMLS_CC); in _php_stream_seek()
1286 if (stream->ops->set_option) { in _php_stream_set_option()
1287 ret = stream->ops->set_option(stream, option, value, ptrparam TSRMLS_CC); in _php_stream_set_option()
2057 …if (stream && stream->ops->seek && (stream->flags & PHP_STREAM_FLAG_NO_SEEK) == 0 && strchr(mode, …
2061 if (0 == stream->ops->seek(stream, 0, SEEK_CUR, &newpos TSRMLS_CC)) {