Lines Matching refs:ops

79 fprintf(stderr, "forget_persistent: %s:%p\n", stream->ops->label, stream);  in forget_persistent_resource_id_numbers()
274 PHPAPI php_stream *_php_stream_alloc(const php_stream_ops *ops, void *abstract, const char *persist… in _php_stream_alloc() argument
286 fprintf(stderr, "stream_alloc: %s:%p persistent=%s\n", ops->label, ret, persistent_id); in _php_stream_alloc()
289 ret->ops = ops; in _php_stream_alloc()
383 …stream->ops->label, stream, stream->orig_path, stream->in_free, _php_stream_pretty_free_options(cl… in _php_stream_free()
433 stream->ops->label, stream, stream->orig_path, preserve_handle, release_cast, in _php_stream_free()
466 ret = stream->ops->close(stream, preserve_handle ? 0 : 1); in _php_stream_free()
550 justread = stream->ops->read(stream, chunk_buf, stream->chunk_size); in _php_stream_fill_read_buffer()
655 justread = stream->ops->read(stream, (char*)stream->readbuf + stream->writepos, in _php_stream_fill_read_buffer()
696 toread = stream->ops->read(stream, buf, size); in _php_stream_read()
725 (stream->ops != &php_stream_memory_ops) && in _php_stream_read()
726 (stream->ops != &php_stream_temp_ops)) { in _php_stream_read()
800 if (stream->ops->stat == NULL) { in _php_stream_stat()
804 return (stream->ops->stat)(stream, ssb); in _php_stream_stat()
1086 …if (stream->ops->seek && (stream->flags & PHP_STREAM_FLAG_NO_SEEK) == 0 && stream->readpos != stre… in _php_stream_write_buffer()
1089 stream->ops->seek(stream, stream->position, SEEK_SET, &stream->position); in _php_stream_write_buffer()
1098 justwrote = stream->ops->write(stream, buf, towrite); in _php_stream_write_buffer()
1108 if (stream->ops->seek && (stream->flags & PHP_STREAM_FLAG_NO_SEEK) == 0) { in _php_stream_write_buffer()
1195 if (stream->ops->flush) { in _php_stream_flush()
1196 ret = stream->ops->flush(stream); in _php_stream_flush()
1206 if (buf == NULL || count == 0 || stream->ops->write == NULL) { in _php_stream_write()
1279 if (stream->ops->seek && (stream->flags & PHP_STREAM_FLAG_NO_SEEK) == 0) { in _php_stream_seek()
1292 ret = stream->ops->seek(stream, offset, whence, &stream->position); in _php_stream_seek()
1331 if (stream->ops->set_option) { in _php_stream_set_option()
1332 ret = stream->ops->set_option(stream, option, value, ptrparam); in _php_stream_set_option()
2116 …if (stream && stream->ops->seek && (stream->flags & PHP_STREAM_FLAG_NO_SEEK) == 0 && strchr(mode, …
2120 if (0 == stream->ops->seek(stream, 0, SEEK_CUR, &newpos)) {