Lines Matching refs:ops

77 fprintf(stderr, "forget_persistent: %s:%p\n", stream->ops->label, stream);  in forget_persistent_resource_id_numbers()
276 PHPAPI php_stream *_php_stream_alloc(const php_stream_ops *ops, void *abstract, const char *persist… in _php_stream_alloc() argument
288 fprintf(stderr, "stream_alloc: %s:%p persistent=%s\n", ops->label, ret, persistent_id); in _php_stream_alloc()
291 ret->ops = ops; in _php_stream_alloc()
392 …stream->ops->label, stream, stream->orig_path, stream->in_free, _php_stream_pretty_free_options(cl… in _php_stream_free()
442 stream->ops->label, stream, stream->orig_path, preserve_handle, release_cast, in _php_stream_free()
475 ret = stream->ops->close(stream, preserve_handle ? 0 : 1); in _php_stream_free()
559 justread = stream->ops->read(stream, chunk_buf, stream->chunk_size); in _php_stream_fill_read_buffer()
666 justread = stream->ops->read(stream, (char*)stream->readbuf + stream->writepos, in _php_stream_fill_read_buffer()
708 toread = stream->ops->read(stream, buf, size); in _php_stream_read()
746 (stream->ops != &php_stream_memory_ops) && in _php_stream_read()
747 (stream->ops != &php_stream_temp_ops)) { in _php_stream_read()
841 if (stream->ops->stat == NULL) { in _php_stream_stat()
845 return (stream->ops->stat)(stream, ssb); in _php_stream_stat()
1127 …if (stream->ops->seek && (stream->flags & PHP_STREAM_FLAG_NO_SEEK) == 0 && stream->readpos != stre… in _php_stream_write_buffer()
1130 stream->ops->seek(stream, stream->position, SEEK_SET, &stream->position); in _php_stream_write_buffer()
1134 ssize_t justwrote = stream->ops->write(stream, buf, count); in _php_stream_write_buffer()
1232 if (stream->ops->flush) { in _php_stream_flush()
1233 ret = stream->ops->flush(stream); in _php_stream_flush()
1248 if (stream->ops->write == NULL) { in _php_stream_write()
1327 if (stream->ops->seek && (stream->flags & PHP_STREAM_FLAG_NO_SEEK) == 0) { in _php_stream_seek()
1340 ret = stream->ops->seek(stream, offset, whence, &stream->position); in _php_stream_seek()
1379 if (stream->ops->set_option) { in _php_stream_set_option()
1380 ret = stream->ops->set_option(stream, option, value, ptrparam); in _php_stream_set_option()
2156 …if (stream && stream->ops->seek && (stream->flags & PHP_STREAM_FLAG_NO_SEEK) == 0 && strchr(mode, …
2160 if (0 == stream->ops->seek(stream, 0, SEEK_CUR, &newpos)) {