Lines Matching refs:self

37 	struct php_gz_stream_data_t *self = (struct php_gz_stream_data_t *) stream->abstract;  in php_gziop_read()  local
41 read = gzread(self->gz_file, buf, count); in php_gziop_read()
43 if (gzeof(self->gz_file)) { in php_gziop_read()
52 struct php_gz_stream_data_t *self = (struct php_gz_stream_data_t *) stream->abstract; in php_gziop_write() local
56 wrote = gzwrite(self->gz_file, (char *) buf, count); in php_gziop_write()
63 struct php_gz_stream_data_t *self = (struct php_gz_stream_data_t *) stream->abstract; in php_gziop_seek() local
65 assert(self != NULL); in php_gziop_seek()
71 *newoffs = gzseek(self->gz_file, offset, whence); in php_gziop_seek()
78 struct php_gz_stream_data_t *self = (struct php_gz_stream_data_t *) stream->abstract; in php_gziop_close() local
82 if (self->gz_file) { in php_gziop_close()
83 ret = gzclose(self->gz_file); in php_gziop_close()
84 self->gz_file = NULL; in php_gziop_close()
86 if (self->stream) { in php_gziop_close()
87 php_stream_close(self->stream); in php_gziop_close()
88 self->stream = NULL; in php_gziop_close()
91 efree(self); in php_gziop_close()
98 struct php_gz_stream_data_t *self = (struct php_gz_stream_data_t *) stream->abstract; in php_gziop_flush() local
100 return gzflush(self->gz_file, Z_SYNC_FLUSH); in php_gziop_flush()
116 struct php_gz_stream_data_t *self; in php_stream_gzopen() local
139 self = emalloc(sizeof(*self)); in php_stream_gzopen()
140 self->stream = innerstream; in php_stream_gzopen()
141 self->gz_file = gzdopen(dup(fd), mode); in php_stream_gzopen()
143 if (self->gz_file) { in php_stream_gzopen()
144 stream = php_stream_alloc_rel(&php_stream_gzio_ops, self, 0, mode); in php_stream_gzopen()
150 gzclose(self->gz_file); in php_stream_gzopen()
153 efree(self); in php_stream_gzopen()