Lines Matching refs:z
122 struct read_zip *z; in read_zip() local
127 z = (struct read_zip *)state; in read_zip()
132 for (n=0; n<z->off; n+= i) { in read_zip()
133 i = (z->off-n > sizeof(b) ? sizeof(b) : z->off-n); in read_zip()
134 if ((i=zip_fread(z->zf, b, i)) < 0) { in read_zip()
135 zip_fclose(z->zf); in read_zip()
136 z->zf = NULL; in read_zip()
143 if (z->len != -1) in read_zip()
144 n = len > z->len ? z->len : len; in read_zip()
149 if ((i=zip_fread(z->zf, buf, n)) < 0) in read_zip()
152 if (z->len != -1) in read_zip()
153 z->len -= i; in read_zip()
161 if (len < sizeof(z->st)) in read_zip()
163 len = sizeof(z->st); in read_zip()
165 memcpy(data, &z->st, len); in read_zip()
176 zip_file_error_get(z->zf, e, e+1); in read_zip()
181 zip_fclose(z->zf); in read_zip()
182 free(z); in read_zip()